@emilgroup/accounting-sdk-node 1.18.0 → 1.18.1-beta.0

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.
@@ -97,7 +97,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number.
100
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
101
101
  * @summary Create the Personal Account
102
102
  * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -146,7 +146,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it.
149
+ * 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.accounts.delete\"
150
150
  * @summary Delete the Personal Account
151
151
  * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -194,7 +194,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
194
194
  });
195
195
  },
196
196
  /**
197
- * 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.
197
+ * 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.accounts.view\"
198
198
  * @summary Retrieve the Personal Account
199
199
  * @param {string} code Unique identifier for the object.
200
200
  * @param {string} expand
@@ -248,13 +248,13 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
248
248
  });
249
249
  },
250
250
  /**
251
- * 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.
251
+ * 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.accounts.view\"
252
252
  * @summary List Personal Accounts
253
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
256
256
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
257
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
257
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
258
258
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
259
259
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
260
260
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
@@ -330,7 +330,7 @@ var PersonalAccountsApiFp = function (configuration) {
330
330
  var localVarAxiosParamCreator = (0, exports.PersonalAccountsApiAxiosParamCreator)(configuration);
331
331
  return {
332
332
  /**
333
- * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number.
333
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
334
334
  * @summary Create the Personal Account
335
335
  * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
336
336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -351,7 +351,7 @@ var PersonalAccountsApiFp = function (configuration) {
351
351
  });
352
352
  },
353
353
  /**
354
- * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it.
354
+ * 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.accounts.delete\"
355
355
  * @summary Delete the Personal Account
356
356
  * @param {string} code Unique identifier for the object.
357
357
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -372,7 +372,7 @@ var PersonalAccountsApiFp = function (configuration) {
372
372
  });
373
373
  },
374
374
  /**
375
- * 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.
375
+ * 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.accounts.view\"
376
376
  * @summary Retrieve the Personal Account
377
377
  * @param {string} code Unique identifier for the object.
378
378
  * @param {string} expand
@@ -394,13 +394,13 @@ var PersonalAccountsApiFp = function (configuration) {
394
394
  });
395
395
  },
396
396
  /**
397
- * 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.
397
+ * 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.accounts.view\"
398
398
  * @summary List Personal Accounts
399
399
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
400
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
401
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
400
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
401
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
402
402
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
403
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
403
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
404
404
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
405
405
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
406
406
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
@@ -431,7 +431,7 @@ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
431
431
  var localVarFp = (0, exports.PersonalAccountsApiFp)(configuration);
432
432
  return {
433
433
  /**
434
- * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number.
434
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
435
435
  * @summary Create the Personal Account
436
436
  * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
437
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -442,7 +442,7 @@ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
442
442
  return localVarFp.createPersonalAccount(createPersonalAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
443
443
  },
444
444
  /**
445
- * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it.
445
+ * 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.accounts.delete\"
446
446
  * @summary Delete the Personal Account
447
447
  * @param {string} code Unique identifier for the object.
448
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -453,7 +453,7 @@ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
453
453
  return localVarFp.deletePersonalAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
454
454
  },
455
455
  /**
456
- * 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.
456
+ * 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.accounts.view\"
457
457
  * @summary Retrieve the Personal Account
458
458
  * @param {string} code Unique identifier for the object.
459
459
  * @param {string} expand
@@ -465,13 +465,13 @@ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
465
465
  return localVarFp.getPersonalAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
466
466
  },
467
467
  /**
468
- * 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.
468
+ * 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.accounts.view\"
469
469
  * @summary List Personal Accounts
470
470
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
472
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
471
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
472
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
473
473
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
474
- * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
474
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
475
475
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
476
476
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
477
477
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
@@ -496,7 +496,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
496
496
  return _super !== null && _super.apply(this, arguments) || this;
497
497
  }
498
498
  /**
499
- * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number.
499
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
500
500
  * @summary Create the Personal Account
501
501
  * @param {PersonalAccountsApiCreatePersonalAccountRequest} requestParameters Request parameters.
502
502
  * @param {*} [options] Override http request option.
@@ -508,7 +508,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
508
508
  return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
509
509
  };
510
510
  /**
511
- * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it.
511
+ * 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.accounts.delete\"
512
512
  * @summary Delete the Personal Account
513
513
  * @param {PersonalAccountsApiDeletePersonalAccountRequest} requestParameters Request parameters.
514
514
  * @param {*} [options] Override http request option.
@@ -520,7 +520,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
520
520
  return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
521
521
  };
522
522
  /**
523
- * 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.
523
+ * 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.accounts.view\"
524
524
  * @summary Retrieve the Personal Account
525
525
  * @param {PersonalAccountsApiGetPersonalAccountRequest} requestParameters Request parameters.
526
526
  * @param {*} [options] Override http request option.
@@ -532,7 +532,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
532
532
  return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
533
533
  };
534
534
  /**
535
- * 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.
535
+ * 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.accounts.view\"
536
536
  * @summary List Personal Accounts
537
537
  * @param {PersonalAccountsApiListPersonalAccountsRequest} requestParameters Request parameters.
538
538
  * @param {*} [options] Override http request option.
package/dist/base.js CHANGED
@@ -330,7 +330,7 @@ var BaseAPI = /** @class */ (function () {
330
330
  case 2:
331
331
  tokenString = _a.sent();
332
332
  accessToken = "Bearer ".concat(tokenString);
333
- originalConfig.headers['Authorization'] = "Bearer ".concat(accessToken);
333
+ originalConfig.headers['Authorization'] = accessToken;
334
334
  this.configuration.accessToken = accessToken;
335
335
  return [2 /*return*/, axios.request(originalConfig)];
336
336
  case 3:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk-node",
3
- "version": "1.18.0",
3
+ "version": "1.18.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [