@emilgroup/customer-sdk-node 1.33.1-beta.0 → 1.34.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/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.34.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.34.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -41,11 +41,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
41
41
|
* @summary Get a download url for document
|
|
42
42
|
* @param {string} documentCode The document code.
|
|
43
43
|
* @param {string} customerCode
|
|
44
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
44
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
46
|
* @param {*} [options] Override http request option.
|
|
46
47
|
* @throws {RequiredError}
|
|
47
48
|
*/
|
|
48
|
-
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
50
|
// verify required parameter 'documentCode' is not null or undefined
|
|
50
51
|
assertParamExists('getCustomerDocumentDownloadUrl', 'documentCode', documentCode)
|
|
51
52
|
// verify required parameter 'customerCode' is not null or undefined
|
|
@@ -66,6 +67,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
66
67
|
const localVarHeaderParameter = {} as any;
|
|
67
68
|
const localVarQueryParameter = {} as any;
|
|
68
69
|
|
|
70
|
+
if (contentDisposition !== undefined) {
|
|
71
|
+
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
70
75
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
76
|
}
|
|
@@ -208,12 +213,13 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
208
213
|
* @summary Get a download url for document
|
|
209
214
|
* @param {string} documentCode The document code.
|
|
210
215
|
* @param {string} customerCode
|
|
216
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
211
217
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
212
218
|
* @param {*} [options] Override http request option.
|
|
213
219
|
* @throws {RequiredError}
|
|
214
220
|
*/
|
|
215
|
-
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>> {
|
|
216
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options);
|
|
221
|
+
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>> {
|
|
222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options);
|
|
217
223
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
218
224
|
},
|
|
219
225
|
/**
|
|
@@ -261,12 +267,13 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
261
267
|
* @summary Get a download url for document
|
|
262
268
|
* @param {string} documentCode The document code.
|
|
263
269
|
* @param {string} customerCode
|
|
270
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
264
271
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
265
272
|
* @param {*} [options] Override http request option.
|
|
266
273
|
* @throws {RequiredError}
|
|
267
274
|
*/
|
|
268
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
269
|
-
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then((request) => request(axios, basePath));
|
|
275
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
276
|
+
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
270
277
|
},
|
|
271
278
|
/**
|
|
272
279
|
* List all the documents of a customer.
|
|
@@ -319,6 +326,13 @@ export interface DocumentsApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
319
326
|
*/
|
|
320
327
|
readonly customerCode: string
|
|
321
328
|
|
|
329
|
+
/**
|
|
330
|
+
* Content disposition override. Default will be depending on the document type.
|
|
331
|
+
* @type {'attachment' | 'inline'}
|
|
332
|
+
* @memberof DocumentsApiGetCustomerDocumentDownloadUrl
|
|
333
|
+
*/
|
|
334
|
+
readonly contentDisposition?: 'attachment' | 'inline'
|
|
335
|
+
|
|
322
336
|
/**
|
|
323
337
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
338
|
* @type {string}
|
|
@@ -427,7 +441,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
427
441
|
* @memberof DocumentsApi
|
|
428
442
|
*/
|
|
429
443
|
public getCustomerDocumentDownloadUrl(requestParameters: DocumentsApiGetCustomerDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
430
|
-
return DocumentsApiFp(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
444
|
+
return DocumentsApiFp(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
431
445
|
}
|
|
432
446
|
|
|
433
447
|
/**
|
|
@@ -25,11 +25,12 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
25
25
|
* @summary Get a download url for document
|
|
26
26
|
* @param {string} documentCode The document code.
|
|
27
27
|
* @param {string} customerCode
|
|
28
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
28
29
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
29
30
|
* @param {*} [options] Override http request option.
|
|
30
31
|
* @throws {RequiredError}
|
|
31
32
|
*/
|
|
32
|
-
getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
getCustomerDocumentDownloadUrl: (documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
34
|
/**
|
|
34
35
|
* List all the documents of a customer.
|
|
35
36
|
* @summary List documents of a customer
|
|
@@ -65,11 +66,12 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
65
66
|
* @summary Get a download url for document
|
|
66
67
|
* @param {string} documentCode The document code.
|
|
67
68
|
* @param {string} customerCode
|
|
69
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
68
70
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
69
71
|
* @param {*} [options] Override http request option.
|
|
70
72
|
* @throws {RequiredError}
|
|
71
73
|
*/
|
|
72
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
|
|
74
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>>;
|
|
73
75
|
/**
|
|
74
76
|
* List all the documents of a customer.
|
|
75
77
|
* @summary List documents of a customer
|
|
@@ -105,11 +107,12 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
105
107
|
* @summary Get a download url for document
|
|
106
108
|
* @param {string} documentCode The document code.
|
|
107
109
|
* @param {string} customerCode
|
|
110
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
108
111
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
109
112
|
* @param {*} [options] Override http request option.
|
|
110
113
|
* @throws {RequiredError}
|
|
111
114
|
*/
|
|
112
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
|
|
115
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>;
|
|
113
116
|
/**
|
|
114
117
|
* List all the documents of a customer.
|
|
115
118
|
* @summary List documents of a customer
|
|
@@ -153,6 +156,12 @@ export interface DocumentsApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
153
156
|
* @memberof DocumentsApiGetCustomerDocumentDownloadUrl
|
|
154
157
|
*/
|
|
155
158
|
readonly customerCode: string;
|
|
159
|
+
/**
|
|
160
|
+
* Content disposition override. Default will be depending on the document type.
|
|
161
|
+
* @type {'attachment' | 'inline'}
|
|
162
|
+
* @memberof DocumentsApiGetCustomerDocumentDownloadUrl
|
|
163
|
+
*/
|
|
164
|
+
readonly contentDisposition?: 'attachment' | 'inline';
|
|
156
165
|
/**
|
|
157
166
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
167
|
* @type {string}
|
|
@@ -101,11 +101,12 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @summary Get a download url for document
|
|
102
102
|
* @param {string} documentCode The document code.
|
|
103
103
|
* @param {string} customerCode
|
|
104
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
104
105
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
|
|
109
|
+
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, contentDisposition, authorization, options) {
|
|
109
110
|
if (options === void 0) { options = {}; }
|
|
110
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -125,6 +126,9 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
126
127
|
localVarHeaderParameter = {};
|
|
127
128
|
localVarQueryParameter = {};
|
|
129
|
+
if (contentDisposition !== undefined) {
|
|
130
|
+
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
131
|
+
}
|
|
128
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
134
|
}
|
|
@@ -253,16 +257,17 @@ var DocumentsApiFp = function (configuration) {
|
|
|
253
257
|
* @summary Get a download url for document
|
|
254
258
|
* @param {string} documentCode The document code.
|
|
255
259
|
* @param {string} customerCode
|
|
260
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
256
261
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
262
|
* @param {*} [options] Override http request option.
|
|
258
263
|
* @throws {RequiredError}
|
|
259
264
|
*/
|
|
260
|
-
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
|
|
265
|
+
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, contentDisposition, authorization, options) {
|
|
261
266
|
return __awaiter(this, void 0, void 0, function () {
|
|
262
267
|
var localVarAxiosArgs;
|
|
263
268
|
return __generator(this, function (_a) {
|
|
264
269
|
switch (_a.label) {
|
|
265
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options)];
|
|
270
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options)];
|
|
266
271
|
case 1:
|
|
267
272
|
localVarAxiosArgs = _a.sent();
|
|
268
273
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -333,12 +338,13 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
333
338
|
* @summary Get a download url for document
|
|
334
339
|
* @param {string} documentCode The document code.
|
|
335
340
|
* @param {string} customerCode
|
|
341
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
336
342
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
343
|
* @param {*} [options] Override http request option.
|
|
338
344
|
* @throws {RequiredError}
|
|
339
345
|
*/
|
|
340
|
-
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, authorization, options) {
|
|
341
|
-
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
346
|
+
getCustomerDocumentDownloadUrl: function (documentCode, customerCode, contentDisposition, authorization, options) {
|
|
347
|
+
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
342
348
|
},
|
|
343
349
|
/**
|
|
344
350
|
* List all the documents of a customer.
|
|
@@ -392,7 +398,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
392
398
|
*/
|
|
393
399
|
DocumentsApi.prototype.getCustomerDocumentDownloadUrl = function (requestParameters, options) {
|
|
394
400
|
var _this = this;
|
|
395
|
-
return (0, exports.DocumentsApiFp)(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
401
|
+
return (0, exports.DocumentsApiFp)(this.configuration).getCustomerDocumentDownloadUrl(requestParameters.documentCode, requestParameters.customerCode, requestParameters.contentDisposition, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
396
402
|
};
|
|
397
403
|
/**
|
|
398
404
|
* List all the documents of a customer.
|
|
@@ -80,4 +80,16 @@ export interface CreateLeadRequestDto {
|
|
|
80
80
|
* @memberof CreateLeadRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'paymentMethod': CreatePaymentMethodRequestDto;
|
|
83
|
+
/**
|
|
84
|
+
* Unique identifier of the partner that this object belongs to.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreateLeadRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'partnerCode'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Unique identifier of the partner role that this object belongs to.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateLeadRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'partnerRoleCode'?: string;
|
|
83
95
|
}
|
|
@@ -85,5 +85,17 @@ export interface CreateLeadRequestDto {
|
|
|
85
85
|
* @memberof CreateLeadRequestDto
|
|
86
86
|
*/
|
|
87
87
|
'paymentMethod': CreatePaymentMethodRequestDto;
|
|
88
|
+
/**
|
|
89
|
+
* Unique identifier of the partner that this object belongs to.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CreateLeadRequestDto
|
|
92
|
+
*/
|
|
93
|
+
'partnerCode'?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Unique identifier of the partner role that this object belongs to.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof CreateLeadRequestDto
|
|
98
|
+
*/
|
|
99
|
+
'partnerRoleCode'?: string;
|
|
88
100
|
}
|
|
89
101
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/customer-sdk-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/customer-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
27
|
"typescript": "^4.0"
|
|
28
28
|
}
|
|
29
29
|
}
|