@emilgroup/accounting-sdk-node 1.27.1-beta.3 → 1.27.1-beta.30

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 (102) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +1234 -0
  4. package/api/financial-accounts-api.ts +12 -12
  5. package/api.ts +2 -0
  6. package/base.ts +1 -0
  7. package/dist/api/accounting-configs-api.d.ts +671 -0
  8. package/dist/api/accounting-configs-api.js +1125 -0
  9. package/dist/api/financial-accounts-api.d.ts +12 -12
  10. package/dist/api/financial-accounts-api.js +9 -9
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +2 -1
  14. package/dist/base.js +1 -0
  15. package/dist/models/accounting-category-class.d.ts +45 -0
  16. package/dist/models/accounting-category-class.js +24 -0
  17. package/dist/models/accounting-config-class.d.ts +67 -0
  18. package/dist/models/accounting-config-class.js +15 -0
  19. package/dist/models/accounting-config-data-class.d.ts +45 -0
  20. package/dist/models/accounting-config-data-class.js +15 -0
  21. package/dist/models/accounting-configuration-class.d.ts +36 -0
  22. package/dist/models/accounting-configuration-class.js +15 -0
  23. package/dist/models/chart-of-accounts-config-class.d.ts +25 -0
  24. package/dist/models/chart-of-accounts-config-class.js +15 -0
  25. package/dist/models/chart-of-accounts-item-class.d.ts +71 -0
  26. package/dist/models/chart-of-accounts-item-class.js +38 -0
  27. package/dist/models/create-accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  28. package/dist/models/create-accounting-config-data-dto-accounting-configuration.js +24 -0
  29. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.d.ts +59 -0
  30. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.js +38 -0
  31. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config.d.ts +25 -0
  32. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config.js +15 -0
  33. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.d.ts +65 -0
  34. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.js +38 -0
  35. package/dist/models/create-accounting-config-data-dto-opening-balances.d.ts +25 -0
  36. package/dist/models/create-accounting-config-data-dto-opening-balances.js +15 -0
  37. package/dist/models/create-accounting-config-data-dto.d.ts +45 -0
  38. package/dist/models/create-accounting-config-data-dto.js +15 -0
  39. package/dist/models/create-accounting-config-request-dto.d.ts +31 -0
  40. package/dist/models/create-accounting-config-request-dto.js +15 -0
  41. package/dist/models/create-accounting-config-response-class.d.ts +25 -0
  42. package/dist/models/create-accounting-config-response-class.js +15 -0
  43. package/dist/models/create-financial-account-request-dto.d.ts +36 -1
  44. package/dist/models/create-financial-account-request-dto.js +24 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  46. package/dist/models/create-number-range-request-dto.js +4 -4
  47. package/dist/models/create-personal-account-request-dto.d.ts +10 -4
  48. package/dist/models/create-personal-account-request-dto.js +3 -3
  49. package/dist/models/financial-account-class.d.ts +20 -2
  50. package/dist/models/financial-account-class.js +1 -1
  51. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  52. package/dist/models/get-accounting-categories-response-class.js +15 -0
  53. package/dist/models/get-accounting-config-response-class.d.ts +25 -0
  54. package/dist/models/get-accounting-config-response-class.js +15 -0
  55. package/dist/models/index.d.ts +23 -0
  56. package/dist/models/index.js +23 -0
  57. package/dist/models/inline-object2.d.ts +24 -0
  58. package/dist/models/inline-object2.js +15 -0
  59. package/dist/models/list-accounting-configs-response-class.d.ts +43 -0
  60. package/dist/models/list-accounting-configs-response-class.js +15 -0
  61. package/dist/models/opening-balance-class.d.ts +65 -0
  62. package/dist/models/opening-balance-class.js +38 -0
  63. package/dist/models/opening-balances-class.d.ts +25 -0
  64. package/dist/models/opening-balances-class.js +15 -0
  65. package/dist/models/personal-account-class.d.ts +8 -2
  66. package/dist/models/personal-account-class.js +1 -1
  67. package/dist/models/update-chart-of-accounts-response-class.d.ts +25 -0
  68. package/dist/models/update-chart-of-accounts-response-class.js +15 -0
  69. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  70. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  71. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  72. package/dist/models/validate-accounting-config-response-class.js +15 -0
  73. package/models/accounting-category-class.ts +54 -0
  74. package/models/accounting-config-class.ts +73 -0
  75. package/models/accounting-config-data-class.ts +51 -0
  76. package/models/accounting-configuration-class.ts +42 -0
  77. package/models/chart-of-accounts-config-class.ts +31 -0
  78. package/models/chart-of-accounts-item-class.ts +80 -0
  79. package/models/create-accounting-config-data-dto-accounting-configuration.ts +56 -0
  80. package/models/create-accounting-config-data-dto-chart-of-accounts-config-items.ts +68 -0
  81. package/models/create-accounting-config-data-dto-chart-of-accounts-config.ts +31 -0
  82. package/models/create-accounting-config-data-dto-opening-balances-opening-balances.ts +74 -0
  83. package/models/create-accounting-config-data-dto-opening-balances.ts +31 -0
  84. package/models/create-accounting-config-data-dto.ts +51 -0
  85. package/models/create-accounting-config-request-dto.ts +37 -0
  86. package/models/create-accounting-config-response-class.ts +31 -0
  87. package/models/create-financial-account-request-dto.ts +37 -1
  88. package/models/create-number-range-request-dto.ts +4 -4
  89. package/models/create-personal-account-request-dto.ts +10 -4
  90. package/models/financial-account-class.ts +20 -2
  91. package/models/get-accounting-categories-response-class.ts +31 -0
  92. package/models/get-accounting-config-response-class.ts +31 -0
  93. package/models/index.ts +23 -0
  94. package/models/inline-object2.ts +30 -0
  95. package/models/list-accounting-configs-response-class.ts +49 -0
  96. package/models/opening-balance-class.ts +74 -0
  97. package/models/opening-balances-class.ts +31 -0
  98. package/models/personal-account-class.ts +8 -2
  99. package/models/update-chart-of-accounts-response-class.ts +31 -0
  100. package/models/validate-accounting-config-request-dto.ts +31 -0
  101. package/models/validate-accounting-config-response-class.ts +36 -0
  102. package/package.json +2 -2
@@ -188,11 +188,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
189
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
190
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
191
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
191
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
192
192
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
193
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
193
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
194
194
  * @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.<br/> <br/>
195
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
195
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
196
196
  * @param {*} [options] Override http request option.
197
197
  * @throws {RequiredError}
198
198
  */
@@ -311,11 +311,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
311
311
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
312
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
313
313
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
314
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
314
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
315
315
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
316
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
316
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
317
317
  * @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.<br/> <br/>
318
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
318
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
319
319
  * @param {*} [options] Override http request option.
320
320
  * @throws {RequiredError}
321
321
  */
@@ -373,11 +373,11 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
373
373
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
374
374
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
375
375
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
376
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
376
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
377
377
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
378
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
378
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
379
379
  * @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.<br/> <br/>
380
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
380
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
381
381
  * @param {*} [options] Override http request option.
382
382
  * @throws {RequiredError}
383
383
  */
@@ -485,7 +485,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
485
485
  readonly pageToken?: string
486
486
 
487
487
  /**
488
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
488
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
489
489
  * @type {string}
490
490
  * @memberof FinancialAccountsApiListFinancialAccounts
491
491
  */
@@ -499,7 +499,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
499
499
  readonly search?: string
500
500
 
501
501
  /**
502
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
502
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
503
503
  * @type {string}
504
504
  * @memberof FinancialAccountsApiListFinancialAccounts
505
505
  */
@@ -513,7 +513,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
513
513
  readonly expand?: string
514
514
 
515
515
  /**
516
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
516
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount</i>
517
517
  * @type {string}
518
518
  * @memberof FinancialAccountsApiListFinancialAccounts
519
519
  */
package/api.ts CHANGED
@@ -24,6 +24,7 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
+ import { AccountingConfigsApi } from './api';
27
28
  import { BookingEntriesApi } from './api';
28
29
  import { FinancialAccountsApi } from './api';
29
30
  import { FinancialTransactionsApi } from './api';
@@ -32,6 +33,7 @@ import { NumberRangesApi } from './api';
32
33
  import { PersonalAccountsApi } from './api';
33
34
 
34
35
 
36
+ export * from './api/accounting-configs-api';
35
37
  export * from './api/booking-entries-api';
36
38
  export * from './api/financial-accounts-api';
37
39
  export * from './api/financial-transactions-api';
package/base.ts CHANGED
@@ -60,6 +60,7 @@ export enum Environment {
60
60
  Staging = 'https://apiv2-staging.emil.de',
61
61
  Development = 'https://apiv2-dev.emil.de',
62
62
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
63
+ StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
63
64
  }
64
65
 
65
66
  let _retry_count = 0