@wenex/sdk 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/common/enums/general/index.d.ts +1 -0
  2. package/common/enums/general/index.js +18 -0
  3. package/common/enums/general/index.js.map +1 -0
  4. package/common/enums/general/workflows/index.d.ts +1 -0
  5. package/common/enums/general/workflows/index.js +18 -0
  6. package/common/enums/general/workflows/index.js.map +1 -0
  7. package/common/enums/general/workflows/status.enum.d.ts +8 -0
  8. package/common/enums/general/workflows/status.enum.js +13 -0
  9. package/common/enums/general/workflows/status.enum.js.map +1 -0
  10. package/common/interfaces/general/index.d.ts +1 -0
  11. package/common/interfaces/general/index.js +18 -0
  12. package/common/interfaces/general/index.js.map +1 -0
  13. package/common/interfaces/general/workflows/index.d.ts +3 -0
  14. package/common/interfaces/general/workflows/index.js +20 -0
  15. package/common/interfaces/general/workflows/index.js.map +1 -0
  16. package/common/interfaces/general/workflows/state.interface.d.ts +8 -0
  17. package/common/interfaces/general/workflows/state.interface.js +3 -0
  18. package/common/interfaces/general/workflows/state.interface.js.map +1 -0
  19. package/common/interfaces/general/workflows/token.interface.d.ts +10 -0
  20. package/common/interfaces/general/workflows/token.interface.js +3 -0
  21. package/common/interfaces/general/workflows/token.interface.js.map +1 -0
  22. package/common/interfaces/general/workflows/workflow.interface.d.ts +15 -0
  23. package/common/interfaces/general/workflows/workflow.interface.js +3 -0
  24. package/common/interfaces/general/workflows/workflow.interface.js.map +1 -0
  25. package/index.d.ts +2 -0
  26. package/index.js +3 -0
  27. package/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/services/general/index.d.ts +10 -0
  30. package/services/general/index.js +32 -0
  31. package/services/general/index.js.map +1 -0
  32. package/services/general/workflows.service.d.ts +8 -0
  33. package/services/general/workflows.service.js +15 -0
  34. package/services/general/workflows.service.js.map +1 -0
  35. package/services/index.d.ts +1 -0
  36. package/services/index.js +1 -0
  37. package/services/index.js.map +1 -1
@@ -0,0 +1 @@
1
+ export * from './workflows';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./workflows"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1 @@
1
+ export * from './status.enum';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./status.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/general/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,8 @@
1
+ export declare enum WorkflowStatus {
2
+ ready = "ready",
3
+ paused = "paused",
4
+ failed = "failed",
5
+ running = "running",
6
+ completed = "completed",
7
+ terminated = "terminated"
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowStatus = void 0;
4
+ var WorkflowStatus;
5
+ (function (WorkflowStatus) {
6
+ WorkflowStatus["ready"] = "ready";
7
+ WorkflowStatus["paused"] = "paused";
8
+ WorkflowStatus["failed"] = "failed";
9
+ WorkflowStatus["running"] = "running";
10
+ WorkflowStatus["completed"] = "completed";
11
+ WorkflowStatus["terminated"] = "terminated";
12
+ })(WorkflowStatus || (exports.WorkflowStatus = WorkflowStatus = {}));
13
+ //# sourceMappingURL=status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/general/workflows/status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;AAC3B,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB"}
@@ -0,0 +1 @@
1
+ export * from './workflows';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./workflows"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interfaces/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1,3 @@
1
+ export * from './state.interface';
2
+ export * from './token.interface';
3
+ export * from './workflow.interface';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./state.interface"), exports);
18
+ __exportStar(require("./token.interface"), exports);
19
+ __exportStar(require("./workflow.interface"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,uDAAqC"}
@@ -0,0 +1,8 @@
1
+ import { WorkflowStatus } from '../../../enums/general';
2
+ export interface WorkflowState<T = any> {
3
+ ref: string;
4
+ name?: string;
5
+ status: WorkflowStatus;
6
+ value?: T;
7
+ }
8
+ export type WorkflowStateDto<T = any> = WorkflowState<T>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=state.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/workflows/state.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { WorkflowState, WorkflowStateDto } from './state.interface';
2
+ export interface WorkflowToken<T = any> {
3
+ id: string;
4
+ parent?: string;
5
+ locked?: boolean;
6
+ history: WorkflowState<T>[];
7
+ }
8
+ export type WorkflowTokenDto<T = any> = Omit<WorkflowToken<T>, 'history'> & {
9
+ history: WorkflowStateDto<T>[];
10
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=token.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/workflows/token.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { Document } from 'mongoose';
2
+ import { WorkflowToken } from './token.interface';
3
+ import { Core, Dto } from '../../../core/interfaces';
4
+ import { WorkflowStatus } from '../../../enums/general';
5
+ export interface Workflow<D = any, V = any, Properties extends object = object> extends Core<Properties> {
6
+ entity: string;
7
+ identity: string;
8
+ status: WorkflowStatus;
9
+ tokens: WorkflowToken<V>[];
10
+ data?: D;
11
+ }
12
+ export type WorkflowDoc<D = any, V = any, Properties extends object = object> = Workflow<D, V, Properties> & Document;
13
+ export type WorkflowDto<D = any, V = any, Properties extends object = object> = Dto<Omit<Workflow<D, V, Properties>, 'tokens'> & {
14
+ tokens: WorkflowToken<V>[];
15
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workflow.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.interface.js","sourceRoot":"","sources":["../../../../src/common/interfaces/general/workflows/workflow.interface.ts"],"names":[],"mappings":""}
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare class Platform<Properties extends object = object> {
10
10
  protected _domain?: Services.DomainClient<Properties>;
11
11
  protected _essential?: Services.EssentialClient<Properties>;
12
12
  protected _financial?: Services.FinancialClient<Properties>;
13
+ protected _general?: Services.GeneralClient<Properties>;
13
14
  protected _identity?: Services.IdentityClient<Properties>;
14
15
  protected _special?: Services.SpecialClient<Properties>;
15
16
  protected _touch?: Services.TouchClient<Properties>;
@@ -19,6 +20,7 @@ export declare class Platform<Properties extends object = object> {
19
20
  get domain(): Services.DomainClient<Properties>;
20
21
  get essential(): Services.EssentialClient<Properties>;
21
22
  get financial(): Services.FinancialClient<Properties>;
23
+ get general(): Services.GeneralClient<Properties>;
22
24
  get identity(): Services.IdentityClient<Properties>;
23
25
  get special(): Services.SpecialClient<Properties>;
24
26
  get touch(): Services.TouchClient<Properties>;
package/index.js CHANGED
@@ -59,6 +59,9 @@ class Platform {
59
59
  get financial() {
60
60
  return (this._financial = this._financial ?? Services.FinancialClient.build(this.axios));
61
61
  }
62
+ get general() {
63
+ return (this._general = this._general ?? Services.GeneralClient.build(this.axios));
64
+ }
62
65
  get identity() {
63
66
  return (this._identity = this._identity ?? Services.IdentityClient.build(this.axios));
64
67
  }
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA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AAoB;QACnE,OAAO,IAAI,QAAQ,CAAa,KAAK,CAAC,CAAC;IACzC,CAAC;CACF;AA1DD,4BA0DC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -0,0 +1,10 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { WorkflowsService } from './workflows.service';
3
+ export * from './workflows.service';
4
+ export declare class GeneralClient<Properties extends object = object> {
5
+ readonly axios: AxiosInstance;
6
+ protected _workflows?: WorkflowsService<Properties>;
7
+ constructor(axios: AxiosInstance);
8
+ get workflows(): WorkflowsService<Properties>;
9
+ static build<Properties extends object = object>(axios: AxiosInstance): GeneralClient<Properties>;
10
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.GeneralClient = void 0;
18
+ const workflows_service_1 = require("./workflows.service");
19
+ __exportStar(require("./workflows.service"), exports);
20
+ class GeneralClient {
21
+ constructor(axios) {
22
+ this.axios = axios;
23
+ }
24
+ get workflows() {
25
+ return (this._workflows = this._workflows ?? workflows_service_1.WorkflowsService.build(this.axios));
26
+ }
27
+ static build(axios) {
28
+ return new GeneralClient(axios);
29
+ }
30
+ }
31
+ exports.GeneralClient = GeneralClient;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/general/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,2DAAuD;AAEvD,sDAAoC;AAEpC,MAAa,aAAa;IAGxB,YAAqB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE7C,IAAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,oCAAgB,CAAC,KAAK,CAAa,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,aAAa,CAAa,KAAK,CAAC,CAAC;IAC9C,CAAC;CACF;AAZD,sCAYC"}
@@ -0,0 +1,8 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import { RestfulService } from '../../common/core/classes';
3
+ import { Workflow, WorkflowDto } from '../../common/interfaces/general';
4
+ export declare class WorkflowsService<Properties extends object = object> extends RestfulService<Workflow<Properties>, WorkflowDto<Properties>> {
5
+ protected axios: AxiosInstance;
6
+ constructor(axios: AxiosInstance);
7
+ static build<Properties extends object = object>(axios: AxiosInstance): WorkflowsService<Properties>;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowsService = void 0;
4
+ const classes_1 = require("../../common/core/classes");
5
+ class WorkflowsService extends classes_1.RestfulService {
6
+ constructor(axios) {
7
+ super('workflows', axios);
8
+ this.axios = axios;
9
+ }
10
+ static build(axios) {
11
+ return new WorkflowsService(axios);
12
+ }
13
+ }
14
+ exports.WorkflowsService = WorkflowsService;
15
+ //# sourceMappingURL=workflows.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.service.js","sourceRoot":"","sources":["../../src/services/general/workflows.service.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAG3D,MAAa,gBAAqD,SAAQ,wBAGzE;IACC,YAAsB,KAAoB;QACxC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QADN,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,gBAAgB,CAAa,KAAK,CAAC,CAAC;IACjD,CAAC;CACF;AAXD,4CAWC"}
@@ -3,6 +3,7 @@ export * from './context';
3
3
  export * from './domain';
4
4
  export * from './essential';
5
5
  export * from './financial';
6
+ export * from './general';
6
7
  export * from './identity';
7
8
  export * from './special';
8
9
  export * from './touch';
package/services/index.js CHANGED
@@ -19,6 +19,7 @@ __exportStar(require("./context"), exports);
19
19
  __exportStar(require("./domain"), exports);
20
20
  __exportStar(require("./essential"), exports);
21
21
  __exportStar(require("./financial"), exports);
22
+ __exportStar(require("./general"), exports);
22
23
  __exportStar(require("./identity"), exports);
23
24
  __exportStar(require("./special"), exports);
24
25
  __exportStar(require("./touch"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB"}