@emilgroup/customer-sdk 1.56.1-beta.0 → 1.56.1-beta.13
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 +2686 -0
- package/api/documents-api.ts +10 -8
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api.ts +4 -2
- package/base.ts +1 -0
- package/dist/api/customer-controller-rest-api.d.ts +1529 -0
- package/dist/api/customer-controller-rest-api.js +2165 -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/base.d.ts +2 -1
- package/dist/base.js +1 -0
- 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 +2 -2
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';
|
|
@@ -40,12 +42,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
40
42
|
* @summary Get a download url for document
|
|
41
43
|
* @param {string} documentCode The document code.
|
|
42
44
|
* @param {string} customerCode
|
|
43
|
-
* @param {
|
|
45
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
44
46
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
47
|
* @param {*} [options] Override http request option.
|
|
46
48
|
* @throws {RequiredError}
|
|
47
49
|
*/
|
|
48
|
-
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, contentDisposition?:
|
|
50
|
+
getCustomerDocumentDownloadUrl: async (documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
51
|
// verify required parameter 'documentCode' is not null or undefined
|
|
50
52
|
assertParamExists('getCustomerDocumentDownloadUrl', 'documentCode', documentCode)
|
|
51
53
|
// verify required parameter 'customerCode' is not null or undefined
|
|
@@ -218,12 +220,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
218
220
|
* @summary Get a download url for document
|
|
219
221
|
* @param {string} documentCode The document code.
|
|
220
222
|
* @param {string} customerCode
|
|
221
|
-
* @param {
|
|
223
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
222
224
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
223
225
|
* @param {*} [options] Override http request option.
|
|
224
226
|
* @throws {RequiredError}
|
|
225
227
|
*/
|
|
226
|
-
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
228
|
+
async getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass>> {
|
|
227
229
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options);
|
|
228
230
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
229
231
|
},
|
|
@@ -273,12 +275,12 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
273
275
|
* @summary Get a download url for document
|
|
274
276
|
* @param {string} documentCode The document code.
|
|
275
277
|
* @param {string} customerCode
|
|
276
|
-
* @param {
|
|
278
|
+
* @param {GetCustomerDocumentDownloadUrlRequestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
277
279
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
280
|
* @param {*} [options] Override http request option.
|
|
279
281
|
* @throws {RequiredError}
|
|
280
282
|
*/
|
|
281
|
-
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?:
|
|
283
|
+
getCustomerDocumentDownloadUrl(documentCode: string, customerCode: string, contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto, authorization?: string, options?: any): AxiosPromise<GetCustomerDocumentDownloadUrlResponseClass> {
|
|
282
284
|
return localVarFp.getCustomerDocumentDownloadUrl(documentCode, customerCode, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
283
285
|
},
|
|
284
286
|
/**
|
|
@@ -335,10 +337,10 @@ export interface DocumentsApiGetCustomerDocumentDownloadUrlRequest {
|
|
|
335
337
|
|
|
336
338
|
/**
|
|
337
339
|
* Content disposition override. Default will be depending on the document type.
|
|
338
|
-
* @type {
|
|
340
|
+
* @type {GetCustomerDocumentDownloadUrlRequestDto}
|
|
339
341
|
* @memberof DocumentsApiGetCustomerDocumentDownloadUrl
|
|
340
342
|
*/
|
|
341
|
-
readonly contentDisposition?:
|
|
343
|
+
readonly contentDisposition?: GetCustomerDocumentDownloadUrlRequestDto
|
|
342
344
|
|
|
343
345
|
/**
|
|
344
346
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -26,10 +26,10 @@ import { InlineResponse200 } from '../models';
|
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
// URLSearchParams not necessarily used
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* HealthApi - axios parameter creator
|
|
30
30
|
* @export
|
|
31
31
|
*/
|
|
32
|
-
export const
|
|
32
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -66,11 +66,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* HealthApi - functional programming interface
|
|
70
70
|
* @export
|
|
71
71
|
*/
|
|
72
|
-
export const
|
|
73
|
-
const localVarAxiosParamCreator =
|
|
72
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
@@ -85,11 +85,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* HealthApi - factory interface
|
|
89
89
|
* @export
|
|
90
90
|
*/
|
|
91
|
-
export const
|
|
92
|
-
const localVarFp =
|
|
91
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
92
|
+
const localVarFp = HealthApiFp(configuration)
|
|
93
93
|
return {
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
@@ -103,19 +103,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* HealthApi - object-oriented interface
|
|
107
107
|
* @export
|
|
108
|
-
* @class
|
|
108
|
+
* @class HealthApi
|
|
109
109
|
* @extends {BaseAPI}
|
|
110
110
|
*/
|
|
111
|
-
export class
|
|
111
|
+
export class HealthApi extends BaseAPI {
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
116
|
-
* @memberof
|
|
116
|
+
* @memberof HealthApi
|
|
117
117
|
*/
|
|
118
118
|
public check(options?: AxiosRequestConfig) {
|
|
119
|
-
return
|
|
119
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
120
120
|
}
|
|
121
121
|
}
|
package/api.ts
CHANGED
|
@@ -22,9 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { AuthenticationApi } from './api';
|
|
24
24
|
import { ClaimsApi } from './api';
|
|
25
|
+
import { CustomerControllerRestApi } from './api';
|
|
25
26
|
import { CustomersApi } from './api';
|
|
26
|
-
import { DefaultApi } from './api';
|
|
27
27
|
import { DocumentsApi } from './api';
|
|
28
|
+
import { HealthApi } from './api';
|
|
28
29
|
import { InvitesApi } from './api';
|
|
29
30
|
import { InvoicesApi } from './api';
|
|
30
31
|
import { LeadsApi } from './api';
|
|
@@ -35,9 +36,10 @@ import { ProductsApi } from './api';
|
|
|
35
36
|
|
|
36
37
|
export * from './api/authentication-api';
|
|
37
38
|
export * from './api/claims-api';
|
|
39
|
+
export * from './api/customer-controller-rest-api';
|
|
38
40
|
export * from './api/customers-api';
|
|
39
|
-
export * from './api/default-api';
|
|
40
41
|
export * from './api/documents-api';
|
|
42
|
+
export * from './api/health-api';
|
|
41
43
|
export * from './api/invites-api';
|
|
42
44
|
export * from './api/invoices-api';
|
|
43
45
|
export * from './api/leads-api';
|
package/base.ts
CHANGED
|
@@ -43,6 +43,7 @@ export enum Environment {
|
|
|
43
43
|
Staging = 'https://apiv2-staging.emil.de',
|
|
44
44
|
Development = 'https://apiv2-dev.emil.de',
|
|
45
45
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
46
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
let _retry_count = 0
|