@emilgroup/accounting-sdk-node 1.32.1-beta.15 → 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.
@@ -0,0 +1,264 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.AccountMappingsApi = exports.AccountMappingsApiFactory = exports.AccountMappingsApiFp = exports.AccountMappingsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * AccountMappingsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var AccountMappingsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
101
+ * @summary List Account Mappings
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
104
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
105
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
106
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
107
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
108
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
109
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ listAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
114
+ if (options === void 0) { options = {}; }
115
+ return __awaiter(_this, void 0, void 0, function () {
116
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0:
120
+ localVarPath = "/accountingservice/v1/account-mappings";
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (pageSize !== undefined) {
137
+ localVarQueryParameter['pageSize'] = pageSize;
138
+ }
139
+ if (pageToken !== undefined) {
140
+ localVarQueryParameter['pageToken'] = pageToken;
141
+ }
142
+ if (filter !== undefined) {
143
+ localVarQueryParameter['filter'] = filter;
144
+ }
145
+ if (search !== undefined) {
146
+ localVarQueryParameter['search'] = search;
147
+ }
148
+ if (order !== undefined) {
149
+ localVarQueryParameter['order'] = order;
150
+ }
151
+ if (expand !== undefined) {
152
+ localVarQueryParameter['expand'] = expand;
153
+ }
154
+ if (filters !== undefined) {
155
+ localVarQueryParameter['filters'] = filters;
156
+ }
157
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
158
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
159
+ }
160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
+ return [2 /*return*/, {
164
+ url: (0, common_1.toPathString)(localVarUrlObj),
165
+ options: localVarRequestOptions,
166
+ }];
167
+ }
168
+ });
169
+ });
170
+ },
171
+ };
172
+ };
173
+ exports.AccountMappingsApiAxiosParamCreator = AccountMappingsApiAxiosParamCreator;
174
+ /**
175
+ * AccountMappingsApi - functional programming interface
176
+ * @export
177
+ */
178
+ var AccountMappingsApiFp = function (configuration) {
179
+ var localVarAxiosParamCreator = (0, exports.AccountMappingsApiAxiosParamCreator)(configuration);
180
+ return {
181
+ /**
182
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
183
+ * @summary List Account Mappings
184
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
185
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
187
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
188
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
189
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
190
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
191
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ listAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
196
+ return __awaiter(this, void 0, void 0, function () {
197
+ var localVarAxiosArgs;
198
+ return __generator(this, function (_a) {
199
+ switch (_a.label) {
200
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
201
+ case 1:
202
+ localVarAxiosArgs = _a.sent();
203
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
204
+ }
205
+ });
206
+ });
207
+ },
208
+ };
209
+ };
210
+ exports.AccountMappingsApiFp = AccountMappingsApiFp;
211
+ /**
212
+ * AccountMappingsApi - factory interface
213
+ * @export
214
+ */
215
+ var AccountMappingsApiFactory = function (configuration, basePath, axios) {
216
+ var localVarFp = (0, exports.AccountMappingsApiFp)(configuration);
217
+ return {
218
+ /**
219
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
220
+ * @summary List Account Mappings
221
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
222
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
223
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
224
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
225
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
226
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, type, key, subKey&lt;/i&gt;
227
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: financialAccount&lt;i&gt;
228
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: type, key, subKey&lt;/i&gt;
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ listAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
233
+ return localVarFp.listAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
234
+ },
235
+ };
236
+ };
237
+ exports.AccountMappingsApiFactory = AccountMappingsApiFactory;
238
+ /**
239
+ * AccountMappingsApi - object-oriented interface
240
+ * @export
241
+ * @class AccountMappingsApi
242
+ * @extends {BaseAPI}
243
+ */
244
+ var AccountMappingsApi = /** @class */ (function (_super) {
245
+ __extends(AccountMappingsApi, _super);
246
+ function AccountMappingsApi() {
247
+ return _super !== null && _super.apply(this, arguments) || this;
248
+ }
249
+ /**
250
+ * Generic, read-only listing of override-mapping rows, filterable by `type`/`key`/`subKey`. Used internally for bulk badge lookups and for support/debugging; type-specific tabs (e.g. Products) expose their own purpose-built list/detail endpoints on top of this data. **Required Permissions** \"accounting-management.financial-accounts.view\"
251
+ * @summary List Account Mappings
252
+ * @param {AccountMappingsApiListAccountMappingsRequest} requestParameters Request parameters.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ * @memberof AccountMappingsApi
256
+ */
257
+ AccountMappingsApi.prototype.listAccountMappings = function (requestParameters, options) {
258
+ var _this = this;
259
+ if (requestParameters === void 0) { requestParameters = {}; }
260
+ return (0, exports.AccountMappingsApiFp)(this.configuration).listAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
261
+ };
262
+ return AccountMappingsApi;
263
+ }(base_1.BaseAPI));
264
+ exports.AccountMappingsApi = AccountMappingsApi;
@@ -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\"
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/account-mappings-api';
12
13
  export * from './api/accounting-configs-api';
13
14
  export * from './api/booking-entries-api';
14
15
  export * from './api/financial-accounts-api';
package/dist/api.js CHANGED
@@ -27,6 +27,7 @@ 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/account-mappings-api"), exports);
30
31
  __exportStar(require("./api/accounting-configs-api"), exports);
31
32
  __exportStar(require("./api/booking-entries-api"), exports);
32
33
  __exportStar(require("./api/financial-accounts-api"), exports);
@@ -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,14 +22,15 @@ 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
+ export * from './list-account-mappings-response-class';
33
34
  export * from './list-booking-entries-response-class';
34
35
  export * from './list-financial-accounts-response-class';
35
36
  export * from './list-financial-transactions-response-class';
@@ -38,14 +38,15 @@ __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
+ __exportStar(require("./list-account-mappings-response-class"), exports);
49
50
  __exportStar(require("./list-booking-entries-response-class"), exports);
50
51
  __exportStar(require("./list-financial-accounts-response-class"), exports);
51
52
  __exportStar(require("./list-financial-transactions-response-class"), exports);