@emilgroup/public-api-sdk 1.38.1-beta.8 → 1.39.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 -165
- package/dist/api/partners-api.d.ts +0 -97
- package/dist/api/partners-api.js +0 -224
- 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
|
|
@@ -160,11 +160,10 @@ 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]
|
|
164
163
|
* @param {*} [options] Override http request option.
|
|
165
164
|
* @throws {RequiredError}
|
|
166
165
|
*/
|
|
167
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
166
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
168
167
|
if (options === void 0) { options = {}; }
|
|
169
168
|
return __awaiter(_this, void 0, void 0, function () {
|
|
170
169
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -215,9 +214,6 @@ var AddressCompletionsValidationsApiAxiosParamCreator = function (configuration)
|
|
|
215
214
|
if (houseNumber !== undefined) {
|
|
216
215
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
217
216
|
}
|
|
218
|
-
if (limit !== undefined) {
|
|
219
|
-
localVarQueryParameter['limit'] = limit;
|
|
220
|
-
}
|
|
221
217
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
222
218
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
223
219
|
}
|
|
@@ -275,16 +271,15 @@ var AddressCompletionsValidationsApiFp = function (configuration) {
|
|
|
275
271
|
* @param {string} houseNumber The house number of the address
|
|
276
272
|
* @param {string} [authorization] Bearer Token
|
|
277
273
|
* @param {string} [completeAddress] The complete address to validate
|
|
278
|
-
* @param {any} [limit]
|
|
279
274
|
* @param {*} [options] Override http request option.
|
|
280
275
|
* @throws {RequiredError}
|
|
281
276
|
*/
|
|
282
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
277
|
+
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress, options) {
|
|
283
278
|
return __awaiter(this, void 0, void 0, function () {
|
|
284
279
|
var localVarAxiosArgs;
|
|
285
280
|
return __generator(this, function (_a) {
|
|
286
281
|
switch (_a.label) {
|
|
287
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
282
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options)];
|
|
288
283
|
case 1:
|
|
289
284
|
localVarAxiosArgs = _a.sent();
|
|
290
285
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -325,12 +320,11 @@ var AddressCompletionsValidationsApiFactory = function (configuration, basePath,
|
|
|
325
320
|
* @param {string} houseNumber The house number of the address
|
|
326
321
|
* @param {string} [authorization] Bearer Token
|
|
327
322
|
* @param {string} [completeAddress] The complete address to validate
|
|
328
|
-
* @param {any} [limit]
|
|
329
323
|
* @param {*} [options] Override http request option.
|
|
330
324
|
* @throws {RequiredError}
|
|
331
325
|
*/
|
|
332
|
-
validateAddress: function (city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
333
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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); });
|
|
334
328
|
},
|
|
335
329
|
};
|
|
336
330
|
};
|
|
@@ -368,7 +362,7 @@ var AddressCompletionsValidationsApi = /** @class */ (function (_super) {
|
|
|
368
362
|
*/
|
|
369
363
|
AddressCompletionsValidationsApi.prototype.validateAddress = function (requestParameters, options) {
|
|
370
364
|
var _this = this;
|
|
371
|
-
return (0, exports.AddressCompletionsValidationsApiFp)(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress,
|
|
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); });
|
|
372
366
|
};
|
|
373
367
|
return AddressCompletionsValidationsApi;
|
|
374
368
|
}(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
|
|
@@ -86,10 +86,10 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* DefaultApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var DefaultApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
@@ -123,13 +123,13 @@ var HealthApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
exports.
|
|
126
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* DefaultApi - functional programming interface
|
|
129
129
|
* @export
|
|
130
130
|
*/
|
|
131
|
-
var
|
|
132
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
131
|
+
var DefaultApiFp = function (configuration) {
|
|
132
|
+
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
133
133
|
return {
|
|
134
134
|
/**
|
|
135
135
|
*
|
|
@@ -151,13 +151,13 @@ var HealthApiFp = function (configuration) {
|
|
|
151
151
|
},
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
exports.
|
|
154
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
155
155
|
/**
|
|
156
|
-
*
|
|
156
|
+
* DefaultApi - factory interface
|
|
157
157
|
* @export
|
|
158
158
|
*/
|
|
159
|
-
var
|
|
160
|
-
var localVarFp = (0, exports.
|
|
159
|
+
var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
160
|
+
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
161
161
|
return {
|
|
162
162
|
/**
|
|
163
163
|
*
|
|
@@ -169,28 +169,28 @@ var HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
169
169
|
},
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
exports.
|
|
172
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* DefaultApi - object-oriented interface
|
|
175
175
|
* @export
|
|
176
|
-
* @class
|
|
176
|
+
* @class DefaultApi
|
|
177
177
|
* @extends {BaseAPI}
|
|
178
178
|
*/
|
|
179
|
-
var
|
|
180
|
-
__extends(
|
|
181
|
-
function
|
|
179
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
180
|
+
__extends(DefaultApi, _super);
|
|
181
|
+
function DefaultApi() {
|
|
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
|
|
188
|
+
* @memberof DefaultApi
|
|
189
189
|
*/
|
|
190
|
-
|
|
190
|
+
DefaultApi.prototype.check = function (options) {
|
|
191
191
|
var _this = this;
|
|
192
|
-
return (0, exports.
|
|
192
|
+
return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
193
193
|
};
|
|
194
|
-
return
|
|
194
|
+
return DefaultApi;
|
|
195
195
|
}(base_1.BaseAPI));
|
|
196
|
-
exports.
|
|
196
|
+
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.
|
|
@@ -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 {
|
|
250
|
+
* @param {'attachment' | 'inline'} [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 {
|
|
571
|
+
* @param {'attachment' | 'inline'} [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 {
|
|
712
|
+
* @param {'attachment' | 'inline'} [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
|
*/
|
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
|
@@ -290,56 +290,12 @@ 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
|
|
337
293
|
* @param {string} productSlug
|
|
338
294
|
* @param {string} [authorization] Bearer Token
|
|
339
295
|
* @param {*} [options] Override http request option.
|
|
340
296
|
* @throws {RequiredError}
|
|
341
297
|
*/
|
|
342
|
-
|
|
298
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
343
299
|
if (options === void 0) { options = {}; }
|
|
344
300
|
return __awaiter(_this, void 0, void 0, function () {
|
|
345
301
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -347,7 +303,7 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
347
303
|
switch (_a.label) {
|
|
348
304
|
case 0:
|
|
349
305
|
// verify required parameter 'productSlug' is not null or undefined
|
|
350
|
-
(0, common_1.assertParamExists)('
|
|
306
|
+
(0, common_1.assertParamExists)('initiateLead', 'productSlug', productSlug);
|
|
351
307
|
localVarPath = "/publicapi/v1/leads/initiate/{productSlug}"
|
|
352
308
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
353
309
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -582,37 +538,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
582
538
|
/**
|
|
583
539
|
* This will initiate a lead code.
|
|
584
540
|
* @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
|
|
605
541
|
* @param {string} productSlug
|
|
606
542
|
* @param {string} [authorization] Bearer Token
|
|
607
543
|
* @param {*} [options] Override http request option.
|
|
608
544
|
* @throws {RequiredError}
|
|
609
545
|
*/
|
|
610
|
-
|
|
546
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
611
547
|
return __awaiter(this, void 0, void 0, function () {
|
|
612
548
|
var localVarAxiosArgs;
|
|
613
549
|
return __generator(this, function (_a) {
|
|
614
550
|
switch (_a.label) {
|
|
615
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiateLead(productSlug, authorization, options)];
|
|
616
552
|
case 1:
|
|
617
553
|
localVarAxiosArgs = _a.sent();
|
|
618
554
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -721,23 +657,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
721
657
|
/**
|
|
722
658
|
* This will initiate a lead code.
|
|
723
659
|
* @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
|
|
734
660
|
* @param {string} productSlug
|
|
735
661
|
* @param {string} [authorization] Bearer Token
|
|
736
662
|
* @param {*} [options] Override http request option.
|
|
737
663
|
* @throws {RequiredError}
|
|
738
664
|
*/
|
|
739
|
-
|
|
740
|
-
return localVarFp.
|
|
665
|
+
initiateLead: function (productSlug, authorization, options) {
|
|
666
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
741
667
|
},
|
|
742
668
|
/**
|
|
743
669
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -835,20 +761,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
835
761
|
*/
|
|
836
762
|
LeadsApi.prototype.initiateLead = function (requestParameters, options) {
|
|
837
763
|
var _this = this;
|
|
838
|
-
|
|
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); });
|
|
764
|
+
return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
852
765
|
};
|
|
853
766
|
/**
|
|
854
767
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|