@emilgroup/accounting-sdk-node 1.24.0 → 1.24.1-beta.1

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/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk-node@1.24.0 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.24.1-beta.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.24.0
24
+ yarn add @emilgroup/accounting-sdk-node@1.24.1-beta.1
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
package/base.ts CHANGED
@@ -186,7 +186,6 @@ export class BaseAPI {
186
186
  await this.switchWorkspace(targetWorkspace);
187
187
  }
188
188
  }
189
-
190
189
  async switchWorkspace(targetWorkspace: string): Promise<void> {
191
190
  const options: AxiosRequestConfig = {
192
191
  method: 'POST',
@@ -250,7 +250,7 @@ export declare class BookingEntriesApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof BookingEntriesApi
252
252
  */
253
- createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any>>;
253
+ createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
254
254
  /**
255
255
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
256
256
  * @summary Retrieve the booking entry
@@ -259,7 +259,7 @@ export declare class BookingEntriesApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof BookingEntriesApi
261
261
  */
262
- getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any>>;
262
+ getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}>>;
263
263
  /**
264
264
  * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
265
265
  * @summary List booking entries
@@ -268,5 +268,5 @@ export declare class BookingEntriesApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof BookingEntriesApi
270
270
  */
271
- listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any>>;
271
+ listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
272
272
  }
@@ -296,7 +296,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof FinancialAccountsApi
298
298
  */
299
- createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any>>;
299
+ createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
300
300
  /**
301
301
  * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
302
302
  * @summary Delete the Financial Account
@@ -305,7 +305,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof FinancialAccountsApi
307
307
  */
308
- deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
308
+ deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
309
309
  /**
310
310
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
311
311
  * @summary Retrieve the Financial Account
@@ -314,7 +314,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof FinancialAccountsApi
316
316
  */
317
- getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any>>;
317
+ getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
318
318
  /**
319
319
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
320
320
  * @summary List Financial Accounts
@@ -323,5 +323,5 @@ export declare class FinancialAccountsApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof FinancialAccountsApi
325
325
  */
326
- listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any>>;
326
+ listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
327
327
  }
@@ -202,7 +202,7 @@ export declare class FinancialTransactionsApi extends BaseAPI {
202
202
  * @throws {RequiredError}
203
203
  * @memberof FinancialTransactionsApi
204
204
  */
205
- getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any>>;
205
+ getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}>>;
206
206
  /**
207
207
  * This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
208
208
  * @summary List financial transactions
@@ -211,5 +211,5 @@ export declare class FinancialTransactionsApi extends BaseAPI {
211
211
  * @throws {RequiredError}
212
212
  * @memberof FinancialTransactionsApi
213
213
  */
214
- listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any>>;
214
+ listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
215
215
  }
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
70
70
  }
@@ -296,7 +296,7 @@ export declare class NumberRangesApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof NumberRangesApi
298
298
  */
299
- createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any>>;
299
+ createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}>>;
300
300
  /**
301
301
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class NumberRangesApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof NumberRangesApi
307
307
  */
308
- deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
308
+ deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
309
309
  /**
310
310
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.transactions.view\"
311
311
  * @summary Retrieve the Financial Account
@@ -314,7 +314,7 @@ export declare class NumberRangesApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof NumberRangesApi
316
316
  */
317
- getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any>>;
317
+ getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}>>;
318
318
  /**
319
319
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.transactions.view\"
320
320
  * @summary List Financial Accounts
@@ -323,5 +323,5 @@ export declare class NumberRangesApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof NumberRangesApi
325
325
  */
326
- listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any>>;
326
+ listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}>>;
327
327
  }
@@ -296,7 +296,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof PersonalAccountsApi
298
298
  */
299
- createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any>>;
299
+ createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}>>;
300
300
  /**
301
301
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof PersonalAccountsApi
307
307
  */
308
- deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
308
+ deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
309
309
  /**
310
310
  * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
311
311
  * @summary Retrieve the Personal Account
@@ -314,7 +314,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof PersonalAccountsApi
316
316
  */
317
- getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any>>;
317
+ getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}>>;
318
318
  /**
319
319
  * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
320
320
  * @summary List Personal Accounts
@@ -323,5 +323,5 @@ export declare class PersonalAccountsApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof PersonalAccountsApi
325
325
  */
326
- listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any>>;
326
+ listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}>>;
327
327
  }
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
67
67
  /**
68
68
  * EMIL AccountingService
69
69
  * The EMIL AccountingService API description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.24.0",
3
+ "version": "1.24.1-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2",
21
+ "axios": "^1.12.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },