@emilgroup/accounting-sdk-node 1.13.0 → 1.13.1-beta.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 +15 -52
- package/README.md +2 -2
- package/api/booking-processes-api.ts +357 -0
- package/api/financial-accounts-api.ts +577 -0
- package/api/health-api.ts +7 -7
- package/api.ts +6 -14
- package/base.ts +9 -17
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/booking-processes-api.d.ts +207 -0
- package/dist/api/{zip-codes-api.js → booking-processes-api.js} +80 -166
- package/dist/api/financial-accounts-api.d.ts +327 -0
- package/dist/api/{vbas-api.js → financial-accounts-api.js} +156 -161
- package/dist/api/health-api.d.ts +6 -6
- package/dist/api/health-api.js +7 -7
- package/dist/api.d.ts +4 -8
- package/dist/api.js +4 -8
- package/dist/base.d.ts +3 -5
- package/dist/base.js +22 -28
- package/dist/common.d.ts +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/booking-entry-class.d.ts +123 -0
- package/dist/models/booking-entry-class.js +34 -0
- package/dist/models/booking-process-class.d.ts +94 -0
- package/dist/models/booking-process-class.js +29 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +99 -0
- package/dist/models/create-booking-entry-request-dto.js +34 -0
- package/dist/models/create-booking-process-request-dto.d.ts +64 -0
- package/dist/models/create-booking-process-request-dto.js +29 -0
- package/dist/models/create-booking-process-response-class.d.ts +25 -0
- package/dist/models/{address-class.js → create-booking-process-response-class.js} +2 -2
- package/dist/models/create-financial-account-request-dto.d.ts +62 -0
- package/dist/models/{create-user-request-dto.js → create-financial-account-request-dto.js} +9 -10
- package/dist/models/create-financial-account-response-class.d.ts +25 -0
- package/dist/models/{create-user-response-class.js → create-financial-account-response-class.js} +2 -2
- package/dist/models/financial-account-class.d.ts +98 -0
- package/dist/models/{user-class.js → financial-account-class.js} +9 -6
- package/dist/models/financial-transaction-class.d.ts +108 -0
- package/dist/models/{create-mailbox-request-dto.js → financial-transaction-class.js} +2 -2
- package/dist/models/financial-transaction-data-dto.d.ts +71 -0
- package/dist/models/{create-vba-request-dto.js → financial-transaction-data-dto.js} +6 -6
- package/dist/models/get-financial-account-response-class.d.ts +25 -0
- package/dist/models/{create-vba-response-class.js → get-financial-account-response-class.js} +2 -2
- package/dist/models/index.d.ts +13 -46
- package/dist/models/index.js +13 -46
- package/dist/models/inline-response200.d.ts +2 -2
- package/dist/models/inline-response200.js +2 -2
- package/dist/models/inline-response503.d.ts +2 -2
- package/dist/models/inline-response503.js +2 -2
- package/dist/models/list-booking-process-response-class.d.ts +31 -0
- package/dist/models/list-booking-process-response-class.js +15 -0
- package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
- package/dist/models/list-financial-accounts-response-class.js +15 -0
- package/index.ts +2 -2
- package/models/booking-entry-class.ts +133 -0
- package/models/booking-process-class.ts +104 -0
- package/models/create-booking-entry-request-dto.ts +109 -0
- package/models/create-booking-process-request-dto.ts +74 -0
- package/models/create-booking-process-response-class.ts +31 -0
- package/models/create-financial-account-request-dto.ts +71 -0
- package/models/create-financial-account-response-class.ts +31 -0
- package/models/financial-account-class.ts +107 -0
- package/models/financial-transaction-class.ts +114 -0
- package/models/financial-transaction-data-dto.ts +80 -0
- package/models/get-financial-account-response-class.ts +31 -0
- package/models/index.ts +13 -46
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/list-booking-process-response-class.ts +37 -0
- package/models/list-financial-accounts-response-class.ts +37 -0
- package/package.json +1 -1
- package/api/mailbox-api.ts +0 -255
- package/api/messages-api.ts +0 -1100
- package/api/users-api.ts +0 -496
- package/api/vbas-api.ts +0 -592
- package/api/vbus-api.ts +0 -701
- package/api/zip-codes-api.ts +0 -443
- package/dist/api/mailbox-api.d.ts +0 -142
- package/dist/api/mailbox-api.js +0 -315
- package/dist/api/messages-api.d.ts +0 -632
- package/dist/api/messages-api.js +0 -916
- package/dist/api/users-api.d.ts +0 -275
- package/dist/api/users-api.js +0 -512
- package/dist/api/vbas-api.d.ts +0 -337
- package/dist/api/vbus-api.d.ts +0 -395
- package/dist/api/vbus-api.js +0 -647
- package/dist/api/zip-codes-api.d.ts +0 -253
- package/dist/models/address-class.d.ts +0 -48
- package/dist/models/create-mailbox-request-dto.d.ts +0 -36
- package/dist/models/create-user-request-dto.d.ts +0 -76
- package/dist/models/create-user-response-class.d.ts +0 -25
- package/dist/models/create-vba-request-dto.d.ts +0 -41
- package/dist/models/create-vba-response-class.d.ts +0 -24
- package/dist/models/create-vbu-request-dto.d.ts +0 -41
- package/dist/models/create-vbu-request-dto.js +0 -20
- package/dist/models/create-vbu-response-class.d.ts +0 -24
- package/dist/models/create-vbu-response-class.js +0 -15
- package/dist/models/create-vbuv-request-dto.d.ts +0 -41
- package/dist/models/create-vbuv-request-dto.js +0 -20
- package/dist/models/create-vbuv-response-class.d.ts +0 -24
- package/dist/models/create-vbuv-response-class.js +0 -15
- package/dist/models/get-request-message-response-class.d.ts +0 -25
- package/dist/models/get-request-message-response-class.js +0 -15
- package/dist/models/get-response-message-response-class.d.ts +0 -25
- package/dist/models/get-response-message-response-class.js +0 -15
- package/dist/models/get-user-response-class.d.ts +0 -25
- package/dist/models/get-user-response-class.js +0 -15
- package/dist/models/get-vba-response-class.d.ts +0 -25
- package/dist/models/get-vba-response-class.js +0 -15
- package/dist/models/get-vbu-response-class.d.ts +0 -25
- package/dist/models/get-vbu-response-class.js +0 -15
- package/dist/models/get-zip-code-response-class.d.ts +0 -25
- package/dist/models/get-zip-code-response-class.js +0 -15
- package/dist/models/list-all-messages-response-class.d.ts +0 -31
- package/dist/models/list-all-messages-response-class.js +0 -15
- package/dist/models/list-requests-messages-response-class.d.ts +0 -31
- package/dist/models/list-requests-messages-response-class.js +0 -15
- package/dist/models/list-responses-messages-response-class.d.ts +0 -31
- package/dist/models/list-responses-messages-response-class.js +0 -15
- package/dist/models/list-users-response-class.d.ts +0 -31
- package/dist/models/list-users-response-class.js +0 -15
- package/dist/models/list-vbas-response-class.d.ts +0 -31
- package/dist/models/list-vbas-response-class.js +0 -15
- package/dist/models/list-vbus-response-class.d.ts +0 -31
- package/dist/models/list-vbus-response-class.js +0 -15
- package/dist/models/list-zip-codes-response-class.d.ts +0 -31
- package/dist/models/list-zip-codes-response-class.js +0 -15
- package/dist/models/message-class.d.ts +0 -84
- package/dist/models/message-class.js +0 -15
- package/dist/models/request-details-class.d.ts +0 -48
- package/dist/models/request-details-class.js +0 -15
- package/dist/models/request-message-class.d.ts +0 -121
- package/dist/models/request-message-class.js +0 -15
- package/dist/models/response-details-class.d.ts +0 -42
- package/dist/models/response-details-class.js +0 -15
- package/dist/models/response-message-class.d.ts +0 -133
- package/dist/models/response-message-class.js +0 -15
- package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
- package/dist/models/store-zip-codes-request-dto.js +0 -15
- package/dist/models/store-zip-codes-response-class.d.ts +0 -25
- package/dist/models/store-zip-codes-response-class.js +0 -15
- package/dist/models/update-request-message-request-dto.d.ts +0 -36
- package/dist/models/update-request-message-request-dto.js +0 -15
- package/dist/models/update-request-message-response-class.d.ts +0 -25
- package/dist/models/update-request-message-response-class.js +0 -15
- package/dist/models/update-response-message-request-dto.d.ts +0 -36
- package/dist/models/update-response-message-request-dto.js +0 -15
- package/dist/models/update-response-message-response-class.d.ts +0 -25
- package/dist/models/update-response-message-response-class.js +0 -15
- package/dist/models/update-user-request-dto.d.ts +0 -82
- package/dist/models/update-user-request-dto.js +0 -24
- package/dist/models/update-user-response-class.d.ts +0 -25
- package/dist/models/update-user-response-class.js +0 -15
- package/dist/models/update-vba-request-dto.d.ts +0 -30
- package/dist/models/update-vba-request-dto.js +0 -15
- package/dist/models/update-vbu-request-dto.d.ts +0 -30
- package/dist/models/update-vbu-request-dto.js +0 -15
- package/dist/models/update-vbu-response-class.d.ts +0 -25
- package/dist/models/update-vbu-response-class.js +0 -15
- package/dist/models/user-class.d.ts +0 -107
- package/dist/models/vba-class.d.ts +0 -116
- package/dist/models/vba-class.js +0 -15
- package/dist/models/vba-response-class.d.ts +0 -48
- package/dist/models/vba-response-class.js +0 -15
- package/dist/models/vbu-class.d.ts +0 -115
- package/dist/models/vbu-class.js +0 -15
- package/dist/models/vbu-response-class.d.ts +0 -48
- package/dist/models/vbu-response-class.js +0 -15
- package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
- package/dist/models/xlsx-zip-code-dto.js +0 -15
- package/dist/models/zip-code-class.d.ts +0 -60
- package/dist/models/zip-code-class.js +0 -15
- package/models/address-class.ts +0 -54
- package/models/create-mailbox-request-dto.ts +0 -42
- package/models/create-user-request-dto.ts +0 -86
- package/models/create-user-response-class.ts +0 -31
- package/models/create-vba-request-dto.ts +0 -50
- package/models/create-vba-response-class.ts +0 -30
- package/models/create-vbu-request-dto.ts +0 -50
- package/models/create-vbu-response-class.ts +0 -30
- package/models/create-vbuv-request-dto.ts +0 -50
- package/models/create-vbuv-response-class.ts +0 -30
- package/models/get-request-message-response-class.ts +0 -31
- package/models/get-response-message-response-class.ts +0 -31
- package/models/get-user-response-class.ts +0 -31
- package/models/get-vba-response-class.ts +0 -31
- package/models/get-vbu-response-class.ts +0 -31
- package/models/get-zip-code-response-class.ts +0 -31
- package/models/list-all-messages-response-class.ts +0 -37
- package/models/list-requests-messages-response-class.ts +0 -37
- package/models/list-responses-messages-response-class.ts +0 -37
- package/models/list-users-response-class.ts +0 -37
- package/models/list-vbas-response-class.ts +0 -37
- package/models/list-vbus-response-class.ts +0 -37
- package/models/list-zip-codes-response-class.ts +0 -37
- package/models/message-class.ts +0 -90
- package/models/request-details-class.ts +0 -54
- package/models/request-message-class.ts +0 -127
- package/models/response-details-class.ts +0 -48
- package/models/response-message-class.ts +0 -139
- package/models/store-zip-codes-request-dto.ts +0 -31
- package/models/store-zip-codes-response-class.ts +0 -31
- package/models/update-request-message-request-dto.ts +0 -42
- package/models/update-request-message-response-class.ts +0 -31
- package/models/update-response-message-request-dto.ts +0 -42
- package/models/update-response-message-response-class.ts +0 -31
- package/models/update-user-request-dto.ts +0 -92
- package/models/update-user-response-class.ts +0 -31
- package/models/update-vba-request-dto.ts +0 -36
- package/models/update-vbu-request-dto.ts +0 -36
- package/models/update-vbu-response-class.ts +0 -31
- package/models/user-class.ts +0 -116
- package/models/vba-class.ts +0 -122
- package/models/vba-response-class.ts +0 -54
- package/models/vbu-class.ts +0 -121
- package/models/vbu-response-class.ts +0 -54
- package/models/xlsx-zip-code-dto.ts +0 -36
- package/models/zip-code-class.ts +0 -66
package/api.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* EMIL
|
|
5
|
-
* The EMIL
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -24,20 +24,12 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { BookingProcessesApi } from './api';
|
|
28
|
+
import { FinancialAccountsApi } from './api';
|
|
27
29
|
import { HealthApi } from './api';
|
|
28
|
-
import { MailboxApi } from './api';
|
|
29
|
-
import { MessagesApi } from './api';
|
|
30
|
-
import { UsersApi } from './api';
|
|
31
|
-
import { VbasApi } from './api';
|
|
32
|
-
import { VbusApi } from './api';
|
|
33
|
-
import { ZipCodesApi } from './api';
|
|
34
30
|
|
|
35
31
|
|
|
32
|
+
export * from './api/booking-processes-api';
|
|
33
|
+
export * from './api/financial-accounts-api';
|
|
36
34
|
export * from './api/health-api';
|
|
37
|
-
export * from './api/mailbox-api';
|
|
38
|
-
export * from './api/messages-api';
|
|
39
|
-
export * from './api/users-api';
|
|
40
|
-
export * from './api/vbas-api';
|
|
41
|
-
export * from './api/vbus-api';
|
|
42
|
-
export * from './api/zip-codes-api';
|
|
43
35
|
|
package/base.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* EMIL
|
|
5
|
-
* The EMIL
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -79,7 +79,6 @@ export class BaseAPI {
|
|
|
79
79
|
protected configuration: Configuration;
|
|
80
80
|
private username?: string;
|
|
81
81
|
private password?: string;
|
|
82
|
-
private permissions?: string;
|
|
83
82
|
|
|
84
83
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
85
84
|
if (configuration) {
|
|
@@ -150,10 +149,6 @@ export class BaseAPI {
|
|
|
150
149
|
this.configuration.basePath = env;
|
|
151
150
|
}
|
|
152
151
|
|
|
153
|
-
getPermissions(): Array<string> {
|
|
154
|
-
return this.permissions.split(',');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
152
|
async authorize(username: string, password: string): Promise<void> {
|
|
158
153
|
const options: AxiosRequestConfig = {
|
|
159
154
|
method: 'POST',
|
|
@@ -168,21 +163,20 @@ export class BaseAPI {
|
|
|
168
163
|
|
|
169
164
|
const response = await globalAxios.request<LoginClass>(options);
|
|
170
165
|
|
|
171
|
-
const { data: { accessToken
|
|
166
|
+
const { data: { accessToken } } = response;
|
|
172
167
|
this.configuration.username = username;
|
|
173
168
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
174
|
-
this.permissions = permissions;
|
|
175
169
|
|
|
176
170
|
const refreshToken = this.extractRefreshToken(response)
|
|
177
171
|
this.configuration.refreshToken = refreshToken;
|
|
178
172
|
}
|
|
179
173
|
|
|
180
|
-
async refreshTokenInternal(): Promise<
|
|
174
|
+
async refreshTokenInternal(): Promise<string> {
|
|
181
175
|
const { username, refreshToken } = this.configuration;
|
|
182
176
|
|
|
183
177
|
|
|
184
178
|
if (!username || !refreshToken) {
|
|
185
|
-
|
|
179
|
+
return '';
|
|
186
180
|
}
|
|
187
181
|
|
|
188
182
|
const options: AxiosRequestConfig = {
|
|
@@ -196,9 +190,9 @@ export class BaseAPI {
|
|
|
196
190
|
withCredentials: true,
|
|
197
191
|
};
|
|
198
192
|
|
|
199
|
-
const
|
|
193
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
200
194
|
|
|
201
|
-
return
|
|
195
|
+
return accessToken;
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -227,9 +221,8 @@ export class BaseAPI {
|
|
|
227
221
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
228
222
|
originalConfig._retry = true;
|
|
229
223
|
try {
|
|
230
|
-
const
|
|
224
|
+
const tokenString = await this.refreshTokenInternal();
|
|
231
225
|
const accessToken = `Bearer ${tokenString}`;
|
|
232
|
-
this.permissions = permissions;
|
|
233
226
|
|
|
234
227
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
235
228
|
|
|
@@ -253,9 +246,8 @@ export class BaseAPI {
|
|
|
253
246
|
){
|
|
254
247
|
_retry_count++;
|
|
255
248
|
try {
|
|
256
|
-
const
|
|
249
|
+
const tokenString = await this.refreshTokenInternal();
|
|
257
250
|
const accessToken = `Bearer ${tokenString}`;
|
|
258
|
-
this.permissions = permissions;
|
|
259
251
|
|
|
260
252
|
_retry = true;
|
|
261
253
|
originalConfig.headers['Authorization'] = accessToken;
|
package/common.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* EMIL
|
|
5
|
-
* The EMIL
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -140,8 +140,8 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
|
|
|
140
140
|
/* tslint:disable */
|
|
141
141
|
/* eslint-disable */
|
|
142
142
|
/**
|
|
143
|
-
* EMIL
|
|
144
|
-
* The EMIL
|
|
143
|
+
* EMIL AccountingService
|
|
144
|
+
* The EMIL AccountingService API description
|
|
145
145
|
*
|
|
146
146
|
* The version of the OpenAPI document: 1.0
|
|
147
147
|
* Contact: kontakt@emil.de
|
package/configuration.ts
CHANGED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AccountingService
|
|
3
|
+
* The EMIL AccountingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateBookingProcessRequestDto } from '../models';
|
|
16
|
+
import { CreateBookingProcessResponseClass } from '../models';
|
|
17
|
+
import { ListBookingProcessResponseClass } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* BookingProcessesApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const BookingProcessesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* This endpoint creates a new booking process.
|
|
25
|
+
* @summary Create the booking process
|
|
26
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
27
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createBookingProcess: (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
34
|
+
* @summary List Booking processes
|
|
35
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
36
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
37
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
38
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
|
|
39
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
40
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
|
|
41
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
42
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
listBookingProcesses: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* BookingProcessesApi - functional programming interface
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const BookingProcessesApiFp: (configuration?: Configuration) => {
|
|
53
|
+
/**
|
|
54
|
+
* This endpoint creates a new booking process.
|
|
55
|
+
* @summary Create the booking process
|
|
56
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
57
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
64
|
+
* @summary List Booking processes
|
|
65
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
67
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
68
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
|
|
69
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
70
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
|
|
71
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
72
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* BookingProcessesApi - factory interface
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const BookingProcessesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
83
|
+
/**
|
|
84
|
+
* This endpoint creates a new booking process.
|
|
85
|
+
* @summary Create the booking process
|
|
86
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
87
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
94
|
+
* @summary List Booking processes
|
|
95
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
96
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
97
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
98
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
|
|
99
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
100
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
|
|
101
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
102
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass>;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Request parameters for createBookingProcess operation in BookingProcessesApi.
|
|
110
|
+
* @export
|
|
111
|
+
* @interface BookingProcessesApiCreateBookingProcessRequest
|
|
112
|
+
*/
|
|
113
|
+
export interface BookingProcessesApiCreateBookingProcessRequest {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {CreateBookingProcessRequestDto}
|
|
117
|
+
* @memberof BookingProcessesApiCreateBookingProcess
|
|
118
|
+
*/
|
|
119
|
+
readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto;
|
|
120
|
+
/**
|
|
121
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof BookingProcessesApiCreateBookingProcess
|
|
124
|
+
*/
|
|
125
|
+
readonly authorization?: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for listBookingProcesses operation in BookingProcessesApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface BookingProcessesApiListBookingProcessesRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface BookingProcessesApiListBookingProcessesRequest {
|
|
133
|
+
/**
|
|
134
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
137
|
+
*/
|
|
138
|
+
readonly authorization?: string;
|
|
139
|
+
/**
|
|
140
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
141
|
+
* @type {any}
|
|
142
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
143
|
+
*/
|
|
144
|
+
readonly pageSize?: any;
|
|
145
|
+
/**
|
|
146
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
147
|
+
* @type {any}
|
|
148
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
149
|
+
*/
|
|
150
|
+
readonly pageToken?: any;
|
|
151
|
+
/**
|
|
152
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code</i>
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
155
|
+
*/
|
|
156
|
+
readonly filter?: string;
|
|
157
|
+
/**
|
|
158
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
159
|
+
* @type {any}
|
|
160
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
161
|
+
*/
|
|
162
|
+
readonly search?: any;
|
|
163
|
+
/**
|
|
164
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, updatedAt, createdAt</i>
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
167
|
+
*/
|
|
168
|
+
readonly order?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
171
|
+
* @type {any}
|
|
172
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
173
|
+
*/
|
|
174
|
+
readonly expand?: any;
|
|
175
|
+
/**
|
|
176
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code</i>
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
179
|
+
*/
|
|
180
|
+
readonly filters?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* BookingProcessesApi - object-oriented interface
|
|
184
|
+
* @export
|
|
185
|
+
* @class BookingProcessesApi
|
|
186
|
+
* @extends {BaseAPI}
|
|
187
|
+
*/
|
|
188
|
+
export declare class BookingProcessesApi extends BaseAPI {
|
|
189
|
+
/**
|
|
190
|
+
* This endpoint creates a new booking process.
|
|
191
|
+
* @summary Create the booking process
|
|
192
|
+
* @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
* @memberof BookingProcessesApi
|
|
196
|
+
*/
|
|
197
|
+
createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingProcessResponseClass, any>>;
|
|
198
|
+
/**
|
|
199
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
200
|
+
* @summary List Booking processes
|
|
201
|
+
* @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof BookingProcessesApi
|
|
205
|
+
*/
|
|
206
|
+
listBookingProcesses(requestParameters?: BookingProcessesApiListBookingProcessesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingProcessResponseClass, any>>;
|
|
207
|
+
}
|