@emilgroup/accounting-sdk-node 1.32.1-beta.16 → 1.32.1-beta.17

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.
@@ -40,12 +40,12 @@ models/financial-account-class.ts
40
40
  models/financial-transaction-class.ts
41
41
  models/financial-transaction-data-dto.ts
42
42
  models/get-accounting-categories-response-class.ts
43
+ models/get-activation-snapshot-response-class.ts
43
44
  models/get-booking-entry-response-class.ts
44
45
  models/get-financial-account-response-class.ts
45
46
  models/get-financial-transaction-response-class.ts
46
47
  models/get-number-range-response-class.ts
47
48
  models/get-personal-account-response-class.ts
48
- models/get-subledger-settings-response-class.ts
49
49
  models/index.ts
50
50
  models/inline-response200.ts
51
51
  models/inline-response503.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk-node@1.32.1-beta.16 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.17 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.16
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.17
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -29,7 +29,7 @@ import { ExportAccountingConfigResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { GetAccountingCategoriesResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { GetSubledgerSettingsResponseClass } from '../models';
32
+ import { GetActivationSnapshotResponseClass } from '../models';
33
33
  // @ts-ignore
34
34
  import { ValidateAccountingConfigRequestDto } from '../models';
35
35
  // @ts-ignore
@@ -227,14 +227,14 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
227
227
  };
228
228
  },
229
229
  /**
230
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
231
- * @summary Retrieve the get subledger settings
230
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
231
+ * @summary Retrieve the get activation snapshot
232
232
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
233
  * @param {*} [options] Override http request option.
234
234
  * @throws {RequiredError}
235
235
  */
236
- getSubledgerSettings: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
- const localVarPath = `/accountingservice/v1/subledger/settings`;
236
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
238
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
239
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
240
240
  let baseOptions;
@@ -465,14 +465,14 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
465
465
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
466
466
  },
467
467
  /**
468
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
469
- * @summary Retrieve the get subledger settings
468
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
469
+ * @summary Retrieve the get activation snapshot
470
470
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
471
  * @param {*} [options] Override http request option.
472
472
  * @throws {RequiredError}
473
473
  */
474
- async getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>> {
475
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSubledgerSettings(authorization, options);
474
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
476
476
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
477
477
  },
478
478
  /**
@@ -563,14 +563,14 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
563
563
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
564
564
  },
565
565
  /**
566
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
567
- * @summary Retrieve the get subledger settings
566
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
567
+ * @summary Retrieve the get activation snapshot
568
568
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
569
569
  * @param {*} [options] Override http request option.
570
570
  * @throws {RequiredError}
571
571
  */
572
- getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass> {
573
- return localVarFp.getSubledgerSettings(authorization, options).then((request) => request(axios, basePath));
572
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
573
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
574
574
  },
575
575
  /**
576
576
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -678,15 +678,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
678
678
  }
679
679
 
680
680
  /**
681
- * Request parameters for getSubledgerSettings operation in AccountingConfigsApi.
681
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
682
682
  * @export
683
- * @interface AccountingConfigsApiGetSubledgerSettingsRequest
683
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
684
684
  */
685
- export interface AccountingConfigsApiGetSubledgerSettingsRequest {
685
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
686
686
  /**
687
687
  * Bearer Token: provided by the login endpoint under the name accessToken.
688
688
  * @type {string}
689
- * @memberof AccountingConfigsApiGetSubledgerSettings
689
+ * @memberof AccountingConfigsApiGetActivationSnapshot
690
690
  */
691
691
  readonly authorization?: string
692
692
  }
@@ -803,15 +803,15 @@ export class AccountingConfigsApi extends BaseAPI {
803
803
  }
804
804
 
805
805
  /**
806
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
807
- * @summary Retrieve the get subledger settings
808
- * @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
806
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
807
+ * @summary Retrieve the get activation snapshot
808
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
809
809
  * @param {*} [options] Override http request option.
810
810
  * @throws {RequiredError}
811
811
  * @memberof AccountingConfigsApi
812
812
  */
813
- public getSubledgerSettings(requestParameters: AccountingConfigsApiGetSubledgerSettingsRequest = {}, options?: AxiosRequestConfig) {
814
- return AccountingConfigsApiFp(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
813
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
814
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
815
815
  }
816
816
 
817
817
  /**
@@ -16,7 +16,7 @@ import { CreateAndEnableSubledgerRequestDto } from '../models';
16
16
  import { CreateAndEnableSubledgerResponseClass } from '../models';
17
17
  import { ExportAccountingConfigResponseClass } from '../models';
18
18
  import { GetAccountingCategoriesResponseClass } from '../models';
19
- import { GetSubledgerSettingsResponseClass } from '../models';
19
+ import { GetActivationSnapshotResponseClass } from '../models';
20
20
  import { ValidateAccountingConfigRequestDto } from '../models';
21
21
  import { ValidateAccountingConfigResponseClass } from '../models';
22
22
  /**
@@ -59,13 +59,13 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
59
59
  */
60
60
  getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
61
  /**
62
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
63
- * @summary Retrieve the get subledger settings
62
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
63
+ * @summary Retrieve the get activation snapshot
64
64
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- getSubledgerSettings: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
70
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
71
71
  * @summary Delete the reset subledger
@@ -133,13 +133,13 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
133
133
  */
134
134
  getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
135
135
  /**
136
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
137
- * @summary Retrieve the get subledger settings
136
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
137
+ * @summary Retrieve the get activation snapshot
138
138
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
142
- getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>>;
142
+ getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
143
143
  /**
144
144
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
145
145
  * @summary Delete the reset subledger
@@ -207,13 +207,13 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
207
207
  */
208
208
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
209
209
  /**
210
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
211
- * @summary Retrieve the get subledger settings
210
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
211
+ * @summary Retrieve the get activation snapshot
212
212
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
213
  * @param {*} [options] Override http request option.
214
214
  * @throws {RequiredError}
215
215
  */
216
- getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass>;
216
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
217
217
  /**
218
218
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
219
219
  * @summary Delete the reset subledger
@@ -306,15 +306,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
306
306
  readonly authorization?: string;
307
307
  }
308
308
  /**
309
- * Request parameters for getSubledgerSettings operation in AccountingConfigsApi.
309
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
310
310
  * @export
311
- * @interface AccountingConfigsApiGetSubledgerSettingsRequest
311
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
312
312
  */
313
- export interface AccountingConfigsApiGetSubledgerSettingsRequest {
313
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
314
314
  /**
315
315
  * Bearer Token: provided by the login endpoint under the name accessToken.
316
316
  * @type {string}
317
- * @memberof AccountingConfigsApiGetSubledgerSettings
317
+ * @memberof AccountingConfigsApiGetActivationSnapshot
318
318
  */
319
319
  readonly authorization?: string;
320
320
  }
@@ -413,14 +413,14 @@ export declare class AccountingConfigsApi extends BaseAPI {
413
413
  */
414
414
  getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
415
415
  /**
416
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
417
- * @summary Retrieve the get subledger settings
418
- * @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
416
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
417
+ * @summary Retrieve the get activation snapshot
418
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
419
419
  * @param {*} [options] Override http request option.
420
420
  * @throws {RequiredError}
421
421
  * @memberof AccountingConfigsApi
422
422
  */
423
- getSubledgerSettings(requestParameters?: AccountingConfigsApiGetSubledgerSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSubledgerSettingsResponseClass, any, {}>>;
423
+ getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
424
424
  /**
425
425
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
426
426
  * @summary Delete the reset subledger
@@ -287,20 +287,20 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
287
287
  });
288
288
  },
289
289
  /**
290
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
291
- * @summary Retrieve the get subledger settings
290
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
291
+ * @summary Retrieve the get activation snapshot
292
292
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
293
  * @param {*} [options] Override http request option.
294
294
  * @throws {RequiredError}
295
295
  */
296
- getSubledgerSettings: function (authorization, options) {
296
+ getActivationSnapshot: function (authorization, options) {
297
297
  if (options === void 0) { options = {}; }
298
298
  return __awaiter(_this, void 0, void 0, function () {
299
299
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
300
300
  return __generator(this, function (_a) {
301
301
  switch (_a.label) {
302
302
  case 0:
303
- localVarPath = "/accountingservice/v1/subledger/settings";
303
+ localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
304
304
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
305
305
  if (configuration) {
306
306
  baseOptions = configuration.baseOptions;
@@ -569,18 +569,18 @@ var AccountingConfigsApiFp = function (configuration) {
569
569
  });
570
570
  },
571
571
  /**
572
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
573
- * @summary Retrieve the get subledger settings
572
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
573
+ * @summary Retrieve the get activation snapshot
574
574
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
575
  * @param {*} [options] Override http request option.
576
576
  * @throws {RequiredError}
577
577
  */
578
- getSubledgerSettings: function (authorization, options) {
578
+ getActivationSnapshot: function (authorization, options) {
579
579
  return __awaiter(this, void 0, void 0, function () {
580
580
  var localVarAxiosArgs;
581
581
  return __generator(this, function (_a) {
582
582
  switch (_a.label) {
583
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSubledgerSettings(authorization, options)];
583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
584
584
  case 1:
585
585
  localVarAxiosArgs = _a.sent();
586
586
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -703,14 +703,14 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
703
703
  return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
704
704
  },
705
705
  /**
706
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
707
- * @summary Retrieve the get subledger settings
706
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
707
+ * @summary Retrieve the get activation snapshot
708
708
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
709
  * @param {*} [options] Override http request option.
710
710
  * @throws {RequiredError}
711
711
  */
712
- getSubledgerSettings: function (authorization, options) {
713
- return localVarFp.getSubledgerSettings(authorization, options).then(function (request) { return request(axios, basePath); });
712
+ getActivationSnapshot: function (authorization, options) {
713
+ return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
714
714
  },
715
715
  /**
716
716
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -809,17 +809,17 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
809
809
  return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
810
810
  };
811
811
  /**
812
- * Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
813
- * @summary Retrieve the get subledger settings
814
- * @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
812
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
813
+ * @summary Retrieve the get activation snapshot
814
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
815
815
  * @param {*} [options] Override http request option.
816
816
  * @throws {RequiredError}
817
817
  * @memberof AccountingConfigsApi
818
818
  */
819
- AccountingConfigsApi.prototype.getSubledgerSettings = function (requestParameters, options) {
819
+ AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
820
820
  var _this = this;
821
821
  if (requestParameters === void 0) { requestParameters = {}; }
822
- return (0, exports.AccountingConfigsApiFp)(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
822
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
823
823
  };
824
824
  /**
825
825
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -34,6 +34,12 @@ export interface AccountingConfigClass {
34
34
  * @memberof AccountingConfigClass
35
35
  */
36
36
  'config'?: AccountingConfigDataClass;
37
+ /**
38
+ * Enablement status of the subledger config: \'pending\' while accounts and opening balances are still being provisioned asynchronously, \'complete\' once that work has finished.
39
+ * @type {string}
40
+ * @memberof AccountingConfigClass
41
+ */
42
+ 'enablementStatus': AccountingConfigClassEnablementStatusEnum;
37
43
  /**
38
44
  * Product slug this config is scoped to; absent for the tenant default config.
39
45
  * @type {string}
@@ -65,3 +71,8 @@ export interface AccountingConfigClass {
65
71
  */
66
72
  'updatedAt': string;
67
73
  }
74
+ export declare const AccountingConfigClassEnablementStatusEnum: {
75
+ readonly Pending: "pending";
76
+ readonly Complete: "complete";
77
+ };
78
+ export type AccountingConfigClassEnablementStatusEnum = typeof AccountingConfigClassEnablementStatusEnum[keyof typeof AccountingConfigClassEnablementStatusEnum];
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountingConfigClassEnablementStatusEnum = void 0;
17
+ exports.AccountingConfigClassEnablementStatusEnum = {
18
+ Pending: 'pending',
19
+ Complete: 'complete'
20
+ };
@@ -80,7 +80,7 @@ export interface FinancialAccountClass {
80
80
  * @type {string}
81
81
  * @memberof FinancialAccountClass
82
82
  */
83
- 'status': string;
83
+ 'status': FinancialAccountClassStatusEnum;
84
84
  /**
85
85
  * Whether the account is a control account.
86
86
  * @type {boolean}
@@ -139,3 +139,8 @@ export declare const FinancialAccountClassTypeEnum: {
139
139
  readonly OpeningBalance: "opening_balance";
140
140
  };
141
141
  export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
142
+ export declare const FinancialAccountClassStatusEnum: {
143
+ readonly Active: "active";
144
+ readonly Inactive: "inactive";
145
+ };
146
+ export type FinancialAccountClassStatusEnum = typeof FinancialAccountClassStatusEnum[keyof typeof FinancialAccountClassStatusEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.FinancialAccountClassTypeEnum = void 0;
16
+ exports.FinancialAccountClassStatusEnum = exports.FinancialAccountClassTypeEnum = void 0;
17
17
  exports.FinancialAccountClassTypeEnum = {
18
18
  Asset: 'asset',
19
19
  Liability: 'liability',
@@ -22,3 +22,7 @@ exports.FinancialAccountClassTypeEnum = {
22
22
  Expense: 'expense',
23
23
  OpeningBalance: 'opening_balance'
24
24
  };
25
+ exports.FinancialAccountClassStatusEnum = {
26
+ Active: 'active',
27
+ Inactive: 'inactive'
28
+ };
@@ -0,0 +1,25 @@
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 { AccountingConfigClass } from './accounting-config-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetActivationSnapshotResponseClass
17
+ */
18
+ export interface GetActivationSnapshotResponseClass {
19
+ /**
20
+ * The subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status.
21
+ * @type {AccountingConfigClass}
22
+ * @memberof GetActivationSnapshotResponseClass
23
+ */
24
+ 'accountingConfig'?: AccountingConfigClass;
25
+ }
@@ -22,12 +22,12 @@ export * from './financial-account-class';
22
22
  export * from './financial-transaction-class';
23
23
  export * from './financial-transaction-data-dto';
24
24
  export * from './get-accounting-categories-response-class';
25
+ export * from './get-activation-snapshot-response-class';
25
26
  export * from './get-booking-entry-response-class';
26
27
  export * from './get-financial-account-response-class';
27
28
  export * from './get-financial-transaction-response-class';
28
29
  export * from './get-number-range-response-class';
29
30
  export * from './get-personal-account-response-class';
30
- export * from './get-subledger-settings-response-class';
31
31
  export * from './inline-response200';
32
32
  export * from './inline-response503';
33
33
  export * from './list-account-mappings-response-class';
@@ -38,12 +38,12 @@ __exportStar(require("./financial-account-class"), exports);
38
38
  __exportStar(require("./financial-transaction-class"), exports);
39
39
  __exportStar(require("./financial-transaction-data-dto"), exports);
40
40
  __exportStar(require("./get-accounting-categories-response-class"), exports);
41
+ __exportStar(require("./get-activation-snapshot-response-class"), exports);
41
42
  __exportStar(require("./get-booking-entry-response-class"), exports);
42
43
  __exportStar(require("./get-financial-account-response-class"), exports);
43
44
  __exportStar(require("./get-financial-transaction-response-class"), exports);
44
45
  __exportStar(require("./get-number-range-response-class"), exports);
45
46
  __exportStar(require("./get-personal-account-response-class"), exports);
46
- __exportStar(require("./get-subledger-settings-response-class"), exports);
47
47
  __exportStar(require("./inline-response200"), exports);
48
48
  __exportStar(require("./inline-response503"), exports);
49
49
  __exportStar(require("./list-account-mappings-response-class"), exports);
@@ -39,6 +39,12 @@ export interface AccountingConfigClass {
39
39
  * @memberof AccountingConfigClass
40
40
  */
41
41
  'config'?: AccountingConfigDataClass;
42
+ /**
43
+ * Enablement status of the subledger config: \'pending\' while accounts and opening balances are still being provisioned asynchronously, \'complete\' once that work has finished.
44
+ * @type {string}
45
+ * @memberof AccountingConfigClass
46
+ */
47
+ 'enablementStatus': AccountingConfigClassEnablementStatusEnum;
42
48
  /**
43
49
  * Product slug this config is scoped to; absent for the tenant default config.
44
50
  * @type {string}
@@ -71,3 +77,11 @@ export interface AccountingConfigClass {
71
77
  'updatedAt': string;
72
78
  }
73
79
 
80
+ export const AccountingConfigClassEnablementStatusEnum = {
81
+ Pending: 'pending',
82
+ Complete: 'complete'
83
+ } as const;
84
+
85
+ export type AccountingConfigClassEnablementStatusEnum = typeof AccountingConfigClassEnablementStatusEnum[keyof typeof AccountingConfigClassEnablementStatusEnum];
86
+
87
+
@@ -85,7 +85,7 @@ export interface FinancialAccountClass {
85
85
  * @type {string}
86
86
  * @memberof FinancialAccountClass
87
87
  */
88
- 'status': string;
88
+ 'status': FinancialAccountClassStatusEnum;
89
89
  /**
90
90
  * Whether the account is a control account.
91
91
  * @type {boolean}
@@ -146,5 +146,11 @@ export const FinancialAccountClassTypeEnum = {
146
146
  } as const;
147
147
 
148
148
  export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
149
+ export const FinancialAccountClassStatusEnum = {
150
+ Active: 'active',
151
+ Inactive: 'inactive'
152
+ } as const;
153
+
154
+ export type FinancialAccountClassStatusEnum = typeof FinancialAccountClassStatusEnum[keyof typeof FinancialAccountClassStatusEnum];
149
155
 
150
156
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { AccountingConfigClass } from './accounting-config-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetActivationSnapshotResponseClass
22
+ */
23
+ export interface GetActivationSnapshotResponseClass {
24
+ /**
25
+ * The subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status.
26
+ * @type {AccountingConfigClass}
27
+ * @memberof GetActivationSnapshotResponseClass
28
+ */
29
+ 'accountingConfig'?: AccountingConfigClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -22,12 +22,12 @@ export * from './financial-account-class';
22
22
  export * from './financial-transaction-class';
23
23
  export * from './financial-transaction-data-dto';
24
24
  export * from './get-accounting-categories-response-class';
25
+ export * from './get-activation-snapshot-response-class';
25
26
  export * from './get-booking-entry-response-class';
26
27
  export * from './get-financial-account-response-class';
27
28
  export * from './get-financial-transaction-response-class';
28
29
  export * from './get-number-range-response-class';
29
30
  export * from './get-personal-account-response-class';
30
- export * from './get-subledger-settings-response-class';
31
31
  export * from './inline-response200';
32
32
  export * from './inline-response503';
33
33
  export * from './list-account-mappings-response-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.32.1-beta.16",
3
+ "version": "1.32.1-beta.17",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,36 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface GetSubledgerSettingsResponseClass
16
- */
17
- export interface GetSubledgerSettingsResponseClass {
18
- /**
19
- * The date the subledger becomes active
20
- * @type {string}
21
- * @memberof GetSubledgerSettingsResponseClass
22
- */
23
- 'activationDate': string;
24
- /**
25
- * Default tax handling, \"CARRIER_PAYS\" or \"MGA_PAYS\"
26
- * @type {string}
27
- * @memberof GetSubledgerSettingsResponseClass
28
- */
29
- 'defaultTaxHandling': string;
30
- /**
31
- * Settlement recognition mode, \"SOLL\" or \"IST\"
32
- * @type {string}
33
- * @memberof GetSubledgerSettingsResponseClass
34
- */
35
- 'settlementRecognitionMode': string;
36
- }
@@ -1,42 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountingService
5
- * The EMIL AccountingService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
-
17
- /**
18
- *
19
- * @export
20
- * @interface GetSubledgerSettingsResponseClass
21
- */
22
- export interface GetSubledgerSettingsResponseClass {
23
- /**
24
- * The date the subledger becomes active
25
- * @type {string}
26
- * @memberof GetSubledgerSettingsResponseClass
27
- */
28
- 'activationDate': string;
29
- /**
30
- * Default tax handling, \"CARRIER_PAYS\" or \"MGA_PAYS\"
31
- * @type {string}
32
- * @memberof GetSubledgerSettingsResponseClass
33
- */
34
- 'defaultTaxHandling': string;
35
- /**
36
- * Settlement recognition mode, \"SOLL\" or \"IST\"
37
- * @type {string}
38
- * @memberof GetSubledgerSettingsResponseClass
39
- */
40
- 'settlementRecognitionMode': string;
41
- }
42
-