@emilgroup/accounting-sdk-node 1.32.1-beta.8 → 1.32.1-beta.81
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 -1
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +54 -38
- package/api/booking-entries-api.ts +234 -10
- 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 +25 -25
- package/dist/api/accounting-configs-api.js +73 -49
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +211 -14
- 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 +34 -0
- package/dist/models/booking-entry-class.js +10 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -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 +8 -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 +24 -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 -1
- package/dist/models/index.js +33 -1
- 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/personal-account-class.d.ts +6 -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 +35 -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 +9 -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 +25 -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 -1
- 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/personal-account-class.ts +6 -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/dist/models/get-subledger-settings-response-class.d.ts +0 -36
- package/models/get-subledger-settings-response-class.ts +0 -42
- /package/dist/models/{get-subledger-settings-response-class.js → commission-account-mapping-class.js} +0 -0
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,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 {
|
|
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
|
|
63
|
-
* @summary Retrieve the get
|
|
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
|
-
|
|
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
|
|
137
|
-
* @summary Retrieve the get
|
|
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
|
-
|
|
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
|
|
211
|
-
* @summary Retrieve the get
|
|
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
|
-
|
|
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
|
|
309
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
310
310
|
* @export
|
|
311
|
-
* @interface
|
|
311
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
312
312
|
*/
|
|
313
|
-
export interface
|
|
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
|
|
317
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
318
318
|
*/
|
|
319
319
|
readonly authorization?: string;
|
|
320
320
|
}
|
|
@@ -384,7 +384,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
384
384
|
* @throws {RequiredError}
|
|
385
385
|
* @memberof AccountingConfigsApi
|
|
386
386
|
*/
|
|
387
|
-
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
387
|
+
createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}, any>>;
|
|
388
388
|
/**
|
|
389
389
|
* This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
390
390
|
* @summary Create the create and enable subledger from file
|
|
@@ -393,7 +393,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
393
393
|
* @throws {RequiredError}
|
|
394
394
|
* @memberof AccountingConfigsApi
|
|
395
395
|
*/
|
|
396
|
-
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}>>;
|
|
396
|
+
createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAndEnableSubledgerResponseClass, any, {}, any>>;
|
|
397
397
|
/**
|
|
398
398
|
* This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
399
399
|
* @summary Retrieve the export accounting config
|
|
@@ -402,7 +402,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
402
402
|
* @throws {RequiredError}
|
|
403
403
|
* @memberof AccountingConfigsApi
|
|
404
404
|
*/
|
|
405
|
-
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}>>;
|
|
405
|
+
exportAccountingConfig(requestParameters?: AccountingConfigsApiExportAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExportAccountingConfigResponseClass, any, {}, any>>;
|
|
406
406
|
/**
|
|
407
407
|
* This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
408
408
|
* @summary Retrieve the accounting categories
|
|
@@ -411,16 +411,16 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
411
411
|
* @throws {RequiredError}
|
|
412
412
|
* @memberof AccountingConfigsApi
|
|
413
413
|
*/
|
|
414
|
-
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
415
|
/**
|
|
416
|
-
* Returns the
|
|
417
|
-
* @summary Retrieve the get
|
|
418
|
-
* @param {
|
|
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
|
-
|
|
423
|
+
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}, 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
|
|
@@ -429,7 +429,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
429
429
|
* @throws {RequiredError}
|
|
430
430
|
* @memberof AccountingConfigsApi
|
|
431
431
|
*/
|
|
432
|
-
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
432
|
+
resetSubledger(requestParameters?: AccountingConfigsApiResetSubledgerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
433
433
|
/**
|
|
434
434
|
* This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
435
435
|
* @summary Create the validate accounting config
|
|
@@ -438,7 +438,7 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
438
438
|
* @throws {RequiredError}
|
|
439
439
|
* @memberof AccountingConfigsApi
|
|
440
440
|
*/
|
|
441
|
-
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
441
|
+
validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}, any>>;
|
|
442
442
|
/**
|
|
443
443
|
* This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
444
444
|
* @summary Create the validate accounting config from file
|
|
@@ -447,5 +447,5 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
447
447
|
* @throws {RequiredError}
|
|
448
448
|
* @memberof AccountingConfigsApi
|
|
449
449
|
*/
|
|
450
|
-
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}>>;
|
|
450
|
+
validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateAccountingConfigResponseClass, any, {}, any>>;
|
|
451
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,16 @@ 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);
|
|
277
289
|
}
|
|
278
290
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
291
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -287,20 +299,20 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
287
299
|
});
|
|
288
300
|
},
|
|
289
301
|
/**
|
|
290
|
-
* Returns the
|
|
291
|
-
* @summary Retrieve the get
|
|
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
|
|
292
304
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
305
|
* @param {*} [options] Override http request option.
|
|
294
306
|
* @throws {RequiredError}
|
|
295
307
|
*/
|
|
296
|
-
|
|
308
|
+
getActivationSnapshot: function (authorization, options) {
|
|
297
309
|
if (options === void 0) { options = {}; }
|
|
298
310
|
return __awaiter(_this, void 0, void 0, function () {
|
|
299
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
311
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
300
312
|
return __generator(this, function (_a) {
|
|
301
313
|
switch (_a.label) {
|
|
302
314
|
case 0:
|
|
303
|
-
localVarPath = "/accountingservice/v1/subledger/
|
|
315
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
304
316
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
317
|
if (configuration) {
|
|
306
318
|
baseOptions = configuration.baseOptions;
|
|
@@ -311,13 +323,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
311
323
|
localVarQueryParameter = {};
|
|
312
324
|
// authentication bearer required
|
|
313
325
|
// http bearer authentication required
|
|
314
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
315
329
|
case 1:
|
|
316
330
|
// authentication bearer required
|
|
317
331
|
// http bearer authentication required
|
|
318
332
|
_a.sent();
|
|
319
|
-
|
|
320
|
-
|
|
333
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
334
|
+
if (authorizationValue) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
321
336
|
}
|
|
322
337
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
338
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -340,7 +355,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
340
355
|
resetSubledger: function (authorization, options) {
|
|
341
356
|
if (options === void 0) { options = {}; }
|
|
342
357
|
return __awaiter(_this, void 0, void 0, function () {
|
|
343
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
358
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
344
359
|
return __generator(this, function (_a) {
|
|
345
360
|
switch (_a.label) {
|
|
346
361
|
case 0:
|
|
@@ -355,13 +370,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
355
370
|
localVarQueryParameter = {};
|
|
356
371
|
// authentication bearer required
|
|
357
372
|
// http bearer authentication required
|
|
358
|
-
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
|
+
];
|
|
359
376
|
case 1:
|
|
360
377
|
// authentication bearer required
|
|
361
378
|
// http bearer authentication required
|
|
362
379
|
_a.sent();
|
|
363
|
-
|
|
364
|
-
|
|
380
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
if (authorizationValue) {
|
|
382
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
365
383
|
}
|
|
366
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
367
385
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -385,7 +403,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
385
403
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
386
404
|
if (options === void 0) { options = {}; }
|
|
387
405
|
return __awaiter(_this, void 0, void 0, function () {
|
|
388
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
406
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
389
407
|
return __generator(this, function (_a) {
|
|
390
408
|
switch (_a.label) {
|
|
391
409
|
case 0:
|
|
@@ -402,13 +420,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
402
420
|
localVarQueryParameter = {};
|
|
403
421
|
// authentication bearer required
|
|
404
422
|
// http bearer authentication required
|
|
405
|
-
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
|
+
];
|
|
406
426
|
case 1:
|
|
407
427
|
// authentication bearer required
|
|
408
428
|
// http bearer authentication required
|
|
409
429
|
_a.sent();
|
|
410
|
-
|
|
411
|
-
|
|
430
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
431
|
+
if (authorizationValue) {
|
|
432
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
412
433
|
}
|
|
413
434
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
414
435
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -434,7 +455,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
434
455
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
435
456
|
if (options === void 0) { options = {}; }
|
|
436
457
|
return __awaiter(_this, void 0, void 0, function () {
|
|
437
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
458
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
438
459
|
return __generator(this, function (_a) {
|
|
439
460
|
switch (_a.label) {
|
|
440
461
|
case 0:
|
|
@@ -452,13 +473,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
452
473
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
453
474
|
// authentication bearer required
|
|
454
475
|
// http bearer authentication required
|
|
455
|
-
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
|
+
];
|
|
456
479
|
case 1:
|
|
457
480
|
// authentication bearer required
|
|
458
481
|
// http bearer authentication required
|
|
459
482
|
_a.sent();
|
|
460
|
-
|
|
461
|
-
|
|
483
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
484
|
+
if (authorizationValue) {
|
|
485
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
462
486
|
}
|
|
463
487
|
if (file !== undefined) {
|
|
464
488
|
localVarFormParams.append('file', file);
|
|
@@ -569,18 +593,18 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
569
593
|
});
|
|
570
594
|
},
|
|
571
595
|
/**
|
|
572
|
-
* Returns the
|
|
573
|
-
* @summary Retrieve the get
|
|
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
|
|
574
598
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
575
599
|
* @param {*} [options] Override http request option.
|
|
576
600
|
* @throws {RequiredError}
|
|
577
601
|
*/
|
|
578
|
-
|
|
602
|
+
getActivationSnapshot: function (authorization, options) {
|
|
579
603
|
return __awaiter(this, void 0, void 0, function () {
|
|
580
604
|
var localVarAxiosArgs;
|
|
581
605
|
return __generator(this, function (_a) {
|
|
582
606
|
switch (_a.label) {
|
|
583
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
607
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
584
608
|
case 1:
|
|
585
609
|
localVarAxiosArgs = _a.sent();
|
|
586
610
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -703,14 +727,14 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
703
727
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
704
728
|
},
|
|
705
729
|
/**
|
|
706
|
-
* Returns the
|
|
707
|
-
* @summary Retrieve the get
|
|
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
|
|
708
732
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
709
733
|
* @param {*} [options] Override http request option.
|
|
710
734
|
* @throws {RequiredError}
|
|
711
735
|
*/
|
|
712
|
-
|
|
713
|
-
return localVarFp.
|
|
736
|
+
getActivationSnapshot: function (authorization, options) {
|
|
737
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
714
738
|
},
|
|
715
739
|
/**
|
|
716
740
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -809,17 +833,17 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
809
833
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
810
834
|
};
|
|
811
835
|
/**
|
|
812
|
-
* Returns the
|
|
813
|
-
* @summary Retrieve the get
|
|
814
|
-
* @param {
|
|
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.
|
|
815
839
|
* @param {*} [options] Override http request option.
|
|
816
840
|
* @throws {RequiredError}
|
|
817
841
|
* @memberof AccountingConfigsApi
|
|
818
842
|
*/
|
|
819
|
-
AccountingConfigsApi.prototype.
|
|
843
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
820
844
|
var _this = this;
|
|
821
845
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
822
|
-
return (0, exports.AccountingConfigsApiFp)(this.configuration).
|
|
846
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
823
847
|
};
|
|
824
848
|
/**
|
|
825
849
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|