@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.
Files changed (222) hide show
  1. package/.openapi-generator/FILES +15 -52
  2. package/README.md +2 -2
  3. package/api/booking-processes-api.ts +357 -0
  4. package/api/financial-accounts-api.ts +577 -0
  5. package/api/health-api.ts +7 -7
  6. package/api.ts +6 -14
  7. package/base.ts +9 -17
  8. package/common.ts +4 -4
  9. package/configuration.ts +2 -2
  10. package/dist/api/booking-processes-api.d.ts +207 -0
  11. package/dist/api/{zip-codes-api.js → booking-processes-api.js} +80 -166
  12. package/dist/api/financial-accounts-api.d.ts +327 -0
  13. package/dist/api/{vbas-api.js → financial-accounts-api.js} +156 -161
  14. package/dist/api/health-api.d.ts +6 -6
  15. package/dist/api/health-api.js +7 -7
  16. package/dist/api.d.ts +4 -8
  17. package/dist/api.js +4 -8
  18. package/dist/base.d.ts +3 -5
  19. package/dist/base.js +22 -28
  20. package/dist/common.d.ts +4 -4
  21. package/dist/common.js +2 -2
  22. package/dist/configuration.d.ts +2 -2
  23. package/dist/configuration.js +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +2 -2
  26. package/dist/models/booking-entry-class.d.ts +123 -0
  27. package/dist/models/booking-entry-class.js +34 -0
  28. package/dist/models/booking-process-class.d.ts +94 -0
  29. package/dist/models/booking-process-class.js +29 -0
  30. package/dist/models/create-booking-entry-request-dto.d.ts +99 -0
  31. package/dist/models/create-booking-entry-request-dto.js +34 -0
  32. package/dist/models/create-booking-process-request-dto.d.ts +64 -0
  33. package/dist/models/create-booking-process-request-dto.js +29 -0
  34. package/dist/models/create-booking-process-response-class.d.ts +25 -0
  35. package/dist/models/{address-class.js → create-booking-process-response-class.js} +2 -2
  36. package/dist/models/create-financial-account-request-dto.d.ts +62 -0
  37. package/dist/models/{create-user-request-dto.js → create-financial-account-request-dto.js} +9 -10
  38. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  39. package/dist/models/{create-user-response-class.js → create-financial-account-response-class.js} +2 -2
  40. package/dist/models/financial-account-class.d.ts +98 -0
  41. package/dist/models/{user-class.js → financial-account-class.js} +9 -6
  42. package/dist/models/financial-transaction-class.d.ts +108 -0
  43. package/dist/models/{create-mailbox-request-dto.js → financial-transaction-class.js} +2 -2
  44. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  45. package/dist/models/{create-vba-request-dto.js → financial-transaction-data-dto.js} +6 -6
  46. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  47. package/dist/models/{create-vba-response-class.js → get-financial-account-response-class.js} +2 -2
  48. package/dist/models/index.d.ts +13 -46
  49. package/dist/models/index.js +13 -46
  50. package/dist/models/inline-response200.d.ts +2 -2
  51. package/dist/models/inline-response200.js +2 -2
  52. package/dist/models/inline-response503.d.ts +2 -2
  53. package/dist/models/inline-response503.js +2 -2
  54. package/dist/models/list-booking-process-response-class.d.ts +31 -0
  55. package/dist/models/list-booking-process-response-class.js +15 -0
  56. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  57. package/dist/models/list-financial-accounts-response-class.js +15 -0
  58. package/index.ts +2 -2
  59. package/models/booking-entry-class.ts +133 -0
  60. package/models/booking-process-class.ts +104 -0
  61. package/models/create-booking-entry-request-dto.ts +109 -0
  62. package/models/create-booking-process-request-dto.ts +74 -0
  63. package/models/create-booking-process-response-class.ts +31 -0
  64. package/models/create-financial-account-request-dto.ts +71 -0
  65. package/models/create-financial-account-response-class.ts +31 -0
  66. package/models/financial-account-class.ts +107 -0
  67. package/models/financial-transaction-class.ts +114 -0
  68. package/models/financial-transaction-data-dto.ts +80 -0
  69. package/models/get-financial-account-response-class.ts +31 -0
  70. package/models/index.ts +13 -46
  71. package/models/inline-response200.ts +2 -2
  72. package/models/inline-response503.ts +2 -2
  73. package/models/list-booking-process-response-class.ts +37 -0
  74. package/models/list-financial-accounts-response-class.ts +37 -0
  75. package/package.json +1 -1
  76. package/api/mailbox-api.ts +0 -255
  77. package/api/messages-api.ts +0 -1100
  78. package/api/users-api.ts +0 -496
  79. package/api/vbas-api.ts +0 -592
  80. package/api/vbus-api.ts +0 -701
  81. package/api/zip-codes-api.ts +0 -443
  82. package/dist/api/mailbox-api.d.ts +0 -142
  83. package/dist/api/mailbox-api.js +0 -315
  84. package/dist/api/messages-api.d.ts +0 -632
  85. package/dist/api/messages-api.js +0 -916
  86. package/dist/api/users-api.d.ts +0 -275
  87. package/dist/api/users-api.js +0 -512
  88. package/dist/api/vbas-api.d.ts +0 -337
  89. package/dist/api/vbus-api.d.ts +0 -395
  90. package/dist/api/vbus-api.js +0 -647
  91. package/dist/api/zip-codes-api.d.ts +0 -253
  92. package/dist/models/address-class.d.ts +0 -48
  93. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  94. package/dist/models/create-user-request-dto.d.ts +0 -76
  95. package/dist/models/create-user-response-class.d.ts +0 -25
  96. package/dist/models/create-vba-request-dto.d.ts +0 -41
  97. package/dist/models/create-vba-response-class.d.ts +0 -24
  98. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  99. package/dist/models/create-vbu-request-dto.js +0 -20
  100. package/dist/models/create-vbu-response-class.d.ts +0 -24
  101. package/dist/models/create-vbu-response-class.js +0 -15
  102. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  103. package/dist/models/create-vbuv-request-dto.js +0 -20
  104. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  105. package/dist/models/create-vbuv-response-class.js +0 -15
  106. package/dist/models/get-request-message-response-class.d.ts +0 -25
  107. package/dist/models/get-request-message-response-class.js +0 -15
  108. package/dist/models/get-response-message-response-class.d.ts +0 -25
  109. package/dist/models/get-response-message-response-class.js +0 -15
  110. package/dist/models/get-user-response-class.d.ts +0 -25
  111. package/dist/models/get-user-response-class.js +0 -15
  112. package/dist/models/get-vba-response-class.d.ts +0 -25
  113. package/dist/models/get-vba-response-class.js +0 -15
  114. package/dist/models/get-vbu-response-class.d.ts +0 -25
  115. package/dist/models/get-vbu-response-class.js +0 -15
  116. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  117. package/dist/models/get-zip-code-response-class.js +0 -15
  118. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  119. package/dist/models/list-all-messages-response-class.js +0 -15
  120. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  121. package/dist/models/list-requests-messages-response-class.js +0 -15
  122. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  123. package/dist/models/list-responses-messages-response-class.js +0 -15
  124. package/dist/models/list-users-response-class.d.ts +0 -31
  125. package/dist/models/list-users-response-class.js +0 -15
  126. package/dist/models/list-vbas-response-class.d.ts +0 -31
  127. package/dist/models/list-vbas-response-class.js +0 -15
  128. package/dist/models/list-vbus-response-class.d.ts +0 -31
  129. package/dist/models/list-vbus-response-class.js +0 -15
  130. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  131. package/dist/models/list-zip-codes-response-class.js +0 -15
  132. package/dist/models/message-class.d.ts +0 -84
  133. package/dist/models/message-class.js +0 -15
  134. package/dist/models/request-details-class.d.ts +0 -48
  135. package/dist/models/request-details-class.js +0 -15
  136. package/dist/models/request-message-class.d.ts +0 -121
  137. package/dist/models/request-message-class.js +0 -15
  138. package/dist/models/response-details-class.d.ts +0 -42
  139. package/dist/models/response-details-class.js +0 -15
  140. package/dist/models/response-message-class.d.ts +0 -133
  141. package/dist/models/response-message-class.js +0 -15
  142. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  143. package/dist/models/store-zip-codes-request-dto.js +0 -15
  144. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  145. package/dist/models/store-zip-codes-response-class.js +0 -15
  146. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  147. package/dist/models/update-request-message-request-dto.js +0 -15
  148. package/dist/models/update-request-message-response-class.d.ts +0 -25
  149. package/dist/models/update-request-message-response-class.js +0 -15
  150. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  151. package/dist/models/update-response-message-request-dto.js +0 -15
  152. package/dist/models/update-response-message-response-class.d.ts +0 -25
  153. package/dist/models/update-response-message-response-class.js +0 -15
  154. package/dist/models/update-user-request-dto.d.ts +0 -82
  155. package/dist/models/update-user-request-dto.js +0 -24
  156. package/dist/models/update-user-response-class.d.ts +0 -25
  157. package/dist/models/update-user-response-class.js +0 -15
  158. package/dist/models/update-vba-request-dto.d.ts +0 -30
  159. package/dist/models/update-vba-request-dto.js +0 -15
  160. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  161. package/dist/models/update-vbu-request-dto.js +0 -15
  162. package/dist/models/update-vbu-response-class.d.ts +0 -25
  163. package/dist/models/update-vbu-response-class.js +0 -15
  164. package/dist/models/user-class.d.ts +0 -107
  165. package/dist/models/vba-class.d.ts +0 -116
  166. package/dist/models/vba-class.js +0 -15
  167. package/dist/models/vba-response-class.d.ts +0 -48
  168. package/dist/models/vba-response-class.js +0 -15
  169. package/dist/models/vbu-class.d.ts +0 -115
  170. package/dist/models/vbu-class.js +0 -15
  171. package/dist/models/vbu-response-class.d.ts +0 -48
  172. package/dist/models/vbu-response-class.js +0 -15
  173. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  174. package/dist/models/xlsx-zip-code-dto.js +0 -15
  175. package/dist/models/zip-code-class.d.ts +0 -60
  176. package/dist/models/zip-code-class.js +0 -15
  177. package/models/address-class.ts +0 -54
  178. package/models/create-mailbox-request-dto.ts +0 -42
  179. package/models/create-user-request-dto.ts +0 -86
  180. package/models/create-user-response-class.ts +0 -31
  181. package/models/create-vba-request-dto.ts +0 -50
  182. package/models/create-vba-response-class.ts +0 -30
  183. package/models/create-vbu-request-dto.ts +0 -50
  184. package/models/create-vbu-response-class.ts +0 -30
  185. package/models/create-vbuv-request-dto.ts +0 -50
  186. package/models/create-vbuv-response-class.ts +0 -30
  187. package/models/get-request-message-response-class.ts +0 -31
  188. package/models/get-response-message-response-class.ts +0 -31
  189. package/models/get-user-response-class.ts +0 -31
  190. package/models/get-vba-response-class.ts +0 -31
  191. package/models/get-vbu-response-class.ts +0 -31
  192. package/models/get-zip-code-response-class.ts +0 -31
  193. package/models/list-all-messages-response-class.ts +0 -37
  194. package/models/list-requests-messages-response-class.ts +0 -37
  195. package/models/list-responses-messages-response-class.ts +0 -37
  196. package/models/list-users-response-class.ts +0 -37
  197. package/models/list-vbas-response-class.ts +0 -37
  198. package/models/list-vbus-response-class.ts +0 -37
  199. package/models/list-zip-codes-response-class.ts +0 -37
  200. package/models/message-class.ts +0 -90
  201. package/models/request-details-class.ts +0 -54
  202. package/models/request-message-class.ts +0 -127
  203. package/models/response-details-class.ts +0 -48
  204. package/models/response-message-class.ts +0 -139
  205. package/models/store-zip-codes-request-dto.ts +0 -31
  206. package/models/store-zip-codes-response-class.ts +0 -31
  207. package/models/update-request-message-request-dto.ts +0 -42
  208. package/models/update-request-message-response-class.ts +0 -31
  209. package/models/update-response-message-request-dto.ts +0 -42
  210. package/models/update-response-message-response-class.ts +0 -31
  211. package/models/update-user-request-dto.ts +0 -92
  212. package/models/update-user-response-class.ts +0 -31
  213. package/models/update-vba-request-dto.ts +0 -36
  214. package/models/update-vbu-request-dto.ts +0 -36
  215. package/models/update-vbu-response-class.ts +0 -31
  216. package/models/user-class.ts +0 -116
  217. package/models/vba-class.ts +0 -122
  218. package/models/vba-response-class.ts +0 -54
  219. package/models/vbu-class.ts +0 -121
  220. package/models/vbu-response-class.ts +0 -54
  221. package/models/xlsx-zip-code-dto.ts +0 -36
  222. 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 GdvService
5
- * The EMIL GdvService API description
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 GdvService
5
- * The EMIL GdvService API description
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, permissions } } = response;
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<LoginClass> {
174
+ async refreshTokenInternal(): Promise<string> {
181
175
  const { username, refreshToken } = this.configuration;
182
176
 
183
177
 
184
178
  if (!username || !refreshToken) {
185
- throw new Error('Failed to refresh token.');
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 response = await globalAxios.request<LoginClass>(options);
193
+ const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
200
194
 
201
- return response.data;
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 { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
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 { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
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 GdvService
5
- * The EMIL GdvService API description
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 GdvService
144
- * The EMIL GdvService API description
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
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * EMIL GdvService
5
- * The EMIL GdvService API description
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
@@ -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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
39
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
69
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
99
+ * @param {any} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
153
+ * @type {string}
154
+ * @memberof BookingProcessesApiListBookingProcesses
155
+ */
156
+ readonly filter?: string;
157
+ /**
158
+ * To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, updatedAt, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code&lt;/i&gt;
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
+ }