@emilgroup/public-api-sdk-node 1.40.1-beta.8 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -5
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +6 -20
- package/api/{health-api.ts → default-api.ts} +13 -13
- package/api/documents-api.ts +8 -10
- package/api/leads-api.ts +10 -98
- package/api/payments-setup-api.ts +11 -113
- package/api.ts +2 -4
- package/dist/api/address-completions-validations-api.d.ts +3 -12
- package/dist/api/address-completions-validations-api.js +6 -12
- package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
- package/dist/api/{health-api.js → default-api.js} +22 -22
- package/dist/api/documents-api.d.ts +8 -9
- package/dist/api/documents-api.js +3 -3
- package/dist/api/leads-api.d.ts +6 -52
- package/dist/api/leads-api.js +7 -94
- package/dist/api/payments-setup-api.d.ts +7 -62
- package/dist/api/payments-setup-api.js +7 -100
- package/dist/api.d.ts +1 -2
- package/dist/api.js +1 -2
- package/dist/models/deductible-class.d.ts +6 -0
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/tariff-category-summary-class.d.ts +0 -7
- package/models/deductible-class.ts +6 -0
- package/models/index.ts +0 -3
- package/models/tariff-category-summary-class.ts +0 -7
- package/package.json +1 -1
- package/api/partners-api.ts +0 -169
- package/dist/api/partners-api.d.ts +0 -97
- package/dist/api/partners-api.js +0 -228
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +0 -29
- package/dist/models/get-product-document-download-url-request-rest-dto.js +0 -20
- package/dist/models/validate-partner-request-dto.d.ts +0 -30
- package/dist/models/validate-partner-request-dto.js +0 -15
- package/dist/models/validate-partner-response-class.d.ts +0 -30
- package/dist/models/validate-partner-response-class.js +0 -15
- package/models/get-product-document-download-url-request-rest-dto.ts +0 -38
- package/models/validate-partner-request-dto.ts +0 -36
- package/models/validate-partner-response-class.ts +0 -36
|
@@ -40,11 +40,10 @@ 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]
|
|
44
43
|
* @param {*} [options] Override http request option.
|
|
45
44
|
* @throws {RequiredError}
|
|
46
45
|
*/
|
|
47
|
-
validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
46
|
+
validateAddress: (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* AddressCompletionsValidationsApi - functional programming interface
|
|
@@ -72,11 +71,10 @@ export declare const AddressCompletionsValidationsApiFp: (configuration?: Config
|
|
|
72
71
|
* @param {string} houseNumber The house number of the address
|
|
73
72
|
* @param {string} [authorization] Bearer Token
|
|
74
73
|
* @param {string} [completeAddress] The complete address to validate
|
|
75
|
-
* @param {any} [limit]
|
|
76
74
|
* @param {*} [options] Override http request option.
|
|
77
75
|
* @throws {RequiredError}
|
|
78
76
|
*/
|
|
79
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
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>>;
|
|
80
78
|
};
|
|
81
79
|
/**
|
|
82
80
|
* AddressCompletionsValidationsApi - factory interface
|
|
@@ -104,11 +102,10 @@ export declare const AddressCompletionsValidationsApiFactory: (configuration?: C
|
|
|
104
102
|
* @param {string} houseNumber The house number of the address
|
|
105
103
|
* @param {string} [authorization] Bearer Token
|
|
106
104
|
* @param {string} [completeAddress] The complete address to validate
|
|
107
|
-
* @param {any} [limit]
|
|
108
105
|
* @param {*} [options] Override http request option.
|
|
109
106
|
* @throws {RequiredError}
|
|
110
107
|
*/
|
|
111
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
108
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass>;
|
|
112
109
|
};
|
|
113
110
|
/**
|
|
114
111
|
* Request parameters for listAddressCompletions operation in AddressCompletionsValidationsApi.
|
|
@@ -189,12 +186,6 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
189
186
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
190
187
|
*/
|
|
191
188
|
readonly completeAddress?: string;
|
|
192
|
-
/**
|
|
193
|
-
*
|
|
194
|
-
* @type {any}
|
|
195
|
-
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
196
|
-
*/
|
|
197
|
-
readonly limit?: any;
|
|
198
189
|
}
|
|
199
190
|
/**
|
|
200
191
|
* AddressCompletionsValidationsApi - object-oriented interface
|
|
@@ -164,11 +164,10 @@ 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]
|
|
168
167
|
* @param {*} [options] Override http request option.
|
|
169
168
|
* @throws {RequiredError}
|
|
170
169
|
*/
|
|
171
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
170
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
172
171
|
if (options === void 0) { options = {}; }
|
|
173
172
|
return __awaiter(_this, void 0, void 0, function () {
|
|
174
173
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -219,9 +218,6 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
|
|
|
219
218
|
if (houseNumber !== undefined) {
|
|
220
219
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
221
220
|
}
|
|
222
|
-
if (limit !== undefined) {
|
|
223
|
-
localVarQueryParameter['limit'] = limit;
|
|
224
|
-
}
|
|
225
221
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
222
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
223
|
}
|
|
@@ -279,16 +275,15 @@ var AddressCompletionsValidationsApiFp = function (configuration) {
|
|
|
279
275
|
* @param {string} houseNumber The house number of the address
|
|
280
276
|
* @param {string} [authorization] Bearer Token
|
|
281
277
|
* @param {string} [completeAddress] The complete address to validate
|
|
282
|
-
* @param {any} [limit]
|
|
283
278
|
* @param {*} [options] Override http request option.
|
|
284
279
|
* @throws {RequiredError}
|
|
285
280
|
*/
|
|
286
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
281
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
287
282
|
return __awaiter(this, void 0, void 0, function () {
|
|
288
283
|
var localVarAxiosArgs;
|
|
289
284
|
return __generator(this, function (_a) {
|
|
290
285
|
switch (_a.label) {
|
|
291
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
286
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
|
|
292
287
|
case 1:
|
|
293
288
|
localVarAxiosArgs = _a.sent();
|
|
294
289
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -329,12 +324,11 @@ var AddressCompletionsValidationsApiFactory = function (configuration, basePath,
|
|
|
329
324
|
* @param {string} houseNumber The house number of the address
|
|
330
325
|
* @param {string} [authorization] Bearer Token
|
|
331
326
|
* @param {string} [completeAddress] The complete address to validate
|
|
332
|
-
* @param {any} [limit]
|
|
333
327
|
* @param {*} [options] Override http request option.
|
|
334
328
|
* @throws {RequiredError}
|
|
335
329
|
*/
|
|
336
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
337
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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); });
|
|
338
332
|
},
|
|
339
333
|
};
|
|
340
334
|
};
|
|
@@ -372,7 +366,7 @@ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
|
|
|
372
366
|
*/
|
|
373
367
|
AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
|
|
374
368
|
var _this = this;
|
|
375
|
-
return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress,
|
|
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); });
|
|
376
370
|
};
|
|
377
371
|
return AddressCompletionsValidationsApi;
|
|
378
372
|
}(base_1.BaseAPI));
|
|
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { InlineResponse200 } from '../models';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* DefaultApi - axios parameter creator
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
* @param {*} [options] Override http request option.
|
|
@@ -26,10 +26,10 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
26
26
|
check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
30
|
* @export
|
|
31
31
|
*/
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
@@ -38,10 +38,10 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
|
38
38
|
check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* DefaultApi - factory interface
|
|
42
42
|
* @export
|
|
43
43
|
*/
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const DefaultApiFactory: (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 HealthApiFactory: (configuration?: Configuration, basePath?
|
|
|
50
50
|
check(options?: any): AxiosPromise<InlineResponse200>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* DefaultApi - object-oriented interface
|
|
54
54
|
* @export
|
|
55
|
-
* @class
|
|
55
|
+
* @class DefaultApi
|
|
56
56
|
* @extends {BaseAPI}
|
|
57
57
|
*/
|
|
58
|
-
export declare class
|
|
58
|
+
export declare class DefaultApi extends BaseAPI {
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @param {*} [options] Override http request option.
|
|
62
62
|
* @throws {RequiredError}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof DefaultApi
|
|
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.
|
|
81
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
|
-
*
|
|
93
|
+
* DefaultApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var DefaultApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -127,13 +127,13 @@ var HealthApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
},
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
-
exports.
|
|
130
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* DefaultApi - functional programming interface
|
|
133
133
|
* @export
|
|
134
134
|
*/
|
|
135
|
-
var
|
|
136
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
135
|
+
var DefaultApiFp = function (configuration) {
|
|
136
|
+
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
137
137
|
return {
|
|
138
138
|
/**
|
|
139
139
|
*
|
|
@@ -155,13 +155,13 @@ var HealthApiFp = function (configuration) {
|
|
|
155
155
|
},
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
158
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* DefaultApi - factory interface
|
|
161
161
|
* @export
|
|
162
162
|
*/
|
|
163
|
-
var
|
|
164
|
-
var localVarFp = (0, exports.
|
|
163
|
+
var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
164
|
+
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
165
165
|
return {
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
@@ -173,28 +173,28 @@ var HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
173
173
|
},
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
-
exports.
|
|
176
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* DefaultApi - object-oriented interface
|
|
179
179
|
* @export
|
|
180
|
-
* @class
|
|
180
|
+
* @class DefaultApi
|
|
181
181
|
* @extends {BaseAPI}
|
|
182
182
|
*/
|
|
183
|
-
var
|
|
184
|
-
__extends(
|
|
185
|
-
function
|
|
183
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
184
|
+
__extends(DefaultApi, _super);
|
|
185
|
+
function DefaultApi() {
|
|
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
|
|
192
|
+
* @memberof DefaultApi
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
DefaultApi.prototype.check = function (options) {
|
|
195
195
|
var _this = this;
|
|
196
|
-
return (0, exports.
|
|
196
|
+
return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
197
197
|
};
|
|
198
|
-
return
|
|
198
|
+
return DefaultApi;
|
|
199
199
|
}(base_1.BaseAPI));
|
|
200
|
-
exports.
|
|
200
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -15,7 +15,6 @@ 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';
|
|
19
18
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
20
19
|
import { ListDocumentsResponseClass } from '../models';
|
|
21
20
|
import { ListProductDocumentsResponseClass } from '../models';
|
|
@@ -58,11 +57,11 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
58
57
|
* @param {string} productCode
|
|
59
58
|
* @param {string} code
|
|
60
59
|
* @param {string} [authorization] Bearer Token
|
|
61
|
-
* @param {
|
|
60
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
62
61
|
* @param {*} [options] Override http request option.
|
|
63
62
|
* @throws {RequiredError}
|
|
64
63
|
*/
|
|
65
|
-
downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
64
|
+
downloadProductDocumentUrl: (productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
65
|
/**
|
|
67
66
|
* 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.
|
|
68
67
|
* @summary List documents
|
|
@@ -141,11 +140,11 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
141
140
|
* @param {string} productCode
|
|
142
141
|
* @param {string} code
|
|
143
142
|
* @param {string} [authorization] Bearer Token
|
|
144
|
-
* @param {
|
|
143
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
145
144
|
* @param {*} [options] Override http request option.
|
|
146
145
|
* @throws {RequiredError}
|
|
147
146
|
*/
|
|
148
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
147
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>>;
|
|
149
148
|
/**
|
|
150
149
|
* 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.
|
|
151
150
|
* @summary List documents
|
|
@@ -224,11 +223,11 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
224
223
|
* @param {string} productCode
|
|
225
224
|
* @param {string} code
|
|
226
225
|
* @param {string} [authorization] Bearer Token
|
|
227
|
-
* @param {
|
|
226
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
228
227
|
* @param {*} [options] Override http request option.
|
|
229
228
|
* @throws {RequiredError}
|
|
230
229
|
*/
|
|
231
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
230
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass>;
|
|
232
231
|
/**
|
|
233
232
|
* 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.
|
|
234
233
|
* @summary List documents
|
|
@@ -357,10 +356,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
357
356
|
readonly authorization?: string;
|
|
358
357
|
/**
|
|
359
358
|
* Content disposition override. Default will be depending on the document type.
|
|
360
|
-
* @type {
|
|
359
|
+
* @type {'attachment' | 'inline'}
|
|
361
360
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
362
361
|
*/
|
|
363
|
-
readonly contentDisposition?:
|
|
362
|
+
readonly contentDisposition?: 'attachment' | 'inline';
|
|
364
363
|
}
|
|
365
364
|
/**
|
|
366
365
|
* 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 {
|
|
254
|
+
* @param {'attachment' | 'inline'} [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 {
|
|
575
|
+
* @param {'attachment' | 'inline'} [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 {
|
|
716
|
+
* @param {'attachment' | 'inline'} [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
|
*/
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -63,20 +63,12 @@ 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
|
|
74
66
|
* @param {string} productSlug
|
|
75
67
|
* @param {string} [authorization] Bearer Token
|
|
76
68
|
* @param {*} [options] Override http request option.
|
|
77
69
|
* @throws {RequiredError}
|
|
78
70
|
*/
|
|
79
|
-
|
|
71
|
+
initiateLead: (productSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
72
|
/**
|
|
81
73
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
82
74
|
* @summary Update the lead
|
|
@@ -142,20 +134,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
142
134
|
/**
|
|
143
135
|
* This will initiate a lead code.
|
|
144
136
|
* @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
|
|
153
137
|
* @param {string} productSlug
|
|
154
138
|
* @param {string} [authorization] Bearer Token
|
|
155
139
|
* @param {*} [options] Override http request option.
|
|
156
140
|
* @throws {RequiredError}
|
|
157
141
|
*/
|
|
158
|
-
|
|
142
|
+
initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>>;
|
|
159
143
|
/**
|
|
160
144
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
161
145
|
* @summary Update the lead
|
|
@@ -221,20 +205,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
221
205
|
/**
|
|
222
206
|
* This will initiate a lead code.
|
|
223
207
|
* @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
|
|
232
208
|
* @param {string} productSlug
|
|
233
209
|
* @param {string} [authorization] Bearer Token
|
|
234
210
|
* @param {*} [options] Override http request option.
|
|
235
211
|
* @throws {RequiredError}
|
|
236
212
|
*/
|
|
237
|
-
|
|
213
|
+
initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass>;
|
|
238
214
|
/**
|
|
239
215
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
240
216
|
* @summary Update the lead
|
|
@@ -338,29 +314,16 @@ export interface LeadsApiGetLeadRequest {
|
|
|
338
314
|
* @interface LeadsApiInitiateLeadRequest
|
|
339
315
|
*/
|
|
340
316
|
export interface LeadsApiInitiateLeadRequest {
|
|
341
|
-
/**
|
|
342
|
-
* Bearer Token
|
|
343
|
-
* @type {string}
|
|
344
|
-
* @memberof LeadsApiInitiateLead
|
|
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
317
|
/**
|
|
355
318
|
*
|
|
356
319
|
* @type {string}
|
|
357
|
-
* @memberof
|
|
320
|
+
* @memberof LeadsApiInitiateLead
|
|
358
321
|
*/
|
|
359
322
|
readonly productSlug: string;
|
|
360
323
|
/**
|
|
361
324
|
* Bearer Token
|
|
362
325
|
* @type {string}
|
|
363
|
-
* @memberof
|
|
326
|
+
* @memberof LeadsApiInitiateLead
|
|
364
327
|
*/
|
|
365
328
|
readonly authorization?: string;
|
|
366
329
|
}
|
|
@@ -465,16 +428,7 @@ export declare class LeadsApi extends BaseAPI {
|
|
|
465
428
|
* @throws {RequiredError}
|
|
466
429
|
* @memberof LeadsApi
|
|
467
430
|
*/
|
|
468
|
-
initiateLead(requestParameters
|
|
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, {}>>;
|
|
431
|
+
initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateLeadResponseClass, any, {}>>;
|
|
478
432
|
/**
|
|
479
433
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
480
434
|
* @summary Update the lead
|
package/dist/api/leads-api.js
CHANGED
|
@@ -294,56 +294,12 @@ 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
|
|
341
297
|
* @param {string} productSlug
|
|
342
298
|
* @param {string} [authorization] Bearer Token
|
|
343
299
|
* @param {*} [options] Override http request option.
|
|
344
300
|
* @throws {RequiredError}
|
|
345
301
|
*/
|
|
346
|
-
|
|
302
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
347
303
|
if (options === void 0) { options = {}; }
|
|
348
304
|
return __awaiter(_this, void 0, void 0, function () {
|
|
349
305
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -351,7 +307,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
351
307
|
switch (_a.label) {
|
|
352
308
|
case 0:
|
|
353
309
|
// verify required parameter 'productSlug' is not null or undefined
|
|
354
|
-
(0, common_1.assertParamExists)('
|
|
310
|
+
(0, common_1.assertParamExists)('initiateLead', 'productSlug', productSlug);
|
|
355
311
|
localVarPath = "/publicapi/v1/leads/initiate/{productSlug}"
|
|
356
312
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
357
313
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -586,37 +542,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
586
542
|
/**
|
|
587
543
|
* This will initiate a lead code.
|
|
588
544
|
* @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
|
|
609
545
|
* @param {string} productSlug
|
|
610
546
|
* @param {string} [authorization] Bearer Token
|
|
611
547
|
* @param {*} [options] Override http request option.
|
|
612
548
|
* @throws {RequiredError}
|
|
613
549
|
*/
|
|
614
|
-
|
|
550
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
615
551
|
return __awaiter(this, void 0, void 0, function () {
|
|
616
552
|
var localVarAxiosArgs;
|
|
617
553
|
return __generator(this, function (_a) {
|
|
618
554
|
switch (_a.label) {
|
|
619
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
555
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(productSlug, authorization, options)];
|
|
620
556
|
case 1:
|
|
621
557
|
localVarAxiosArgs = _a.sent();
|
|
622
558
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -725,23 +661,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
725
661
|
/**
|
|
726
662
|
* This will initiate a lead code.
|
|
727
663
|
* @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
|
|
738
664
|
* @param {string} productSlug
|
|
739
665
|
* @param {string} [authorization] Bearer Token
|
|
740
666
|
* @param {*} [options] Override http request option.
|
|
741
667
|
* @throws {RequiredError}
|
|
742
668
|
*/
|
|
743
|
-
|
|
744
|
-
return localVarFp.
|
|
669
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
670
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
745
671
|
},
|
|
746
672
|
/**
|
|
747
673
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -839,20 +765,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
839
765
|
*/
|
|
840
766
|
LeadsApi.prototype.initiateLead = function (requestParameters, options) {
|
|
841
767
|
var _this = this;
|
|
842
|
-
|
|
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); });
|
|
768
|
+
return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
856
769
|
};
|
|
857
770
|
/**
|
|
858
771
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|