@camunda8/sdk 8.7.32 → 8.8.0

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 (54) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +134 -16
  3. package/backpressure/test.js +18 -0
  4. package/dist/c8/index.d.ts +23 -18
  5. package/dist/c8/index.js +63 -24
  6. package/dist/c8/index.js.map +1 -1
  7. package/dist/c8/lib/C8Dto.d.ts +5 -7
  8. package/dist/c8/lib/C8Dto.js +0 -146
  9. package/dist/c8/lib/C8Dto.js.map +1 -1
  10. package/dist/c8/lib/CamundaJobWorker.js +2 -2
  11. package/dist/c8/lib/CamundaJobWorker.js.map +1 -1
  12. package/dist/c8/lib/CamundaRestClient.d.ts +6 -6
  13. package/dist/c8/lib/CamundaRestClient.js +53 -7
  14. package/dist/c8/lib/CamundaRestClient.js.map +1 -1
  15. package/dist/c8/lib/OriginTracing.d.ts +11 -0
  16. package/dist/c8/lib/OriginTracing.js +101 -0
  17. package/dist/c8/lib/OriginTracing.js.map +1 -0
  18. package/dist/c8/lib/TrackedGot.d.ts +18 -0
  19. package/dist/c8/lib/TrackedGot.js +112 -0
  20. package/dist/c8/lib/TrackedGot.js.map +1 -0
  21. package/dist/index.d.ts +11 -10
  22. package/dist/index.js +12 -17
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/AsyncTrace.d.ts +1 -1
  25. package/dist/lib/AsyncTrace.js +2 -2
  26. package/dist/lib/AsyncTrace.js.map +1 -1
  27. package/dist/lib/CamundaClientConfigTranslator.d.ts +37 -0
  28. package/dist/lib/CamundaClientConfigTranslator.js +142 -0
  29. package/dist/lib/CamundaClientConfigTranslator.js.map +1 -0
  30. package/dist/lib/CamundaSupportLogger.d.ts +2 -2
  31. package/dist/lib/CamundaSupportLogger.js +7 -7
  32. package/dist/lib/CamundaSupportLogger.js.map +1 -1
  33. package/dist/lib/Configuration.d.ts +1 -1
  34. package/dist/lib/Configuration.js.map +1 -1
  35. package/dist/lib/GotErrors.d.ts +26 -3
  36. package/dist/lib/GotErrors.js +108 -13
  37. package/dist/lib/GotErrors.js.map +1 -1
  38. package/dist/lib/GotHooks.d.ts +3 -10
  39. package/dist/lib/GotHooks.js +10 -67
  40. package/dist/lib/GotHooks.js.map +1 -1
  41. package/dist/oca/lifters.d.ts +82 -0
  42. package/dist/oca/lifters.js +54 -0
  43. package/dist/oca/lifters.js.map +1 -0
  44. package/dist/operate/lib/OperateApiClient.js +7 -12
  45. package/dist/operate/lib/OperateApiClient.js.map +1 -1
  46. package/dist/zeebe/index.d.ts +0 -1
  47. package/dist/zeebe/index.js +0 -1
  48. package/dist/zeebe/index.js.map +1 -1
  49. package/package.json +2 -1
  50. package/smoke-test/smoke-test.js +3 -1
  51. package/backpressure/test.ts +0 -9
  52. package/dist/zeebe/zb/ZeebeRESTClient.d.ts +0 -46
  53. package/dist/zeebe/zb/ZeebeRESTClient.js +0 -103
  54. package/dist/zeebe/zb/ZeebeRESTClient.js.map +0 -1
@@ -33,26 +33,121 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.HTTPError = void 0;
36
+ exports.gotBeforeErrorHook = exports.HTTPError = void 0;
37
37
  const Got = __importStar(require("got"));
38
+ const got_1 = require("got");
39
+ const GotHooks_1 = require("./GotHooks");
40
+ const Defaults = {
41
+ status: 0,
42
+ title: '',
43
+ detail: '',
44
+ instance: '',
45
+ type: 'about:blank',
46
+ };
38
47
  class HTTPError extends Got.HTTPError {
39
- constructor(response) {
48
+ constructor({ response, method, url, message, }) {
40
49
  super(response);
50
+ this.type = 'about:blank';
51
+ this.method = method;
52
+ this.url = url;
53
+ this.originalMessage = message;
54
+ let details = Defaults;
41
55
  try {
42
- const details = JSON.parse(response?.body || '{}');
43
- this.statusCode = details.status;
56
+ details = JSON.parse(response?.body || '{}');
44
57
  }
45
- catch (e) {
46
- this.statusCode = 0;
47
- // Sometimes APIs return errors data in plain text (not JSON)
48
- // and sometimes we get back an HTML error page (for example: 502 Bad Gateway)
49
- // We want to extract and surface plain text errors
50
- // and ignore the HTML strings
51
- if (!(response.body ?? '<').startsWith('<')) {
52
- this.message += ` - ${response.body}`;
53
- }
58
+ catch {
59
+ // ignore JSON parse errors
60
+ }
61
+ this.statusCode = details.status;
62
+ this.title = details.title;
63
+ this.detail = details.detail;
64
+ this.instance = details.instance;
65
+ this.status = details.status;
66
+ // Sometimes APIs return errors data in plain text (not JSON)
67
+ // and sometimes we get back an HTML error page (for example: 502 Bad Gateway)
68
+ // We want to extract and surface plain text errors
69
+ // and ignore the HTML strings
70
+ if (!(response.body ?? '<').startsWith('<')) {
71
+ this.message += ` - ${response.body}`;
54
72
  }
55
73
  }
56
74
  }
57
75
  exports.HTTPError = HTTPError;
76
+ const gotBeforeErrorHook = (config) => (error) => {
77
+ const { request } = error;
78
+ const method = request?.options.method;
79
+ const url = request?.options.url.href;
80
+ let detail = '';
81
+ if (error instanceof got_1.HTTPError) {
82
+ error = new HTTPError({
83
+ response: error.response,
84
+ method,
85
+ url,
86
+ message: error.message,
87
+ });
88
+ try {
89
+ const details = JSON.parse(error.response?.body || '{detail:""}');
90
+ error.statusCode = details.status;
91
+ detail = details ?? '';
92
+ }
93
+ catch {
94
+ error.statusCode = 0;
95
+ }
96
+ }
97
+ const enhancedStack = error.options.context.stack?.split('\n');
98
+ error.source = enhancedStack ?? ['No enhanced stack trace available'];
99
+ error.message += ` (${method} ${url}). ${JSON.stringify(detail)}`;
100
+ if (enhancedStack) {
101
+ error.message += `. Enhanced stack trace available as error.source.`;
102
+ }
103
+ const structured = error.options.context.__stackTrace;
104
+ if (structured?.stacks?.length) {
105
+ ;
106
+ error.originalStack =
107
+ error.stack;
108
+ const synthesized = [
109
+ `${error.name}: ${error.message}`,
110
+ ...structured.stacks.map((s) => s.location),
111
+ `RequestId: ${structured.requestId}`,
112
+ structured.apiMethod ? `ApiMethod: ${structured.apiMethod}` : undefined,
113
+ ]
114
+ .filter(Boolean)
115
+ .join('\n');
116
+ error.stack = synthesized;
117
+ }
118
+ /** Hinting for error messages. See https://github.com/camunda/camunda-8-js-sdk/issues/456 */
119
+ /** Here we reason over the error and the configuration to enrich the message with hints */
120
+ if (error.message.includes('Invalid header token')) {
121
+ // This is a parse error, which means the response header was not valid JSON.
122
+ // Debugging for https://github.com/camunda/camunda-8-js-sdk/issues/491
123
+ error.message += ` (response headers: ${JSON.stringify(error.response?.headers)})`;
124
+ }
125
+ if (error.code === '401') {
126
+ // the call was unauthorized
127
+ if (config.CAMUNDA_AUTH_STRATEGY === 'OAUTH') {
128
+ if (request?.options.headers?.authorization) {
129
+ /** This is a 401 error, but the token is set in the header */
130
+ error.message +=
131
+ ' (this may be due to the client credentials not being authorized to access the resource)';
132
+ if (config.CAMUNDA_TENANT_ID) {
133
+ /** We're *probably* making a multi-tenant call. It might have been overridden in the call, but we don't have access to the body */
134
+ error.message += `. Is the client credential authorized in the tenant?`;
135
+ }
136
+ }
137
+ }
138
+ }
139
+ /** Log details of errors to the Camunda Support log */
140
+ GotHooks_1.supportLogger.log('**ERROR**: Got error during Rest call:');
141
+ GotHooks_1.supportLogger.log({
142
+ code: error.code,
143
+ message: error.message,
144
+ stack: error.stack, // replaced stack
145
+ originalStack: error
146
+ .originalStack,
147
+ requestOptions: error.request?.options,
148
+ source: error.source,
149
+ });
150
+ return error;
151
+ };
152
+ exports.gotBeforeErrorHook = gotBeforeErrorHook;
58
153
  //# sourceMappingURL=GotErrors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GotErrors.js","sourceRoot":"","sources":["../../src/lib/GotErrors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA0B;AAE1B,MAAa,SAAU,SAAQ,GAAG,CAAC,SAAS;IAE3C,YAAY,QAA+B;QAC1C,KAAK,CAAC,QAAQ,CAAC,CAAA;QACf,IAAI,CAAC;YACJ,MAAM,OAAO,G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C7F,2FAA2F;IAC3F,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACpD,6EAA6E;QAC7E,uEAAuE;QACvE,KAAK,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CACrD,KAAK,CAAC,QAAQ,EAAE,OAAO,CACvB,GAAG,CAAA;IACL,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAC1B,4BAA4B;QAC5B,IAAI,MAAM,CAAC,qBAAqB,KAAK,OAAO,EAAE,CAAC;YAC9C,IAAI,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;gBAC7C,8DAA8D;gBAC9D,KAAK,CAAC,OAAO;oBACZ,0FAA0F,CAAA;gBAC3F,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;oBAC9B,mIAAmI;oBACnI,KAAK,CAAC,OAAO,IAAI,sDAAsD,CAAA;gBACxE,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC;IAED,uDAAuD;IACvD,wBAAa,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAA;IAC3D,wBAAa,CAAC,GAAG,CAAC;QACjB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,iBAAiB;QACrC,aAAa,EAAG,KAAmD;aACjE,aAAa;QACf,cAAc,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO;QACtC,MAAM,EAAE,KAAK,CAAC,MAAM;KACpB,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACb,CAAC,CAAA;AAnGW,QAAA,kBAAkB,sBAmG7B"}
@@ -1,5 +1,6 @@
1
- import { BeforeErrorHook, BeforeRetryHook, HandlerFunction, Method } from 'got';
2
- import { CamundaPlatform8Configuration } from './Configuration';
1
+ import { BeforeRetryHook, HandlerFunction, Method } from 'got';
2
+ import { CamundaSupportLogger } from './CamundaSupportLogger';
3
+ export declare const supportLogger: CamundaSupportLogger;
3
4
  /**
4
5
  * Capturing useful async stack traces is challenging with got.
5
6
  * See here: https://github.com/sindresorhus/got/blob/main/documentation/async-stack-traces.md
@@ -13,14 +14,6 @@ export declare const beforeCallHook: HandlerFunction;
13
14
  * Otherwise, for 429 and 503 errors, it will retry according to the GotRetryConfig.
14
15
  */
15
16
  export declare const gotBeforeRetryHook: BeforeRetryHook;
16
- /**
17
- * This function adds the call point to the error stack trace of got errors.
18
- * This enables users to see where the error originated from.
19
- *
20
- * It also logs the error to the Camunda Support log.
21
- * This is useful for debugging and support purposes.
22
- */
23
- export declare const gotBeforeErrorHook: (config: CamundaPlatform8Configuration) => BeforeErrorHook;
24
17
  /**
25
18
  * Retry configuration for got requests.
26
19
  * This configuration is used to retry requests on certain status codes and methods.
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GotRetryConfig = exports.gotBeforeErrorHook = exports.gotBeforeRetryHook = exports.beforeCallHook = void 0;
3
+ exports.GotRetryConfig = exports.gotBeforeRetryHook = exports.beforeCallHook = exports.supportLogger = void 0;
4
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
5
5
  const debug_1 = require("debug");
6
6
  const got_1 = require("got");
7
7
  const AsyncTrace_1 = require("./AsyncTrace");
8
8
  const CamundaSupportLogger_1 = require("./CamundaSupportLogger");
9
- const GotErrors_1 = require("./GotErrors");
10
9
  const trace = (0, debug_1.debug)('camunda:gotHooks');
11
- const supportLogger = CamundaSupportLogger_1.CamundaSupportLogger.getInstance();
10
+ exports.supportLogger = CamundaSupportLogger_1.CamundaSupportLogger.getInstance();
12
11
  /**
13
12
  * Capturing useful async stack traces is challenging with got.
14
13
  * See here: https://github.com/sindresorhus/got/blob/main/documentation/async-stack-traces.md
@@ -23,11 +22,12 @@ const beforeCallHook = (options, next) => {
23
22
  const creationStack = AsyncTrace_1.asyncOperationContext.getStore()?.creationStack;
24
23
  const obj = {};
25
24
  Error.captureStackTrace(obj, exports.beforeCallHook);
25
+ Error.stackTraceLimit = 100;
26
26
  options.context.stack = creationStack
27
27
  ? `${creationStack}\n${obj.stack}`
28
28
  : obj.stack;
29
- supportLogger.log(`Rest call:`);
30
- supportLogger.log(options);
29
+ exports.supportLogger.log(`Rest call:`);
30
+ exports.supportLogger.log(options);
31
31
  return next(options);
32
32
  };
33
33
  exports.beforeCallHook = beforeCallHook;
@@ -55,68 +55,6 @@ const gotBeforeRetryHook = (_, error, retryCount) => {
55
55
  }
56
56
  };
57
57
  exports.gotBeforeRetryHook = gotBeforeRetryHook;
58
- /**
59
- * This function adds the call point to the error stack trace of got errors.
60
- * This enables users to see where the error originated from.
61
- *
62
- * It also logs the error to the Camunda Support log.
63
- * This is useful for debugging and support purposes.
64
- */
65
- const gotBeforeErrorHook = (config) => (error) => {
66
- const { request } = error;
67
- let detail = '';
68
- if (error instanceof got_1.HTTPError) {
69
- error = new GotErrors_1.HTTPError(error.response);
70
- try {
71
- const details = JSON.parse(error.response?.body || '{detail:""}');
72
- error.statusCode = details.status;
73
- detail = details ?? '';
74
- }
75
- catch (e) {
76
- error.statusCode = 0;
77
- }
78
- }
79
- const enhancedStack = error.options.context.stack?.split('\n');
80
- error.source = enhancedStack ?? ['No enhanced stack trace available'];
81
- const method = request?.options.method;
82
- const url = request?.options.url.href;
83
- error.message += ` (${method} ${url}). ${JSON.stringify(detail)}`;
84
- if (enhancedStack) {
85
- error.message += `. Enhanced stack trace available as error.source.`;
86
- }
87
- /** Hinting for error messages. See https://github.com/camunda/camunda-8-js-sdk/issues/456 */
88
- /** Here we reason over the error and the configuration to enrich the message with hints */
89
- if (error.message.includes('Invalid header token')) {
90
- // This is a parse error, which means the response header was not valid JSON.
91
- // Debugging for https://github.com/camunda/camunda-8-js-sdk/issues/491
92
- error.message += ` (response headers: ${error.response?.headers})`;
93
- }
94
- if (error.code === '401') {
95
- // the call was unauthorized
96
- if (config.CAMUNDA_AUTH_STRATEGY === 'OAUTH') {
97
- if (request?.options.headers?.authorization) {
98
- /** This is a 401 error, but the token is set in the header */
99
- error.message +=
100
- ' (this may be due to the client credentials not being authorized to access the resource)';
101
- if (config.CAMUNDA_TENANT_ID) {
102
- /** We're *probably* making a multi-tenant call. It might have been overridden in the call, but we don't have access to the body */
103
- error.message += `. Is the client credential authorized in the tenant?`;
104
- }
105
- }
106
- }
107
- }
108
- /** Log details of errors to the Camunda Support log */
109
- supportLogger.log('**ERROR**: Got error during Rest call:');
110
- supportLogger.log({
111
- code: error.code,
112
- message: error.message,
113
- stack: error.stack,
114
- requestOptions: error.request?.options,
115
- source: error.source,
116
- });
117
- return error;
118
- };
119
- exports.gotBeforeErrorHook = gotBeforeErrorHook;
120
58
  /**
121
59
  * Retry configuration for got requests.
122
60
  * This configuration is used to retry requests on certain status codes and methods.
@@ -129,6 +67,11 @@ exports.gotBeforeErrorHook = gotBeforeErrorHook;
129
67
  */
130
68
  exports.GotRetryConfig = {
131
69
  methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
70
+ // 429 is the backpressure status code on 8.7
71
+ // 503 is the backpressure status code on 8.8.3+
72
+ // 500 is the backpressure status code on 8.7 + 8.8.0-2 for job activation only
73
+ // - we handle Job activation backpressure in the worker directly
74
+ // See: https://github.com/camunda/camunda/issues/25806#issuecomment-3459961630
132
75
  statusCodes: [429, 503],
133
76
  };
134
77
  //# sourceMappingURL=GotHooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GotHooks.js","sourceRoot":"","sources":["../../src/lib/GotHooks.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,iCAA6B;AAC7B,6BAOY;AAIZ,6CAAoD;AACpD,iEAA6D;AAE7D,2CAAuC;AAEvC,MAAM,KAAK,GAAG,IAAA,aAAK,EAAC,kBAAkB,CAAC,CAAA;AAEvC,MAAM,aAAa,GAAG,2CAAoB,CAAC,WAAW,EAAE,CAAA;AAExD;;;;;GAKG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ED;;;;GAIG;AACI,MAAM,kBAAkB,GAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;IAC3E,KAAK,CACJ,uCAAuC,EACvC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,KAA0B,CAAC,CAAC,CACvD,CAAA;IACD,IAAI,KAAK,YAAY,kBAAY,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,IAAwB,CAAA;QAC5D,MAAM,UAAU,GAAG,WAAW,EAAE,MAAM,CAAA;QACtC,MAAM,KAAK,GAAG,UAAU,KAAK,GAAG,CAAA;QAChC,MAAM,UAAU,GAAG,UAAU,IAAI,UAAU,GAAG,CAAC,CAAA;QAC/C,KAAK,CAAC,0CAA0C,EAAE,UAAU,CAAC,CAAA;QAC7D,0EAA0E;QAC1E,IAAI,KAAK,EAAE,CAAC;YACX,8DAA8D;YAC9D,IAAI,UAAU,EAAE,CAAC;gBAChB,mEAAmE;gBACnE,MAAM,KAAK,CAAA;YACZ,CAAC;QACF,CAAC;IACF,CAAC;AACF,CAAC,CAAA;AApBY,QAAA,kBAAkB,sBAoB9B;AAED;;;;;;;;;GASG;AACU,QAAA,cAAc,GAAG;IAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAa;IAC9D,6CAA6C;IAC7C,gDAAgD;IAChD,+EAA+E;IAC/E,iEAAiE;IACjE,+EAA+E;IAC/E,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;CACvB,CAAA"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Orchestration Cluster API lifter namespace.
3
+ *
4
+ * This groups all branded key lifter namespaces from the Orchestration Cluster API
5
+ * behind a single export so they don't pollute the root SDK namespace. Each lifter
6
+ * exposes helper functions (e.g. `assumeExists(value: string)`) to convert legacy
7
+ * string identifiers into their strongly-typed branded equivalents.
8
+ *
9
+ * Example:
10
+ * ```typescript
11
+ * import { OrchestrationLifters } from '@camunda8/sdk'
12
+ * const processInstanceKey = OrchestrationLifters.ProcessInstanceKey.assumeExists('2251799813685249')
13
+ * // processInstanceKey is now a branded ProcessInstanceKey type
14
+ * ```
15
+ */
16
+ import { AuthorizationKey, BatchOperationKey, DecisionDefinitionId, DecisionDefinitionKey, DecisionEvaluationInstanceKey, DecisionEvaluationKey, DecisionInstanceKey, DecisionRequirementsKey, DeploymentKey, DocumentId, ElementId, ElementInstanceKey, EndCursor, FormId, FormKey, IncidentKey, JobKey, MessageCorrelationKey, MessageKey, MessageSubscriptionKey, ProcessDefinitionId, ProcessDefinitionKey, ProcessInstanceKey, ScopeKey, SignalKey, StartCursor, Tag, TenantId, Username, UserTaskKey, VariableKey } from '@camunda8/orchestration-cluster-api';
17
+ export declare const OrchestrationLifters: {
18
+ readonly AuthorizationKey: typeof AuthorizationKey;
19
+ readonly BatchOperationKey: typeof BatchOperationKey;
20
+ readonly DecisionDefinitionId: typeof DecisionDefinitionId;
21
+ readonly DecisionDefinitionKey: typeof DecisionDefinitionKey;
22
+ readonly DecisionEvaluationInstanceKey: typeof DecisionEvaluationInstanceKey;
23
+ readonly DecisionEvaluationKey: typeof DecisionEvaluationKey;
24
+ readonly DecisionInstanceKey: typeof DecisionInstanceKey;
25
+ readonly DecisionRequirementsKey: typeof DecisionRequirementsKey;
26
+ readonly DeploymentKey: typeof DeploymentKey;
27
+ readonly DocumentId: typeof DocumentId;
28
+ readonly ElementId: typeof ElementId;
29
+ readonly ElementInstanceKey: typeof ElementInstanceKey;
30
+ readonly EndCursor: typeof EndCursor;
31
+ readonly FormId: typeof FormId;
32
+ readonly FormKey: typeof FormKey;
33
+ readonly IncidentKey: typeof IncidentKey;
34
+ readonly JobKey: typeof JobKey;
35
+ readonly MessageCorrelationKey: typeof MessageCorrelationKey;
36
+ readonly MessageKey: typeof MessageKey;
37
+ readonly MessageSubscriptionKey: typeof MessageSubscriptionKey;
38
+ readonly ProcessDefinitionId: typeof ProcessDefinitionId;
39
+ readonly ProcessDefinitionKey: typeof ProcessDefinitionKey;
40
+ readonly ProcessInstanceKey: typeof ProcessInstanceKey;
41
+ readonly ScopeKey: typeof ScopeKey;
42
+ readonly SignalKey: typeof SignalKey;
43
+ readonly StartCursor: typeof StartCursor;
44
+ readonly Tag: typeof Tag;
45
+ readonly TenantId: typeof TenantId;
46
+ readonly Username: typeof Username;
47
+ readonly UserTaskKey: typeof UserTaskKey;
48
+ readonly VariableKey: typeof VariableKey;
49
+ };
50
+ export declare namespace OrchestrationLifters {
51
+ type AuthorizationKey = import('@camunda8/orchestration-cluster-api').AuthorizationKey;
52
+ type BatchOperationKey = import('@camunda8/orchestration-cluster-api').BatchOperationKey;
53
+ type DecisionDefinitionId = import('@camunda8/orchestration-cluster-api').DecisionDefinitionId;
54
+ type DecisionDefinitionKey = import('@camunda8/orchestration-cluster-api').DecisionDefinitionKey;
55
+ type DecisionEvaluationInstanceKey = import('@camunda8/orchestration-cluster-api').DecisionEvaluationInstanceKey;
56
+ type DecisionEvaluationKey = import('@camunda8/orchestration-cluster-api').DecisionEvaluationKey;
57
+ type DecisionInstanceKey = import('@camunda8/orchestration-cluster-api').DecisionInstanceKey;
58
+ type DecisionRequirementsKey = import('@camunda8/orchestration-cluster-api').DecisionRequirementsKey;
59
+ type DeploymentKey = import('@camunda8/orchestration-cluster-api').DeploymentKey;
60
+ type DocumentId = import('@camunda8/orchestration-cluster-api').DocumentId;
61
+ type ElementId = import('@camunda8/orchestration-cluster-api').ElementId;
62
+ type ElementInstanceKey = import('@camunda8/orchestration-cluster-api').ElementInstanceKey;
63
+ type EndCursor = import('@camunda8/orchestration-cluster-api').EndCursor;
64
+ type FormId = import('@camunda8/orchestration-cluster-api').FormId;
65
+ type FormKey = import('@camunda8/orchestration-cluster-api').FormKey;
66
+ type IncidentKey = import('@camunda8/orchestration-cluster-api').IncidentKey;
67
+ type JobKey = import('@camunda8/orchestration-cluster-api').JobKey;
68
+ type MessageCorrelationKey = import('@camunda8/orchestration-cluster-api').MessageCorrelationKey;
69
+ type MessageKey = import('@camunda8/orchestration-cluster-api').MessageKey;
70
+ type MessageSubscriptionKey = import('@camunda8/orchestration-cluster-api').MessageSubscriptionKey;
71
+ type ProcessDefinitionId = import('@camunda8/orchestration-cluster-api').ProcessDefinitionId;
72
+ type ProcessDefinitionKey = import('@camunda8/orchestration-cluster-api').ProcessDefinitionKey;
73
+ type ProcessInstanceKey = import('@camunda8/orchestration-cluster-api').ProcessInstanceKey;
74
+ type ScopeKey = import('@camunda8/orchestration-cluster-api').ScopeKey;
75
+ type SignalKey = import('@camunda8/orchestration-cluster-api').SignalKey;
76
+ type StartCursor = import('@camunda8/orchestration-cluster-api').StartCursor;
77
+ type Tag = import('@camunda8/orchestration-cluster-api').Tag;
78
+ type TenantId = import('@camunda8/orchestration-cluster-api').TenantId;
79
+ type Username = import('@camunda8/orchestration-cluster-api').Username;
80
+ type UserTaskKey = import('@camunda8/orchestration-cluster-api').UserTaskKey;
81
+ type VariableKey = import('@camunda8/orchestration-cluster-api').VariableKey;
82
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrchestrationLifters = void 0;
4
+ /**
5
+ * Orchestration Cluster API lifter namespace.
6
+ *
7
+ * This groups all branded key lifter namespaces from the Orchestration Cluster API
8
+ * behind a single export so they don't pollute the root SDK namespace. Each lifter
9
+ * exposes helper functions (e.g. `assumeExists(value: string)`) to convert legacy
10
+ * string identifiers into their strongly-typed branded equivalents.
11
+ *
12
+ * Example:
13
+ * ```typescript
14
+ * import { OrchestrationLifters } from '@camunda8/sdk'
15
+ * const processInstanceKey = OrchestrationLifters.ProcessInstanceKey.assumeExists('2251799813685249')
16
+ * // processInstanceKey is now a branded ProcessInstanceKey type
17
+ * ```
18
+ */
19
+ /* eslint-disable @typescript-eslint/no-namespace */
20
+ const orchestration_cluster_api_1 = require("@camunda8/orchestration-cluster-api");
21
+ exports.OrchestrationLifters = {
22
+ AuthorizationKey: orchestration_cluster_api_1.AuthorizationKey,
23
+ BatchOperationKey: orchestration_cluster_api_1.BatchOperationKey,
24
+ DecisionDefinitionId: orchestration_cluster_api_1.DecisionDefinitionId,
25
+ DecisionDefinitionKey: orchestration_cluster_api_1.DecisionDefinitionKey,
26
+ DecisionEvaluationInstanceKey: orchestration_cluster_api_1.DecisionEvaluationInstanceKey,
27
+ DecisionEvaluationKey: orchestration_cluster_api_1.DecisionEvaluationKey,
28
+ DecisionInstanceKey: orchestration_cluster_api_1.DecisionInstanceKey,
29
+ DecisionRequirementsKey: orchestration_cluster_api_1.DecisionRequirementsKey,
30
+ DeploymentKey: orchestration_cluster_api_1.DeploymentKey,
31
+ DocumentId: orchestration_cluster_api_1.DocumentId,
32
+ ElementId: orchestration_cluster_api_1.ElementId,
33
+ ElementInstanceKey: orchestration_cluster_api_1.ElementInstanceKey,
34
+ EndCursor: orchestration_cluster_api_1.EndCursor,
35
+ FormId: orchestration_cluster_api_1.FormId,
36
+ FormKey: orchestration_cluster_api_1.FormKey,
37
+ IncidentKey: orchestration_cluster_api_1.IncidentKey,
38
+ JobKey: orchestration_cluster_api_1.JobKey,
39
+ MessageCorrelationKey: orchestration_cluster_api_1.MessageCorrelationKey,
40
+ MessageKey: orchestration_cluster_api_1.MessageKey,
41
+ MessageSubscriptionKey: orchestration_cluster_api_1.MessageSubscriptionKey,
42
+ ProcessDefinitionId: orchestration_cluster_api_1.ProcessDefinitionId,
43
+ ProcessDefinitionKey: orchestration_cluster_api_1.ProcessDefinitionKey,
44
+ ProcessInstanceKey: orchestration_cluster_api_1.ProcessInstanceKey,
45
+ ScopeKey: orchestration_cluster_api_1.ScopeKey,
46
+ SignalKey: orchestration_cluster_api_1.SignalKey,
47
+ StartCursor: orchestration_cluster_api_1.StartCursor,
48
+ Tag: orchestration_cluster_api_1.Tag,
49
+ TenantId: orchestration_cluster_api_1.TenantId,
50
+ Username: orchestration_cluster_api_1.Username,
51
+ UserTaskKey: orchestration_cluster_api_1.UserTaskKey,
52
+ VariableKey: orchestration_cluster_api_1.VariableKey,
53
+ };
54
+ //# sourceMappingURL=lifters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifters.js","sourceRoot":"","sources":["../../src/oca/lifters.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oDAAoD;AACpD,mFAgC4C;AAE/B,QAAA,oBAAoB,GAAG;IACnC,gBAAgB,EAAhB,4CAAgB;IAChB,iBAAiB,EAAjB,6CAAiB;IACjB,oBAAoB,EAApB,gDAAoB;IACpB,qBAAqB,EAArB,iDAAqB;IACrB,6BAA6B,EAA7B,yDAA6B;IAC7B,qBAAqB,EAArB,iDAAqB;IACrB,mBAAmB,EAAnB,+CAAmB;IACnB,uBAAuB,EAAvB,mDAAuB;IACvB,aAAa,EAAb,yCAAa;IACb,UAAU,EAAV,sCAAU;IACV,SAAS,EAAT,qCAAS;IACT,kBAAkB,EAAlB,8CAAkB;IAClB,SAAS,EAAT,qCAAS;IACT,MAAM,EAAN,kCAAM;IACN,OAAO,EAAP,mCAAO;IACP,WAAW,EAAX,uCAAW;IACX,MAAM,EAAN,kCAAM;IACN,qBAAqB,EAArB,iDAAqB;IACrB,UAAU,EAAV,sCAAU;IACV,sBAAsB,EAAtB,kDAAsB;IACtB,mBAAmB,EAAnB,+CAAmB;IACnB,oBAAoB,EAApB,gDAAoB;IACpB,kBAAkB,EAAlB,8CAAkB;IAClB,QAAQ,EAAR,oCAAQ;IACR,SAAS,EAAT,qCAAS;IACT,WAAW,EAAX,uCAAW;IACX,GAAG,EAAH,+BAAG;IACH,QAAQ,EAAR,oCAAQ;IACR,QAAQ,EAAR,oCAAQ;IACR,WAAW,EAAX,uCAAW;IACX,WAAW,EAAX,uCAAW;CACF,CAAA"}
@@ -227,18 +227,13 @@ class OperateApiClient {
227
227
  const headers = await this.getHeaders();
228
228
  const json = this.addTenantIdToFilter(query);
229
229
  const rest = await this.rest;
230
- try {
231
- return rest
232
- .post('process-instances/search', {
233
- json,
234
- headers,
235
- parseJson: (text) => (0, parseSearchResults_1.parseSearchResults)(text, OperateDto_1.ProcessInstance),
236
- })
237
- .json();
238
- }
239
- catch (e) {
240
- throw new Error(e.message);
241
- }
230
+ return rest
231
+ .post('process-instances/search', {
232
+ json,
233
+ headers,
234
+ parseJson: (text) => (0, parseSearchResults_1.parseSearchResults)(text, OperateDto_1.ProcessInstance),
235
+ })
236
+ .json();
242
237
  }
243
238
  /**
244
239
  *
@@ -1 +1 @@
1
- {"version":3,"file":"OperateApiClient.js","sourceRoot":"","sources":["../../../src/operate/lib/OperateApiClient.ts"],"names":[],"mappings":";;;;;;AAAA,iCAA6B;AAC7B,8CAAqB;AAErB,mCAakB;AAGlB,6CAaqB;AACrB,6DAAyD;AAEzD,MAAM,KAAK,GAAG,IAAA,aAAK,EAAC,iBAAiB,CAAC,CAAA;AAEtC,MAAM,mBAAmB,GAAG,IAAI,CAAA;AAWhC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,gBAAgB;IAM5B;;;;;;OAMG;IACH,YAAY,OAGX;QACA,MAAM,MAAM,GAAG,oCAA8B,CAAC,0BAA0B,CACvE,OAAO,EAAE,MAAM,IAAI,EAAE,CACrB,CAAA;QACD,KAAK,CAAC,gBAAgB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;QACxC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACvB,IAAI,CAAC,aAAa;YACjB,OAAO,EAAE,aAAa;gBACtB,IAAA,4BAAsB,EAAC,MAAM,EAAE;oBAC9B,uBAAuB,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAC5D,OAAO,EAAE,MAAM,IAAI,EAAE,EACrB,uBAAuB,CACvB;iBACD,CAAC,CAAA;QACH,IAAI,CAAC,eAAe,GAAG,IAAA,2BAAqB,EAAC,MAAM,CAAC,CAAA;QACpD,MAAM,OAAO,GAAG,IAAA,0BAAoB,EACnC,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Aa,EAAC,IAAI,EAAE,iCAAoB,CAAC;SAC9D,CAAC,CAAC,IAAI,EAAE,CAAA;IACV,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,0BAA0B,CAAC,GAAoB;QAC3D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAA;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAA;QAE5B,OAAO,IAAI,CAAC,OAAO,GAAG,MAAM,EAAE;YAC7B,OAAO;SACP,CAAC,CAAC,IAAI,EAAE,CAAA;IACV,CAAC;CACD;AAhlBD,4CAglBC"}
@@ -4,7 +4,6 @@ import { ZBLogger } from './lib/ZBLogger';
4
4
  import * as GrpcInterfaces from './lib/interfaces-grpc-1.0';
5
5
  export * from './zb/ZBWorker';
6
6
  export * from './zb/ZeebeGrpcClient';
7
- export * from './zb/ZeebeRESTClient';
8
7
  /** @namespace */
9
8
  export declare const Types: {
10
9
  PartitionBrokerRole: typeof GrpcInterfaces.PartitionBrokerRole;
@@ -49,7 +49,6 @@ const GrpcInterfaces = __importStar(require("./lib/interfaces-grpc-1.0"));
49
49
  const PublishedContract = __importStar(require("./lib/interfaces-published-contract"));
50
50
  __exportStar(require("./zb/ZBWorker"), exports);
51
51
  __exportStar(require("./zb/ZeebeGrpcClient"), exports);
52
- __exportStar(require("./zb/ZeebeRESTClient"), exports);
53
52
  /** @namespace */
54
53
  exports.Types = {
55
54
  ...Interfaces,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/zeebe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAyC;AAAhC,0GAAA,QAAQ,OAAA;AACjB,+CAA6C;AAApC,wGAAA,UAAU,OAAA;AACnB,qDAAmD;AACnD,qDAAiD;AACjD,6CAAyC;AACzC,iEAAkD;AAClD,0EAA2D;AAC3D,uFAAwE;AAExE,gDAA6B;AAC7B,uDAAoC;AACpC,uDAAoC;AACpC,iBAAiB;AACJ,QAAA,KAAK,GAAG;IACpB,GAAG,UAAU;IACb,GAAG,cAAc;IACjB,GAAG,iBAAiB;CACpB,CAAA;AAEY,QAAA,OAAO,GAAG;IACtB,YAAY,EAAZ,2BAAY;IACZ,QAAQ,EAAR,mBAAQ;IACR,cAAc,EAAd,6BAAc;CACd,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/zeebe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAyC;AAAhC,0GAAA,QAAQ,OAAA;AACjB,+CAA6C;AAApC,wGAAA,UAAU,OAAA;AACnB,qDAAmD;AACnD,qDAAiD;AACjD,6CAAyC;AACzC,iEAAkD;AAClD,0EAA2D;AAC3D,uFAAwE;AAExE,gDAA6B;AAC7B,uDAAoC;AAEpC,iBAAiB;AACJ,QAAA,KAAK,GAAG;IACpB,GAAG,UAAU;IACb,GAAG,cAAc;IACjB,GAAG,iBAAiB;CACpB,CAAA;AAEY,QAAA,OAAO,GAAG;IACtB,YAAY,EAAZ,2BAAY;IACZ,QAAQ,EAAR,mBAAQ;IACR,cAAc,EAAd,6BAAc;CACd,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda8/sdk",
3
- "version": "8.7.32",
3
+ "version": "8.8.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -122,6 +122,7 @@
122
122
  "win-ca": "3.5.1"
123
123
  },
124
124
  "dependencies": {
125
+ "@camunda8/orchestration-cluster-api": "^1.0.0",
125
126
  "@grpc/grpc-js": "1.12.5",
126
127
  "@grpc/proto-loader": "0.7.13",
127
128
  "@types/form-data": "^2.2.1",
@@ -43,7 +43,9 @@ const operate = camunda.getOperateApiClient()
43
43
 
44
44
  // console.log(operate)
45
45
 
46
- const zeebeRest = camunda.getZeebeRestClient()
46
+ const getOrchestrationClusterApiClient = camunda.getOrchestrationClusterApiClient()
47
+
48
+ const getOrchestrationClusterApiClientLoose = camunda.getOrchestrationClusterApiClientLoose()
47
49
 
48
50
  // console.log(zeebeRest)
49
51
 
@@ -1,9 +0,0 @@
1
- import { CamundaRestClient } from '../src/c8/lib/CamundaRestClient'
2
-
3
- const camunda = new CamundaRestClient()
4
-
5
- async function main() {
6
- console.log(await camunda.getTopology())
7
- }
8
-
9
- main()
@@ -1,46 +0,0 @@
1
- import { CamundaPlatform8Configuration, DeepPartial } from '../../lib';
2
- import { IHeadersProvider } from '../../oauth';
3
- import { TopologyResponse } from '../types';
4
- /**
5
- * JSON object with changed task attribute values.
6
- */
7
- interface TaskChangeSet {
8
- dueDate?: Date | string;
9
- followUpDate?: Date | string;
10
- candidateUsers?: string[];
11
- candidateGroups?: string[];
12
- }
13
- /**
14
- * @deprecated Since 8.6. Please use `CamundaRestClient` instead.
15
- */
16
- export declare class ZeebeRestClient {
17
- private userAgentString;
18
- private oAuthProvider;
19
- private rest;
20
- constructor(options?: {
21
- config?: DeepPartial<CamundaPlatform8Configuration>;
22
- oAuthProvider?: IHeadersProvider;
23
- });
24
- private getHeaders;
25
- getTopology(): Promise<TopologyResponse>;
26
- completeUserTask({ userTaskKey, variables, action, }: {
27
- userTaskKey: string;
28
- variables?: Record<string, unknown>;
29
- action?: string;
30
- }): Promise<import("got").Response<string>>;
31
- assignTask({ userTaskKey, assignee, allowOverride, action, }: {
32
- userTaskKey: string;
33
- assignee: string;
34
- allowOverride?: boolean;
35
- action: string;
36
- }): Promise<import("got").Response<string>>;
37
- /** Update a user task with the given key. */
38
- updateTask({ userTaskKey, changeset, }: {
39
- userTaskKey: string;
40
- changeset: TaskChangeSet;
41
- }): Promise<import("got").Response<string>>;
42
- removeAssignee({ userTaskKey }: {
43
- userTaskKey: string;
44
- }): Promise<import("got").Response<string>>;
45
- }
46
- export {};