yellowgrid-api-ts 3.2.227 → 3.2.228

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/api.ts CHANGED
@@ -9235,10 +9235,13 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9235
9235
  /**
9236
9236
  * Download New Price List
9237
9237
  * @summary Download New Price List
9238
+ * @param {string} id Xero ID
9238
9239
  * @param {*} [options] Override http request option.
9239
9240
  * @throws {RequiredError}
9240
9241
  */
9241
- getGetNewPriceList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9242
+ getGetNewPriceList: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9243
+ // verify required parameter 'id' is not null or undefined
9244
+ assertParamExists('getGetNewPriceList', 'id', id)
9242
9245
  const localVarPath = `/admin/accounts/priceList/new`;
9243
9246
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9244
9247
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9251,6 +9254,10 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9251
9254
  const localVarHeaderParameter = {} as any;
9252
9255
  const localVarQueryParameter = {} as any;
9253
9256
 
9257
+ if (id !== undefined) {
9258
+ localVarQueryParameter['id'] = id;
9259
+ }
9260
+
9254
9261
  localVarHeaderParameter['Accept'] = 'text/csv';
9255
9262
 
9256
9263
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10557,11 +10564,12 @@ export const AccountsApiFp = function(configuration?: Configuration) {
10557
10564
  /**
10558
10565
  * Download New Price List
10559
10566
  * @summary Download New Price List
10567
+ * @param {string} id Xero ID
10560
10568
  * @param {*} [options] Override http request option.
10561
10569
  * @throws {RequiredError}
10562
10570
  */
10563
- async getGetNewPriceList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10564
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetNewPriceList(options);
10571
+ async getGetNewPriceList(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
10572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetNewPriceList(id, options);
10565
10573
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10566
10574
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetNewPriceList']?.[localVarOperationServerIndex]?.url;
10567
10575
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11126,11 +11134,12 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
11126
11134
  /**
11127
11135
  * Download New Price List
11128
11136
  * @summary Download New Price List
11137
+ * @param {string} id Xero ID
11129
11138
  * @param {*} [options] Override http request option.
11130
11139
  * @throws {RequiredError}
11131
11140
  */
11132
- getGetNewPriceList(options?: RawAxiosRequestConfig): AxiosPromise<string> {
11133
- return localVarFp.getGetNewPriceList(options).then((request) => request(axios, basePath));
11141
+ getGetNewPriceList(id: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
11142
+ return localVarFp.getGetNewPriceList(id, options).then((request) => request(axios, basePath));
11134
11143
  },
11135
11144
  /**
11136
11145
  * Get Account 3CX Details
@@ -11612,11 +11621,12 @@ export class AccountsApi extends BaseAPI {
11612
11621
  /**
11613
11622
  * Download New Price List
11614
11623
  * @summary Download New Price List
11624
+ * @param {string} id Xero ID
11615
11625
  * @param {*} [options] Override http request option.
11616
11626
  * @throws {RequiredError}
11617
11627
  */
11618
- public getGetNewPriceList(options?: RawAxiosRequestConfig) {
11619
- return AccountsApiFp(this.configuration).getGetNewPriceList(options).then((request) => request(this.axios, this.basePath));
11628
+ public getGetNewPriceList(id: string, options?: RawAxiosRequestConfig) {
11629
+ return AccountsApiFp(this.configuration).getGetNewPriceList(id, options).then((request) => request(this.axios, this.basePath));
11620
11630
  }
11621
11631
 
11622
11632
  /**
package/dist/api.d.ts CHANGED
@@ -8730,10 +8730,11 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8730
8730
  /**
8731
8731
  * Download New Price List
8732
8732
  * @summary Download New Price List
8733
+ * @param {string} id Xero ID
8733
8734
  * @param {*} [options] Override http request option.
8734
8735
  * @throws {RequiredError}
8735
8736
  */
8736
- getGetNewPriceList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8737
+ getGetNewPriceList: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8737
8738
  /**
8738
8739
  * Get Account 3CX Details
8739
8740
  * @param {string} id Xero ID
@@ -9105,10 +9106,11 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
9105
9106
  /**
9106
9107
  * Download New Price List
9107
9108
  * @summary Download New Price List
9109
+ * @param {string} id Xero ID
9108
9110
  * @param {*} [options] Override http request option.
9109
9111
  * @throws {RequiredError}
9110
9112
  */
9111
- getGetNewPriceList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
9113
+ getGetNewPriceList(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
9112
9114
  /**
9113
9115
  * Get Account 3CX Details
9114
9116
  * @param {string} id Xero ID
@@ -9480,10 +9482,11 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
9480
9482
  /**
9481
9483
  * Download New Price List
9482
9484
  * @summary Download New Price List
9485
+ * @param {string} id Xero ID
9483
9486
  * @param {*} [options] Override http request option.
9484
9487
  * @throws {RequiredError}
9485
9488
  */
9486
- getGetNewPriceList(options?: RawAxiosRequestConfig): AxiosPromise<string>;
9489
+ getGetNewPriceList(id: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
9487
9490
  /**
9488
9491
  * Get Account 3CX Details
9489
9492
  * @param {string} id Xero ID
@@ -9855,10 +9858,11 @@ export declare class AccountsApi extends BaseAPI {
9855
9858
  /**
9856
9859
  * Download New Price List
9857
9860
  * @summary Download New Price List
9861
+ * @param {string} id Xero ID
9858
9862
  * @param {*} [options] Override http request option.
9859
9863
  * @throws {RequiredError}
9860
9864
  */
9861
- getGetNewPriceList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
9865
+ getGetNewPriceList(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
9862
9866
  /**
9863
9867
  * Get Account 3CX Details
9864
9868
  * @param {string} id Xero ID
package/dist/api.js CHANGED
@@ -1025,18 +1025,21 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1025
1025
  /**
1026
1026
  * Download New Price List
1027
1027
  * @summary Download New Price List
1028
+ * @param {string} id Xero ID
1028
1029
  * @param {*} [options] Override http request option.
1029
1030
  * @throws {RequiredError}
1030
1031
  */
1031
- getGetNewPriceList: function () {
1032
+ getGetNewPriceList: function (id_1) {
1032
1033
  var args_1 = [];
1033
- for (var _i = 0; _i < arguments.length; _i++) {
1034
- args_1[_i] = arguments[_i];
1034
+ for (var _i = 1; _i < arguments.length; _i++) {
1035
+ args_1[_i - 1] = arguments[_i];
1035
1036
  }
1036
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1037
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
1037
1038
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1038
1039
  if (options === void 0) { options = {}; }
1039
1040
  return __generator(this, function (_a) {
1041
+ // verify required parameter 'id' is not null or undefined
1042
+ (0, common_1.assertParamExists)('getGetNewPriceList', 'id', id);
1040
1043
  localVarPath = "/admin/accounts/priceList/new";
1041
1044
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1042
1045
  if (configuration) {
@@ -1045,6 +1048,9 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1045
1048
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1046
1049
  localVarHeaderParameter = {};
1047
1050
  localVarQueryParameter = {};
1051
+ if (id !== undefined) {
1052
+ localVarQueryParameter['id'] = id;
1053
+ }
1048
1054
  localVarHeaderParameter['Accept'] = 'text/csv';
1049
1055
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1050
1056
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2619,16 +2625,17 @@ var AccountsApiFp = function (configuration) {
2619
2625
  /**
2620
2626
  * Download New Price List
2621
2627
  * @summary Download New Price List
2628
+ * @param {string} id Xero ID
2622
2629
  * @param {*} [options] Override http request option.
2623
2630
  * @throws {RequiredError}
2624
2631
  */
2625
- getGetNewPriceList: function (options) {
2632
+ getGetNewPriceList: function (id, options) {
2626
2633
  return __awaiter(this, void 0, void 0, function () {
2627
2634
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2628
2635
  var _a, _b, _c;
2629
2636
  return __generator(this, function (_d) {
2630
2637
  switch (_d.label) {
2631
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetNewPriceList(options)];
2638
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetNewPriceList(id, options)];
2632
2639
  case 1:
2633
2640
  localVarAxiosArgs = _d.sent();
2634
2641
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -3508,11 +3515,12 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
3508
3515
  /**
3509
3516
  * Download New Price List
3510
3517
  * @summary Download New Price List
3518
+ * @param {string} id Xero ID
3511
3519
  * @param {*} [options] Override http request option.
3512
3520
  * @throws {RequiredError}
3513
3521
  */
3514
- getGetNewPriceList: function (options) {
3515
- return localVarFp.getGetNewPriceList(options).then(function (request) { return request(axios, basePath); });
3522
+ getGetNewPriceList: function (id, options) {
3523
+ return localVarFp.getGetNewPriceList(id, options).then(function (request) { return request(axios, basePath); });
3516
3524
  },
3517
3525
  /**
3518
3526
  * Get Account 3CX Details
@@ -3998,12 +4006,13 @@ var AccountsApi = /** @class */ (function (_super) {
3998
4006
  /**
3999
4007
  * Download New Price List
4000
4008
  * @summary Download New Price List
4009
+ * @param {string} id Xero ID
4001
4010
  * @param {*} [options] Override http request option.
4002
4011
  * @throws {RequiredError}
4003
4012
  */
4004
- AccountsApi.prototype.getGetNewPriceList = function (options) {
4013
+ AccountsApi.prototype.getGetNewPriceList = function (id, options) {
4005
4014
  var _this = this;
4006
- return (0, exports.AccountsApiFp)(this.configuration).getGetNewPriceList(options).then(function (request) { return request(_this.axios, _this.basePath); });
4015
+ return (0, exports.AccountsApiFp)(this.configuration).getGetNewPriceList(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
4007
4016
  };
4008
4017
  /**
4009
4018
  * Get Account 3CX Details
@@ -855,11 +855,18 @@ import {
855
855
  const configuration = new Configuration();
856
856
  const apiInstance = new AccountsApi(configuration);
857
857
 
858
- const { status, data } = await apiInstance.getGetNewPriceList();
858
+ let id: string; //Xero ID (default to undefined)
859
+
860
+ const { status, data } = await apiInstance.getGetNewPriceList(
861
+ id
862
+ );
859
863
  ```
860
864
 
861
865
  ### Parameters
862
- This endpoint does not have any parameters.
866
+
867
+ |Name | Type | Description | Notes|
868
+ |------------- | ------------- | ------------- | -------------|
869
+ | **id** | [**string**] | Xero ID | defaults to undefined|
863
870
 
864
871
 
865
872
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.227",
3
+ "version": "3.2.228",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {