ultracart_rest_api_v2_typescript 4.0.196 → 4.0.198

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.196
1
+ ## ultracart_rest_api_v2_typescript@4.0.198
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.196 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.198 --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.198 | 01/12/2024 | workflow task - add properties array |
58
+ | 4.0.197 | 01/10/2024 | workflow tasks - support for searching by tags |
57
59
  | 4.0.196 | 01/10/2024 | workflow task - add uuids of related tasks and tags |
58
60
  | 4.0.195 | 01/03/2024 | workflow - add task_context field to task obj |
59
61
  | 4.0.194 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Property } from './Property';
12
13
  import { WorkflowAttachment } from './WorkflowAttachment';
13
14
  import { WorkflowNote } from './WorkflowNote';
14
15
  import { WorkflowTaskHistory } from './WorkflowTaskHistory';
@@ -133,6 +134,12 @@ export interface WorkflowTask {
133
134
  * @memberof WorkflowTask
134
135
  */
135
136
  priority?: WorkflowTaskPriorityEnum;
137
+ /**
138
+ * Properties
139
+ * @type {Array<Property>}
140
+ * @memberof WorkflowTask
141
+ */
142
+ properties?: Array<Property>;
136
143
  /**
137
144
  * Related Workflow Task UUID
138
145
  * @type {string}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WorkflowTaskToJSON = exports.WorkflowTaskFromJSONTyped = exports.WorkflowTaskFromJSON = exports.WorkflowTaskStatusEnum = exports.WorkflowTaskPriorityEnum = exports.WorkflowTaskObjectTypeEnum = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var Property_1 = require("./Property");
18
19
  var WorkflowAttachment_1 = require("./WorkflowAttachment");
19
20
  var WorkflowNote_1 = require("./WorkflowNote");
20
21
  var WorkflowTaskHistory_1 = require("./WorkflowTaskHistory");
@@ -75,6 +76,7 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
75
76
  'object_type': !(0, runtime_1.exists)(json, 'object_type') ? undefined : json['object_type'],
76
77
  'object_url': !(0, runtime_1.exists)(json, 'object_url') ? undefined : json['object_url'],
77
78
  'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : json['priority'],
79
+ 'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(Property_1.PropertyFromJSON)),
78
80
  'related_workflow_task_uuid': !(0, runtime_1.exists)(json, 'related_workflow_task_uuid') ? undefined : json['related_workflow_task_uuid'],
79
81
  'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
80
82
  'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
@@ -112,6 +114,7 @@ function WorkflowTaskToJSON(value) {
112
114
  'object_type': value.object_type,
113
115
  'object_url': value.object_url,
114
116
  'priority': value.priority,
117
+ 'properties': value.properties === undefined ? undefined : (value.properties.map(Property_1.PropertyToJSON)),
115
118
  'related_workflow_task_uuid': value.related_workflow_task_uuid,
116
119
  'status': value.status,
117
120
  'tags': value.tags,
@@ -112,6 +112,12 @@ export interface WorkflowTasksRequest {
112
112
  * @memberof WorkflowTasksRequest
113
113
  */
114
114
  status?: WorkflowTasksRequestStatusEnum;
115
+ /**
116
+ * Tasks that are tagged with the specified tags
117
+ * @type {Array<string>}
118
+ * @memberof WorkflowTasksRequest
119
+ */
120
+ tags?: Array<string>;
115
121
  /**
116
122
  * Tasks that are unassigned to a user or group
117
123
  * @type {boolean}
@@ -68,6 +68,7 @@ function WorkflowTasksRequestFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'object_type': !(0, runtime_1.exists)(json, 'object_type') ? undefined : json['object_type'],
69
69
  'priority': !(0, runtime_1.exists)(json, 'priority') ? undefined : json['priority'],
70
70
  'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
71
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
71
72
  'unassigned': !(0, runtime_1.exists)(json, 'unassigned') ? undefined : json['unassigned'],
72
73
  };
73
74
  }
@@ -96,6 +97,7 @@ function WorkflowTasksRequestToJSON(value) {
96
97
  'object_type': value.object_type,
97
98
  'priority': value.priority,
98
99
  'status': value.status,
100
+ 'tags': value.tags,
99
101
  'unassigned': value.unassigned,
100
102
  };
101
103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.196",
3
+ "version": "4.0.198",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ Property,
18
+ PropertyFromJSON,
19
+ PropertyFromJSONTyped,
20
+ PropertyToJSON,
21
+ } from './Property';
16
22
  import {
17
23
  WorkflowAttachment,
18
24
  WorkflowAttachmentFromJSON,
@@ -158,6 +164,12 @@ export interface WorkflowTask {
158
164
  * @memberof WorkflowTask
159
165
  */
160
166
  priority?: WorkflowTaskPriorityEnum;
167
+ /**
168
+ * Properties
169
+ * @type {Array<Property>}
170
+ * @memberof WorkflowTask
171
+ */
172
+ properties?: Array<Property>;
161
173
  /**
162
174
  * Related Workflow Task UUID
163
175
  * @type {string}
@@ -267,6 +279,7 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
267
279
  'object_type': !exists(json, 'object_type') ? undefined : json['object_type'],
268
280
  'object_url': !exists(json, 'object_url') ? undefined : json['object_url'],
269
281
  'priority': !exists(json, 'priority') ? undefined : json['priority'],
282
+ 'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(PropertyFromJSON)),
270
283
  'related_workflow_task_uuid': !exists(json, 'related_workflow_task_uuid') ? undefined : json['related_workflow_task_uuid'],
271
284
  'status': !exists(json, 'status') ? undefined : json['status'],
272
285
  'tags': !exists(json, 'tags') ? undefined : json['tags'],
@@ -305,6 +318,7 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
305
318
  'object_type': value.object_type,
306
319
  'object_url': value.object_url,
307
320
  'priority': value.priority,
321
+ 'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(PropertyToJSON)),
308
322
  'related_workflow_task_uuid': value.related_workflow_task_uuid,
309
323
  'status': value.status,
310
324
  'tags': value.tags,
@@ -122,6 +122,12 @@ export interface WorkflowTasksRequest {
122
122
  * @memberof WorkflowTasksRequest
123
123
  */
124
124
  status?: WorkflowTasksRequestStatusEnum;
125
+ /**
126
+ * Tasks that are tagged with the specified tags
127
+ * @type {Array<string>}
128
+ * @memberof WorkflowTasksRequest
129
+ */
130
+ tags?: Array<string>;
125
131
  /**
126
132
  * Tasks that are unassigned to a user or group
127
133
  * @type {boolean}
@@ -191,6 +197,7 @@ export function WorkflowTasksRequestFromJSONTyped(json: any, ignoreDiscriminator
191
197
  'object_type': !exists(json, 'object_type') ? undefined : json['object_type'],
192
198
  'priority': !exists(json, 'priority') ? undefined : json['priority'],
193
199
  'status': !exists(json, 'status') ? undefined : json['status'],
200
+ 'tags': !exists(json, 'tags') ? undefined : json['tags'],
194
201
  'unassigned': !exists(json, 'unassigned') ? undefined : json['unassigned'],
195
202
  };
196
203
  }
@@ -220,6 +227,7 @@ export function WorkflowTasksRequestToJSON(value?: WorkflowTasksRequest | null):
220
227
  'object_type': value.object_type,
221
228
  'priority': value.priority,
222
229
  'status': value.status,
230
+ 'tags': value.tags,
223
231
  'unassigned': value.unassigned,
224
232
  };
225
233
  }