@emilgroup/public-api-sdk 1.38.1-beta.4 → 1.38.1-beta.6

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
@@ -160,10 +160,11 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
160
160
  * @param {string} houseNumber The house number of the address
161
161
  * @param {string} [authorization] Bearer Token
162
162
  * @param {string} [completeAddress] The complete address to validate
163
+ * @param {any} [limit]
163
164
  * @param {*} [options] Override http request option.
164
165
  * @throws {RequiredError}
165
166
  */
166
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
167
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
167
168
  if (options === void 0) { options = {}; }
168
169
  return __awaiter(_this, void 0, void 0, function () {
169
170
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -214,6 +215,9 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
214
215
  if (houseNumber !== undefined) {
215
216
  localVarQueryParameter['houseNumber'] = houseNumber;
216
217
  }
218
+ if (limit !== undefined) {
219
+ localVarQueryParameter['limit'] = limit;
220
+ }
217
221
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
218
222
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
219
223
  }
@@ -271,15 +275,16 @@ var AddressCompletionsValidationsApiFp = function (configuration) {
271
275
  * @param {string} houseNumber The house number of the address
272
276
  * @param {string} [authorization] Bearer Token
273
277
  * @param {string} [completeAddress] The complete address to validate
278
+ * @param {any} [limit]
274
279
  * @param {*} [options] Override http request option.
275
280
  * @throws {RequiredError}
276
281
  */
277
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
282
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
278
283
  return __awaiter(this, void 0, void 0, function () {
279
284
  var localVarAxiosArgs;
280
285
  return __generator(this, function (_a) {
281
286
  switch (_a.label) {
282
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
287
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options)];
283
288
  case 1:
284
289
  localVarAxiosArgs = _a.sent();
285
290
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -320,11 +325,12 @@ var AddressCompletionsValidationsApiFactory = function (configuration, basePath,
320
325
  * @param {string} houseNumber The house number of the address
321
326
  * @param {string} [authorization] Bearer Token
322
327
  * @param {string} [completeAddress] The complete address to validate
328
+ * @param {any} [limit]
323
329
  * @param {*} [options] Override http request option.
324
330
  * @throws {RequiredError}
325
331
  */
326
- validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
327
- return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then(function (request) { return request(axios, basePath); });
332
+ validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options) {
333
+ return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then(function (request) { return request(axios, basePath); });
328
334
  },
329
335
  };
330
336
  };
@@ -362,7 +368,7 @@ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
362
368
  */
363
369
  AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
364
370
  var _this = this;
365
- 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); });
371
+ 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); });
366
372
  };
367
373
  return AddressCompletionsValidationsApi;
368
374
  }(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.
@@ -247,7 +247,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
247
247
  * @param {string} productCode
248
248
  * @param {string} code
249
249
  * @param {string} [authorization] Bearer Token
250
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
250
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
251
251
  * @param {*} [options] Override http request option.
252
252
  * @throws {RequiredError}
253
253
  */
@@ -568,7 +568,7 @@ var DocumentsApiFp = function (configuration) {
568
568
  * @param {string} productCode
569
569
  * @param {string} code
570
570
  * @param {string} [authorization] Bearer Token
571
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
571
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
572
572
  * @param {*} [options] Override http request option.
573
573
  * @throws {RequiredError}
574
574
  */
@@ -709,7 +709,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
709
709
  * @param {string} productCode
710
710
  * @param {string} code
711
711
  * @param {string} [authorization] Bearer Token
712
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
712
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
713
713
  * @param {*} [options] Override http request option.
714
714
  * @throws {RequiredError}
715
715
  */
@@ -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
@@ -86,10 +86,10 @@ var common_1 = require("../common");
86
86
  // @ts-ignore
87
87
  var base_1 = require("../base");
88
88
  /**
89
- * DefaultApi - axios parameter creator
89
+ * HealthApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var DefaultApiAxiosParamCreator = function (configuration) {
92
+ var HealthApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
@@ -123,13 +123,13 @@ var DefaultApiAxiosParamCreator = function (configuration) {
123
123
  },
124
124
  };
125
125
  };
126
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
126
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
127
127
  /**
128
- * DefaultApi - functional programming interface
128
+ * HealthApi - functional programming interface
129
129
  * @export
130
130
  */
131
- var DefaultApiFp = function (configuration) {
132
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
131
+ var HealthApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
133
133
  return {
134
134
  /**
135
135
  *
@@ -151,13 +151,13 @@ var DefaultApiFp = function (configuration) {
151
151
  },
152
152
  };
153
153
  };
154
- exports.DefaultApiFp = DefaultApiFp;
154
+ exports.HealthApiFp = HealthApiFp;
155
155
  /**
156
- * DefaultApi - factory interface
156
+ * HealthApi - factory interface
157
157
  * @export
158
158
  */
159
- var DefaultApiFactory = function (configuration, basePath, axios) {
160
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
159
+ var HealthApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.HealthApiFp)(configuration);
161
161
  return {
162
162
  /**
163
163
  *
@@ -169,28 +169,28 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
169
169
  },
170
170
  };
171
171
  };
172
- exports.DefaultApiFactory = DefaultApiFactory;
172
+ exports.HealthApiFactory = HealthApiFactory;
173
173
  /**
174
- * DefaultApi - object-oriented interface
174
+ * HealthApi - object-oriented interface
175
175
  * @export
176
- * @class DefaultApi
176
+ * @class HealthApi
177
177
  * @extends {BaseAPI}
178
178
  */
179
- var DefaultApi = /** @class */ (function (_super) {
180
- __extends(DefaultApi, _super);
181
- function DefaultApi() {
179
+ var HealthApi = /** @class */ (function (_super) {
180
+ __extends(HealthApi, _super);
181
+ function HealthApi() {
182
182
  return _super !== null && _super.apply(this, arguments) || this;
183
183
  }
184
184
  /**
185
185
  *
186
186
  * @param {*} [options] Override http request option.
187
187
  * @throws {RequiredError}
188
- * @memberof DefaultApi
188
+ * @memberof HealthApi
189
189
  */
190
- DefaultApi.prototype.check = function (options) {
190
+ HealthApi.prototype.check = function (options) {
191
191
  var _this = this;
192
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
192
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
193
  };
194
- return DefaultApi;
194
+ return HealthApi;
195
195
  }(base_1.BaseAPI));
196
- exports.DefaultApi = DefaultApi;
196
+ 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
@@ -290,12 +290,56 @@ var LeadsApiAxiosParamCreator = function (configuration) {
290
290
  /**
291
291
  * This will initiate a lead code.
292
292
  * @summary Initiate a lead code
293
+ * @param {string} [authorization] Bearer Token
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ initiateLead: function (authorization, options) {
298
+ if (options === void 0) { options = {}; }
299
+ return __awaiter(_this, void 0, void 0, function () {
300
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
301
+ return __generator(this, function (_a) {
302
+ switch (_a.label) {
303
+ case 0:
304
+ localVarPath = "/publicapi/v1/leads/initiate";
305
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
306
+ if (configuration) {
307
+ baseOptions = configuration.baseOptions;
308
+ baseAccessToken = configuration.accessToken;
309
+ }
310
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
311
+ localVarHeaderParameter = {};
312
+ localVarQueryParameter = {};
313
+ // authentication bearer required
314
+ // http bearer authentication required
315
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
316
+ case 1:
317
+ // authentication bearer required
318
+ // http bearer authentication required
319
+ _a.sent();
320
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
321
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
322
+ }
323
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
324
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
325
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
326
+ return [2 /*return*/, {
327
+ url: (0, common_1.toPathString)(localVarUrlObj),
328
+ options: localVarRequestOptions,
329
+ }];
330
+ }
331
+ });
332
+ });
333
+ },
334
+ /**
335
+ * This will initiate a lead code for the specified product.
336
+ * @summary Initiate a lead code for a product
293
337
  * @param {string} productSlug
294
338
  * @param {string} [authorization] Bearer Token
295
339
  * @param {*} [options] Override http request option.
296
340
  * @throws {RequiredError}
297
341
  */
298
- initiateLead: function (productSlug, authorization, options) {
342
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
299
343
  if (options === void 0) { options = {}; }
300
344
  return __awaiter(_this, void 0, void 0, function () {
301
345
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -303,7 +347,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
303
347
  switch (_a.label) {
304
348
  case 0:
305
349
  // verify required parameter 'productSlug' is not null or undefined
306
- (0, common_1.assertParamExists)('initiateLead', 'productSlug', productSlug);
350
+ (0, common_1.assertParamExists)('initiateLeadWithProduct', 'productSlug', productSlug);
307
351
  localVarPath = "/publicapi/v1/leads/initiate/{productSlug}"
308
352
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
309
353
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -538,17 +582,37 @@ var LeadsApiFp = function (configuration) {
538
582
  /**
539
583
  * This will initiate a lead code.
540
584
  * @summary Initiate a lead code
585
+ * @param {string} [authorization] Bearer Token
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ initiateLead: function (authorization, options) {
590
+ return __awaiter(this, void 0, void 0, function () {
591
+ var localVarAxiosArgs;
592
+ return __generator(this, function (_a) {
593
+ switch (_a.label) {
594
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(authorization, options)];
595
+ case 1:
596
+ localVarAxiosArgs = _a.sent();
597
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
598
+ }
599
+ });
600
+ });
601
+ },
602
+ /**
603
+ * This will initiate a lead code for the specified product.
604
+ * @summary Initiate a lead code for a product
541
605
  * @param {string} productSlug
542
606
  * @param {string} [authorization] Bearer Token
543
607
  * @param {*} [options] Override http request option.
544
608
  * @throws {RequiredError}
545
609
  */
546
- initiateLead: function (productSlug, authorization, options) {
610
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
547
611
  return __awaiter(this, void 0, void 0, function () {
548
612
  var localVarAxiosArgs;
549
613
  return __generator(this, function (_a) {
550
614
  switch (_a.label) {
551
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(productSlug, authorization, options)];
615
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLeadWithProduct(productSlug, authorization, options)];
552
616
  case 1:
553
617
  localVarAxiosArgs = _a.sent();
554
618
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -657,13 +721,23 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
657
721
  /**
658
722
  * This will initiate a lead code.
659
723
  * @summary Initiate a lead code
724
+ * @param {string} [authorization] Bearer Token
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ initiateLead: function (authorization, options) {
729
+ return localVarFp.initiateLead(authorization, options).then(function (request) { return request(axios, basePath); });
730
+ },
731
+ /**
732
+ * This will initiate a lead code for the specified product.
733
+ * @summary Initiate a lead code for a product
660
734
  * @param {string} productSlug
661
735
  * @param {string} [authorization] Bearer Token
662
736
  * @param {*} [options] Override http request option.
663
737
  * @throws {RequiredError}
664
738
  */
665
- initiateLead: function (productSlug, authorization, options) {
666
- return localVarFp.initiateLead(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
739
+ initiateLeadWithProduct: function (productSlug, authorization, options) {
740
+ return localVarFp.initiateLeadWithProduct(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
667
741
  },
668
742
  /**
669
743
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -761,7 +835,20 @@ var LeadsApi = /** @class */ (function (_super) {
761
835
  */
762
836
  LeadsApi.prototype.initiateLead = function (requestParameters, options) {
763
837
  var _this = this;
764
- return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
838
+ if (requestParameters === void 0) { requestParameters = {}; }
839
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
840
+ };
841
+ /**
842
+ * This will initiate a lead code for the specified product.
843
+ * @summary Initiate a lead code for a product
844
+ * @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ * @memberof LeadsApi
848
+ */
849
+ LeadsApi.prototype.initiateLeadWithProduct = function (requestParameters, options) {
850
+ var _this = this;
851
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
765
852
  };
766
853
  /**
767
854
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.