@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
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -19,7 +19,7 @@ import { InlineResponse200 } from '../models';
19
19
  */
20
20
  export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
22
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
23
  * @summary Health Check
24
24
  * @param {*} [options] Override http request option.
25
25
  * @throws {RequiredError}
@@ -32,7 +32,7 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
32
32
  */
33
33
  export declare const HealthApiFp: (configuration?: Configuration) => {
34
34
  /**
35
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
36
  * @summary Health Check
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
@@ -45,7 +45,7 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
45
45
  */
46
46
  export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
47
  /**
48
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
48
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
49
  * @summary Health Check
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
@@ -60,7 +60,7 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
60
60
  */
61
61
  export declare class HealthApi extends BaseAPI {
62
62
  /**
63
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
63
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
64
  * @summary Health Check
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -97,7 +97,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
100
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
101
  * @summary Health Check
102
102
  * @param {*} [options] Override http request option.
103
103
  * @throws {RequiredError}
@@ -107,7 +107,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
107
107
  return __awaiter(_this, void 0, void 0, function () {
108
108
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
109
  return __generator(this, function (_a) {
110
- localVarPath = "/gdvservice/health";
110
+ localVarPath = "/accountingservice/health";
111
111
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
112
112
  if (configuration) {
113
113
  baseOptions = configuration.baseOptions;
@@ -137,7 +137,7 @@ var HealthApiFp = function (configuration) {
137
137
  var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
138
138
  return {
139
139
  /**
140
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
140
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
141
141
  * @summary Health Check
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
@@ -166,7 +166,7 @@ var HealthApiFactory = function (configuration, basePath, axios) {
166
166
  var localVarFp = (0, exports.HealthApiFp)(configuration);
167
167
  return {
168
168
  /**
169
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
169
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
170
170
  * @summary Health Check
171
171
  * @param {*} [options] Override http request option.
172
172
  * @throws {RequiredError}
@@ -189,7 +189,7 @@ var HealthApi = /** @class */ (function (_super) {
189
189
  return _super !== null && _super.apply(this, arguments) || this;
190
190
  }
191
191
  /**
192
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
192
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
193
193
  * @summary Health Check
194
194
  * @param {*} [options] Override http request option.
195
195
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -9,10 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/booking-processes-api';
13
+ export * from './api/financial-accounts-api';
12
14
  export * from './api/health-api';
13
- export * from './api/mailbox-api';
14
- export * from './api/messages-api';
15
- export * from './api/users-api';
16
- export * from './api/vbas-api';
17
- export * from './api/vbus-api';
18
- export * from './api/zip-codes-api';
package/dist/api.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -27,10 +27,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/booking-processes-api"), exports);
31
+ __exportStar(require("./api/financial-accounts-api"), exports);
30
32
  __exportStar(require("./api/health-api"), exports);
31
- __exportStar(require("./api/mailbox-api"), exports);
32
- __exportStar(require("./api/messages-api"), exports);
33
- __exportStar(require("./api/users-api"), exports);
34
- __exportStar(require("./api/vbas-api"), exports);
35
- __exportStar(require("./api/vbus-api"), exports);
36
- __exportStar(require("./api/zip-codes-api"), exports);
package/dist/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -53,16 +53,14 @@ export declare class BaseAPI {
53
53
  protected configuration: Configuration;
54
54
  private username?;
55
55
  private password?;
56
- private permissions?;
57
56
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
58
57
  initialize(env?: Environment): Promise<void>;
59
58
  private loadCredentials;
60
59
  private readConfigFile;
61
60
  private readEnvVariables;
62
61
  selectEnvironment(env: Environment): void;
63
- getPermissions(): Array<string>;
64
62
  authorize(username: string, password: string): Promise<void>;
65
- refreshTokenInternal(): Promise<LoginClass>;
63
+ refreshTokenInternal(): Promise<string>;
66
64
  private extractRefreshToken;
67
65
  getConfiguration(): Configuration;
68
66
  private attachInterceptor;
package/dist/base.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -242,14 +242,11 @@ var BaseAPI = /** @class */ (function () {
242
242
  BaseAPI.prototype.selectEnvironment = function (env) {
243
243
  this.configuration.basePath = env;
244
244
  };
245
- BaseAPI.prototype.getPermissions = function () {
246
- return this.permissions.split(',');
247
- };
248
245
  BaseAPI.prototype.authorize = function (username, password) {
249
246
  return __awaiter(this, void 0, void 0, function () {
250
- var options, response, _a, accessToken, permissions, refreshToken;
251
- return __generator(this, function (_b) {
252
- switch (_b.label) {
247
+ var options, response, accessToken, refreshToken;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
253
250
  case 0:
254
251
  options = {
255
252
  method: 'POST',
@@ -263,11 +260,10 @@ var BaseAPI = /** @class */ (function () {
263
260
  };
264
261
  return [4 /*yield*/, axios_1.default.request(options)];
265
262
  case 1:
266
- response = _b.sent();
267
- _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
263
+ response = _a.sent();
264
+ accessToken = response.data.accessToken;
268
265
  this.configuration.username = username;
269
266
  this.configuration.accessToken = "Bearer ".concat(accessToken);
270
- this.permissions = permissions;
271
267
  refreshToken = this.extractRefreshToken(response);
272
268
  this.configuration.refreshToken = refreshToken;
273
269
  return [2 /*return*/];
@@ -277,13 +273,13 @@ var BaseAPI = /** @class */ (function () {
277
273
  };
278
274
  BaseAPI.prototype.refreshTokenInternal = function () {
279
275
  return __awaiter(this, void 0, void 0, function () {
280
- var _a, username, refreshToken, options, response;
276
+ var _a, username, refreshToken, options, accessToken;
281
277
  return __generator(this, function (_b) {
282
278
  switch (_b.label) {
283
279
  case 0:
284
280
  _a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
285
281
  if (!username || !refreshToken) {
286
- throw new Error('Failed to refresh token.');
282
+ return [2 /*return*/, ''];
287
283
  }
288
284
  options = {
289
285
  method: 'POST',
@@ -297,8 +293,8 @@ var BaseAPI = /** @class */ (function () {
297
293
  };
298
294
  return [4 /*yield*/, axios_1.default.request(options)];
299
295
  case 1:
300
- response = _b.sent();
301
- return [2 /*return*/, response.data];
296
+ accessToken = (_b.sent()).data.accessToken;
297
+ return [2 /*return*/, accessToken];
302
298
  }
303
299
  });
304
300
  });
@@ -318,27 +314,26 @@ var BaseAPI = /** @class */ (function () {
318
314
  axios.interceptors.response.use(function (res) {
319
315
  return res;
320
316
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
321
- var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
322
- return __generator(this, function (_c) {
323
- switch (_c.label) {
317
+ var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
318
+ return __generator(this, function (_a) {
319
+ switch (_a.label) {
324
320
  case 0:
325
321
  originalConfig = err.config;
326
322
  if (!err.response) return [3 /*break*/, 5];
327
323
  if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 4];
328
324
  originalConfig._retry = true;
329
- _c.label = 1;
325
+ _a.label = 1;
330
326
  case 1:
331
- _c.trys.push([1, 3, , 4]);
327
+ _a.trys.push([1, 3, , 4]);
332
328
  return [4 /*yield*/, this.refreshTokenInternal()];
333
329
  case 2:
334
- _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
330
+ tokenString = _a.sent();
335
331
  accessToken = "Bearer ".concat(tokenString);
336
- this.permissions = permissions;
337
332
  originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
338
333
  this.configuration.accessToken = accessToken;
339
334
  return [2 /*return*/, axios.request(originalConfig)];
340
335
  case 3:
341
- _error_1 = _c.sent();
336
+ _error_1 = _a.sent();
342
337
  if (_error_1.response && _error_1.response.data) {
343
338
  return [2 /*return*/, Promise.reject(_error_1.response.data)];
344
339
  }
@@ -354,20 +349,19 @@ var BaseAPI = /** @class */ (function () {
354
349
  && originalConfig.headers.hasOwnProperty('Authorization')
355
350
  && _retry_count < 4)) return [3 /*break*/, 9];
356
351
  _retry_count++;
357
- _c.label = 6;
352
+ _a.label = 6;
358
353
  case 6:
359
- _c.trys.push([6, 8, , 9]);
354
+ _a.trys.push([6, 8, , 9]);
360
355
  return [4 /*yield*/, this.refreshTokenInternal()];
361
356
  case 7:
362
- _b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
357
+ tokenString = _a.sent();
363
358
  accessToken = "Bearer ".concat(tokenString);
364
- this.permissions = permissions;
365
359
  _retry = true;
366
360
  originalConfig.headers['Authorization'] = accessToken;
367
361
  this.configuration.accessToken = accessToken;
368
362
  return [2 /*return*/, axios.request(__assign({}, originalConfig))];
369
363
  case 8:
370
- _error_2 = _c.sent();
364
+ _error_2 = _a.sent();
371
365
  if (_error_2.response && _error_2.response.data) {
372
366
  return [2 /*return*/, Promise.reject(_error_2.response.data)];
373
367
  }
package/dist/common.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -65,8 +65,8 @@ export declare const toPathString: (url: URL) => string;
65
65
  */
66
66
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
- * EMIL GdvService
69
- * The EMIL GdvService API description
68
+ * EMIL AccountingService
69
+ * The EMIL AccountingService API description
70
70
  *
71
71
  * The version of the OpenAPI document: 1.0
72
72
  * Contact: kontakt@emil.de
package/dist/common.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * EMIL GdvService
3
- * The EMIL GdvService API description
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
6
  * Contact: kontakt@emil.de
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -0,0 +1,123 @@
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 { FinancialTransactionClass } from './financial-transaction-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BookingEntryClass
17
+ */
18
+ export interface BookingEntryClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof BookingEntryClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Unique identifier for the object.
27
+ * @type {string}
28
+ * @memberof BookingEntryClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * The ID of the financial transaction linked to this booking entry.
33
+ * @type {number}
34
+ * @memberof BookingEntryClass
35
+ */
36
+ 'financialTransactionId': number;
37
+ /**
38
+ * The monetary amount associated with this booking entry.
39
+ * @type {number}
40
+ * @memberof BookingEntryClass
41
+ */
42
+ 'amount': number;
43
+ /**
44
+ * The currency in which the booking entry amount is denominated.
45
+ * @type {string}
46
+ * @memberof BookingEntryClass
47
+ */
48
+ 'currency': BookingEntryClassCurrencyEnum;
49
+ /**
50
+ * The policy number associated with this financial transaction.
51
+ * @type {string}
52
+ * @memberof BookingEntryClass
53
+ */
54
+ 'policyNumber': string;
55
+ /**
56
+ * A flexible JSON object that allows tenants to include any custom fields. The keys represent the names of the custom fields, and the values can be of any data type. This enables tenants to store additional metadata or custom attributes that are specific to their use case.
57
+ * @type {object}
58
+ * @memberof BookingEntryClass
59
+ */
60
+ 'customFields': object;
61
+ /**
62
+ * The unique identifier for the entity (e.g., claim, invoice) associated with this booking entry.
63
+ * @type {string}
64
+ * @memberof BookingEntryClass
65
+ */
66
+ 'entityNumber': string;
67
+ /**
68
+ * The name of the entity associated with this booking entry, such as \"Claim\", \"Invoice\", or \"Payment\".
69
+ * @type {string}
70
+ * @memberof BookingEntryClass
71
+ */
72
+ 'entityName': BookingEntryClassEntityNameEnum;
73
+ /**
74
+ * Time at which the object was created.
75
+ * @type {string}
76
+ * @memberof BookingEntryClass
77
+ */
78
+ 'createdAt': string;
79
+ /**
80
+ * Time at which the object was updated.
81
+ * @type {string}
82
+ * @memberof BookingEntryClass
83
+ */
84
+ 'updatedAt': string;
85
+ /**
86
+ * Identifier of the user who created the record.
87
+ * @type {string}
88
+ * @memberof BookingEntryClass
89
+ */
90
+ 'createdBy': string;
91
+ /**
92
+ * Identifier of the user who last updated the record.
93
+ * @type {string}
94
+ * @memberof BookingEntryClass
95
+ */
96
+ 'updatedBy': string;
97
+ /**
98
+ * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
99
+ * @type {Array<FinancialTransactionClass>}
100
+ * @memberof BookingEntryClass
101
+ */
102
+ 'financialTransactions': Array<FinancialTransactionClass>;
103
+ }
104
+ export declare const BookingEntryClassCurrencyEnum: {
105
+ readonly Eur: "EUR";
106
+ readonly Usd: "USD";
107
+ readonly Gbp: "GBP";
108
+ readonly Chf: "CHF";
109
+ readonly Pln: "PLN";
110
+ readonly Aud: "AUD";
111
+ readonly Cad: "CAD";
112
+ readonly Ddk: "DDK";
113
+ readonly Huf: "HUF";
114
+ readonly Nok: "NOK";
115
+ readonly Sek: "SEK";
116
+ };
117
+ export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
118
+ export declare const BookingEntryClassEntityNameEnum: {
119
+ readonly Claim: "claim";
120
+ readonly Invoice: "invoice";
121
+ readonly Payment: "payment";
122
+ };
123
+ export type BookingEntryClassEntityNameEnum = typeof BookingEntryClassEntityNameEnum[keyof typeof BookingEntryClassEntityNameEnum];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BookingEntryClassEntityNameEnum = exports.BookingEntryClassCurrencyEnum = void 0;
17
+ exports.BookingEntryClassCurrencyEnum = {
18
+ Eur: 'EUR',
19
+ Usd: 'USD',
20
+ Gbp: 'GBP',
21
+ Chf: 'CHF',
22
+ Pln: 'PLN',
23
+ Aud: 'AUD',
24
+ Cad: 'CAD',
25
+ Ddk: 'DDK',
26
+ Huf: 'HUF',
27
+ Nok: 'NOK',
28
+ Sek: 'SEK'
29
+ };
30
+ exports.BookingEntryClassEntityNameEnum = {
31
+ Claim: 'claim',
32
+ Invoice: 'invoice',
33
+ Payment: 'payment'
34
+ };
@@ -0,0 +1,94 @@
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 { BookingEntryClass } from './booking-entry-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BookingProcessClass
17
+ */
18
+ export interface BookingProcessClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof BookingProcessClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Unique identifier for the object.
27
+ * @type {string}
28
+ * @memberof BookingProcessClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * A flexible JSON object that allows tenants to include any custom fields. The keys represent the names of the custom fields, and the values can be of any data type. This enables tenants to store additional metadata or custom attributes that are specific to their use case.
33
+ * @type {object}
34
+ * @memberof BookingProcessClass
35
+ */
36
+ 'customFields': object;
37
+ /**
38
+ * Represents the current stage of the booking process. It tracks whether the process is still open, invoiced, or paid.
39
+ * @type {string}
40
+ * @memberof BookingProcessClass
41
+ */
42
+ 'status': BookingProcessClassStatusEnum;
43
+ /**
44
+ * Defines the type of booking process, indicating the nature of the financial transaction or action such as an initial invoice, claims payment, or termination invoice.
45
+ * @type {string}
46
+ * @memberof BookingProcessClass
47
+ */
48
+ 'bookingProcessType': BookingProcessClassBookingProcessTypeEnum;
49
+ /**
50
+ * A list of booking entries associated with this booking process. Each entry represents a booking entry linked to the current booking process.
51
+ * @type {Array<BookingEntryClass>}
52
+ * @memberof BookingProcessClass
53
+ */
54
+ 'bookingEntries': Array<BookingEntryClass>;
55
+ /**
56
+ * Time at which the object was created.
57
+ * @type {string}
58
+ * @memberof BookingProcessClass
59
+ */
60
+ 'createdAt': string;
61
+ /**
62
+ * Time at which the object was updated.
63
+ * @type {string}
64
+ * @memberof BookingProcessClass
65
+ */
66
+ 'updatedAt': string;
67
+ /**
68
+ * Identifier of the user who created the record.
69
+ * @type {string}
70
+ * @memberof BookingProcessClass
71
+ */
72
+ 'createdBy': string;
73
+ /**
74
+ * Identifier of the user who last updated the record.
75
+ * @type {string}
76
+ * @memberof BookingProcessClass
77
+ */
78
+ 'updatedBy': string;
79
+ }
80
+ export declare const BookingProcessClassStatusEnum: {
81
+ readonly Invoiced: "invoiced";
82
+ readonly Paid: "paid";
83
+ readonly Open: "open";
84
+ };
85
+ export type BookingProcessClassStatusEnum = typeof BookingProcessClassStatusEnum[keyof typeof BookingProcessClassStatusEnum];
86
+ export declare const BookingProcessClassBookingProcessTypeEnum: {
87
+ readonly TerminationInvoice: "terminationInvoice";
88
+ readonly ClaimsPayment: "claimsPayment";
89
+ readonly WithdrawnInvoice: "withdrawnInvoice";
90
+ readonly CorrectionInvoice: "correctionInvoice";
91
+ readonly RecurringInvoice: "recurringInvoice";
92
+ readonly InitialInvoice: "initialInvoice";
93
+ };
94
+ export type BookingProcessClassBookingProcessTypeEnum = typeof BookingProcessClassBookingProcessTypeEnum[keyof typeof BookingProcessClassBookingProcessTypeEnum];
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BookingProcessClassBookingProcessTypeEnum = exports.BookingProcessClassStatusEnum = void 0;
17
+ exports.BookingProcessClassStatusEnum = {
18
+ Invoiced: 'invoiced',
19
+ Paid: 'paid',
20
+ Open: 'open'
21
+ };
22
+ exports.BookingProcessClassBookingProcessTypeEnum = {
23
+ TerminationInvoice: 'terminationInvoice',
24
+ ClaimsPayment: 'claimsPayment',
25
+ WithdrawnInvoice: 'withdrawnInvoice',
26
+ CorrectionInvoice: 'correctionInvoice',
27
+ RecurringInvoice: 'recurringInvoice',
28
+ InitialInvoice: 'initialInvoice'
29
+ };