@emilgroup/insurance-sdk-node 1.104.1-beta.11 → 1.104.1-beta.111
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 -2
- package/README.md +2 -2
- package/api/booking-funnel-versions-api.ts +8 -4
- package/api/booking-funnels-api.ts +24 -12
- package/api/commission-agreement-items-api.ts +20 -10
- package/api/commission-agreement-products-api.ts +20 -10
- package/api/commission-agreement-versions-api.ts +16 -8
- package/api/commission-agreements-api.ts +20 -10
- package/api/commission-recipients-api.ts +20 -10
- package/api/emil-functions-api.ts +44 -22
- package/api/health-check-api.ts +6 -10
- package/api/insured-object-types-api.ts +4 -2
- package/api/insured-objects-api.ts +16 -8
- package/api/lead-statuses-api.ts +20 -10
- package/api/lead-versions-api.ts +8 -4
- package/api/leads-api.ts +44 -24
- package/api/named-ranges-api.ts +24 -12
- package/api/partner-links-api.ts +24 -12
- package/api/partner-roles-api.ts +20 -10
- package/api/policies-api.ts +100 -66
- package/api/premium-calculation-api.ts +171 -0
- package/api/premium-formulas-api.ts +24 -12
- package/api/product-configs-api.ts +24 -12
- package/api/product-factors-api.ts +28 -14
- package/api/product-fields-api.ts +28 -14
- package/api/product-versions-api.ts +8 -4
- package/api/products-api.ts +24 -12
- package/api/status-transition-rules-api.ts +24 -12
- package/api.ts +2 -0
- package/common.ts +3 -2
- package/dist/api/booking-funnel-versions-api.d.ts +2 -2
- package/dist/api/booking-funnel-versions-api.js +11 -7
- package/dist/api/booking-funnels-api.d.ts +6 -6
- package/dist/api/booking-funnels-api.js +39 -23
- package/dist/api/commission-agreement-items-api.d.ts +5 -5
- package/dist/api/commission-agreement-items-api.js +29 -18
- package/dist/api/commission-agreement-products-api.d.ts +5 -5
- package/dist/api/commission-agreement-products-api.js +29 -18
- package/dist/api/commission-agreement-versions-api.d.ts +4 -4
- package/dist/api/commission-agreement-versions-api.js +22 -14
- package/dist/api/commission-agreements-api.d.ts +5 -5
- package/dist/api/commission-agreements-api.js +29 -18
- package/dist/api/commission-recipients-api.d.ts +5 -5
- package/dist/api/commission-recipients-api.js +32 -19
- package/dist/api/emil-functions-api.d.ts +11 -11
- package/dist/api/emil-functions-api.js +74 -43
- package/dist/api/health-check-api.d.ts +7 -8
- package/dist/api/health-check-api.js +4 -4
- package/dist/api/insured-object-types-api.d.ts +1 -1
- package/dist/api/insured-object-types-api.js +4 -3
- package/dist/api/insured-objects-api.d.ts +4 -4
- package/dist/api/insured-objects-api.js +22 -14
- package/dist/api/lead-statuses-api.d.ts +5 -5
- package/dist/api/lead-statuses-api.js +32 -19
- package/dist/api/lead-versions-api.d.ts +2 -2
- package/dist/api/lead-versions-api.js +11 -7
- package/dist/api/leads-api.d.ts +14 -14
- package/dist/api/leads-api.js +67 -41
- package/dist/api/named-ranges-api.d.ts +6 -6
- package/dist/api/named-ranges-api.js +36 -22
- package/dist/api/partner-links-api.d.ts +6 -6
- package/dist/api/partner-links-api.js +36 -22
- package/dist/api/partner-roles-api.d.ts +5 -5
- package/dist/api/partner-roles-api.js +32 -19
- package/dist/api/policies-api.d.ts +49 -49
- package/dist/api/policies-api.js +129 -90
- package/dist/api/premium-calculation-api.d.ts +97 -0
- package/dist/api/premium-calculation-api.js +231 -0
- package/dist/api/premium-formulas-api.d.ts +6 -6
- package/dist/api/premium-formulas-api.js +39 -23
- package/dist/api/product-configs-api.d.ts +6 -6
- package/dist/api/product-configs-api.js +39 -23
- package/dist/api/product-factors-api.d.ts +7 -7
- package/dist/api/product-factors-api.js +37 -24
- package/dist/api/product-fields-api.d.ts +7 -7
- package/dist/api/product-fields-api.js +43 -26
- package/dist/api/product-versions-api.d.ts +2 -2
- package/dist/api/product-versions-api.js +11 -7
- package/dist/api/products-api.d.ts +6 -6
- package/dist/api/products-api.js +33 -21
- package/dist/api/status-transition-rules-api.d.ts +6 -6
- package/dist/api/status-transition-rules-api.js +36 -22
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/calculate-premium-response-class.d.ts +39 -0
- package/dist/models/calculated-policy-objects-class.d.ts +25 -0
- package/dist/models/claim-config-class.d.ts +7 -0
- package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
- package/dist/models/create-product-request-dto.d.ts +12 -0
- package/dist/models/create-product-version-request-dto.d.ts +6 -0
- package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +6 -0
- package/dist/models/regulation-subtype-class.d.ts +30 -0
- package/dist/models/regulation-subtype-class.js +15 -0
- package/dist/models/regulation-subtypes-class.d.ts +37 -0
- package/dist/models/regulation-subtypes-class.js +15 -0
- package/models/calculate-premium-response-class.ts +45 -0
- package/models/calculated-policy-objects-class.ts +31 -0
- package/models/claim-config-class.ts +7 -0
- package/models/create-draft-policy-request-dto.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +6 -0
- package/models/create-product-request-dto.ts +12 -0
- package/models/create-product-version-request-dto.ts +6 -0
- package/models/get-draft-policy-request-dto.ts +1 -1
- package/models/index.ts +4 -2
- package/models/partner-class.ts +6 -0
- package/models/patch-draft-policy-request-dto.ts +2 -2
- package/models/policy-object-dto.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/premium-formula-class.ts +6 -0
- package/models/regulation-subtype-class.ts +36 -0
- package/models/regulation-subtypes-class.ts +43 -0
- package/package.json +2 -2
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response503.d.ts +0 -54
- package/models/inline-response200.ts +0 -48
- package/models/inline-response503.ts +0 -48
- /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
- /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
|
@@ -107,7 +107,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
deletePartnerLink: function (id, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -125,13 +125,16 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
125
125
|
localVarQueryParameter = {};
|
|
126
126
|
// authentication bearer required
|
|
127
127
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
130
|
+
];
|
|
129
131
|
case 1:
|
|
130
132
|
// authentication bearer required
|
|
131
133
|
// http bearer authentication required
|
|
132
134
|
_a.sent();
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
136
|
+
if (authorizationValue) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
138
|
}
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
140
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -156,7 +159,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
getPartnerLink: function (id, authorization, expand, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -182,8 +185,9 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
182
185
|
if (expand !== undefined) {
|
|
183
186
|
localVarQueryParameter['expand'] = expand;
|
|
184
187
|
}
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
189
|
+
if (authorizationValue) {
|
|
190
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
187
191
|
}
|
|
188
192
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
189
193
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -207,7 +211,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
207
211
|
linkPartner: function (linkPartnerRequestDto, authorization, options) {
|
|
208
212
|
if (options === void 0) { options = {}; }
|
|
209
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
211
215
|
return __generator(this, function (_a) {
|
|
212
216
|
switch (_a.label) {
|
|
213
217
|
case 0:
|
|
@@ -224,13 +228,16 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
224
228
|
localVarQueryParameter = {};
|
|
225
229
|
// authentication bearer required
|
|
226
230
|
// http bearer authentication required
|
|
227
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
231
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
233
|
+
];
|
|
228
234
|
case 1:
|
|
229
235
|
// authentication bearer required
|
|
230
236
|
// http bearer authentication required
|
|
231
237
|
_a.sent();
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
239
|
+
if (authorizationValue) {
|
|
240
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
234
241
|
}
|
|
235
242
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
236
243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -262,7 +269,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
262
269
|
listPartnerLinks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
263
270
|
if (options === void 0) { options = {}; }
|
|
264
271
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
272
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
266
273
|
return __generator(this, function (_a) {
|
|
267
274
|
switch (_a.label) {
|
|
268
275
|
case 0:
|
|
@@ -303,8 +310,9 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
303
310
|
if (filters !== undefined) {
|
|
304
311
|
localVarQueryParameter['filters'] = filters;
|
|
305
312
|
}
|
|
306
|
-
|
|
307
|
-
|
|
313
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
314
|
+
if (authorizationValue) {
|
|
315
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
316
|
}
|
|
309
317
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
318
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -328,7 +336,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
328
336
|
unlinkPartner: function (id, authorization, options) {
|
|
329
337
|
if (options === void 0) { options = {}; }
|
|
330
338
|
return __awaiter(_this, void 0, void 0, function () {
|
|
331
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
339
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
332
340
|
return __generator(this, function (_a) {
|
|
333
341
|
switch (_a.label) {
|
|
334
342
|
case 0:
|
|
@@ -346,13 +354,16 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
346
354
|
localVarQueryParameter = {};
|
|
347
355
|
// authentication bearer required
|
|
348
356
|
// http bearer authentication required
|
|
349
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
357
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
358
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
359
|
+
];
|
|
350
360
|
case 1:
|
|
351
361
|
// authentication bearer required
|
|
352
362
|
// http bearer authentication required
|
|
353
363
|
_a.sent();
|
|
354
|
-
|
|
355
|
-
|
|
364
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
365
|
+
if (authorizationValue) {
|
|
366
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
356
367
|
}
|
|
357
368
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
369
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -377,7 +388,7 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
377
388
|
updatePartnerLink: function (id, updatePartnerLinkRequestDto, authorization, options) {
|
|
378
389
|
if (options === void 0) { options = {}; }
|
|
379
390
|
return __awaiter(_this, void 0, void 0, function () {
|
|
380
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
391
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
381
392
|
return __generator(this, function (_a) {
|
|
382
393
|
switch (_a.label) {
|
|
383
394
|
case 0:
|
|
@@ -397,13 +408,16 @@ var PartnerLinksApiAxiosParamCreator = function (configuration) {
|
|
|
397
408
|
localVarQueryParameter = {};
|
|
398
409
|
// authentication bearer required
|
|
399
410
|
// http bearer authentication required
|
|
400
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
411
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
412
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
413
|
+
];
|
|
401
414
|
case 1:
|
|
402
415
|
// authentication bearer required
|
|
403
416
|
// http bearer authentication required
|
|
404
417
|
_a.sent();
|
|
405
|
-
|
|
406
|
-
|
|
418
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
419
|
+
if (authorizationValue) {
|
|
420
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
407
421
|
}
|
|
408
422
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
409
423
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -345,7 +345,7 @@ export declare class PartnerRolesApi extends BaseAPI {
|
|
|
345
345
|
* @throws {RequiredError}
|
|
346
346
|
* @memberof PartnerRolesApi
|
|
347
347
|
*/
|
|
348
|
-
createPartnerRole(requestParameters: PartnerRolesApiCreatePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerRoleResponseClass, any, {}>>;
|
|
348
|
+
createPartnerRole(requestParameters: PartnerRolesApiCreatePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerRoleResponseClass, any, {}, any>>;
|
|
349
349
|
/**
|
|
350
350
|
* Permanently deletes the partner role. Supply the unique code that was returned when you created the partner role and this will delete it. **Required Permissions** \"partner-management.partners.delete\"
|
|
351
351
|
* @summary Delete the partner role
|
|
@@ -354,7 +354,7 @@ export declare class PartnerRolesApi extends BaseAPI {
|
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
* @memberof PartnerRolesApi
|
|
356
356
|
*/
|
|
357
|
-
deletePartnerRole(requestParameters: PartnerRolesApiDeletePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
357
|
+
deletePartnerRole(requestParameters: PartnerRolesApiDeletePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
358
358
|
/**
|
|
359
359
|
* Retrieves the details of the partner role that was previously created. Supply the unique partner role code that was returned when you created it and Emil Api will return the corresponding partner role information. **Required Permissions** \"partner-management.partners.view\"
|
|
360
360
|
* @summary Retrieve the partner role
|
|
@@ -363,7 +363,7 @@ export declare class PartnerRolesApi extends BaseAPI {
|
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
* @memberof PartnerRolesApi
|
|
365
365
|
*/
|
|
366
|
-
getPartnerRole(requestParameters: PartnerRolesApiGetPartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRoleResponseClass, any, {}>>;
|
|
366
|
+
getPartnerRole(requestParameters: PartnerRolesApiGetPartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRoleResponseClass, any, {}, any>>;
|
|
367
367
|
/**
|
|
368
368
|
* Returns a list of partner roles you have previously created. The partner roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"partner-management.partners.view\"
|
|
369
369
|
* @summary List partner roles
|
|
@@ -372,7 +372,7 @@ export declare class PartnerRolesApi extends BaseAPI {
|
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
* @memberof PartnerRolesApi
|
|
374
374
|
*/
|
|
375
|
-
listPartnerRole(requestParameters?: PartnerRolesApiListPartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerRolesResponseClass, any, {}>>;
|
|
375
|
+
listPartnerRole(requestParameters?: PartnerRolesApiListPartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerRolesResponseClass, any, {}, any>>;
|
|
376
376
|
/**
|
|
377
377
|
* Updates the specified partner role by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"partner-management.partners.update\"
|
|
378
378
|
* @summary Update the partner role
|
|
@@ -381,5 +381,5 @@ export declare class PartnerRolesApi extends BaseAPI {
|
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
* @memberof PartnerRolesApi
|
|
383
383
|
*/
|
|
384
|
-
updatePartnerRole(requestParameters: PartnerRolesApiUpdatePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerRoleResponseClass, any, {}>>;
|
|
384
|
+
updatePartnerRole(requestParameters: PartnerRolesApiUpdatePartnerRoleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerRoleResponseClass, any, {}, any>>;
|
|
385
385
|
}
|
|
@@ -107,7 +107,7 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createPartnerRole: function (createPartnerRoleRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
deletePartnerRole: function (code, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarQueryParameter = {};
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -204,7 +210,7 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
204
210
|
getPartnerRole: function (code, authorization, options) {
|
|
205
211
|
if (options === void 0) { options = {}; }
|
|
206
212
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
213
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
208
214
|
return __generator(this, function (_a) {
|
|
209
215
|
switch (_a.label) {
|
|
210
216
|
case 0:
|
|
@@ -222,13 +228,16 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
222
228
|
localVarQueryParameter = {};
|
|
223
229
|
// authentication bearer required
|
|
224
230
|
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
231
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
233
|
+
];
|
|
226
234
|
case 1:
|
|
227
235
|
// authentication bearer required
|
|
228
236
|
// http bearer authentication required
|
|
229
237
|
_a.sent();
|
|
230
|
-
|
|
231
|
-
|
|
238
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
239
|
+
if (authorizationValue) {
|
|
240
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
241
|
}
|
|
233
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
243
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -258,7 +267,7 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
258
267
|
listPartnerRole: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
268
|
if (options === void 0) { options = {}; }
|
|
260
269
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
262
271
|
return __generator(this, function (_a) {
|
|
263
272
|
switch (_a.label) {
|
|
264
273
|
case 0:
|
|
@@ -299,8 +308,9 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
299
308
|
if (filters !== undefined) {
|
|
300
309
|
localVarQueryParameter['filters'] = filters;
|
|
301
310
|
}
|
|
302
|
-
|
|
303
|
-
|
|
311
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
312
|
+
if (authorizationValue) {
|
|
313
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
314
|
}
|
|
305
315
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
316
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,7 +335,7 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
325
335
|
updatePartnerRole: function (code, updatePartnerRoleRequestDto, authorization, options) {
|
|
326
336
|
if (options === void 0) { options = {}; }
|
|
327
337
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
338
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
329
339
|
return __generator(this, function (_a) {
|
|
330
340
|
switch (_a.label) {
|
|
331
341
|
case 0:
|
|
@@ -345,13 +355,16 @@ var PartnerRolesApiAxiosParamCreator = function (configuration) {
|
|
|
345
355
|
localVarQueryParameter = {};
|
|
346
356
|
// authentication bearer required
|
|
347
357
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
358
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
359
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
360
|
+
];
|
|
349
361
|
case 1:
|
|
350
362
|
// authentication bearer required
|
|
351
363
|
// http bearer authentication required
|
|
352
364
|
_a.sent();
|
|
353
|
-
|
|
354
|
-
|
|
365
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
366
|
+
if (authorizationValue) {
|
|
367
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
368
|
}
|
|
356
369
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
370
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|