ultracart_rest_api_v2_typescript 4.0.188 → 4.0.190
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/dist/apis/WorkflowApi.d.ts +4 -4
- package/dist/apis/WorkflowApi.js +1 -1
- package/dist/models/CouponEditorValues.d.ts +6 -0
- package/dist/models/CouponEditorValues.js +2 -0
- package/package.json +1 -1
- package/src/apis/WorkflowApi.ts +5 -5
- package/src/models/CouponEditorValues.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.190
|
|
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@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.190 --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
|
+
| 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
|
|
58
|
+
| 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
|
|
57
59
|
| 4.0.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
|
|
58
60
|
| 4.0.187 | 11/09/2023 | item - new auto order step type: pause until |
|
|
59
61
|
| 4.0.186 | 11/06/2023 | customer api - added wishlist methods |
|
|
@@ -116,12 +116,12 @@ export interface WorkflowApiInterface {
|
|
|
116
116
|
* @throws {RequiredError}
|
|
117
117
|
* @memberof WorkflowApiInterface
|
|
118
118
|
*/
|
|
119
|
-
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
119
|
+
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTasksResponse>>;
|
|
120
120
|
/**
|
|
121
121
|
* Retrieve a workflow task by object type and id
|
|
122
122
|
* Retrieve a workflow task by object type and id
|
|
123
123
|
*/
|
|
124
|
-
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
124
|
+
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
125
125
|
/**
|
|
126
126
|
* Retrieves a set of workflow tasks from the account based on a query object.
|
|
127
127
|
* @summary Search workflow tasks
|
|
@@ -217,12 +217,12 @@ export declare class WorkflowApi extends runtime.BaseAPI implements WorkflowApiI
|
|
|
217
217
|
* Retrieve a workflow task by object type and id
|
|
218
218
|
* Retrieve a workflow task by object type and id
|
|
219
219
|
*/
|
|
220
|
-
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
220
|
+
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTasksResponse>>;
|
|
221
221
|
/**
|
|
222
222
|
* Retrieve a workflow task by object type and id
|
|
223
223
|
* Retrieve a workflow task by object type and id
|
|
224
224
|
*/
|
|
225
|
-
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
225
|
+
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
226
226
|
/**
|
|
227
227
|
* Retrieves a set of workflow tasks from the account based on a query object.
|
|
228
228
|
* Search workflow tasks
|
package/dist/apis/WorkflowApi.js
CHANGED
|
@@ -358,7 +358,7 @@ var WorkflowApi = /** @class */ (function (_super) {
|
|
|
358
358
|
}, initOverrides)];
|
|
359
359
|
case 3:
|
|
360
360
|
response = _c.sent();
|
|
361
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
361
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.WorkflowTasksResponseFromJSON)(jsonValue); })];
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
});
|
|
@@ -47,6 +47,12 @@ export interface CouponEditorValues {
|
|
|
47
47
|
* @memberof CouponEditorValues
|
|
48
48
|
*/
|
|
49
49
|
deprecated_themes?: Array<SimpleValue>;
|
|
50
|
+
/**
|
|
51
|
+
* Item tags
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof CouponEditorValues
|
|
54
|
+
*/
|
|
55
|
+
item_tags?: Array<string>;
|
|
50
56
|
/**
|
|
51
57
|
* mix_and_match_names
|
|
52
58
|
* @type {Array<string>}
|
|
@@ -31,6 +31,7 @@ function CouponEditorValuesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'coupon_types_for_display': !(0, runtime_1.exists)(json, 'coupon_types_for_display') ? undefined : (json['coupon_types_for_display'].map(CouponType_1.CouponTypeFromJSON)),
|
|
32
32
|
'currency_codes': !(0, runtime_1.exists)(json, 'currency_codes') ? undefined : json['currency_codes'],
|
|
33
33
|
'deprecated_themes': !(0, runtime_1.exists)(json, 'deprecated_themes') ? undefined : (json['deprecated_themes'].map(SimpleValue_1.SimpleValueFromJSON)),
|
|
34
|
+
'item_tags': !(0, runtime_1.exists)(json, 'item_tags') ? undefined : json['item_tags'],
|
|
34
35
|
'mix_and_match_names': !(0, runtime_1.exists)(json, 'mix_and_match_names') ? undefined : json['mix_and_match_names'],
|
|
35
36
|
'shipping_methods': !(0, runtime_1.exists)(json, 'shipping_methods') ? undefined : json['shipping_methods'],
|
|
36
37
|
'storefronts': !(0, runtime_1.exists)(json, 'storefronts') ? undefined : (json['storefronts'].map(SimpleValue_1.SimpleValueFromJSON)),
|
|
@@ -52,6 +53,7 @@ function CouponEditorValuesToJSON(value) {
|
|
|
52
53
|
'coupon_types_for_display': value.coupon_types_for_display === undefined ? undefined : (value.coupon_types_for_display.map(CouponType_1.CouponTypeToJSON)),
|
|
53
54
|
'currency_codes': value.currency_codes,
|
|
54
55
|
'deprecated_themes': value.deprecated_themes === undefined ? undefined : (value.deprecated_themes.map(SimpleValue_1.SimpleValueToJSON)),
|
|
56
|
+
'item_tags': value.item_tags,
|
|
55
57
|
'mix_and_match_names': value.mix_and_match_names,
|
|
56
58
|
'shipping_methods': value.shipping_methods,
|
|
57
59
|
'storefronts': value.storefronts === undefined ? undefined : (value.storefronts.map(SimpleValue_1.SimpleValueToJSON)),
|
package/package.json
CHANGED
package/src/apis/WorkflowApi.ts
CHANGED
|
@@ -162,13 +162,13 @@ export interface WorkflowApiInterface {
|
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
* @memberof WorkflowApiInterface
|
|
164
164
|
*/
|
|
165
|
-
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTasksResponse>>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Retrieve a workflow task by object type and id
|
|
169
169
|
* Retrieve a workflow task by object type and id
|
|
170
170
|
*/
|
|
171
|
-
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
171
|
+
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Retrieves a set of workflow tasks from the account based on a query object.
|
|
@@ -405,7 +405,7 @@ export class WorkflowApi extends runtime.BaseAPI implements WorkflowApiInterface
|
|
|
405
405
|
* Retrieve a workflow task by object type and id
|
|
406
406
|
* Retrieve a workflow task by object type and id
|
|
407
407
|
*/
|
|
408
|
-
async getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
408
|
+
async getWorkflowTaskByObjectTypeRaw(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTasksResponse>> {
|
|
409
409
|
if (requestParameters.objectType === null || requestParameters.objectType === undefined) {
|
|
410
410
|
throw new runtime.RequiredError('objectType','Required parameter requestParameters.objectType was null or undefined when calling getWorkflowTaskByObjectType.');
|
|
411
411
|
}
|
|
@@ -434,14 +434,14 @@ export class WorkflowApi extends runtime.BaseAPI implements WorkflowApiInterface
|
|
|
434
434
|
query: queryParameters,
|
|
435
435
|
}, initOverrides);
|
|
436
436
|
|
|
437
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
437
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowTasksResponseFromJSON(jsonValue));
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
441
|
* Retrieve a workflow task by object type and id
|
|
442
442
|
* Retrieve a workflow task by object type and id
|
|
443
443
|
*/
|
|
444
|
-
async getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
444
|
+
async getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse> {
|
|
445
445
|
const response = await this.getWorkflowTaskByObjectTypeRaw(requestParameters, initOverrides);
|
|
446
446
|
return await response.value();
|
|
447
447
|
}
|
|
@@ -62,6 +62,12 @@ export interface CouponEditorValues {
|
|
|
62
62
|
* @memberof CouponEditorValues
|
|
63
63
|
*/
|
|
64
64
|
deprecated_themes?: Array<SimpleValue>;
|
|
65
|
+
/**
|
|
66
|
+
* Item tags
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof CouponEditorValues
|
|
69
|
+
*/
|
|
70
|
+
item_tags?: Array<string>;
|
|
65
71
|
/**
|
|
66
72
|
* mix_and_match_names
|
|
67
73
|
* @type {Array<string>}
|
|
@@ -109,6 +115,7 @@ export function CouponEditorValuesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
109
115
|
'coupon_types_for_display': !exists(json, 'coupon_types_for_display') ? undefined : ((json['coupon_types_for_display'] as Array<any>).map(CouponTypeFromJSON)),
|
|
110
116
|
'currency_codes': !exists(json, 'currency_codes') ? undefined : json['currency_codes'],
|
|
111
117
|
'deprecated_themes': !exists(json, 'deprecated_themes') ? undefined : ((json['deprecated_themes'] as Array<any>).map(SimpleValueFromJSON)),
|
|
118
|
+
'item_tags': !exists(json, 'item_tags') ? undefined : json['item_tags'],
|
|
112
119
|
'mix_and_match_names': !exists(json, 'mix_and_match_names') ? undefined : json['mix_and_match_names'],
|
|
113
120
|
'shipping_methods': !exists(json, 'shipping_methods') ? undefined : json['shipping_methods'],
|
|
114
121
|
'storefronts': !exists(json, 'storefronts') ? undefined : ((json['storefronts'] as Array<any>).map(SimpleValueFromJSON)),
|
|
@@ -131,6 +138,7 @@ export function CouponEditorValuesToJSON(value?: CouponEditorValues | null): any
|
|
|
131
138
|
'coupon_types_for_display': value.coupon_types_for_display === undefined ? undefined : ((value.coupon_types_for_display as Array<any>).map(CouponTypeToJSON)),
|
|
132
139
|
'currency_codes': value.currency_codes,
|
|
133
140
|
'deprecated_themes': value.deprecated_themes === undefined ? undefined : ((value.deprecated_themes as Array<any>).map(SimpleValueToJSON)),
|
|
141
|
+
'item_tags': value.item_tags,
|
|
134
142
|
'mix_and_match_names': value.mix_and_match_names,
|
|
135
143
|
'shipping_methods': value.shipping_methods,
|
|
136
144
|
'storefronts': value.storefronts === undefined ? undefined : ((value.storefronts as Array<any>).map(SimpleValueToJSON)),
|