@camunda8/sdk 8.7.19 → 8.7.21
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 +9 -0
- package/dist/c8/lib/C8Dto.d.ts +134 -181
- package/dist/c8/lib/C8Dto.js.map +1 -1
- package/dist/lib/GotHooks.js +6 -1
- package/dist/lib/GotHooks.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [8.7.21](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.20...v8.7.21) (2025-07-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* backoff retry on 429 "Too many client requests". FIxes [#528](https://github.com/camunda/camunda-8-js-sdk/issues/528) ([63ea9ec](https://github.com/camunda/camunda-8-js-sdk/commit/63ea9ecf6b53b3327ebfb54bca41a3e13f1b01e7))
|
|
7
|
+
|
|
8
|
+
## [8.7.20](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.19...v8.7.20) (2025-07-16)
|
|
9
|
+
|
|
1
10
|
## [8.7.19](https://github.com/camunda/camunda-8-js-sdk/compare/v8.7.18...v8.7.19) (2025-07-15)
|
|
2
11
|
|
|
3
12
|
|
package/dist/c8/lib/C8Dto.d.ts
CHANGED
|
@@ -297,6 +297,24 @@ interface SearchPageRequestSearchBefore {
|
|
|
297
297
|
before?: string;
|
|
298
298
|
}
|
|
299
299
|
export type SearchPageRequest = SearchPageRequestSearchAfter | SearchPageRequestSearchBefore;
|
|
300
|
+
/** Generic search request interface that can be used for most search operations */
|
|
301
|
+
export interface BaseSearchRequest<TSortFields extends string, TFilter> {
|
|
302
|
+
/** Pagination criteria. */
|
|
303
|
+
page?: SearchPageRequest;
|
|
304
|
+
/** Sort field criteria. */
|
|
305
|
+
sort?: SearchSortRequest<TSortFields>;
|
|
306
|
+
/** Search filter criteria. */
|
|
307
|
+
filter: TFilter;
|
|
308
|
+
}
|
|
309
|
+
/** Generic search request interface with optional filter */
|
|
310
|
+
export interface BaseSearchRequestWithOptionalFilter<TSortFields extends string, TFilter> {
|
|
311
|
+
/** Pagination criteria. */
|
|
312
|
+
page?: SearchPageRequest;
|
|
313
|
+
/** Sort field criteria. */
|
|
314
|
+
sort?: SearchSortRequest<TSortFields>;
|
|
315
|
+
/** Search filter criteria. */
|
|
316
|
+
filter?: TFilter;
|
|
317
|
+
}
|
|
300
318
|
export interface AdvancedStringFilter {
|
|
301
319
|
/** Checks for equality with the provided value. */
|
|
302
320
|
$eq?: string;
|
|
@@ -319,7 +337,7 @@ export interface AdvancedNumberFilter {
|
|
|
319
337
|
$lt: number;
|
|
320
338
|
$lte: number;
|
|
321
339
|
}
|
|
322
|
-
export interface
|
|
340
|
+
export interface VariableSearchFilterRequest {
|
|
323
341
|
/** The key for this variable. */
|
|
324
342
|
variableKey?: string | AdvancedStringFilter;
|
|
325
343
|
/** Name of the variable. */
|
|
@@ -335,27 +353,12 @@ export interface SearchFilterRequest {
|
|
|
335
353
|
/** Whether the value is truncated or not. */
|
|
336
354
|
isTruncated?: boolean;
|
|
337
355
|
}
|
|
338
|
-
export
|
|
339
|
-
field
|
|
356
|
+
export type SearchSortRequest<T = string> = Array<{
|
|
357
|
+
/** The field to sort by. */
|
|
358
|
+
field: T;
|
|
340
359
|
/** The order in which to sort the related field. Default value: ASC */
|
|
341
360
|
order?: 'ASC' | 'DESC';
|
|
342
|
-
}
|
|
343
|
-
export interface SearchVariablesRequest {
|
|
344
|
-
/** Sort field criteria. */
|
|
345
|
-
sort?: SearchSortRequest;
|
|
346
|
-
/** Pagination criteria. */
|
|
347
|
-
page?: SearchPageRequest;
|
|
348
|
-
/** Variable filter request. */
|
|
349
|
-
filter: SearchFilterRequest;
|
|
350
|
-
}
|
|
351
|
-
export interface SearchResponsePagination {
|
|
352
|
-
/** Total items matching the criteria. */
|
|
353
|
-
totalItems: number;
|
|
354
|
-
/** The sort values of the first item in the result set. Use this in the searchBefore field of an ensuing request. */
|
|
355
|
-
firstSortValues: unknown[];
|
|
356
|
-
/** The sort values of the last item in the result set. Use this in the searchAfter field of an ensuing request. */
|
|
357
|
-
lastSortValues: unknown[];
|
|
358
|
-
}
|
|
361
|
+
}>;
|
|
359
362
|
export interface CamundaRestSearchResponsePagination {
|
|
360
363
|
/** Total items matching the criteria. */
|
|
361
364
|
totalItems: number;
|
|
@@ -377,15 +380,20 @@ interface VariableDetails {
|
|
|
377
380
|
scopeKey: string;
|
|
378
381
|
/** The key of the process instance of this variable. */
|
|
379
382
|
processInstanceKey: string;
|
|
383
|
+
/** Name of this variable. */
|
|
384
|
+
name: string;
|
|
385
|
+
/** Tenant ID of this variable. */
|
|
386
|
+
tenantId: string;
|
|
387
|
+
/** Value of this variable. Can be truncated. */
|
|
388
|
+
value: string;
|
|
389
|
+
/** Whether the value is truncated or not. */
|
|
390
|
+
isTruncated: boolean;
|
|
391
|
+
}
|
|
392
|
+
export interface SearchVariablesRequest extends BaseSearchRequest<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', VariableSearchFilterRequest> {
|
|
380
393
|
}
|
|
381
394
|
export interface CamundaRestSearchVariablesResponse extends PaginatedCamundaRestSearchResponse<VariableDetails> {
|
|
382
395
|
}
|
|
383
|
-
export type SearchUserTasksSortRequest =
|
|
384
|
-
/** The field to sort by. */
|
|
385
|
-
field: 'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority';
|
|
386
|
-
/** The order in which to sort the related field. Default: asc */
|
|
387
|
-
order?: 'asc' | 'desc';
|
|
388
|
-
}>;
|
|
396
|
+
export type SearchUserTasksSortRequest = SearchSortRequest<'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority'>;
|
|
389
397
|
export interface AdvancedDateTimeFilter {
|
|
390
398
|
/** Checks for equality with the provided value. */
|
|
391
399
|
$eq?: string;
|
|
@@ -453,13 +461,7 @@ export interface SearchUserTasksFilter {
|
|
|
453
461
|
value: string;
|
|
454
462
|
}>;
|
|
455
463
|
}
|
|
456
|
-
export interface SearchTasksRequest {
|
|
457
|
-
/** Pagination criteria. */
|
|
458
|
-
page?: SearchPageRequest;
|
|
459
|
-
/** Sort field criteria. */
|
|
460
|
-
sort?: SearchUserTasksSortRequest;
|
|
461
|
-
/** User task filter request. */
|
|
462
|
-
filter?: SearchUserTasksFilter;
|
|
464
|
+
export interface SearchTasksRequest extends BaseSearchRequestWithOptionalFilter<'creationDate' | 'completionDate' | 'dueDate' | 'followUpDate' | 'priority', SearchUserTasksFilter> {
|
|
463
465
|
}
|
|
464
466
|
interface UserTaskDetails {
|
|
465
467
|
/** The key of the user task. */
|
|
@@ -532,24 +534,11 @@ export interface AssignUserTaskRequest {
|
|
|
532
534
|
/** 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". */
|
|
533
535
|
action?: string;
|
|
534
536
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
/** The order in which to sort the related field. */
|
|
540
|
-
order: 'ASC' | 'DESC';
|
|
541
|
-
}
|
|
542
|
-
export interface UserTaskVariablesRequest {
|
|
537
|
+
export interface UserTaskVariablesRequest extends BaseSearchRequestWithOptionalFilter<'value' | 'name' | 'tenantId' | 'variableKey' | 'scopeKey' | 'processInstanceKey', {
|
|
538
|
+
/** Name of the variable. */
|
|
539
|
+
name: string;
|
|
540
|
+
}> {
|
|
543
541
|
userTaskKey: string;
|
|
544
|
-
/** Pagination criteria. */
|
|
545
|
-
page?: SearchPageRequest;
|
|
546
|
-
/** Sort field criteria. */
|
|
547
|
-
sort: UserTaskVariablesSortRequest[];
|
|
548
|
-
/** The user task variable search filters. */
|
|
549
|
-
filter?: {
|
|
550
|
-
/** Name of the variable. */
|
|
551
|
-
name: string;
|
|
552
|
-
};
|
|
553
542
|
}
|
|
554
543
|
/** The user task variables search response for CamundaRestClient. */
|
|
555
544
|
export interface CamundaRestUserTaskVariablesResponse extends PaginatedCamundaRestSearchResponse<{
|
|
@@ -577,50 +566,41 @@ export interface AdvancedProcessInstanceStateFilter {
|
|
|
577
566
|
/** Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client. */
|
|
578
567
|
$like: string;
|
|
579
568
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
569
|
+
export interface ProcessInstanceSearchFilter {
|
|
570
|
+
/** The key of this process instance. */
|
|
571
|
+
processInstanceKey?: string | AdvancedStringFilter;
|
|
572
|
+
/** The process definition ID. */
|
|
573
|
+
processDefinitionId?: string | AdvancedStringFilter;
|
|
574
|
+
/** The process definition name. */
|
|
575
|
+
processDefinitionName?: string | AdvancedStringFilter;
|
|
576
|
+
/** The process definition version. */
|
|
577
|
+
processDefinitionVersion?: string | AdvancedStringFilter;
|
|
578
|
+
/** The process definition version tag. */
|
|
579
|
+
processDefinitionVersionTag?: string | AdvancedStringFilter;
|
|
580
|
+
/** The process definition key. */
|
|
581
|
+
processDefinitionKey?: string | AdvancedStringFilter;
|
|
582
|
+
/** The parent process instance key. */
|
|
583
|
+
parentProcessInstanceKey?: string | AdvancedStringFilter;
|
|
584
|
+
/** The parent flow node instance key. */
|
|
585
|
+
parentFlowNodeInstanceKey?: string | AdvancedStringFilter;
|
|
586
|
+
/** The process instance state. */
|
|
587
|
+
state?: 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
|
|
588
|
+
/** The start date. */
|
|
589
|
+
startDate?: string | AdvancedDateTimeFilter;
|
|
590
|
+
/** The end date. */
|
|
591
|
+
endDate?: string | AdvancedDateTimeFilter;
|
|
592
|
+
/** The tenant ID. */
|
|
593
|
+
tenantId?: string | AdvancedStringFilter;
|
|
594
|
+
/** The process instance variables. */
|
|
595
|
+
variables?: Array<{
|
|
596
|
+
/** Name of the variable. */
|
|
597
|
+
name: string;
|
|
598
|
+
/** The value of the variable */
|
|
599
|
+
value: string;
|
|
589
600
|
}>;
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
processInstanceKey?: string | AdvancedStringFilter;
|
|
594
|
-
/** The process definition ID. */
|
|
595
|
-
processDefinitionId?: string | AdvancedStringFilter;
|
|
596
|
-
/** The process definition name. */
|
|
597
|
-
processDefinitionName?: string | AdvancedStringFilter;
|
|
598
|
-
/** The process definition version. */
|
|
599
|
-
processDefinitionVersion?: string | AdvancedStringFilter;
|
|
600
|
-
/** The process definition version tag. */
|
|
601
|
-
processDefinitionVersionTag?: string | AdvancedStringFilter;
|
|
602
|
-
/** The process definition key. */
|
|
603
|
-
processDefinitionKey?: string | AdvancedStringFilter;
|
|
604
|
-
/** The parent process instance key. */
|
|
605
|
-
parentProcessInstanceKey?: string | AdvancedStringFilter;
|
|
606
|
-
/** The parent flow node instance key. */
|
|
607
|
-
parentFlowNodeInstanceKey?: string | AdvancedStringFilter;
|
|
608
|
-
/** The process instance state. */
|
|
609
|
-
state?: 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
|
|
610
|
-
/** The start date. */
|
|
611
|
-
startDate?: string | AdvancedDateTimeFilter;
|
|
612
|
-
/** The end date. */
|
|
613
|
-
endDate?: string | AdvancedDateTimeFilter;
|
|
614
|
-
/** The tenant ID. */
|
|
615
|
-
tenantId?: string | AdvancedStringFilter;
|
|
616
|
-
/** The process instance variables. */
|
|
617
|
-
variables?: Array<{
|
|
618
|
-
/** Name of the variable. */
|
|
619
|
-
name: string;
|
|
620
|
-
/** The value of the variable */
|
|
621
|
-
value: string;
|
|
622
|
-
}>;
|
|
623
|
-
};
|
|
601
|
+
}
|
|
602
|
+
/** This is the 8.8 API. */
|
|
603
|
+
export interface SearchProcessInstanceRequest extends BaseSearchRequest<'processInstanceKey' | 'processDefinitionId' | 'processDefinitionName' | 'processDefinitionVersion' | 'processDefinitionVersionTag' | 'processDefinitionKey' | 'parentProcessInstanceKey' | 'parentFlowNodeInstanceKey' | 'state' | 'startDate' | 'endDate' | 'tenantId' | 'hasIncident', ProcessInstanceSearchFilter> {
|
|
624
604
|
}
|
|
625
605
|
interface ProcessInstanceDetails {
|
|
626
606
|
/** The key of the process instance. */
|
|
@@ -871,12 +851,7 @@ export interface SearchUsersRequest {
|
|
|
871
851
|
/** Pagination criteria. */
|
|
872
852
|
page: SearchPageRequest;
|
|
873
853
|
/** Sort field criteria. */
|
|
874
|
-
sort
|
|
875
|
-
/** The field to sort by. */
|
|
876
|
-
field: 'username' | 'name' | 'email';
|
|
877
|
-
/** The order in which to sort the related field. */
|
|
878
|
-
order?: 'ASC' | 'DESC';
|
|
879
|
-
}>;
|
|
854
|
+
sort?: SearchSortRequest<'username' | 'name' | 'email'>;
|
|
880
855
|
/** User search filter. */
|
|
881
856
|
filter: {
|
|
882
857
|
/** The username of the user. */
|
|
@@ -902,7 +877,7 @@ declare class UserItem extends LosslessDto {
|
|
|
902
877
|
/** The user search result. */
|
|
903
878
|
export declare class SearchUsersResponse extends LosslessDto {
|
|
904
879
|
/** Pagination information about the search results. */
|
|
905
|
-
page:
|
|
880
|
+
page: CamundaRestSearchResponsePagination;
|
|
906
881
|
/** The matching users. */
|
|
907
882
|
items: UserItem[];
|
|
908
883
|
}
|
|
@@ -930,32 +905,23 @@ export interface GetProcessDefinitionResponse {
|
|
|
930
905
|
/** The key for this process definition. */
|
|
931
906
|
processDefinitionKey: string;
|
|
932
907
|
}
|
|
933
|
-
export interface
|
|
934
|
-
/**
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/** Process definition
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
/** Version tag of this process definition. */
|
|
951
|
-
versionTag?: string;
|
|
952
|
-
/** Process definition ID of this process definition. */
|
|
953
|
-
processDefinitionId?: string;
|
|
954
|
-
/** Tenant ID of this process definition. */
|
|
955
|
-
tenantId?: string;
|
|
956
|
-
/** The key for this process definition. */
|
|
957
|
-
processDefinitionKey?: string;
|
|
958
|
-
};
|
|
908
|
+
export interface ProcessDefinitionSearchFilter {
|
|
909
|
+
/** Name of this process definition. */
|
|
910
|
+
name?: string;
|
|
911
|
+
/** Resource name of this process definition. */
|
|
912
|
+
resourceName?: string;
|
|
913
|
+
/** Version of this process definition. */
|
|
914
|
+
version?: number;
|
|
915
|
+
/** Version tag of this process definition. */
|
|
916
|
+
versionTag?: string;
|
|
917
|
+
/** Process definition ID of this process definition. */
|
|
918
|
+
processDefinitionId?: string;
|
|
919
|
+
/** Tenant ID of this process definition. */
|
|
920
|
+
tenantId?: string;
|
|
921
|
+
/** The key for this process definition. */
|
|
922
|
+
processDefinitionKey?: string;
|
|
923
|
+
}
|
|
924
|
+
export interface SearchProcessDefinitionsRequest extends BaseSearchRequest<'processDefinitionKey' | 'name' | 'resourceName' | 'version' | 'versionTag' | 'processDefinitionId' | 'tenantId', ProcessDefinitionSearchFilter> {
|
|
959
925
|
}
|
|
960
926
|
interface DefinitionDetails {
|
|
961
927
|
/** Name of this process definition. */
|
|
@@ -975,27 +941,20 @@ interface DefinitionDetails {
|
|
|
975
941
|
}
|
|
976
942
|
export interface CamundaRestSearchProcessDefinitionsResponse extends PaginatedCamundaRestSearchResponse<DefinitionDetails> {
|
|
977
943
|
}
|
|
978
|
-
export interface
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
hasIncident?: boolean;
|
|
993
|
-
tenantId?: string;
|
|
994
|
-
elementInstanceKey?: string;
|
|
995
|
-
processInstanceKey?: string;
|
|
996
|
-
processDefinitionKey?: string;
|
|
997
|
-
incidentKey?: string;
|
|
998
|
-
};
|
|
944
|
+
export interface ElementInstanceSearchFilter {
|
|
945
|
+
processDefinitionId?: string;
|
|
946
|
+
state?: 'ACTIVE' | 'COMPLETED' | 'TERMINATED';
|
|
947
|
+
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';
|
|
948
|
+
elementId?: string;
|
|
949
|
+
elementName?: string;
|
|
950
|
+
hasIncident?: boolean;
|
|
951
|
+
tenantId?: string;
|
|
952
|
+
elementInstanceKey?: string;
|
|
953
|
+
processInstanceKey?: string;
|
|
954
|
+
processDefinitionKey?: string;
|
|
955
|
+
incidentKey?: string;
|
|
956
|
+
}
|
|
957
|
+
export interface SearchElementInstancesRequest extends BaseSearchRequest<'elementInstanceKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'startDate' | 'endDate' | 'elementId' | 'type' | 'state' | 'incidentKey' | 'tenantId', ElementInstanceSearchFilter> {
|
|
999
958
|
}
|
|
1000
959
|
export interface ElementInstanceDetails {
|
|
1001
960
|
/** The process definition ID associated to this element instance. */
|
|
@@ -1026,44 +985,38 @@ export interface ElementInstanceDetails {
|
|
|
1026
985
|
incidentKey?: string;
|
|
1027
986
|
}
|
|
1028
987
|
export interface SearchElementInstancesResponse {
|
|
1029
|
-
page:
|
|
988
|
+
page: CamundaRestSearchResponsePagination;
|
|
1030
989
|
items: Array<ElementInstanceDetails>;
|
|
1031
990
|
}
|
|
1032
991
|
export interface CamundaRestSearchElementInstancesResponse extends PaginatedCamundaRestSearchResponse<ElementInstanceDetails> {
|
|
1033
992
|
}
|
|
1034
|
-
export interface
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
processInstanceKey?: string;
|
|
1062
|
-
/** The element instance key associated to this incident. */
|
|
1063
|
-
elementInstanceKey?: string;
|
|
1064
|
-
/** The job key, if exists, associated with this incident. */
|
|
1065
|
-
jobKey?: string;
|
|
1066
|
-
};
|
|
993
|
+
export interface IncidentSearchFilter {
|
|
994
|
+
/** The process definition ID associated to this incident. */
|
|
995
|
+
processDefinitionId?: string;
|
|
996
|
+
/** Incident error type with a defined set of values. */
|
|
997
|
+
errorType?: 'UNSPECIFIED' | 'UNKNOWN' | 'IO_MAPPING_ERROR' | 'JOB_NO_RETRIES' | 'EXECUTION_LISTENER_NO_RETRIES' | 'TASK_LISTENER_NO_RETRIES' | 'CONDITION_ERROR' | 'EXTRACT_VALUE_ERROR' | 'CALLED_ELEMENT_ERROR' | 'UNHANDLED_ERROR_EVENT' | 'MESSAGE_SIZE_EXCEEDED' | 'CALLED_DECISION_ERROR' | 'DECISION_EVALUATION_ERROR' | 'FORM_NOT_FOUND' | 'RESOURCE_NOT_FOUND';
|
|
998
|
+
/** Error message which describes the error in more detail. */
|
|
999
|
+
errorMessage?: string;
|
|
1000
|
+
/** The element ID associated to this incident. */
|
|
1001
|
+
elementId?: string;
|
|
1002
|
+
/** Date of incident creation. */
|
|
1003
|
+
creationTime?: string;
|
|
1004
|
+
/** State of this incident with a defined set of values. */
|
|
1005
|
+
state?: 'ACTIVE' | 'MIGRATED' | 'RESOLVED' | 'PENDING';
|
|
1006
|
+
/** The tenant ID of the incident. */
|
|
1007
|
+
tenantId?: string;
|
|
1008
|
+
/** The assigned key, which acts as a unique identifier for this incident. */
|
|
1009
|
+
incidentKey?: string;
|
|
1010
|
+
/** The process definition key associated to this incident. */
|
|
1011
|
+
processDefinitionKey?: string;
|
|
1012
|
+
/** The process instance key associated to this incident. */
|
|
1013
|
+
processInstanceKey?: string;
|
|
1014
|
+
/** The element instance key associated to this incident. */
|
|
1015
|
+
elementInstanceKey?: string;
|
|
1016
|
+
/** The job key, if exists, associated with this incident. */
|
|
1017
|
+
jobKey?: string;
|
|
1018
|
+
}
|
|
1019
|
+
export interface SearchIncidentsRequest extends BaseSearchRequest<'incidentKey' | 'processInstanceKey' | 'processDefinitionKey' | 'processDefinitionId' | 'errorType' | 'errorMessage' | 'elementId' | 'elementInstanceKey' | 'creationTime' | 'state' | 'jobKey' | 'tenantId', IncidentSearchFilter> {
|
|
1067
1020
|
}
|
|
1068
1021
|
interface IncidentDetails {
|
|
1069
1022
|
processDefinitionId: string;
|
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;AAuClB,MAAa,iBAAkB,SAAQ,iBAAW;CAOjD;AAPD,8CAOC;AAHA;IADC,iBAAW;+DACiB;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CAAC;0DACS;AAKnC,MAAa,wBAAyB,SAAQ,iBAAW;CAyBxD;AAzBD,4DAyBC;AADA;IADC,IAAA,cAAQ,EAAC,iBAAiB,CAAC;oEACY;AA4DzC,MAAM,QAAS,SAAQ,iBAAW;CAYjC;AATA;IADC,iBAAW;oCACD;AAWZ,8BAA8B;AAC9B,MAAa,mBAAoB,SAAQ,iBAAW;CAMnD;AAND,kDAMC;AADA;IADC,IAAA,cAAQ,EAAC,QAAQ,CAAC;kDACD;AAGnB,MAAa,mBAAmB;CAO/B;AAPD,kDAOC"}
|
package/dist/lib/GotHooks.js
CHANGED
|
@@ -60,6 +60,11 @@ const gotBeforeErrorHook = (config) => (error) => {
|
|
|
60
60
|
}
|
|
61
61
|
/** Hinting for error messages. See https://github.com/camunda/camunda-8-js-sdk/issues/456 */
|
|
62
62
|
/** Here we reason over the error and the configuration to enrich the message with hints */
|
|
63
|
+
if (error.message.includes('Invalid header token')) {
|
|
64
|
+
// This is a parse error, which means the response header was not valid JSON.
|
|
65
|
+
// Debugging for https://github.com/camunda/camunda-8-js-sdk/issues/491
|
|
66
|
+
error.message += ` (response headers: ${error.response?.headers})`;
|
|
67
|
+
}
|
|
63
68
|
if (error.code === '401') {
|
|
64
69
|
// the call was unauthorized
|
|
65
70
|
if (config.CAMUNDA_AUTH_STRATEGY === 'OAUTH') {
|
|
@@ -98,6 +103,6 @@ exports.makeBeforeRetryHandlerFor401TokenRetry = makeBeforeRetryHandlerFor401Tok
|
|
|
98
103
|
exports.GotRetryConfig = {
|
|
99
104
|
limit: 1,
|
|
100
105
|
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
|
|
101
|
-
statusCodes: [401],
|
|
106
|
+
statusCodes: [401, 429],
|
|
102
107
|
};
|
|
103
108
|
//# sourceMappingURL=GotHooks.js.map
|
package/dist/lib/GotHooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GotHooks.js","sourceRoot":"","sources":["../../src/lib/Got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