@camunda8/sdk 8.7.33 → 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.
- package/CHANGELOG.md +17 -0
- package/README.md +134 -16
- package/backpressure/test.js +18 -0
- package/dist/c8/index.d.ts +23 -18
- package/dist/c8/index.js +63 -24
- package/dist/c8/index.js.map +1 -1
- package/dist/c8/lib/C8Dto.d.ts +5 -7
- package/dist/c8/lib/C8Dto.js +0 -146
- package/dist/c8/lib/C8Dto.js.map +1 -1
- package/dist/c8/lib/CamundaRestClient.d.ts +6 -6
- package/dist/c8/lib/CamundaRestClient.js +32 -7
- package/dist/c8/lib/CamundaRestClient.js.map +1 -1
- package/dist/c8/lib/OriginTracing.d.ts +11 -0
- package/dist/c8/lib/OriginTracing.js +101 -0
- package/dist/c8/lib/OriginTracing.js.map +1 -0
- package/dist/c8/lib/TrackedGot.d.ts +18 -0
- package/dist/c8/lib/TrackedGot.js +112 -0
- package/dist/c8/lib/TrackedGot.js.map +1 -0
- package/dist/index.d.ts +11 -10
- package/dist/index.js +12 -17
- package/dist/index.js.map +1 -1
- package/dist/lib/AsyncTrace.d.ts +1 -1
- package/dist/lib/AsyncTrace.js +2 -2
- package/dist/lib/AsyncTrace.js.map +1 -1
- package/dist/lib/CamundaClientConfigTranslator.d.ts +37 -0
- package/dist/lib/CamundaClientConfigTranslator.js +142 -0
- package/dist/lib/CamundaClientConfigTranslator.js.map +1 -0
- package/dist/lib/CamundaSupportLogger.d.ts +2 -2
- package/dist/lib/CamundaSupportLogger.js +7 -7
- package/dist/lib/CamundaSupportLogger.js.map +1 -1
- package/dist/lib/Configuration.d.ts +1 -1
- package/dist/lib/Configuration.js.map +1 -1
- package/dist/lib/GotErrors.d.ts +19 -2
- package/dist/lib/GotErrors.js +84 -2
- package/dist/lib/GotErrors.js.map +1 -1
- package/dist/lib/GotHooks.d.ts +3 -10
- package/dist/lib/GotHooks.js +5 -67
- package/dist/lib/GotHooks.js.map +1 -1
- package/dist/oca/lifters.d.ts +82 -0
- package/dist/oca/lifters.js +54 -0
- package/dist/oca/lifters.js.map +1 -0
- package/dist/operate/lib/OperateApiClient.js +7 -12
- package/dist/operate/lib/OperateApiClient.js.map +1 -1
- package/dist/zeebe/index.d.ts +0 -1
- package/dist/zeebe/index.js +0 -1
- package/dist/zeebe/index.js.map +1 -1
- package/package.json +2 -1
- package/smoke-test/smoke-test.js +3 -1
- package/backpressure/test.ts +0 -9
- package/dist/zeebe/zb/ZeebeRESTClient.d.ts +0 -46
- package/dist/zeebe/zb/ZeebeRESTClient.js +0 -103
- package/dist/zeebe/zb/ZeebeRESTClient.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# [8.8.0](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.33...v8.8.0) (2025-11-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* export OrchestrationLifter types as namespace ([8d86756](https://github.com/camunda/camunda-8-js-sdk/commit/8d8675613c9d668cc59b530aa2bd481ee8e60f98))
|
|
7
|
+
* oca config translation precedence ([20721a9](https://github.com/camunda/camunda-8-js-sdk/commit/20721a9d4577d8805a03d04ddf2a1a57c6fba6fc))
|
|
8
|
+
* update oca client ([8d5f1f4](https://github.com/camunda/camunda-8-js-sdk/commit/8d5f1f40ceba927932a9e3f16fa2ee4c0b65d26e))
|
|
9
|
+
* update oca dep ([2b88f8c](https://github.com/camunda/camunda-8-js-sdk/commit/2b88f8ca9440eae5192074a582c71d6ac57c3973))
|
|
10
|
+
* update oca dependency ([22d2438](https://github.com/camunda/camunda-8-js-sdk/commit/22d24381a059bf0195da3e807f7d71c739791607))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* improve async error trace ([9f00874](https://github.com/camunda/camunda-8-js-sdk/commit/9f00874a5322f6279ae44441f9c90c190018a1c5))
|
|
16
|
+
* integrate new OCA client ([278731a](https://github.com/camunda/camunda-8-js-sdk/commit/278731a27238fa614ba955bdbe575c5e81519c93))
|
|
17
|
+
|
|
1
18
|
## [8.7.33](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.32...v8.7.33) (2025-10-30)
|
|
2
19
|
|
|
3
20
|
|
package/README.md
CHANGED
|
@@ -6,15 +6,39 @@
|
|
|
6
6
|
|
|
7
7
|
[Full API Docs](https://camunda.github.io/camunda-8-js-sdk/).
|
|
8
8
|
|
|
9
|
-
This is the official Camunda 8 JavaScript SDK. It is written in TypeScript and runs on Node.js. See why [this does not run in a web browser](https://github.com/camunda/camunda-8-js-sdk/issues/79).
|
|
9
|
+
This is the official Camunda 8 JavaScript SDK. It is written in TypeScript and runs on Node.js. See why [this does not run in a web browser](https://github.com/camunda/camunda-8-js-sdk/issues/79). If you need to run an application in the web browser, then look at [@camunda8/orchestration-cluster-api](https://www.npmjs.com/package/@camunda8/orchestration-cluster-api).
|
|
10
10
|
|
|
11
11
|
See the [Getting Started Example](https://docs.camunda.io/docs/next/guides/getting-started-example/) in the Camunda Docs for a quick start.
|
|
12
12
|
|
|
13
|
+
## Which package should I use?
|
|
14
|
+
|
|
15
|
+
This SDK provides API clients for various versions of Camunda 8. If you are doing a greenfield project on Camunda 8.8 or later, then you should consider using [@camunda8/orchestration-cluster-api](https://www.npmjs.com/package/@camunda8/orchestration-cluster-api). That package provides a client for the Camunda 8 Orchestration Cluster API, a REST API with (almost) complete functionality.
|
|
16
|
+
|
|
17
|
+
This SDK includes that client, but relying on this SDK package pulls in other API clients, which - if you are not using them - exposes you to several factors:
|
|
18
|
+
* Increased dependency size for dependencies that are irrelevant to your application
|
|
19
|
+
* Node.js only. The other package runs in the browser.
|
|
20
|
+
|
|
21
|
+
How to choose?
|
|
22
|
+
|
|
23
|
+
Use the `@camunda8/sdk` package if:
|
|
24
|
+
|
|
25
|
+
* You need the gRPC API to do Job Streaming.
|
|
26
|
+
* Your server target is 8.7 or earlier.
|
|
27
|
+
* You are progressively migrating an existing application to use the 8.8 Orchestration Cluster API.
|
|
28
|
+
|
|
29
|
+
Use the `@camunda8/orchestration-cluster-api` package directly if:
|
|
30
|
+
|
|
31
|
+
* You are developing a green-field application.
|
|
32
|
+
* Your server target is 8.8 or later.
|
|
33
|
+
* You do not need to use the gRPC API.
|
|
34
|
+
|
|
13
35
|
## Which API should I use?
|
|
14
36
|
|
|
15
37
|
The SDK provides clients for several Camunda 8 APIs.
|
|
16
38
|
|
|
17
|
-
If you are doing a greenfield project on Camunda 8.8.0 or later, then you should use the Camunda Orchestration Cluster API with
|
|
39
|
+
If you are doing a greenfield project on Camunda 8.8.0 or later, then you should use the Camunda Orchestration Cluster API with `getOrchestrationClusterApiClient`. This is a REST API that provides complete cluster functionality in one API surface. This client is strongly typed and provides strong types for request and response fields (eg: `ProcessInstanceKey`, `ProcessDefinitionId`, etc).
|
|
40
|
+
|
|
41
|
+
To progressively adopt this client in existing projects alongside previous clients, you can call `getOrchestrationClusterApiClientLoose` to get a client that does not strongly type the request and response fields (they remain primitive scalar `string` type).
|
|
18
42
|
|
|
19
43
|
## What does "supported" mean?
|
|
20
44
|
|
|
@@ -43,23 +67,16 @@ The functionality of Camunda 8 is exposed via dedicated clients for the componen
|
|
|
43
67
|
```typescript
|
|
44
68
|
import { Camunda8 } from '@camunda8/sdk'
|
|
45
69
|
|
|
46
|
-
// Optional: Import types for CamundaRestClient requests and responses
|
|
47
|
-
import type { CamundaRestTypes} from '@camunda8/sdk'
|
|
48
|
-
|
|
49
70
|
const c8 = new Camunda8()
|
|
50
71
|
|
|
51
|
-
// Camunda 8 Orchestration API - recommended
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// Zeebe gRPC client - not recommended for new users
|
|
55
|
-
const zeebe = c8.getZeebeGrpcApiClient()
|
|
72
|
+
// Camunda 8 Orchestration Cluster API (STRICT client) - recommended from 8.8.0
|
|
73
|
+
// Provides strongly typed request & response IDs (e.g. ProcessInstanceKey, ProcessDefinitionId)
|
|
74
|
+
const orchestration = c8.getOrchestrationClusterApiClient()
|
|
56
75
|
|
|
57
|
-
// Camunda
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
const modeler = c8.getModelerApiClient()
|
|
62
|
-
const admin = c8.getAdminApiClient()
|
|
76
|
+
// Camunda 8 Orchestration Cluster API (LOOSE client) - progressive adoption variant
|
|
77
|
+
// Same methods, but all IDs are plain string. Start here in existing codebases, then
|
|
78
|
+
// migrate to the strict client when convenient.
|
|
79
|
+
const orchestrationLoose = c8.getOrchestrationClusterApiClientLoose()
|
|
63
80
|
```
|
|
64
81
|
|
|
65
82
|
## Configuration
|
|
@@ -78,6 +95,107 @@ The complete documentation of all configuration parameters (environment variable
|
|
|
78
95
|
|
|
79
96
|
Any configuration passed in to the `Camunda8` constructor is merged over any configuration in the environment. The configuration object fields and the environment variables have exactly the same names.
|
|
80
97
|
|
|
98
|
+
## Orchestration Cluster API: Strict vs Loose Clients
|
|
99
|
+
|
|
100
|
+
From Camunda 8.8 onwards the unified Orchestration Cluster API is the preferred interface. This SDK exposes it via two factory methods to enable smooth, incremental migration:
|
|
101
|
+
|
|
102
|
+
| Factory | Purpose | ID / Key Types | Recommended Use |
|
|
103
|
+
| ------- | ------- | -------------- | --------------- |
|
|
104
|
+
| `getOrchestrationClusterApiClient()` | Strict (strongly typed) client | Branded TypeScript types (e.g. `ProcessInstanceKey`, `ProcessDefinitionId`) | Greenfield projects or code already prepared for branded types |
|
|
105
|
+
| `getOrchestrationClusterApiClientLoose()` | Loose client | Plain `string` | Progressive adoption in existing code expecting raw string IDs |
|
|
106
|
+
|
|
107
|
+
### Why two clients?
|
|
108
|
+
|
|
109
|
+
Branded (nominal) types significantly reduce accidental mixing of unrelated IDs (for example passing a decision definition id where a process instance key is expected). However, adopting them in an existing codebase can require refactors across many modules. The loose client lets you start calling the new endpoints immediately without touching those modules. You can then migrate incrementally to the strict client as you update code.
|
|
110
|
+
|
|
111
|
+
### Migration Path
|
|
112
|
+
1. Introduce the loose client alongside existing v1 component clients: `const ocaLoose = c8.getOrchestrationClusterApiClientLoose()`.
|
|
113
|
+
2. Replace calls to older clients (Operate / Tasklist / Optimize for read operations, Zeebe REST for workflow interactions) with equivalent Orchestration API calls using the loose client.
|
|
114
|
+
3. When convenient, switch a module to the strict client: change imports to use `getOrchestrationClusterApiClient()` and address TypeScript compile errors by adopting the branded ID types (usually by propagating the type instead of `string`).
|
|
115
|
+
4. Remove the loose client usage once all modules compile cleanly with the strict client.
|
|
116
|
+
|
|
117
|
+
### REST Address Normalization (/v2)
|
|
118
|
+
|
|
119
|
+
Set `ZEEBE_REST_ADDRESS` without the version suffix; the SDK will append `/v2` exactly once:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
export ZEEBE_REST_ADDRESS='http://localhost:8888'
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Results in effective base URL: `http://localhost:8888/v2`.
|
|
126
|
+
|
|
127
|
+
If you include `/v2` already:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
export ZEEBE_REST_ADDRESS='http://localhost:8888/v2'
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
It is preserved (not duplicated). Trailing slashes are stripped before normalization (`http://localhost:8888/` -> `http://localhost:8888/v2`).
|
|
134
|
+
|
|
135
|
+
### Choosing Between Clients
|
|
136
|
+
|
|
137
|
+
Use the strict client for new code, libraries, or examples where type safety improves clarity. Use the loose client when:
|
|
138
|
+
- You need a rapid drop-in replacement without changing existing function signatures.
|
|
139
|
+
- You are migrating many modules gradually.
|
|
140
|
+
- You want to defer adoption of branded ID types until later.
|
|
141
|
+
|
|
142
|
+
Both clients expose identical method names and behaviors; only the TypeScript surface differs. Runtime semantics and responses are otherwise equivalent.
|
|
143
|
+
|
|
144
|
+
### Example (Strict vs Loose)
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { Camunda8 } from '@camunda8/sdk'
|
|
148
|
+
const c8 = new Camunda8()
|
|
149
|
+
|
|
150
|
+
// Strict client (preferred once migrated)
|
|
151
|
+
const oca = c8.getOrchestrationClusterApiClient()
|
|
152
|
+
const proc = await oca.createProcessInstance({
|
|
153
|
+
processDefinitionId: ProcessDefinitionId.assumeExists('order-process'),
|
|
154
|
+
variables: { orderId: 'A123' },
|
|
155
|
+
})
|
|
156
|
+
// proc.processInstanceKey is a branded type (not a plain string)
|
|
157
|
+
|
|
158
|
+
// Loose client (progressive adoption)
|
|
159
|
+
const ocaLoose = c8.getOrchestrationClusterApiClientLoose()
|
|
160
|
+
const procLoose = await ocaLoose.createProcessInstance({
|
|
161
|
+
processDefinitionId: 'order-process',
|
|
162
|
+
variables: { orderId: 'B456' },
|
|
163
|
+
})
|
|
164
|
+
// procLoose.processInstanceKey is a plain string
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
When converting code from loose to strict, remove unnecessary casts like `(key as string)` and allow the compiler to guide corrections where branded types surface.
|
|
168
|
+
|
|
169
|
+
### Lifting Legacy String IDs
|
|
170
|
+
|
|
171
|
+
To migrate existing code that uses plain strings for identifiers without immediately switching every module to the strict client, you can "lift" those strings into branded key types incrementally.
|
|
172
|
+
|
|
173
|
+
All branded key lifter namespaces are grouped under `OrchestrationLifters` so the root SDK export surface stays tidy:
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
import { OrchestrationLifters } from '@camunda8/sdk'
|
|
177
|
+
|
|
178
|
+
// Suppose you previously passed raw strings:
|
|
179
|
+
const rawProcessInstanceKey = '2251799813685249'
|
|
180
|
+
|
|
181
|
+
// Lift it to the branded type (runtime value is still a string, but type safety now applies):
|
|
182
|
+
const processInstanceKey = OrchestrationLifters.ProcessInstanceKey.assumeExists(rawProcessInstanceKey)
|
|
183
|
+
|
|
184
|
+
// Use with strict client
|
|
185
|
+
const c8 = new Camunda8()
|
|
186
|
+
const oca = c8.getOrchestrationClusterApiClient()
|
|
187
|
+
await oca.cancelProcessInstance({ processInstanceKey })
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Common helper: `assumeExists(value: string)` turns a known-valid legacy identifier into its branded equivalent. Use this when you are certain the ID refers to an existing entity (the lifter does not perform a network validation; it is purely nominal typing).
|
|
191
|
+
|
|
192
|
+
Suggested incremental approach:
|
|
193
|
+
1. Start by replacing output values first (e.g. responses from `createProcessInstance`) where the strict client already returns branded types.
|
|
194
|
+
2. Introduce lifters at the boundaries where you still receive legacy strings (configuration, environment, persistence layer, legacy SDK modules).
|
|
195
|
+
3. Remove lifters once those boundaries natively produce branded types.
|
|
196
|
+
|
|
197
|
+
All available lifters (examples): `ProcessInstanceKey`, `ProcessDefinitionId`, `JobKey`, `ElementInstanceKey`, `DecisionDefinitionKey`, `FormKey`, `UserTaskKey`, `VariableKey`, etc. See `OrchestrationLifters` export for the complete list.
|
|
198
|
+
|
|
81
199
|
## A note on how int64 is handled in the JavaScript SDK
|
|
82
200
|
|
|
83
201
|
Entity keys in Camunda 8.6 and earlier are stored and represented as `int64` numbers. The range of `int64` extends to numbers that cannot be represented by the JavaScript `number` type. To deal with this, `int64` keys are serialised by the SDK to the JavaScript `string` type. See [this issue](https://github.com/camunda/camunda-8-js-sdk/issues/78) for more details.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
const { CamundaRestClient } = require('../dist/c8/lib/CamundaRestClient')
|
|
3
|
+
|
|
4
|
+
const camunda = new CamundaRestClient()
|
|
5
|
+
|
|
6
|
+
async function main() {
|
|
7
|
+
// We want to provoke an error and examine the error stack, and the headers.
|
|
8
|
+
await camunda
|
|
9
|
+
.activateJobs({
|
|
10
|
+
timeout: 1000,
|
|
11
|
+
maxJobsToActivate: 1,
|
|
12
|
+
// type: 'non-existing-job-type',
|
|
13
|
+
worker: 'test',
|
|
14
|
+
}).catch(e => console.error('Caught error:', e))
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
main()
|
package/dist/c8/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CamundaClient, CamundaClientLoose } from '@camunda8/orchestration-cluster-api';
|
|
1
2
|
import { AdminApiClient } from '../admin';
|
|
2
3
|
import { Camunda8ClientConfiguration } from '../lib';
|
|
3
4
|
import { ModelerApiClient } from '../modeler';
|
|
@@ -5,7 +6,7 @@ import { IHeadersProvider } from '../oauth';
|
|
|
5
6
|
import { OperateApiClient } from '../operate';
|
|
6
7
|
import { OptimizeApiClient } from '../optimize';
|
|
7
8
|
import { TasklistApiClient } from '../tasklist';
|
|
8
|
-
import { ZeebeGrpcClient
|
|
9
|
+
import { ZeebeGrpcClient } from '../zeebe';
|
|
9
10
|
import { Logger } from './lib/C8Logger';
|
|
10
11
|
import { CamundaRestClient } from './lib/CamundaRestClient';
|
|
11
12
|
/** Options interface for client creation */
|
|
@@ -38,19 +39,20 @@ interface Camunda8Options {
|
|
|
38
39
|
* ```
|
|
39
40
|
*/
|
|
40
41
|
export declare class Camunda8 {
|
|
41
|
-
private zeebeGrpcApiClients;
|
|
42
|
-
private camundaRestClients;
|
|
43
|
-
private operateApiClients;
|
|
44
|
-
private tasklistApiClients;
|
|
45
|
-
private optimizeApiClients;
|
|
46
|
-
private adminApiClients;
|
|
47
|
-
private modelerApiClients;
|
|
48
|
-
private
|
|
49
|
-
private
|
|
42
|
+
private readonly zeebeGrpcApiClients;
|
|
43
|
+
private readonly camundaRestClients;
|
|
44
|
+
private readonly operateApiClients;
|
|
45
|
+
private readonly tasklistApiClients;
|
|
46
|
+
private readonly optimizeApiClients;
|
|
47
|
+
private readonly adminApiClients;
|
|
48
|
+
private readonly modelerApiClients;
|
|
49
|
+
private readonly orchestrationRestClients;
|
|
50
|
+
private readonly orchestrationLooseClients;
|
|
51
|
+
private readonly createdClients;
|
|
50
52
|
private __apiClientCreationListener?;
|
|
51
|
-
private defaultCached;
|
|
52
|
-
private configuration;
|
|
53
|
-
private oAuthProvider;
|
|
53
|
+
private readonly defaultCached;
|
|
54
|
+
private readonly configuration;
|
|
55
|
+
private readonly oAuthProvider;
|
|
54
56
|
log: Logger;
|
|
55
57
|
/**
|
|
56
58
|
* All constructor parameters for configuration are optional. If no configuration is provided, the SDK will use environment variables to configure itself.
|
|
@@ -123,16 +125,19 @@ export declare class Camunda8 {
|
|
|
123
125
|
*/
|
|
124
126
|
getZeebeGrpcApiClient(config?: Camunda8ClientConfiguration, options?: ClientOptions): ZeebeGrpcClient;
|
|
125
127
|
private createNewZeebeGrpcClient;
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated from 8.6.0. Please use getCamundaRestClient() instead.
|
|
128
|
-
*/
|
|
129
|
-
getZeebeRestClient(config?: Camunda8ClientConfiguration, options?: ClientOptions): ZeebeRestClient;
|
|
130
|
-
private createNewZeebeRestClient;
|
|
131
128
|
/**
|
|
132
129
|
* Returns a client for the Camunda 8 REST API
|
|
133
130
|
* See: https://docs.camunda.io/docs/apis-tools/camunda-api-rest/camunda-api-rest-overview/
|
|
134
131
|
*/
|
|
135
132
|
getCamundaRestClient(config?: Camunda8ClientConfiguration, options?: ClientOptions): CamundaRestClient;
|
|
133
|
+
getOrchestrationClusterApiClient(config?: Camunda8ClientConfiguration, options?: ClientOptions): CamundaClient;
|
|
134
|
+
/**
|
|
135
|
+
* Returns a loosely-typed Orchestration Cluster API client.
|
|
136
|
+
* This variant widens branded key types to primitive strings for progressive adoption.
|
|
137
|
+
*/
|
|
138
|
+
getOrchestrationClusterApiClientLoose(config?: Camunda8ClientConfiguration, options?: ClientOptions): CamundaClientLoose;
|
|
139
|
+
private createNewOrchestrationClusterApiClientLoose;
|
|
140
|
+
private createNewOrchestrationClusterApiClient;
|
|
136
141
|
private createNewCamundaRestClient;
|
|
137
142
|
}
|
|
138
143
|
export {};
|
package/dist/c8/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Camunda8 = void 0;
|
|
4
|
+
const orchestration_cluster_api_1 = require("@camunda8/orchestration-cluster-api");
|
|
4
5
|
const admin_1 = require("../admin");
|
|
5
6
|
const lib_1 = require("../lib");
|
|
6
7
|
const modeler_1 = require("../modeler");
|
|
@@ -8,6 +9,9 @@ const operate_1 = require("../operate");
|
|
|
8
9
|
const optimize_1 = require("../optimize");
|
|
9
10
|
const tasklist_1 = require("../tasklist");
|
|
10
11
|
const zeebe_1 = require("../zeebe");
|
|
12
|
+
// Progressive adoption bridge: translate existing SDK config into OCA env-style overrides
|
|
13
|
+
const CamundaClientConfigTranslator_1 = require("../lib/CamundaClientConfigTranslator");
|
|
14
|
+
const CamundaSupportLogger_1 = require("../lib/CamundaSupportLogger");
|
|
11
15
|
const C8Logger_1 = require("./lib/C8Logger");
|
|
12
16
|
const CamundaRestClient_1 = require("./lib/CamundaRestClient");
|
|
13
17
|
/**
|
|
@@ -52,7 +56,8 @@ class Camunda8 {
|
|
|
52
56
|
this.optimizeApiClients = new Map();
|
|
53
57
|
this.adminApiClients = new Map();
|
|
54
58
|
this.modelerApiClients = new Map();
|
|
55
|
-
this.
|
|
59
|
+
this.orchestrationRestClients = new Map();
|
|
60
|
+
this.orchestrationLooseClients = new Map();
|
|
56
61
|
// Client tracking for lifecycle management
|
|
57
62
|
this.createdClients = new Set();
|
|
58
63
|
this.configuration =
|
|
@@ -109,7 +114,6 @@ class Camunda8 {
|
|
|
109
114
|
this.optimizeApiClients.clear();
|
|
110
115
|
this.adminApiClients.clear();
|
|
111
116
|
this.modelerApiClients.clear();
|
|
112
|
-
this.zeebeRestClients.clear();
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* Returns a client for the "Operate REST API"
|
|
@@ -268,45 +272,80 @@ class Camunda8 {
|
|
|
268
272
|
return client;
|
|
269
273
|
}
|
|
270
274
|
/**
|
|
271
|
-
*
|
|
275
|
+
* Returns a client for the Camunda 8 REST API
|
|
276
|
+
* See: https://docs.camunda.io/docs/apis-tools/camunda-api-rest/camunda-api-rest-overview/
|
|
272
277
|
*/
|
|
273
|
-
|
|
278
|
+
getCamundaRestClient(config = {}, options = {}) {
|
|
274
279
|
const { cached = this.defaultCached } = options;
|
|
275
280
|
if (!cached) {
|
|
276
|
-
return this.
|
|
281
|
+
return this.createNewCamundaRestClient(config);
|
|
277
282
|
}
|
|
278
283
|
const configKey = this.createConfigKey(config);
|
|
279
|
-
if (this.
|
|
280
|
-
return this.
|
|
284
|
+
if (this.camundaRestClients.has(configKey)) {
|
|
285
|
+
return this.camundaRestClients.get(configKey);
|
|
281
286
|
}
|
|
282
|
-
const client = this.
|
|
283
|
-
this.
|
|
287
|
+
const client = this.createNewCamundaRestClient(config);
|
|
288
|
+
this.camundaRestClients.set(configKey, client);
|
|
284
289
|
return client;
|
|
285
290
|
}
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
291
|
+
getOrchestrationClusterApiClient(config = {}, options = {}) {
|
|
292
|
+
const { cached = this.defaultCached } = options;
|
|
293
|
+
if (!cached) {
|
|
294
|
+
return this.createNewOrchestrationClusterApiClient(config);
|
|
295
|
+
}
|
|
296
|
+
const configKey = this.createConfigKey(config);
|
|
297
|
+
if (this.orchestrationRestClients.has(configKey)) {
|
|
298
|
+
return this.orchestrationRestClients.get(configKey);
|
|
299
|
+
}
|
|
300
|
+
const client = this.createNewOrchestrationClusterApiClient(config);
|
|
301
|
+
this.orchestrationRestClients.set(configKey, client);
|
|
293
302
|
return client;
|
|
294
303
|
}
|
|
295
304
|
/**
|
|
296
|
-
* Returns a
|
|
297
|
-
*
|
|
305
|
+
* Returns a loosely-typed Orchestration Cluster API client.
|
|
306
|
+
* This variant widens branded key types to primitive strings for progressive adoption.
|
|
298
307
|
*/
|
|
299
|
-
|
|
308
|
+
getOrchestrationClusterApiClientLoose(config = {}, options = {}) {
|
|
300
309
|
const { cached = this.defaultCached } = options;
|
|
301
310
|
if (!cached) {
|
|
302
|
-
return this.
|
|
311
|
+
return this.createNewOrchestrationClusterApiClientLoose(config);
|
|
303
312
|
}
|
|
304
313
|
const configKey = this.createConfigKey(config);
|
|
305
|
-
if (this.
|
|
306
|
-
return this.
|
|
314
|
+
if (this.orchestrationLooseClients.has(configKey)) {
|
|
315
|
+
return this.orchestrationLooseClients.get(configKey);
|
|
307
316
|
}
|
|
308
|
-
const client = this.
|
|
309
|
-
this.
|
|
317
|
+
const client = this.createNewOrchestrationClusterApiClientLoose(config);
|
|
318
|
+
this.orchestrationLooseClients.set(configKey, client);
|
|
319
|
+
return client;
|
|
320
|
+
}
|
|
321
|
+
createNewOrchestrationClusterApiClientLoose(config) {
|
|
322
|
+
const sdkMergedConfig = { ...this.configuration, ...config };
|
|
323
|
+
const envOverrides = (0, CamundaClientConfigTranslator_1.translateToOcaEnvOverrides)({
|
|
324
|
+
sdkConfig: sdkMergedConfig,
|
|
325
|
+
});
|
|
326
|
+
// Pass existing support logger instance so OCA client reuses singleton (no duplicate init)
|
|
327
|
+
const client = (0, orchestration_cluster_api_1.createCamundaClientLoose)({
|
|
328
|
+
config: envOverrides,
|
|
329
|
+
supportLogger: CamundaSupportLogger_1.CamundaSupportLogger.getInstance(),
|
|
330
|
+
});
|
|
331
|
+
this.createdClients.add(client);
|
|
332
|
+
this.__apiClientCreationListener?.(client);
|
|
333
|
+
return client;
|
|
334
|
+
}
|
|
335
|
+
createNewOrchestrationClusterApiClient(config) {
|
|
336
|
+
// Progressive adoption: translate existing SDK config to OCA overrides and pass directly.
|
|
337
|
+
// No mutation of process.env required now that CamundaOptions.config is exposed upstream.
|
|
338
|
+
const sdkMergedConfig = { ...this.configuration, ...config };
|
|
339
|
+
const envOverrides = (0, CamundaClientConfigTranslator_1.translateToOcaEnvOverrides)({
|
|
340
|
+
sdkConfig: sdkMergedConfig,
|
|
341
|
+
});
|
|
342
|
+
// Inject singleton support logger for unified diagnostic logging
|
|
343
|
+
const client = (0, orchestration_cluster_api_1.createCamundaClient)({
|
|
344
|
+
config: envOverrides,
|
|
345
|
+
supportLogger: CamundaSupportLogger_1.CamundaSupportLogger.getInstance(),
|
|
346
|
+
});
|
|
347
|
+
this.createdClients.add(client);
|
|
348
|
+
this.__apiClientCreationListener?.(client);
|
|
310
349
|
return client;
|
|
311
350
|
}
|
|
312
351
|
createNewCamundaRestClient(config) {
|
package/dist/c8/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/c8/index.ts"],"names":[],"mappings":";;;AAAA,oCAAyC;AACzC,gCAKe;AACf,wCAA6C;AAE7C,wCAA6C;AAC7C,0CAA+C;AAC/C,0CAA+C;AAC/C,oCAA2D;AAE3D,6CAAkD;AAClD,+DAA2D;AAyB3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,QAAQ;IAyBpB;;;;OAIG;IAEH;IACC;;OAEG;IACH,SAOI,EAAE;IACN;;OAEG;IACH,UAA2B,EAAE,aAAa,EAAE,IAAI,EAAE;QA7CnD,2DAA2D;QACnD,wBAAmB,GAAG,IAAI,GAAG,EAA2B,CAAA;QACxD,uBAAkB,GAAG,IAAI,GAAG,EAA6B,CAAA;QACzD,sBAAiB,GAAG,IAAI,GAAG,EAA4B,CAAA;QACvD,uBAAkB,GAAG,IAAI,GAAG,EAA6B,CAAA;QACzD,uBAAkB,GAAG,IAAI,GAAG,EAA6B,CAAA;QACzD,oBAAe,GAAG,IAAI,GAAG,EAA0B,CAAA;QACnD,sBAAiB,GAAG,IAAI,GAAG,EAA4B,CAAA;QACvD,qBAAgB,GAAG,IAAI,GAAG,EAA2B,CAAA;QAE7D,2CAA2C;QACnC,mBAAc,GAAG,IAAI,GAAG,EAAa,CAAA;QAoC5C,IAAI,CAAC,aAAa;YACjB,oCAA8B,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAA;QAClE,8CAA8C;QAC9C,8DAA8D;QAC9D,IAAI,CAAC,aAAa;YACjB,MAAM,CAAC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AA;IACd,CAAC;IAEO,sCAAsC,CAC7C,MAAmC;QAEnC,0FAA0F;QAC1F,0FAA0F;QAC1F,MAAM,eAAe,GAAG,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,GAAG,MAAM,EAAE,CAAA;QAC5D,MAAM,YAAY,GAAG,IAAA,0DAA0B,EAAC;YAC/C,SAAS,EAAE,eAAe;SAC1B,CAAC,CAAA;QACF,iEAAiE;QACjE,MAAM,MAAM,GAAG,IAAA,+CAAmB,EAAC;YAClC,MAAM,EAAE,YAAY;YACpB,aAAa,EAAE,2CAAoB,CAAC,WAAW,EAAE;SACjD,CAAC,CAAA;QACF,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC/B,IAAI,CAAC,2BAA2B,EAAE,CAAC,MAAM,CAAC,CAAA;QAC1C,OAAO,MAAM,CAAA;IACd,CAAC;IAEO,0BAA0B,CACjC,MAAmC;QAEnC,MAAM,MAAM,GAAG,IAAI,qCAAiB,CAAC;YACpC,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,GAAG,MAAM,EAAE;YAC5C,aAAa,EAAE,IAAI,CAAC,aAAa;SACjC,CAAC,CAAA;QAEF,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC/B,IAAI,CAAC,2BAA2B,EAAE,CAAC,MAAM,CAAC,CAAA;QAE1C,OAAO,MAAM,CAAA;IACd,CAAC;CACD;AA/dD,4BA+dC"}
|
package/dist/c8/lib/C8Dto.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadStream } from 'fs';
|
|
1
|
+
import { ReadStream } from 'node:fs';
|
|
2
2
|
import { LosslessNumber } from 'lossless-json';
|
|
3
3
|
import { LosslessDto } from '../../lib';
|
|
4
4
|
import { ICustomHeaders, IInputVariables, IProcessVariables, JobCompletionInterfaceRest, JSONDoc } from '../../zeebe/types';
|
|
@@ -546,15 +546,16 @@ export interface SearchUserTaskVariablesResponse extends PaginatedSearchResponse
|
|
|
546
546
|
isTruncated: boolean;
|
|
547
547
|
}> {
|
|
548
548
|
}
|
|
549
|
+
export type ProcessInstanceState = 'ACTIVE' | 'COMPLETED' | 'CANCELED';
|
|
549
550
|
export interface AdvancedProcessInstanceStateFilter {
|
|
550
551
|
/** Checks for equality with the provided value. */
|
|
551
|
-
$eq?:
|
|
552
|
+
$eq?: ProcessInstanceState;
|
|
552
553
|
/** Checks for inequality with the provided value. */
|
|
553
|
-
$neq?:
|
|
554
|
+
$neq?: ProcessInstanceState;
|
|
554
555
|
/** Checks if the current property exists. */
|
|
555
556
|
$exists?: boolean;
|
|
556
557
|
/** Checks if the property matches any of the provided values. */
|
|
557
|
-
$in:
|
|
558
|
+
$in: ProcessInstanceState[];
|
|
558
559
|
/** Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client. */
|
|
559
560
|
$like: string;
|
|
560
561
|
}
|
|
@@ -1002,6 +1003,3 @@ export interface CamundaRestError {
|
|
|
1002
1003
|
instance: string;
|
|
1003
1004
|
}
|
|
1004
1005
|
export {};
|
|
1005
|
-
/**
|
|
1006
|
-
* Response from getting a single decision instance by its key.
|
|
1007
|
-
*/
|