@emilgroup/accounting-sdk 1.34.1-beta.77 → 1.34.1-beta.78

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 (210) hide show
  1. package/.openapi-generator/FILES +0 -50
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +10 -234
  4. package/api/financial-accounts-api.ts +24 -154
  5. package/api/financial-transactions-api.ts +4 -8
  6. package/api/number-ranges-api.ts +8 -16
  7. package/api/personal-accounts-api.ts +8 -16
  8. package/api.ts +0 -6
  9. package/base.ts +41 -174
  10. package/common.ts +2 -3
  11. package/configuration.ts +0 -20
  12. package/dist/api/booking-entries-api.d.ts +7 -121
  13. package/dist/api/booking-entries-api.js +14 -211
  14. package/dist/api/financial-accounts-api.d.ts +20 -86
  15. package/dist/api/financial-accounts-api.js +27 -137
  16. package/dist/api/financial-transactions-api.d.ts +2 -2
  17. package/dist/api/financial-transactions-api.js +6 -8
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/number-ranges-api.d.ts +4 -4
  20. package/dist/api/number-ranges-api.js +14 -22
  21. package/dist/api/personal-accounts-api.d.ts +4 -4
  22. package/dist/api/personal-accounts-api.js +14 -22
  23. package/dist/api.d.ts +0 -3
  24. package/dist/api.js +0 -3
  25. package/dist/base.d.ts +0 -24
  26. package/dist/base.js +59 -178
  27. package/dist/common.d.ts +1 -1
  28. package/dist/common.js +0 -1
  29. package/dist/configuration.d.ts +0 -17
  30. package/dist/configuration.js +0 -2
  31. package/dist/models/booking-entry-class.d.ts +0 -34
  32. package/dist/models/booking-entry-class.js +1 -10
  33. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  34. package/dist/models/create-booking-entry-request-dto.js +0 -9
  35. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  36. package/dist/models/create-financial-account-request-dto.js +2 -26
  37. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  38. package/dist/models/create-number-range-request-dto.js +4 -4
  39. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  40. package/dist/models/create-personal-account-request-dto.js +3 -3
  41. package/dist/models/financial-account-class.d.ts +2 -49
  42. package/dist/models/financial-account-class.js +2 -6
  43. package/dist/models/financial-transaction-class.d.ts +0 -6
  44. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  45. package/dist/models/financial-transaction-data-dto.js +0 -1
  46. package/dist/models/index.d.ts +0 -47
  47. package/dist/models/index.js +0 -47
  48. package/dist/models/personal-account-class.d.ts +2 -8
  49. package/dist/models/personal-account-class.js +1 -1
  50. package/models/booking-entry-class.ts +0 -35
  51. package/models/create-booking-entry-request-dto.ts +2 -26
  52. package/models/create-financial-account-request-dto.ts +5 -49
  53. package/models/create-number-range-request-dto.ts +4 -4
  54. package/models/create-personal-account-request-dto.ts +6 -12
  55. package/models/financial-account-class.ts +2 -50
  56. package/models/financial-transaction-class.ts +0 -6
  57. package/models/financial-transaction-data-dto.ts +2 -9
  58. package/models/index.ts +0 -47
  59. package/models/personal-account-class.ts +2 -8
  60. package/package.json +2 -2
  61. package/api/accounting-configs-api.ts +0 -862
  62. package/api/commission-account-mappings-api.ts +0 -1207
  63. package/api/product-account-mappings-api.ts +0 -1715
  64. package/dist/api/accounting-configs-api.d.ts +0 -451
  65. package/dist/api/accounting-configs-api.js +0 -881
  66. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  67. package/dist/api/commission-account-mappings-api.js +0 -1022
  68. package/dist/api/product-account-mappings-api.d.ts +0 -972
  69. package/dist/api/product-account-mappings-api.js +0 -1447
  70. package/dist/models/account-mapping-class.d.ts +0 -73
  71. package/dist/models/account-mapping-class.js +0 -40
  72. package/dist/models/accounting-category-class.d.ts +0 -45
  73. package/dist/models/accounting-category-class.js +0 -24
  74. package/dist/models/accounting-config-class.d.ts +0 -78
  75. package/dist/models/accounting-config-class.js +0 -20
  76. package/dist/models/accounting-config-data-class.d.ts +0 -38
  77. package/dist/models/accounting-config-data-class.js +0 -15
  78. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  79. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  80. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  81. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  82. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  83. package/dist/models/accounting-config-data-dto.js +0 -15
  84. package/dist/models/accounting-configuration-class.d.ts +0 -36
  85. package/dist/models/accounting-configuration-class.js +0 -15
  86. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  87. package/dist/models/commission-account-mapping-class.js +0 -15
  88. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  89. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  90. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  91. package/dist/models/commission-agreement-partner-class.js +0 -15
  92. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  93. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  94. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  95. package/dist/models/commission-type-account-mapping-class.js +0 -15
  96. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  97. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  98. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  99. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  100. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  101. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  102. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  103. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  104. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  105. package/dist/models/export-accounting-config-response-class.js +0 -15
  106. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  107. package/dist/models/get-accounting-categories-response-class.js +0 -15
  108. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  109. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  110. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  115. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  116. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  117. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  118. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  119. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  120. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  121. package/dist/models/opening-balance-item-dto.js +0 -20
  122. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  123. package/dist/models/post-financial-event-request-dto.js +0 -24
  124. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  125. package/dist/models/post-financial-event-response-class.js +0 -15
  126. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  127. package/dist/models/premium-item-account-mapping-class.js +0 -15
  128. package/dist/models/product-account-mapping-class.d.ts +0 -61
  129. package/dist/models/product-account-mapping-class.js +0 -15
  130. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  131. package/dist/models/product-account-mapping-detail-class.js +0 -15
  132. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  133. package/dist/models/product-risk-carrier-class.js +0 -15
  134. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  135. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  136. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  137. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  138. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  139. package/dist/models/product-with-account-mappings-class.js +0 -15
  140. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  142. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  143. package/dist/models/put-product-category-account-body-dto.js +0 -15
  144. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  145. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  146. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  147. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  148. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  149. package/dist/models/resolved-account-mapping-class.js +0 -15
  150. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  151. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  152. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  153. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  154. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  155. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  156. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  157. package/dist/models/update-financial-account-body-dto.js +0 -15
  158. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  159. package/dist/models/update-financial-account-response-class.js +0 -15
  160. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  161. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  162. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  163. package/dist/models/validate-accounting-config-response-class.js +0 -15
  164. package/models/account-mapping-class.ts +0 -82
  165. package/models/accounting-category-class.ts +0 -54
  166. package/models/accounting-config-class.ts +0 -87
  167. package/models/accounting-config-data-class.ts +0 -44
  168. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  169. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  170. package/models/accounting-config-data-dto.ts +0 -44
  171. package/models/accounting-configuration-class.ts +0 -42
  172. package/models/commission-account-mapping-class.ts +0 -55
  173. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  174. package/models/commission-agreement-partner-class.ts +0 -36
  175. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  176. package/models/commission-type-account-mapping-class.ts +0 -37
  177. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  178. package/models/create-and-enable-subledger-response-class.ts +0 -31
  179. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  180. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  181. package/models/export-accounting-config-response-class.ts +0 -31
  182. package/models/get-accounting-categories-response-class.ts +0 -31
  183. package/models/get-activation-snapshot-response-class.ts +0 -31
  184. package/models/list-commission-account-mappings-response-class.ts +0 -49
  185. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  186. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  187. package/models/list-product-account-mappings-response-class.ts +0 -49
  188. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  189. package/models/opening-balance-item-dto.ts +0 -50
  190. package/models/post-financial-event-request-dto.ts +0 -54
  191. package/models/post-financial-event-response-class.ts +0 -31
  192. package/models/premium-item-account-mapping-class.ts +0 -43
  193. package/models/product-account-mapping-class.ts +0 -67
  194. package/models/product-account-mapping-detail-class.ts +0 -62
  195. package/models/product-risk-carrier-class.ts +0 -48
  196. package/models/product-version-account-mapping-detail-class.ts +0 -56
  197. package/models/product-version-with-account-mappings-class.ts +0 -48
  198. package/models/product-with-account-mappings-class.ts +0 -55
  199. package/models/put-premium-item-account-body-dto.ts +0 -30
  200. package/models/put-product-category-account-body-dto.ts +0 -30
  201. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  202. package/models/put-product-version-category-account-body-dto.ts +0 -30
  203. package/models/resolved-account-mapping-class.ts +0 -37
  204. package/models/resolved-commission-account-mapping-class.ts +0 -46
  205. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  206. package/models/update-commission-type-account-body-dto.ts +0 -30
  207. package/models/update-financial-account-body-dto.ts +0 -54
  208. package/models/update-financial-account-response-class.ts +0 -31
  209. package/models/validate-accounting-config-request-dto.ts +0 -31
  210. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -103,7 +103,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,7 +152,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
155
152
  deletePersonalAccount: function (code, authorization, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -173,16 +170,13 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
173
170
  localVarQueryParameter = {};
174
171
  // authentication bearer required
175
172
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
178
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
174
  case 1:
180
175
  // authentication bearer required
181
176
  // http bearer authentication required
182
177
  _a.sent();
183
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
- if (authorizationValue) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
180
  }
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +201,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
207
201
  getPersonalAccount: function (code, expand, authorization, options) {
208
202
  if (options === void 0) { options = {}; }
209
203
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
205
  return __generator(this, function (_a) {
212
206
  switch (_a.label) {
213
207
  case 0:
@@ -235,9 +229,8 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
235
229
  if (expand !== undefined) {
236
230
  localVarQueryParameter['expand'] = expand;
237
231
  }
238
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
- if (authorizationValue) {
240
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
234
  }
242
235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
236
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -267,7 +260,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
267
260
  listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
268
261
  if (options === void 0) { options = {}; }
269
262
  return __awaiter(_this, void 0, void 0, function () {
270
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
263
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
271
264
  return __generator(this, function (_a) {
272
265
  switch (_a.label) {
273
266
  case 0:
@@ -308,9 +301,8 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
308
301
  if (filters !== undefined) {
309
302
  localVarQueryParameter['filters'] = filters;
310
303
  }
311
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
- if (authorizationValue) {
313
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
306
  }
315
307
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
308
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
package/dist/api.d.ts CHANGED
@@ -9,12 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/accounting-configs-api';
13
12
  export * from './api/booking-entries-api';
14
- export * from './api/commission-account-mappings-api';
15
13
  export * from './api/financial-accounts-api';
16
14
  export * from './api/financial-transactions-api';
17
15
  export * from './api/health-api';
18
16
  export * from './api/number-ranges-api';
19
17
  export * from './api/personal-accounts-api';
20
- export * from './api/product-account-mappings-api';
package/dist/api.js CHANGED
@@ -27,12 +27,9 @@ 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/accounting-configs-api"), exports);
31
30
  __exportStar(require("./api/booking-entries-api"), exports);
32
- __exportStar(require("./api/commission-account-mappings-api"), exports);
33
31
  __exportStar(require("./api/financial-accounts-api"), exports);
34
32
  __exportStar(require("./api/financial-transactions-api"), exports);
35
33
  __exportStar(require("./api/health-api"), exports);
36
34
  __exportStar(require("./api/number-ranges-api"), exports);
37
35
  __exportStar(require("./api/personal-accounts-api"), exports);
38
- __exportStar(require("./api/product-account-mappings-api"), exports);
package/dist/base.d.ts CHANGED
@@ -22,19 +22,9 @@ export declare const COLLECTION_FORMATS: {
22
22
  tsv: string;
23
23
  pipes: string;
24
24
  };
25
- export interface SessionClass {
26
- sub: string;
27
- username?: string;
28
- email?: string;
29
- tenantSlug?: string;
30
- permissions?: string;
31
- expiresAt?: number;
32
- }
33
25
  export interface LoginClass {
34
26
  accessToken: string;
35
27
  permissions: string;
36
- authMode?: string;
37
- session?: SessionClass;
38
28
  }
39
29
  export interface SwitchWorkspaceRequest {
40
30
  username: string;
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
43
33
  export interface SwitchWorkspaceResponseClass {
44
34
  accessToken: string;
45
35
  permissions: string;
46
- authMode?: string;
47
- session?: SessionClass;
48
36
  }
49
37
  export declare enum Environment {
50
38
  Production = "https://apiv2.emil.de",
@@ -75,18 +63,6 @@ export declare class BaseAPI {
75
63
  protected configuration: Configuration | undefined;
76
64
  private tokenData?;
77
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
78
- private sessionAccount;
79
- private authBasePath;
80
- private usesSession;
81
- private useSessionAuth;
82
- private useHeaderAuth;
83
- private applyTokenReply;
84
- private sessionHeaders;
85
- private withCurrentAuth;
86
- private canRetryWithToken;
87
- private canResend;
88
- private switchToToken;
89
- private retryWithToken;
90
66
  selectEnvironment(env: Environment): void;
91
67
  selectBasePath(path: string): void;
92
68
  getPermissions(): Array<string>;
package/dist/base.js CHANGED
@@ -74,17 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
- var __rest = (this && this.__rest) || function (s, e) {
78
- var t = {};
79
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
80
- t[p] = s[p];
81
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
82
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
83
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
84
- t[p[i]] = s[p[i]];
85
- }
86
- return t;
87
- };
88
77
  var __importDefault = (this && this.__importDefault) || function (mod) {
89
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
90
79
  };
@@ -123,12 +112,6 @@ function resetRetry() {
123
112
  exports.resetRetry = resetRetry;
124
113
  var NETWORK_ERROR_MESSAGE = "Network Error";
125
114
  var TOKEN_DATA = 'APP_TOKEN';
126
- // Sent only to authservice, to ask for a server session.
127
- var AUTH_MODE_HEADER = 'X-Emil-Auth-Mode';
128
- // Names the account on every call; one browser session can hold several.
129
- var ACCOUNT_HEADER = 'X-Emil-Account';
130
- var SESSION_MODES = ['both', 'session'];
131
- var RESEND_SAFE_METHODS = ['get', 'head', 'options'];
132
115
  /**
133
116
  *
134
117
  * @export
@@ -145,18 +128,10 @@ var BaseAPI = /** @class */ (function () {
145
128
  var accessToken = this.tokenData.accessToken;
146
129
  this.configuration = configuration;
147
130
  this.basePath = configuration.basePath || this.basePath;
148
- if (configuration.cookieAuth) {
149
- this.configuration.username = this.configuration.username || this.tokenData.username;
150
- }
151
- if (this.usesSession()) {
152
- this.useSessionAuth();
153
- }
154
- else {
155
- // Use config token if provided, otherwise use tokenData token
156
- var configToken = this.configuration.accessToken;
157
- var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
158
- this.configuration.accessToken = configToken || storedToken;
159
- }
131
+ // Use config token if provided, otherwise use tokenData token
132
+ var configToken = this.configuration.accessToken;
133
+ var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
134
+ this.configuration.accessToken = configToken || storedToken;
160
135
  }
161
136
  else {
162
137
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -168,95 +143,6 @@ var BaseAPI = /** @class */ (function () {
168
143
  }
169
144
  this.attachInterceptor(axios);
170
145
  }
171
- // The app's own account wins over APP_TOKEN, which holds whichever tab wrote last.
172
- BaseAPI.prototype.sessionAccount = function () {
173
- return this.configuration.account || this.tokenData.sub;
174
- };
175
- // Apps may pass the address as the second argument only; authservice is on the same host.
176
- BaseAPI.prototype.authBasePath = function () {
177
- return this.configuration.basePath || this.basePath;
178
- };
179
- BaseAPI.prototype.usesSession = function () {
180
- return !!this.configuration.cookieAuth && SESSION_MODES.indexOf(this.tokenData.authMode) !== -1 && !!this.sessionAccount();
181
- };
182
- BaseAPI.prototype.useSessionAuth = function () {
183
- var _a;
184
- var _b = this.configuration.baseOptions || {}, headers = _b.headers, baseOptions = __rest(_b, ["headers"]);
185
- this.configuration.accessToken = '';
186
- this.configuration.baseOptions = __assign(__assign({}, baseOptions), { withCredentials: true, headers: __assign(__assign({}, headers), (_a = {}, _a[ACCOUNT_HEADER] = this.sessionAccount(), _a)) });
187
- };
188
- BaseAPI.prototype.useHeaderAuth = function (accessToken) {
189
- this.configuration.accessToken = accessToken ? "Bearer ".concat(accessToken) : '';
190
- this.tokenData.accessToken = accessToken;
191
- delete this.tokenData.authMode;
192
- delete this.tokenData.sub;
193
- if (this.configuration.cookieAuth) {
194
- var _a = this.configuration.baseOptions || {}, withCredentials = _a.withCredentials, headers = _a.headers, baseOptions = __rest(_a, ["withCredentials", "headers"]);
195
- var _b = headers || {}, _c = ACCOUNT_HEADER, account = _b[_c], otherHeaders = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
196
- this.configuration.baseOptions = __assign(__assign({}, baseOptions), { headers: otherHeaders });
197
- }
198
- };
199
- BaseAPI.prototype.applyTokenReply = function (_a) {
200
- var accessToken = _a.accessToken, authMode = _a.authMode, session = _a.session;
201
- if (this.configuration.cookieAuth && SESSION_MODES.indexOf(authMode) !== -1 && (session === null || session === void 0 ? void 0 : session.sub)) {
202
- this.tokenData.authMode = authMode;
203
- this.tokenData.sub = session.sub;
204
- if (this.configuration.account) {
205
- // A workspace switch moves the app to another account.
206
- this.configuration.account = session.sub;
207
- }
208
- // Both keeps the token for apps not moved yet; session mode keeps no token at all.
209
- if (authMode === 'both' && accessToken) {
210
- this.tokenData.accessToken = accessToken;
211
- }
212
- else {
213
- delete this.tokenData.accessToken;
214
- }
215
- this.useSessionAuth();
216
- }
217
- else {
218
- this.useHeaderAuth(accessToken);
219
- }
220
- };
221
- BaseAPI.prototype.sessionHeaders = function () {
222
- var _a, _b;
223
- if (!this.configuration.cookieAuth) {
224
- return {};
225
- }
226
- return __assign((_a = {}, _a[AUTH_MODE_HEADER] = 'session', _a), (this.usesSession() && (_b = {}, _b[ACCOUNT_HEADER] = this.sessionAccount(), _b)));
227
- };
228
- BaseAPI.prototype.withCurrentAuth = function (config) {
229
- delete config.headers['Authorization'];
230
- delete config.headers[ACCOUNT_HEADER];
231
- if (this.usesSession()) {
232
- config.headers[ACCOUNT_HEADER] = this.sessionAccount();
233
- config.withCredentials = true;
234
- }
235
- else if (this.configuration.accessToken) {
236
- config.headers['Authorization'] = this.configuration.accessToken;
237
- }
238
- return config;
239
- };
240
- // Both keeps the token, so a session call the browser could not complete can be sent again with it.
241
- BaseAPI.prototype.canRetryWithToken = function (config) {
242
- var _a;
243
- return !!config.withCredentials && !!((_a = config.headers) === null || _a === void 0 ? void 0 : _a[ACCOUNT_HEADER])
244
- && !!this.tokenData.accessToken && this.tokenData.authMode !== 'session';
245
- };
246
- // A network error can come after the server ran the call, so only a call that is safe to repeat is sent again.
247
- BaseAPI.prototype.canResend = function (config) {
248
- return RESEND_SAFE_METHODS.indexOf((config.method || 'get').toLowerCase()) !== -1
249
- || Object.keys(config.headers || {}).some(function (name) { return name.toLowerCase() === 'idempotency-key'; });
250
- };
251
- BaseAPI.prototype.switchToToken = function () {
252
- this.useHeaderAuth(this.tokenData.accessToken);
253
- this.storeTokenData(this.tokenData);
254
- };
255
- BaseAPI.prototype.retryWithToken = function (axios, config) {
256
- this.switchToToken();
257
- config.withCredentials = false;
258
- return axios(this.withCurrentAuth(config));
259
- };
260
146
  BaseAPI.prototype.selectEnvironment = function (env) {
261
147
  this.selectBasePath(env);
262
148
  };
@@ -272,15 +158,14 @@ var BaseAPI = /** @class */ (function () {
272
158
  };
273
159
  BaseAPI.prototype.authorize = function (username, password, targetWorkspace) {
274
160
  return __awaiter(this, void 0, void 0, function () {
275
- var options, response;
276
- var _a;
161
+ var options, response, _a, accessToken, permissions;
277
162
  return __generator(this, function (_b) {
278
163
  switch (_b.label) {
279
164
  case 0:
280
165
  options = {
281
166
  method: 'POST',
282
- url: "".concat(this.authBasePath(), "/authservice/v1/login"),
283
- headers: __assign({ 'Content-Type': 'application/json' }, (this.configuration.cookieAuth && (_a = {}, _a[AUTH_MODE_HEADER] = 'session', _a))),
167
+ url: "".concat(this.configuration.basePath, "/authservice/v1/login"),
168
+ headers: { 'Content-Type': 'application/json' },
284
169
  data: {
285
170
  username: username,
286
171
  password: password,
@@ -290,10 +175,12 @@ var BaseAPI = /** @class */ (function () {
290
175
  return [4 /*yield*/, axios_1.default.request(options)];
291
176
  case 1:
292
177
  response = _b.sent();
178
+ _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
293
179
  this.configuration.username = username;
180
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
294
181
  this.tokenData.username = username;
295
- this.tokenData.permissions = response.data.permissions;
296
- this.applyTokenReply(response.data);
182
+ this.tokenData.accessToken = accessToken;
183
+ this.tokenData.permissions = permissions;
297
184
  if (!targetWorkspace) return [3 /*break*/, 3];
298
185
  return [4 /*yield*/, this.switchWorkspace(targetWorkspace)];
299
186
  case 2:
@@ -312,14 +199,17 @@ var BaseAPI = /** @class */ (function () {
312
199
  };
313
200
  BaseAPI.prototype.switchWorkspace = function (targetWorkspace) {
314
201
  return __awaiter(this, void 0, void 0, function () {
315
- var options, response;
316
- return __generator(this, function (_a) {
317
- switch (_a.label) {
202
+ var options, response, _a, accessToken, permissions;
203
+ return __generator(this, function (_b) {
204
+ switch (_b.label) {
318
205
  case 0:
319
206
  options = {
320
207
  method: 'POST',
321
- url: "".concat(this.authBasePath(), "/authservice/v1/workspaces/switch"),
322
- headers: __assign(__assign({ 'Content-Type': 'application/json' }, this.sessionHeaders()), (!this.usesSession() && !!this.configuration.accessToken && { 'Authorization': this.configuration.accessToken })),
208
+ url: "".concat(this.configuration.basePath, "/authservice/v1/workspaces/switch"),
209
+ headers: {
210
+ 'Content-Type': 'application/json',
211
+ 'Authorization': "Bearer ".concat(this.configuration.accessToken),
212
+ },
323
213
  data: {
324
214
  username: this.configuration.username,
325
215
  targetWorkspace: targetWorkspace,
@@ -328,9 +218,11 @@ var BaseAPI = /** @class */ (function () {
328
218
  };
329
219
  return [4 /*yield*/, axios_1.default.request(options)];
330
220
  case 1:
331
- response = _a.sent();
332
- this.tokenData.permissions = response.data.permissions;
333
- this.applyTokenReply(response.data);
221
+ response = _b.sent();
222
+ _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
223
+ this.configuration.accessToken = "Bearer ".concat(accessToken);
224
+ this.tokenData.accessToken = accessToken;
225
+ this.tokenData.permissions = permissions;
334
226
  this.storeTokenData(__assign({}, this.tokenData));
335
227
  return [2 /*return*/];
336
228
  }
@@ -357,8 +249,10 @@ var BaseAPI = /** @class */ (function () {
357
249
  });
358
250
  options = {
359
251
  method: 'POST',
360
- url: "".concat(this.authBasePath(), "/authservice/v1/refresh-token"),
361
- headers: __assign({ 'Content-Type': 'application/json' }, this.sessionHeaders()),
252
+ url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
253
+ headers: {
254
+ 'Content-Type': 'application/json',
255
+ },
362
256
  data: { username: username },
363
257
  withCredentials: true,
364
258
  };
@@ -391,75 +285,62 @@ var BaseAPI = /** @class */ (function () {
391
285
  axios.interceptors.response.use(function (res) {
392
286
  return res;
393
287
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
394
- var originalConfig, reply, _error_1, reply, _error_2;
395
- var _this = this;
396
- return __generator(this, function (_a) {
397
- switch (_a.label) {
288
+ var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
289
+ return __generator(this, function (_c) {
290
+ switch (_c.label) {
398
291
  case 0:
399
292
  originalConfig = err.config;
400
293
  if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
401
294
  if (!((err.response.status === 401 || err.response.status === 403)
402
295
  && !originalConfig._retry)) return [3 /*break*/, 4];
403
296
  originalConfig._retry = true;
404
- _a.label = 1;
297
+ _c.label = 1;
405
298
  case 1:
406
- _a.trys.push([1, 3, , 4]);
299
+ _c.trys.push([1, 3, , 4]);
407
300
  return [4 /*yield*/, this.refreshTokenInternal()];
408
301
  case 2:
409
- reply = _a.sent();
410
- this.tokenData.permissions = reply.permissions;
411
- this.applyTokenReply(reply);
302
+ _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
303
+ accessToken = "Bearer ".concat(tokenString);
304
+ this.tokenData.permissions = permissions;
305
+ delete originalConfig.headers['Authorization'];
306
+ originalConfig.headers['Authorization'] = accessToken;
307
+ this.configuration.accessToken = accessToken;
308
+ this.tokenData.accessToken = tokenString;
412
309
  this.storeTokenData(this.tokenData);
413
- if (!this.usesSession()) {
414
- return [2 /*return*/, axios(this.withCurrentAuth(originalConfig))];
415
- }
416
- // Both mode: if the browser does not send the session cookie (another site), use the token.
417
- return [2 /*return*/, axios(this.withCurrentAuth(originalConfig)).catch(function (retryError) {
418
- var _a;
419
- if (((_a = retryError === null || retryError === void 0 ? void 0 : retryError.response) === null || _a === void 0 ? void 0 : _a.status) !== 401 || !_this.tokenData.accessToken) {
420
- return Promise.reject(retryError);
421
- }
422
- return _this.retryWithToken(axios, originalConfig);
423
- })];
310
+ return [2 /*return*/, axios(originalConfig)];
424
311
  case 3:
425
- _error_1 = _a.sent();
312
+ _error_1 = _c.sent();
426
313
  if (_error_1.response && _error_1.response.data) {
427
314
  return [2 /*return*/, Promise.reject(_error_1.response.data)];
428
315
  }
429
316
  return [2 /*return*/, Promise.reject(_error_1)];
430
- case 4: return [3 /*break*/, 10];
317
+ case 4: return [3 /*break*/, 9];
431
318
  case 5:
432
- if (!(err.message === NETWORK_ERROR_MESSAGE && this.canRetryWithToken(originalConfig))) return [3 /*break*/, 6];
433
- // Both mode: the browser blocked the session call or hid its reply; later calls use the token.
434
- if (!this.canResend(originalConfig)) {
435
- this.switchToToken();
436
- return [2 /*return*/, Promise.reject(err)];
437
- }
438
- return [2 /*return*/, this.retryWithToken(axios, originalConfig)];
439
- case 6:
440
319
  if (!(err.message === NETWORK_ERROR_MESSAGE
441
- && (originalConfig.headers.hasOwnProperty('Authorization')
442
- || (this.configuration.cookieAuth && originalConfig.withCredentials && this.canResend(originalConfig)))
443
- && _retry_count < 4)) return [3 /*break*/, 10];
320
+ && originalConfig.headers.hasOwnProperty('Authorization')
321
+ && _retry_count < 4)) return [3 /*break*/, 9];
444
322
  _retry_count++;
445
- _a.label = 7;
446
- case 7:
447
- _a.trys.push([7, 9, , 10]);
323
+ _c.label = 6;
324
+ case 6:
325
+ _c.trys.push([6, 8, , 9]);
448
326
  return [4 /*yield*/, this.refreshTokenInternal()];
449
- case 8:
450
- reply = _a.sent();
451
- this.tokenData.permissions = reply.permissions;
327
+ case 7:
328
+ _b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
329
+ accessToken = "Bearer ".concat(tokenString);
330
+ this.tokenData.permissions = permissions;
452
331
  _retry = true;
453
- this.applyTokenReply(reply);
332
+ originalConfig.headers['Authorization'] = accessToken;
333
+ this.configuration.accessToken = accessToken;
334
+ this.tokenData.accessToken = tokenString;
454
335
  this.storeTokenData(this.tokenData);
455
- return [2 /*return*/, axios.request(__assign({}, this.withCurrentAuth(originalConfig)))];
456
- case 9:
457
- _error_2 = _a.sent();
336
+ return [2 /*return*/, axios.request(__assign({}, originalConfig))];
337
+ case 8:
338
+ _error_2 = _c.sent();
458
339
  if (_error_2.response && _error_2.response.data) {
459
340
  return [2 /*return*/, Promise.reject(_error_2.response.data)];
460
341
  }
461
342
  return [2 /*return*/, Promise.reject(_error_2)];
462
- case 10: return [2 /*return*/, Promise.reject(err)];
343
+ case 9: return [2 /*return*/, Promise.reject(err)];
463
344
  }
464
345
  });
465
346
  }); });
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ 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>;
66
66
  /**
67
67
  * EMIL AccountingService
68
68
  * The EMIL AccountingService API description
package/dist/common.js CHANGED
@@ -233,7 +233,6 @@ exports.toPathString = toPathString;
233
233
  * @export
234
234
  */
235
235
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
236
- // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
237
236
  return function (axios, basePath) {
238
237
  if (axios === void 0) { axios = globalAxios; }
239
238
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -17,8 +17,6 @@ export interface ConfigurationParameters {
17
17
  basePath?: string;
18
18
  baseOptions?: any;
19
19
  formDataCtor?: new () => any;
20
- cookieAuth?: boolean;
21
- account?: string;
22
20
  }
23
21
  export declare class Configuration {
24
22
  /**
@@ -70,21 +68,6 @@ export declare class Configuration {
70
68
  * @type {new () => FormData}
71
69
  */
72
70
  formDataCtor?: new () => any;
73
- /**
74
- * Use a server session when authservice makes one; otherwise the token, as without this option.
75
- * Set `account` too, so each SDK object keeps its own account.
76
- *
77
- * @type {boolean}
78
- * @memberof Configuration
79
- */
80
- cookieAuth?: boolean;
81
- /**
82
- * The session account (Cognito sub) this app shows, so the SDK never takes another tab's account.
83
- *
84
- * @type {string}
85
- * @memberof Configuration
86
- */
87
- account?: string;
88
71
  constructor(param?: ConfigurationParameters);
89
72
  /**
90
73
  * Check if the given MIME is a JSON MIME.
@@ -24,8 +24,6 @@ var Configuration = /** @class */ (function () {
24
24
  this.basePath = param.basePath;
25
25
  this.baseOptions = param.baseOptions;
26
26
  this.formDataCtor = param.formDataCtor;
27
- this.cookieAuth = param.cookieAuth;
28
- this.account = param.account;
29
27
  }
30
28
  /**
31
29
  * Check if the given MIME is a JSON MIME.
@@ -76,30 +76,6 @@ export interface BookingEntryClass {
76
76
  * @memberof BookingEntryClass
77
77
  */
78
78
  'externalNumber'?: string;
79
- /**
80
- * The code of the source entity this entry was posted for, such as an invoice or payment code. Absent on an entry posted by hand (sourceEntityType manual) and on a legacy entry.
81
- * @type {string}
82
- * @memberof BookingEntryClass
83
- */
84
- 'sourceEntityCode'?: string;
85
- /**
86
- * The kind of source entity this entry was posted for: manual for an entry posted by hand, which carries no sourceEntityCode. Absent only on a legacy entry.
87
- * @type {string}
88
- * @memberof BookingEntryClass
89
- */
90
- 'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
91
- /**
92
- * The code of the entry this entry reverses. Absent on an entry that is not a reversal.
93
- * @type {string}
94
- * @memberof BookingEntryClass
95
- */
96
- 'reversalOfCode'?: string;
97
- /**
98
- * True once the entry has been reversed in full. Its reversal names it in reversalOfCode.
99
- * @type {boolean}
100
- * @memberof BookingEntryClass
101
- */
102
- 'isReversed'?: boolean;
103
79
  /**
104
80
  * A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
105
81
  * @type {Array<FinancialTransactionClass>}
@@ -145,13 +121,3 @@ export declare const BookingEntryClassCurrencyEnum: {
145
121
  readonly Sek: "SEK";
146
122
  };
147
123
  export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
148
- export declare const BookingEntryClassSourceEntityTypeEnum: {
149
- readonly Invoice: "invoice";
150
- readonly Payment: "payment";
151
- readonly Credit: "credit";
152
- readonly CreditAllocation: "credit_allocation";
153
- readonly ClaimRegulation: "claim_regulation";
154
- readonly Commission: "commission";
155
- readonly Manual: "manual";
156
- };
157
- export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BookingEntryClassSourceEntityTypeEnum = exports.BookingEntryClassCurrencyEnum = void 0;
16
+ exports.BookingEntryClassCurrencyEnum = void 0;
17
17
  exports.BookingEntryClassCurrencyEnum = {
18
18
  Eur: 'EUR',
19
19
  Usd: 'USD',
@@ -27,12 +27,3 @@ exports.BookingEntryClassCurrencyEnum = {
27
27
  Nok: 'NOK',
28
28
  Sek: 'SEK'
29
29
  };
30
- exports.BookingEntryClassSourceEntityTypeEnum = {
31
- Invoice: 'invoice',
32
- Payment: 'payment',
33
- Credit: 'credit',
34
- CreditAllocation: 'credit_allocation',
35
- ClaimRegulation: 'claim_regulation',
36
- Commission: 'commission',
37
- Manual: 'manual'
38
- };