ultracart_rest_api_v2_typescript 3.10.153 → 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 +4 -2
- package/api.ts +23 -8
- package/dist/api.d.ts +16 -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,8 @@ 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 |
|
|
58
|
+
| 3.10.154 | 08/14/2023 | esp - add require_order_within_last to the settings object |
|
|
57
59
|
| 3.10.153 | 08/14/2023 | esp - expose rate limiter values in settings object |
|
|
58
60
|
| 3.10.152 | 07/27/2023 | dw bi - add settings to the report and page objects |
|
|
59
61
|
| 3.10.151 | 07/19/2023 | dw bi - add data_source_uuid to filter connection obj |
|
package/api.ts
CHANGED
|
@@ -19071,6 +19071,12 @@ export interface EmailSettings {
|
|
|
19071
19071
|
* @memberof EmailSettings
|
|
19072
19072
|
*/
|
|
19073
19073
|
postcard_from_state?: string;
|
|
19074
|
+
/**
|
|
19075
|
+
* Require order within last
|
|
19076
|
+
* @type {number}
|
|
19077
|
+
* @memberof EmailSettings
|
|
19078
|
+
*/
|
|
19079
|
+
require_order_within_last?: number;
|
|
19074
19080
|
/**
|
|
19075
19081
|
* True if the Reviews.io integration is configured
|
|
19076
19082
|
* @type {boolean}
|
|
@@ -41513,11 +41519,12 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41513
41519
|
* @summary Update an auto order
|
|
41514
41520
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41515
41521
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41522
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41516
41523
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41517
41524
|
* @param {*} [options] Override http request option.
|
|
41518
41525
|
* @throws {RequiredError}
|
|
41519
41526
|
*/
|
|
41520
|
-
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 {
|
|
41521
41528
|
// verify required parameter 'auto_order' is not null or undefined
|
|
41522
41529
|
if (auto_order === null || auto_order === undefined) {
|
|
41523
41530
|
throw new RequiredError('auto_order','Required parameter auto_order was null or undefined when calling updateAutoOrder.');
|
|
@@ -41556,6 +41563,10 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41556
41563
|
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
41557
41564
|
}
|
|
41558
41565
|
|
|
41566
|
+
if (validate_original_order !== undefined) {
|
|
41567
|
+
localVarQueryParameter['validate_original_order'] = validate_original_order;
|
|
41568
|
+
}
|
|
41569
|
+
|
|
41559
41570
|
if (_expand !== undefined) {
|
|
41560
41571
|
localVarQueryParameter['_expand'] = _expand;
|
|
41561
41572
|
}
|
|
@@ -41836,12 +41847,13 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
|
41836
41847
|
* @summary Update an auto order
|
|
41837
41848
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41838
41849
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41850
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41839
41851
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41840
41852
|
* @param {*} [options] Override http request option.
|
|
41841
41853
|
* @throws {RequiredError}
|
|
41842
41854
|
*/
|
|
41843
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41844
|
-
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);
|
|
41845
41857
|
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41846
41858
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41847
41859
|
|
|
@@ -41993,12 +42005,13 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
|
|
|
41993
42005
|
* @summary Update an auto order
|
|
41994
42006
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41995
42007
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42008
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41996
42009
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41997
42010
|
* @param {*} [options] Override http request option.
|
|
41998
42011
|
* @throws {RequiredError}
|
|
41999
42012
|
*/
|
|
42000
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42001
|
-
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);
|
|
42002
42015
|
},
|
|
42003
42016
|
/**
|
|
42004
42017
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42128,12 +42141,13 @@ export interface AutoOrderApiInterface {
|
|
|
42128
42141
|
* @summary Update an auto order
|
|
42129
42142
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42130
42143
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42144
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42131
42145
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42132
42146
|
* @param {*} [options] Override http request option.
|
|
42133
42147
|
* @throws {RequiredError}
|
|
42134
42148
|
* @memberof AutoOrderApiInterface
|
|
42135
42149
|
*/
|
|
42136
|
-
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>;
|
|
42137
42151
|
|
|
42138
42152
|
/**
|
|
42139
42153
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42277,13 +42291,14 @@ export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
|
42277
42291
|
* @summary Update an auto order
|
|
42278
42292
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42279
42293
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42294
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42280
42295
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42281
42296
|
* @param {*} [options] Override http request option.
|
|
42282
42297
|
* @throws {RequiredError}
|
|
42283
42298
|
* @memberof AutoOrderApi
|
|
42284
42299
|
*/
|
|
42285
|
-
public updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42286
|
-
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);
|
|
42287
42302
|
}
|
|
42288
42303
|
|
|
42289
42304
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -18642,6 +18642,12 @@ export interface EmailSettings {
|
|
|
18642
18642
|
* @memberof EmailSettings
|
|
18643
18643
|
*/
|
|
18644
18644
|
postcard_from_state?: string;
|
|
18645
|
+
/**
|
|
18646
|
+
* Require order within last
|
|
18647
|
+
* @type {number}
|
|
18648
|
+
* @memberof EmailSettings
|
|
18649
|
+
*/
|
|
18650
|
+
require_order_within_last?: number;
|
|
18645
18651
|
/**
|
|
18646
18652
|
* True if the Reviews.io integration is configured
|
|
18647
18653
|
* @type {boolean}
|
|
@@ -40042,11 +40048,12 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
|
|
|
40042
40048
|
* @summary Update an auto order
|
|
40043
40049
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40044
40050
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40051
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40045
40052
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40046
40053
|
* @param {*} [options] Override http request option.
|
|
40047
40054
|
* @throws {RequiredError}
|
|
40048
40055
|
*/
|
|
40049
|
-
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;
|
|
40050
40057
|
/**
|
|
40051
40058
|
* Update multiple auto orders on the UltraCart account.
|
|
40052
40059
|
* @summary Update multiple auto orders
|
|
@@ -40156,11 +40163,12 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
|
40156
40163
|
* @summary Update an auto order
|
|
40157
40164
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40158
40165
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40166
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40159
40167
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40160
40168
|
* @param {*} [options] Override http request option.
|
|
40161
40169
|
* @throws {RequiredError}
|
|
40162
40170
|
*/
|
|
40163
|
-
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>;
|
|
40164
40172
|
/**
|
|
40165
40173
|
* Update multiple auto orders on the UltraCart account.
|
|
40166
40174
|
* @summary Update multiple auto orders
|
|
@@ -40270,11 +40278,12 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
|
|
|
40270
40278
|
* @summary Update an auto order
|
|
40271
40279
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40272
40280
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40281
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40273
40282
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40274
40283
|
* @param {*} [options] Override http request option.
|
|
40275
40284
|
* @throws {RequiredError}
|
|
40276
40285
|
*/
|
|
40277
|
-
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>;
|
|
40278
40287
|
/**
|
|
40279
40288
|
* Update multiple auto orders on the UltraCart account.
|
|
40280
40289
|
* @summary Update multiple auto orders
|
|
@@ -40392,12 +40401,13 @@ export interface AutoOrderApiInterface {
|
|
|
40392
40401
|
* @summary Update an auto order
|
|
40393
40402
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40394
40403
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40404
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40395
40405
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40396
40406
|
* @param {*} [options] Override http request option.
|
|
40397
40407
|
* @throws {RequiredError}
|
|
40398
40408
|
* @memberof AutoOrderApiInterface
|
|
40399
40409
|
*/
|
|
40400
|
-
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>;
|
|
40401
40411
|
/**
|
|
40402
40412
|
* Update multiple auto orders on the UltraCart account.
|
|
40403
40413
|
* @summary Update multiple auto orders
|
|
@@ -40517,12 +40527,13 @@ export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterfa
|
|
|
40517
40527
|
* @summary Update an auto order
|
|
40518
40528
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40519
40529
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40530
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40520
40531
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40521
40532
|
* @param {*} [options] Override http request option.
|
|
40522
40533
|
* @throws {RequiredError}
|
|
40523
40534
|
* @memberof AutoOrderApi
|
|
40524
40535
|
*/
|
|
40525
|
-
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>;
|
|
40526
40537
|
/**
|
|
40527
40538
|
* Update multiple auto orders on the UltraCart account.
|
|
40528
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.
|