@emilgroup/accounting-sdk-node 1.32.1-beta.6 → 1.32.1-beta.63
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.
- package/.openapi-generator/FILES +35 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +120 -14
- package/api/booking-entries-api.ts +230 -6
- package/api/commission-account-mappings-api.ts +1211 -0
- package/api/financial-accounts-api.ts +150 -20
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +1719 -0
- package/api.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +139 -28
- package/dist/api/booking-entries-api.d.ts +117 -3
- package/dist/api/booking-entries-api.js +207 -10
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1026 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1451 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +21 -0
- package/dist/models/booking-entry-class.js +9 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-account-mapping-class.js +15 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
- package/dist/models/create-booking-entry-request-dto.js +9 -0
- package/dist/models/create-financial-account-request-dto.d.ts +14 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +30 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +33 -0
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/post-financial-event-request-dto.d.ts +45 -0
- package/dist/models/post-financial-event-request-dto.js +24 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +48 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
- package/models/booking-entry-class.ts +22 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +24 -0
- package/models/create-financial-account-request-dto.ts +15 -1
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +31 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +33 -0
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/post-financial-event-request-dto.ts +54 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +62 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +2 -2
package/api.ts
CHANGED
|
@@ -26,18 +26,22 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AccountingConfigsApi } from './api';
|
|
28
28
|
import { BookingEntriesApi } from './api';
|
|
29
|
+
import { CommissionAccountMappingsApi } from './api';
|
|
29
30
|
import { FinancialAccountsApi } from './api';
|
|
30
31
|
import { FinancialTransactionsApi } from './api';
|
|
31
32
|
import { HealthApi } from './api';
|
|
32
33
|
import { NumberRangesApi } from './api';
|
|
33
34
|
import { PersonalAccountsApi } from './api';
|
|
35
|
+
import { ProductAccountMappingsApi } from './api';
|
|
34
36
|
|
|
35
37
|
|
|
36
38
|
export * from './api/accounting-configs-api';
|
|
37
39
|
export * from './api/booking-entries-api';
|
|
40
|
+
export * from './api/commission-account-mappings-api';
|
|
38
41
|
export * from './api/financial-accounts-api';
|
|
39
42
|
export * from './api/financial-transactions-api';
|
|
40
43
|
export * from './api/health-api';
|
|
41
44
|
export * from './api/number-ranges-api';
|
|
42
45
|
export * from './api/personal-accounts-api';
|
|
46
|
+
export * from './api/product-account-mappings-api';
|
|
43
47
|
|
package/common.ts
CHANGED
|
@@ -131,9 +131,10 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
134
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
135
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
135
136
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
136
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
137
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -16,6 +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 { GetActivationSnapshotResponseClass } from '../models';
|
|
19
20
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
20
21
|
import { ValidateAccountingConfigResponseClass } from '../models';
|
|
21
22
|
/**
|
|
@@ -57,6 +58,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
|
|
|
57
58
|
* @throws {RequiredError}
|
|
58
59
|
*/
|
|
59
60
|
getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
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
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
69
|
/**
|
|
61
70
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
62
71
|
* @summary Delete the reset subledger
|
|
@@ -123,6 +132,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
|
|
|
123
132
|
* @throws {RequiredError}
|
|
124
133
|
*/
|
|
125
134
|
getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
|
|
135
|
+
/**
|
|
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
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
|
|
126
143
|
/**
|
|
127
144
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
128
145
|
* @summary Delete the reset subledger
|
|
@@ -189,6 +206,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
|
|
|
189
206
|
* @throws {RequiredError}
|
|
190
207
|
*/
|
|
191
208
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
|
|
209
|
+
/**
|
|
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
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
|
|
192
217
|
/**
|
|
193
218
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
194
219
|
* @summary Delete the reset subledger
|
|
@@ -280,6 +305,19 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
280
305
|
*/
|
|
281
306
|
readonly authorization?: string;
|
|
282
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
318
|
+
*/
|
|
319
|
+
readonly authorization?: string;
|
|
320
|
+
}
|
|
283
321
|
/**
|
|
284
322
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
285
323
|
* @export
|
|
@@ -346,7 +384,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
346
384
|
* @throws {RequiredError}
|
|
347
385
|
* @memberof AccountingConfigsApi
|
|
348
386
|
*/
|
|
349
|
-
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
387
|
+
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}, any>>;
|
|
350
388
|
/**
|
|
351
389
|
* This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
352
390
|
* @summary Create the create and enable subledger from file
|
|
@@ -355,7 +393,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
355
393
|
* @throws {RequiredError}
|
|
356
394
|
* @memberof AccountingConfigsApi
|
|
357
395
|
*/
|
|
358
|
-
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
396
|
+
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}, any>>;
|
|
359
397
|
/**
|
|
360
398
|
* This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
361
399
|
* @summary Retrieve the export accounting config
|
|
@@ -364,7 +402,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
364
402
|
* @throws {RequiredError}
|
|
365
403
|
* @memberof AccountingConfigsApi
|
|
366
404
|
*/
|
|
367
|
-
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}>>;
|
|
405
|
+
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}, any>>;
|
|
368
406
|
/**
|
|
369
407
|
* This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
370
408
|
* @summary Retrieve the accounting categories
|
|
@@ -373,7 +411,16 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
373
411
|
* @throws {RequiredError}
|
|
374
412
|
* @memberof AccountingConfigsApi
|
|
375
413
|
*/
|
|
376
|
-
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
|
|
414
|
+
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}, any>>;
|
|
415
|
+
/**
|
|
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
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof AccountingConfigsApi
|
|
422
|
+
*/
|
|
423
|
+
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}, any>>;
|
|
377
424
|
/**
|
|
378
425
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
379
426
|
* @summary Delete the reset subledger
|
|
@@ -382,7 +429,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
382
429
|
* @throws {RequiredError}
|
|
383
430
|
* @memberof AccountingConfigsApi
|
|
384
431
|
*/
|
|
385
|
-
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
432
|
+
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
386
433
|
/**
|
|
387
434
|
* This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
388
435
|
* @summary Create the validate accounting config
|
|
@@ -391,7 +438,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
391
438
|
* @throws {RequiredError}
|
|
392
439
|
* @memberof AccountingConfigsApi
|
|
393
440
|
*/
|
|
394
|
-
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
441
|
+
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}, any>>;
|
|
395
442
|
/**
|
|
396
443
|
* This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
397
444
|
* @summary Create the validate accounting config from file
|
|
@@ -400,5 +447,5 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
400
447
|
* @throws {RequiredError}
|
|
401
448
|
* @memberof AccountingConfigsApi
|
|
402
449
|
*/
|
|
403
|
-
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
450
|
+
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}, any>>;
|
|
404
451
|
}
|
|
@@ -107,7 +107,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
if (file !== undefined) {
|
|
186
192
|
localVarFormParams.append('file', file);
|
|
@@ -208,7 +214,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
208
214
|
exportAccountingConfig: function (authorization, options) {
|
|
209
215
|
if (options === void 0) { options = {}; }
|
|
210
216
|
return __awaiter(_this, void 0, void 0, function () {
|
|
211
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
212
218
|
return __generator(this, function (_a) {
|
|
213
219
|
switch (_a.label) {
|
|
214
220
|
case 0:
|
|
@@ -223,13 +229,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
223
229
|
localVarQueryParameter = {};
|
|
224
230
|
// authentication bearer required
|
|
225
231
|
// http bearer authentication required
|
|
226
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
233
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
234
|
+
];
|
|
227
235
|
case 1:
|
|
228
236
|
// authentication bearer required
|
|
229
237
|
// http bearer authentication required
|
|
230
238
|
_a.sent();
|
|
231
|
-
|
|
232
|
-
|
|
239
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
240
|
+
if (authorizationValue) {
|
|
241
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
233
242
|
}
|
|
234
243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
244
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -252,7 +261,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
252
261
|
getAccountingCategories: function (authorization, options) {
|
|
253
262
|
if (options === void 0) { options = {}; }
|
|
254
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
255
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
264
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
256
265
|
return __generator(this, function (_a) {
|
|
257
266
|
switch (_a.label) {
|
|
258
267
|
case 0:
|
|
@@ -267,13 +276,63 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
267
276
|
localVarQueryParameter = {};
|
|
268
277
|
// authentication bearer required
|
|
269
278
|
// http bearer authentication required
|
|
270
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
279
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
280
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
281
|
+
];
|
|
271
282
|
case 1:
|
|
272
283
|
// authentication bearer required
|
|
273
284
|
// http bearer authentication required
|
|
274
285
|
_a.sent();
|
|
275
|
-
|
|
276
|
-
|
|
286
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
287
|
+
if (authorizationValue) {
|
|
288
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
289
|
+
}
|
|
290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
293
|
+
return [2 /*return*/, {
|
|
294
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
295
|
+
options: localVarRequestOptions,
|
|
296
|
+
}];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* 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\"
|
|
303
|
+
* @summary Retrieve the get activation snapshot
|
|
304
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
getActivationSnapshot: function (authorization, options) {
|
|
309
|
+
if (options === void 0) { options = {}; }
|
|
310
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
311
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
312
|
+
return __generator(this, function (_a) {
|
|
313
|
+
switch (_a.label) {
|
|
314
|
+
case 0:
|
|
315
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
316
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
317
|
+
if (configuration) {
|
|
318
|
+
baseOptions = configuration.baseOptions;
|
|
319
|
+
baseAccessToken = configuration.accessToken;
|
|
320
|
+
}
|
|
321
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
322
|
+
localVarHeaderParameter = {};
|
|
323
|
+
localVarQueryParameter = {};
|
|
324
|
+
// authentication bearer required
|
|
325
|
+
// http bearer authentication required
|
|
326
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
327
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
328
|
+
];
|
|
329
|
+
case 1:
|
|
330
|
+
// authentication bearer required
|
|
331
|
+
// http bearer authentication required
|
|
332
|
+
_a.sent();
|
|
333
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
334
|
+
if (authorizationValue) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
277
336
|
}
|
|
278
337
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
338
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -296,7 +355,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
296
355
|
resetSubledger: function (authorization, options) {
|
|
297
356
|
if (options === void 0) { options = {}; }
|
|
298
357
|
return __awaiter(_this, void 0, void 0, function () {
|
|
299
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
358
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
300
359
|
return __generator(this, function (_a) {
|
|
301
360
|
switch (_a.label) {
|
|
302
361
|
case 0:
|
|
@@ -311,13 +370,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
311
370
|
localVarQueryParameter = {};
|
|
312
371
|
// authentication bearer required
|
|
313
372
|
// http bearer authentication required
|
|
314
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
373
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
375
|
+
];
|
|
315
376
|
case 1:
|
|
316
377
|
// authentication bearer required
|
|
317
378
|
// http bearer authentication required
|
|
318
379
|
_a.sent();
|
|
319
|
-
|
|
320
|
-
|
|
380
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
if (authorizationValue) {
|
|
382
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
321
383
|
}
|
|
322
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
385
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -341,7 +403,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
341
403
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
342
404
|
if (options === void 0) { options = {}; }
|
|
343
405
|
return __awaiter(_this, void 0, void 0, function () {
|
|
344
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
406
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
345
407
|
return __generator(this, function (_a) {
|
|
346
408
|
switch (_a.label) {
|
|
347
409
|
case 0:
|
|
@@ -358,13 +420,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
358
420
|
localVarQueryParameter = {};
|
|
359
421
|
// authentication bearer required
|
|
360
422
|
// http bearer authentication required
|
|
361
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
423
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
424
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
425
|
+
];
|
|
362
426
|
case 1:
|
|
363
427
|
// authentication bearer required
|
|
364
428
|
// http bearer authentication required
|
|
365
429
|
_a.sent();
|
|
366
|
-
|
|
367
|
-
|
|
430
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
431
|
+
if (authorizationValue) {
|
|
432
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
368
433
|
}
|
|
369
434
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
370
435
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -390,7 +455,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
390
455
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
391
456
|
if (options === void 0) { options = {}; }
|
|
392
457
|
return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
458
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
394
459
|
return __generator(this, function (_a) {
|
|
395
460
|
switch (_a.label) {
|
|
396
461
|
case 0:
|
|
@@ -408,13 +473,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
408
473
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
409
474
|
// authentication bearer required
|
|
410
475
|
// http bearer authentication required
|
|
411
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
476
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
477
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
478
|
+
];
|
|
412
479
|
case 1:
|
|
413
480
|
// authentication bearer required
|
|
414
481
|
// http bearer authentication required
|
|
415
482
|
_a.sent();
|
|
416
|
-
|
|
417
|
-
|
|
483
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
484
|
+
if (authorizationValue) {
|
|
485
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
418
486
|
}
|
|
419
487
|
if (file !== undefined) {
|
|
420
488
|
localVarFormParams.append('file', file);
|
|
@@ -524,6 +592,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
524
592
|
});
|
|
525
593
|
});
|
|
526
594
|
},
|
|
595
|
+
/**
|
|
596
|
+
* 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\"
|
|
597
|
+
* @summary Retrieve the get activation snapshot
|
|
598
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
getActivationSnapshot: function (authorization, options) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
+
var localVarAxiosArgs;
|
|
605
|
+
return __generator(this, function (_a) {
|
|
606
|
+
switch (_a.label) {
|
|
607
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
608
|
+
case 1:
|
|
609
|
+
localVarAxiosArgs = _a.sent();
|
|
610
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
},
|
|
527
615
|
/**
|
|
528
616
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
529
617
|
* @summary Delete the reset subledger
|
|
@@ -638,6 +726,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
638
726
|
getAccountingCategories: function (authorization, options) {
|
|
639
727
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
640
728
|
},
|
|
729
|
+
/**
|
|
730
|
+
* 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\"
|
|
731
|
+
* @summary Retrieve the get activation snapshot
|
|
732
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
getActivationSnapshot: function (authorization, options) {
|
|
737
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
738
|
+
},
|
|
641
739
|
/**
|
|
642
740
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
643
741
|
* @summary Delete the reset subledger
|
|
@@ -734,6 +832,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
734
832
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
735
833
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
736
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* 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\"
|
|
837
|
+
* @summary Retrieve the get activation snapshot
|
|
838
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
* @memberof AccountingConfigsApi
|
|
842
|
+
*/
|
|
843
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
844
|
+
var _this = this;
|
|
845
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
846
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
847
|
+
};
|
|
737
848
|
/**
|
|
738
849
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
739
850
|
* @summary Delete the reset subledger
|