Skip to content

Commit

Permalink
Zowe Suite v1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Jun 2, 2021
2 parents 549c81f + 7f371ac commit d1b0db8
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 52 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Contributing
============

Contributions are encouraged from anyone! Every little bit helps, and credit will always be given.
Please see the contributing guidelines in [the zlux repository](https://github.com/zowe/zlux/blob/master/CONTRIBUTING.md)
9 changes: 9 additions & 0 deletions base/src/dispatcher/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,15 @@ export class Dispatcher implements ZLUX.Dispatcher {
if (!targetPluginID) {
targetPluginID = actionAsAny.targetId;
}

if(typeof targetMode === 'string') {
targetMode = ZoweZLUX.dispatcher.constants.ActionTargetMode[targetMode];
}

if(typeof type === 'string') {
type = ZoweZLUX.dispatcher.constants.ActionType[type];
}

return new Action(id, defaultName, targetMode, type, targetPluginID, primaryArgument);
}

Expand Down
22 changes: 21 additions & 1 deletion interface/src/server-framework.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,24 @@ declare namespace ZLUXServerFramework {
refreshStatus(request: Object, sessionState: Object): Promise<AuthenticateResult>;
authorized(request: Object, sessionState: Object): AuthorizeResult;
}
}

export type StorageLocationType = 'ha' | 'cluster' | 'local';

type Dict = { [key: string]: any };

export interface PluginStorage {
get(key: string, storageType?: StorageLocationType): Promise<any>;
getAll(storageType?: StorageLocationType): Promise<Dict>;
set(key: string, value: any, storageType?: StorageLocationType): Promise<void>;
setAll(dict: Dict, storageType?: StorageLocationType): Promise<void>;
delete(key: string, storageType?: StorageLocationType): Promise<void>;
deleteAll(storageType?: StorageLocationType): Promise<void>;
}

export interface DataServiceContext {
storage: PluginStorage;
logger: ZLUX.ComponentLogger;
addBodyParseMiddleware: (router: any) => void;
}

}
178 changes: 128 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"@types/chai": "~4.2.14",
"@types/mocha": "~8.2.0",
"@types/node": "~14.14.22",
"@types/express": "~4.16.1",
"chai": "~4.2.0",
"mocha": "~4.0.0",
"mocha": "~5.0.0",
"rxjs": "~6.2.2",
"rxjs-compat": "~6.2.2",
"ts-mocha": "~6.0.0",
Expand Down

0 comments on commit d1b0db8

Please sign in to comment.