@emilgroup/public-api-sdk-node 1.40.1-beta.3 → 1.40.1-beta.5

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.
@@ -40,10 +40,11 @@ export declare const AddressCompletionsValidationsApiAxiosParamCreator: (configu
40
40
  * @param {string} houseNumber The house number of the address
41
41
  * @param {string} [authorization] Bearer Token
42
42
  * @param {string} [completeAddress] The complete address to validate
43
+ * @param {any} [limit]
43
44
  * @param {*} [options] Override http request option.
44
45
  * @throws {RequiredError}
45
46
  */
46
- validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
48
  };
48
49
  /**
49
50
  * AddressCompletionsValidationsApi - functional programming interface
@@ -71,10 +72,11 @@ export declare const AddressCompletionsValidationsApiFp: (configuration?: Config
71
72
  * @param {string} houseNumber The house number of the address
72
73
  * @param {string} [authorization] Bearer Token
73
74
  * @param {string} [completeAddress] The complete address to validate
75
+ * @param {any} [limit]
74
76
  * @param {*} [options] Override http request option.
75
77
  * @throws {RequiredError}
76
78
  */
77
- validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>>;
79
+ validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>>;
78
80
  };
79
81
  /**
80
82
  * AddressCompletionsValidationsApi - factory interface
@@ -102,10 +104,11 @@ export declare const AddressCompletionsValidationsApiFactory: (configuration?: C
102
104
  * @param {string} houseNumber The house number of the address
103
105
  * @param {string} [authorization] Bearer Token
104
106
  * @param {string} [completeAddress] The complete address to validate
107
+ * @param {any} [limit]
105
108
  * @param {*} [options] Override http request option.
106
109
  * @throws {RequiredError}
107
110
  */
108
- validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass>;
111
+ validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: any): AxiosPromise<ValidateAddressResponseClass>;
109
112
  };
110
113
  /**
111
114
  * Request parameters for listAddressCompletions operation in AddressCompletionsValidationsApi.
@@ -186,6 +189,12 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
186
189
  * @memberof AddressCompletionsValidationsApiValidateAddress
187
190
  */
188
191
  readonly completeAddress?: string;
192
+ /**
193
+ *
194
+ * @type {any}
195
+ * @memberof AddressCompletionsValidationsApiValidateAddress
196
+ */
197
+ readonly limit?: any;
189
198
  }
190
199
  /**
191
200
  * AddressCompletionsValidationsApi - object-oriented interface
@@ -164,10 +164,11 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
164
164
  * @param {string} houseNumber The house number of the address
165
165
  * @param {string} [authorization] Bearer Token
166
166
  * @param {string} [completeAddress] The complete address to validate
167
+ * @param {any} [limit]
167
168
  * @param {*} [options] Override http request option.
168
169
  * @throws {RequiredError}
169
170
  */
170
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
171
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
171
172
  if (options === void 0) { options = {}; }
172
173
  return __awaiter(_this, void 0, void 0, function () {
173
174
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -218,6 +219,9 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
218
219
  if (houseNumber !== undefined) {
219
220
  localVarQueryParameter['houseNumber'] = houseNumber;
220
221
  }
222
+ if (limit !== undefined) {
223
+ localVarQueryParameter['limit'] = limit;
224
+ }
221
225
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
222
226
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
223
227
  }
@@ -275,15 +279,16 @@ var AddressCompletionsValidationsApiFp = function (configuration) {
275
279
  * @param {string} houseNumber The house number of the address
276
280
  * @param {string} [authorization] Bearer Token
277
281
  * @param {string} [completeAddress] The complete address to validate
282
+ * @param {any} [limit]
278
283
  * @param {*} [options] Override http request option.
279
284
  * @throws {RequiredError}
280
285
  */
281
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
286
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
282
287
  return __awaiter(this, void 0, void 0, function () {
283
288
  var localVarAxiosArgs;
284
289
  return __generator(this, function (_a) {
285
290
  switch (_a.label) {
286
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
291
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options)];
287
292
  case 1:
288
293
  localVarAxiosArgs = _a.sent();
289
294
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -324,11 +329,12 @@ var AddressCompletionsValidationsApiFactory = function (configuration, basePath,
324
329
  * @param {string} houseNumber The house number of the address
325
330
  * @param {string} [authorization] Bearer Token
326
331
  * @param {string} [completeAddress] The complete address to validate
332
+ * @param {any} [limit]
327
333
  * @param {*} [options] Override http request option.
328
334
  * @throws {RequiredError}
329
335
  */
330
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
331
- return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then(function (request) { return request(axios, basePath); });
336
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
337
+ return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then(function (request) { return request(axios, basePath); });
332
338
  },
333
339
  };
334
340
  };
@@ -366,7 +372,7 @@ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
366
372
  */
367
373
  AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
368
374
  var _this = this;
369
- return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, options).then(function (request) { return request(_this.axios, _this.basePath); });
375
+ return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
370
376
  };
371
377
  return AddressCompletionsValidationsApi;
372
378
  }(base_1.BaseAPI));
@@ -15,6 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateDocumentRequestDto } from '../models';
16
16
  import { CreatePresignedPostRequestDto } from '../models';
17
17
  import { CreatePresignedPostResponseClass } from '../models';
18
+ import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
18
19
  import { GetProductDocumentDownloadUrlResponseClass } from '../models';
19
20
  import { ListDocumentsResponseClass } from '../models';
20
21
  import { ListProductDocumentsResponseClass } from '../models';
@@ -57,11 +58,11 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
57
58
  * @param {string} productCode
58
59
  * @param {string} code
59
60
  * @param {string} [authorization] Bearer Token
60
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
61
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
61
62
  * @param {*} [options] Override http request option.
62
63
  * @throws {RequiredError}
63
64
  */
64
- downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
66
  /**
66
67
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
67
68
  * @summary List documents
@@ -140,11 +141,11 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
140
141
  * @param {string} productCode
141
142
  * @param {string} code
142
143
  * @param {string} [authorization] Bearer Token
143
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
144
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
144
145
  * @param {*} [options] Override http request option.
145
146
  * @throws {RequiredError}
146
147
  */
147
- downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
148
+ downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
148
149
  /**
149
150
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
150
151
  * @summary List documents
@@ -223,11 +224,11 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
223
224
  * @param {string} productCode
224
225
  * @param {string} code
225
226
  * @param {string} [authorization] Bearer Token
226
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
227
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
227
228
  * @param {*} [options] Override http request option.
228
229
  * @throws {RequiredError}
229
230
  */
230
- downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
231
+ downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
231
232
  /**
232
233
  * Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
233
234
  * @summary List documents
@@ -356,10 +357,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
356
357
  readonly authorization?: string;
357
358
  /**
358
359
  * Content disposition override. Default will be depending on the document type.
359
- * @type {'attachment' | 'inline'}
360
+ * @type {GetProductDocumentDownloadUrlRequestRestDto}
360
361
  * @memberof DocumentsApiDownloadProductDocumentUrl
361
362
  */
362
- readonly contentDisposition?: 'attachment' | 'inline';
363
+ readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto;
363
364
  }
364
365
  /**
365
366
  * Request parameters for listDocuments operation in DocumentsApi.
@@ -251,7 +251,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
251
251
  * @param {string} productCode
252
252
  * @param {string} code
253
253
  * @param {string} [authorization] Bearer Token
254
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
254
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
255
255
  * @param {*} [options] Override http request option.
256
256
  * @throws {RequiredError}
257
257
  */
@@ -572,7 +572,7 @@ var DocumentsApiFp = function (configuration) {
572
572
  * @param {string} productCode
573
573
  * @param {string} code
574
574
  * @param {string} [authorization] Bearer Token
575
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
575
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
576
576
  * @param {*} [options] Override http request option.
577
577
  * @throws {RequiredError}
578
578
  */
@@ -713,7 +713,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
713
713
  * @param {string} productCode
714
714
  * @param {string} code
715
715
  * @param {string} [authorization] Bearer Token
716
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
716
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
717
717
  * @param {*} [options] Override http request option.
718
718
  * @throws {RequiredError}
719
719
  */
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { InlineResponse200 } from '../models';
16
16
  /**
17
- * DefaultApi - axios parameter creator
17
+ * HealthApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  *
23
23
  * @param {*} [options] Override http request option.
@@ -26,10 +26,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
26
26
  check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
27
  };
28
28
  /**
29
- * DefaultApi - functional programming interface
29
+ * HealthApi - functional programming interface
30
30
  * @export
31
31
  */
32
- export declare const DefaultApiFp: (configuration?: Configuration) => {
32
+ export declare const HealthApiFp: (configuration?: Configuration) => {
33
33
  /**
34
34
  *
35
35
  * @param {*} [options] Override http request option.
@@ -38,10 +38,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
38
38
  check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
39
  };
40
40
  /**
41
- * DefaultApi - factory interface
41
+ * HealthApi - factory interface
42
42
  * @export
43
43
  */
44
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
45
  /**
46
46
  *
47
47
  * @param {*} [options] Override http request option.
@@ -50,17 +50,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
50
50
  check(options?: any): AxiosPromise<InlineResponse200>;
51
51
  };
52
52
  /**
53
- * DefaultApi - object-oriented interface
53
+ * HealthApi - object-oriented interface
54
54
  * @export
55
- * @class DefaultApi
55
+ * @class HealthApi
56
56
  * @extends {BaseAPI}
57
57
  */
58
- export declare class DefaultApi extends BaseAPI {
58
+ export declare class HealthApi extends BaseAPI {
59
59
  /**
60
60
  *
61
61
  * @param {*} [options] Override http request option.
62
62
  * @throws {RequiredError}
63
- * @memberof DefaultApi
63
+ * @memberof HealthApi
64
64
  */
65
65
  check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
66
66
  }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
81
+ exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,10 +90,10 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * DefaultApi - axios parameter creator
93
+ * HealthApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var DefaultApiAxiosParamCreator = function (configuration) {
96
+ var HealthApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
@@ -127,13 +127,13 @@ var DefaultApiAxiosParamCreator = function (configuration) {
127
127
  },
128
128
  };
129
129
  };
130
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
130
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
131
131
  /**
132
- * DefaultApi - functional programming interface
132
+ * HealthApi - functional programming interface
133
133
  * @export
134
134
  */
135
- var DefaultApiFp = function (configuration) {
136
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
135
+ var HealthApiFp = function (configuration) {
136
+ var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
137
137
  return {
138
138
  /**
139
139
  *
@@ -155,13 +155,13 @@ var DefaultApiFp = function (configuration) {
155
155
  },
156
156
  };
157
157
  };
158
- exports.DefaultApiFp = DefaultApiFp;
158
+ exports.HealthApiFp = HealthApiFp;
159
159
  /**
160
- * DefaultApi - factory interface
160
+ * HealthApi - factory interface
161
161
  * @export
162
162
  */
163
- var DefaultApiFactory = function (configuration, basePath, axios) {
164
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
163
+ var HealthApiFactory = function (configuration, basePath, axios) {
164
+ var localVarFp = (0, exports.HealthApiFp)(configuration);
165
165
  return {
166
166
  /**
167
167
  *
@@ -173,28 +173,28 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
173
173
  },
174
174
  };
175
175
  };
176
- exports.DefaultApiFactory = DefaultApiFactory;
176
+ exports.HealthApiFactory = HealthApiFactory;
177
177
  /**
178
- * DefaultApi - object-oriented interface
178
+ * HealthApi - object-oriented interface
179
179
  * @export
180
- * @class DefaultApi
180
+ * @class HealthApi
181
181
  * @extends {BaseAPI}
182
182
  */
183
- var DefaultApi = /** @class */ (function (_super) {
184
- __extends(DefaultApi, _super);
185
- function DefaultApi() {
183
+ var HealthApi = /** @class */ (function (_super) {
184
+ __extends(HealthApi, _super);
185
+ function HealthApi() {
186
186
  return _super !== null && _super.apply(this, arguments) || this;
187
187
  }
188
188
  /**
189
189
  *
190
190
  * @param {*} [options] Override http request option.
191
191
  * @throws {RequiredError}
192
- * @memberof DefaultApi
192
+ * @memberof HealthApi
193
193
  */
194
- DefaultApi.prototype.check = function (options) {
194
+ HealthApi.prototype.check = function (options) {
195
195
  var _this = this;
196
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
196
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
197
197
  };
198
- return DefaultApi;
198
+ return HealthApi;
199
199
  }(base_1.BaseAPI));
200
- exports.DefaultApi = DefaultApi;
200
+ exports.HealthApi = HealthApi;
@@ -63,12 +63,20 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
63
63
  /**
64
64
  * This will initiate a lead code.
65
65
  * @summary Initiate a lead code
66
+ * @param {string} [authorization] Bearer Token
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ initiateLead: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
71
+ /**
72
+ * This will initiate a lead code for the specified product.
73
+ * @summary Initiate a lead code for a product
66
74
  * @param {string} productSlug
67
75
  * @param {string} [authorization] Bearer Token
68
76
  * @param {*} [options] Override http request option.
69
77
  * @throws {RequiredError}
70
78
  */
71
- initiateLead: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
+ initiateLeadWithProduct: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
72
80
  /**
73
81
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
74
82
  * @summary Update the lead
@@ -134,12 +142,20 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
134
142
  /**
135
143
  * This will initiate a lead code.
136
144
  * @summary Initiate a lead code
145
+ * @param {string} [authorization] Bearer Token
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
150
+ /**
151
+ * This will initiate a lead code for the specified product.
152
+ * @summary Initiate a lead code for a product
137
153
  * @param {string} productSlug
138
154
  * @param {string} [authorization] Bearer Token
139
155
  * @param {*} [options] Override http request option.
140
156
  * @throws {RequiredError}
141
157
  */
142
- initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
158
+ initiateLeadWithProduct(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
143
159
  /**
144
160
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
145
161
  * @summary Update the lead
@@ -205,12 +221,20 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
205
221
  /**
206
222
  * This will initiate a lead code.
207
223
  * @summary Initiate a lead code
224
+ * @param {string} [authorization] Bearer Token
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
229
+ /**
230
+ * This will initiate a lead code for the specified product.
231
+ * @summary Initiate a lead code for a product
208
232
  * @param {string} productSlug
209
233
  * @param {string} [authorization] Bearer Token
210
234
  * @param {*} [options] Override http request option.
211
235
  * @throws {RequiredError}
212
236
  */
213
- initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
237
+ initiateLeadWithProduct(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
214
238
  /**
215
239
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
216
240
  * @summary Update the lead
@@ -315,15 +339,28 @@ export interface LeadsApiGetLeadRequest {
315
339
  */
316
340
  export interface LeadsApiInitiateLeadRequest {
317
341
  /**
318
- *
342
+ * Bearer Token
319
343
  * @type {string}
320
344
  * @memberof LeadsApiInitiateLead
321
345
  */
346
+ readonly authorization?: string;
347
+ }
348
+ /**
349
+ * Request parameters for initiateLeadWithProduct operation in LeadsApi.
350
+ * @export
351
+ * @interface LeadsApiInitiateLeadWithProductRequest
352
+ */
353
+ export interface LeadsApiInitiateLeadWithProductRequest {
354
+ /**
355
+ *
356
+ * @type {string}
357
+ * @memberof LeadsApiInitiateLeadWithProduct
358
+ */
322
359
  readonly productSlug: string;
323
360
  /**
324
361
  * Bearer Token
325
362
  * @type {string}
326
- * @memberof LeadsApiInitiateLead
363
+ * @memberof LeadsApiInitiateLeadWithProduct
327
364
  */
328
365
  readonly authorization?: string;
329
366
  }
@@ -428,7 +465,16 @@ export declare class LeadsApi extends BaseAPI {
428
465
  * @throws {RequiredError}
429
466
  * @memberof LeadsApi
430
467
  */
431
- initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
468
+ initiateLead(requestParameters?: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
469
+ /**
470
+ * This will initiate a lead code for the specified product.
471
+ * @summary Initiate a lead code for a product
472
+ * @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ * @memberof LeadsApi
476
+ */
477
+ initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
432
478
  /**
433
479
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
434
480
  * @summary Update the lead
@@ -294,12 +294,56 @@ var LeadsApiAxiosParamCreator = function (configuration) {
294
294
  /**
295
295
  * This will initiate a lead code.
296
296
  * @summary Initiate a lead code
297
+ * @param {string} [authorization] Bearer Token
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ initiateLead: function (authorization, options) {
302
+ if (options === void 0) { options = {}; }
303
+ return __awaiter(_this, void 0, void 0, function () {
304
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
305
+ return __generator(this, function (_a) {
306
+ switch (_a.label) {
307
+ case 0:
308
+ localVarPath = "/publicapi/v1/leads/initiate";
309
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
310
+ if (configuration) {
311
+ baseOptions = configuration.baseOptions;
312
+ baseAccessToken = configuration.accessToken;
313
+ }
314
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
315
+ localVarHeaderParameter = {};
316
+ localVarQueryParameter = {};
317
+ // authentication bearer required
318
+ // http bearer authentication required
319
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
320
+ case 1:
321
+ // authentication bearer required
322
+ // http bearer authentication required
323
+ _a.sent();
324
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
325
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
326
+ }
327
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
330
+ return [2 /*return*/, {
331
+ url: (0, common_1.toPathString)(localVarUrlObj),
332
+ options: localVarRequestOptions,
333
+ }];
334
+ }
335
+ });
336
+ });
337
+ },
338
+ /**
339
+ * This will initiate a lead code for the specified product.
340
+ * @summary Initiate a lead code for a product
297
341
  * @param {string} productSlug
298
342
  * @param {string} [authorization] Bearer Token
299
343
  * @param {*} [options] Override http request option.
300
344
  * @throws {RequiredError}
301
345
  */
302
- initiateLead: function (productSlug, authorization, options) {
346
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
303
347
  if (options === void 0) { options = {}; }
304
348
  return __awaiter(_this, void 0, void 0, function () {
305
349
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -307,7 +351,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
307
351
  switch (_a.label) {
308
352
  case 0:
309
353
  // verify required parameter 'productSlug' is not null or undefined
310
- (0, common_1.assertParamExists)('initiateLead', 'productSlug', productSlug);
354
+ (0, common_1.assertParamExists)('initiateLeadWithProduct', 'productSlug', productSlug);
311
355
  localVarPath = "/publicapi/v1/leads/initiate/{productSlug}"
312
356
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
313
357
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -542,17 +586,37 @@ var LeadsApiFp = function (configuration) {
542
586
  /**
543
587
  * This will initiate a lead code.
544
588
  * @summary Initiate a lead code
589
+ * @param {string} [authorization] Bearer Token
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ initiateLead: function (authorization, options) {
594
+ return __awaiter(this, void 0, void 0, function () {
595
+ var localVarAxiosArgs;
596
+ return __generator(this, function (_a) {
597
+ switch (_a.label) {
598
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(authorization, options)];
599
+ case 1:
600
+ localVarAxiosArgs = _a.sent();
601
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
602
+ }
603
+ });
604
+ });
605
+ },
606
+ /**
607
+ * This will initiate a lead code for the specified product.
608
+ * @summary Initiate a lead code for a product
545
609
  * @param {string} productSlug
546
610
  * @param {string} [authorization] Bearer Token
547
611
  * @param {*} [options] Override http request option.
548
612
  * @throws {RequiredError}
549
613
  */
550
- initiateLead: function (productSlug, authorization, options) {
614
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
551
615
  return __awaiter(this, void 0, void 0, function () {
552
616
  var localVarAxiosArgs;
553
617
  return __generator(this, function (_a) {
554
618
  switch (_a.label) {
555
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(productSlug, authorization, options)];
619
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLeadWithProduct(productSlug, authorization, options)];
556
620
  case 1:
557
621
  localVarAxiosArgs = _a.sent();
558
622
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -661,13 +725,23 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
661
725
  /**
662
726
  * This will initiate a lead code.
663
727
  * @summary Initiate a lead code
728
+ * @param {string} [authorization] Bearer Token
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ initiateLead: function (authorization, options) {
733
+ return localVarFp.initiateLead(authorization, options).then(function (request) { return request(axios, basePath); });
734
+ },
735
+ /**
736
+ * This will initiate a lead code for the specified product.
737
+ * @summary Initiate a lead code for a product
664
738
  * @param {string} productSlug
665
739
  * @param {string} [authorization] Bearer Token
666
740
  * @param {*} [options] Override http request option.
667
741
  * @throws {RequiredError}
668
742
  */
669
- initiateLead: function (productSlug, authorization, options) {
670
- return localVarFp.initiateLead(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
743
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
744
+ return localVarFp.initiateLeadWithProduct(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
671
745
  },
672
746
  /**
673
747
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -765,7 +839,20 @@ var LeadsApi = /** @class */ (function (_super) {
765
839
  */
766
840
  LeadsApi.prototype.initiateLead = function (requestParameters, options) {
767
841
  var _this = this;
768
- return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
842
+ if (requestParameters === void 0) { requestParameters = {}; }
843
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
844
+ };
845
+ /**
846
+ * This will initiate a lead code for the specified product.
847
+ * @summary Initiate a lead code for a product
848
+ * @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ * @memberof LeadsApi
852
+ */
853
+ LeadsApi.prototype.initiateLeadWithProduct = function (requestParameters, options) {
854
+ var _this = this;
855
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
769
856
  };
770
857
  /**
771
858
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.