ultracart_rest_api_v2_typescript 4.0.194 → 4.0.195
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/dist/models/WorkflowTask.d.ts +7 -0
- package/dist/models/WorkflowTask.js +4 -1
- package/dist/models/WorkflowTasksResponse.d.ts +6 -0
- package/dist/models/WorkflowTasksResponse.js +2 -0
- package/package.json +1 -1
- package/src/models/WorkflowTask.ts +10 -1
- package/src/models/WorkflowTasksResponse.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.195
|
|
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.195 --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
|
+
| 4.0.195 | 01/03/2024 | workflow - add task_context field to task obj |
|
|
57
58
|
| 4.0.194 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
|
|
58
59
|
| 4.0.193 | 12/12/2023 | webhook - added event ruler property |
|
|
59
60
|
| 4.0.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
|
@@ -133,6 +133,12 @@ export interface WorkflowTask {
|
|
|
133
133
|
* @memberof WorkflowTask
|
|
134
134
|
*/
|
|
135
135
|
status?: WorkflowTaskStatusEnum;
|
|
136
|
+
/**
|
|
137
|
+
* User friendly string of the task context
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof WorkflowTask
|
|
140
|
+
*/
|
|
141
|
+
task_context?: string;
|
|
136
142
|
/**
|
|
137
143
|
* Task Details
|
|
138
144
|
* @type {string}
|
|
@@ -160,6 +166,7 @@ export declare const WorkflowTaskObjectTypeEnum: {
|
|
|
160
166
|
readonly AutoOrder: "auto order";
|
|
161
167
|
readonly Item: "item";
|
|
162
168
|
readonly CustomerProfile: "customer profile";
|
|
169
|
+
readonly Storefront: "storefront";
|
|
163
170
|
};
|
|
164
171
|
export type WorkflowTaskObjectTypeEnum = typeof WorkflowTaskObjectTypeEnum[keyof typeof WorkflowTaskObjectTypeEnum];
|
|
165
172
|
/**
|
|
@@ -26,7 +26,8 @@ exports.WorkflowTaskObjectTypeEnum = {
|
|
|
26
26
|
Order: 'order',
|
|
27
27
|
AutoOrder: 'auto order',
|
|
28
28
|
Item: 'item',
|
|
29
|
-
CustomerProfile: 'customer profile'
|
|
29
|
+
CustomerProfile: 'customer profile',
|
|
30
|
+
Storefront: 'storefront'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* @export
|
|
@@ -74,6 +75,7 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
75
|
'object_url': !(0, runtime_1.exists)(json, 'object_url') ? undefined : json['object_url'],
|
|
75
76
|
'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : json['priority'],
|
|
76
77
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
78
|
+
'task_context': !(0, runtime_1.exists)(json, 'task_context') ? undefined : json['task_context'],
|
|
77
79
|
'task_details': !(0, runtime_1.exists)(json, 'task_details') ? undefined : json['task_details'],
|
|
78
80
|
'task_name': !(0, runtime_1.exists)(json, 'task_name') ? undefined : json['task_name'],
|
|
79
81
|
'workflow_task_uuid': !(0, runtime_1.exists)(json, 'workflow_task_uuid') ? undefined : json['workflow_task_uuid'],
|
|
@@ -107,6 +109,7 @@ function WorkflowTaskToJSON(value) {
|
|
|
107
109
|
'object_url': value.object_url,
|
|
108
110
|
'priority': value.priority,
|
|
109
111
|
'status': value.status,
|
|
112
|
+
'task_context': value.task_context,
|
|
110
113
|
'task_details': value.task_details,
|
|
111
114
|
'task_name': value.task_name,
|
|
112
115
|
'workflow_task_uuid': value.workflow_task_uuid,
|
|
@@ -37,6 +37,12 @@ export interface WorkflowTasksResponse {
|
|
|
37
37
|
* @memberof WorkflowTasksResponse
|
|
38
38
|
*/
|
|
39
39
|
success?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof WorkflowTasksResponse
|
|
44
|
+
*/
|
|
45
|
+
task_context?: string;
|
|
40
46
|
/**
|
|
41
47
|
* tasks
|
|
42
48
|
* @type {Array<WorkflowTask>}
|
|
@@ -31,6 +31,7 @@ function WorkflowTasksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
32
32
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
33
33
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
34
|
+
'task_context': !(0, runtime_1.exists)(json, 'task_context') ? undefined : json['task_context'],
|
|
34
35
|
'tasks': !(0, runtime_1.exists)(json, 'tasks') ? undefined : (json['tasks'].map(WorkflowTask_1.WorkflowTaskFromJSON)),
|
|
35
36
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
37
|
};
|
|
@@ -47,6 +48,7 @@ function WorkflowTasksResponseToJSON(value) {
|
|
|
47
48
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
48
49
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
49
50
|
'success': value.success,
|
|
51
|
+
'task_context': value.task_context,
|
|
50
52
|
'tasks': value.tasks === undefined ? undefined : (value.tasks.map(WorkflowTask_1.WorkflowTaskToJSON)),
|
|
51
53
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
52
54
|
};
|
package/package.json
CHANGED
|
@@ -158,6 +158,12 @@ export interface WorkflowTask {
|
|
|
158
158
|
* @memberof WorkflowTask
|
|
159
159
|
*/
|
|
160
160
|
status?: WorkflowTaskStatusEnum;
|
|
161
|
+
/**
|
|
162
|
+
* User friendly string of the task context
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof WorkflowTask
|
|
165
|
+
*/
|
|
166
|
+
task_context?: string;
|
|
161
167
|
/**
|
|
162
168
|
* Task Details
|
|
163
169
|
* @type {string}
|
|
@@ -186,7 +192,8 @@ export const WorkflowTaskObjectTypeEnum = {
|
|
|
186
192
|
Order: 'order',
|
|
187
193
|
AutoOrder: 'auto order',
|
|
188
194
|
Item: 'item',
|
|
189
|
-
CustomerProfile: 'customer profile'
|
|
195
|
+
CustomerProfile: 'customer profile',
|
|
196
|
+
Storefront: 'storefront'
|
|
190
197
|
} as const;
|
|
191
198
|
export type WorkflowTaskObjectTypeEnum = typeof WorkflowTaskObjectTypeEnum[keyof typeof WorkflowTaskObjectTypeEnum];
|
|
192
199
|
|
|
@@ -242,6 +249,7 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
242
249
|
'object_url': !exists(json, 'object_url') ? undefined : json['object_url'],
|
|
243
250
|
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
|
244
251
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
252
|
+
'task_context': !exists(json, 'task_context') ? undefined : json['task_context'],
|
|
245
253
|
'task_details': !exists(json, 'task_details') ? undefined : json['task_details'],
|
|
246
254
|
'task_name': !exists(json, 'task_name') ? undefined : json['task_name'],
|
|
247
255
|
'workflow_task_uuid': !exists(json, 'workflow_task_uuid') ? undefined : json['workflow_task_uuid'],
|
|
@@ -276,6 +284,7 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
|
|
|
276
284
|
'object_url': value.object_url,
|
|
277
285
|
'priority': value.priority,
|
|
278
286
|
'status': value.status,
|
|
287
|
+
'task_context': value.task_context,
|
|
279
288
|
'task_details': value.task_details,
|
|
280
289
|
'task_name': value.task_name,
|
|
281
290
|
'workflow_task_uuid': value.workflow_task_uuid,
|
|
@@ -62,6 +62,12 @@ export interface WorkflowTasksResponse {
|
|
|
62
62
|
* @memberof WorkflowTasksResponse
|
|
63
63
|
*/
|
|
64
64
|
success?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* User friendly string of the task context if querying for a specific object type/id
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof WorkflowTasksResponse
|
|
69
|
+
*/
|
|
70
|
+
task_context?: string;
|
|
65
71
|
/**
|
|
66
72
|
* tasks
|
|
67
73
|
* @type {Array<WorkflowTask>}
|
|
@@ -89,6 +95,7 @@ export function WorkflowTasksResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
89
95
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
90
96
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
91
97
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
98
|
+
'task_context': !exists(json, 'task_context') ? undefined : json['task_context'],
|
|
92
99
|
'tasks': !exists(json, 'tasks') ? undefined : ((json['tasks'] as Array<any>).map(WorkflowTaskFromJSON)),
|
|
93
100
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
94
101
|
};
|
|
@@ -106,6 +113,7 @@ export function WorkflowTasksResponseToJSON(value?: WorkflowTasksResponse | null
|
|
|
106
113
|
'error': ModelErrorToJSON(value.error),
|
|
107
114
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
108
115
|
'success': value.success,
|
|
116
|
+
'task_context': value.task_context,
|
|
109
117
|
'tasks': value.tasks === undefined ? undefined : ((value.tasks as Array<any>).map(WorkflowTaskToJSON)),
|
|
110
118
|
'warning': WarningToJSON(value.warning),
|
|
111
119
|
};
|