ultracart_rest_api_v2_typescript 3.10.154 → 3.10.155
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 +3 -2
- package/api.ts +17 -8
- package/dist/api.d.ts +10 -5
- package/dist/api.js +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.155
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.155 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.155 | 08/16/2023 | added validate_original_order query param to auto order update method |
|
|
57
58
|
| 3.10.154 | 08/14/2023 | esp - add require_order_within_last to the settings object |
|
|
58
59
|
| 3.10.153 | 08/14/2023 | esp - expose rate limiter values in settings object |
|
|
59
60
|
| 3.10.152 | 07/27/2023 | dw bi - add settings to the report and page objects |
|
package/api.ts
CHANGED
|
@@ -41519,11 +41519,12 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41519
41519
|
* @summary Update an auto order
|
|
41520
41520
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41521
41521
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41522
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41522
41523
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41523
41524
|
* @param {*} [options] Override http request option.
|
|
41524
41525
|
* @throws {RequiredError}
|
|
41525
41526
|
*/
|
|
41526
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options: any = {}): FetchArgs {
|
|
41527
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options: any = {}): FetchArgs {
|
|
41527
41528
|
// verify required parameter 'auto_order' is not null or undefined
|
|
41528
41529
|
if (auto_order === null || auto_order === undefined) {
|
|
41529
41530
|
throw new RequiredError('auto_order','Required parameter auto_order was null or undefined when calling updateAutoOrder.');
|
|
@@ -41562,6 +41563,10 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41562
41563
|
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
41563
41564
|
}
|
|
41564
41565
|
|
|
41566
|
+
if (validate_original_order !== undefined) {
|
|
41567
|
+
localVarQueryParameter['validate_original_order'] = validate_original_order;
|
|
41568
|
+
}
|
|
41569
|
+
|
|
41565
41570
|
if (_expand !== undefined) {
|
|
41566
41571
|
localVarQueryParameter['_expand'] = _expand;
|
|
41567
41572
|
}
|
|
@@ -41842,12 +41847,13 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
|
41842
41847
|
* @summary Update an auto order
|
|
41843
41848
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41844
41849
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41850
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41845
41851
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41846
41852
|
* @param {*} [options] Override http request option.
|
|
41847
41853
|
* @throws {RequiredError}
|
|
41848
41854
|
*/
|
|
41849
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41850
|
-
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options);
|
|
41855
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41856
|
+
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options);
|
|
41851
41857
|
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41852
41858
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41853
41859
|
|
|
@@ -41999,12 +42005,13 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
|
|
|
41999
42005
|
* @summary Update an auto order
|
|
42000
42006
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42001
42007
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42008
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42002
42009
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42003
42010
|
* @param {*} [options] Override http request option.
|
|
42004
42011
|
* @throws {RequiredError}
|
|
42005
42012
|
*/
|
|
42006
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42007
|
-
return AutoOrderApiFp(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(fetch, basePath);
|
|
42013
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any) {
|
|
42014
|
+
return AutoOrderApiFp(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(fetch, basePath);
|
|
42008
42015
|
},
|
|
42009
42016
|
/**
|
|
42010
42017
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42134,12 +42141,13 @@ export interface AutoOrderApiInterface {
|
|
|
42134
42141
|
* @summary Update an auto order
|
|
42135
42142
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42136
42143
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42144
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42137
42145
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42138
42146
|
* @param {*} [options] Override http request option.
|
|
42139
42147
|
* @throws {RequiredError}
|
|
42140
42148
|
* @memberof AutoOrderApiInterface
|
|
42141
42149
|
*/
|
|
42142
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
42150
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
42143
42151
|
|
|
42144
42152
|
/**
|
|
42145
42153
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42283,13 +42291,14 @@ export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
|
42283
42291
|
* @summary Update an auto order
|
|
42284
42292
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42285
42293
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42294
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42286
42295
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42287
42296
|
* @param {*} [options] Override http request option.
|
|
42288
42297
|
* @throws {RequiredError}
|
|
42289
42298
|
* @memberof AutoOrderApi
|
|
42290
42299
|
*/
|
|
42291
|
-
public updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42292
|
-
return AutoOrderApiFp(this.configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(this.fetch, this.basePath);
|
|
42300
|
+
public updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any) {
|
|
42301
|
+
return AutoOrderApiFp(this.configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(this.fetch, this.basePath);
|
|
42293
42302
|
}
|
|
42294
42303
|
|
|
42295
42304
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -40048,11 +40048,12 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
|
|
|
40048
40048
|
* @summary Update an auto order
|
|
40049
40049
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40050
40050
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40051
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40051
40052
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40052
40053
|
* @param {*} [options] Override http request option.
|
|
40053
40054
|
* @throws {RequiredError}
|
|
40054
40055
|
*/
|
|
40055
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): FetchArgs;
|
|
40056
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): FetchArgs;
|
|
40056
40057
|
/**
|
|
40057
40058
|
* Update multiple auto orders on the UltraCart account.
|
|
40058
40059
|
* @summary Update multiple auto orders
|
|
@@ -40162,11 +40163,12 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
|
40162
40163
|
* @summary Update an auto order
|
|
40163
40164
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40164
40165
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40166
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40165
40167
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40166
40168
|
* @param {*} [options] Override http request option.
|
|
40167
40169
|
* @throws {RequiredError}
|
|
40168
40170
|
*/
|
|
40169
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
40171
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
40170
40172
|
/**
|
|
40171
40173
|
* Update multiple auto orders on the UltraCart account.
|
|
40172
40174
|
* @summary Update multiple auto orders
|
|
@@ -40276,11 +40278,12 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
|
|
|
40276
40278
|
* @summary Update an auto order
|
|
40277
40279
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40278
40280
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40281
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40279
40282
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40280
40283
|
* @param {*} [options] Override http request option.
|
|
40281
40284
|
* @throws {RequiredError}
|
|
40282
40285
|
*/
|
|
40283
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40286
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40284
40287
|
/**
|
|
40285
40288
|
* Update multiple auto orders on the UltraCart account.
|
|
40286
40289
|
* @summary Update multiple auto orders
|
|
@@ -40398,12 +40401,13 @@ export interface AutoOrderApiInterface {
|
|
|
40398
40401
|
* @summary Update an auto order
|
|
40399
40402
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40400
40403
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40404
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40401
40405
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40402
40406
|
* @param {*} [options] Override http request option.
|
|
40403
40407
|
* @throws {RequiredError}
|
|
40404
40408
|
* @memberof AutoOrderApiInterface
|
|
40405
40409
|
*/
|
|
40406
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40410
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40407
40411
|
/**
|
|
40408
40412
|
* Update multiple auto orders on the UltraCart account.
|
|
40409
40413
|
* @summary Update multiple auto orders
|
|
@@ -40523,12 +40527,13 @@ export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterfa
|
|
|
40523
40527
|
* @summary Update an auto order
|
|
40524
40528
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40525
40529
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40530
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40526
40531
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40527
40532
|
* @param {*} [options] Override http request option.
|
|
40528
40533
|
* @throws {RequiredError}
|
|
40529
40534
|
* @memberof AutoOrderApi
|
|
40530
40535
|
*/
|
|
40531
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40536
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40532
40537
|
/**
|
|
40533
40538
|
* Update multiple auto orders on the UltraCart account.
|
|
40534
40539
|
* @summary Update multiple auto orders
|
package/dist/api.js
CHANGED
|
@@ -2288,11 +2288,12 @@ var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
|
2288
2288
|
* @summary Update an auto order
|
|
2289
2289
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2290
2290
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2291
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2291
2292
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2292
2293
|
* @param {*} [options] Override http request option.
|
|
2293
2294
|
* @throws {RequiredError}
|
|
2294
2295
|
*/
|
|
2295
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2296
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2296
2297
|
if (options === void 0) { options = {}; }
|
|
2297
2298
|
// verify required parameter 'auto_order' is not null or undefined
|
|
2298
2299
|
if (auto_order === null || auto_order === undefined) {
|
|
@@ -2326,6 +2327,9 @@ var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
|
2326
2327
|
: configuration.apiKey;
|
|
2327
2328
|
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
2328
2329
|
}
|
|
2330
|
+
if (validate_original_order !== undefined) {
|
|
2331
|
+
localVarQueryParameter['validate_original_order'] = validate_original_order;
|
|
2332
|
+
}
|
|
2329
2333
|
if (_expand !== undefined) {
|
|
2330
2334
|
localVarQueryParameter['_expand'] = _expand;
|
|
2331
2335
|
}
|
|
@@ -2600,12 +2604,13 @@ var AutoOrderApiFp = function (configuration) {
|
|
|
2600
2604
|
* @summary Update an auto order
|
|
2601
2605
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2602
2606
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2607
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2603
2608
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2604
2609
|
* @param {*} [options] Override http request option.
|
|
2605
2610
|
* @throws {RequiredError}
|
|
2606
2611
|
*/
|
|
2607
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2608
|
-
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options);
|
|
2612
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2613
|
+
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options);
|
|
2609
2614
|
return function (fetch, basePath) {
|
|
2610
2615
|
if (fetch === void 0) { fetch = portableFetch; }
|
|
2611
2616
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -2759,12 +2764,13 @@ var AutoOrderApiFactory = function (configuration, fetch, basePath) {
|
|
|
2759
2764
|
* @summary Update an auto order
|
|
2760
2765
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2761
2766
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2767
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2762
2768
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2763
2769
|
* @param {*} [options] Override http request option.
|
|
2764
2770
|
* @throws {RequiredError}
|
|
2765
2771
|
*/
|
|
2766
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2767
|
-
return (0, exports.AutoOrderApiFp)(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(fetch, basePath);
|
|
2772
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2773
|
+
return (0, exports.AutoOrderApiFp)(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(fetch, basePath);
|
|
2768
2774
|
},
|
|
2769
2775
|
/**
|
|
2770
2776
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -2906,13 +2912,14 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
2906
2912
|
* @summary Update an auto order
|
|
2907
2913
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2908
2914
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2915
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2909
2916
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2910
2917
|
* @param {*} [options] Override http request option.
|
|
2911
2918
|
* @throws {RequiredError}
|
|
2912
2919
|
* @memberof AutoOrderApi
|
|
2913
2920
|
*/
|
|
2914
|
-
AutoOrderApi.prototype.updateAutoOrder = function (auto_order, auto_order_oid, _expand, options) {
|
|
2915
|
-
return (0, exports.AutoOrderApiFp)(this.configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(this.fetch, this.basePath);
|
|
2921
|
+
AutoOrderApi.prototype.updateAutoOrder = function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2922
|
+
return (0, exports.AutoOrderApiFp)(this.configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(this.fetch, this.basePath);
|
|
2916
2923
|
};
|
|
2917
2924
|
/**
|
|
2918
2925
|
* Update multiple auto orders on the UltraCart account.
|