ultracart_rest_api_v2_typescript 4.0.206 → 4.0.208
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/models/WorkflowTask.d.ts +18 -0
- package/dist/models/WorkflowTask.js +6 -0
- package/package.json +1 -1
- package/src/models/WorkflowTask.ts +24 -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.208
|
|
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.208 --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.208 | 03/26/2024 | WorkflowTask - added assigned_to_user_or_group field |
|
|
58
|
+
| 4.0.207 | 03/25/2024 | workflowtask - add global_task_number and object_task_number |
|
|
57
59
|
| 4.0.206 | 03/25/2024 | added sales_rep_code to Channel partner order |
|
|
58
60
|
| 4.0.205 | 03/19/2024 | workflow task - method to obtain open task count |
|
|
59
61
|
| 4.0.204 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
|
|
@@ -44,6 +44,12 @@ export interface WorkflowTask {
|
|
|
44
44
|
* @memberof WorkflowTask
|
|
45
45
|
*/
|
|
46
46
|
assigned_to_user_id?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Assigned to user or group (used for sorting)
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof WorkflowTask
|
|
51
|
+
*/
|
|
52
|
+
assigned_to_user_or_group?: string;
|
|
47
53
|
/**
|
|
48
54
|
* Attachments to the Workflow Task
|
|
49
55
|
* @type {Array<WorkflowAttachment>}
|
|
@@ -86,6 +92,12 @@ export interface WorkflowTask {
|
|
|
86
92
|
* @memberof WorkflowTask
|
|
87
93
|
*/
|
|
88
94
|
expiration_dts?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Global task numer
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof WorkflowTask
|
|
99
|
+
*/
|
|
100
|
+
global_task_number?: number;
|
|
89
101
|
/**
|
|
90
102
|
* Array of history records for the task
|
|
91
103
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -122,6 +134,12 @@ export interface WorkflowTask {
|
|
|
122
134
|
* @memberof WorkflowTask
|
|
123
135
|
*/
|
|
124
136
|
object_id?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Object specific task numer
|
|
139
|
+
* @type {number}
|
|
140
|
+
* @memberof WorkflowTask
|
|
141
|
+
*/
|
|
142
|
+
object_task_number?: number;
|
|
125
143
|
/**
|
|
126
144
|
* Object Type
|
|
127
145
|
* @type {string}
|
|
@@ -75,6 +75,7 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'assigned_to_group_id': !(0, runtime_1.exists)(json, 'assigned_to_group_id') ? undefined : json['assigned_to_group_id'],
|
|
76
76
|
'assigned_to_user': !(0, runtime_1.exists)(json, 'assigned_to_user') ? undefined : json['assigned_to_user'],
|
|
77
77
|
'assigned_to_user_id': !(0, runtime_1.exists)(json, 'assigned_to_user_id') ? undefined : json['assigned_to_user_id'],
|
|
78
|
+
'assigned_to_user_or_group': !(0, runtime_1.exists)(json, 'assigned_to_user_or_group') ? undefined : json['assigned_to_user_or_group'],
|
|
78
79
|
'attachments': !(0, runtime_1.exists)(json, 'attachments') ? undefined : (json['attachments'].map(WorkflowAttachment_1.WorkflowAttachmentFromJSON)),
|
|
79
80
|
'created_by': !(0, runtime_1.exists)(json, 'created_by') ? undefined : (0, WorkflowUser_1.WorkflowUserFromJSON)(json['created_by']),
|
|
80
81
|
'created_dts': !(0, runtime_1.exists)(json, 'created_dts') ? undefined : json['created_dts'],
|
|
@@ -82,12 +83,14 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
83
|
'dependant_workflow_task_uuid': !(0, runtime_1.exists)(json, 'dependant_workflow_task_uuid') ? undefined : json['dependant_workflow_task_uuid'],
|
|
83
84
|
'due_dts': !(0, runtime_1.exists)(json, 'due_dts') ? undefined : json['due_dts'],
|
|
84
85
|
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
86
|
+
'global_task_number': !(0, runtime_1.exists)(json, 'global_task_number') ? undefined : json['global_task_number'],
|
|
85
87
|
'histories': !(0, runtime_1.exists)(json, 'histories') ? undefined : (json['histories'].map(WorkflowTaskHistory_1.WorkflowTaskHistoryFromJSON)),
|
|
86
88
|
'last_update_dts': !(0, runtime_1.exists)(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
87
89
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
88
90
|
'notes': !(0, runtime_1.exists)(json, 'notes') ? undefined : (json['notes'].map(WorkflowNote_1.WorkflowNoteFromJSON)),
|
|
89
91
|
'object_email': !(0, runtime_1.exists)(json, 'object_email') ? undefined : json['object_email'],
|
|
90
92
|
'object_id': !(0, runtime_1.exists)(json, 'object_id') ? undefined : json['object_id'],
|
|
93
|
+
'object_task_number': !(0, runtime_1.exists)(json, 'object_task_number') ? undefined : json['object_task_number'],
|
|
91
94
|
'object_type': !(0, runtime_1.exists)(json, 'object_type') ? undefined : json['object_type'],
|
|
92
95
|
'object_url': !(0, runtime_1.exists)(json, 'object_url') ? undefined : json['object_url'],
|
|
93
96
|
'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : json['priority'],
|
|
@@ -115,6 +118,7 @@ function WorkflowTaskToJSON(value) {
|
|
|
115
118
|
'assigned_to_group_id': value.assigned_to_group_id,
|
|
116
119
|
'assigned_to_user': value.assigned_to_user,
|
|
117
120
|
'assigned_to_user_id': value.assigned_to_user_id,
|
|
121
|
+
'assigned_to_user_or_group': value.assigned_to_user_or_group,
|
|
118
122
|
'attachments': value.attachments === undefined ? undefined : (value.attachments.map(WorkflowAttachment_1.WorkflowAttachmentToJSON)),
|
|
119
123
|
'created_by': (0, WorkflowUser_1.WorkflowUserToJSON)(value.created_by),
|
|
120
124
|
'created_dts': value.created_dts,
|
|
@@ -122,12 +126,14 @@ function WorkflowTaskToJSON(value) {
|
|
|
122
126
|
'dependant_workflow_task_uuid': value.dependant_workflow_task_uuid,
|
|
123
127
|
'due_dts': value.due_dts,
|
|
124
128
|
'expiration_dts': value.expiration_dts,
|
|
129
|
+
'global_task_number': value.global_task_number,
|
|
125
130
|
'histories': value.histories === undefined ? undefined : (value.histories.map(WorkflowTaskHistory_1.WorkflowTaskHistoryToJSON)),
|
|
126
131
|
'last_update_dts': value.last_update_dts,
|
|
127
132
|
'merchant_id': value.merchant_id,
|
|
128
133
|
'notes': value.notes === undefined ? undefined : (value.notes.map(WorkflowNote_1.WorkflowNoteToJSON)),
|
|
129
134
|
'object_email': value.object_email,
|
|
130
135
|
'object_id': value.object_id,
|
|
136
|
+
'object_task_number': value.object_task_number,
|
|
131
137
|
'object_type': value.object_type,
|
|
132
138
|
'object_url': value.object_url,
|
|
133
139
|
'priority': value.priority,
|
package/package.json
CHANGED
|
@@ -74,6 +74,12 @@ export interface WorkflowTask {
|
|
|
74
74
|
* @memberof WorkflowTask
|
|
75
75
|
*/
|
|
76
76
|
assigned_to_user_id?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Assigned to user or group (used for sorting)
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof WorkflowTask
|
|
81
|
+
*/
|
|
82
|
+
assigned_to_user_or_group?: string;
|
|
77
83
|
/**
|
|
78
84
|
* Attachments to the Workflow Task
|
|
79
85
|
* @type {Array<WorkflowAttachment>}
|
|
@@ -116,6 +122,12 @@ export interface WorkflowTask {
|
|
|
116
122
|
* @memberof WorkflowTask
|
|
117
123
|
*/
|
|
118
124
|
expiration_dts?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Global task numer
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof WorkflowTask
|
|
129
|
+
*/
|
|
130
|
+
global_task_number?: number;
|
|
119
131
|
/**
|
|
120
132
|
* Array of history records for the task
|
|
121
133
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -152,6 +164,12 @@ export interface WorkflowTask {
|
|
|
152
164
|
* @memberof WorkflowTask
|
|
153
165
|
*/
|
|
154
166
|
object_id?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Object specific task numer
|
|
169
|
+
* @type {number}
|
|
170
|
+
* @memberof WorkflowTask
|
|
171
|
+
*/
|
|
172
|
+
object_task_number?: number;
|
|
155
173
|
/**
|
|
156
174
|
* Object Type
|
|
157
175
|
* @type {string}
|
|
@@ -292,6 +310,7 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
292
310
|
'assigned_to_group_id': !exists(json, 'assigned_to_group_id') ? undefined : json['assigned_to_group_id'],
|
|
293
311
|
'assigned_to_user': !exists(json, 'assigned_to_user') ? undefined : json['assigned_to_user'],
|
|
294
312
|
'assigned_to_user_id': !exists(json, 'assigned_to_user_id') ? undefined : json['assigned_to_user_id'],
|
|
313
|
+
'assigned_to_user_or_group': !exists(json, 'assigned_to_user_or_group') ? undefined : json['assigned_to_user_or_group'],
|
|
295
314
|
'attachments': !exists(json, 'attachments') ? undefined : ((json['attachments'] as Array<any>).map(WorkflowAttachmentFromJSON)),
|
|
296
315
|
'created_by': !exists(json, 'created_by') ? undefined : WorkflowUserFromJSON(json['created_by']),
|
|
297
316
|
'created_dts': !exists(json, 'created_dts') ? undefined : json['created_dts'],
|
|
@@ -299,12 +318,14 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
299
318
|
'dependant_workflow_task_uuid': !exists(json, 'dependant_workflow_task_uuid') ? undefined : json['dependant_workflow_task_uuid'],
|
|
300
319
|
'due_dts': !exists(json, 'due_dts') ? undefined : json['due_dts'],
|
|
301
320
|
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
321
|
+
'global_task_number': !exists(json, 'global_task_number') ? undefined : json['global_task_number'],
|
|
302
322
|
'histories': !exists(json, 'histories') ? undefined : ((json['histories'] as Array<any>).map(WorkflowTaskHistoryFromJSON)),
|
|
303
323
|
'last_update_dts': !exists(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
304
324
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
305
325
|
'notes': !exists(json, 'notes') ? undefined : ((json['notes'] as Array<any>).map(WorkflowNoteFromJSON)),
|
|
306
326
|
'object_email': !exists(json, 'object_email') ? undefined : json['object_email'],
|
|
307
327
|
'object_id': !exists(json, 'object_id') ? undefined : json['object_id'],
|
|
328
|
+
'object_task_number': !exists(json, 'object_task_number') ? undefined : json['object_task_number'],
|
|
308
329
|
'object_type': !exists(json, 'object_type') ? undefined : json['object_type'],
|
|
309
330
|
'object_url': !exists(json, 'object_url') ? undefined : json['object_url'],
|
|
310
331
|
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
|
@@ -333,6 +354,7 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
|
|
|
333
354
|
'assigned_to_group_id': value.assigned_to_group_id,
|
|
334
355
|
'assigned_to_user': value.assigned_to_user,
|
|
335
356
|
'assigned_to_user_id': value.assigned_to_user_id,
|
|
357
|
+
'assigned_to_user_or_group': value.assigned_to_user_or_group,
|
|
336
358
|
'attachments': value.attachments === undefined ? undefined : ((value.attachments as Array<any>).map(WorkflowAttachmentToJSON)),
|
|
337
359
|
'created_by': WorkflowUserToJSON(value.created_by),
|
|
338
360
|
'created_dts': value.created_dts,
|
|
@@ -340,12 +362,14 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
|
|
|
340
362
|
'dependant_workflow_task_uuid': value.dependant_workflow_task_uuid,
|
|
341
363
|
'due_dts': value.due_dts,
|
|
342
364
|
'expiration_dts': value.expiration_dts,
|
|
365
|
+
'global_task_number': value.global_task_number,
|
|
343
366
|
'histories': value.histories === undefined ? undefined : ((value.histories as Array<any>).map(WorkflowTaskHistoryToJSON)),
|
|
344
367
|
'last_update_dts': value.last_update_dts,
|
|
345
368
|
'merchant_id': value.merchant_id,
|
|
346
369
|
'notes': value.notes === undefined ? undefined : ((value.notes as Array<any>).map(WorkflowNoteToJSON)),
|
|
347
370
|
'object_email': value.object_email,
|
|
348
371
|
'object_id': value.object_id,
|
|
372
|
+
'object_task_number': value.object_task_number,
|
|
349
373
|
'object_type': value.object_type,
|
|
350
374
|
'object_url': value.object_url,
|
|
351
375
|
'priority': value.priority,
|