@emilgroup/action-sdk-node 1.0.1-beta.36 → 1.0.1-beta.39

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/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/action-sdk-node@1.0.1-beta.36 --save
20
+ npm install @emilgroup/action-sdk-node@1.0.1-beta.39 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/action-sdk-node@1.0.1-beta.36
24
+ yarn add @emilgroup/action-sdk-node@1.0.1-beta.39
25
25
  ```
26
26
 
27
27
  And then you can import `ActionsApi`.
@@ -308,11 +308,11 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
308
308
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
309
309
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
310
310
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
311
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
311
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
312
312
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
313
313
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt</i>
314
314
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: inputValidationSchema<i>
315
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy</i>
315
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy</i>
316
316
  * @param {*} [options] Override http request option.
317
317
  * @throws {RequiredError}
318
318
  */
@@ -369,6 +369,71 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
369
369
 
370
370
 
371
371
 
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
375
+
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
381
+ /**
382
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
383
+ * @summary Retrieve the actionsByEntity
384
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
385
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
386
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
388
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ listActionsByEntity: async (entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
393
+ // verify required parameter 'entityCode' is not null or undefined
394
+ assertParamExists('listActionsByEntity', 'entityCode', entityCode)
395
+ // verify required parameter 'entityType' is not null or undefined
396
+ assertParamExists('listActionsByEntity', 'entityType', entityType)
397
+ const localVarPath = `/actionservice/v1/actions/by-entity`;
398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
399
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
400
+ let baseOptions;
401
+ let baseAccessToken;
402
+ if (configuration) {
403
+ baseOptions = configuration.baseOptions;
404
+ baseAccessToken = configuration.accessToken;
405
+ }
406
+
407
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
408
+ const localVarHeaderParameter = {} as any;
409
+ const localVarQueryParameter = {} as any;
410
+
411
+ // authentication bearer required
412
+ // http bearer authentication required
413
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
414
+
415
+ if (entityCode !== undefined) {
416
+ localVarQueryParameter['entityCode'] = entityCode;
417
+ }
418
+
419
+ if (entityType !== undefined) {
420
+ localVarQueryParameter['entityType'] = entityType;
421
+ }
422
+
423
+ if (includeDisabled !== undefined) {
424
+ localVarQueryParameter['includeDisabled'] = includeDisabled;
425
+ }
426
+
427
+ if (includeNotAvailableInUi !== undefined) {
428
+ localVarQueryParameter['includeNotAvailableInUi'] = includeNotAvailableInUi;
429
+ }
430
+
431
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
432
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
433
+ }
434
+
435
+
436
+
372
437
  setSearchParams(localVarUrlObj, localVarQueryParameter);
373
438
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
439
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -509,11 +574,11 @@ export const ActionsApiFp = function(configuration?: Configuration) {
509
574
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
510
575
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
511
576
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
512
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
577
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
513
578
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
514
579
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
515
580
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
516
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
581
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
517
582
  * @param {*} [options] Override http request option.
518
583
  * @throws {RequiredError}
519
584
  */
@@ -521,6 +586,21 @@ export const ActionsApiFp = function(configuration?: Configuration) {
521
586
  const localVarAxiosArgs = await localVarAxiosParamCreator.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
522
587
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
523
588
  },
589
+ /**
590
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
591
+ * @summary Retrieve the actionsByEntity
592
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
593
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
594
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
595
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
596
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ async listActionsByEntity(entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>> {
601
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options);
602
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
603
+ },
524
604
  /**
525
605
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
526
606
  * @summary Update the action
@@ -609,17 +689,31 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
609
689
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
610
690
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
611
691
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
612
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
692
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
613
693
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
614
694
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
615
695
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
616
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
696
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
617
697
  * @param {*} [options] Override http request option.
618
698
  * @throws {RequiredError}
619
699
  */
620
700
  listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass> {
621
701
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
622
702
  },
703
+ /**
704
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
705
+ * @summary Retrieve the actionsByEntity
706
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
707
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
708
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
710
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ listActionsByEntity(entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options?: any): AxiosPromise<ListActionsResponseClass> {
715
+ return localVarFp.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options).then((request) => request(axios, basePath));
716
+ },
623
717
  /**
624
718
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
625
719
  * @summary Update the action
@@ -796,7 +890,7 @@ export interface ActionsApiListActionsRequest {
796
890
  readonly pageToken?: string
797
891
 
798
892
  /**
799
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
893
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
800
894
  * @type {string}
801
895
  * @memberof ActionsApiListActions
802
896
  */
@@ -824,13 +918,55 @@ export interface ActionsApiListActionsRequest {
824
918
  readonly expand?: string
825
919
 
826
920
  /**
827
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
921
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
828
922
  * @type {string}
829
923
  * @memberof ActionsApiListActions
830
924
  */
831
925
  readonly filters?: string
832
926
  }
833
927
 
928
+ /**
929
+ * Request parameters for listActionsByEntity operation in ActionsApi.
930
+ * @export
931
+ * @interface ActionsApiListActionsByEntityRequest
932
+ */
933
+ export interface ActionsApiListActionsByEntityRequest {
934
+ /**
935
+ * Code of the entity (e.g. policy code, lead code)
936
+ * @type {string}
937
+ * @memberof ActionsApiListActionsByEntity
938
+ */
939
+ readonly entityCode: string
940
+
941
+ /**
942
+ * Entity type: Policy, Lead, Claim
943
+ * @type {'POLICY' | 'LEAD' | 'CLAIM'}
944
+ * @memberof ActionsApiListActionsByEntity
945
+ */
946
+ readonly entityType: 'POLICY' | 'LEAD' | 'CLAIM'
947
+
948
+ /**
949
+ * Bearer Token: provided by the login endpoint under the name accessToken.
950
+ * @type {string}
951
+ * @memberof ActionsApiListActionsByEntity
952
+ */
953
+ readonly authorization?: string
954
+
955
+ /**
956
+ * Include disabled (draft) actions
957
+ * @type {boolean}
958
+ * @memberof ActionsApiListActionsByEntity
959
+ */
960
+ readonly includeDisabled?: boolean
961
+
962
+ /**
963
+ * Include actions that are not available in UI
964
+ * @type {boolean}
965
+ * @memberof ActionsApiListActionsByEntity
966
+ */
967
+ readonly includeNotAvailableInUi?: boolean
968
+ }
969
+
834
970
  /**
835
971
  * Request parameters for updateAction operation in ActionsApi.
836
972
  * @export
@@ -938,6 +1074,18 @@ export class ActionsApi extends BaseAPI {
938
1074
  return ActionsApiFp(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
939
1075
  }
940
1076
 
1077
+ /**
1078
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
1079
+ * @summary Retrieve the actionsByEntity
1080
+ * @param {ActionsApiListActionsByEntityRequest} requestParameters Request parameters.
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ * @memberof ActionsApi
1084
+ */
1085
+ public listActionsByEntity(requestParameters: ActionsApiListActionsByEntityRequest, options?: AxiosRequestConfig) {
1086
+ return ActionsApiFp(this.configuration).listActionsByEntity(requestParameters.entityCode, requestParameters.entityType, requestParameters.authorization, requestParameters.includeDisabled, requestParameters.includeNotAvailableInUi, options).then((request) => request(this.axios, this.basePath));
1087
+ }
1088
+
941
1089
  /**
942
1090
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
943
1091
  * @summary Update the action
@@ -81,15 +81,27 @@ export declare const ActionsApiAxiosParamCreator: (configuration?: Configuration
81
81
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
82
82
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
83
83
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
84
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
84
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
85
85
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
86
86
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
87
87
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
88
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
88
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
89
89
  * @param {*} [options] Override http request option.
90
90
  * @throws {RequiredError}
91
91
  */
92
92
  listActions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
93
+ /**
94
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
95
+ * @summary Retrieve the actionsByEntity
96
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
97
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
100
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ listActionsByEntity: (entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
93
105
  /**
94
106
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
95
107
  * @summary Update the action
@@ -161,15 +173,27 @@ export declare const ActionsApiFp: (configuration?: Configuration) => {
161
173
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
174
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
163
175
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
164
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
176
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
165
177
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
166
178
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
167
179
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
168
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
180
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
169
181
  * @param {*} [options] Override http request option.
170
182
  * @throws {RequiredError}
171
183
  */
172
184
  listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>>;
185
+ /**
186
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
187
+ * @summary Retrieve the actionsByEntity
188
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
189
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
190
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
192
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listActionsByEntity(entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListActionsResponseClass>>;
173
197
  /**
174
198
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
175
199
  * @summary Update the action
@@ -241,15 +265,27 @@ export declare const ActionsApiFactory: (configuration?: Configuration, basePath
241
265
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
242
266
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
243
267
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
244
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
268
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
245
269
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
246
270
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
247
271
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
248
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
272
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
249
273
  * @param {*} [options] Override http request option.
250
274
  * @throws {RequiredError}
251
275
  */
252
276
  listActions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListActionsResponseClass>;
277
+ /**
278
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
279
+ * @summary Retrieve the actionsByEntity
280
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
281
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
282
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
283
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
284
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ listActionsByEntity(entityCode: string, entityType: 'POLICY' | 'LEAD' | 'CLAIM', authorization?: string, includeDisabled?: boolean, includeNotAvailableInUi?: boolean, options?: any): AxiosPromise<ListActionsResponseClass>;
253
289
  /**
254
290
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
255
291
  * @summary Update the action
@@ -405,7 +441,7 @@ export interface ActionsApiListActionsRequest {
405
441
  */
406
442
  readonly pageToken?: string;
407
443
  /**
408
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
444
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
409
445
  * @type {string}
410
446
  * @memberof ActionsApiListActions
411
447
  */
@@ -429,12 +465,49 @@ export interface ActionsApiListActionsRequest {
429
465
  */
430
466
  readonly expand?: string;
431
467
  /**
432
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
468
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
433
469
  * @type {string}
434
470
  * @memberof ActionsApiListActions
435
471
  */
436
472
  readonly filters?: string;
437
473
  }
474
+ /**
475
+ * Request parameters for listActionsByEntity operation in ActionsApi.
476
+ * @export
477
+ * @interface ActionsApiListActionsByEntityRequest
478
+ */
479
+ export interface ActionsApiListActionsByEntityRequest {
480
+ /**
481
+ * Code of the entity (e.g. policy code, lead code)
482
+ * @type {string}
483
+ * @memberof ActionsApiListActionsByEntity
484
+ */
485
+ readonly entityCode: string;
486
+ /**
487
+ * Entity type: Policy, Lead, Claim
488
+ * @type {'POLICY' | 'LEAD' | 'CLAIM'}
489
+ * @memberof ActionsApiListActionsByEntity
490
+ */
491
+ readonly entityType: 'POLICY' | 'LEAD' | 'CLAIM';
492
+ /**
493
+ * Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @type {string}
495
+ * @memberof ActionsApiListActionsByEntity
496
+ */
497
+ readonly authorization?: string;
498
+ /**
499
+ * Include disabled (draft) actions
500
+ * @type {boolean}
501
+ * @memberof ActionsApiListActionsByEntity
502
+ */
503
+ readonly includeDisabled?: boolean;
504
+ /**
505
+ * Include actions that are not available in UI
506
+ * @type {boolean}
507
+ * @memberof ActionsApiListActionsByEntity
508
+ */
509
+ readonly includeNotAvailableInUi?: boolean;
510
+ }
438
511
  /**
439
512
  * Request parameters for updateAction operation in ActionsApi.
440
513
  * @export
@@ -521,6 +594,15 @@ export declare class ActionsApi extends BaseAPI {
521
594
  * @memberof ActionsApi
522
595
  */
523
596
  listActions(requestParameters?: ActionsApiListActionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}>>;
597
+ /**
598
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
599
+ * @summary Retrieve the actionsByEntity
600
+ * @param {ActionsApiListActionsByEntityRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ * @memberof ActionsApi
604
+ */
605
+ listActionsByEntity(requestParameters: ActionsApiListActionsByEntityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListActionsResponseClass, any, {}>>;
524
606
  /**
525
607
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
526
608
  * @summary Update the action
@@ -364,11 +364,11 @@ var ActionsApiAxiosParamCreator = function (configuration) {
364
364
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
365
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
366
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
367
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
367
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
368
368
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
369
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
370
370
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
371
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
371
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
372
372
  * @param {*} [options] Override http request option.
373
373
  * @throws {RequiredError}
374
374
  */
@@ -430,6 +430,70 @@ var ActionsApiAxiosParamCreator = function (configuration) {
430
430
  });
431
431
  });
432
432
  },
433
+ /**
434
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
435
+ * @summary Retrieve the actionsByEntity
436
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
437
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
440
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
445
+ if (options === void 0) { options = {}; }
446
+ return __awaiter(_this, void 0, void 0, function () {
447
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
+ return __generator(this, function (_a) {
449
+ switch (_a.label) {
450
+ case 0:
451
+ // verify required parameter 'entityCode' is not null or undefined
452
+ (0, common_1.assertParamExists)('listActionsByEntity', 'entityCode', entityCode);
453
+ // verify required parameter 'entityType' is not null or undefined
454
+ (0, common_1.assertParamExists)('listActionsByEntity', 'entityType', entityType);
455
+ localVarPath = "/actionservice/v1/actions/by-entity";
456
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
457
+ if (configuration) {
458
+ baseOptions = configuration.baseOptions;
459
+ baseAccessToken = configuration.accessToken;
460
+ }
461
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
462
+ localVarHeaderParameter = {};
463
+ localVarQueryParameter = {};
464
+ // authentication bearer required
465
+ // http bearer authentication required
466
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
467
+ case 1:
468
+ // authentication bearer required
469
+ // http bearer authentication required
470
+ _a.sent();
471
+ if (entityCode !== undefined) {
472
+ localVarQueryParameter['entityCode'] = entityCode;
473
+ }
474
+ if (entityType !== undefined) {
475
+ localVarQueryParameter['entityType'] = entityType;
476
+ }
477
+ if (includeDisabled !== undefined) {
478
+ localVarQueryParameter['includeDisabled'] = includeDisabled;
479
+ }
480
+ if (includeNotAvailableInUi !== undefined) {
481
+ localVarQueryParameter['includeNotAvailableInUi'] = includeNotAvailableInUi;
482
+ }
483
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
484
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
485
+ }
486
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
487
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
489
+ return [2 /*return*/, {
490
+ url: (0, common_1.toPathString)(localVarUrlObj),
491
+ options: localVarRequestOptions,
492
+ }];
493
+ }
494
+ });
495
+ });
496
+ },
433
497
  /**
434
498
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
435
499
  * @summary Update the action
@@ -608,11 +672,11 @@ var ActionsApiFp = function (configuration) {
608
672
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
673
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
610
674
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
611
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
675
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
612
676
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
613
677
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
614
678
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
615
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
679
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
616
680
  * @param {*} [options] Override http request option.
617
681
  * @throws {RequiredError}
618
682
  */
@@ -629,6 +693,30 @@ var ActionsApiFp = function (configuration) {
629
693
  });
630
694
  });
631
695
  },
696
+ /**
697
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
698
+ * @summary Retrieve the actionsByEntity
699
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
700
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
701
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
702
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
703
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
708
+ return __awaiter(this, void 0, void 0, function () {
709
+ var localVarAxiosArgs;
710
+ return __generator(this, function (_a) {
711
+ switch (_a.label) {
712
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options)];
713
+ case 1:
714
+ localVarAxiosArgs = _a.sent();
715
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
716
+ }
717
+ });
718
+ });
719
+ },
632
720
  /**
633
721
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
634
722
  * @summary Update the action
@@ -726,17 +814,31 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
726
814
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
815
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
728
816
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
729
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
817
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
730
818
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
731
819
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, configVersion, createdAt, updatedAt&lt;/i&gt;
732
820
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: inputValidationSchema&lt;i&gt;
733
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
821
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, configVersion, isAvailableInUi, workflowCode, entityType, productVersionId, productSlug, owner, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
734
822
  * @param {*} [options] Override http request option.
735
823
  * @throws {RequiredError}
736
824
  */
737
825
  listActions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
738
826
  return localVarFp.listActions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
739
827
  },
828
+ /**
829
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
830
+ * @summary Retrieve the actionsByEntity
831
+ * @param {string} entityCode Code of the entity (e.g. policy code, lead code)
832
+ * @param {'POLICY' | 'LEAD' | 'CLAIM'} entityType Entity type: Policy, Lead, Claim
833
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
834
+ * @param {boolean} [includeDisabled] Include disabled (draft) actions
835
+ * @param {boolean} [includeNotAvailableInUi] Include actions that are not available in UI
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ listActionsByEntity: function (entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options) {
840
+ return localVarFp.listActionsByEntity(entityCode, entityType, authorization, includeDisabled, includeNotAvailableInUi, options).then(function (request) { return request(axios, basePath); });
841
+ },
740
842
  /**
741
843
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
742
844
  * @summary Update the action
@@ -836,6 +938,18 @@ var ActionsApi = /** @class */ (function (_super) {
836
938
  if (requestParameters === void 0) { requestParameters = {}; }
837
939
  return (0, exports.ActionsApiFp)(this.configuration).listActions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
838
940
  };
941
+ /**
942
+ * Lists actions available for a given entity. Fetches entity snapshot by type and code, then returns actions configured for that entity type, product version, and tenant. **Required Permissions** \"action-management.actions.view\"
943
+ * @summary Retrieve the actionsByEntity
944
+ * @param {ActionsApiListActionsByEntityRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ * @memberof ActionsApi
948
+ */
949
+ ActionsApi.prototype.listActionsByEntity = function (requestParameters, options) {
950
+ var _this = this;
951
+ return (0, exports.ActionsApiFp)(this.configuration).listActionsByEntity(requestParameters.entityCode, requestParameters.entityType, requestParameters.authorization, requestParameters.includeDisabled, requestParameters.includeNotAvailableInUi, options).then(function (request) { return request(_this.axios, _this.basePath); });
952
+ };
839
953
  /**
840
954
  * Updates an existing action configuration (patch semantics) **Required Permissions** \"action-management.actions.update\"
841
955
  * @summary Update the action
@@ -58,11 +58,17 @@ export interface CreateActionRequestDto {
58
58
  */
59
59
  'entityType'?: CreateActionRequestDtoEntityTypeEnum;
60
60
  /**
61
- * Product version ID. When provided, entityType is required (and vice versa).
61
+ * Product version ID. Required for entity actions (when entityType is set).
62
62
  * @type {number}
63
63
  * @memberof CreateActionRequestDto
64
64
  */
65
65
  'productVersionId'?: number;
66
+ /**
67
+ * Product slug. Required for entity actions (when entityType is set). Must match the product that owns productVersionId.
68
+ * @type {string}
69
+ * @memberof CreateActionRequestDto
70
+ */
71
+ 'productSlug'?: string;
66
72
  /**
67
73
  * Optional JSON Schema to validate input_payload when triggering the action
68
74
  * @type {object}
@@ -64,11 +64,17 @@ export interface UpdateActionRequestDto {
64
64
  */
65
65
  'entityType'?: UpdateActionRequestDtoEntityTypeEnum;
66
66
  /**
67
- * Product version ID. When provided, entityType is required (and vice versa).
67
+ * Product version ID. Required when updating an entity action (entityType set).
68
68
  * @type {number}
69
69
  * @memberof UpdateActionRequestDto
70
70
  */
71
71
  'productVersionId'?: number;
72
+ /**
73
+ * Product slug. Required when updating an entity action. Must match the product that owns productVersionId.
74
+ * @type {string}
75
+ * @memberof UpdateActionRequestDto
76
+ */
77
+ 'productSlug'?: string;
72
78
  /**
73
79
  * Optional JSON Schema to validate input_payload when triggering the action
74
80
  * @type {object}
@@ -63,11 +63,17 @@ export interface CreateActionRequestDto {
63
63
  */
64
64
  'entityType'?: CreateActionRequestDtoEntityTypeEnum;
65
65
  /**
66
- * Product version ID. When provided, entityType is required (and vice versa).
66
+ * Product version ID. Required for entity actions (when entityType is set).
67
67
  * @type {number}
68
68
  * @memberof CreateActionRequestDto
69
69
  */
70
70
  'productVersionId'?: number;
71
+ /**
72
+ * Product slug. Required for entity actions (when entityType is set). Must match the product that owns productVersionId.
73
+ * @type {string}
74
+ * @memberof CreateActionRequestDto
75
+ */
76
+ 'productSlug'?: string;
71
77
  /**
72
78
  * Optional JSON Schema to validate input_payload when triggering the action
73
79
  * @type {object}
@@ -69,11 +69,17 @@ export interface UpdateActionRequestDto {
69
69
  */
70
70
  'entityType'?: UpdateActionRequestDtoEntityTypeEnum;
71
71
  /**
72
- * Product version ID. When provided, entityType is required (and vice versa).
72
+ * Product version ID. Required when updating an entity action (entityType set).
73
73
  * @type {number}
74
74
  * @memberof UpdateActionRequestDto
75
75
  */
76
76
  'productVersionId'?: number;
77
+ /**
78
+ * Product slug. Required when updating an entity action. Must match the product that owns productVersionId.
79
+ * @type {string}
80
+ * @memberof UpdateActionRequestDto
81
+ */
82
+ 'productSlug'?: string;
77
83
  /**
78
84
  * Optional JSON Schema to validate input_payload when triggering the action
79
85
  * @type {object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk-node",
3
- "version": "1.0.1-beta.36",
3
+ "version": "1.0.1-beta.39",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [