@emilgroup/insurance-sdk-node 1.61.0 → 1.62.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.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/policies-api.ts +20 -6
  4. package/api/products-api.ts +46 -56
  5. package/dist/api/policies-api.d.ts +12 -3
  6. package/dist/api/policies-api.js +12 -6
  7. package/dist/api/products-api.d.ts +39 -39
  8. package/dist/api/products-api.js +28 -37
  9. package/dist/models/booking-funnel-class.d.ts +6 -0
  10. package/dist/models/create-booking-funnel-request-dto.d.ts +7 -1
  11. package/dist/models/create-lead-status-request-dto.d.ts +6 -0
  12. package/dist/models/create-partner-role-request-dto.d.ts +6 -0
  13. package/dist/models/get-policy-data-by-date-request-dto.d.ts +6 -0
  14. package/dist/models/get-product-request-dto.d.ts +3 -3
  15. package/dist/models/index.d.ts +1 -0
  16. package/dist/models/index.js +1 -0
  17. package/dist/models/lead-class.d.ts +3 -3
  18. package/dist/models/lead-status-class.d.ts +6 -0
  19. package/dist/models/link-lead-partner-request-dto.d.ts +14 -2
  20. package/dist/models/link-partner-request-dto.d.ts +16 -4
  21. package/dist/models/omit-type-class.d.ts +84 -0
  22. package/dist/models/omit-type-class.js +15 -0
  23. package/dist/models/partner-role-class.d.ts +6 -0
  24. package/dist/models/update-lead-status-request-dto.d.ts +6 -0
  25. package/dist/models/update-partner-role-request-dto.d.ts +6 -0
  26. package/models/booking-funnel-class.ts +6 -0
  27. package/models/create-booking-funnel-request-dto.ts +7 -1
  28. package/models/create-lead-status-request-dto.ts +6 -0
  29. package/models/create-partner-role-request-dto.ts +6 -0
  30. package/models/get-policy-data-by-date-request-dto.ts +6 -0
  31. package/models/get-product-request-dto.ts +3 -3
  32. package/models/index.ts +1 -0
  33. package/models/lead-class.ts +3 -3
  34. package/models/lead-status-class.ts +6 -0
  35. package/models/link-lead-partner-request-dto.ts +14 -2
  36. package/models/link-partner-request-dto.ts +16 -4
  37. package/models/omit-type-class.ts +90 -0
  38. package/models/partner-role-class.ts +6 -0
  39. package/models/update-lead-status-request-dto.ts +6 -0
  40. package/models/update-partner-role-request-dto.ts +6 -0
  41. package/package.json +1 -1
@@ -46,26 +46,26 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
46
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
- * @param {number} id Unique identifier referencing the product.
50
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
51
49
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {number} [id] Unique identifier referencing the product.
51
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
52
52
  * @param {string} [expand] Fields to expand response by
53
53
  * @param {*} [options] Override http request option.
54
54
  * @throws {RequiredError}
55
55
  */
56
- getProductByCode: (code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
+ getProductByCode: (code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
57
  /**
58
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
- * @param {number} id Unique identifier referencing the product.
61
- * @param {string} code Unique identifier of the product that this object belongs to.
62
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
63
60
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
61
+ * @param {number} [id] Unique identifier referencing the product.
62
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
63
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
64
64
  * @param {string} [expand] Fields to expand response by
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- getProductByIdentifier: (id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ getProductByIdentifier: (authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
70
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
71
71
  * @summary List products
@@ -119,26 +119,26 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
119
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
- * @param {number} id Unique identifier referencing the product.
123
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
124
122
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
123
+ * @param {number} [id] Unique identifier referencing the product.
124
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
125
125
  * @param {string} [expand] Fields to expand response by
126
126
  * @param {*} [options] Override http request option.
127
127
  * @throws {RequiredError}
128
128
  */
129
- getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
129
+ getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
130
130
  /**
131
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
- * @param {number} id Unique identifier referencing the product.
134
- * @param {string} code Unique identifier of the product that this object belongs to.
135
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
136
133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
+ * @param {number} [id] Unique identifier referencing the product.
135
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
136
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
137
137
  * @param {string} [expand] Fields to expand response by
138
138
  * @param {*} [options] Override http request option.
139
139
  * @throws {RequiredError}
140
140
  */
141
- getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
141
+ getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
142
142
  /**
143
143
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
144
144
  * @summary List products
@@ -192,26 +192,26 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
192
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
- * @param {number} id Unique identifier referencing the product.
196
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
197
195
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
196
+ * @param {number} [id] Unique identifier referencing the product.
197
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
198
198
  * @param {string} [expand] Fields to expand response by
199
199
  * @param {*} [options] Override http request option.
200
200
  * @throws {RequiredError}
201
201
  */
202
- getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
202
+ getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
203
203
  /**
204
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
- * @param {number} id Unique identifier referencing the product.
207
- * @param {string} code Unique identifier of the product that this object belongs to.
208
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
209
206
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
+ * @param {number} [id] Unique identifier referencing the product.
208
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
209
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
210
210
  * @param {string} [expand] Fields to expand response by
211
211
  * @param {*} [options] Override http request option.
212
212
  * @throws {RequiredError}
213
213
  */
214
- getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
214
+ getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
215
215
  /**
216
216
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
217
217
  * @summary List products
@@ -289,23 +289,23 @@ export interface ProductsApiGetProductByCodeRequest {
289
289
  */
290
290
  readonly code: string;
291
291
  /**
292
- * Unique identifier referencing the product.
293
- * @type {number}
292
+ * Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @type {string}
294
294
  * @memberof ProductsApiGetProductByCode
295
295
  */
296
- readonly id: number;
296
+ readonly authorization?: string;
297
297
  /**
298
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
299
- * @type {string}
298
+ * Unique identifier referencing the product.
299
+ * @type {number}
300
300
  * @memberof ProductsApiGetProductByCode
301
301
  */
302
- readonly slug: string;
302
+ readonly id?: number;
303
303
  /**
304
- * Bearer Token: provided by the login endpoint under the name accessToken.
304
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
305
305
  * @type {string}
306
306
  * @memberof ProductsApiGetProductByCode
307
307
  */
308
- readonly authorization?: string;
308
+ readonly slug?: string;
309
309
  /**
310
310
  * Fields to expand response by
311
311
  * @type {string}
@@ -319,30 +319,30 @@ export interface ProductsApiGetProductByCodeRequest {
319
319
  * @interface ProductsApiGetProductByIdentifierRequest
320
320
  */
321
321
  export interface ProductsApiGetProductByIdentifierRequest {
322
+ /**
323
+ * Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @type {string}
325
+ * @memberof ProductsApiGetProductByIdentifier
326
+ */
327
+ readonly authorization?: string;
322
328
  /**
323
329
  * Unique identifier referencing the product.
324
330
  * @type {number}
325
331
  * @memberof ProductsApiGetProductByIdentifier
326
332
  */
327
- readonly id: number;
333
+ readonly id?: number;
328
334
  /**
329
335
  * Unique identifier of the product that this object belongs to.
330
336
  * @type {string}
331
337
  * @memberof ProductsApiGetProductByIdentifier
332
338
  */
333
- readonly code: string;
339
+ readonly code?: string;
334
340
  /**
335
341
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
336
342
  * @type {string}
337
343
  * @memberof ProductsApiGetProductByIdentifier
338
344
  */
339
- readonly slug: string;
340
- /**
341
- * Bearer Token: provided by the login endpoint under the name accessToken.
342
- * @type {string}
343
- * @memberof ProductsApiGetProductByIdentifier
344
- */
345
- readonly authorization?: string;
345
+ readonly slug?: string;
346
346
  /**
347
347
  * Fields to expand response by
348
348
  * @type {string}
@@ -472,7 +472,7 @@ export declare class ProductsApi extends BaseAPI {
472
472
  * @throws {RequiredError}
473
473
  * @memberof ProductsApi
474
474
  */
475
- getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
475
+ getProductByIdentifier(requestParameters?: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
476
476
  /**
477
477
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
478
478
  * @summary List products
@@ -197,14 +197,14 @@ var ProductsApiAxiosParamCreator = function (configuration) {
197
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
- * @param {number} id Unique identifier referencing the product.
201
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
202
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {number} [id] Unique identifier referencing the product.
202
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
203
203
  * @param {string} [expand] Fields to expand response by
204
204
  * @param {*} [options] Override http request option.
205
205
  * @throws {RequiredError}
206
206
  */
207
- getProductByCode: function (code, id, slug, authorization, expand, options) {
207
+ getProductByCode: function (code, authorization, id, slug, expand, options) {
208
208
  if (options === void 0) { options = {}; }
209
209
  return __awaiter(_this, void 0, void 0, function () {
210
210
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -213,10 +213,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
213
213
  case 0:
214
214
  // verify required parameter 'code' is not null or undefined
215
215
  (0, common_1.assertParamExists)('getProductByCode', 'code', code);
216
- // verify required parameter 'id' is not null or undefined
217
- (0, common_1.assertParamExists)('getProductByCode', 'id', id);
218
- // verify required parameter 'slug' is not null or undefined
219
- (0, common_1.assertParamExists)('getProductByCode', 'slug', slug);
220
216
  localVarPath = "/insuranceservice/v1/products/code/{code}"
221
217
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -260,27 +256,21 @@ var ProductsApiAxiosParamCreator = function (configuration) {
260
256
  /**
261
257
  * 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
258
  * @summary Retrieve the product
263
- * @param {number} id Unique identifier referencing the product.
264
- * @param {string} code Unique identifier of the product that this object belongs to.
265
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
266
259
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
260
+ * @param {number} [id] Unique identifier referencing the product.
261
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
262
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
267
263
  * @param {string} [expand] Fields to expand response by
268
264
  * @param {*} [options] Override http request option.
269
265
  * @throws {RequiredError}
270
266
  */
271
- getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
267
+ getProductByIdentifier: function (authorization, id, code, slug, expand, options) {
272
268
  if (options === void 0) { options = {}; }
273
269
  return __awaiter(_this, void 0, void 0, function () {
274
270
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
275
271
  return __generator(this, function (_a) {
276
272
  switch (_a.label) {
277
273
  case 0:
278
- // verify required parameter 'id' is not null or undefined
279
- (0, common_1.assertParamExists)('getProductByIdentifier', 'id', id);
280
- // verify required parameter 'code' is not null or undefined
281
- (0, common_1.assertParamExists)('getProductByIdentifier', 'code', code);
282
- // verify required parameter 'slug' is not null or undefined
283
- (0, common_1.assertParamExists)('getProductByIdentifier', 'slug', slug);
284
274
  localVarPath = "/insuranceservice/v1/products/get-by-identifier";
285
275
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
286
276
  if (configuration) {
@@ -504,19 +494,19 @@ var ProductsApiFp = function (configuration) {
504
494
  * 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
495
  * @summary Retrieve the product
506
496
  * @param {string} code Unique identifier for the object.
507
- * @param {number} id Unique identifier referencing the product.
508
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
509
497
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @param {number} [id] Unique identifier referencing the product.
499
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
510
500
  * @param {string} [expand] Fields to expand response by
511
501
  * @param {*} [options] Override http request option.
512
502
  * @throws {RequiredError}
513
503
  */
514
- getProductByCode: function (code, id, slug, authorization, expand, options) {
504
+ getProductByCode: function (code, authorization, id, slug, expand, options) {
515
505
  return __awaiter(this, void 0, void 0, function () {
516
506
  var localVarAxiosArgs;
517
507
  return __generator(this, function (_a) {
518
508
  switch (_a.label) {
519
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options)];
509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, authorization, id, slug, expand, options)];
520
510
  case 1:
521
511
  localVarAxiosArgs = _a.sent();
522
512
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -527,20 +517,20 @@ var ProductsApiFp = function (configuration) {
527
517
  /**
528
518
  * 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
519
  * @summary Retrieve the product
530
- * @param {number} id Unique identifier referencing the product.
531
- * @param {string} code Unique identifier of the product that this object belongs to.
532
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
533
520
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @param {number} [id] Unique identifier referencing the product.
522
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
523
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
534
524
  * @param {string} [expand] Fields to expand response by
535
525
  * @param {*} [options] Override http request option.
536
526
  * @throws {RequiredError}
537
527
  */
538
- getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
528
+ getProductByIdentifier: function (authorization, id, code, slug, expand, options) {
539
529
  return __awaiter(this, void 0, void 0, function () {
540
530
  var localVarAxiosArgs;
541
531
  return __generator(this, function (_a) {
542
532
  switch (_a.label) {
543
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options)];
533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(authorization, id, code, slug, expand, options)];
544
534
  case 1:
545
535
  localVarAxiosArgs = _a.sent();
546
536
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -633,29 +623,29 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
633
623
  * 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
624
  * @summary Retrieve the product
635
625
  * @param {string} code Unique identifier for the object.
636
- * @param {number} id Unique identifier referencing the product.
637
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
638
626
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
627
+ * @param {number} [id] Unique identifier referencing the product.
628
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
639
629
  * @param {string} [expand] Fields to expand response by
640
630
  * @param {*} [options] Override http request option.
641
631
  * @throws {RequiredError}
642
632
  */
643
- getProductByCode: function (code, id, slug, authorization, expand, options) {
644
- return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then(function (request) { return request(axios, basePath); });
633
+ getProductByCode: function (code, authorization, id, slug, expand, options) {
634
+ return localVarFp.getProductByCode(code, authorization, id, slug, expand, options).then(function (request) { return request(axios, basePath); });
645
635
  },
646
636
  /**
647
637
  * 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
638
  * @summary Retrieve the product
649
- * @param {number} id Unique identifier referencing the product.
650
- * @param {string} code Unique identifier of the product that this object belongs to.
651
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
652
639
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
640
+ * @param {number} [id] Unique identifier referencing the product.
641
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
642
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
653
643
  * @param {string} [expand] Fields to expand response by
654
644
  * @param {*} [options] Override http request option.
655
645
  * @throws {RequiredError}
656
646
  */
657
- getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
658
- return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then(function (request) { return request(axios, basePath); });
647
+ getProductByIdentifier: function (authorization, id, code, slug, expand, options) {
648
+ return localVarFp.getProductByIdentifier(authorization, id, code, slug, expand, options).then(function (request) { return request(axios, basePath); });
659
649
  },
660
650
  /**
661
651
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -734,7 +724,7 @@ var ProductsApi = /** @class */ (function (_super) {
734
724
  */
735
725
  ProductsApi.prototype.getProductByCode = function (requestParameters, options) {
736
726
  var _this = this;
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); });
727
+ return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.authorization, requestParameters.id, requestParameters.slug, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
738
728
  };
739
729
  /**
740
730
  * 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.
@@ -746,7 +736,8 @@ var ProductsApi = /** @class */ (function (_super) {
746
736
  */
747
737
  ProductsApi.prototype.getProductByIdentifier = function (requestParameters, options) {
748
738
  var _this = this;
749
- return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
739
+ if (requestParameters === void 0) { requestParameters = {}; }
740
+ return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.authorization, requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
750
741
  };
751
742
  /**
752
743
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -69,6 +69,12 @@ export interface BookingFunnelClass {
69
69
  * @memberof BookingFunnelClass
70
70
  */
71
71
  'productSlug': string;
72
+ /**
73
+ * Product version ID.
74
+ * @type {number}
75
+ * @memberof BookingFunnelClass
76
+ */
77
+ 'productVersionId': number;
72
78
  /**
73
79
  * Time at which the object was created.
74
80
  * @type {string}
@@ -52,7 +52,7 @@ export interface CreateBookingFunnelRequestDto {
52
52
  */
53
53
  'css'?: string;
54
54
  /**
55
- * URL to fech the logo for the booking funnel.
55
+ * URL to fetch the logo for the booking funnel.
56
56
  * @type {string}
57
57
  * @memberof CreateBookingFunnelRequestDto
58
58
  */
@@ -63,6 +63,12 @@ export interface CreateBookingFunnelRequestDto {
63
63
  * @memberof CreateBookingFunnelRequestDto
64
64
  */
65
65
  'productSlug': string;
66
+ /**
67
+ * Product version id. Will default to the latest version if not specified.
68
+ * @type {number}
69
+ * @memberof CreateBookingFunnelRequestDto
70
+ */
71
+ 'productVersionId'?: number;
66
72
  /**
67
73
  *
68
74
  * @type {boolean}
@@ -33,4 +33,10 @@ export interface CreateLeadStatusRequestDto {
33
33
  * @memberof CreateLeadStatusRequestDto
34
34
  */
35
35
  'isDefault'?: boolean;
36
+ /**
37
+ * Indicates if this status is locked for the lead, preventing updates while true.
38
+ * @type {boolean}
39
+ * @memberof CreateLeadStatusRequestDto
40
+ */
41
+ 'isLocked'?: boolean;
36
42
  }
@@ -21,6 +21,12 @@ export interface CreatePartnerRoleRequestDto {
21
21
  * @memberof CreatePartnerRoleRequestDto
22
22
  */
23
23
  'name': string;
24
+ /**
25
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
+ * @type {string}
27
+ * @memberof CreatePartnerRoleRequestDto
28
+ */
29
+ 'slug': string;
24
30
  /**
25
31
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
32
  * @type {string}
@@ -27,4 +27,10 @@ export interface GetPolicyDataByDateRequestDto {
27
27
  * @memberof GetPolicyDataByDateRequestDto
28
28
  */
29
29
  'timesliceDate'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetPolicyDataByDateRequestDto
34
+ */
35
+ 'expand'?: string;
30
36
  }
@@ -20,19 +20,19 @@ export interface GetProductRequestDto {
20
20
  * @type {number}
21
21
  * @memberof GetProductRequestDto
22
22
  */
23
- 'id': number;
23
+ 'id'?: number;
24
24
  /**
25
25
  * Unique identifier of the product that this object belongs to.
26
26
  * @type {string}
27
27
  * @memberof GetProductRequestDto
28
28
  */
29
- 'code': string;
29
+ 'code'?: string;
30
30
  /**
31
31
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
32
  * @type {string}
33
33
  * @memberof GetProductRequestDto
34
34
  */
35
- 'slug': string;
35
+ 'slug'?: string;
36
36
  /**
37
37
  * Fields to expand response by
38
38
  * @type {string}
@@ -145,6 +145,7 @@ export * from './list-products-response-class';
145
145
  export * from './list-request-dto';
146
146
  export * from './list-status-transition-rules-response-class';
147
147
  export * from './named-range-class';
148
+ export * from './omit-type-class';
148
149
  export * from './partner-class';
149
150
  export * from './partner-link-class';
150
151
  export * from './partner-role-class';
@@ -161,6 +161,7 @@ __exportStar(require("./list-products-response-class"), exports);
161
161
  __exportStar(require("./list-request-dto"), exports);
162
162
  __exportStar(require("./list-status-transition-rules-response-class"), exports);
163
163
  __exportStar(require("./named-range-class"), exports);
164
+ __exportStar(require("./omit-type-class"), exports);
164
165
  __exportStar(require("./partner-class"), exports);
165
166
  __exportStar(require("./partner-link-class"), exports);
166
167
  __exportStar(require("./partner-role-class"), exports);
@@ -13,7 +13,7 @@ import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreateLeadPolicyRequestDto } from './create-lead-policy-request-dto';
14
14
  import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
15
15
  import { LeadBankAccountClass } from './lead-bank-account-class';
16
- import { PartnerLinkClass } from './partner-link-class';
16
+ import { OmitTypeClass } from './omit-type-class';
17
17
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
18
18
  import { SharedInvoiceClass } from './shared-invoice-class';
19
19
  import { UploadedDocumentDto } from './uploaded-document-dto';
@@ -139,10 +139,10 @@ export interface LeadClass {
139
139
  'version'?: number;
140
140
  /**
141
141
  * Partner links.
142
- * @type {Array<PartnerLinkClass>}
142
+ * @type {Array<OmitTypeClass>}
143
143
  * @memberof LeadClass
144
144
  */
145
- 'partnerLinks': Array<PartnerLinkClass>;
145
+ 'partnerLinks': Array<OmitTypeClass>;
146
146
  /**
147
147
  * Identifier of the user who created the record.
148
148
  * @type {string}
@@ -45,6 +45,12 @@ export interface LeadStatusClass {
45
45
  * @memberof LeadStatusClass
46
46
  */
47
47
  'isDefault': boolean;
48
+ /**
49
+ * Indicates if this status is locked for the lead, preventing updates while true.
50
+ * @type {boolean}
51
+ * @memberof LeadStatusClass
52
+ */
53
+ 'isLocked': boolean;
48
54
  /**
49
55
  * Identifier of the user who created the record.
50
56
  * @type {string}
@@ -20,13 +20,25 @@ export interface LinkLeadPartnerRequestDto {
20
20
  * @type {string}
21
21
  * @memberof LinkLeadPartnerRequestDto
22
22
  */
23
- 'partnerCode': string;
23
+ 'partnerCode'?: string;
24
+ /**
25
+ * The number of the partner with which the lead will be linked. Either this field or \'partnerCode\' must be passed (this is preferred).
26
+ * @type {string}
27
+ * @memberof LinkLeadPartnerRequestDto
28
+ */
29
+ 'partnerNumber'?: string;
24
30
  /**
25
31
  * The code of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
26
32
  * @type {string}
27
33
  * @memberof LinkLeadPartnerRequestDto
28
34
  */
29
- 'partnerRoleCode': string;
35
+ 'partnerRoleCode'?: string;
36
+ /**
37
+ * The slug of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleCode\' must be passed (this is preferred).
38
+ * @type {string}
39
+ * @memberof LinkLeadPartnerRequestDto
40
+ */
41
+ 'partnerRoleSlug'?: string;
30
42
  /**
31
43
  * The date of the start of linking with a partner.
32
44
  * @type {string}
@@ -16,17 +16,29 @@
16
16
  */
17
17
  export interface LinkPartnerRequestDto {
18
18
  /**
19
- * Unique identifier of the partner that this object belongs to.
19
+ * The code of the partner with which the target entity will be linked. Either this field or \'partnerNumber\' must be passed (\'partnerNumber\' is preferred).
20
20
  * @type {string}
21
21
  * @memberof LinkPartnerRequestDto
22
22
  */
23
- 'partnerCode': string;
23
+ 'partnerCode'?: string;
24
24
  /**
25
- * Unique identifier of the partner role that this object belongs to.
25
+ * The number of the partner with which the target entity will be linked. Either this field or \'partnerCode\' must be passed (this is preferred).
26
26
  * @type {string}
27
27
  * @memberof LinkPartnerRequestDto
28
28
  */
29
- 'partnerRoleCode': string;
29
+ 'partnerNumber'?: string;
30
+ /**
31
+ * The code of role that the partner will have in the established link between the target entity and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
32
+ * @type {string}
33
+ * @memberof LinkPartnerRequestDto
34
+ */
35
+ 'partnerRoleCode'?: string;
36
+ /**
37
+ * The slug of role that the partner will have in the established link between the target entity and the partner. Either this field or \'partnerRoleCode\' must be passed (this is preferred).
38
+ * @type {string}
39
+ * @memberof LinkPartnerRequestDto
40
+ */
41
+ 'partnerRoleSlug'?: string;
30
42
  /**
31
43
  * Unique identifier of the policy that this object belongs to. Either this or leadCode should be provided, but not both.
32
44
  * @type {string}