@emilgroup/accounting-sdk 1.15.0 → 1.16.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 (223) hide show
  1. package/.openapi-generator/FILES +52 -15
  2. package/README.md +2 -2
  3. package/api/health-api.ts +7 -7
  4. package/api/mailbox-api.ts +251 -0
  5. package/api/messages-api.ts +1096 -0
  6. package/api/users-api.ts +492 -0
  7. package/api/vbas-api.ts +588 -0
  8. package/api/vbus-api.ts +697 -0
  9. package/api/zip-codes-api.ts +439 -0
  10. package/api.ts +14 -6
  11. package/base.ts +2 -2
  12. package/common.ts +4 -4
  13. package/configuration.ts +2 -2
  14. package/dist/api/health-api.d.ts +6 -6
  15. package/dist/api/health-api.js +7 -7
  16. package/dist/api/mailbox-api.d.ts +142 -0
  17. package/dist/api/mailbox-api.js +311 -0
  18. package/dist/api/messages-api.d.ts +632 -0
  19. package/dist/api/messages-api.js +912 -0
  20. package/dist/api/users-api.d.ts +275 -0
  21. package/dist/api/users-api.js +508 -0
  22. package/dist/api/vbas-api.d.ts +337 -0
  23. package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
  24. package/dist/api/vbus-api.d.ts +395 -0
  25. package/dist/api/vbus-api.js +643 -0
  26. package/dist/api/zip-codes-api.d.ts +253 -0
  27. package/dist/api/{booking-processes-api.js → zip-codes-api.js} +169 -83
  28. package/dist/api.d.ts +8 -4
  29. package/dist/api.js +8 -4
  30. package/dist/base.d.ts +2 -2
  31. package/dist/base.js +2 -2
  32. package/dist/common.d.ts +4 -4
  33. package/dist/common.js +2 -2
  34. package/dist/configuration.d.ts +2 -2
  35. package/dist/configuration.js +2 -2
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +2 -2
  38. package/dist/models/address-class.d.ts +48 -0
  39. package/dist/models/{get-financial-account-response-class.js → address-class.js} +2 -2
  40. package/dist/models/create-mailbox-request-dto.d.ts +36 -0
  41. package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
  42. package/dist/models/create-user-request-dto.d.ts +76 -0
  43. package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
  44. package/dist/models/create-user-response-class.d.ts +25 -0
  45. package/dist/models/{financial-transaction-class.js → create-user-response-class.js} +2 -2
  46. package/dist/models/create-vba-request-dto.d.ts +41 -0
  47. package/dist/models/create-vba-request-dto.js +20 -0
  48. package/dist/models/create-vba-response-class.d.ts +24 -0
  49. package/dist/models/{create-financial-account-response-class.js → create-vba-response-class.js} +2 -2
  50. package/dist/models/create-vbu-request-dto.d.ts +41 -0
  51. package/dist/models/create-vbu-request-dto.js +20 -0
  52. package/dist/models/create-vbu-response-class.d.ts +24 -0
  53. package/dist/models/create-vbu-response-class.js +15 -0
  54. package/dist/models/create-vbuv-request-dto.d.ts +41 -0
  55. package/dist/models/create-vbuv-request-dto.js +20 -0
  56. package/dist/models/create-vbuv-response-class.d.ts +24 -0
  57. package/dist/models/create-vbuv-response-class.js +15 -0
  58. package/dist/models/get-request-message-response-class.d.ts +25 -0
  59. package/dist/models/get-request-message-response-class.js +15 -0
  60. package/dist/models/get-response-message-response-class.d.ts +25 -0
  61. package/dist/models/get-response-message-response-class.js +15 -0
  62. package/dist/models/get-user-response-class.d.ts +25 -0
  63. package/dist/models/get-user-response-class.js +15 -0
  64. package/dist/models/get-vba-response-class.d.ts +25 -0
  65. package/dist/models/get-vba-response-class.js +15 -0
  66. package/dist/models/get-vbu-response-class.d.ts +25 -0
  67. package/dist/models/get-vbu-response-class.js +15 -0
  68. package/dist/models/get-zip-code-response-class.d.ts +25 -0
  69. package/dist/models/get-zip-code-response-class.js +15 -0
  70. package/dist/models/index.d.ts +46 -13
  71. package/dist/models/index.js +46 -13
  72. package/dist/models/inline-response200.d.ts +2 -2
  73. package/dist/models/inline-response200.js +2 -2
  74. package/dist/models/inline-response503.d.ts +2 -2
  75. package/dist/models/inline-response503.js +2 -2
  76. package/dist/models/list-all-messages-response-class.d.ts +31 -0
  77. package/dist/models/list-all-messages-response-class.js +15 -0
  78. package/dist/models/list-requests-messages-response-class.d.ts +31 -0
  79. package/dist/models/list-requests-messages-response-class.js +15 -0
  80. package/dist/models/list-responses-messages-response-class.d.ts +31 -0
  81. package/dist/models/list-responses-messages-response-class.js +15 -0
  82. package/dist/models/list-users-response-class.d.ts +31 -0
  83. package/dist/models/list-users-response-class.js +15 -0
  84. package/dist/models/list-vbas-response-class.d.ts +31 -0
  85. package/dist/models/list-vbas-response-class.js +15 -0
  86. package/dist/models/list-vbus-response-class.d.ts +31 -0
  87. package/dist/models/list-vbus-response-class.js +15 -0
  88. package/dist/models/list-zip-codes-response-class.d.ts +31 -0
  89. package/dist/models/list-zip-codes-response-class.js +15 -0
  90. package/dist/models/message-class.d.ts +90 -0
  91. package/dist/models/message-class.js +15 -0
  92. package/dist/models/request-details-class.d.ts +48 -0
  93. package/dist/models/request-details-class.js +15 -0
  94. package/dist/models/request-message-class.d.ts +127 -0
  95. package/dist/models/request-message-class.js +15 -0
  96. package/dist/models/response-details-class.d.ts +42 -0
  97. package/dist/models/response-details-class.js +15 -0
  98. package/dist/models/response-message-class.d.ts +139 -0
  99. package/dist/models/response-message-class.js +15 -0
  100. package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
  101. package/dist/models/store-zip-codes-request-dto.js +15 -0
  102. package/dist/models/store-zip-codes-response-class.d.ts +25 -0
  103. package/dist/models/store-zip-codes-response-class.js +15 -0
  104. package/dist/models/update-request-message-request-dto.d.ts +36 -0
  105. package/dist/models/update-request-message-request-dto.js +15 -0
  106. package/dist/models/update-request-message-response-class.d.ts +25 -0
  107. package/dist/models/update-request-message-response-class.js +15 -0
  108. package/dist/models/update-response-message-request-dto.d.ts +36 -0
  109. package/dist/models/update-response-message-request-dto.js +15 -0
  110. package/dist/models/update-response-message-response-class.d.ts +25 -0
  111. package/dist/models/update-response-message-response-class.js +15 -0
  112. package/dist/models/update-user-request-dto.d.ts +82 -0
  113. package/dist/models/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
  114. package/dist/models/update-user-response-class.d.ts +25 -0
  115. package/dist/models/update-user-response-class.js +15 -0
  116. package/dist/models/update-vba-request-dto.d.ts +30 -0
  117. package/dist/models/update-vba-request-dto.js +15 -0
  118. package/dist/models/update-vbu-request-dto.d.ts +30 -0
  119. package/dist/models/update-vbu-request-dto.js +15 -0
  120. package/dist/models/update-vbu-response-class.d.ts +25 -0
  121. package/dist/models/update-vbu-response-class.js +15 -0
  122. package/dist/models/user-class.d.ts +107 -0
  123. package/dist/models/user-class.js +20 -0
  124. package/dist/models/vba-class.d.ts +116 -0
  125. package/dist/models/vba-class.js +15 -0
  126. package/dist/models/vba-response-class.d.ts +48 -0
  127. package/dist/models/vba-response-class.js +15 -0
  128. package/dist/models/vbu-class.d.ts +115 -0
  129. package/dist/models/vbu-class.js +15 -0
  130. package/dist/models/vbu-response-class.d.ts +48 -0
  131. package/dist/models/vbu-response-class.js +15 -0
  132. package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
  133. package/dist/models/xlsx-zip-code-dto.js +15 -0
  134. package/dist/models/zip-code-class.d.ts +60 -0
  135. package/dist/models/zip-code-class.js +15 -0
  136. package/index.ts +2 -2
  137. package/models/address-class.ts +54 -0
  138. package/models/create-mailbox-request-dto.ts +42 -0
  139. package/models/create-user-request-dto.ts +86 -0
  140. package/models/create-user-response-class.ts +31 -0
  141. package/models/create-vba-request-dto.ts +50 -0
  142. package/models/create-vba-response-class.ts +30 -0
  143. package/models/create-vbu-request-dto.ts +50 -0
  144. package/models/create-vbu-response-class.ts +30 -0
  145. package/models/create-vbuv-request-dto.ts +50 -0
  146. package/models/create-vbuv-response-class.ts +30 -0
  147. package/models/get-request-message-response-class.ts +31 -0
  148. package/models/get-response-message-response-class.ts +31 -0
  149. package/models/get-user-response-class.ts +31 -0
  150. package/models/get-vba-response-class.ts +31 -0
  151. package/models/get-vbu-response-class.ts +31 -0
  152. package/models/get-zip-code-response-class.ts +31 -0
  153. package/models/index.ts +46 -13
  154. package/models/inline-response200.ts +2 -2
  155. package/models/inline-response503.ts +2 -2
  156. package/models/list-all-messages-response-class.ts +37 -0
  157. package/models/list-requests-messages-response-class.ts +37 -0
  158. package/models/list-responses-messages-response-class.ts +37 -0
  159. package/models/list-users-response-class.ts +37 -0
  160. package/models/list-vbas-response-class.ts +37 -0
  161. package/models/list-vbus-response-class.ts +37 -0
  162. package/models/list-zip-codes-response-class.ts +37 -0
  163. package/models/message-class.ts +96 -0
  164. package/models/request-details-class.ts +54 -0
  165. package/models/request-message-class.ts +133 -0
  166. package/models/response-details-class.ts +48 -0
  167. package/models/response-message-class.ts +145 -0
  168. package/models/store-zip-codes-request-dto.ts +31 -0
  169. package/models/store-zip-codes-response-class.ts +31 -0
  170. package/models/update-request-message-request-dto.ts +42 -0
  171. package/models/update-request-message-response-class.ts +31 -0
  172. package/models/update-response-message-request-dto.ts +42 -0
  173. package/models/update-response-message-response-class.ts +31 -0
  174. package/models/update-user-request-dto.ts +92 -0
  175. package/models/update-user-response-class.ts +31 -0
  176. package/models/update-vba-request-dto.ts +36 -0
  177. package/models/update-vbu-request-dto.ts +36 -0
  178. package/models/update-vbu-response-class.ts +31 -0
  179. package/models/user-class.ts +116 -0
  180. package/models/vba-class.ts +122 -0
  181. package/models/vba-response-class.ts +54 -0
  182. package/models/vbu-class.ts +121 -0
  183. package/models/vbu-response-class.ts +54 -0
  184. package/models/xlsx-zip-code-dto.ts +36 -0
  185. package/models/zip-code-class.ts +66 -0
  186. package/package.json +1 -1
  187. package/api/booking-processes-api.ts +0 -353
  188. package/api/financial-accounts-api.ts +0 -573
  189. package/dist/api/booking-processes-api.d.ts +0 -207
  190. package/dist/api/financial-accounts-api.d.ts +0 -327
  191. package/dist/models/booking-entry-class.d.ts +0 -123
  192. package/dist/models/booking-entry-class.js +0 -34
  193. package/dist/models/booking-process-class.d.ts +0 -94
  194. package/dist/models/booking-process-class.js +0 -29
  195. package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
  196. package/dist/models/create-booking-entry-request-dto.js +0 -34
  197. package/dist/models/create-booking-process-request-dto.d.ts +0 -64
  198. package/dist/models/create-booking-process-request-dto.js +0 -29
  199. package/dist/models/create-booking-process-response-class.d.ts +0 -25
  200. package/dist/models/create-financial-account-request-dto.d.ts +0 -62
  201. package/dist/models/create-financial-account-request-dto.js +0 -23
  202. package/dist/models/create-financial-account-response-class.d.ts +0 -25
  203. package/dist/models/financial-account-class.d.ts +0 -98
  204. package/dist/models/financial-transaction-class.d.ts +0 -108
  205. package/dist/models/financial-transaction-data-dto.d.ts +0 -71
  206. package/dist/models/get-financial-account-response-class.d.ts +0 -25
  207. package/dist/models/list-booking-process-response-class.d.ts +0 -31
  208. package/dist/models/list-booking-process-response-class.js +0 -15
  209. package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
  210. package/dist/models/list-financial-accounts-response-class.js +0 -15
  211. package/models/booking-entry-class.ts +0 -133
  212. package/models/booking-process-class.ts +0 -104
  213. package/models/create-booking-entry-request-dto.ts +0 -109
  214. package/models/create-booking-process-request-dto.ts +0 -74
  215. package/models/create-booking-process-response-class.ts +0 -31
  216. package/models/create-financial-account-request-dto.ts +0 -71
  217. package/models/create-financial-account-response-class.ts +0 -31
  218. package/models/financial-account-class.ts +0 -107
  219. package/models/financial-transaction-class.ts +0 -114
  220. package/models/financial-transaction-data-dto.ts +0 -80
  221. package/models/get-financial-account-response-class.ts +0 -31
  222. package/models/list-booking-process-response-class.ts +0 -37
  223. package/models/list-financial-accounts-response-class.ts +0 -37
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL GdvService
5
+ * The EMIL GdvService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface VbuResponseClass
21
+ */
22
+ export interface VbuResponseClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof VbuResponseClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Response details
31
+ * @type {object}
32
+ * @memberof VbuResponseClass
33
+ */
34
+ 'response': object;
35
+ /**
36
+ * Time at which the object was created.
37
+ * @type {string}
38
+ * @memberof VbuResponseClass
39
+ */
40
+ 'createdAt': string;
41
+ /**
42
+ * Identifier of the user who created the record.
43
+ * @type {string}
44
+ * @memberof VbuResponseClass
45
+ */
46
+ 'createdBy': string;
47
+ /**
48
+ * Identifier of the user who last updated the record.
49
+ * @type {string}
50
+ * @memberof VbuResponseClass
51
+ */
52
+ 'updatedBy': string;
53
+ }
54
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL GdvService
5
+ * The EMIL GdvService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface XlsxZipCodeDto
21
+ */
22
+ export interface XlsxZipCodeDto {
23
+ /**
24
+ * Zip Code
25
+ * @type {string}
26
+ * @memberof XlsxZipCodeDto
27
+ */
28
+ 'zipCode': string;
29
+ /**
30
+ * KGS Number
31
+ * @type {string}
32
+ * @memberof XlsxZipCodeDto
33
+ */
34
+ 'kgs': string;
35
+ }
36
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL GdvService
5
+ * The EMIL GdvService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ZipCodeClass
21
+ */
22
+ export interface ZipCodeClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof ZipCodeClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Zip Code
31
+ * @type {string}
32
+ * @memberof ZipCodeClass
33
+ */
34
+ 'zipCode': string;
35
+ /**
36
+ * KGS number
37
+ * @type {string}
38
+ * @memberof ZipCodeClass
39
+ */
40
+ 'kgs': string;
41
+ /**
42
+ * Time at which the object was created.
43
+ * @type {string}
44
+ * @memberof ZipCodeClass
45
+ */
46
+ 'createdAt': string;
47
+ /**
48
+ * Time at which the object was updated.
49
+ * @type {string}
50
+ * @memberof ZipCodeClass
51
+ */
52
+ 'updatedAt': string;
53
+ /**
54
+ * Identifier of the user who created the record.
55
+ * @type {string}
56
+ * @memberof ZipCodeClass
57
+ */
58
+ 'createdBy': string;
59
+ /**
60
+ * Identifier of the user who last updated the record.
61
+ * @type {string}
62
+ * @memberof ZipCodeClass
63
+ */
64
+ 'updatedBy': string;
65
+ }
66
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,353 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountingService
5
- * The EMIL AccountingService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateBookingProcessRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateBookingProcessResponseClass } from '../models';
27
- // @ts-ignore
28
- import { ListBookingProcessResponseClass } from '../models';
29
- /**
30
- * BookingProcessesApi - axios parameter creator
31
- * @export
32
- */
33
- export const BookingProcessesApiAxiosParamCreator = function (configuration?: Configuration) {
34
- return {
35
- /**
36
- * This endpoint creates a new booking process.
37
- * @summary Create the booking process
38
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
39
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- createBookingProcess: async (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- // verify required parameter 'createBookingProcessRequestDto' is not null or undefined
45
- assertParamExists('createBookingProcess', 'createBookingProcessRequestDto', createBookingProcessRequestDto)
46
- const localVarPath = `/accountingservice/v1/booking-processes`;
47
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
- let baseOptions;
50
- let baseAccessToken;
51
- if (configuration) {
52
- baseOptions = configuration.baseOptions;
53
- baseAccessToken = configuration.accessToken;
54
- }
55
-
56
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
57
- const localVarHeaderParameter = {} as any;
58
- const localVarQueryParameter = {} as any;
59
-
60
- // authentication bearer required
61
- // http bearer authentication required
62
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
-
64
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
65
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
- }
67
-
68
-
69
-
70
- localVarHeaderParameter['Content-Type'] = 'application/json';
71
-
72
- setSearchParams(localVarUrlObj, localVarQueryParameter);
73
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
- localVarRequestOptions.data = serializeDataIfNeeded(createBookingProcessRequestDto, localVarRequestOptions, configuration)
76
-
77
- return {
78
- url: toPathString(localVarUrlObj),
79
- options: localVarRequestOptions,
80
- };
81
- },
82
- /**
83
- * 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.
84
- * @summary List Booking processes
85
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
87
- * @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.
88
- * @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;
89
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
90
- * @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;
91
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
92
- * @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;
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- listBookingProcesses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
- const localVarPath = `/accountingservice/v1/booking-processes`;
98
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
100
- let baseOptions;
101
- let baseAccessToken;
102
- if (configuration) {
103
- baseOptions = configuration.baseOptions;
104
- baseAccessToken = configuration.accessToken;
105
- }
106
-
107
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
108
- const localVarHeaderParameter = {} as any;
109
- const localVarQueryParameter = {} as any;
110
-
111
- // authentication bearer required
112
- // http bearer authentication required
113
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
114
-
115
- if (pageSize !== undefined) {
116
- localVarQueryParameter['pageSize'] = pageSize;
117
- }
118
-
119
- if (pageToken !== undefined) {
120
- localVarQueryParameter['pageToken'] = pageToken;
121
- }
122
-
123
- if (filter !== undefined) {
124
- localVarQueryParameter['filter'] = filter;
125
- }
126
-
127
- if (search !== undefined) {
128
- localVarQueryParameter['search'] = search;
129
- }
130
-
131
- if (order !== undefined) {
132
- localVarQueryParameter['order'] = order;
133
- }
134
-
135
- if (expand !== undefined) {
136
- localVarQueryParameter['expand'] = expand;
137
- }
138
-
139
- if (filters !== undefined) {
140
- localVarQueryParameter['filters'] = filters;
141
- }
142
-
143
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
- }
146
-
147
-
148
-
149
- setSearchParams(localVarUrlObj, localVarQueryParameter);
150
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152
-
153
- return {
154
- url: toPathString(localVarUrlObj),
155
- options: localVarRequestOptions,
156
- };
157
- },
158
- }
159
- };
160
-
161
- /**
162
- * BookingProcessesApi - functional programming interface
163
- * @export
164
- */
165
- export const BookingProcessesApiFp = function(configuration?: Configuration) {
166
- const localVarAxiosParamCreator = BookingProcessesApiAxiosParamCreator(configuration)
167
- return {
168
- /**
169
- * This endpoint creates a new booking process.
170
- * @summary Create the booking process
171
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
172
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
173
- * @param {*} [options] Override http request option.
174
- * @throws {RequiredError}
175
- */
176
- async createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>> {
177
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingProcess(createBookingProcessRequestDto, authorization, options);
178
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
179
- },
180
- /**
181
- * 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.
182
- * @summary List Booking processes
183
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
- * @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.
186
- * @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;
187
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
188
- * @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;
189
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
190
- * @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;
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- async listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>> {
195
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
196
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
- },
198
- }
199
- };
200
-
201
- /**
202
- * BookingProcessesApi - factory interface
203
- * @export
204
- */
205
- export const BookingProcessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
- const localVarFp = BookingProcessesApiFp(configuration)
207
- return {
208
- /**
209
- * This endpoint creates a new booking process.
210
- * @summary Create the booking process
211
- * @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
212
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
- * @param {*} [options] Override http request option.
214
- * @throws {RequiredError}
215
- */
216
- createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass> {
217
- return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then((request) => request(axios, basePath));
218
- },
219
- /**
220
- * 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.
221
- * @summary List Booking processes
222
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
223
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
224
- * @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.
225
- * @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;
226
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
227
- * @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;
228
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
229
- * @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;
230
- * @param {*} [options] Override http request option.
231
- * @throws {RequiredError}
232
- */
233
- listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass> {
234
- return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
235
- },
236
- };
237
- };
238
-
239
- /**
240
- * Request parameters for createBookingProcess operation in BookingProcessesApi.
241
- * @export
242
- * @interface BookingProcessesApiCreateBookingProcessRequest
243
- */
244
- export interface BookingProcessesApiCreateBookingProcessRequest {
245
- /**
246
- *
247
- * @type {CreateBookingProcessRequestDto}
248
- * @memberof BookingProcessesApiCreateBookingProcess
249
- */
250
- readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto
251
-
252
- /**
253
- * Bearer Token: provided by the login endpoint under the name accessToken.
254
- * @type {string}
255
- * @memberof BookingProcessesApiCreateBookingProcess
256
- */
257
- readonly authorization?: string
258
- }
259
-
260
- /**
261
- * Request parameters for listBookingProcesses operation in BookingProcessesApi.
262
- * @export
263
- * @interface BookingProcessesApiListBookingProcessesRequest
264
- */
265
- export interface BookingProcessesApiListBookingProcessesRequest {
266
- /**
267
- * Bearer Token: provided by the login endpoint under the name accessToken.
268
- * @type {string}
269
- * @memberof BookingProcessesApiListBookingProcesses
270
- */
271
- readonly authorization?: string
272
-
273
- /**
274
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
- * @type {any}
276
- * @memberof BookingProcessesApiListBookingProcesses
277
- */
278
- readonly pageSize?: any
279
-
280
- /**
281
- * 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.
282
- * @type {any}
283
- * @memberof BookingProcessesApiListBookingProcesses
284
- */
285
- readonly pageToken?: any
286
-
287
- /**
288
- * 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;
289
- * @type {string}
290
- * @memberof BookingProcessesApiListBookingProcesses
291
- */
292
- readonly filter?: string
293
-
294
- /**
295
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
- * @type {any}
297
- * @memberof BookingProcessesApiListBookingProcesses
298
- */
299
- readonly search?: any
300
-
301
- /**
302
- * 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;
303
- * @type {string}
304
- * @memberof BookingProcessesApiListBookingProcesses
305
- */
306
- readonly order?: string
307
-
308
- /**
309
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
310
- * @type {string}
311
- * @memberof BookingProcessesApiListBookingProcesses
312
- */
313
- readonly expand?: string
314
-
315
- /**
316
- * 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;
317
- * @type {string}
318
- * @memberof BookingProcessesApiListBookingProcesses
319
- */
320
- readonly filters?: string
321
- }
322
-
323
- /**
324
- * BookingProcessesApi - object-oriented interface
325
- * @export
326
- * @class BookingProcessesApi
327
- * @extends {BaseAPI}
328
- */
329
- export class BookingProcessesApi extends BaseAPI {
330
- /**
331
- * This endpoint creates a new booking process.
332
- * @summary Create the booking process
333
- * @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
334
- * @param {*} [options] Override http request option.
335
- * @throws {RequiredError}
336
- * @memberof BookingProcessesApi
337
- */
338
- public createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig) {
339
- return BookingProcessesApiFp(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
340
- }
341
-
342
- /**
343
- * 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.
344
- * @summary List Booking processes
345
- * @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
346
- * @param {*} [options] Override http request option.
347
- * @throws {RequiredError}
348
- * @memberof BookingProcessesApi
349
- */
350
- public listBookingProcesses(requestParameters: BookingProcessesApiListBookingProcessesRequest = {}, options?: AxiosRequestConfig) {
351
- return BookingProcessesApiFp(this.configuration).listBookingProcesses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
352
- }
353
- }