@emilgroup/customer-sdk-node 1.57.1-beta.10 → 1.57.1-beta.12
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 +3 -1
- package/README.md +2 -2
- package/api/customer-controller-rest-api.ts +2689 -0
- package/api/documents-api.ts +10 -8
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api.ts +4 -2
- package/dist/api/customer-controller-rest-api.d.ts +1529 -0
- package/dist/api/customer-controller-rest-api.js +2168 -0
- package/dist/api/documents-api.d.ts +9 -8
- package/dist/api/documents-api.js +3 -3
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/models/get-customer-document-download-url-request-dto.d.ts +29 -0
- package/dist/models/get-customer-document-download-url-request-dto.js +20 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/timeslice-class.d.ts +2 -2
- package/models/get-customer-document-download-url-request-dto.ts +38 -0
- package/models/index.ts +1 -0
- package/models/timeslice-class.ts +2 -2
- package/package.json +1 -1
package/api/documents-api.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { GetCustomerDocumentDownloadUrlRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { GetCustomerDocumentDownloadUrlResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
30
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -43,12 +45,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
43
45
|
* @summary Get a download url for document
|
|
44
46
|
* @param {string} documentCode The document code.
|
|
45
47
|
* @param {string} customerCode
|
|
46
|
-
* @param {
|
|
48
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
47
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
50
|
* @param {*} [options] Override http request option.
|
|
49
51
|
* @throws {RequiredError}
|
|
50
52
|
*/
|
|
51
|
-
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, contentDisposition?:
|
|
53
|
+
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
54
|
// verify required parameter 'documentCode' is not null or undefined
|
|
53
55
|
assertParamExists('getCustomerDocumentDownloadUrl', 'documentCode', documentCode)
|
|
54
56
|
// verify required parameter 'customerCode' is not null or undefined
|
|
@@ -221,12 +223,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
221
223
|
* @summary Get a download url for document
|
|
222
224
|
* @param {string} documentCode The document code.
|
|
223
225
|
* @param {string} customerCode
|
|
224
|
-
* @param {
|
|
226
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
225
227
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
226
228
|
* @param {*} [options] Override http request option.
|
|
227
229
|
* @throws {RequiredError}
|
|
228
230
|
*/
|
|
229
|
-
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
231
|
+
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>> {
|
|
230
232
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options);
|
|
231
233
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
234
|
},
|
|
@@ -276,12 +278,12 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
276
278
|
* @summary Get a download url for document
|
|
277
279
|
* @param {string} documentCode The document code.
|
|
278
280
|
* @param {string} customerCode
|
|
279
|
-
* @param {
|
|
281
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
280
282
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
281
283
|
* @param {*} [options] Override http request option.
|
|
282
284
|
* @throws {RequiredError}
|
|
283
285
|
*/
|
|
284
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
286
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
285
287
|
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
286
288
|
},
|
|
287
289
|
/**
|
|
@@ -338,10 +340,10 @@ export interface DocumentsApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
338
340
|
|
|
339
341
|
/**
|
|
340
342
|
* Content disposition override. Default will be depending on the document type.
|
|
341
|
-
* @type {
|
|
343
|
+
* @type {GetCustomerDocumentDownloadUrlRequestDto}
|
|
342
344
|
* @memberof DocumentsApiGetCustomerDocumentDownloadUrl
|
|
343
345
|
*/
|
|
344
|
-
readonly contentDisposition?:
|
|
346
|
+
readonly contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto
|
|
345
347
|
|
|
346
348
|
/**
|
|
347
349
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* HealthApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
@@ -69,11 +69,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* HealthApi - functional programming interface
|
|
73
73
|
* @export
|
|
74
74
|
*/
|
|
75
|
-
export const
|
|
76
|
-
const localVarAxiosParamCreator =
|
|
75
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
77
77
|
return {
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
@@ -88,11 +88,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* HealthApi - factory interface
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
95
|
-
const localVarFp =
|
|
94
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = HealthApiFp(configuration)
|
|
96
96
|
return {
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
@@ -106,19 +106,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* HealthApi - object-oriented interface
|
|
110
110
|
* @export
|
|
111
|
-
* @class
|
|
111
|
+
* @class HealthApi
|
|
112
112
|
* @extends {BaseAPI}
|
|
113
113
|
*/
|
|
114
|
-
export class
|
|
114
|
+
export class HealthApi extends BaseAPI {
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api.ts
CHANGED
|
@@ -26,9 +26,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AuthenticationApi } from './api';
|
|
28
28
|
import { ClaimsApi } from './api';
|
|
29
|
+
import { CustomerControllerRestApi } from './api';
|
|
29
30
|
import { CustomersApi } from './api';
|
|
30
|
-
import { DefaultApi } from './api';
|
|
31
31
|
import { DocumentsApi } from './api';
|
|
32
|
+
import { HealthApi } from './api';
|
|
32
33
|
import { InvitesApi } from './api';
|
|
33
34
|
import { InvoicesApi } from './api';
|
|
34
35
|
import { LeadsApi } from './api';
|
|
@@ -39,9 +40,10 @@ import { ProductsApi } from './api';
|
|
|
39
40
|
|
|
40
41
|
export * from './api/authentication-api';
|
|
41
42
|
export * from './api/claims-api';
|
|
43
|
+
export * from './api/customer-controller-rest-api';
|
|
42
44
|
export * from './api/customers-api';
|
|
43
|
-
export * from './api/default-api';
|
|
44
45
|
export * from './api/documents-api';
|
|
46
|
+
export * from './api/health-api';
|
|
45
47
|
export * from './api/invites-api';
|
|
46
48
|
export * from './api/invoices-api';
|
|
47
49
|
export * from './api/leads-api';
|