@camunda8/sdk 8.4.0 → 8.4.1

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 (220) hide show
  1. package/.eslintrc.json +34 -0
  2. package/CHANGELOG.md +61 -21
  3. package/CODE_OF_CONDUCT.md +73 -0
  4. package/CONTRIBUTING.md +116 -0
  5. package/LICENSE +3 -3
  6. package/README.md +229 -33
  7. package/dist/admin/index.d.ts +2 -0
  8. package/dist/admin/index.js +30 -0
  9. package/dist/admin/index.js.map +1 -0
  10. package/dist/admin/lib/AdminApiClient.d.ts +121 -0
  11. package/dist/admin/lib/AdminApiClient.js +254 -0
  12. package/dist/admin/lib/AdminApiClient.js.map +1 -0
  13. package/dist/admin/lib/AdminDto.d.ts +98 -0
  14. package/dist/admin/lib/AdminDto.js +3 -0
  15. package/dist/admin/lib/AdminDto.js.map +1 -0
  16. package/dist/c8/index.d.ts +42 -0
  17. package/dist/c8/index.js +95 -0
  18. package/dist/c8/index.js.map +1 -0
  19. package/dist/index.d.ts +15 -14
  20. package/dist/index.js +14 -16
  21. package/dist/index.js.map +1 -1
  22. package/dist/lib/CertificateAuthority.d.ts +2 -0
  23. package/dist/lib/CertificateAuthority.js +15 -0
  24. package/dist/lib/CertificateAuthority.js.map +1 -0
  25. package/dist/lib/ClientConstructor.d.ts +6 -0
  26. package/dist/lib/ClientConstructor.js +3 -0
  27. package/dist/lib/ClientConstructor.js.map +1 -0
  28. package/dist/lib/Configuration.d.ts +113 -0
  29. package/dist/lib/Configuration.js +367 -0
  30. package/dist/lib/Configuration.js.map +1 -0
  31. package/dist/lib/ConstructOAuthProvider.d.ts +3 -0
  32. package/dist/lib/ConstructOAuthProvider.js +14 -0
  33. package/dist/lib/ConstructOAuthProvider.js.map +1 -0
  34. package/dist/lib/CreateUserAgentString.d.ts +2 -0
  35. package/dist/lib/CreateUserAgentString.js +11 -0
  36. package/dist/lib/CreateUserAgentString.js.map +1 -0
  37. package/dist/lib/Delay.d.ts +1 -0
  38. package/dist/lib/Delay.js +6 -0
  39. package/dist/lib/Delay.js.map +1 -0
  40. package/dist/lib/EnvironmentSetup.d.ts +11 -0
  41. package/dist/lib/EnvironmentSetup.js +35 -0
  42. package/dist/lib/EnvironmentSetup.js.map +1 -0
  43. package/dist/lib/GetPackageVersion.d.ts +1 -0
  44. package/dist/lib/GetPackageVersion.js +32 -0
  45. package/dist/lib/GetPackageVersion.js.map +1 -0
  46. package/dist/lib/LosslessJsonParser.d.ts +103 -0
  47. package/dist/lib/LosslessJsonParser.js +252 -0
  48. package/dist/lib/LosslessJsonParser.js.map +1 -0
  49. package/dist/lib/RequireConfiguration.d.ts +2 -0
  50. package/dist/lib/RequireConfiguration.js +11 -0
  51. package/dist/lib/RequireConfiguration.js.map +1 -0
  52. package/dist/lib/SuppressZeebeLogging.d.ts +2 -0
  53. package/dist/lib/SuppressZeebeLogging.js +14 -0
  54. package/dist/lib/SuppressZeebeLogging.js.map +1 -0
  55. package/dist/lib/ValueOrDefault.d.ts +1 -0
  56. package/dist/lib/ValueOrDefault.js +8 -0
  57. package/dist/lib/ValueOrDefault.js.map +1 -0
  58. package/dist/lib/index.d.ts +12 -0
  59. package/dist/lib/index.js +32 -0
  60. package/dist/lib/index.js.map +1 -0
  61. package/dist/modeler/index.d.ts +2 -0
  62. package/dist/modeler/index.js +30 -0
  63. package/dist/modeler/index.js.map +1 -0
  64. package/dist/modeler/lib/ModelerAPIClient.d.ts +210 -0
  65. package/dist/modeler/lib/ModelerAPIClient.js +417 -0
  66. package/dist/modeler/lib/ModelerAPIClient.js.map +1 -0
  67. package/dist/modeler/lib/ModelerDto.d.ts +187 -0
  68. package/dist/modeler/lib/ModelerDto.js +3 -0
  69. package/dist/modeler/lib/ModelerDto.js.map +1 -0
  70. package/dist/oauth/index.d.ts +15 -0
  71. package/dist/oauth/index.js +8 -0
  72. package/dist/oauth/index.js.map +1 -0
  73. package/dist/oauth/lib/IOAuthProvider.d.ts +4 -0
  74. package/dist/oauth/lib/IOAuthProvider.js +3 -0
  75. package/dist/oauth/lib/IOAuthProvider.js.map +1 -0
  76. package/dist/oauth/lib/NullAuthProvider.d.ts +5 -0
  77. package/dist/oauth/lib/NullAuthProvider.js +16 -0
  78. package/dist/oauth/lib/NullAuthProvider.js.map +1 -0
  79. package/dist/oauth/lib/OAuthProvider.d.ts +44 -0
  80. package/dist/oauth/lib/OAuthProvider.js +316 -0
  81. package/dist/oauth/lib/OAuthProvider.js.map +1 -0
  82. package/dist/operate/index.d.ts +2 -0
  83. package/dist/operate/index.js +30 -0
  84. package/dist/operate/index.js.map +1 -0
  85. package/dist/operate/lib/OperateApiClient.d.ts +204 -0
  86. package/dist/operate/lib/OperateApiClient.js +440 -0
  87. package/dist/operate/lib/OperateApiClient.js.map +1 -0
  88. package/dist/operate/lib/OperateDto.d.ts +126 -0
  89. package/dist/operate/lib/OperateDto.js +125 -0
  90. package/dist/operate/lib/OperateDto.js.map +1 -0
  91. package/dist/operate/lib/TestableOperateApiClient.d.ts +7 -0
  92. package/dist/operate/lib/TestableOperateApiClient.js +15 -0
  93. package/dist/operate/lib/TestableOperateApiClient.js.map +1 -0
  94. package/dist/operate/lib/parseSearchResults.d.ts +4 -0
  95. package/dist/operate/lib/parseSearchResults.js +26 -0
  96. package/dist/operate/lib/parseSearchResults.js.map +1 -0
  97. package/dist/optimize/index.d.ts +2 -0
  98. package/dist/optimize/index.js +30 -0
  99. package/dist/optimize/index.js.map +1 -0
  100. package/dist/optimize/lib/APIObjects.d.ts +191 -0
  101. package/dist/optimize/lib/APIObjects.js +3 -0
  102. package/dist/optimize/lib/APIObjects.js.map +1 -0
  103. package/dist/optimize/lib/OptimizeApiClient.d.ts +269 -0
  104. package/dist/optimize/lib/OptimizeApiClient.js +410 -0
  105. package/dist/optimize/lib/OptimizeApiClient.js.map +1 -0
  106. package/dist/optimize/lib/ReportResults.d.ts +23 -0
  107. package/dist/optimize/lib/ReportResults.js +28 -0
  108. package/dist/optimize/lib/ReportResults.js.map +1 -0
  109. package/dist/proto/zeebe.proto +996 -0
  110. package/dist/tasklist/index.d.ts +2 -0
  111. package/dist/tasklist/index.js +30 -0
  112. package/dist/tasklist/index.js.map +1 -0
  113. package/dist/tasklist/lib/TasklistApiClient.d.ts +104 -0
  114. package/dist/tasklist/lib/TasklistApiClient.js +233 -0
  115. package/dist/tasklist/lib/TasklistApiClient.js.map +1 -0
  116. package/dist/tasklist/lib/TasklistDto.d.ts +147 -0
  117. package/dist/tasklist/lib/TasklistDto.js +26 -0
  118. package/dist/tasklist/lib/TasklistDto.js.map +1 -0
  119. package/dist/tasklist/lib/utils.d.ts +15 -0
  120. package/dist/tasklist/lib/utils.js +25 -0
  121. package/dist/tasklist/lib/utils.js.map +1 -0
  122. package/dist/zeebe/index.d.ts +21 -0
  123. package/dist/zeebe/index.js +53 -0
  124. package/dist/zeebe/index.js.map +1 -0
  125. package/dist/zeebe/lib/BpmnParser.d.ts +38 -0
  126. package/dist/zeebe/lib/BpmnParser.js +274 -0
  127. package/dist/zeebe/lib/BpmnParser.js.map +1 -0
  128. package/dist/zeebe/lib/ConnectionFactory.d.ts +25 -0
  129. package/dist/zeebe/lib/ConnectionFactory.js +43 -0
  130. package/dist/zeebe/lib/ConnectionFactory.js.map +1 -0
  131. package/dist/zeebe/lib/ConnectionStatusEvent.d.ts +6 -0
  132. package/dist/zeebe/lib/ConnectionStatusEvent.js +10 -0
  133. package/dist/zeebe/lib/ConnectionStatusEvent.js.map +1 -0
  134. package/dist/zeebe/lib/GetPackageVersion.d.ts +1 -0
  135. package/dist/zeebe/lib/GetPackageVersion.js +32 -0
  136. package/dist/zeebe/lib/GetPackageVersion.js.map +1 -0
  137. package/dist/zeebe/lib/GrpcClient.d.ts +75 -0
  138. package/dist/zeebe/lib/GrpcClient.js +467 -0
  139. package/dist/zeebe/lib/GrpcClient.js.map +1 -0
  140. package/dist/zeebe/lib/GrpcError.d.ts +19 -0
  141. package/dist/zeebe/lib/GrpcError.js +23 -0
  142. package/dist/zeebe/lib/GrpcError.js.map +1 -0
  143. package/dist/zeebe/lib/GrpcMiddleware.d.ts +21 -0
  144. package/dist/zeebe/lib/GrpcMiddleware.js +78 -0
  145. package/dist/zeebe/lib/GrpcMiddleware.js.map +1 -0
  146. package/dist/zeebe/lib/MockStdOut.d.ts +7 -0
  147. package/dist/zeebe/lib/MockStdOut.js +19 -0
  148. package/dist/zeebe/lib/MockStdOut.js.map +1 -0
  149. package/dist/zeebe/lib/Queue.d.ts +8 -0
  150. package/dist/zeebe/lib/Queue.js +15 -0
  151. package/dist/zeebe/lib/Queue.js.map +1 -0
  152. package/dist/zeebe/lib/SimpleLogger.d.ts +8 -0
  153. package/dist/zeebe/lib/SimpleLogger.js +47 -0
  154. package/dist/zeebe/lib/SimpleLogger.js.map +1 -0
  155. package/dist/zeebe/lib/StatefulLogInterceptor.d.ts +29 -0
  156. package/dist/zeebe/lib/StatefulLogInterceptor.js +81 -0
  157. package/dist/zeebe/lib/StatefulLogInterceptor.js.map +1 -0
  158. package/dist/zeebe/lib/TypedEmitter.d.ts +16 -0
  159. package/dist/zeebe/lib/TypedEmitter.js +24 -0
  160. package/dist/zeebe/lib/TypedEmitter.js.map +1 -0
  161. package/dist/zeebe/lib/ZBJsonLogger.d.ts +5 -0
  162. package/dist/zeebe/lib/ZBJsonLogger.js +12 -0
  163. package/dist/zeebe/lib/ZBJsonLogger.js.map +1 -0
  164. package/dist/zeebe/lib/ZBLogger.d.ts +20 -0
  165. package/dist/zeebe/lib/ZBLogger.js +134 -0
  166. package/dist/zeebe/lib/ZBLogger.js.map +1 -0
  167. package/dist/zeebe/lib/ZBWorkerBase.d.ts +78 -0
  168. package/dist/zeebe/lib/ZBWorkerBase.js +417 -0
  169. package/dist/zeebe/lib/ZBWorkerBase.js.map +1 -0
  170. package/dist/zeebe/lib/cancelProcesses.d.ts +1 -0
  171. package/dist/zeebe/lib/cancelProcesses.js +40 -0
  172. package/dist/zeebe/lib/cancelProcesses.js.map +1 -0
  173. package/dist/zeebe/lib/createUniqueTaskType.d.ts +0 -0
  174. package/dist/zeebe/lib/createUniqueTaskType.js +65 -0
  175. package/dist/zeebe/lib/createUniqueTaskType.js.map +1 -0
  176. package/dist/zeebe/lib/index.d.ts +2 -0
  177. package/dist/zeebe/lib/index.js +19 -0
  178. package/dist/zeebe/lib/index.js.map +1 -0
  179. package/dist/zeebe/lib/interfaces-1.0.d.ts +303 -0
  180. package/dist/zeebe/lib/interfaces-1.0.js +5 -0
  181. package/dist/zeebe/lib/interfaces-1.0.js.map +1 -0
  182. package/dist/zeebe/lib/interfaces-grpc-1.0.d.ts +679 -0
  183. package/dist/zeebe/lib/interfaces-grpc-1.0.js +22 -0
  184. package/dist/zeebe/lib/interfaces-grpc-1.0.js.map +1 -0
  185. package/dist/zeebe/lib/interfaces-published-contract.d.ts +67 -0
  186. package/dist/zeebe/lib/interfaces-published-contract.js +3 -0
  187. package/dist/zeebe/lib/interfaces-published-contract.js.map +1 -0
  188. package/dist/zeebe/lib/stringifyVariables.d.ts +18 -0
  189. package/dist/zeebe/lib/stringifyVariables.js +28 -0
  190. package/dist/zeebe/lib/stringifyVariables.js.map +1 -0
  191. package/dist/zeebe/lib/utils.d.ts +7 -0
  192. package/dist/zeebe/lib/utils.js +48 -0
  193. package/dist/zeebe/lib/utils.js.map +1 -0
  194. package/dist/zeebe/types.d.ts +3 -0
  195. package/dist/zeebe/types.js +20 -0
  196. package/dist/zeebe/types.js.map +1 -0
  197. package/dist/zeebe/zb/ZBWorker.d.ts +7 -0
  198. package/dist/zeebe/zb/ZBWorker.js +73 -0
  199. package/dist/zeebe/zb/ZBWorker.js.map +1 -0
  200. package/dist/zeebe/zb/ZeebeGrpcClient.d.ts +587 -0
  201. package/dist/zeebe/zb/ZeebeGrpcClient.js +1021 -0
  202. package/dist/zeebe/zb/ZeebeGrpcClient.js.map +1 -0
  203. package/package.json +120 -30
  204. package/release.config.js +49 -0
  205. package/renovate.json +9 -0
  206. package/smoke-test/package-lock.json +29 -0
  207. package/smoke-test/package.json +15 -0
  208. package/smoke-test/smoke-test.js +45 -0
  209. package/test-d/index.test-d.ts +31 -0
  210. package/.github/workflows/build-docs.yml +0 -39
  211. package/.github/workflows/tag-and-publish.yml +0 -48
  212. package/.prettierignore +0 -2
  213. package/img/video.png +0 -0
  214. package/jest.config.js +0 -5
  215. package/src/__tests__/exports.spec.ts +0 -7
  216. package/src/index.ts +0 -17
  217. package/tsconfig.build.json +0 -8
  218. package/tsconfig.json +0 -10
  219. package/tsconfig.tsbuildinfo +0 -1
  220. package/typedoc.json +0 -10
@@ -0,0 +1,126 @@
1
+ import { LosslessNumber } from 'lossless-json';
2
+ import { LosslessDto } from '../../lib';
3
+ export declare class DecisionDefinition extends LosslessDto {
4
+ id: string;
5
+ key: string;
6
+ decisionId: string;
7
+ name: string;
8
+ version: number;
9
+ decisionRequirementsId: string;
10
+ decisionRequirementsKey: string;
11
+ decisionRequirementsName: string;
12
+ decisionRequirementsVersion: number;
13
+ tenantId: string | undefined;
14
+ }
15
+ export declare class DecisionInstanceInput extends LosslessDto {
16
+ id: string;
17
+ name: string;
18
+ value: string;
19
+ }
20
+ export declare class DecisionInstanceOutput extends LosslessDto {
21
+ id: string;
22
+ name: string;
23
+ value: string;
24
+ ruleId: string;
25
+ ruleIndex: number;
26
+ }
27
+ export declare class DecisionInstance extends LosslessDto {
28
+ id: string;
29
+ key: string;
30
+ state: 'FAILED' | 'EVALUATED' | 'UNKNOWN' | 'UNSPECIFIED';
31
+ evaluationDate: string;
32
+ evaluationFailure: string;
33
+ processDefinitionKey: string;
34
+ decisionId: string;
35
+ decisionDefinitionId: string;
36
+ decisionName: string;
37
+ decisionVersion: number;
38
+ decisionType: 'DECISION_TABLE' | 'LITERAL_EXPRESSION' | 'UNSPECIFIED' | 'UNKNOWN';
39
+ result: string;
40
+ evaluatedInputs: DecisionInstanceInput[];
41
+ evaluatedOutputs: DecisionInstanceOutput[];
42
+ tenantId: string | undefined;
43
+ }
44
+ export declare class DecisionRequirements extends LosslessDto {
45
+ id: string;
46
+ key: string;
47
+ decisionRequirementsId: string;
48
+ name: string;
49
+ version: number;
50
+ resourceName: string;
51
+ tenantId: string | undefined;
52
+ }
53
+ export declare class ProcessDefinition extends LosslessDto {
54
+ /** ProcessDefinition key is a string in the SDK, but it's an int64 number in the database */
55
+ key: string;
56
+ name: string;
57
+ version: number;
58
+ bpmnProcessId: string;
59
+ }
60
+ export declare class ProcessInstance extends LosslessDto {
61
+ key: string;
62
+ processVersion: number;
63
+ bpmnProcessId: string;
64
+ parentKey?: string;
65
+ parentFlowNodeInstanceKey?: string;
66
+ startDate: string;
67
+ endDate: string;
68
+ state: 'ACTIVE' | 'COMPLETED' | 'CANCELED';
69
+ processDefinitionKey: string;
70
+ tenantId: string | undefined;
71
+ }
72
+ export declare class Incident extends LosslessDto {
73
+ key: string;
74
+ processDefinitionKey: LosslessNumber;
75
+ processInstanceKey: LosslessNumber;
76
+ type: 'UNSPECIFIED' | 'UNKNOWN' | 'IO_MAPPING_ERROR' | 'JOB_NO_RETRIES' | 'CONDITION_ERROR' | 'EXTRACT_VALUE_ERROR' | 'CALLED_ELEMENT_ERROR' | 'UNHANDLED_ERROR_EVENT' | 'MESSAGE_SIZE_EXCEEDED' | 'CALLED_DECISION_ERROR' | 'DECISION_EVALUATION_ERROR';
77
+ message: string;
78
+ creationTime: string;
79
+ state: 'ACTIVE' | 'RESOLVED';
80
+ jobKey: string;
81
+ tenantId: string | undefined;
82
+ }
83
+ export declare class FlownodeInstance extends LosslessDto {
84
+ key: string;
85
+ processInstanceKey: string;
86
+ startDate: string;
87
+ endDate: string;
88
+ incidentKey?: string;
89
+ type: 'UNSPECIFIED' | 'PROCESS' | 'SUB_PROCESS' | 'EVENT_SUB_PROCESS' | 'START_EVENT' | 'INTERMEDIATE_CATCH_EVENT' | 'INTERMEDIATE_THROW_EVENT' | 'BOUNDARY_EVENT' | 'END_EVENT' | 'SERVICE_TASK' | 'RECEIVE_TASK' | 'USER_TASK' | 'MANUAL_TASK' | 'TASK' | 'EXCLUSIVE_GATEWAY' | 'INCLUSIVE_GATEWAY' | 'PARALLEL_GATEWAY' | 'EVENT_BASED_GATEWAY' | 'SEQUENCE_FLOW' | 'MULTI_INSTANCE_BODY' | 'CALL_ACTIVITY' | 'BUSINESS_RULE_TASK' | 'SCRIPT_TASK' | 'SEND_TASK' | 'UNKNOWN';
90
+ state: 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
91
+ incident: boolean;
92
+ tenantId: string | undefined;
93
+ }
94
+ export declare class Variable extends LosslessDto {
95
+ key: string;
96
+ processInstanceKey: string;
97
+ scopeKey: string;
98
+ name: string;
99
+ value: string;
100
+ truncated: boolean;
101
+ }
102
+ export declare class ChangeStatus extends LosslessDto {
103
+ message: string;
104
+ deleted: string;
105
+ }
106
+ export declare class ProcessInstanceStatistics extends LosslessDto {
107
+ activityId: string;
108
+ active: string;
109
+ canceled: string;
110
+ incidents: string;
111
+ completed: string;
112
+ }
113
+ export interface Query<T> {
114
+ filter?: Partial<T>;
115
+ size?: number;
116
+ sort?: [{
117
+ field: keyof T;
118
+ order: 'ASC' | 'DESC';
119
+ }];
120
+ searchAfter?: unknown[];
121
+ }
122
+ export interface SearchResults<T> {
123
+ items: T[];
124
+ sortValues: unknown[];
125
+ total: string;
126
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ProcessInstanceStatistics = exports.ChangeStatus = exports.Variable = exports.FlownodeInstance = exports.Incident = exports.ProcessInstance = exports.ProcessDefinition = exports.DecisionRequirements = exports.DecisionInstance = exports.DecisionInstanceOutput = exports.DecisionInstanceInput = exports.DecisionDefinition = void 0;
10
+ const lib_1 = require("../../lib");
11
+ class DecisionDefinition extends lib_1.LosslessDto {
12
+ }
13
+ exports.DecisionDefinition = DecisionDefinition;
14
+ __decorate([
15
+ lib_1.Int64String
16
+ ], DecisionDefinition.prototype, "key", void 0);
17
+ __decorate([
18
+ lib_1.Int64String
19
+ ], DecisionDefinition.prototype, "decisionRequirementsKey", void 0);
20
+ class DecisionInstanceInput extends lib_1.LosslessDto {
21
+ }
22
+ exports.DecisionInstanceInput = DecisionInstanceInput;
23
+ class DecisionInstanceOutput extends lib_1.LosslessDto {
24
+ }
25
+ exports.DecisionInstanceOutput = DecisionInstanceOutput;
26
+ class DecisionInstance extends lib_1.LosslessDto {
27
+ }
28
+ exports.DecisionInstance = DecisionInstance;
29
+ __decorate([
30
+ lib_1.Int64String
31
+ ], DecisionInstance.prototype, "key", void 0);
32
+ __decorate([
33
+ lib_1.Int64String
34
+ ], DecisionInstance.prototype, "processDefinitionKey", void 0);
35
+ __decorate([
36
+ (0, lib_1.ChildDto)(DecisionInstanceOutput)
37
+ ], DecisionInstance.prototype, "evaluatedOutputs", void 0);
38
+ class DecisionRequirements extends lib_1.LosslessDto {
39
+ }
40
+ exports.DecisionRequirements = DecisionRequirements;
41
+ __decorate([
42
+ lib_1.Int64String
43
+ ], DecisionRequirements.prototype, "key", void 0);
44
+ class ProcessDefinition extends lib_1.LosslessDto {
45
+ }
46
+ exports.ProcessDefinition = ProcessDefinition;
47
+ __decorate([
48
+ lib_1.Int64String
49
+ ], ProcessDefinition.prototype, "key", void 0);
50
+ class ProcessInstance extends lib_1.LosslessDto {
51
+ }
52
+ exports.ProcessInstance = ProcessInstance;
53
+ __decorate([
54
+ lib_1.Int64String
55
+ ], ProcessInstance.prototype, "key", void 0);
56
+ __decorate([
57
+ lib_1.Int64String
58
+ ], ProcessInstance.prototype, "parentKey", void 0);
59
+ __decorate([
60
+ lib_1.Int64String
61
+ ], ProcessInstance.prototype, "parentFlowNodeInstanceKey", void 0);
62
+ __decorate([
63
+ lib_1.Int64String
64
+ ], ProcessInstance.prototype, "processDefinitionKey", void 0);
65
+ class Incident extends lib_1.LosslessDto {
66
+ }
67
+ exports.Incident = Incident;
68
+ __decorate([
69
+ lib_1.Int64String
70
+ ], Incident.prototype, "key", void 0);
71
+ __decorate([
72
+ lib_1.Int64String
73
+ ], Incident.prototype, "processDefinitionKey", void 0);
74
+ __decorate([
75
+ lib_1.Int64String
76
+ ], Incident.prototype, "processInstanceKey", void 0);
77
+ __decorate([
78
+ lib_1.Int64String
79
+ ], Incident.prototype, "jobKey", void 0);
80
+ class FlownodeInstance extends lib_1.LosslessDto {
81
+ }
82
+ exports.FlownodeInstance = FlownodeInstance;
83
+ __decorate([
84
+ lib_1.Int64String
85
+ ], FlownodeInstance.prototype, "key", void 0);
86
+ __decorate([
87
+ lib_1.Int64String
88
+ ], FlownodeInstance.prototype, "processInstanceKey", void 0);
89
+ __decorate([
90
+ lib_1.Int64String
91
+ ], FlownodeInstance.prototype, "incidentKey", void 0);
92
+ class Variable extends lib_1.LosslessDto {
93
+ }
94
+ exports.Variable = Variable;
95
+ __decorate([
96
+ lib_1.Int64String
97
+ ], Variable.prototype, "key", void 0);
98
+ __decorate([
99
+ lib_1.Int64String
100
+ ], Variable.prototype, "processInstanceKey", void 0);
101
+ __decorate([
102
+ lib_1.Int64String
103
+ ], Variable.prototype, "scopeKey", void 0);
104
+ class ChangeStatus extends lib_1.LosslessDto {
105
+ }
106
+ exports.ChangeStatus = ChangeStatus;
107
+ __decorate([
108
+ lib_1.Int64String
109
+ ], ChangeStatus.prototype, "deleted", void 0);
110
+ class ProcessInstanceStatistics extends lib_1.LosslessDto {
111
+ }
112
+ exports.ProcessInstanceStatistics = ProcessInstanceStatistics;
113
+ __decorate([
114
+ lib_1.Int64String
115
+ ], ProcessInstanceStatistics.prototype, "active", void 0);
116
+ __decorate([
117
+ lib_1.Int64String
118
+ ], ProcessInstanceStatistics.prototype, "canceled", void 0);
119
+ __decorate([
120
+ lib_1.Int64String
121
+ ], ProcessInstanceStatistics.prototype, "incidents", void 0);
122
+ __decorate([
123
+ lib_1.Int64String
124
+ ], ProcessInstanceStatistics.prototype, "completed", void 0);
125
+ //# sourceMappingURL=OperateDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperateDto.js","sourceRoot":"","sources":["../../../src/operate/lib/OperateDto.ts"],"names":[],"mappings":";;;;;;;;;AAEA,mCAA8D;AAE9D,MAAa,kBAAmB,SAAQ,iBAAW;CAalD;AAbD,gDAaC;AAVA;IADC,iBAAW;+CACA;AAMZ;IADC,iBAAW;mEACoB;AAMjC,MAAa,qBAAsB,SAAQ,iBAAW;CAIrD;AAJD,sDAIC;AAED,MAAa,sBAAuB,SAAQ,iBAAW;CAMtD;AAND,wDAMC;AAED,MAAa,gBAAiB,SAAQ,iBAAW;CAuBhD;AAvBD,4CAuBC;AApBA;IADC,iBAAW;6CACA;AAKZ;IADC,iBAAW;8DACiB;AAa7B;IADC,IAAA,cAAQ,EAAC,sBAAsB,CAAC;0DACU;AAI5C,MAAa,oBAAqB,SAAQ,iBAAW;CASpD;AATD,oDASC;AANA;IADC,iBAAW;iDACA;AAQb,MAAa,iBAAkB,SAAQ,iBAAW;CAOjD;AAPD,8CAOC;AAJA;IADC,iBAAW;8CACA;AAMb,MAAa,eAAgB,SAAQ,iBAAW;CAiB/C;AAjBD,0CAiBC;AAfA;IADC,iBAAW;4CACA;AAIZ;IADC,iBAAW;kDACM;AAElB;IADC,iBAAW;kEACsB;AAOlC;IADC,iBAAW;6DACiB;AAI9B,MAAa,QAAS,SAAQ,iBAAW;CA0BxC;AA1BD,4BA0BC;AAxBA;IADC,iBAAW;qCACA;AAEZ;IADC,iBAAW;sDACyB;AAErC;IADC,iBAAW;oDACuB;AAkBnC;IADC,iBAAW;wCACG;AAIhB,MAAa,gBAAiB,SAAQ,iBAAW;CAwChD;AAxCD,4CAwCC;AAtCA;IADC,iBAAW;6CACA;AAEZ;IADC,iBAAW;4DACe;AAM3B;IADC,iBAAW;qDACQ;AAgCrB,MAAa,QAAS,SAAQ,iBAAW;CAYxC;AAZD,4BAYC;AAVA;IADC,iBAAW;qCACA;AAEZ;IADC,iBAAW;oDACe;AAE3B;IADC,iBAAW;0CACK;AAQlB,MAAa,YAAa,SAAQ,iBAAW;CAM5C;AAND,oCAMC;AADA;IADC,iBAAW;6CACI;AAGjB,MAAa,yBAA0B,SAAQ,iBAAW;CAezD;AAfD,8DAeC;AAVA;IADC,iBAAW;yDACG;AAGf;IADC,iBAAW;2DACK;AAGjB;IADC,iBAAW;4DACM;AAGlB;IADC,iBAAW;4DACM"}
@@ -0,0 +1,7 @@
1
+ import { ClientConstructor } from '../../lib';
2
+ import { OperateApiClient } from './OperateApiClient';
3
+ import { Query } from './OperateDto';
4
+ export declare class TestableOperateApiClient extends OperateApiClient {
5
+ constructor(options?: ClientConstructor);
6
+ addTenantIdToFilter<T extends Query<any>>(query: T, tenantId?: string): Query<any>;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestableOperateApiClient = void 0;
4
+ const OperateApiClient_1 = require("./OperateApiClient");
5
+ class TestableOperateApiClient extends OperateApiClient_1.OperateApiClient {
6
+ constructor(options) {
7
+ super(options);
8
+ }
9
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ addTenantIdToFilter(query, tenantId) {
11
+ return super.addTenantIdToFilter(query, tenantId);
12
+ }
13
+ }
14
+ exports.TestableOperateApiClient = TestableOperateApiClient;
15
+ //# sourceMappingURL=TestableOperateApiClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestableOperateApiClient.js","sourceRoot":"","sources":["../../../src/operate/lib/TestableOperateApiClient.ts"],"names":[],"mappings":";;;AAEA,yDAAqD;AAGrD,MAAa,wBAAyB,SAAQ,mCAAgB;IAC7D,YAAY,OAA2B;QACtC,KAAK,CAAC,OAAO,CAAC,CAAA;IACf,CAAC;IAED,8DAA8D;IAC9C,mBAAmB,CAClC,KAAQ,EACR,QAAiB;QAEjB,OAAO,KAAK,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAClD,CAAC;CACD;AAZD,4DAYC"}
@@ -0,0 +1,4 @@
1
+ import { SearchResults } from './OperateDto';
2
+ export declare function parseSearchResults<T>(json: string, dto: {
3
+ new (...args: any[]): T;
4
+ }): SearchResults<T>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseSearchResults = void 0;
4
+ const lossless_json_1 = require("lossless-json");
5
+ const lib_1 = require("../../lib");
6
+ function parseSearchResults(json,
7
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
+ dto) {
9
+ const parsedResult = (0, lossless_json_1.parse)(json);
10
+ // Assuming `parsedResult` matches the structure of `SearchResults<T>`
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ const items = parsedResult.items.map((item) => (0, lib_1.losslessParse)((0, lossless_json_1.stringify)(item), dto));
13
+ // Apply additional parsing or annotations if necessary
14
+ // For each item in the array, you could potentially apply the same or similar logic
15
+ // as in `losslessParse` if your items have properties that need special handling.
16
+ const total = parsedResult.total.toString(); // Or convert based on your needs
17
+ // Construct the final object, assuming `SearchResults` is a simple interface without methods
18
+ const result = {
19
+ items: items,
20
+ sortValues: parsedResult.sortValues, // Handle according to your needs
21
+ total,
22
+ };
23
+ return result;
24
+ }
25
+ exports.parseSearchResults = parseSearchResults;
26
+ //# sourceMappingURL=parseSearchResults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseSearchResults.js","sourceRoot":"","sources":["../../../src/operate/lib/parseSearchResults.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD,mCAAyC;AAIzC,SAAgB,kBAAkB,CACjC,IAAY;AACZ,8DAA8D;AAC9D,GAAgC;IAEhC,MAAM,YAAY,GAAG,IAAA,qBAAK,EAAC,IAAI,CAAqB,CAAA;IAEpD,sEAAsE;IACtE,8DAA8D;IAC9D,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAClD,IAAA,mBAAa,EAAC,IAAA,yBAAS,EAAC,IAAI,CAAW,EAAE,GAAG,CAAC,CAC7C,CAAA;IAED,uDAAuD;IACvD,oFAAoF;IACpF,kFAAkF;IAElF,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAA,CAAC,iCAAiC;IAE7E,6FAA6F;IAC7F,MAAM,MAAM,GAAqB;QAChC,KAAK,EAAE,KAAY;QACnB,UAAU,EAAE,YAAY,CAAC,UAAU,EAAE,iCAAiC;QACtE,KAAK;KACL,CAAA;IAED,OAAO,MAAM,CAAA;AACd,CAAC;AA3BD,gDA2BC"}
@@ -0,0 +1,2 @@
1
+ export { OptimizeApiClient } from './lib/OptimizeApiClient';
2
+ export * as OptimizeDto from './lib/APIObjects';
@@ -0,0 +1,30 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.OptimizeDto = exports.OptimizeApiClient = void 0;
27
+ var OptimizeApiClient_1 = require("./lib/OptimizeApiClient");
28
+ Object.defineProperty(exports, "OptimizeApiClient", { enumerable: true, get: function () { return OptimizeApiClient_1.OptimizeApiClient; } });
29
+ exports.OptimizeDto = __importStar(require("./lib/APIObjects"));
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/optimize/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA2D;AAAlD,sHAAA,iBAAiB,OAAA;AAE1B,gEAA+C"}
@@ -0,0 +1,191 @@
1
+ export type DashboardCollection = Array<{
2
+ id: string;
3
+ }>;
4
+ export type ReportCollection = Array<{
5
+ id: string;
6
+ }>;
7
+ export type SingleProcessReport = unknown;
8
+ export interface DashboardDefinition {
9
+ id: string;
10
+ exportEntityType: 'dashboard';
11
+ name: string;
12
+ sourceIndexVersion: number;
13
+ collectionId: null | string;
14
+ reports: Array<{
15
+ id: string;
16
+ }>;
17
+ availableFilters: Array<unknown>;
18
+ }
19
+ export interface ReportDataPage {
20
+ searchRequestId: string;
21
+ numberOfRecordsInResponse: number;
22
+ totalNumberOfRecords: number;
23
+ reportId: string;
24
+ data: ReportData[];
25
+ }
26
+ export interface ReportData {
27
+ processDefinitionKey: string;
28
+ processDefinitionId: string;
29
+ processInstanceId: string;
30
+ businessKey: string;
31
+ startDate: string;
32
+ endDate: string;
33
+ duration: number;
34
+ engineName: string;
35
+ tenantId: null;
36
+ variables: unknown;
37
+ }
38
+ export interface ReportDataExporter {
39
+ next: () => Promise<ReportDataPage>;
40
+ }
41
+ /**
42
+ * The object interface for CloudEvents 1.0.
43
+ * @see https://github.com/cloudevents/spec/blob/v1.0/spec.md
44
+ */
45
+ export interface CloudEventV1<T> extends CloudEventV1Attributes<T> {
46
+ /**
47
+ * [REQUIRED] Identifies the event. Producers MUST ensure that `source` + `id`
48
+ * is unique for each distinct event. If a duplicate event is re-sent (e.g. due
49
+ * to a network error) it MAY have the same `id`. Consumers MAY assume that
50
+ * Events with identical `source` and `id` are duplicates.
51
+ * @required Non-empty string. Unique within producer.
52
+ * @example An event counter maintained by the producer
53
+ * @example A UUID
54
+ */
55
+ id: string;
56
+ /**
57
+ * [REQUIRED] The version of the CloudEvents specification which the event
58
+ * uses. This enables the interpretation of the context. Compliant event
59
+ * producers MUST use a value of `1.0` when referring to this version of the
60
+ * specification.
61
+ * @required MUST be a non-empty string.
62
+ */
63
+ specversion: string;
64
+ }
65
+ export interface CloudEventV1Attributes<T> extends CloudEventV1OptionalAttributes<T> {
66
+ /**
67
+ * [REQUIRED] Identifies the context in which an event happened. Often this
68
+ * will include information such as the type of the event source, the
69
+ * organization publishing the event or the process that produced the event. The
70
+ * exact syntax and semantics behind the data encoded in the URI is defined by
71
+ * the event producer.
72
+ * Producers MUST ensure that `source` + `id` is unique for each distinct event.
73
+ * An application MAY assign a unique `source` to each distinct producer, which
74
+ * makes it easy to produce unique IDs since no other producer will have the same
75
+ * source. The application MAY use UUIDs, URNs, DNS authorities or an
76
+ * application-specific scheme to create unique `source` identifiers.
77
+ * A source MAY include more than one producer. In that case the producers MUST
78
+ * collaborate to ensure that `source` + `id` is unique for each distinct event.
79
+ * @required Non-empty URI-reference
80
+ */
81
+ source: string;
82
+ /**
83
+ * [REQUIRED] This attribute contains a value describing the type of event
84
+ * related to the originating occurrence. Often this attribute is used for
85
+ * routing, observability, policy enforcement, etc. The format of this is
86
+ * producer defined and might include information such as the version of the
87
+ * `type` - see
88
+ * [Versioning of Attributes in the Primer](primer.md#versioning-of-attributes)
89
+ * for more information.
90
+ * @required MUST be a non-empty string
91
+ * @should SHOULD be prefixed with a reverse-DNS name. The prefixed domain dictates the
92
+ * organization which defines the semantics of this event type.
93
+ * @example com.github.pull.create
94
+ * @example com.example.object.delete.v2
95
+ */
96
+ type: string;
97
+ }
98
+ export interface CloudEventV1OptionalAttributes<T> {
99
+ /**
100
+ * The following fields are optional.
101
+ */
102
+ /**
103
+ * [OPTIONAL] Content type of `data` value. This attribute enables `data` to
104
+ * carry any type of content, whereby format and encoding might differ from that
105
+ * of the chosen event format. For example, an event rendered using the
106
+ * [JSON envelope](./json-format.md#3-envelope) format might carry an XML payload
107
+ * in `data`, and the consumer is informed by this attribute being set to
108
+ * "application/xml". The rules for how `data` content is rendered for different
109
+ * `datacontenttype` values are defined in the event format specifications; for
110
+ * example, the JSON event format defines the relationship in
111
+ * [section 3.1](./json-format.md#31-handling-of-data).
112
+ */
113
+ datacontenttype?: string;
114
+ /**
115
+ * [OPTIONAL] Identifies the schema that `data` adheres to. Incompatible
116
+ * changes to the schema SHOULD be reflected by a different URI. See
117
+ * [Versioning of Attributes in the Primer](primer.md#versioning-of-attributes)
118
+ * for more information.
119
+ * If present, MUST be a non-empty URI.
120
+ */
121
+ dataschema?: string;
122
+ /**
123
+ * [OPTIONAL] This describes the subject of the event in the context of the
124
+ * event producer (identified by `source`). In publish-subscribe scenarios, a
125
+ * subscriber will typically subscribe to events emitted by a `source`, but the
126
+ * `source` identifier alone might not be sufficient as a qualifier for any
127
+ * specific event if the `source` context has internal sub-structure.
128
+ *
129
+ * Identifying the subject of the event in context metadata (opposed to only in
130
+ * the `data` payload) is particularly helpful in generic subscription filtering
131
+ * scenarios where middleware is unable to interpret the `data` content. In the
132
+ * above example, the subscriber might only be interested in blobs with names
133
+ * ending with '.jpg' or '.jpeg' and the `subject` attribute allows for
134
+ * constructing a simple and efficient string-suffix filter for that subset of
135
+ * events.
136
+ *
137
+ * If present, MUST be a non-empty string.
138
+ * @example "https://example.com/storage/tenant/container"
139
+ * @example "mynewfile.jpg"
140
+ */
141
+ subject?: string;
142
+ /**
143
+ * [OPTIONAL] Timestamp of when the occurrence happened. If the time of the
144
+ * occurrence cannot be determined then this attribute MAY be set to some other
145
+ * time (such as the current time) by the CloudEvents producer, however all
146
+ * producers for the same `source` MUST be consistent in this respect. In other
147
+ * words, either they all use the actual time of the occurrence or they all use
148
+ * the same algorithm to determine the value used.
149
+ * @example "2020-08-08T14:48:09.769Z"
150
+ */
151
+ time?: string;
152
+ /**
153
+ * [OPTIONAL] The event payload. This specification does not place any restriction
154
+ * on the type of this information. It is encoded into a media format which is
155
+ * specified by the datacontenttype attribute (e.g. application/json), and adheres
156
+ * to the dataschema format when those respective attributes are present.
157
+ */
158
+ data?: T;
159
+ /**
160
+ * [OPTIONAL] The event payload encoded as base64 data. This is used when the
161
+ * data is in binary form.
162
+ * @see https://github.com/cloudevents/spec/blob/v1.0/json-format.md#31-handling-of-data
163
+ */
164
+ data_base64?: string;
165
+ /**
166
+ * [OPTIONAL] CloudEvents extension attributes.
167
+ */
168
+ [key: string]: unknown;
169
+ }
170
+ export type VariableType = 'string' | 'short' | 'long' | 'double' | 'integer' | 'boolean' | 'date';
171
+ export interface Variable {
172
+ id: string;
173
+ name: string;
174
+ type: VariableType;
175
+ value: string;
176
+ processInstanceId: string;
177
+ processDefinitionKey: string;
178
+ }
179
+ export type EntityImportResponse = Array<{
180
+ id: string;
181
+ entityType: 'dashboard' | 'report';
182
+ }>;
183
+ export interface VariableLabel {
184
+ variableName: string;
185
+ variableType: VariableType;
186
+ variableLabel: string;
187
+ }
188
+ export interface VariableLabels {
189
+ definitionKey: string;
190
+ labels: VariableLabel[];
191
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=APIObjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"APIObjects.js","sourceRoot":"","sources":["../../../src/optimize/lib/APIObjects.ts"],"names":[],"mappings":""}