@camunda8/sdk 8.7.24 → 8.7.25
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 +12 -0
- package/README.md +27 -15
- package/dist/c8/lib/C8Dto.d.ts +52 -103
- package/dist/c8/lib/C8Dto.js +6 -8
- package/dist/c8/lib/C8Dto.js.map +1 -1
- package/dist/c8/lib/C8DtoInternal.d.ts +53 -0
- package/dist/c8/lib/C8DtoInternal.js +17 -0
- package/dist/c8/lib/C8DtoInternal.js.map +1 -0
- package/dist/c8/lib/CamundaJobWorker.d.ts +2 -1
- package/dist/c8/lib/CamundaJobWorker.js.map +1 -1
- package/dist/c8/lib/CamundaRestClient.d.ts +15 -14
- package/dist/c8/lib/CamundaRestClient.js.map +1 -1
- package/dist/dto/schema.d.ts +11322 -0
- package/dist/dto/schema.js +7 -0
- package/dist/dto/schema.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/GotHooks.js +5 -3
- package/dist/lib/GotHooks.js.map +1 -1
- package/dist/lib/ZeebeGrpcAddressUtils.js +1 -1
- package/dist/lib/ZeebeGrpcAddressUtils.js.map +1 -1
- package/dist/zeebe/lib/stringifyVariables.js +5 -1
- package/dist/zeebe/lib/stringifyVariables.js.map +1 -1
- package/package.json +1 -1
- package/smoke-test/smoke-test.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [8.7.25](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.24...v8.7.25) (2025-07-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* export SearchUsersRequest type ([5c44ffe](https://github.com/camunda/camunda-8-js-sdk/commit/5c44ffe8074e3899df847710ec95a64477d9d61b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* export Camunda Rest Types. fixes [#564](https://github.com/camunda/camunda-8-js-sdk/issues/564) ([b4b0d53](https://github.com/camunda/camunda-8-js-sdk/commit/b4b0d53522513622f0db1f96de62906d2bbaff80))
|
|
12
|
+
|
|
1
13
|
## [8.7.24](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.23...v8.7.24) (2025-07-25)
|
|
2
14
|
|
|
3
15
|
|
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
6
6
|
|
|
7
|
-
Full API Docs
|
|
7
|
+
[Full API Docs](https://camunda.github.io/camunda-8-js-sdk/).
|
|
8
8
|
|
|
9
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).
|
|
10
10
|
|
|
11
|
-
See the
|
|
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
13
|
## What does "supported" mean?
|
|
14
14
|
|
|
@@ -32,15 +32,23 @@ npm i @camunda8/sdk
|
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
The functionality of Camunda 8 is exposed via dedicated clients for the component APIs. The recommended API client for Camunda 8.8 is the Orchestration Cluster API, using the `CamundaRestClient`.
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { Camunda8 } from '@camunda8/sdk'
|
|
39
39
|
|
|
40
|
+
// Optional: Import types for CamundaRestClient requests and responses
|
|
41
|
+
import type { CamundaRestTypes} from '@camunda8/sdk'
|
|
42
|
+
|
|
40
43
|
const c8 = new Camunda8()
|
|
41
|
-
|
|
44
|
+
|
|
45
|
+
// Camunda 8 Orchestration API - recommended API from 8.8.0
|
|
46
|
+
const restClient = c8.getCamundaRestClient()
|
|
47
|
+
|
|
48
|
+
// Zeebe gRPC client - not recommended for new users
|
|
42
49
|
const zeebe = c8.getZeebeGrpcApiClient()
|
|
43
|
-
|
|
50
|
+
|
|
51
|
+
// Camunda v1 REST API clients
|
|
44
52
|
const operate = c8.getOperateApiClient()
|
|
45
53
|
const optimize = c8.getOptimizeApiClient()
|
|
46
54
|
const tasklist = c8.getTasklistApiClient()
|
|
@@ -58,9 +66,9 @@ Any configuration passed in to the `Camunda8` constructor is merged over any con
|
|
|
58
66
|
|
|
59
67
|
## A note on how int64 is handled in the JavaScript SDK
|
|
60
68
|
|
|
61
|
-
Entity keys in Camunda 8 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.
|
|
69
|
+
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.
|
|
62
70
|
|
|
63
|
-
For `int64` values whose type is not known ahead of time, such as job variables, you can pass an annotated data transfer object (DTO) to decode them reliably. If no DTO is specified, the default behavior of the SDK is to serialise all numbers to JavaScript `number`, and to throw an exception if a number value is detected at a runtime that cannot be accurately represented as the JavaScript `number` type (that is, a value greater than 2^53-1).
|
|
71
|
+
For `int64` values whose type is not known ahead of time, such as job variables, you can pass an annotated data transfer object (DTO) to decode them reliably. See the section on [Process Variable Typing](#process-variable-typing). If no DTO is specified, the default behavior of the SDK is to serialise all numbers to JavaScript `number`, and to throw an exception if a number value is detected at a runtime that cannot be accurately represented as the JavaScript `number` type (that is, a value greater than 2^53-1).
|
|
64
72
|
|
|
65
73
|
## Authorization
|
|
66
74
|
|
|
@@ -206,6 +214,16 @@ CAMUNDA_CUSTOM_PRIVATE_KEY_PATH # path to mTLS (client-side) key
|
|
|
206
214
|
|
|
207
215
|
## Connection configuration examples
|
|
208
216
|
|
|
217
|
+
### Camunda 8 Run 8.8
|
|
218
|
+
|
|
219
|
+
This is the configuration for [Camunda 8 Run](https://developers.camunda.com/install-camunda-8/) - a local Camunda 8 instance that is the best way to get started.
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
export ZEEBE_REST_ADDRESS='http://localhost:8080'
|
|
223
|
+
export ZEEBE_GRPC_ADDRESS='grpc://localhost:26500'
|
|
224
|
+
export CAMUNDA_AUTH_STRATEGY=NONE
|
|
225
|
+
```
|
|
226
|
+
|
|
209
227
|
### Self-Managed
|
|
210
228
|
|
|
211
229
|
This is the complete environment configuration needed to run against the Dockerised Self-Managed stack in the `docker` subdirectory:
|
|
@@ -226,9 +244,6 @@ export CAMUNDA_MODELER_BASE_URL='http://localhost:8070/api'
|
|
|
226
244
|
# Turn off the tenant ID, which may have been set by multi-tenant tests
|
|
227
245
|
# You can set this in a constructor config, or in the environment if running multi-tenant
|
|
228
246
|
export CAMUNDA_TENANT_ID=''
|
|
229
|
-
|
|
230
|
-
# TLS for gRPC is on by default. If the Zeebe broker is not secured by TLS, turn it off
|
|
231
|
-
export CAMUNDA_SECURE_CONNECTION=false
|
|
232
247
|
```
|
|
233
248
|
|
|
234
249
|
If you are using an OIDC that requires a `scope` parameter to be passed with the token request, set the following variable:
|
|
@@ -268,16 +283,13 @@ export ZEEBE_GRPC_ADDRESS='grpcs://5c34c0a7-7f29-4424-8414-125615f7a9b9.syd-1.ze
|
|
|
268
283
|
export ZEEBE_REST_ADDRESS='https://syd-1.zeebe.camunda.io/5c34c0a7-7f29-4424-8414-125615f7a9b9'
|
|
269
284
|
export ZEEBE_CLIENT_ID='yvvURO9TmBnP3zx4Xd8Ho6apgeiZTjn6'
|
|
270
285
|
export ZEEBE_CLIENT_SECRET='iJJu-SHgUtuJTTAMnMLdcb8WGF8s2mHfXhXutEwe8eSbLXn98vUpoxtuLk5uG0en'
|
|
271
|
-
|
|
286
|
+
|
|
272
287
|
export CAMUNDA_TASKLIST_BASE_URL='https://syd-1.tasklist.camunda.io/5c34c0a7-7f29-4424-8414-125615f7a9b9'
|
|
273
288
|
export CAMUNDA_OPTIMIZE_BASE_URL='https://syd-1.optimize.camunda.io/5c34c0a7-7f29-4424-8414-125615f7a9b9'
|
|
274
289
|
export CAMUNDA_OPERATE_BASE_URL='https://syd-1.operate.camunda.io/5c34c0a7-7f29-4424-8414-125615f7a9b9'
|
|
275
290
|
export CAMUNDA_OAUTH_URL='https://login.cloud.camunda.io/oauth/token'
|
|
276
291
|
export CAMUNDA_AUTH_STRATEGY='OAUTH'
|
|
277
292
|
|
|
278
|
-
# This is on by default, but we include it in case it got turned off for local tests
|
|
279
|
-
export CAMUNDA_SECURE_CONNECTION=true
|
|
280
|
-
|
|
281
293
|
# Admin Console and Modeler API Client
|
|
282
294
|
export CAMUNDA_CONSOLE_CLIENT_ID='e-JdgKfJy9hHSXzi'
|
|
283
295
|
export CAMUNDA_CONSOLE_CLIENT_SECRET='DT8Pe-ANC6e3Je_ptLyzZvBNS0aFwaIV'
|
|
@@ -298,7 +310,7 @@ You can supply a custom logger via the constructor. For example, to use the [Pin
|
|
|
298
310
|
```typescript
|
|
299
311
|
import pino from 'pino'
|
|
300
312
|
|
|
301
|
-
import { Camunda8 } from '
|
|
313
|
+
import { Camunda8 } from '@camunda8/sdk'
|
|
302
314
|
|
|
303
315
|
const level = process.env.CAMUNDA_LOG_LEVEL ?? 'trace'
|
|
304
316
|
const logger = pino({ level }) // Logging level controlled via the logging library
|
package/dist/c8/lib/C8Dto.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
2
|
import { ReadStream } from 'fs';
|
|
4
3
|
import { LosslessNumber } from 'lossless-json';
|
|
5
4
|
import { LosslessDto } from '../../lib';
|
|
6
5
|
import { ICustomHeaders, IInputVariables, IProcessVariables, JobCompletionInterfaceRest, JSONDoc } from '../../zeebe/types';
|
|
6
|
+
import { DeployResourceResponseDto, SearchSortRequest } from './C8DtoInternal';
|
|
7
7
|
export declare class RestApiJob<Variables = LosslessDto, CustomHeaders = LosslessDto> extends LosslessDto {
|
|
8
8
|
jobKey: string;
|
|
9
9
|
type: string;
|
|
@@ -41,7 +41,6 @@ export interface NewUserInfo {
|
|
|
41
41
|
name: string;
|
|
42
42
|
email: string;
|
|
43
43
|
}
|
|
44
|
-
export type Ctor<T> = new (obj: any) => T;
|
|
45
44
|
export declare class ProcessDeployment extends LosslessDto {
|
|
46
45
|
/** This is the ID of the process definition. It is a human-readable string defined in the process model */
|
|
47
46
|
processDefinitionId: string;
|
|
@@ -76,19 +75,6 @@ export declare class FormDeployment {
|
|
|
76
75
|
resourceName: string;
|
|
77
76
|
tenantId: string;
|
|
78
77
|
}
|
|
79
|
-
export declare class DeployResourceResponseDto extends LosslessDto {
|
|
80
|
-
deploymentKey: string;
|
|
81
|
-
deployments: ({
|
|
82
|
-
processDefinition: ProcessDeployment;
|
|
83
|
-
} | {
|
|
84
|
-
decisionDefinition: DecisionDeployment;
|
|
85
|
-
} | {
|
|
86
|
-
decisionRequirements: DecisionRequirementsDeployment;
|
|
87
|
-
} | {
|
|
88
|
-
form: FormDeployment;
|
|
89
|
-
})[];
|
|
90
|
-
tenantId: string;
|
|
91
|
-
}
|
|
92
78
|
export declare class DeployResourceResponse extends DeployResourceResponseDto {
|
|
93
79
|
processes: ProcessDeployment[];
|
|
94
80
|
decisions: DecisionDeployment[];
|
|
@@ -119,6 +105,8 @@ export declare class CreateProcessInstanceResponse<T = Record<string, never>> {
|
|
|
119
105
|
*/
|
|
120
106
|
readonly variables: T;
|
|
121
107
|
}
|
|
108
|
+
export declare class CreateProcessInstanceWithResultResponse<T> extends CreateProcessInstanceResponse<T> {
|
|
109
|
+
}
|
|
122
110
|
export interface MigrationMappingInstruction {
|
|
123
111
|
/** The element ID to migrate from. */
|
|
124
112
|
sourceElementId: string;
|
|
@@ -179,7 +167,7 @@ export declare class PublishMessageResponse extends LosslessDto {
|
|
|
179
167
|
/** the tenantId of the message */
|
|
180
168
|
tenantId: string;
|
|
181
169
|
}
|
|
182
|
-
|
|
170
|
+
interface CreateProcessBaseRequest<V extends JSONDoc | LosslessDto> {
|
|
183
171
|
/**
|
|
184
172
|
* the version of the process; if not specified it will use the latest version
|
|
185
173
|
*/
|
|
@@ -217,19 +205,19 @@ export interface ProcessInstanceCreationStartInstruction {
|
|
|
217
205
|
*/
|
|
218
206
|
elementId: string;
|
|
219
207
|
}
|
|
220
|
-
|
|
208
|
+
interface CreateProcessInstanceFromProcessDefinitionId<V extends JSONDoc | LosslessDto> extends CreateProcessBaseRequest<V> {
|
|
221
209
|
/**
|
|
222
210
|
* the BPMN process ID of the process definition
|
|
223
211
|
*/
|
|
224
212
|
processDefinitionId: string;
|
|
225
213
|
}
|
|
226
|
-
|
|
214
|
+
interface CreateProcessInstanceFromProcessDefinition<V extends JSONDoc | LosslessDto> extends CreateProcessBaseRequest<V> {
|
|
227
215
|
/**
|
|
228
216
|
* the key of the process definition
|
|
229
217
|
*/
|
|
230
218
|
processDefinitionKey: string;
|
|
231
219
|
}
|
|
232
|
-
export type
|
|
220
|
+
export type CreateProcessInstanceRequest<T extends JSONDoc | LosslessDto> = CreateProcessInstanceFromProcessDefinitionId<T> | CreateProcessInstanceFromProcessDefinition<T>;
|
|
233
221
|
export interface PatchAuthorizationRequest {
|
|
234
222
|
/** The key of the owner of the authorization. */
|
|
235
223
|
ownerKey: string;
|
|
@@ -284,7 +272,7 @@ export interface RestJob<Variables = IInputVariables, CustomHeaderShape = ICusto
|
|
|
284
272
|
*/
|
|
285
273
|
readonly tenantId: string;
|
|
286
274
|
}
|
|
287
|
-
export type
|
|
275
|
+
export type ActivatedJob<VariablesDto, CustomHeadersDto> = RestJob<VariablesDto, CustomHeadersDto> & JobCompletionInterfaceRest<IProcessVariables>;
|
|
288
276
|
interface SearchPageRequestSearchAfter {
|
|
289
277
|
/** The index of items to start searching from. */
|
|
290
278
|
from: number;
|
|
@@ -301,7 +289,7 @@ interface SearchPageRequestSearchBefore {
|
|
|
301
289
|
}
|
|
302
290
|
export type SearchPageRequest = SearchPageRequestSearchAfter | SearchPageRequestSearchBefore;
|
|
303
291
|
/** Generic search request interface that can be used for most search operations */
|
|
304
|
-
|
|
292
|
+
interface BaseSearchRequest<TSortFields extends string, TFilter> {
|
|
305
293
|
/** Pagination criteria. */
|
|
306
294
|
page?: SearchPageRequest;
|
|
307
295
|
/** Sort field criteria. */
|
|
@@ -348,7 +336,7 @@ export interface AdvancedNumberFilter {
|
|
|
348
336
|
/** Checks if the property is less than or equal to the provided value. */
|
|
349
337
|
$lte?: number;
|
|
350
338
|
}
|
|
351
|
-
export interface
|
|
339
|
+
export interface VariableSearchRequestFilter {
|
|
352
340
|
/** The key for this variable. */
|
|
353
341
|
variableKey?: string | AdvancedStringFilter;
|
|
354
342
|
/** Name of the variable. */
|
|
@@ -364,13 +352,7 @@ export interface VariableSearchFilterRequest {
|
|
|
364
352
|
/** Whether the value is truncated or not. */
|
|
365
353
|
isTruncated?: boolean;
|
|
366
354
|
}
|
|
367
|
-
|
|
368
|
-
/** The field to sort by. */
|
|
369
|
-
field: T;
|
|
370
|
-
/** The order in which to sort the related field. Default value: ASC */
|
|
371
|
-
order?: 'ASC' | 'DESC';
|
|
372
|
-
}>;
|
|
373
|
-
export interface CamundaRestSearchResponsePagination {
|
|
355
|
+
interface SearchResponsePagination {
|
|
374
356
|
/** Total items matching the criteria. */
|
|
375
357
|
totalItems: number;
|
|
376
358
|
/** The cursor for the first item in the result set. Use this in the searchBefore field of an ensuing request. */
|
|
@@ -378,13 +360,13 @@ export interface CamundaRestSearchResponsePagination {
|
|
|
378
360
|
/** The cursor for the last item in the result set. Use this in the searchAfter field of an ensuing request. */
|
|
379
361
|
endCursor: string;
|
|
380
362
|
}
|
|
381
|
-
interface
|
|
363
|
+
interface PaginatedSearchResponse<T> {
|
|
382
364
|
/** Pagination information about the search results. */
|
|
383
|
-
page:
|
|
365
|
+
page: SearchResponsePagination;
|
|
384
366
|
/** The matching items. */
|
|
385
367
|
items: T[];
|
|
386
368
|
}
|
|
387
|
-
interface VariableDetails {
|
|
369
|
+
export interface VariableDetails {
|
|
388
370
|
/** The key for this variable. */
|
|
389
371
|
variableKey: string;
|
|
390
372
|
/** The key of the scope of this variable. */
|
|
@@ -400,9 +382,9 @@ interface VariableDetails {
|
|
|
400
382
|
/** Whether the value is truncated or not. */
|
|
401
383
|
isTruncated: boolean;
|
|
402
384
|
}
|
|
403
|
-
export interface SearchVariablesRequest extends BaseSearchRequest<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey',
|
|
385
|
+
export interface SearchVariablesRequest extends BaseSearchRequest<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', VariableSearchRequestFilter> {
|
|
404
386
|
}
|
|
405
|
-
export interface
|
|
387
|
+
export interface SearchVariablesResponse extends PaginatedSearchResponse<VariableDetails> {
|
|
406
388
|
}
|
|
407
389
|
export type SearchUserTasksSortRequest = SearchSortRequest<'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority'>;
|
|
408
390
|
export interface AdvancedDateTimeFilter {
|
|
@@ -424,7 +406,7 @@ export interface AdvancedDateTimeFilter {
|
|
|
424
406
|
$in: string[];
|
|
425
407
|
}
|
|
426
408
|
/** User task filter request. */
|
|
427
|
-
export interface
|
|
409
|
+
export interface SearchUserTasksRequestFilter {
|
|
428
410
|
/** The key for this user task. */
|
|
429
411
|
userTaskKey?: string;
|
|
430
412
|
/** The state of the user task. */
|
|
@@ -472,9 +454,9 @@ export interface SearchUserTasksFilter {
|
|
|
472
454
|
value: string;
|
|
473
455
|
}>;
|
|
474
456
|
}
|
|
475
|
-
export interface SearchTasksRequest extends BaseSearchRequestWithOptionalFilter<'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority',
|
|
457
|
+
export interface SearchTasksRequest extends BaseSearchRequestWithOptionalFilter<'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority', SearchUserTasksRequestFilter> {
|
|
476
458
|
}
|
|
477
|
-
interface UserTaskDetails {
|
|
459
|
+
export interface UserTaskDetails {
|
|
478
460
|
/** The key of the user task. */
|
|
479
461
|
userTaskKey: string;
|
|
480
462
|
/** The key of the element instance. */
|
|
@@ -486,7 +468,7 @@ interface UserTaskDetails {
|
|
|
486
468
|
/** The key of the form. */
|
|
487
469
|
formKey: string;
|
|
488
470
|
}
|
|
489
|
-
export interface
|
|
471
|
+
export interface SearchUserTasksResponse extends PaginatedSearchResponse<UserTaskDetails> {
|
|
490
472
|
}
|
|
491
473
|
export interface UserTask {
|
|
492
474
|
/** The name for this user task. */
|
|
@@ -545,14 +527,14 @@ export interface AssignUserTaskRequest {
|
|
|
545
527
|
/** A custom action value that will be accessible from user task events resulting from this endpoint invocation. If not provided, it will default to "assign". */
|
|
546
528
|
action?: string;
|
|
547
529
|
}
|
|
548
|
-
export interface
|
|
530
|
+
export interface SearchUserTaskVariablesRequest extends BaseSearchRequestWithOptionalFilter<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', {
|
|
549
531
|
/** Name of the variable. */
|
|
550
532
|
name: string;
|
|
551
533
|
}> {
|
|
552
534
|
userTaskKey: string;
|
|
553
535
|
}
|
|
554
536
|
/** The user task variables search response for CamundaRestClient. */
|
|
555
|
-
export interface
|
|
537
|
+
export interface SearchUserTaskVariablesResponse extends PaginatedSearchResponse<{
|
|
556
538
|
/** The key for this variable. */
|
|
557
539
|
variableKey: string;
|
|
558
540
|
/** The key of the scope of this variable. */
|
|
@@ -577,7 +559,7 @@ export interface AdvancedProcessInstanceStateFilter {
|
|
|
577
559
|
/** Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client. */
|
|
578
560
|
$like: string;
|
|
579
561
|
}
|
|
580
|
-
export interface
|
|
562
|
+
export interface SearchProcessInstanceRequestFilter {
|
|
581
563
|
/** The key of this process instance. */
|
|
582
564
|
processInstanceKey?: string | AdvancedStringFilter;
|
|
583
565
|
/** The process definition ID. */
|
|
@@ -611,7 +593,7 @@ export interface ProcessInstanceSearchFilter {
|
|
|
611
593
|
}>;
|
|
612
594
|
}
|
|
613
595
|
/** This is the 8.8 API. */
|
|
614
|
-
export interface SearchProcessInstanceRequest extends BaseSearchRequest<'processInstanceKey' | 'processDefinitionId' | 'processDefinitionName' | 'processDefinitionVersion' | 'processDefinitionVersionTag' | 'processDefinitionKey' | 'parentProcessInstanceKey' | 'parentFlowNodeInstanceKey' | 'state' | 'startDate' | 'endDate' | 'tenantId' | 'hasIncident',
|
|
596
|
+
export interface SearchProcessInstanceRequest extends BaseSearchRequest<'processInstanceKey' | 'processDefinitionId' | 'processDefinitionName' | 'processDefinitionVersion' | 'processDefinitionVersionTag' | 'processDefinitionKey' | 'parentProcessInstanceKey' | 'parentFlowNodeInstanceKey' | 'state' | 'startDate' | 'endDate' | 'tenantId' | 'hasIncident', SearchProcessInstanceRequestFilter> {
|
|
615
597
|
}
|
|
616
598
|
export interface ProcessInstanceDetails {
|
|
617
599
|
/** The key of the process instance. */
|
|
@@ -639,7 +621,7 @@ export interface ProcessInstanceDetails {
|
|
|
639
621
|
/** Has an incident. */
|
|
640
622
|
hasIncident: boolean;
|
|
641
623
|
}
|
|
642
|
-
export interface
|
|
624
|
+
export interface SearchProcessInstanceResponse extends PaginatedSearchResponse<ProcessInstanceDetails> {
|
|
643
625
|
}
|
|
644
626
|
export interface DownloadDocumentRequest {
|
|
645
627
|
/** The ID of the document to download. */
|
|
@@ -660,9 +642,9 @@ export interface UploadDocumentRequest {
|
|
|
660
642
|
documentId?: string;
|
|
661
643
|
/** A file ReadStream created with fs.createReadStream() */
|
|
662
644
|
file: ReadStream;
|
|
663
|
-
metadata?:
|
|
645
|
+
metadata?: DocumentMetadata;
|
|
664
646
|
}
|
|
665
|
-
export interface
|
|
647
|
+
export interface DocumentMetadata {
|
|
666
648
|
/** The content type of the document. */
|
|
667
649
|
contentType?: string;
|
|
668
650
|
/** The name of the file. */
|
|
@@ -689,7 +671,7 @@ export declare class UploadDocumentResponse extends LosslessDto {
|
|
|
689
671
|
documentId: string;
|
|
690
672
|
/** The hash of the document. */
|
|
691
673
|
contentHash: string;
|
|
692
|
-
metadata:
|
|
674
|
+
metadata: DocumentMetadata;
|
|
693
675
|
}
|
|
694
676
|
export declare class UploadDocumentsResponse {
|
|
695
677
|
/** Documents that were successfully created. */
|
|
@@ -829,35 +811,18 @@ export declare class EvaluateDecisionResponse extends LosslessDto {
|
|
|
829
811
|
decisionInstanceKey: string;
|
|
830
812
|
evaluatedDecisions: EvaluatedDecision[];
|
|
831
813
|
}
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
/** The
|
|
836
|
-
|
|
837
|
-
/** The
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
|
|
841
|
-
/** The
|
|
842
|
-
|
|
843
|
-
[key: string]: string | number | boolean | undefined;
|
|
844
|
-
};
|
|
845
|
-
/** The headers. */
|
|
846
|
-
headers?: {
|
|
847
|
-
[key: string]: string | number | boolean;
|
|
848
|
-
};
|
|
849
|
-
/** A custom JSON parsing function */
|
|
850
|
-
parseJson?: typeof JSON.parse;
|
|
851
|
-
}
|
|
852
|
-
export interface JsonApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> extends BaseApiEndpointRequest<T> {
|
|
853
|
-
/** JSON-parse response? Default: true */
|
|
854
|
-
json?: true | undefined;
|
|
855
|
-
}
|
|
856
|
-
export interface RawApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> extends BaseApiEndpointRequest<T> {
|
|
857
|
-
/** JSON-parse response? */
|
|
858
|
-
json: false;
|
|
814
|
+
declare class UserItem extends LosslessDto {
|
|
815
|
+
/** The ID of the user. */
|
|
816
|
+
id: string;
|
|
817
|
+
/** The key of the user. */
|
|
818
|
+
key: string;
|
|
819
|
+
/** The username of the user. */
|
|
820
|
+
username: string;
|
|
821
|
+
/** The name of the user. */
|
|
822
|
+
name: string;
|
|
823
|
+
/** The email of the user. */
|
|
824
|
+
email: string;
|
|
859
825
|
}
|
|
860
|
-
export type ApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> = JsonApiEndpointRequest<T> | RawApiEndpointRequest<T>;
|
|
861
826
|
export interface SearchUsersRequest {
|
|
862
827
|
/** Pagination criteria. */
|
|
863
828
|
page: SearchPageRequest;
|
|
@@ -873,22 +838,10 @@ export interface SearchUsersRequest {
|
|
|
873
838
|
email?: string;
|
|
874
839
|
};
|
|
875
840
|
}
|
|
876
|
-
declare class UserItem extends LosslessDto {
|
|
877
|
-
/** The ID of the user. */
|
|
878
|
-
id: string;
|
|
879
|
-
/** The key of the user. */
|
|
880
|
-
key: string;
|
|
881
|
-
/** The username of the user. */
|
|
882
|
-
username: string;
|
|
883
|
-
/** The name of the user. */
|
|
884
|
-
name: string;
|
|
885
|
-
/** The email of the user. */
|
|
886
|
-
email: string;
|
|
887
|
-
}
|
|
888
841
|
/** The user search result. */
|
|
889
842
|
export declare class SearchUsersResponse extends LosslessDto {
|
|
890
843
|
/** Pagination information about the search results. */
|
|
891
|
-
page:
|
|
844
|
+
page: SearchResponsePagination;
|
|
892
845
|
/** The matching users. */
|
|
893
846
|
items: UserItem[];
|
|
894
847
|
}
|
|
@@ -916,7 +869,7 @@ export interface GetProcessDefinitionResponse {
|
|
|
916
869
|
/** The key for this process definition. */
|
|
917
870
|
processDefinitionKey: string;
|
|
918
871
|
}
|
|
919
|
-
export interface
|
|
872
|
+
export interface ProcessDefinitionSearchRequestFilter {
|
|
920
873
|
/** Name of this process definition. */
|
|
921
874
|
name?: string;
|
|
922
875
|
/** Resource name of this process definition. */
|
|
@@ -932,9 +885,9 @@ export interface ProcessDefinitionSearchFilter {
|
|
|
932
885
|
/** The key for this process definition. */
|
|
933
886
|
processDefinitionKey?: string;
|
|
934
887
|
}
|
|
935
|
-
export interface SearchProcessDefinitionsRequest extends BaseSearchRequest<'processDefinitionKey' | 'name' | 'resourceName' | 'version' | 'versionTag' | 'processDefinitionId' | 'tenantId',
|
|
888
|
+
export interface SearchProcessDefinitionsRequest extends BaseSearchRequest<'processDefinitionKey' | 'name' | 'resourceName' | 'version' | 'versionTag' | 'processDefinitionId' | 'tenantId', ProcessDefinitionSearchRequestFilter> {
|
|
936
889
|
}
|
|
937
|
-
interface
|
|
890
|
+
export interface ProcessDefinitionDetails {
|
|
938
891
|
/** Name of this process definition. */
|
|
939
892
|
name: string;
|
|
940
893
|
/** Resource name for this process definition. */
|
|
@@ -950,9 +903,9 @@ interface DefinitionDetails {
|
|
|
950
903
|
/** The key for this process definition. */
|
|
951
904
|
processDefinitionKey: string;
|
|
952
905
|
}
|
|
953
|
-
export interface
|
|
906
|
+
export interface SearchProcessDefinitionsResponse extends PaginatedSearchResponse<ProcessDefinitionDetails> {
|
|
954
907
|
}
|
|
955
|
-
export interface
|
|
908
|
+
export interface ElementInstanceSearchRequestFilter {
|
|
956
909
|
processDefinitionId?: string;
|
|
957
910
|
state?: 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
|
|
958
911
|
type?: 'UNSPECIFIED' | 'PROCESS' | 'SUB_PROCESS' | 'EVENT_SUB_PROCESS' | 'AD_HOC_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';
|
|
@@ -965,7 +918,7 @@ export interface ElementInstanceSearchFilter {
|
|
|
965
918
|
processDefinitionKey?: string;
|
|
966
919
|
incidentKey?: string;
|
|
967
920
|
}
|
|
968
|
-
export interface SearchElementInstancesRequest extends BaseSearchRequest<'elementInstanceKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'startDate' | 'endDate' | 'elementId' | 'type' | 'state' | 'incidentKey' | 'tenantId',
|
|
921
|
+
export interface SearchElementInstancesRequest extends BaseSearchRequest<'elementInstanceKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'startDate' | 'endDate' | 'elementId' | 'type' | 'state' | 'incidentKey' | 'tenantId', ElementInstanceSearchRequestFilter> {
|
|
969
922
|
}
|
|
970
923
|
export interface ElementInstanceDetails {
|
|
971
924
|
/** The process definition ID associated to this element instance. */
|
|
@@ -995,13 +948,9 @@ export interface ElementInstanceDetails {
|
|
|
995
948
|
/** Incident key associated with this element instance. */
|
|
996
949
|
incidentKey?: string;
|
|
997
950
|
}
|
|
998
|
-
export interface SearchElementInstancesResponse {
|
|
999
|
-
page: CamundaRestSearchResponsePagination;
|
|
1000
|
-
items: Array<ElementInstanceDetails>;
|
|
1001
|
-
}
|
|
1002
|
-
export interface CamundaRestSearchElementInstancesResponse extends PaginatedCamundaRestSearchResponse<ElementInstanceDetails> {
|
|
951
|
+
export interface SearchElementInstancesResponse extends PaginatedSearchResponse<ElementInstanceDetails> {
|
|
1003
952
|
}
|
|
1004
|
-
export interface
|
|
953
|
+
export interface IncidentSearchRequestFilter {
|
|
1005
954
|
/** The process definition ID associated to this incident. */
|
|
1006
955
|
processDefinitionId?: string;
|
|
1007
956
|
/** Incident error type with a defined set of values. */
|
|
@@ -1027,7 +976,7 @@ export interface IncidentSearchFilter {
|
|
|
1027
976
|
/** The job key, if exists, associated with this incident. */
|
|
1028
977
|
jobKey?: string;
|
|
1029
978
|
}
|
|
1030
|
-
export interface SearchIncidentsRequest extends BaseSearchRequest<'incidentKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'errorType' | 'errorMessage' | 'elementId' | 'elementInstanceKey' | 'creationTime' | 'state' | 'jobKey' | 'tenantId',
|
|
979
|
+
export interface SearchIncidentsRequest extends BaseSearchRequest<'incidentKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'errorType' | 'errorMessage' | 'elementId' | 'elementInstanceKey' | 'creationTime' | 'state' | 'jobKey' | 'tenantId', IncidentSearchRequestFilter> {
|
|
1031
980
|
}
|
|
1032
981
|
interface IncidentDetails {
|
|
1033
982
|
processDefinitionId: string;
|
|
@@ -1043,7 +992,7 @@ interface IncidentDetails {
|
|
|
1043
992
|
elementInstanceKey: string;
|
|
1044
993
|
jobKey: string;
|
|
1045
994
|
}
|
|
1046
|
-
export interface
|
|
995
|
+
export interface SearchIncidentsResponse extends PaginatedSearchResponse<IncidentDetails> {
|
|
1047
996
|
}
|
|
1048
997
|
export interface DecisionInstanceSearchFilter {
|
|
1049
998
|
/** The decision instance key. */
|
|
@@ -1069,7 +1018,7 @@ export interface DecisionInstanceSearchFilter {
|
|
|
1069
1018
|
/** The decision type. */
|
|
1070
1019
|
decisionType?: 'DECISION_TABLE' | 'LITERAL_EXPRESSION' | 'UNSPECIFIED' | 'UNKNOWN';
|
|
1071
1020
|
}
|
|
1072
|
-
export interface
|
|
1021
|
+
export interface SearchDecisionInstancesRequest extends BaseSearchRequest<'decisionInstanceKey' | 'decisionDefinitionId' | 'decisionDefinitionKey' | 'decisionDefinitionName' | 'decisionDefinitionVersion' | 'processDefinitionKey' | 'processInstanceKey' | 'state' | 'evaluationDate' | 'tenantId' | 'decisionType', DecisionInstanceSearchFilter> {
|
|
1073
1022
|
}
|
|
1074
1023
|
interface DecisionInstanceDetails {
|
|
1075
1024
|
/** The decision instance key. */
|
|
@@ -1101,7 +1050,7 @@ interface DecisionInstanceDetails {
|
|
|
1101
1050
|
/** The ID of the decision instance. */
|
|
1102
1051
|
decisionInstanceId: string;
|
|
1103
1052
|
}
|
|
1104
|
-
export interface
|
|
1053
|
+
export interface SearchDecisionInstancesResponse extends PaginatedSearchResponse<DecisionInstanceDetails> {
|
|
1105
1054
|
}
|
|
1106
1055
|
/**
|
|
1107
1056
|
* Response from getting a single decision instance by its key.
|
package/dist/c8/lib/C8Dto.js
CHANGED
|
@@ -6,8 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.GetVariableResponse = exports.SearchUsersResponse = exports.EvaluateDecisionResponse = exports.EvaluatedDecision = exports.EvaluatedInput = exports.MatchedRule = exports.EvaluatedOutput = exports.UploadDocumentsResponse = exports.UploadDocumentResponse = exports.PublishMessageResponse = exports.CorrelateMessageResponse = exports.BroadcastSignalResponse = exports.
|
|
9
|
+
exports.GetVariableResponse = exports.SearchUsersResponse = exports.EvaluateDecisionResponse = exports.EvaluatedDecision = exports.EvaluatedInput = exports.MatchedRule = exports.EvaluatedOutput = exports.UploadDocumentsResponse = exports.UploadDocumentResponse = exports.PublishMessageResponse = exports.CorrelateMessageResponse = exports.BroadcastSignalResponse = exports.CreateProcessInstanceWithResultResponse = exports.CreateProcessInstanceResponse = exports.DeployResourceResponse = exports.FormDeployment = exports.DecisionRequirementsDeployment = exports.DecisionDeployment = exports.ProcessDeployment = exports.RestApiJob = void 0;
|
|
10
10
|
const lib_1 = require("../../lib");
|
|
11
|
+
const C8DtoInternal_1 = require("./C8DtoInternal");
|
|
11
12
|
class RestApiJob extends lib_1.LosslessDto {
|
|
12
13
|
}
|
|
13
14
|
exports.RestApiJob = RestApiJob;
|
|
@@ -53,13 +54,7 @@ exports.FormDeployment = FormDeployment;
|
|
|
53
54
|
__decorate([
|
|
54
55
|
lib_1.Int64String
|
|
55
56
|
], FormDeployment.prototype, "formKey", void 0);
|
|
56
|
-
class
|
|
57
|
-
}
|
|
58
|
-
exports.DeployResourceResponseDto = DeployResourceResponseDto;
|
|
59
|
-
__decorate([
|
|
60
|
-
lib_1.Int64String
|
|
61
|
-
], DeployResourceResponseDto.prototype, "deploymentKey", void 0);
|
|
62
|
-
class DeployResourceResponse extends DeployResourceResponseDto {
|
|
57
|
+
class DeployResourceResponse extends C8DtoInternal_1.DeployResourceResponseDto {
|
|
63
58
|
}
|
|
64
59
|
exports.DeployResourceResponse = DeployResourceResponse;
|
|
65
60
|
class CreateProcessInstanceResponse {
|
|
@@ -71,6 +66,9 @@ __decorate([
|
|
|
71
66
|
__decorate([
|
|
72
67
|
lib_1.Int64String
|
|
73
68
|
], CreateProcessInstanceResponse.prototype, "processInstanceKey", void 0);
|
|
69
|
+
class CreateProcessInstanceWithResultResponse extends CreateProcessInstanceResponse {
|
|
70
|
+
}
|
|
71
|
+
exports.CreateProcessInstanceWithResultResponse = CreateProcessInstanceWithResultResponse;
|
|
74
72
|
/** The signal was broadcast. */
|
|
75
73
|
class BroadcastSignalResponse extends lib_1.LosslessDto {
|
|
76
74
|
}
|
package/dist/c8/lib/C8Dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"C8Dto.js","sourceRoot":"","sources":["../../../src/c8/lib/C8Dto.ts"],"names":[],"mappings":";;;;;;;;;AAIA,mCAA8D;AAS9D,MAAa,UAGX,SAAQ,iBAAW;CAoBpB;AAvBD,gCAuBC;AAlBA;IADC,iBAAW;0CACG;AAGf;IADC,iBAAW;sDACe;AAI3B;IADC,iBAAW;wDACiB;AAG7B;IADC,iBAAW;sDACe;AAK3B;IADC,iBAAW;4CACK;
|
|
1
|
+
{"version":3,"file":"C8Dto.js","sourceRoot":"","sources":["../../../src/c8/lib/C8Dto.ts"],"names":[],"mappings":";;;;;;;;;AAIA,mCAA8D;AAS9D,mDAA8E;AAE9E,MAAa,UAGX,SAAQ,iBAAW;CAoBpB;AAvBD,gCAuBC;AAlBA;IADC,iBAAW;0CACG;AAGf;IADC,iBAAW;sDACe;AAI3B;IADC,iBAAW;wDACiB;AAG7B;IADC,iBAAW;sDACe;AAK3B;IADC,iBAAW;4CACK;AAoClB,MAAa,iBAAkB,SAAQ,iBAAW;CASjD;AATD,8CASC;AAHA;IADC,iBAAW;+DACiB;AAK9B,MAAa,kBAAmB,SAAQ,iBAAW;CAWlD;AAXD,gDAWC;AAPA;IADC,iBAAW;uDACQ;AAKpB;IADC,iBAAW;mEACoB;AAIjC,MAAa,8BAA+B,SAAQ,iBAAW;CAQ9D;AARD,wEAQC;AAFA;IADC,iBAAW;+EACoB;AAGjC,MAAa,cAAc;CAO1B;AAPD,wCAOC;AAHA;IADC,iBAAW;+CACI;AAKjB,MAAa,sBAAuB,SAAQ,yCAAyB;CAKpE;AALD,wDAKC;AAED,MAAa,6BAA6B;CAyBzC;AAzBD,sEAyBC;AAnBS;IADR,iBAAW;2EAC0B;AAU7B;IADR,iBAAW;yEACwB;AAWrC,MAAa,uCAEX,SAAQ,6BAAgC;CAAG;AAF7C,0FAE6C;AAqB7C,gCAAgC;AAChC,MAAa,uBAAwB,SAAQ,iBAAW;CAMvD;AAND,0DAMC;AAHA;IAFC,iBAAW;IACZ,sDAAsD;0DACpC;AA4BnB,MAAa,wBAAyB,SAAQ,iBAAW;CASxD;AATD,4DASC;AANA;IADC,iBAAW;4DACO;AAKnB;IADC,iBAAW;oEACe;AAG5B,MAAa,sBAAuB,SAAQ,iBAAW;CAMtD;AAND,wDAMC;AAHA;IADC,iBAAW;0DACO;AA+lBpB,MAAa,sBAAuB,SAAQ,iBAAW;IAAvD;;QACC,uDAAuD;QACvD,KAAC,uBAAuB,CAAC,GAAG,SAAS,CAAA;IAQtC,CAAC;CAAA;AAVD,wDAUC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAuED,MAAa,eAAgB,SAAQ,iBAAW;CAO/C;AAPD,0CAOC;AAED,MAAa,WAAY,SAAQ,iBAAW;CAO3C;AAPD,kCAOC;AADA;IADC,IAAA,cAAQ,EAAC,eAAe,CAAC;qDACU;AAGrC,MAAa,cAAe,SAAQ,iBAAW;CAO9C;AAPD,wCAOC;AAED,MAAa,iBAAkB,SAAQ,iBAAW;CAmBjD;AAnBD,8CAmBC;AALA;IADC,IAAA,cAAQ,EAAC,WAAW,CAAC;uDACM;AAE5B;IADC,IAAA,cAAQ,EAAC,cAAc,CAAC;0DACS;AAKnC,MAAa,wBAAyB,SAAQ,iBAAW;CAyBxD;AAzBD,4DAyBC;AADA;IADC,IAAA,cAAQ,EAAC,iBAAiB,CAAC;oEACY;AAGzC,MAAM,QAAS,SAAQ,iBAAW;CAYjC;AATA;IADC,iBAAW;oCACD;AA4BZ,8BAA8B;AAC9B,MAAa,mBAAoB,SAAQ,iBAAW;CAMnD;AAND,kDAMC;AADA;IADC,IAAA,cAAQ,EAAC,QAAQ,CAAC;kDACD;AAGnB,MAAa,mBAAmB;CAO/B;AAPD,kDAOC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { LosslessDto } from '../../lib';
|
|
3
|
+
import { DecisionDeployment, DecisionRequirementsDeployment, FormDeployment, ProcessDeployment } from './C8Dto';
|
|
4
|
+
export declare class DeployResourceResponseDto extends LosslessDto {
|
|
5
|
+
deploymentKey: string;
|
|
6
|
+
deployments: ({
|
|
7
|
+
processDefinition: ProcessDeployment;
|
|
8
|
+
} | {
|
|
9
|
+
decisionDefinition: DecisionDeployment;
|
|
10
|
+
} | {
|
|
11
|
+
decisionRequirements: DecisionRequirementsDeployment;
|
|
12
|
+
} | {
|
|
13
|
+
form: FormDeployment;
|
|
14
|
+
})[];
|
|
15
|
+
tenantId: string;
|
|
16
|
+
}
|
|
17
|
+
export type Ctor<T> = new (obj: any) => T;
|
|
18
|
+
export type UnknownRequestBody = Record<string, any>;
|
|
19
|
+
export interface JsonApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> extends BaseApiEndpointRequest<T> {
|
|
20
|
+
/** JSON-parse response? Default: true */
|
|
21
|
+
json?: true | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface RawApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> extends BaseApiEndpointRequest<T> {
|
|
24
|
+
/** JSON-parse response? */
|
|
25
|
+
json: false;
|
|
26
|
+
}
|
|
27
|
+
export type ApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> = JsonApiEndpointRequest<T> | RawApiEndpointRequest<T>;
|
|
28
|
+
export type SearchSortRequest<T = string> = Array<{
|
|
29
|
+
/** The field to sort by. */
|
|
30
|
+
field: T;
|
|
31
|
+
/** The order in which to sort the related field. Default value: ASC */
|
|
32
|
+
order?: 'ASC' | 'DESC';
|
|
33
|
+
}>;
|
|
34
|
+
interface BaseApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> {
|
|
35
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
36
|
+
/** The URL path of the API endpoint. */
|
|
37
|
+
urlPath: string;
|
|
38
|
+
/** The request body. */
|
|
39
|
+
body?: T;
|
|
40
|
+
/** TODO: multi-part form support needs to be implemented */
|
|
41
|
+
formData?: FormData;
|
|
42
|
+
/** The query parameters. */
|
|
43
|
+
queryParams?: {
|
|
44
|
+
[key: string]: string | number | boolean | undefined;
|
|
45
|
+
};
|
|
46
|
+
/** The headers. */
|
|
47
|
+
headers?: {
|
|
48
|
+
[key: string]: string | number | boolean;
|
|
49
|
+
};
|
|
50
|
+
/** A custom JSON parsing function */
|
|
51
|
+
parseJson?: typeof JSON.parse;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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.DeployResourceResponseDto = void 0;
|
|
10
|
+
const lib_1 = require("../../lib");
|
|
11
|
+
class DeployResourceResponseDto extends lib_1.LosslessDto {
|
|
12
|
+
}
|
|
13
|
+
exports.DeployResourceResponseDto = DeployResourceResponseDto;
|
|
14
|
+
__decorate([
|
|
15
|
+
lib_1.Int64String
|
|
16
|
+
], DeployResourceResponseDto.prototype, "deploymentKey", void 0);
|
|
17
|
+
//# sourceMappingURL=C8DtoInternal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"C8DtoInternal.js","sourceRoot":"","sources":["../../../src/c8/lib/C8DtoInternal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mCAAoD;AASpD,MAAa,yBAA0B,SAAQ,iBAAW;CAUzD;AAVD,8DAUC;AARA;IADC,iBAAW;gEACU"}
|