@camunda8/sdk 8.7.24 → 8.7.26

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.
@@ -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
- export interface CreateProcessBaseRequest<V extends JSONDoc | LosslessDto> {
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
- export interface CreateProcessInstanceFromProcessDefinitionId<V extends JSONDoc | LosslessDto> extends CreateProcessBaseRequest<V> {
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
- export interface CreateProcessInstanceFromProcessDefinition<V extends JSONDoc | LosslessDto> extends CreateProcessBaseRequest<V> {
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 CreateProcessInstanceReq<T extends JSONDoc | LosslessDto> = CreateProcessInstanceFromProcessDefinitionId<T> | CreateProcessInstanceFromProcessDefinition<T>;
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 JobWithMethods<VariablesDto, CustomHeadersDto> = RestJob<VariablesDto, CustomHeadersDto> & JobCompletionInterfaceRest<IProcessVariables>;
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
- export interface BaseSearchRequest<TSortFields extends string, TFilter> {
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 VariableSearchFilterRequest {
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
- export type SearchSortRequest<T = string> = Array<{
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 PaginatedCamundaRestSearchResponse<T> {
363
+ interface PaginatedSearchResponse<T> {
382
364
  /** Pagination information about the search results. */
383
- page: CamundaRestSearchResponsePagination;
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', VariableSearchFilterRequest> {
385
+ export interface SearchVariablesRequest extends BaseSearchRequest<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', VariableSearchRequestFilter> {
404
386
  }
405
- export interface CamundaRestSearchVariablesResponse extends PaginatedCamundaRestSearchResponse<VariableDetails> {
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 SearchUserTasksFilter {
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', SearchUserTasksFilter> {
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 CamundaRestSearchUserTasksResponse extends PaginatedCamundaRestSearchResponse<UserTaskDetails> {
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 UserTaskVariablesRequest extends BaseSearchRequestWithOptionalFilter<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', {
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 CamundaRestUserTaskVariablesResponse extends PaginatedCamundaRestSearchResponse<{
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 ProcessInstanceSearchFilter {
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', ProcessInstanceSearchFilter> {
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 CamundaRestSearchProcessInstanceResponse extends PaginatedCamundaRestSearchResponse<ProcessInstanceDetails> {
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?: UploadDocumentMetadata;
645
+ metadata?: DocumentMetadata;
664
646
  }
665
- export interface UploadDocumentMetadata {
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: UploadDocumentMetadata;
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
- export type UnknownRequestBody = Record<string, any>;
833
- export interface BaseApiEndpointRequest<T extends UnknownRequestBody = UnknownRequestBody> {
834
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
835
- /** The URL path of the API endpoint. */
836
- urlPath: string;
837
- /** The request body. */
838
- body?: T;
839
- /** TODO: multi-part form support needs to be implemented */
840
- formData?: FormData;
841
- /** The query parameters. */
842
- queryParams?: {
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: CamundaRestSearchResponsePagination;
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 ProcessDefinitionSearchFilter {
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', ProcessDefinitionSearchFilter> {
888
+ export interface SearchProcessDefinitionsRequest extends BaseSearchRequest<'processDefinitionKey' | 'name' | 'resourceName' | 'version' | 'versionTag' | 'processDefinitionId' | 'tenantId', ProcessDefinitionSearchRequestFilter> {
936
889
  }
937
- interface DefinitionDetails {
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 CamundaRestSearchProcessDefinitionsResponse extends PaginatedCamundaRestSearchResponse<DefinitionDetails> {
906
+ export interface SearchProcessDefinitionsResponse extends PaginatedSearchResponse<ProcessDefinitionDetails> {
954
907
  }
955
- export interface ElementInstanceSearchFilter {
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', ElementInstanceSearchFilter> {
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 IncidentSearchFilter {
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', IncidentSearchFilter> {
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 CamundaRestSearchIncidentsResponse extends PaginatedCamundaRestSearchResponse<IncidentDetails> {
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 CamundaRestSearchDecisionInstancesRequest extends BaseSearchRequest<'decisionInstanceKey' | 'decisionDefinitionId' | 'decisionDefinitionKey' | 'decisionDefinitionName' | 'decisionDefinitionVersion' | 'processDefinitionKey' | 'processInstanceKey' | 'state' | 'evaluationDate' | 'tenantId' | 'decisionType', DecisionInstanceSearchFilter> {
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 CamundaRestSearchDecisionInstancesResponse extends PaginatedCamundaRestSearchResponse<DecisionInstanceDetails> {
1053
+ export interface SearchDecisionInstancesResponse extends PaginatedSearchResponse<DecisionInstanceDetails> {
1105
1054
  }
1106
1055
  /**
1107
1056
  * Response from getting a single decision instance by its key.
@@ -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.CreateProcessInstanceResponse = exports.DeployResourceResponse = exports.DeployResourceResponseDto = exports.FormDeployment = exports.DecisionRequirementsDeployment = exports.DecisionDeployment = exports.ProcessDeployment = exports.RestApiJob = void 0;
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 DeployResourceResponseDto extends lib_1.LosslessDto {
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
  }
@@ -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;AAuClB,MAAa,iB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nB,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"}
@@ -1,7 +1,8 @@
1
1
  import TypedEmitter from 'typed-emitter';
2
2
  import { LosslessDto } from '../../lib';
3
3
  import { ActivateJobsRequest, IProcessVariables, JobCompletionInterfaceRest, MustReturnJobActionAcknowledgement } from '../../zeebe/types';
4
- import { Ctor, RestJob } from './C8Dto';
4
+ import { RestJob } from './C8Dto';
5
+ import { Ctor } from './C8DtoInternal';
5
6
  import { Logger } from './C8Logger';
6
7
  import { CamundaRestClient } from './CamundaRestClient';
7
8
  type CamundaJobWorkerEvents = {
@@ -71,6 +72,11 @@ export declare class CamundaJobWorker<VariablesDto extends LosslessDto, CustomHe
71
72
  * The deadline for all currently active jobs to complete is 30s by default. If the active jobs do not complete by the deadline, this method will throw.
72
73
  */
73
74
  stop(deadlineMs?: number): Promise<unknown>;
75
+ /** This is an alias for stop(). Provided for compatibility with the gRPC worker implementation.
76
+ * Stops the Job Worker polling for more jobs. If await this call, and it will return as soon as all currently active jobs are completed.
77
+ * The deadline for all currently active jobs to complete is 30s by default. If the active jobs do not complete by the deadline, this method will throw.
78
+ */
79
+ close(deadlineMs?: number): Promise<unknown>;
74
80
  private poll;
75
81
  private handleJob;
76
82
  }
@@ -93,6 +93,13 @@ class CamundaJobWorker extends events_1.EventEmitter {
93
93
  }, 500);
94
94
  });
95
95
  }
96
+ /** This is an alias for stop(). Provided for compatibility with the gRPC worker implementation.
97
+ * Stops the Job Worker polling for more jobs. If await this call, and it will return as soon as all currently active jobs are completed.
98
+ * The deadline for all currently active jobs to complete is 30s by default. If the active jobs do not complete by the deadline, this method will throw.
99
+ */
100
+ close(deadlineMs = 30000) {
101
+ return this.stop(deadlineMs);
102
+ }
96
103
  poll() {
97
104
  if (this.pollLock || this.stopping) {
98
105
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"CamundaJobWorker.js","sourceRoot":"","sources":["../../../src/c8/lib/CamundaJobWorker.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AAcrC,yCAA8C;AAuD9C,MAAa,gBAGX,SAAS,qBAA+D;IAsBzE,YACkB,MAGhB,EACgB,UAA6B;QAE9C,KAAK,EAAE,CAAA;QANU,WAAM,GAAN,MAAM,CAGtB;QACgB,eAAU,GAAV,UAAU,CAAmB;QA1BxC,4BAAuB,GAAG,CAAC,CAAA;QAI1B,aAAQ,GAAY,KAAK,CAAA;QAEzB,sBAAiB,GAAW,CAAC,CAAA;QAUrC,aAAQ,GAAY,KAAK,CAAA;QAaxB,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,cAAc,IAAI,GAAG,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