@emilgroup/insurance-sdk-node 1.53.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/booking-funnel-versions-api.ts +4 -4
- package/api/booking-funnels-api.ts +20 -12
- package/api/commission-agreement-products-api.ts +8 -8
- package/api/commission-agreement-versions-api.ts +8 -8
- package/api/commission-agreements-api.ts +8 -8
- package/api/commission-recipients-api.ts +8 -8
- package/api/emil-functions-api.ts +8 -8
- package/api/lead-statuses-api.ts +4 -4
- package/api/lead-versions-api.ts +4 -4
- package/api/leads-api.ts +4 -4
- package/api/partner-links-api.ts +4 -4
- package/api/partner-roles-api.ts +4 -4
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +8 -8
- package/api/status-transition-rules-api.ts +4 -4
- package/base.ts +15 -7
- package/dist/api/booking-funnel-versions-api.d.ts +4 -4
- package/dist/api/booking-funnel-versions-api.js +4 -4
- package/dist/api/booking-funnels-api.d.ts +20 -16
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/commission-agreement-products-api.d.ts +8 -8
- package/dist/api/commission-agreement-products-api.js +7 -7
- package/dist/api/commission-agreement-versions-api.d.ts +8 -8
- package/dist/api/commission-agreement-versions-api.js +7 -7
- package/dist/api/commission-agreements-api.d.ts +8 -8
- package/dist/api/commission-agreements-api.js +7 -7
- package/dist/api/commission-recipients-api.d.ts +8 -8
- package/dist/api/commission-recipients-api.js +7 -7
- package/dist/api/emil-functions-api.d.ts +8 -8
- package/dist/api/emil-functions-api.js +8 -8
- package/dist/api/lead-statuses-api.d.ts +4 -4
- package/dist/api/lead-statuses-api.js +4 -4
- package/dist/api/lead-versions-api.d.ts +4 -4
- package/dist/api/lead-versions-api.js +4 -4
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +4 -4
- package/dist/api/partner-links-api.d.ts +4 -4
- package/dist/api/partner-links-api.js +3 -3
- package/dist/api/partner-roles-api.d.ts +4 -4
- package/dist/api/partner-roles-api.js +4 -4
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +14 -14
- package/dist/api/products-api.d.ts +8 -8
- package/dist/api/products-api.js +8 -8
- package/dist/api/status-transition-rules-api.d.ts +4 -4
- package/dist/api/status-transition-rules-api.js +4 -4
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/booking-funnel-class.d.ts +12 -0
- package/dist/models/commission-agreement-class.d.ts +12 -0
- package/dist/models/commission-agreement-item-class.d.ts +12 -0
- package/dist/models/commission-agreement-product-class.d.ts +12 -0
- package/dist/models/commission-agreement-version-class.d.ts +12 -0
- package/dist/models/commission-recipient-class.d.ts +12 -0
- package/dist/models/create-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/create-booking-funnel-response-class.js +15 -0
- package/dist/models/create-dummy-policy-request-dto.d.ts +6 -0
- package/dist/models/create-lead-request-dto.d.ts +4 -9
- package/dist/models/emil-function-class.d.ts +12 -0
- package/dist/models/get-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/get-booking-funnel-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/insured-object-class.d.ts +12 -0
- package/dist/models/insured-object-type-class.d.ts +12 -0
- package/dist/models/lead-class.d.ts +12 -0
- package/dist/models/lead-status-class.d.ts +12 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +36 -0
- package/dist/models/link-lead-partner-request-dto.js +15 -0
- package/dist/models/list-named-ranges-response-class.d.ts +3 -2
- package/dist/models/named-range-class.d.ts +12 -0
- package/dist/models/partner-link-class.d.ts +12 -0
- package/dist/models/partner-role-class.d.ts +12 -0
- package/dist/models/patch-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/patch-booking-funnel-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +12 -0
- package/dist/models/policy-object-class.d.ts +12 -0
- package/dist/models/policy-premium-class.d.ts +12 -0
- package/dist/models/policy-premium-item-class.d.ts +12 -0
- package/dist/models/policy-version-class.d.ts +12 -0
- package/dist/models/premium-formula-class.d.ts +12 -0
- package/dist/models/product-class.d.ts +12 -0
- package/dist/models/product-factor-class.d.ts +12 -0
- package/dist/models/product-factor-for-version-class.d.ts +12 -0
- package/dist/models/product-factor-value-class.d.ts +12 -0
- package/dist/models/product-field-class.d.ts +12 -0
- package/dist/models/product-field-type-class.d.ts +12 -0
- package/dist/models/product-version-class.d.ts +12 -0
- package/dist/models/shared-product-field-class.d.ts +12 -0
- package/dist/models/status-transition-rule-class.d.ts +12 -0
- package/dist/models/timeslice-class.d.ts +12 -0
- package/dist/models/update-booking-funnel-response-class.d.ts +25 -0
- package/dist/models/update-booking-funnel-response-class.js +15 -0
- package/models/booking-funnel-class.ts +12 -0
- package/models/commission-agreement-class.ts +12 -0
- package/models/commission-agreement-item-class.ts +12 -0
- package/models/commission-agreement-product-class.ts +12 -0
- package/models/commission-agreement-version-class.ts +12 -0
- package/models/commission-recipient-class.ts +12 -0
- package/models/create-booking-funnel-response-class.ts +31 -0
- package/models/create-dummy-policy-request-dto.ts +6 -0
- package/models/create-lead-request-dto.ts +4 -9
- package/models/emil-function-class.ts +12 -0
- package/models/get-booking-funnel-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/insured-object-class.ts +12 -0
- package/models/insured-object-type-class.ts +12 -0
- package/models/lead-class.ts +12 -0
- package/models/lead-status-class.ts +12 -0
- package/models/link-lead-partner-request-dto.ts +42 -0
- package/models/list-named-ranges-response-class.ts +3 -2
- package/models/named-range-class.ts +12 -0
- package/models/partner-link-class.ts +12 -0
- package/models/partner-role-class.ts +12 -0
- package/models/patch-booking-funnel-response-class.ts +31 -0
- package/models/policy-class.ts +12 -0
- package/models/policy-object-class.ts +12 -0
- package/models/policy-premium-class.ts +12 -0
- package/models/policy-premium-item-class.ts +12 -0
- package/models/policy-version-class.ts +12 -0
- package/models/premium-formula-class.ts +12 -0
- package/models/product-class.ts +12 -0
- package/models/product-factor-class.ts +12 -0
- package/models/product-factor-for-version-class.ts +12 -0
- package/models/product-factor-value-class.ts +12 -0
- package/models/product-field-class.ts +12 -0
- package/models/product-field-type-class.ts +12 -0
- package/models/product-version-class.ts +12 -0
- package/models/shared-product-field-class.ts +12 -0
- package/models/status-transition-rule-class.ts +12 -0
- package/models/timeslice-class.ts +12 -0
- package/models/update-booking-funnel-response-class.ts +31 -0
- package/package.json +1 -1
package/dist/api/policies-api.js
CHANGED
|
@@ -300,7 +300,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
300
300
|
});
|
|
301
301
|
},
|
|
302
302
|
/**
|
|
303
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
303
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
304
304
|
* @summary Retrieve the draft-policy
|
|
305
305
|
* @param {string} policyCode Unique identifier for the object.
|
|
306
306
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -352,7 +352,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
352
352
|
});
|
|
353
353
|
},
|
|
354
354
|
/**
|
|
355
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
355
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
356
356
|
* @summary Retrieve the policy
|
|
357
357
|
* @param {string} code Unique identifier for the object.
|
|
358
358
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -464,7 +464,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
464
464
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
465
465
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
466
466
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
467
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
467
|
+
* @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: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
468
468
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
469
469
|
* @param {*} [options] Override http request option.
|
|
470
470
|
* @throws {RequiredError}
|
|
@@ -609,7 +609,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
609
609
|
* @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, policyId</i>
|
|
610
610
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
611
611
|
* @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, policyId, createdAt, updatedAt</i>
|
|
612
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
612
|
+
* @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: timelines, premiums, premiumItems, premiumFormulas<i>
|
|
613
613
|
* @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, policyId</i>
|
|
614
614
|
* @param {*} [options] Override http request option.
|
|
615
615
|
* @throws {RequiredError}
|
|
@@ -1090,7 +1090,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
},
|
|
1092
1092
|
/**
|
|
1093
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
1093
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
1094
1094
|
* @summary Retrieve the draft-policy
|
|
1095
1095
|
* @param {string} policyCode Unique identifier for the object.
|
|
1096
1096
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -1112,7 +1112,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1112
1112
|
});
|
|
1113
1113
|
},
|
|
1114
1114
|
/**
|
|
1115
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
1115
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
1116
1116
|
* @summary Retrieve the policy
|
|
1117
1117
|
* @param {string} code Unique identifier for the object.
|
|
1118
1118
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -1164,7 +1164,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1164
1164
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1165
1165
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1166
1166
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1167
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
1167
|
+
* @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: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1168
1168
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1169
1169
|
* @param {*} [options] Override http request option.
|
|
1170
1170
|
* @throws {RequiredError}
|
|
@@ -1219,7 +1219,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1219
1219
|
* @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, policyId</i>
|
|
1220
1220
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1221
1221
|
* @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, policyId, createdAt, updatedAt</i>
|
|
1222
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
1222
|
+
* @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: timelines, premiums, premiumItems, premiumFormulas<i>
|
|
1223
1223
|
* @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, policyId</i>
|
|
1224
1224
|
* @param {*} [options] Override http request option.
|
|
1225
1225
|
* @throws {RequiredError}
|
|
@@ -1426,7 +1426,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1426
1426
|
return localVarFp.deleteDraftPolicy(policyCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1427
1427
|
},
|
|
1428
1428
|
/**
|
|
1429
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
1429
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
1430
1430
|
* @summary Retrieve the draft-policy
|
|
1431
1431
|
* @param {string} policyCode Unique identifier for the object.
|
|
1432
1432
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -1438,7 +1438,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1438
1438
|
return localVarFp.getDraftPolicy(policyCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
1439
1439
|
},
|
|
1440
1440
|
/**
|
|
1441
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
1441
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
1442
1442
|
* @summary Retrieve the policy
|
|
1443
1443
|
* @param {string} code Unique identifier for the object.
|
|
1444
1444
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -1470,7 +1470,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1470
1470
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1471
1471
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1472
1472
|
* @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, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1473
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
1473
|
+
* @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: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks<i>
|
|
1474
1474
|
* @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, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1475
1475
|
* @param {*} [options] Override http request option.
|
|
1476
1476
|
* @throws {RequiredError}
|
|
@@ -1505,7 +1505,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1505
1505
|
* @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, policyId</i>
|
|
1506
1506
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1507
1507
|
* @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, policyId, createdAt, updatedAt</i>
|
|
1508
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
1508
|
+
* @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: timelines, premiums, premiumItems, premiumFormulas<i>
|
|
1509
1509
|
* @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, policyId</i>
|
|
1510
1510
|
* @param {*} [options] Override http request option.
|
|
1511
1511
|
* @throws {RequiredError}
|
|
@@ -1648,7 +1648,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1648
1648
|
return (0, exports.PoliciesApiFp)(this.configuration).deleteDraftPolicy(requestParameters.policyCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1649
1649
|
};
|
|
1650
1650
|
/**
|
|
1651
|
-
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code
|
|
1651
|
+
* Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
|
|
1652
1652
|
* @summary Retrieve the draft-policy
|
|
1653
1653
|
* @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
|
|
1654
1654
|
* @param {*} [options] Override http request option.
|
|
@@ -1660,7 +1660,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1660
1660
|
return (0, exports.PoliciesApiFp)(this.configuration).getDraftPolicy(requestParameters.policyCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1661
1661
|
};
|
|
1662
1662
|
/**
|
|
1663
|
-
* Retrieves the details of the policy that was previously created. Supply the unique policy code
|
|
1663
|
+
* Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
|
|
1664
1664
|
* @summary Retrieve the policy
|
|
1665
1665
|
* @param {PoliciesApiGetPolicyRequest} requestParameters Request parameters.
|
|
1666
1666
|
* @param {*} [options] Override http request option.
|
|
@@ -43,7 +43,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
43
43
|
*/
|
|
44
44
|
deleteProduct: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
46
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
47
47
|
* @summary Retrieve the product
|
|
48
48
|
* @param {string} code Unique identifier for the object.
|
|
49
49
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -55,7 +55,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
55
55
|
*/
|
|
56
56
|
getProductByCode: (code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
57
|
/**
|
|
58
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
58
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
59
59
|
* @summary Retrieve the product
|
|
60
60
|
* @param {number} id Unique identifier referencing the product.
|
|
61
61
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -116,7 +116,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
116
116
|
*/
|
|
117
117
|
deleteProduct(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
118
118
|
/**
|
|
119
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
119
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
120
120
|
* @summary Retrieve the product
|
|
121
121
|
* @param {string} code Unique identifier for the object.
|
|
122
122
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -128,7 +128,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
128
128
|
*/
|
|
129
129
|
getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
|
|
130
130
|
/**
|
|
131
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
131
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
132
132
|
* @summary Retrieve the product
|
|
133
133
|
* @param {number} id Unique identifier referencing the product.
|
|
134
134
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -189,7 +189,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
189
189
|
*/
|
|
190
190
|
deleteProduct(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
191
191
|
/**
|
|
192
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
192
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
193
193
|
* @summary Retrieve the product
|
|
194
194
|
* @param {string} code Unique identifier for the object.
|
|
195
195
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -201,7 +201,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
201
201
|
*/
|
|
202
202
|
getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
|
|
203
203
|
/**
|
|
204
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
204
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
205
205
|
* @summary Retrieve the product
|
|
206
206
|
* @param {number} id Unique identifier referencing the product.
|
|
207
207
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -456,7 +456,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
456
456
|
*/
|
|
457
457
|
deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
458
458
|
/**
|
|
459
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
459
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
460
460
|
* @summary Retrieve the product
|
|
461
461
|
* @param {ProductsApiGetProductByCodeRequest} requestParameters Request parameters.
|
|
462
462
|
* @param {*} [options] Override http request option.
|
|
@@ -465,7 +465,7 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
465
465
|
*/
|
|
466
466
|
getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
|
|
467
467
|
/**
|
|
468
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
468
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
469
469
|
* @summary Retrieve the product
|
|
470
470
|
* @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
|
|
471
471
|
* @param {*} [options] Override http request option.
|
package/dist/api/products-api.js
CHANGED
|
@@ -194,7 +194,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
197
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
198
198
|
* @summary Retrieve the product
|
|
199
199
|
* @param {string} code Unique identifier for the object.
|
|
200
200
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -258,7 +258,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
258
258
|
});
|
|
259
259
|
},
|
|
260
260
|
/**
|
|
261
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
261
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
262
262
|
* @summary Retrieve the product
|
|
263
263
|
* @param {number} id Unique identifier referencing the product.
|
|
264
264
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -501,7 +501,7 @@ var ProductsApiFp = function (configuration) {
|
|
|
501
501
|
});
|
|
502
502
|
},
|
|
503
503
|
/**
|
|
504
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
504
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
505
505
|
* @summary Retrieve the product
|
|
506
506
|
* @param {string} code Unique identifier for the object.
|
|
507
507
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -525,7 +525,7 @@ var ProductsApiFp = function (configuration) {
|
|
|
525
525
|
});
|
|
526
526
|
},
|
|
527
527
|
/**
|
|
528
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
528
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
529
529
|
* @summary Retrieve the product
|
|
530
530
|
* @param {number} id Unique identifier referencing the product.
|
|
531
531
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -630,7 +630,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
630
630
|
return localVarFp.deleteProduct(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
631
631
|
},
|
|
632
632
|
/**
|
|
633
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
633
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
634
634
|
* @summary Retrieve the product
|
|
635
635
|
* @param {string} code Unique identifier for the object.
|
|
636
636
|
* @param {number} id Unique identifier referencing the product.
|
|
@@ -644,7 +644,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
644
644
|
return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
645
645
|
},
|
|
646
646
|
/**
|
|
647
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
647
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
648
648
|
* @summary Retrieve the product
|
|
649
649
|
* @param {number} id Unique identifier referencing the product.
|
|
650
650
|
* @param {string} code Unique identifier of the product that this object belongs to.
|
|
@@ -725,7 +725,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
725
725
|
return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
726
726
|
};
|
|
727
727
|
/**
|
|
728
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
728
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
729
729
|
* @summary Retrieve the product
|
|
730
730
|
* @param {ProductsApiGetProductByCodeRequest} requestParameters Request parameters.
|
|
731
731
|
* @param {*} [options] Override http request option.
|
|
@@ -737,7 +737,7 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
737
737
|
return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
738
738
|
};
|
|
739
739
|
/**
|
|
740
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code
|
|
740
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
741
741
|
* @summary Retrieve the product
|
|
742
742
|
* @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
|
|
743
743
|
* @param {*} [options] Override http request option.
|
|
@@ -45,7 +45,7 @@ export declare const StatusTransitionRulesApiAxiosParamCreator: (configuration?:
|
|
|
45
45
|
*/
|
|
46
46
|
deleteStatusTransitionRule: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
48
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
49
49
|
* @summary Retrieve the status transition rule
|
|
50
50
|
* @param {string} code Unique identifier for the object.
|
|
51
51
|
* @param {string} [authorization] Bearer Token
|
|
@@ -114,7 +114,7 @@ export declare const StatusTransitionRulesApiFp: (configuration?: Configuration)
|
|
|
114
114
|
*/
|
|
115
115
|
deleteStatusTransitionRule(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
116
116
|
/**
|
|
117
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
117
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
118
118
|
* @summary Retrieve the status transition rule
|
|
119
119
|
* @param {string} code Unique identifier for the object.
|
|
120
120
|
* @param {string} [authorization] Bearer Token
|
|
@@ -183,7 +183,7 @@ export declare const StatusTransitionRulesApiFactory: (configuration?: Configura
|
|
|
183
183
|
*/
|
|
184
184
|
deleteStatusTransitionRule(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
185
185
|
/**
|
|
186
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
186
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
187
187
|
* @summary Retrieve the status transition rule
|
|
188
188
|
* @param {string} code Unique identifier for the object.
|
|
189
189
|
* @param {string} [authorization] Bearer Token
|
|
@@ -422,7 +422,7 @@ export declare class StatusTransitionRulesApi extends BaseAPI {
|
|
|
422
422
|
*/
|
|
423
423
|
deleteStatusTransitionRule(requestParameters: StatusTransitionRulesApiDeleteStatusTransitionRuleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
424
424
|
/**
|
|
425
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
425
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
426
426
|
* @summary Retrieve the status transition rule
|
|
427
427
|
* @param {StatusTransitionRulesApiGetStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
428
428
|
* @param {*} [options] Override http request option.
|
|
@@ -194,7 +194,7 @@ var StatusTransitionRulesApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
197
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
198
198
|
* @summary Retrieve the status transition rule
|
|
199
199
|
* @param {string} code Unique identifier for the object.
|
|
200
200
|
* @param {string} [authorization] Bearer Token
|
|
@@ -476,7 +476,7 @@ var StatusTransitionRulesApiFp = function (configuration) {
|
|
|
476
476
|
});
|
|
477
477
|
},
|
|
478
478
|
/**
|
|
479
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
479
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
480
480
|
* @summary Retrieve the status transition rule
|
|
481
481
|
* @param {string} code Unique identifier for the object.
|
|
482
482
|
* @param {string} [authorization] Bearer Token
|
|
@@ -601,7 +601,7 @@ var StatusTransitionRulesApiFactory = function (configuration, basePath, axios)
|
|
|
601
601
|
return localVarFp.deleteStatusTransitionRule(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
602
602
|
},
|
|
603
603
|
/**
|
|
604
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
604
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
605
605
|
* @summary Retrieve the status transition rule
|
|
606
606
|
* @param {string} code Unique identifier for the object.
|
|
607
607
|
* @param {string} [authorization] Bearer Token
|
|
@@ -692,7 +692,7 @@ var StatusTransitionRulesApi = /** @class */ (function (_super) {
|
|
|
692
692
|
return (0, exports.StatusTransitionRulesApiFp)(this.configuration).deleteStatusTransitionRule(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
693
693
|
};
|
|
694
694
|
/**
|
|
695
|
-
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code
|
|
695
|
+
* Retrieves the details of the status transition rule that was previously created. Supply the unique status transition rule code that was returned when you created it and Emil Api will return the corresponding status transition rule information.
|
|
696
696
|
* @summary Retrieve the status transition rule
|
|
697
697
|
* @param {StatusTransitionRulesApiGetStatusTransitionRuleRequest} requestParameters Request parameters.
|
|
698
698
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -53,14 +53,16 @@ export declare class BaseAPI {
|
|
|
53
53
|
protected configuration: Configuration;
|
|
54
54
|
private username?;
|
|
55
55
|
private password?;
|
|
56
|
+
private permissions;
|
|
56
57
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
57
58
|
initialize(env?: Environment): Promise<void>;
|
|
58
59
|
private loadCredentials;
|
|
59
60
|
private readConfigFile;
|
|
60
61
|
private readEnvVariables;
|
|
61
62
|
selectEnvironment(env: Environment): void;
|
|
63
|
+
getPermissions(): Array<string>;
|
|
62
64
|
authorize(username: string, password: string): Promise<void>;
|
|
63
|
-
refreshTokenInternal(): Promise<
|
|
65
|
+
refreshTokenInternal(): Promise<LoginClass>;
|
|
64
66
|
private extractRefreshToken;
|
|
65
67
|
getConfiguration(): Configuration;
|
|
66
68
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -150,6 +150,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
150
150
|
if (axios === void 0) { axios = axios_1.default; }
|
|
151
151
|
this.basePath = basePath;
|
|
152
152
|
this.axios = axios;
|
|
153
|
+
this.permissions = [];
|
|
153
154
|
if (configuration) {
|
|
154
155
|
this.configuration = configuration;
|
|
155
156
|
this.basePath = configuration.basePath || this.basePath;
|
|
@@ -242,11 +243,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
242
243
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
243
244
|
this.configuration.basePath = env;
|
|
244
245
|
};
|
|
246
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
247
|
+
return this.permissions;
|
|
248
|
+
};
|
|
245
249
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
246
250
|
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
-
var options, response, accessToken, refreshToken;
|
|
248
|
-
return __generator(this, function (
|
|
249
|
-
switch (
|
|
251
|
+
var options, response, _a, accessToken, permissions, refreshToken;
|
|
252
|
+
return __generator(this, function (_b) {
|
|
253
|
+
switch (_b.label) {
|
|
250
254
|
case 0:
|
|
251
255
|
options = {
|
|
252
256
|
method: 'POST',
|
|
@@ -260,10 +264,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
260
264
|
};
|
|
261
265
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
262
266
|
case 1:
|
|
263
|
-
response =
|
|
264
|
-
|
|
267
|
+
response = _b.sent();
|
|
268
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
265
269
|
this.configuration.username = username;
|
|
266
270
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
271
|
+
this.permissions = permissions;
|
|
267
272
|
refreshToken = this.extractRefreshToken(response);
|
|
268
273
|
this.configuration.refreshToken = refreshToken;
|
|
269
274
|
return [2 /*return*/];
|
|
@@ -273,13 +278,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
273
278
|
};
|
|
274
279
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
275
280
|
return __awaiter(this, void 0, void 0, function () {
|
|
276
|
-
var _a, username, refreshToken, options,
|
|
281
|
+
var _a, username, refreshToken, options, response;
|
|
277
282
|
return __generator(this, function (_b) {
|
|
278
283
|
switch (_b.label) {
|
|
279
284
|
case 0:
|
|
280
285
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
|
|
281
286
|
if (!username || !refreshToken) {
|
|
282
|
-
|
|
287
|
+
throw new Error('Failed to refresh token.');
|
|
283
288
|
}
|
|
284
289
|
options = {
|
|
285
290
|
method: 'POST',
|
|
@@ -293,8 +298,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
293
298
|
};
|
|
294
299
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
295
300
|
case 1:
|
|
296
|
-
|
|
297
|
-
return [2 /*return*/,
|
|
301
|
+
response = _b.sent();
|
|
302
|
+
return [2 /*return*/, response.data];
|
|
298
303
|
}
|
|
299
304
|
});
|
|
300
305
|
});
|
|
@@ -314,26 +319,27 @@ var BaseAPI = /** @class */ (function () {
|
|
|
314
319
|
axios.interceptors.response.use(function (res) {
|
|
315
320
|
return res;
|
|
316
321
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
317
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
318
|
-
return __generator(this, function (
|
|
319
|
-
switch (
|
|
322
|
+
var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
|
|
323
|
+
return __generator(this, function (_c) {
|
|
324
|
+
switch (_c.label) {
|
|
320
325
|
case 0:
|
|
321
326
|
originalConfig = err.config;
|
|
322
327
|
if (!err.response) return [3 /*break*/, 5];
|
|
323
328
|
if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 4];
|
|
324
329
|
originalConfig._retry = true;
|
|
325
|
-
|
|
330
|
+
_c.label = 1;
|
|
326
331
|
case 1:
|
|
327
|
-
|
|
332
|
+
_c.trys.push([1, 3, , 4]);
|
|
328
333
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
329
334
|
case 2:
|
|
330
|
-
|
|
335
|
+
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
331
336
|
accessToken = "Bearer ".concat(tokenString);
|
|
337
|
+
this.permissions = permissions;
|
|
332
338
|
originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
|
|
333
339
|
this.configuration.accessToken = accessToken;
|
|
334
340
|
return [2 /*return*/, axios.request(originalConfig)];
|
|
335
341
|
case 3:
|
|
336
|
-
_error_1 =
|
|
342
|
+
_error_1 = _c.sent();
|
|
337
343
|
if (_error_1.response && _error_1.response.data) {
|
|
338
344
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
339
345
|
}
|
|
@@ -349,19 +355,20 @@ var BaseAPI = /** @class */ (function () {
|
|
|
349
355
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
350
356
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
351
357
|
_retry_count++;
|
|
352
|
-
|
|
358
|
+
_c.label = 6;
|
|
353
359
|
case 6:
|
|
354
|
-
|
|
360
|
+
_c.trys.push([6, 8, , 9]);
|
|
355
361
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
356
362
|
case 7:
|
|
357
|
-
|
|
363
|
+
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
358
364
|
accessToken = "Bearer ".concat(tokenString);
|
|
365
|
+
this.permissions = permissions;
|
|
359
366
|
_retry = true;
|
|
360
367
|
originalConfig.headers['Authorization'] = accessToken;
|
|
361
368
|
this.configuration.accessToken = accessToken;
|
|
362
369
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
363
370
|
case 8:
|
|
364
|
-
_error_2 =
|
|
371
|
+
_error_2 = _c.sent();
|
|
365
372
|
if (_error_2.response && _error_2.response.data) {
|
|
366
373
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
367
374
|
}
|
|
@@ -93,4 +93,16 @@ export interface BookingFunnelClass {
|
|
|
93
93
|
* @memberof BookingFunnelClass
|
|
94
94
|
*/
|
|
95
95
|
'shouldShowOnApplicationsPage'?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Identifier of the user who created the record.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BookingFunnelClass
|
|
100
|
+
*/
|
|
101
|
+
'createdBy': string;
|
|
102
|
+
/**
|
|
103
|
+
* Identifier of the user who last updated the record.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof BookingFunnelClass
|
|
106
|
+
*/
|
|
107
|
+
'updatedBy': string;
|
|
96
108
|
}
|
|
@@ -78,6 +78,18 @@ export interface CommissionAgreementClass {
|
|
|
78
78
|
* @memberof CommissionAgreementClass
|
|
79
79
|
*/
|
|
80
80
|
'updatedAt': string;
|
|
81
|
+
/**
|
|
82
|
+
* Identifier of the user who created the record.
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CommissionAgreementClass
|
|
85
|
+
*/
|
|
86
|
+
'createdBy': string;
|
|
87
|
+
/**
|
|
88
|
+
* Identifier of the user who last updated the record.
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CommissionAgreementClass
|
|
91
|
+
*/
|
|
92
|
+
'updatedBy': string;
|
|
81
93
|
}
|
|
82
94
|
export declare const CommissionAgreementClassTypeEnum: {
|
|
83
95
|
readonly PerPolicy: "PerPolicy";
|
|
@@ -63,4 +63,16 @@ export interface CommissionAgreementItemClass {
|
|
|
63
63
|
* @memberof CommissionAgreementItemClass
|
|
64
64
|
*/
|
|
65
65
|
'updatedAt': string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the user who created the record.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CommissionAgreementItemClass
|
|
70
|
+
*/
|
|
71
|
+
'createdBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who last updated the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CommissionAgreementItemClass
|
|
76
|
+
*/
|
|
77
|
+
'updatedBy': string;
|
|
66
78
|
}
|
|
@@ -69,4 +69,16 @@ export interface CommissionAgreementProductClass {
|
|
|
69
69
|
* @memberof CommissionAgreementProductClass
|
|
70
70
|
*/
|
|
71
71
|
'updatedAt': string;
|
|
72
|
+
/**
|
|
73
|
+
* Identifier of the user who created the record.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CommissionAgreementProductClass
|
|
76
|
+
*/
|
|
77
|
+
'createdBy': string;
|
|
78
|
+
/**
|
|
79
|
+
* Identifier of the user who last updated the record.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CommissionAgreementProductClass
|
|
82
|
+
*/
|
|
83
|
+
'updatedBy': string;
|
|
72
84
|
}
|
|
@@ -76,4 +76,16 @@ export interface CommissionAgreementVersionClass {
|
|
|
76
76
|
* @memberof CommissionAgreementVersionClass
|
|
77
77
|
*/
|
|
78
78
|
'updatedAt': string;
|
|
79
|
+
/**
|
|
80
|
+
* Identifier of the user who created the record.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CommissionAgreementVersionClass
|
|
83
|
+
*/
|
|
84
|
+
'createdBy': string;
|
|
85
|
+
/**
|
|
86
|
+
* Identifier of the user who last updated the record.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CommissionAgreementVersionClass
|
|
89
|
+
*/
|
|
90
|
+
'updatedBy': string;
|
|
79
91
|
}
|
|
@@ -75,4 +75,16 @@ export interface CommissionRecipientClass {
|
|
|
75
75
|
* @memberof CommissionRecipientClass
|
|
76
76
|
*/
|
|
77
77
|
'updatedAt': string;
|
|
78
|
+
/**
|
|
79
|
+
* Identifier of the user who created the record.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CommissionRecipientClass
|
|
82
|
+
*/
|
|
83
|
+
'createdBy': string;
|
|
84
|
+
/**
|
|
85
|
+
* Identifier of the user who last updated the record.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CommissionRecipientClass
|
|
88
|
+
*/
|
|
89
|
+
'updatedBy': string;
|
|
78
90
|
}
|