ultracart_rest_api_v2_typescript 4.0.203 → 4.0.205
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/.openapi-generator/FILES +1 -0
- package/README.md +4 -2
- package/dist/apis/ConversationApi.d.ts +27 -0
- package/dist/apis/ConversationApi.js +57 -0
- package/dist/apis/WorkflowApi.d.ts +24 -1
- package/dist/apis/WorkflowApi.js +56 -0
- package/dist/models/WorkflowTask.d.ts +27 -0
- package/dist/models/WorkflowTask.js +20 -2
- package/dist/models/WorkflowTaskOpenCountResponse.d.ts +54 -0
- package/dist/models/WorkflowTaskOpenCountResponse.js +53 -0
- package/dist/models/WorkflowUsersResponse.d.ts +6 -0
- package/dist/models/WorkflowUsersResponse.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +60 -0
- package/src/apis/WorkflowApi.ts +55 -0
- package/src/models/WorkflowTask.ts +33 -1
- package/src/models/WorkflowTaskOpenCountResponse.ts +107 -0
- package/src/models/WorkflowUsersResponse.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -857,6 +857,7 @@ src/models/WorkflowGroupsResponse.ts
|
|
|
857
857
|
src/models/WorkflowNote.ts
|
|
858
858
|
src/models/WorkflowTask.ts
|
|
859
859
|
src/models/WorkflowTaskHistory.ts
|
|
860
|
+
src/models/WorkflowTaskOpenCountResponse.ts
|
|
860
861
|
src/models/WorkflowTaskResponse.ts
|
|
861
862
|
src/models/WorkflowTaskTagsResponse.ts
|
|
862
863
|
src/models/WorkflowTasksRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.205
|
|
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.205 --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.205 | 03/19/2024 | workflow task - method to obtain open task count |
|
|
58
|
+
| 4.0.204 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
|
|
57
59
|
| 4.0.203 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
|
|
58
60
|
| 4.0.202 | 03/08/2024 | added getWorkflowTaskTags method |
|
|
59
61
|
| 4.0.201 | 02/27/2024 | esp - sms statistic layer |
|
|
@@ -147,6 +147,9 @@ export interface LeaveConversationRequest {
|
|
|
147
147
|
export interface MarkReadConversationRequest {
|
|
148
148
|
conversationUuid: string;
|
|
149
149
|
}
|
|
150
|
+
export interface ResetConversationPbxQueueStatisticsRequest {
|
|
151
|
+
queueUuid: string;
|
|
152
|
+
}
|
|
150
153
|
export interface SearchConversationCannedMessagesRequest {
|
|
151
154
|
searchRequest: ConversationCannedMessagesSearch;
|
|
152
155
|
}
|
|
@@ -1057,6 +1060,20 @@ export interface ConversationApiInterface {
|
|
|
1057
1060
|
* Mark a conversation as read
|
|
1058
1061
|
*/
|
|
1059
1062
|
markReadConversation(requestParameters: MarkReadConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1063
|
+
/**
|
|
1064
|
+
* reset statistics within the queue
|
|
1065
|
+
* @summary reset statistics within the queue
|
|
1066
|
+
* @param {string} queueUuid
|
|
1067
|
+
* @param {*} [options] Override http request option.
|
|
1068
|
+
* @throws {RequiredError}
|
|
1069
|
+
* @memberof ConversationApiInterface
|
|
1070
|
+
*/
|
|
1071
|
+
resetConversationPbxQueueStatisticsRaw(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1072
|
+
/**
|
|
1073
|
+
* reset statistics within the queue
|
|
1074
|
+
* reset statistics within the queue
|
|
1075
|
+
*/
|
|
1076
|
+
resetConversationPbxQueueStatistics(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1060
1077
|
/**
|
|
1061
1078
|
* Search for canned messages by short_code
|
|
1062
1079
|
* @summary Search for canned messages by short_code
|
|
@@ -1908,6 +1925,16 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
1908
1925
|
* Mark a conversation as read
|
|
1909
1926
|
*/
|
|
1910
1927
|
markReadConversation(requestParameters: MarkReadConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1928
|
+
/**
|
|
1929
|
+
* reset statistics within the queue
|
|
1930
|
+
* reset statistics within the queue
|
|
1931
|
+
*/
|
|
1932
|
+
resetConversationPbxQueueStatisticsRaw(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1933
|
+
/**
|
|
1934
|
+
* reset statistics within the queue
|
|
1935
|
+
* reset statistics within the queue
|
|
1936
|
+
*/
|
|
1937
|
+
resetConversationPbxQueueStatistics(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1911
1938
|
/**
|
|
1912
1939
|
* Search for canned messages by short_code
|
|
1913
1940
|
* Search for canned messages by short_code
|
|
@@ -3655,6 +3655,63 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
3655
3655
|
});
|
|
3656
3656
|
});
|
|
3657
3657
|
};
|
|
3658
|
+
/**
|
|
3659
|
+
* reset statistics within the queue
|
|
3660
|
+
* reset statistics within the queue
|
|
3661
|
+
*/
|
|
3662
|
+
ConversationApi.prototype.resetConversationPbxQueueStatisticsRaw = function (requestParameters, initOverrides) {
|
|
3663
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3664
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
3665
|
+
return __generator(this, function (_c) {
|
|
3666
|
+
switch (_c.label) {
|
|
3667
|
+
case 0:
|
|
3668
|
+
if (requestParameters.queueUuid === null || requestParameters.queueUuid === undefined) {
|
|
3669
|
+
throw new runtime.RequiredError('queueUuid', 'Required parameter requestParameters.queueUuid was null or undefined when calling resetConversationPbxQueueStatistics.');
|
|
3670
|
+
}
|
|
3671
|
+
queryParameters = {};
|
|
3672
|
+
headerParameters = {};
|
|
3673
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3674
|
+
// oauth required
|
|
3675
|
+
_a = headerParameters;
|
|
3676
|
+
_b = "Authorization";
|
|
3677
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_write"])];
|
|
3678
|
+
case 1:
|
|
3679
|
+
// oauth required
|
|
3680
|
+
_a[_b] = _c.sent();
|
|
3681
|
+
_c.label = 2;
|
|
3682
|
+
case 2:
|
|
3683
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3684
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
3685
|
+
}
|
|
3686
|
+
return [4 /*yield*/, this.request({
|
|
3687
|
+
path: "/conversation/pbx/queues/{queue_uuid}/reset_statistics".replace("{".concat("queue_uuid", "}"), encodeURIComponent(String(requestParameters.queueUuid))),
|
|
3688
|
+
method: 'POST',
|
|
3689
|
+
headers: headerParameters,
|
|
3690
|
+
query: queryParameters,
|
|
3691
|
+
}, initOverrides)];
|
|
3692
|
+
case 3:
|
|
3693
|
+
response = _c.sent();
|
|
3694
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
3695
|
+
}
|
|
3696
|
+
});
|
|
3697
|
+
});
|
|
3698
|
+
};
|
|
3699
|
+
/**
|
|
3700
|
+
* reset statistics within the queue
|
|
3701
|
+
* reset statistics within the queue
|
|
3702
|
+
*/
|
|
3703
|
+
ConversationApi.prototype.resetConversationPbxQueueStatistics = function (requestParameters, initOverrides) {
|
|
3704
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3705
|
+
return __generator(this, function (_a) {
|
|
3706
|
+
switch (_a.label) {
|
|
3707
|
+
case 0: return [4 /*yield*/, this.resetConversationPbxQueueStatisticsRaw(requestParameters, initOverrides)];
|
|
3708
|
+
case 1:
|
|
3709
|
+
_a.sent();
|
|
3710
|
+
return [2 /*return*/];
|
|
3711
|
+
}
|
|
3712
|
+
});
|
|
3713
|
+
});
|
|
3714
|
+
};
|
|
3658
3715
|
/**
|
|
3659
3716
|
* Search for canned messages by short_code
|
|
3660
3717
|
* Search for canned messages by short_code
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { WorkflowAgentAuthResponse, WorkflowAttachmentUploadUrlResponse, WorkflowGroupsResponse, WorkflowTask, WorkflowTaskResponse, WorkflowTaskTagsResponse, WorkflowTasksRequest, WorkflowTasksResponse, WorkflowUserResponse, WorkflowUsersResponse } from '../models';
|
|
13
|
+
import { WorkflowAgentAuthResponse, WorkflowAttachmentUploadUrlResponse, WorkflowGroupsResponse, WorkflowTask, WorkflowTaskOpenCountResponse, WorkflowTaskResponse, WorkflowTaskTagsResponse, WorkflowTasksRequest, WorkflowTasksResponse, WorkflowUserResponse, WorkflowUsersResponse } from '../models';
|
|
14
14
|
export interface GetWorkflowAssignmentGroupsRequest {
|
|
15
15
|
limit?: number;
|
|
16
16
|
offset?: number;
|
|
@@ -148,6 +148,19 @@ export interface WorkflowApiInterface {
|
|
|
148
148
|
* Retrieve a workflow task by object type and id
|
|
149
149
|
*/
|
|
150
150
|
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Retrieve workflow task open count
|
|
153
|
+
* @summary Retrieve workflow task open count
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
* @memberof WorkflowApiInterface
|
|
157
|
+
*/
|
|
158
|
+
getWorkflowTaskOpenCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTaskOpenCountResponse>>;
|
|
159
|
+
/**
|
|
160
|
+
* Retrieve workflow task open count
|
|
161
|
+
* Retrieve workflow task open count
|
|
162
|
+
*/
|
|
163
|
+
getWorkflowTaskOpenCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTaskOpenCountResponse>;
|
|
151
164
|
/**
|
|
152
165
|
* Retrieves a unique list of all the existing workflow task tags.
|
|
153
166
|
* @summary Get a list of existing workflow task tags
|
|
@@ -282,6 +295,16 @@ export declare class WorkflowApi extends runtime.BaseAPI implements WorkflowApiI
|
|
|
282
295
|
* Retrieve a workflow task by object type and id
|
|
283
296
|
*/
|
|
284
297
|
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Retrieve workflow task open count
|
|
300
|
+
* Retrieve workflow task open count
|
|
301
|
+
*/
|
|
302
|
+
getWorkflowTaskOpenCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTaskOpenCountResponse>>;
|
|
303
|
+
/**
|
|
304
|
+
* Retrieve workflow task open count
|
|
305
|
+
* Retrieve workflow task open count
|
|
306
|
+
*/
|
|
307
|
+
getWorkflowTaskOpenCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTaskOpenCountResponse>;
|
|
285
308
|
/**
|
|
286
309
|
* Retrieves a unique list of all the existing workflow task tags.
|
|
287
310
|
* Get a list of existing workflow task tags
|
package/dist/apis/WorkflowApi.js
CHANGED
|
@@ -493,6 +493,62 @@ var WorkflowApi = /** @class */ (function (_super) {
|
|
|
493
493
|
});
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
+
/**
|
|
497
|
+
* Retrieve workflow task open count
|
|
498
|
+
* Retrieve workflow task open count
|
|
499
|
+
*/
|
|
500
|
+
WorkflowApi.prototype.getWorkflowTaskOpenCountRaw = function (initOverrides) {
|
|
501
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
502
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
503
|
+
return __generator(this, function (_c) {
|
|
504
|
+
switch (_c.label) {
|
|
505
|
+
case 0:
|
|
506
|
+
queryParameters = {};
|
|
507
|
+
headerParameters = {};
|
|
508
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
509
|
+
// oauth required
|
|
510
|
+
_a = headerParameters;
|
|
511
|
+
_b = "Authorization";
|
|
512
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["workflow_read"])];
|
|
513
|
+
case 1:
|
|
514
|
+
// oauth required
|
|
515
|
+
_a[_b] = _c.sent();
|
|
516
|
+
_c.label = 2;
|
|
517
|
+
case 2:
|
|
518
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
519
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
520
|
+
}
|
|
521
|
+
return [4 /*yield*/, this.request({
|
|
522
|
+
path: "/workflow/tasks/open_count",
|
|
523
|
+
method: 'GET',
|
|
524
|
+
headers: headerParameters,
|
|
525
|
+
query: queryParameters,
|
|
526
|
+
}, initOverrides)];
|
|
527
|
+
case 3:
|
|
528
|
+
response = _c.sent();
|
|
529
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.WorkflowTaskOpenCountResponseFromJSON)(jsonValue); })];
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* Retrieve workflow task open count
|
|
536
|
+
* Retrieve workflow task open count
|
|
537
|
+
*/
|
|
538
|
+
WorkflowApi.prototype.getWorkflowTaskOpenCount = function (initOverrides) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
540
|
+
var response;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0: return [4 /*yield*/, this.getWorkflowTaskOpenCountRaw(initOverrides)];
|
|
544
|
+
case 1:
|
|
545
|
+
response = _a.sent();
|
|
546
|
+
return [4 /*yield*/, response.value()];
|
|
547
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
});
|
|
551
|
+
};
|
|
496
552
|
/**
|
|
497
553
|
* Retrieves a unique list of all the existing workflow task tags.
|
|
498
554
|
* Get a list of existing workflow task tags
|
|
@@ -80,6 +80,12 @@ export interface WorkflowTask {
|
|
|
80
80
|
* @memberof WorkflowTask
|
|
81
81
|
*/
|
|
82
82
|
due_dts?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof WorkflowTask
|
|
87
|
+
*/
|
|
88
|
+
expiration_dts?: string;
|
|
83
89
|
/**
|
|
84
90
|
* Array of history records for the task
|
|
85
91
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -152,6 +158,12 @@ export interface WorkflowTask {
|
|
|
152
158
|
* @memberof WorkflowTask
|
|
153
159
|
*/
|
|
154
160
|
status?: WorkflowTaskStatusEnum;
|
|
161
|
+
/**
|
|
162
|
+
* Constant for the type of system generated task
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof WorkflowTask
|
|
165
|
+
*/
|
|
166
|
+
system_task_type?: WorkflowTaskSystemTaskTypeEnum;
|
|
155
167
|
/**
|
|
156
168
|
* Tags
|
|
157
169
|
* @type {Array<string>}
|
|
@@ -212,8 +224,23 @@ export declare const WorkflowTaskStatusEnum: {
|
|
|
212
224
|
readonly Closed: "closed";
|
|
213
225
|
readonly Delayed: "delayed";
|
|
214
226
|
readonly AwaitingCustomerFeedback: "awaiting customer feedback";
|
|
227
|
+
readonly ClosedSystem: "closed - system";
|
|
228
|
+
readonly ClosedCustomer: "closed - customer";
|
|
229
|
+
readonly ClosedExpiration: "closed - expiration";
|
|
215
230
|
};
|
|
216
231
|
export type WorkflowTaskStatusEnum = typeof WorkflowTaskStatusEnum[keyof typeof WorkflowTaskStatusEnum];
|
|
232
|
+
/**
|
|
233
|
+
* @export
|
|
234
|
+
*/
|
|
235
|
+
export declare const WorkflowTaskSystemTaskTypeEnum: {
|
|
236
|
+
readonly OrderAccountsReceivable: "order_accounts_receivable";
|
|
237
|
+
readonly OrderFraudReview: "order_fraud_review";
|
|
238
|
+
readonly AutoOrderCardUpdateIssue: "auto_order_card_update_issue";
|
|
239
|
+
readonly AutoOrderCanceledPayment: "auto_order_canceled_payment";
|
|
240
|
+
readonly ItemLowStock: "item_low_stock";
|
|
241
|
+
readonly ItemOutOfStock: "item_out_of_stock";
|
|
242
|
+
};
|
|
243
|
+
export type WorkflowTaskSystemTaskTypeEnum = typeof WorkflowTaskSystemTaskTypeEnum[keyof typeof WorkflowTaskSystemTaskTypeEnum];
|
|
217
244
|
export declare function WorkflowTaskFromJSON(json: any): WorkflowTask;
|
|
218
245
|
export declare function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowTask;
|
|
219
246
|
export declare function WorkflowTaskToJSON(value?: WorkflowTask | null): any;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.WorkflowTaskToJSON = exports.WorkflowTaskFromJSONTyped = exports.WorkflowTaskFromJSON = exports.WorkflowTaskStatusEnum = exports.WorkflowTaskPriorityEnum = exports.WorkflowTaskObjectTypeEnum = void 0;
|
|
16
|
+
exports.WorkflowTaskToJSON = exports.WorkflowTaskFromJSONTyped = exports.WorkflowTaskFromJSON = exports.WorkflowTaskSystemTaskTypeEnum = exports.WorkflowTaskStatusEnum = exports.WorkflowTaskPriorityEnum = exports.WorkflowTaskObjectTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var Property_1 = require("./Property");
|
|
19
19
|
var WorkflowAttachment_1 = require("./WorkflowAttachment");
|
|
@@ -46,7 +46,21 @@ exports.WorkflowTaskStatusEnum = {
|
|
|
46
46
|
Open: 'open',
|
|
47
47
|
Closed: 'closed',
|
|
48
48
|
Delayed: 'delayed',
|
|
49
|
-
AwaitingCustomerFeedback: 'awaiting customer feedback'
|
|
49
|
+
AwaitingCustomerFeedback: 'awaiting customer feedback',
|
|
50
|
+
ClosedSystem: 'closed - system',
|
|
51
|
+
ClosedCustomer: 'closed - customer',
|
|
52
|
+
ClosedExpiration: 'closed - expiration'
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
exports.WorkflowTaskSystemTaskTypeEnum = {
|
|
58
|
+
OrderAccountsReceivable: 'order_accounts_receivable',
|
|
59
|
+
OrderFraudReview: 'order_fraud_review',
|
|
60
|
+
AutoOrderCardUpdateIssue: 'auto_order_card_update_issue',
|
|
61
|
+
AutoOrderCanceledPayment: 'auto_order_canceled_payment',
|
|
62
|
+
ItemLowStock: 'item_low_stock',
|
|
63
|
+
ItemOutOfStock: 'item_out_of_stock'
|
|
50
64
|
};
|
|
51
65
|
function WorkflowTaskFromJSON(json) {
|
|
52
66
|
return WorkflowTaskFromJSONTyped(json, false);
|
|
@@ -67,6 +81,7 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
81
|
'delay_until_dts': !(0, runtime_1.exists)(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
|
|
68
82
|
'dependant_workflow_task_uuid': !(0, runtime_1.exists)(json, 'dependant_workflow_task_uuid') ? undefined : json['dependant_workflow_task_uuid'],
|
|
69
83
|
'due_dts': !(0, runtime_1.exists)(json, 'due_dts') ? undefined : json['due_dts'],
|
|
84
|
+
'expiration_dts': !(0, runtime_1.exists)(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
70
85
|
'histories': !(0, runtime_1.exists)(json, 'histories') ? undefined : (json['histories'].map(WorkflowTaskHistory_1.WorkflowTaskHistoryFromJSON)),
|
|
71
86
|
'last_update_dts': !(0, runtime_1.exists)(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
72
87
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -79,6 +94,7 @@ function WorkflowTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
94
|
'properties': !(0, runtime_1.exists)(json, 'properties') ? undefined : (json['properties'].map(Property_1.PropertyFromJSON)),
|
|
80
95
|
'related_workflow_task_uuid': !(0, runtime_1.exists)(json, 'related_workflow_task_uuid') ? undefined : json['related_workflow_task_uuid'],
|
|
81
96
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
97
|
+
'system_task_type': !(0, runtime_1.exists)(json, 'system_task_type') ? undefined : json['system_task_type'],
|
|
82
98
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
83
99
|
'task_context': !(0, runtime_1.exists)(json, 'task_context') ? undefined : json['task_context'],
|
|
84
100
|
'task_details': !(0, runtime_1.exists)(json, 'task_details') ? undefined : json['task_details'],
|
|
@@ -105,6 +121,7 @@ function WorkflowTaskToJSON(value) {
|
|
|
105
121
|
'delay_until_dts': value.delay_until_dts,
|
|
106
122
|
'dependant_workflow_task_uuid': value.dependant_workflow_task_uuid,
|
|
107
123
|
'due_dts': value.due_dts,
|
|
124
|
+
'expiration_dts': value.expiration_dts,
|
|
108
125
|
'histories': value.histories === undefined ? undefined : (value.histories.map(WorkflowTaskHistory_1.WorkflowTaskHistoryToJSON)),
|
|
109
126
|
'last_update_dts': value.last_update_dts,
|
|
110
127
|
'merchant_id': value.merchant_id,
|
|
@@ -117,6 +134,7 @@ function WorkflowTaskToJSON(value) {
|
|
|
117
134
|
'properties': value.properties === undefined ? undefined : (value.properties.map(Property_1.PropertyToJSON)),
|
|
118
135
|
'related_workflow_task_uuid': value.related_workflow_task_uuid,
|
|
119
136
|
'status': value.status,
|
|
137
|
+
'system_task_type': value.system_task_type,
|
|
120
138
|
'tags': value.tags,
|
|
121
139
|
'task_context': value.task_context,
|
|
122
140
|
'task_details': value.task_details,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ModelError } from './ModelError';
|
|
13
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
|
+
import { Warning } from './Warning';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface WorkflowTaskOpenCountResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface WorkflowTaskOpenCountResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ModelError}
|
|
24
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
25
|
+
*/
|
|
26
|
+
error?: ModelError;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ResponseMetadata}
|
|
30
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
31
|
+
*/
|
|
32
|
+
metadata?: ResponseMetadata;
|
|
33
|
+
/**
|
|
34
|
+
* Open Task Count
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
37
|
+
*/
|
|
38
|
+
open_count?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates if API call was successful
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
43
|
+
*/
|
|
44
|
+
success?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Warning}
|
|
48
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
49
|
+
*/
|
|
50
|
+
warning?: Warning;
|
|
51
|
+
}
|
|
52
|
+
export declare function WorkflowTaskOpenCountResponseFromJSON(json: any): WorkflowTaskOpenCountResponse;
|
|
53
|
+
export declare function WorkflowTaskOpenCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowTaskOpenCountResponse;
|
|
54
|
+
export declare function WorkflowTaskOpenCountResponseToJSON(value?: WorkflowTaskOpenCountResponse | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WorkflowTaskOpenCountResponseToJSON = exports.WorkflowTaskOpenCountResponseFromJSONTyped = exports.WorkflowTaskOpenCountResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ModelError_1 = require("./ModelError");
|
|
19
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
|
+
var Warning_1 = require("./Warning");
|
|
21
|
+
function WorkflowTaskOpenCountResponseFromJSON(json) {
|
|
22
|
+
return WorkflowTaskOpenCountResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
exports.WorkflowTaskOpenCountResponseFromJSON = WorkflowTaskOpenCountResponseFromJSON;
|
|
25
|
+
function WorkflowTaskOpenCountResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
31
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
32
|
+
'open_count': !(0, runtime_1.exists)(json, 'open_count') ? undefined : json['open_count'],
|
|
33
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
34
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.WorkflowTaskOpenCountResponseFromJSONTyped = WorkflowTaskOpenCountResponseFromJSONTyped;
|
|
38
|
+
function WorkflowTaskOpenCountResponseToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
47
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
48
|
+
'open_count': value.open_count,
|
|
49
|
+
'success': value.success,
|
|
50
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.WorkflowTaskOpenCountResponseToJSON = WorkflowTaskOpenCountResponseToJSON;
|
|
@@ -31,6 +31,12 @@ export interface WorkflowUsersResponse {
|
|
|
31
31
|
* @memberof WorkflowUsersResponse
|
|
32
32
|
*/
|
|
33
33
|
metadata?: ResponseMetadata;
|
|
34
|
+
/**
|
|
35
|
+
* User ID of myself
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof WorkflowUsersResponse
|
|
38
|
+
*/
|
|
39
|
+
my_user_id?: number;
|
|
34
40
|
/**
|
|
35
41
|
* Indicates if API call was successful
|
|
36
42
|
* @type {boolean}
|
|
@@ -30,6 +30,7 @@ function WorkflowUsersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
return {
|
|
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
|
+
'my_user_id': !(0, runtime_1.exists)(json, 'my_user_id') ? undefined : json['my_user_id'],
|
|
33
34
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
34
35
|
'users': !(0, runtime_1.exists)(json, 'users') ? undefined : (json['users'].map(WorkflowUser_1.WorkflowUserFromJSON)),
|
|
35
36
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
@@ -46,6 +47,7 @@ function WorkflowUsersResponseToJSON(value) {
|
|
|
46
47
|
return {
|
|
47
48
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
48
49
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
50
|
+
'my_user_id': value.my_user_id,
|
|
49
51
|
'success': value.success,
|
|
50
52
|
'users': value.users === undefined ? undefined : (value.users.map(WorkflowUser_1.WorkflowUserToJSON)),
|
|
51
53
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -830,6 +830,7 @@ export * from './WorkflowGroupsResponse';
|
|
|
830
830
|
export * from './WorkflowNote';
|
|
831
831
|
export * from './WorkflowTask';
|
|
832
832
|
export * from './WorkflowTaskHistory';
|
|
833
|
+
export * from './WorkflowTaskOpenCountResponse';
|
|
833
834
|
export * from './WorkflowTaskResponse';
|
|
834
835
|
export * from './WorkflowTaskTagsResponse';
|
|
835
836
|
export * from './WorkflowTasksRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -848,6 +848,7 @@ __exportStar(require("./WorkflowGroupsResponse"), exports);
|
|
|
848
848
|
__exportStar(require("./WorkflowNote"), exports);
|
|
849
849
|
__exportStar(require("./WorkflowTask"), exports);
|
|
850
850
|
__exportStar(require("./WorkflowTaskHistory"), exports);
|
|
851
|
+
__exportStar(require("./WorkflowTaskOpenCountResponse"), exports);
|
|
851
852
|
__exportStar(require("./WorkflowTaskResponse"), exports);
|
|
852
853
|
__exportStar(require("./WorkflowTaskTagsResponse"), exports);
|
|
853
854
|
__exportStar(require("./WorkflowTasksRequest"), exports);
|
package/package.json
CHANGED
|
@@ -367,6 +367,10 @@ export interface MarkReadConversationRequest {
|
|
|
367
367
|
conversationUuid: string;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
export interface ResetConversationPbxQueueStatisticsRequest {
|
|
371
|
+
queueUuid: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
370
374
|
export interface SearchConversationCannedMessagesRequest {
|
|
371
375
|
searchRequest: ConversationCannedMessagesSearch;
|
|
372
376
|
}
|
|
@@ -1415,6 +1419,22 @@ export interface ConversationApiInterface {
|
|
|
1415
1419
|
*/
|
|
1416
1420
|
markReadConversation(requestParameters: MarkReadConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1417
1421
|
|
|
1422
|
+
/**
|
|
1423
|
+
* reset statistics within the queue
|
|
1424
|
+
* @summary reset statistics within the queue
|
|
1425
|
+
* @param {string} queueUuid
|
|
1426
|
+
* @param {*} [options] Override http request option.
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
* @memberof ConversationApiInterface
|
|
1429
|
+
*/
|
|
1430
|
+
resetConversationPbxQueueStatisticsRaw(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* reset statistics within the queue
|
|
1434
|
+
* reset statistics within the queue
|
|
1435
|
+
*/
|
|
1436
|
+
resetConversationPbxQueueStatistics(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1437
|
+
|
|
1418
1438
|
/**
|
|
1419
1439
|
* Search for canned messages by short_code
|
|
1420
1440
|
* @summary Search for canned messages by short_code
|
|
@@ -4181,6 +4201,46 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
4181
4201
|
await this.markReadConversationRaw(requestParameters, initOverrides);
|
|
4182
4202
|
}
|
|
4183
4203
|
|
|
4204
|
+
/**
|
|
4205
|
+
* reset statistics within the queue
|
|
4206
|
+
* reset statistics within the queue
|
|
4207
|
+
*/
|
|
4208
|
+
async resetConversationPbxQueueStatisticsRaw(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
4209
|
+
if (requestParameters.queueUuid === null || requestParameters.queueUuid === undefined) {
|
|
4210
|
+
throw new runtime.RequiredError('queueUuid','Required parameter requestParameters.queueUuid was null or undefined when calling resetConversationPbxQueueStatistics.');
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
const queryParameters: any = {};
|
|
4214
|
+
|
|
4215
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4216
|
+
|
|
4217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4218
|
+
// oauth required
|
|
4219
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["conversation_write"]);
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4223
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
const response = await this.request({
|
|
4227
|
+
path: `/conversation/pbx/queues/{queue_uuid}/reset_statistics`.replace(`{${"queue_uuid"}}`, encodeURIComponent(String(requestParameters.queueUuid))),
|
|
4228
|
+
method: 'POST',
|
|
4229
|
+
headers: headerParameters,
|
|
4230
|
+
query: queryParameters,
|
|
4231
|
+
}, initOverrides);
|
|
4232
|
+
|
|
4233
|
+
return new runtime.VoidApiResponse(response);
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
/**
|
|
4237
|
+
* reset statistics within the queue
|
|
4238
|
+
* reset statistics within the queue
|
|
4239
|
+
*/
|
|
4240
|
+
async resetConversationPbxQueueStatistics(requestParameters: ResetConversationPbxQueueStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
4241
|
+
await this.resetConversationPbxQueueStatisticsRaw(requestParameters, initOverrides);
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4184
4244
|
/**
|
|
4185
4245
|
* Search for canned messages by short_code
|
|
4186
4246
|
* Search for canned messages by short_code
|
package/src/apis/WorkflowApi.ts
CHANGED
|
@@ -30,6 +30,9 @@ import {
|
|
|
30
30
|
WorkflowTask,
|
|
31
31
|
WorkflowTaskFromJSON,
|
|
32
32
|
WorkflowTaskToJSON,
|
|
33
|
+
WorkflowTaskOpenCountResponse,
|
|
34
|
+
WorkflowTaskOpenCountResponseFromJSON,
|
|
35
|
+
WorkflowTaskOpenCountResponseToJSON,
|
|
33
36
|
WorkflowTaskResponse,
|
|
34
37
|
WorkflowTaskResponseFromJSON,
|
|
35
38
|
WorkflowTaskResponseToJSON,
|
|
@@ -209,6 +212,21 @@ export interface WorkflowApiInterface {
|
|
|
209
212
|
*/
|
|
210
213
|
getWorkflowTaskByObjectType(requestParameters: GetWorkflowTaskByObjectTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTasksResponse>;
|
|
211
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Retrieve workflow task open count
|
|
217
|
+
* @summary Retrieve workflow task open count
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
* @memberof WorkflowApiInterface
|
|
221
|
+
*/
|
|
222
|
+
getWorkflowTaskOpenCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTaskOpenCountResponse>>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Retrieve workflow task open count
|
|
226
|
+
* Retrieve workflow task open count
|
|
227
|
+
*/
|
|
228
|
+
getWorkflowTaskOpenCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTaskOpenCountResponse>;
|
|
229
|
+
|
|
212
230
|
/**
|
|
213
231
|
* Retrieves a unique list of all the existing workflow task tags.
|
|
214
232
|
* @summary Get a list of existing workflow task tags
|
|
@@ -574,6 +592,43 @@ export class WorkflowApi extends runtime.BaseAPI implements WorkflowApiInterface
|
|
|
574
592
|
return await response.value();
|
|
575
593
|
}
|
|
576
594
|
|
|
595
|
+
/**
|
|
596
|
+
* Retrieve workflow task open count
|
|
597
|
+
* Retrieve workflow task open count
|
|
598
|
+
*/
|
|
599
|
+
async getWorkflowTaskOpenCountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowTaskOpenCountResponse>> {
|
|
600
|
+
const queryParameters: any = {};
|
|
601
|
+
|
|
602
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
603
|
+
|
|
604
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
605
|
+
// oauth required
|
|
606
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["workflow_read"]);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
610
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
const response = await this.request({
|
|
614
|
+
path: `/workflow/tasks/open_count`,
|
|
615
|
+
method: 'GET',
|
|
616
|
+
headers: headerParameters,
|
|
617
|
+
query: queryParameters,
|
|
618
|
+
}, initOverrides);
|
|
619
|
+
|
|
620
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowTaskOpenCountResponseFromJSON(jsonValue));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Retrieve workflow task open count
|
|
625
|
+
* Retrieve workflow task open count
|
|
626
|
+
*/
|
|
627
|
+
async getWorkflowTaskOpenCount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowTaskOpenCountResponse> {
|
|
628
|
+
const response = await this.getWorkflowTaskOpenCountRaw(initOverrides);
|
|
629
|
+
return await response.value();
|
|
630
|
+
}
|
|
631
|
+
|
|
577
632
|
/**
|
|
578
633
|
* Retrieves a unique list of all the existing workflow task tags.
|
|
579
634
|
* Get a list of existing workflow task tags
|
|
@@ -110,6 +110,12 @@ export interface WorkflowTask {
|
|
|
110
110
|
* @memberof WorkflowTask
|
|
111
111
|
*/
|
|
112
112
|
due_dts?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof WorkflowTask
|
|
117
|
+
*/
|
|
118
|
+
expiration_dts?: string;
|
|
113
119
|
/**
|
|
114
120
|
* Array of history records for the task
|
|
115
121
|
* @type {Array<WorkflowTaskHistory>}
|
|
@@ -182,6 +188,12 @@ export interface WorkflowTask {
|
|
|
182
188
|
* @memberof WorkflowTask
|
|
183
189
|
*/
|
|
184
190
|
status?: WorkflowTaskStatusEnum;
|
|
191
|
+
/**
|
|
192
|
+
* Constant for the type of system generated task
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof WorkflowTask
|
|
195
|
+
*/
|
|
196
|
+
system_task_type?: WorkflowTaskSystemTaskTypeEnum;
|
|
185
197
|
/**
|
|
186
198
|
* Tags
|
|
187
199
|
* @type {Array<string>}
|
|
@@ -245,10 +257,26 @@ export const WorkflowTaskStatusEnum = {
|
|
|
245
257
|
Open: 'open',
|
|
246
258
|
Closed: 'closed',
|
|
247
259
|
Delayed: 'delayed',
|
|
248
|
-
AwaitingCustomerFeedback: 'awaiting customer feedback'
|
|
260
|
+
AwaitingCustomerFeedback: 'awaiting customer feedback',
|
|
261
|
+
ClosedSystem: 'closed - system',
|
|
262
|
+
ClosedCustomer: 'closed - customer',
|
|
263
|
+
ClosedExpiration: 'closed - expiration'
|
|
249
264
|
} as const;
|
|
250
265
|
export type WorkflowTaskStatusEnum = typeof WorkflowTaskStatusEnum[keyof typeof WorkflowTaskStatusEnum];
|
|
251
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @export
|
|
269
|
+
*/
|
|
270
|
+
export const WorkflowTaskSystemTaskTypeEnum = {
|
|
271
|
+
OrderAccountsReceivable: 'order_accounts_receivable',
|
|
272
|
+
OrderFraudReview: 'order_fraud_review',
|
|
273
|
+
AutoOrderCardUpdateIssue: 'auto_order_card_update_issue',
|
|
274
|
+
AutoOrderCanceledPayment: 'auto_order_canceled_payment',
|
|
275
|
+
ItemLowStock: 'item_low_stock',
|
|
276
|
+
ItemOutOfStock: 'item_out_of_stock'
|
|
277
|
+
} as const;
|
|
278
|
+
export type WorkflowTaskSystemTaskTypeEnum = typeof WorkflowTaskSystemTaskTypeEnum[keyof typeof WorkflowTaskSystemTaskTypeEnum];
|
|
279
|
+
|
|
252
280
|
|
|
253
281
|
export function WorkflowTaskFromJSON(json: any): WorkflowTask {
|
|
254
282
|
return WorkflowTaskFromJSONTyped(json, false);
|
|
@@ -270,6 +298,7 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
270
298
|
'delay_until_dts': !exists(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
|
|
271
299
|
'dependant_workflow_task_uuid': !exists(json, 'dependant_workflow_task_uuid') ? undefined : json['dependant_workflow_task_uuid'],
|
|
272
300
|
'due_dts': !exists(json, 'due_dts') ? undefined : json['due_dts'],
|
|
301
|
+
'expiration_dts': !exists(json, 'expiration_dts') ? undefined : json['expiration_dts'],
|
|
273
302
|
'histories': !exists(json, 'histories') ? undefined : ((json['histories'] as Array<any>).map(WorkflowTaskHistoryFromJSON)),
|
|
274
303
|
'last_update_dts': !exists(json, 'last_update_dts') ? undefined : json['last_update_dts'],
|
|
275
304
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
@@ -282,6 +311,7 @@ export function WorkflowTaskFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
282
311
|
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(PropertyFromJSON)),
|
|
283
312
|
'related_workflow_task_uuid': !exists(json, 'related_workflow_task_uuid') ? undefined : json['related_workflow_task_uuid'],
|
|
284
313
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
314
|
+
'system_task_type': !exists(json, 'system_task_type') ? undefined : json['system_task_type'],
|
|
285
315
|
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
286
316
|
'task_context': !exists(json, 'task_context') ? undefined : json['task_context'],
|
|
287
317
|
'task_details': !exists(json, 'task_details') ? undefined : json['task_details'],
|
|
@@ -309,6 +339,7 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
|
|
|
309
339
|
'delay_until_dts': value.delay_until_dts,
|
|
310
340
|
'dependant_workflow_task_uuid': value.dependant_workflow_task_uuid,
|
|
311
341
|
'due_dts': value.due_dts,
|
|
342
|
+
'expiration_dts': value.expiration_dts,
|
|
312
343
|
'histories': value.histories === undefined ? undefined : ((value.histories as Array<any>).map(WorkflowTaskHistoryToJSON)),
|
|
313
344
|
'last_update_dts': value.last_update_dts,
|
|
314
345
|
'merchant_id': value.merchant_id,
|
|
@@ -321,6 +352,7 @@ export function WorkflowTaskToJSON(value?: WorkflowTask | null): any {
|
|
|
321
352
|
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(PropertyToJSON)),
|
|
322
353
|
'related_workflow_task_uuid': value.related_workflow_task_uuid,
|
|
323
354
|
'status': value.status,
|
|
355
|
+
'system_task_type': value.system_task_type,
|
|
324
356
|
'tags': value.tags,
|
|
325
357
|
'task_context': value.task_context,
|
|
326
358
|
'task_details': value.task_details,
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ModelError,
|
|
18
|
+
ModelErrorFromJSON,
|
|
19
|
+
ModelErrorFromJSONTyped,
|
|
20
|
+
ModelErrorToJSON,
|
|
21
|
+
} from './ModelError';
|
|
22
|
+
import {
|
|
23
|
+
ResponseMetadata,
|
|
24
|
+
ResponseMetadataFromJSON,
|
|
25
|
+
ResponseMetadataFromJSONTyped,
|
|
26
|
+
ResponseMetadataToJSON,
|
|
27
|
+
} from './ResponseMetadata';
|
|
28
|
+
import {
|
|
29
|
+
Warning,
|
|
30
|
+
WarningFromJSON,
|
|
31
|
+
WarningFromJSONTyped,
|
|
32
|
+
WarningToJSON,
|
|
33
|
+
} from './Warning';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface WorkflowTaskOpenCountResponse
|
|
39
|
+
*/
|
|
40
|
+
export interface WorkflowTaskOpenCountResponse {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ModelError}
|
|
44
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
45
|
+
*/
|
|
46
|
+
error?: ModelError;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ResponseMetadata}
|
|
50
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
51
|
+
*/
|
|
52
|
+
metadata?: ResponseMetadata;
|
|
53
|
+
/**
|
|
54
|
+
* Open Task Count
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
57
|
+
*/
|
|
58
|
+
open_count?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Indicates if API call was successful
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
63
|
+
*/
|
|
64
|
+
success?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Warning}
|
|
68
|
+
* @memberof WorkflowTaskOpenCountResponse
|
|
69
|
+
*/
|
|
70
|
+
warning?: Warning;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function WorkflowTaskOpenCountResponseFromJSON(json: any): WorkflowTaskOpenCountResponse {
|
|
74
|
+
return WorkflowTaskOpenCountResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function WorkflowTaskOpenCountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowTaskOpenCountResponse {
|
|
78
|
+
if ((json === undefined) || (json === null)) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
84
|
+
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
85
|
+
'open_count': !exists(json, 'open_count') ? undefined : json['open_count'],
|
|
86
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
87
|
+
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function WorkflowTaskOpenCountResponseToJSON(value?: WorkflowTaskOpenCountResponse | null): any {
|
|
92
|
+
if (value === undefined) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
if (value === null) {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'error': ModelErrorToJSON(value.error),
|
|
101
|
+
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
102
|
+
'open_count': value.open_count,
|
|
103
|
+
'success': value.success,
|
|
104
|
+
'warning': WarningToJSON(value.warning),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -56,6 +56,12 @@ export interface WorkflowUsersResponse {
|
|
|
56
56
|
* @memberof WorkflowUsersResponse
|
|
57
57
|
*/
|
|
58
58
|
metadata?: ResponseMetadata;
|
|
59
|
+
/**
|
|
60
|
+
* User ID of myself
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof WorkflowUsersResponse
|
|
63
|
+
*/
|
|
64
|
+
my_user_id?: number;
|
|
59
65
|
/**
|
|
60
66
|
* Indicates if API call was successful
|
|
61
67
|
* @type {boolean}
|
|
@@ -88,6 +94,7 @@ export function WorkflowUsersResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
88
94
|
|
|
89
95
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
90
96
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
97
|
+
'my_user_id': !exists(json, 'my_user_id') ? undefined : json['my_user_id'],
|
|
91
98
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
92
99
|
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(WorkflowUserFromJSON)),
|
|
93
100
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
@@ -105,6 +112,7 @@ export function WorkflowUsersResponseToJSON(value?: WorkflowUsersResponse | null
|
|
|
105
112
|
|
|
106
113
|
'error': ModelErrorToJSON(value.error),
|
|
107
114
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
115
|
+
'my_user_id': value.my_user_id,
|
|
108
116
|
'success': value.success,
|
|
109
117
|
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(WorkflowUserToJSON)),
|
|
110
118
|
'warning': WarningToJSON(value.warning),
|
package/src/models/index.ts
CHANGED
|
@@ -832,6 +832,7 @@ export * from './WorkflowGroupsResponse';
|
|
|
832
832
|
export * from './WorkflowNote';
|
|
833
833
|
export * from './WorkflowTask';
|
|
834
834
|
export * from './WorkflowTaskHistory';
|
|
835
|
+
export * from './WorkflowTaskOpenCountResponse';
|
|
835
836
|
export * from './WorkflowTaskResponse';
|
|
836
837
|
export * from './WorkflowTaskTagsResponse';
|
|
837
838
|
export * from './WorkflowTasksRequest';
|