@managespace/sdk 0.1.87 → 0.1.89

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 (88) hide show
  1. package/dist/extensibility/functions/project/managespace.d.ts +2 -2
  2. package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
  3. package/dist/extensibility/types/workflow-step.d.ts +14 -45
  4. package/dist/extensibility/types/workflow-step.d.ts.map +1 -1
  5. package/dist/generated/models/checklist-recurrence-frequency.d.ts +7 -7
  6. package/dist/generated/models/checklist-recurrence-frequency.d.ts.map +1 -1
  7. package/dist/generated/models/checklist-recurrence-frequency.js +9 -11
  8. package/dist/generated/models/communication-type.d.ts +6 -6
  9. package/dist/generated/models/communication-type.d.ts.map +1 -1
  10. package/dist/generated/models/communication-type.js +8 -10
  11. package/dist/generated/models/configuration-setting-type.d.ts +7 -7
  12. package/dist/generated/models/configuration-setting-type.d.ts.map +1 -1
  13. package/dist/generated/models/configuration-setting-type.js +9 -11
  14. package/dist/generated/models/extensibility-status.d.ts +6 -6
  15. package/dist/generated/models/extensibility-status.d.ts.map +1 -1
  16. package/dist/generated/models/extensibility-status.js +8 -10
  17. package/dist/generated/models/field-type.d.ts +8 -8
  18. package/dist/generated/models/field-type.d.ts.map +1 -1
  19. package/dist/generated/models/field-type.js +10 -12
  20. package/dist/generated/models/filter-operator.d.ts +15 -15
  21. package/dist/generated/models/filter-operator.d.ts.map +1 -1
  22. package/dist/generated/models/filter-operator.js +17 -19
  23. package/dist/generated/models/lease-status.d.ts +12 -12
  24. package/dist/generated/models/lease-status.d.ts.map +1 -1
  25. package/dist/generated/models/lease-status.js +14 -16
  26. package/dist/generated/models/order-operator.d.ts +5 -5
  27. package/dist/generated/models/order-operator.d.ts.map +1 -1
  28. package/dist/generated/models/order-operator.js +7 -9
  29. package/dist/generated/models/order-type.d.ts +5 -5
  30. package/dist/generated/models/order-type.d.ts.map +1 -1
  31. package/dist/generated/models/order-type.js +7 -9
  32. package/dist/generated/models/plugin-extensibility-status.d.ts +6 -6
  33. package/dist/generated/models/plugin-extensibility-status.d.ts.map +1 -1
  34. package/dist/generated/models/plugin-extensibility-status.js +8 -10
  35. package/dist/generated/models/plugin-filter-operator.d.ts +6 -6
  36. package/dist/generated/models/plugin-filter-operator.d.ts.map +1 -1
  37. package/dist/generated/models/plugin-filter-operator.js +8 -10
  38. package/dist/generated/models/product-type.d.ts +9 -9
  39. package/dist/generated/models/product-type.d.ts.map +1 -1
  40. package/dist/generated/models/product-type.js +11 -13
  41. package/dist/generated/models/rate-change-status.d.ts +8 -8
  42. package/dist/generated/models/rate-change-status.d.ts.map +1 -1
  43. package/dist/generated/models/rate-change-status.js +10 -12
  44. package/dist/generated/models/roles.d.ts +11 -11
  45. package/dist/generated/models/roles.d.ts.map +1 -1
  46. package/dist/generated/models/roles.js +13 -15
  47. package/dist/generated/models/roles1.d.ts +11 -11
  48. package/dist/generated/models/roles1.d.ts.map +1 -1
  49. package/dist/generated/models/roles1.js +13 -15
  50. package/dist/generated/models/roles2.d.ts +11 -11
  51. package/dist/generated/models/roles2.d.ts.map +1 -1
  52. package/dist/generated/models/roles2.js +13 -15
  53. package/dist/generated/models/roles3.d.ts +11 -11
  54. package/dist/generated/models/roles3.d.ts.map +1 -1
  55. package/dist/generated/models/roles3.js +13 -15
  56. package/dist/generated/models/roles4.d.ts +11 -11
  57. package/dist/generated/models/roles4.d.ts.map +1 -1
  58. package/dist/generated/models/roles4.js +13 -15
  59. package/dist/generated/models/task-completion-status.d.ts +7 -7
  60. package/dist/generated/models/task-completion-status.d.ts.map +1 -1
  61. package/dist/generated/models/task-completion-status.js +9 -11
  62. package/dist/generated/models/workflow-status.d.ts +9 -9
  63. package/dist/generated/models/workflow-status.d.ts.map +1 -1
  64. package/dist/generated/models/workflow-status.js +11 -13
  65. package/package.deploy.json +1 -1
  66. package/package.json +1 -1
  67. package/src/extensibility/functions/project/managespace.ts +1 -1
  68. package/src/extensibility/types/workflow-step.ts +30 -58
  69. package/src/generated/models/checklist-recurrence-frequency.ts +8 -7
  70. package/src/generated/models/communication-type.ts +7 -6
  71. package/src/generated/models/configuration-setting-type.ts +8 -7
  72. package/src/generated/models/extensibility-status.ts +7 -6
  73. package/src/generated/models/field-type.ts +9 -8
  74. package/src/generated/models/filter-operator.ts +16 -15
  75. package/src/generated/models/lease-status.ts +13 -12
  76. package/src/generated/models/order-operator.ts +6 -5
  77. package/src/generated/models/order-type.ts +6 -5
  78. package/src/generated/models/plugin-extensibility-status.ts +7 -6
  79. package/src/generated/models/plugin-filter-operator.ts +7 -6
  80. package/src/generated/models/product-type.ts +10 -9
  81. package/src/generated/models/rate-change-status.ts +9 -8
  82. package/src/generated/models/roles.ts +12 -11
  83. package/src/generated/models/roles1.ts +12 -11
  84. package/src/generated/models/roles2.ts +12 -11
  85. package/src/generated/models/roles3.ts +12 -11
  86. package/src/generated/models/roles4.ts +12 -11
  87. package/src/generated/models/task-completion-status.ts +8 -7
  88. package/src/generated/models/workflow-status.ts +10 -9
@@ -12,18 +12,18 @@
12
12
  /**
13
13
  * Role code name
14
14
  * @export
15
- * @enum {string}
16
15
  */
17
- export declare enum Roles4 {
18
- GA = "GA",
19
- OA = "OA",
20
- SA = "SA",
21
- M = "M",
22
- O = "O",
23
- SM = "SM",
24
- P = "P",
25
- M2M = "M2M"
26
- }
16
+ export declare const Roles4: {
17
+ readonly GA: "GA";
18
+ readonly OA: "OA";
19
+ readonly SA: "SA";
20
+ readonly M: "M";
21
+ readonly O: "O";
22
+ readonly SM: "SM";
23
+ readonly P: "P";
24
+ readonly M2M: "M2M";
25
+ };
26
+ export type Roles4 = typeof Roles4[keyof typeof Roles4];
27
27
  export declare function instanceOfRoles4(value: any): boolean;
28
28
  export declare function Roles4FromJSON(json: any): Roles4;
29
29
  export declare function Roles4FromJSONTyped(json: any, ignoreDiscriminator: boolean): Roles4;
@@ -1 +1 @@
1
- {"version":3,"file":"roles4.d.ts","sourceRoot":"","sources":["../../../src/generated/models/roles4.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,oBAAY,MAAM;IACd,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,CAAC,MAAM;IACP,CAAC,MAAM;IACP,EAAE,OAAO;IACT,CAAC,MAAM;IACP,GAAG,QAAQ;CACd;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"}
1
+ {"version":3,"file":"roles4.d.ts","sourceRoot":"","sources":["../../../src/generated/models/roles4.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;CAST,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAGxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"}
@@ -17,23 +17,21 @@ exports.Roles4ToJSONTyped = exports.Roles4ToJSON = exports.Roles4FromJSONTyped =
17
17
  /**
18
18
  * Role code name
19
19
  * @export
20
- * @enum {string}
21
20
  */
22
- var Roles4;
23
- (function (Roles4) {
24
- Roles4["GA"] = "GA";
25
- Roles4["OA"] = "OA";
26
- Roles4["SA"] = "SA";
27
- Roles4["M"] = "M";
28
- Roles4["O"] = "O";
29
- Roles4["SM"] = "SM";
30
- Roles4["P"] = "P";
31
- Roles4["M2M"] = "M2M";
32
- })(Roles4 || (exports.Roles4 = Roles4 = {}));
21
+ exports.Roles4 = {
22
+ GA: 'GA',
23
+ OA: 'OA',
24
+ SA: 'SA',
25
+ M: 'M',
26
+ O: 'O',
27
+ SM: 'SM',
28
+ P: 'P',
29
+ M2M: 'M2M'
30
+ };
33
31
  function instanceOfRoles4(value) {
34
- for (const key in Roles4) {
35
- if (Object.prototype.hasOwnProperty.call(Roles4, key)) {
36
- if (Roles4[key] === value) {
32
+ for (const key in exports.Roles4) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.Roles4, key)) {
34
+ if (exports.Roles4[key] === value) {
37
35
  return true;
38
36
  }
39
37
  }
@@ -12,14 +12,14 @@
12
12
  /**
13
13
  * status of task
14
14
  * @export
15
- * @enum {string}
16
15
  */
17
- export declare enum TaskCompletionStatus {
18
- NOT_STARTED = "NOT_STARTED",
19
- IN_PROGRESS = "IN_PROGRESS",
20
- COMPLETE = "COMPLETE",
21
- OVERDUE = "OVERDUE"
22
- }
16
+ export declare const TaskCompletionStatus: {
17
+ readonly NOT_STARTED: "NOT_STARTED";
18
+ readonly IN_PROGRESS: "IN_PROGRESS";
19
+ readonly COMPLETE: "COMPLETE";
20
+ readonly OVERDUE: "OVERDUE";
21
+ };
22
+ export type TaskCompletionStatus = typeof TaskCompletionStatus[keyof typeof TaskCompletionStatus];
23
23
  export declare function instanceOfTaskCompletionStatus(value: any): boolean;
24
24
  export declare function TaskCompletionStatusFromJSON(json: any): TaskCompletionStatus;
25
25
  export declare function TaskCompletionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskCompletionStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"task-completion-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/task-completion-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,oBAAY,oBAAoB;IAC5B,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACtB;AAGD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
1
+ {"version":3,"file":"task-completion-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/task-completion-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;CAKvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
@@ -17,19 +17,17 @@ exports.TaskCompletionStatusToJSONTyped = exports.TaskCompletionStatusToJSON = e
17
17
  /**
18
18
  * status of task
19
19
  * @export
20
- * @enum {string}
21
20
  */
22
- var TaskCompletionStatus;
23
- (function (TaskCompletionStatus) {
24
- TaskCompletionStatus["NOT_STARTED"] = "NOT_STARTED";
25
- TaskCompletionStatus["IN_PROGRESS"] = "IN_PROGRESS";
26
- TaskCompletionStatus["COMPLETE"] = "COMPLETE";
27
- TaskCompletionStatus["OVERDUE"] = "OVERDUE";
28
- })(TaskCompletionStatus || (exports.TaskCompletionStatus = TaskCompletionStatus = {}));
21
+ exports.TaskCompletionStatus = {
22
+ NOT_STARTED: 'NOT_STARTED',
23
+ IN_PROGRESS: 'IN_PROGRESS',
24
+ COMPLETE: 'COMPLETE',
25
+ OVERDUE: 'OVERDUE'
26
+ };
29
27
  function instanceOfTaskCompletionStatus(value) {
30
- for (const key in TaskCompletionStatus) {
31
- if (Object.prototype.hasOwnProperty.call(TaskCompletionStatus, key)) {
32
- if (TaskCompletionStatus[key] === value) {
28
+ for (const key in exports.TaskCompletionStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(exports.TaskCompletionStatus, key)) {
30
+ if (exports.TaskCompletionStatus[key] === value) {
33
31
  return true;
34
32
  }
35
33
  }
@@ -12,16 +12,16 @@
12
12
  /**
13
13
  * The status of the workflow
14
14
  * @export
15
- * @enum {string}
16
15
  */
17
- export declare enum WorkflowStatus {
18
- NOT_READY = "NOT_READY",
19
- READY = "READY",
20
- IN_PROGRESS = "IN_PROGRESS",
21
- SUCCESS = "SUCCESS",
22
- FAILED = "FAILED",
23
- WAIT_FOR_MANUAL_INPUT = "WAIT_FOR_MANUAL_INPUT"
24
- }
16
+ export declare const WorkflowStatus: {
17
+ readonly NOT_READY: "NOT_READY";
18
+ readonly READY: "READY";
19
+ readonly IN_PROGRESS: "IN_PROGRESS";
20
+ readonly SUCCESS: "SUCCESS";
21
+ readonly FAILED: "FAILED";
22
+ readonly WAIT_FOR_MANUAL_INPUT: "WAIT_FOR_MANUAL_INPUT";
23
+ };
24
+ export type WorkflowStatus = typeof WorkflowStatus[keyof typeof WorkflowStatus];
25
25
  export declare function instanceOfWorkflowStatus(value: any): boolean;
26
26
  export declare function WorkflowStatusFromJSON(json: any): WorkflowStatus;
27
27
  export declare function WorkflowStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/workflow-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,oBAAY,cAAc;IACtB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,qBAAqB,0BAA0B;CAClD;AAGD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS5D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAEnG;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,GAAG,CAEvE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAElG"}
1
+ {"version":3,"file":"workflow-status.d.ts","sourceRoot":"","sources":["../../../src/generated/models/workflow-status.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAGhF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS5D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAEnG;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,GAAG,CAEvE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAElG"}
@@ -17,21 +17,19 @@ exports.WorkflowStatusToJSONTyped = exports.WorkflowStatusToJSON = exports.Workf
17
17
  /**
18
18
  * The status of the workflow
19
19
  * @export
20
- * @enum {string}
21
20
  */
22
- var WorkflowStatus;
23
- (function (WorkflowStatus) {
24
- WorkflowStatus["NOT_READY"] = "NOT_READY";
25
- WorkflowStatus["READY"] = "READY";
26
- WorkflowStatus["IN_PROGRESS"] = "IN_PROGRESS";
27
- WorkflowStatus["SUCCESS"] = "SUCCESS";
28
- WorkflowStatus["FAILED"] = "FAILED";
29
- WorkflowStatus["WAIT_FOR_MANUAL_INPUT"] = "WAIT_FOR_MANUAL_INPUT";
30
- })(WorkflowStatus || (exports.WorkflowStatus = WorkflowStatus = {}));
21
+ exports.WorkflowStatus = {
22
+ NOT_READY: 'NOT_READY',
23
+ READY: 'READY',
24
+ IN_PROGRESS: 'IN_PROGRESS',
25
+ SUCCESS: 'SUCCESS',
26
+ FAILED: 'FAILED',
27
+ WAIT_FOR_MANUAL_INPUT: 'WAIT_FOR_MANUAL_INPUT'
28
+ };
31
29
  function instanceOfWorkflowStatus(value) {
32
- for (const key in WorkflowStatus) {
33
- if (Object.prototype.hasOwnProperty.call(WorkflowStatus, key)) {
34
- if (WorkflowStatus[key] === value) {
30
+ for (const key in exports.WorkflowStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(exports.WorkflowStatus, key)) {
32
+ if (exports.WorkflowStatus[key] === value) {
35
33
  return true;
36
34
  }
37
35
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.84",
3
+ "version": "0.1.88",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.87",
3
+ "version": "0.1.89",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -94,6 +94,6 @@ export namespace ManageSpace {
94
94
 
95
95
  export class AssetUpdated implements ExtPlugin {
96
96
  responseType!: any;
97
- payload!: { asset: Asset };
97
+ payload!: { asset: any };
98
98
  }
99
99
  }
@@ -7,64 +7,36 @@ export type WorkflowStepBasePayload = {
7
7
  instanceId: string;
8
8
  };
9
9
 
10
- export type WorkflowStepDelay =
11
- | {
12
- weeks: number;
13
- days?: number;
14
- setHour: never;
15
- setMinute: never;
16
- hours?: number;
17
- minutes?: number;
18
- seconds?: number;
19
- }
20
- | {
21
- weeks: number;
22
- days?: number;
23
- setHour?: number;
24
- setMinute?: number;
25
- hours: never;
26
- minutes: never;
27
- seconds: never;
28
- }
29
- | {
30
- weeks?: number;
31
- days: number;
32
- setHour: never;
33
- setMinute: never;
34
- hours?: number;
35
- minutes?: number;
36
- seconds?: number;
37
- }
38
- | {
39
- weeks?: number;
40
- days: number;
41
- setHour?: number;
42
- setMinute?: number;
43
- hours: never;
44
- minutes: never;
45
- seconds: never;
46
- }
47
- | {
48
- weeks?: number;
49
- days?: number;
50
- hours: number;
51
- minutes?: number;
52
- seconds?: number;
53
- }
54
- | {
55
- weeks?: number;
56
- days?: number;
57
- hours?: number;
58
- minutes: number;
59
- seconds?: number;
60
- }
61
- | {
62
- weeks?: number;
63
- days?: number;
64
- hours?: number;
65
- minutes?: number;
66
- seconds: number;
67
- };
10
+ type AtLeastOne<T, Keys extends keyof T = keyof T> = Keys extends keyof T
11
+ ? Required<Pick<T, Keys>> & Partial<Omit<T, Keys>>
12
+ : never;
13
+
14
+ type BaseTimeFields = {
15
+ weeks: number;
16
+ days: number;
17
+ hours: number;
18
+ minutes: number;
19
+ seconds: number;
20
+ };
21
+
22
+ // When using relative time (hours/minutes)
23
+ type RelativeDelay = AtLeastOne<BaseTimeFields> & {
24
+ setHour?: never;
25
+ setMinute?: never;
26
+ };
27
+
28
+ // When using absolute time (setHour/setMinute) - requires days or weeks
29
+ type AbsoluteDelayWithDays = AtLeastOne<
30
+ Pick<BaseTimeFields, 'days' | 'weeks' | 'seconds'>,
31
+ 'days' | 'weeks'
32
+ > & {
33
+ setHour?: number;
34
+ setMinute?: number;
35
+ hours?: never;
36
+ minutes?: never;
37
+ };
38
+
39
+ type WorkflowStepDelay = RelativeDelay | AbsoluteDelayWithDays;
68
40
 
69
41
  export type WorkflowStepReturnType<T extends string = DefaultPorts, A = null> =
70
42
  | ({
@@ -12,17 +12,18 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * Frequency of checklist recurring
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum ChecklistRecurrenceFrequency {
21
- DAILY = 'DAILY',
22
- WEEKLY = 'WEEKLY',
23
- MONTHLY = 'MONTHLY',
24
- YEARLY = 'YEARLY'
25
- }
20
+ export const ChecklistRecurrenceFrequency = {
21
+ DAILY: 'DAILY',
22
+ WEEKLY: 'WEEKLY',
23
+ MONTHLY: 'MONTHLY',
24
+ YEARLY: 'YEARLY'
25
+ } as const;
26
+ export type ChecklistRecurrenceFrequency = typeof ChecklistRecurrenceFrequency[keyof typeof ChecklistRecurrenceFrequency];
26
27
 
27
28
 
28
29
  export function instanceOfChecklistRecurrenceFrequency(value: any): boolean {
@@ -12,16 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The form of communication
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum CommunicationType {
21
- SMS = 'SMS',
22
- EMAIL = 'EMAIL',
23
- PHONE = 'PHONE'
24
- }
20
+ export const CommunicationType = {
21
+ SMS: 'SMS',
22
+ EMAIL: 'EMAIL',
23
+ PHONE: 'PHONE'
24
+ } as const;
25
+ export type CommunicationType = typeof CommunicationType[keyof typeof CommunicationType];
25
26
 
26
27
 
27
28
  export function instanceOfCommunicationType(value: any): boolean {
@@ -12,17 +12,18 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * Number for Configuration
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum ConfigurationSettingType {
21
- BOOLEAN = 'BOOLEAN',
22
- STRING = 'STRING',
23
- NUMBER = 'NUMBER',
24
- JSON = 'JSON'
25
- }
20
+ export const ConfigurationSettingType = {
21
+ BOOLEAN: 'BOOLEAN',
22
+ STRING: 'STRING',
23
+ NUMBER: 'NUMBER',
24
+ JSON: 'JSON'
25
+ } as const;
26
+ export type ConfigurationSettingType = typeof ConfigurationSettingType[keyof typeof ConfigurationSettingType];
26
27
 
27
28
 
28
29
  export function instanceOfConfigurationSettingType(value: any): boolean {
@@ -12,16 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The status of the workflow
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum ExtensibilityStatus {
21
- IN_PROGRESS = 'IN_PROGRESS',
22
- SUCCESS = 'SUCCESS',
23
- FAILED = 'FAILED'
24
- }
20
+ export const ExtensibilityStatus = {
21
+ IN_PROGRESS: 'IN_PROGRESS',
22
+ SUCCESS: 'SUCCESS',
23
+ FAILED: 'FAILED'
24
+ } as const;
25
+ export type ExtensibilityStatus = typeof ExtensibilityStatus[keyof typeof ExtensibilityStatus];
25
26
 
26
27
 
27
28
  export function instanceOfExtensibilityStatus(value: any): boolean {
@@ -12,18 +12,19 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The type of the field
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum FieldType {
21
- text = 'text',
22
- signature = 'signature',
23
- initials = 'initials',
24
- date = 'date',
25
- phone = 'phone'
26
- }
20
+ export const FieldType = {
21
+ text: 'text',
22
+ signature: 'signature',
23
+ initials: 'initials',
24
+ date: 'date',
25
+ phone: 'phone'
26
+ } as const;
27
+ export type FieldType = typeof FieldType[keyof typeof FieldType];
27
28
 
28
29
 
29
30
  export function instanceOfFieldType(value: any): boolean {
@@ -12,25 +12,26 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The operator to use when filtering
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum FilterOperator {
21
- contains = 'contains',
22
- endsWith = 'endsWith',
23
- equals = 'equals',
24
- gt = 'gt',
25
- gte = 'gte',
26
- in = 'in',
27
- lt = 'lt',
28
- lte = 'lte',
29
- not = 'not',
30
- notIn = 'notIn',
31
- search = 'search',
32
- startsWith = 'startsWith'
33
- }
20
+ export const FilterOperator = {
21
+ contains: 'contains',
22
+ endsWith: 'endsWith',
23
+ equals: 'equals',
24
+ gt: 'gt',
25
+ gte: 'gte',
26
+ in: 'in',
27
+ lt: 'lt',
28
+ lte: 'lte',
29
+ not: 'not',
30
+ notIn: 'notIn',
31
+ search: 'search',
32
+ startsWith: 'startsWith'
33
+ } as const;
34
+ export type FilterOperator = typeof FilterOperator[keyof typeof FilterOperator];
34
35
 
35
36
 
36
37
  export function instanceOfFilterOperator(value: any): boolean {
@@ -12,22 +12,23 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The status of the asset
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum LeaseStatus {
21
- AVAILABLE = 'AVAILABLE',
22
- RESERVED = 'RESERVED',
23
- OCCUPIED = 'OCCUPIED',
24
- UNDER_MAINTENANCE = 'UNDER_MAINTENANCE',
25
- DELINQUENT = 'DELINQUENT',
26
- AUCTION = 'AUCTION',
27
- LIEN = 'LIEN',
28
- FUTURE_BOOKED = 'FUTURE_BOOKED',
29
- MOVE_OUT_INTENDED = 'MOVE_OUT_INTENDED'
30
- }
20
+ export const LeaseStatus = {
21
+ AVAILABLE: 'AVAILABLE',
22
+ RESERVED: 'RESERVED',
23
+ OCCUPIED: 'OCCUPIED',
24
+ UNDER_MAINTENANCE: 'UNDER_MAINTENANCE',
25
+ DELINQUENT: 'DELINQUENT',
26
+ AUCTION: 'AUCTION',
27
+ LIEN: 'LIEN',
28
+ FUTURE_BOOKED: 'FUTURE_BOOKED',
29
+ MOVE_OUT_INTENDED: 'MOVE_OUT_INTENDED'
30
+ } as const;
31
+ export type LeaseStatus = typeof LeaseStatus[keyof typeof LeaseStatus];
31
32
 
32
33
 
33
34
  export function instanceOfLeaseStatus(value: any): boolean {
@@ -12,15 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The order to sort by
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum OrderOperator {
21
- asc = 'asc',
22
- desc = 'desc'
23
- }
20
+ export const OrderOperator = {
21
+ asc: 'asc',
22
+ desc: 'desc'
23
+ } as const;
24
+ export type OrderOperator = typeof OrderOperator[keyof typeof OrderOperator];
24
25
 
25
26
 
26
27
  export function instanceOfOrderOperator(value: any): boolean {
@@ -12,15 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The type of the order (e.g., Fee, Merchandise)
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum OrderType {
21
- FEE = 'FEE',
22
- MERCHANDISE = 'MERCHANDISE'
23
- }
20
+ export const OrderType = {
21
+ FEE: 'FEE',
22
+ MERCHANDISE: 'MERCHANDISE'
23
+ } as const;
24
+ export type OrderType = typeof OrderType[keyof typeof OrderType];
24
25
 
25
26
 
26
27
  export function instanceOfOrderType(value: any): boolean {
@@ -12,16 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The status of the workflow
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum PluginExtensibilityStatus {
21
- IN_PROGRESS = 'IN_PROGRESS',
22
- SUCCESS = 'SUCCESS',
23
- FAILED = 'FAILED'
24
- }
20
+ export const PluginExtensibilityStatus = {
21
+ IN_PROGRESS: 'IN_PROGRESS',
22
+ SUCCESS: 'SUCCESS',
23
+ FAILED: 'FAILED'
24
+ } as const;
25
+ export type PluginExtensibilityStatus = typeof PluginExtensibilityStatus[keyof typeof PluginExtensibilityStatus];
25
26
 
26
27
 
27
28
  export function instanceOfPluginExtensibilityStatus(value: any): boolean {
@@ -12,16 +12,17 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+
15
16
  /**
16
17
  * The operator to use when filtering
17
18
  * @export
18
- * @enum {string}
19
19
  */
20
- export enum PluginFilterOperator {
21
- equals = 'equals',
22
- gt = 'gt',
23
- lt = 'lt'
24
- }
20
+ export const PluginFilterOperator = {
21
+ equals: 'equals',
22
+ gt: 'gt',
23
+ lt: 'lt'
24
+ } as const;
25
+ export type PluginFilterOperator = typeof PluginFilterOperator[keyof typeof PluginFilterOperator];
25
26
 
26
27
 
27
28
  export function instanceOfPluginFilterOperator(value: any): boolean {