ultracart_rest_api_v2_typescript 4.0.39-RC → 4.0.40-RC
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 +2 -0
- package/README.md +3 -2
- package/dist/models/AutoOrder.d.ts +7 -0
- package/dist/models/AutoOrder.js +3 -0
- package/dist/models/AutoOrderItem.d.ts +0 -12
- package/dist/models/AutoOrderItem.js +0 -4
- package/dist/models/AutoOrderManagement.d.ts +27 -0
- package/dist/models/AutoOrderManagement.js +42 -0
- package/dist/models/ConversationStartRequest.d.ts +6 -0
- package/dist/models/ConversationStartRequest.js +2 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +98 -0
- package/dist/models/ConversationWebsocketMessage.js +79 -0
- package/dist/models/EmailCommseqPostcard.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/AutoOrder.ts +14 -0
- package/src/models/AutoOrderItem.ts +0 -16
- package/src/models/AutoOrderManagement.ts +56 -0
- package/src/models/ConversationStartRequest.ts +8 -0
- package/src/models/ConversationWebsocketMessage.ts +158 -0
- package/src/models/EmailCommseqPostcard.ts +1 -1
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ src/models/AutoOrderItemFutureSchedule.ts
|
|
|
50
50
|
src/models/AutoOrderItemOption.ts
|
|
51
51
|
src/models/AutoOrderItemSimpleSchedule.ts
|
|
52
52
|
src/models/AutoOrderLog.ts
|
|
53
|
+
src/models/AutoOrderManagement.ts
|
|
53
54
|
src/models/AutoOrderQuery.ts
|
|
54
55
|
src/models/AutoOrderQueryBatch.ts
|
|
55
56
|
src/models/AutoOrderResponse.ts
|
|
@@ -151,6 +152,7 @@ src/models/ConversationResponse.ts
|
|
|
151
152
|
src/models/ConversationStartRequest.ts
|
|
152
153
|
src/models/ConversationStartResponse.ts
|
|
153
154
|
src/models/ConversationSummary.ts
|
|
155
|
+
src/models/ConversationWebsocketMessage.ts
|
|
154
156
|
src/models/ConversationsResponse.ts
|
|
155
157
|
src/models/CountriesResponse.ts
|
|
156
158
|
src/models/Country.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.40-RC
|
|
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.40-RC --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.40-RC | 07/25/2022 | conversations - add a websocket message model |
|
|
57
58
|
| 4.0.39-RC | 07/21/2022 | conversation response types improvements |
|
|
58
59
|
| 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
|
|
59
60
|
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { AutoOrderItem } from './AutoOrderItem';
|
|
13
13
|
import { AutoOrderLog } from './AutoOrderLog';
|
|
14
|
+
import { AutoOrderManagement } from './AutoOrderManagement';
|
|
14
15
|
import { Order } from './Order';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -108,6 +109,12 @@ export interface AutoOrder {
|
|
|
108
109
|
* @memberof AutoOrder
|
|
109
110
|
*/
|
|
110
111
|
logs?: Array<AutoOrderLog>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {AutoOrderManagement}
|
|
115
|
+
* @memberof AutoOrder
|
|
116
|
+
*/
|
|
117
|
+
management?: AutoOrderManagement;
|
|
111
118
|
/**
|
|
112
119
|
* The next time that the auto order will be attempted for processing
|
|
113
120
|
* @type {string}
|
package/dist/models/AutoOrder.js
CHANGED
|
@@ -17,6 +17,7 @@ exports.AutoOrderToJSON = exports.AutoOrderFromJSONTyped = exports.AutoOrderFrom
|
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var AutoOrderItem_1 = require("./AutoOrderItem");
|
|
19
19
|
var AutoOrderLog_1 = require("./AutoOrderLog");
|
|
20
|
+
var AutoOrderManagement_1 = require("./AutoOrderManagement");
|
|
20
21
|
var Order_1 = require("./Order");
|
|
21
22
|
/**
|
|
22
23
|
* @export
|
|
@@ -50,6 +51,7 @@ function AutoOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'failure_reason': !(0, runtime_1.exists)(json, 'failure_reason') ? undefined : json['failure_reason'],
|
|
51
52
|
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : (json['items'].map(AutoOrderItem_1.AutoOrderItemFromJSON)),
|
|
52
53
|
'logs': !(0, runtime_1.exists)(json, 'logs') ? undefined : (json['logs'].map(AutoOrderLog_1.AutoOrderLogFromJSON)),
|
|
54
|
+
'management': !(0, runtime_1.exists)(json, 'management') ? undefined : (0, AutoOrderManagement_1.AutoOrderManagementFromJSON)(json['management']),
|
|
53
55
|
'next_attempt': !(0, runtime_1.exists)(json, 'next_attempt') ? undefined : json['next_attempt'],
|
|
54
56
|
'original_order': !(0, runtime_1.exists)(json, 'original_order') ? undefined : (0, Order_1.OrderFromJSON)(json['original_order']),
|
|
55
57
|
'original_order_id': !(0, runtime_1.exists)(json, 'original_order_id') ? undefined : json['original_order_id'],
|
|
@@ -83,6 +85,7 @@ function AutoOrderToJSON(value) {
|
|
|
83
85
|
'failure_reason': value.failure_reason,
|
|
84
86
|
'items': value.items === undefined ? undefined : (value.items.map(AutoOrderItem_1.AutoOrderItemToJSON)),
|
|
85
87
|
'logs': value.logs === undefined ? undefined : (value.logs.map(AutoOrderLog_1.AutoOrderLogToJSON)),
|
|
88
|
+
'management': (0, AutoOrderManagement_1.AutoOrderManagementToJSON)(value.management),
|
|
86
89
|
'next_attempt': value.next_attempt,
|
|
87
90
|
'original_order': (0, Order_1.OrderToJSON)(value.original_order),
|
|
88
91
|
'original_order_id': value.original_order_id,
|
|
@@ -60,12 +60,6 @@ export interface AutoOrderItem {
|
|
|
60
60
|
* @memberof AutoOrderItem
|
|
61
61
|
*/
|
|
62
62
|
auto_order_item_oid?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof AutoOrderItem
|
|
67
|
-
*/
|
|
68
|
-
first_order_dts?: string;
|
|
69
63
|
/**
|
|
70
64
|
* Frequency of the rebill if not a fixed schedule
|
|
71
65
|
* @type {string}
|
|
@@ -132,12 +126,6 @@ export interface AutoOrderItem {
|
|
|
132
126
|
* @memberof AutoOrderItem
|
|
133
127
|
*/
|
|
134
128
|
original_quantity?: number;
|
|
135
|
-
/**
|
|
136
|
-
* True if paused. This field is an object instead of a primitive for backwards compatibility.
|
|
137
|
-
* @type {boolean}
|
|
138
|
-
* @memberof AutoOrderItem
|
|
139
|
-
*/
|
|
140
|
-
paused?: boolean;
|
|
141
129
|
/**
|
|
142
130
|
* The PayPal Payer ID tied to this item
|
|
143
131
|
* @type {string}
|
|
@@ -52,7 +52,6 @@ function AutoOrderItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'arbitrary_unit_cost': !(0, runtime_1.exists)(json, 'arbitrary_unit_cost') ? undefined : json['arbitrary_unit_cost'],
|
|
53
53
|
'arbitrary_unit_cost_remaining_orders': !(0, runtime_1.exists)(json, 'arbitrary_unit_cost_remaining_orders') ? undefined : json['arbitrary_unit_cost_remaining_orders'],
|
|
54
54
|
'auto_order_item_oid': !(0, runtime_1.exists)(json, 'auto_order_item_oid') ? undefined : json['auto_order_item_oid'],
|
|
55
|
-
'first_order_dts': !(0, runtime_1.exists)(json, 'first_order_dts') ? undefined : json['first_order_dts'],
|
|
56
55
|
'frequency': !(0, runtime_1.exists)(json, 'frequency') ? undefined : json['frequency'],
|
|
57
56
|
'future_schedules': !(0, runtime_1.exists)(json, 'future_schedules') ? undefined : (json['future_schedules'].map(AutoOrderItemFutureSchedule_1.AutoOrderItemFutureScheduleFromJSON)),
|
|
58
57
|
'last_order_dts': !(0, runtime_1.exists)(json, 'last_order_dts') ? undefined : json['last_order_dts'],
|
|
@@ -64,7 +63,6 @@ function AutoOrderItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
63
|
'options': !(0, runtime_1.exists)(json, 'options') ? undefined : (json['options'].map(AutoOrderItemOption_1.AutoOrderItemOptionFromJSON)),
|
|
65
64
|
'original_item_id': !(0, runtime_1.exists)(json, 'original_item_id') ? undefined : json['original_item_id'],
|
|
66
65
|
'original_quantity': !(0, runtime_1.exists)(json, 'original_quantity') ? undefined : json['original_quantity'],
|
|
67
|
-
'paused': !(0, runtime_1.exists)(json, 'paused') ? undefined : json['paused'],
|
|
68
66
|
'paypal_payer_id': !(0, runtime_1.exists)(json, 'paypal_payer_id') ? undefined : json['paypal_payer_id'],
|
|
69
67
|
'paypal_recurring_payment_profile_id': !(0, runtime_1.exists)(json, 'paypal_recurring_payment_profile_id') ? undefined : json['paypal_recurring_payment_profile_id'],
|
|
70
68
|
'preshipment_notice_sent': !(0, runtime_1.exists)(json, 'preshipment_notice_sent') ? undefined : json['preshipment_notice_sent'],
|
|
@@ -89,7 +87,6 @@ function AutoOrderItemToJSON(value) {
|
|
|
89
87
|
'arbitrary_unit_cost': value.arbitrary_unit_cost,
|
|
90
88
|
'arbitrary_unit_cost_remaining_orders': value.arbitrary_unit_cost_remaining_orders,
|
|
91
89
|
'auto_order_item_oid': value.auto_order_item_oid,
|
|
92
|
-
'first_order_dts': value.first_order_dts,
|
|
93
90
|
'frequency': value.frequency,
|
|
94
91
|
'future_schedules': value.future_schedules === undefined ? undefined : (value.future_schedules.map(AutoOrderItemFutureSchedule_1.AutoOrderItemFutureScheduleToJSON)),
|
|
95
92
|
'last_order_dts': value.last_order_dts,
|
|
@@ -101,7 +98,6 @@ function AutoOrderItemToJSON(value) {
|
|
|
101
98
|
'options': value.options === undefined ? undefined : (value.options.map(AutoOrderItemOption_1.AutoOrderItemOptionToJSON)),
|
|
102
99
|
'original_item_id': value.original_item_id,
|
|
103
100
|
'original_quantity': value.original_quantity,
|
|
104
|
-
'paused': value.paused,
|
|
105
101
|
'paypal_payer_id': value.paypal_payer_id,
|
|
106
102
|
'paypal_recurring_payment_profile_id': value.paypal_recurring_payment_profile_id,
|
|
107
103
|
'preshipment_notice_sent': value.preshipment_notice_sent,
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AutoOrderManagement
|
|
16
|
+
*/
|
|
17
|
+
export interface AutoOrderManagement {
|
|
18
|
+
/**
|
|
19
|
+
* URL where the customer can go to update their billing information.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AutoOrderManagement
|
|
22
|
+
*/
|
|
23
|
+
update_billing_url?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function AutoOrderManagementFromJSON(json: any): AutoOrderManagement;
|
|
26
|
+
export declare function AutoOrderManagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoOrderManagement;
|
|
27
|
+
export declare function AutoOrderManagementToJSON(value?: AutoOrderManagement | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
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.AutoOrderManagementToJSON = exports.AutoOrderManagementFromJSONTyped = exports.AutoOrderManagementFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function AutoOrderManagementFromJSON(json) {
|
|
19
|
+
return AutoOrderManagementFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.AutoOrderManagementFromJSON = AutoOrderManagementFromJSON;
|
|
22
|
+
function AutoOrderManagementFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'update_billing_url': !(0, runtime_1.exists)(json, 'update_billing_url') ? undefined : json['update_billing_url'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.AutoOrderManagementFromJSONTyped = AutoOrderManagementFromJSONTyped;
|
|
31
|
+
function AutoOrderManagementToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'update_billing_url': value.update_billing_url,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.AutoOrderManagementToJSON = AutoOrderManagementToJSON;
|
|
@@ -27,6 +27,12 @@ export interface ConversationStartRequest {
|
|
|
27
27
|
* @memberof ConversationStartRequest
|
|
28
28
|
*/
|
|
29
29
|
conversation_arn?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationStartRequest
|
|
34
|
+
*/
|
|
35
|
+
conversation_webchat_queue_uuid?: string;
|
|
30
36
|
}
|
|
31
37
|
export declare function ConversationStartRequestFromJSON(json: any): ConversationStartRequest;
|
|
32
38
|
export declare function ConversationStartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationStartRequest;
|
|
@@ -26,6 +26,7 @@ function ConversationStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return {
|
|
27
27
|
'add_conversation_participant_arns': !(0, runtime_1.exists)(json, 'add_conversation_participant_arns') ? undefined : json['add_conversation_participant_arns'],
|
|
28
28
|
'conversation_arn': !(0, runtime_1.exists)(json, 'conversation_arn') ? undefined : json['conversation_arn'],
|
|
29
|
+
'conversation_webchat_queue_uuid': !(0, runtime_1.exists)(json, 'conversation_webchat_queue_uuid') ? undefined : json['conversation_webchat_queue_uuid'],
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
exports.ConversationStartRequestFromJSONTyped = ConversationStartRequestFromJSONTyped;
|
|
@@ -39,6 +40,7 @@ function ConversationStartRequestToJSON(value) {
|
|
|
39
40
|
return {
|
|
40
41
|
'add_conversation_participant_arns': value.add_conversation_participant_arns,
|
|
41
42
|
'conversation_arn': value.conversation_arn,
|
|
43
|
+
'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
exports.ConversationStartRequestToJSON = ConversationStartRequestToJSON;
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { Conversation } from './Conversation';
|
|
13
|
+
import { ConversationMessage } from './ConversationMessage';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ConversationWebsocketMessage
|
|
18
|
+
*/
|
|
19
|
+
export interface ConversationWebsocketMessage {
|
|
20
|
+
/**
|
|
21
|
+
* Conversation UUID if the websocket message is tied to a specific conversation
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ConversationWebsocketMessage
|
|
24
|
+
*/
|
|
25
|
+
conversation_uuid?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Conversation}
|
|
29
|
+
* @memberof ConversationWebsocketMessage
|
|
30
|
+
*/
|
|
31
|
+
event_conversation_closed?: Conversation;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Conversation}
|
|
35
|
+
* @memberof ConversationWebsocketMessage
|
|
36
|
+
*/
|
|
37
|
+
event_new_conversation?: Conversation;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ConversationMessage}
|
|
41
|
+
* @memberof ConversationWebsocketMessage
|
|
42
|
+
*/
|
|
43
|
+
event_new_message?: ConversationMessage;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof ConversationWebsocketMessage
|
|
48
|
+
*/
|
|
49
|
+
event_queue_position?: object;
|
|
50
|
+
/**
|
|
51
|
+
* Type of event
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ConversationWebsocketMessage
|
|
54
|
+
*/
|
|
55
|
+
event_type?: ConversationWebsocketMessageEventTypeEnum;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ConversationMessage}
|
|
59
|
+
* @memberof ConversationWebsocketMessage
|
|
60
|
+
*/
|
|
61
|
+
event_updated_message?: ConversationMessage;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ConversationMessage}
|
|
65
|
+
* @memberof ConversationWebsocketMessage
|
|
66
|
+
*/
|
|
67
|
+
message?: ConversationMessage;
|
|
68
|
+
/**
|
|
69
|
+
* Type of message
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ConversationWebsocketMessage
|
|
72
|
+
*/
|
|
73
|
+
type?: ConversationWebsocketMessageTypeEnum;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const ConversationWebsocketMessageEventTypeEnum: {
|
|
79
|
+
readonly QueuePosition: "queue position";
|
|
80
|
+
readonly WebchatStartConversation: "webchat start conversation";
|
|
81
|
+
readonly ConversationClosed: "conversation closed";
|
|
82
|
+
readonly NewConversation: "new conversation";
|
|
83
|
+
readonly NewMessage: "new message";
|
|
84
|
+
readonly UpdatedMessage: "updated message";
|
|
85
|
+
};
|
|
86
|
+
export declare type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export declare const ConversationWebsocketMessageTypeEnum: {
|
|
91
|
+
readonly Message: "message";
|
|
92
|
+
readonly Event: "event";
|
|
93
|
+
readonly Ping: "ping";
|
|
94
|
+
};
|
|
95
|
+
export declare type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
|
|
96
|
+
export declare function ConversationWebsocketMessageFromJSON(json: any): ConversationWebsocketMessage;
|
|
97
|
+
export declare function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebsocketMessage;
|
|
98
|
+
export declare function ConversationWebsocketMessageToJSON(value?: ConversationWebsocketMessage | null): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.ConversationWebsocketMessageToJSON = exports.ConversationWebsocketMessageFromJSONTyped = exports.ConversationWebsocketMessageFromJSON = exports.ConversationWebsocketMessageTypeEnum = exports.ConversationWebsocketMessageEventTypeEnum = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var Conversation_1 = require("./Conversation");
|
|
19
|
+
var ConversationMessage_1 = require("./ConversationMessage");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
exports.ConversationWebsocketMessageEventTypeEnum = {
|
|
24
|
+
QueuePosition: 'queue position',
|
|
25
|
+
WebchatStartConversation: 'webchat start conversation',
|
|
26
|
+
ConversationClosed: 'conversation closed',
|
|
27
|
+
NewConversation: 'new conversation',
|
|
28
|
+
NewMessage: 'new message',
|
|
29
|
+
UpdatedMessage: 'updated message'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.ConversationWebsocketMessageTypeEnum = {
|
|
35
|
+
Message: 'message',
|
|
36
|
+
Event: 'event',
|
|
37
|
+
Ping: 'ping'
|
|
38
|
+
};
|
|
39
|
+
function ConversationWebsocketMessageFromJSON(json) {
|
|
40
|
+
return ConversationWebsocketMessageFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
exports.ConversationWebsocketMessageFromJSON = ConversationWebsocketMessageFromJSON;
|
|
43
|
+
function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
49
|
+
'event_conversation_closed': !(0, runtime_1.exists)(json, 'event_conversation_closed') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['event_conversation_closed']),
|
|
50
|
+
'event_new_conversation': !(0, runtime_1.exists)(json, 'event_new_conversation') ? undefined : (0, Conversation_1.ConversationFromJSON)(json['event_new_conversation']),
|
|
51
|
+
'event_new_message': !(0, runtime_1.exists)(json, 'event_new_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_new_message']),
|
|
52
|
+
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : json['event_queue_position'],
|
|
53
|
+
'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
|
|
54
|
+
'event_updated_message': !(0, runtime_1.exists)(json, 'event_updated_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_updated_message']),
|
|
55
|
+
'message': !(0, runtime_1.exists)(json, 'message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['message']),
|
|
56
|
+
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.ConversationWebsocketMessageFromJSONTyped = ConversationWebsocketMessageFromJSONTyped;
|
|
60
|
+
function ConversationWebsocketMessageToJSON(value) {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'conversation_uuid': value.conversation_uuid,
|
|
69
|
+
'event_conversation_closed': (0, Conversation_1.ConversationToJSON)(value.event_conversation_closed),
|
|
70
|
+
'event_new_conversation': (0, Conversation_1.ConversationToJSON)(value.event_new_conversation),
|
|
71
|
+
'event_new_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_new_message),
|
|
72
|
+
'event_queue_position': value.event_queue_position,
|
|
73
|
+
'event_type': value.event_type,
|
|
74
|
+
'event_updated_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_updated_message),
|
|
75
|
+
'message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.message),
|
|
76
|
+
'type': value.type,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
exports.ConversationWebsocketMessageToJSON = ConversationWebsocketMessageToJSON;
|
|
@@ -76,7 +76,7 @@ export interface EmailCommseqPostcard {
|
|
|
76
76
|
*/
|
|
77
77
|
postcard_front_container_uuid?: string;
|
|
78
78
|
/**
|
|
79
|
-
* URL to screenshot of the
|
|
79
|
+
* URL to screenshot of the back of the postcard
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof EmailCommseqPostcard
|
|
82
82
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './AutoOrderItemFutureSchedule';
|
|
|
25
25
|
export * from './AutoOrderItemOption';
|
|
26
26
|
export * from './AutoOrderItemSimpleSchedule';
|
|
27
27
|
export * from './AutoOrderLog';
|
|
28
|
+
export * from './AutoOrderManagement';
|
|
28
29
|
export * from './AutoOrderQuery';
|
|
29
30
|
export * from './AutoOrderQueryBatch';
|
|
30
31
|
export * from './AutoOrderResponse';
|
|
@@ -126,6 +127,7 @@ export * from './ConversationResponse';
|
|
|
126
127
|
export * from './ConversationStartRequest';
|
|
127
128
|
export * from './ConversationStartResponse';
|
|
128
129
|
export * from './ConversationSummary';
|
|
130
|
+
export * from './ConversationWebsocketMessage';
|
|
129
131
|
export * from './ConversationsResponse';
|
|
130
132
|
export * from './CountriesResponse';
|
|
131
133
|
export * from './Country';
|
package/dist/models/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __exportStar(require("./AutoOrderItemFutureSchedule"), exports);
|
|
|
43
43
|
__exportStar(require("./AutoOrderItemOption"), exports);
|
|
44
44
|
__exportStar(require("./AutoOrderItemSimpleSchedule"), exports);
|
|
45
45
|
__exportStar(require("./AutoOrderLog"), exports);
|
|
46
|
+
__exportStar(require("./AutoOrderManagement"), exports);
|
|
46
47
|
__exportStar(require("./AutoOrderQuery"), exports);
|
|
47
48
|
__exportStar(require("./AutoOrderQueryBatch"), exports);
|
|
48
49
|
__exportStar(require("./AutoOrderResponse"), exports);
|
|
@@ -144,6 +145,7 @@ __exportStar(require("./ConversationResponse"), exports);
|
|
|
144
145
|
__exportStar(require("./ConversationStartRequest"), exports);
|
|
145
146
|
__exportStar(require("./ConversationStartResponse"), exports);
|
|
146
147
|
__exportStar(require("./ConversationSummary"), exports);
|
|
148
|
+
__exportStar(require("./ConversationWebsocketMessage"), exports);
|
|
147
149
|
__exportStar(require("./ConversationsResponse"), exports);
|
|
148
150
|
__exportStar(require("./CountriesResponse"), exports);
|
|
149
151
|
__exportStar(require("./Country"), exports);
|
package/package.json
CHANGED
package/src/models/AutoOrder.ts
CHANGED
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
AutoOrderLogFromJSONTyped,
|
|
26
26
|
AutoOrderLogToJSON,
|
|
27
27
|
} from './AutoOrderLog';
|
|
28
|
+
import {
|
|
29
|
+
AutoOrderManagement,
|
|
30
|
+
AutoOrderManagementFromJSON,
|
|
31
|
+
AutoOrderManagementFromJSONTyped,
|
|
32
|
+
AutoOrderManagementToJSON,
|
|
33
|
+
} from './AutoOrderManagement';
|
|
28
34
|
import {
|
|
29
35
|
Order,
|
|
30
36
|
OrderFromJSON,
|
|
@@ -128,6 +134,12 @@ export interface AutoOrder {
|
|
|
128
134
|
* @memberof AutoOrder
|
|
129
135
|
*/
|
|
130
136
|
logs?: Array<AutoOrderLog>;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {AutoOrderManagement}
|
|
140
|
+
* @memberof AutoOrder
|
|
141
|
+
*/
|
|
142
|
+
management?: AutoOrderManagement;
|
|
131
143
|
/**
|
|
132
144
|
* The next time that the auto order will be attempted for processing
|
|
133
145
|
* @type {string}
|
|
@@ -209,6 +221,7 @@ export function AutoOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
209
221
|
'failure_reason': !exists(json, 'failure_reason') ? undefined : json['failure_reason'],
|
|
210
222
|
'items': !exists(json, 'items') ? undefined : ((json['items'] as Array<any>).map(AutoOrderItemFromJSON)),
|
|
211
223
|
'logs': !exists(json, 'logs') ? undefined : ((json['logs'] as Array<any>).map(AutoOrderLogFromJSON)),
|
|
224
|
+
'management': !exists(json, 'management') ? undefined : AutoOrderManagementFromJSON(json['management']),
|
|
212
225
|
'next_attempt': !exists(json, 'next_attempt') ? undefined : json['next_attempt'],
|
|
213
226
|
'original_order': !exists(json, 'original_order') ? undefined : OrderFromJSON(json['original_order']),
|
|
214
227
|
'original_order_id': !exists(json, 'original_order_id') ? undefined : json['original_order_id'],
|
|
@@ -243,6 +256,7 @@ export function AutoOrderToJSON(value?: AutoOrder | null): any {
|
|
|
243
256
|
'failure_reason': value.failure_reason,
|
|
244
257
|
'items': value.items === undefined ? undefined : ((value.items as Array<any>).map(AutoOrderItemToJSON)),
|
|
245
258
|
'logs': value.logs === undefined ? undefined : ((value.logs as Array<any>).map(AutoOrderLogToJSON)),
|
|
259
|
+
'management': AutoOrderManagementToJSON(value.management),
|
|
246
260
|
'next_attempt': value.next_attempt,
|
|
247
261
|
'original_order': OrderToJSON(value.original_order),
|
|
248
262
|
'original_order_id': value.original_order_id,
|
|
@@ -80,12 +80,6 @@ export interface AutoOrderItem {
|
|
|
80
80
|
* @memberof AutoOrderItem
|
|
81
81
|
*/
|
|
82
82
|
auto_order_item_oid?: number;
|
|
83
|
-
/**
|
|
84
|
-
* Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof AutoOrderItem
|
|
87
|
-
*/
|
|
88
|
-
first_order_dts?: string;
|
|
89
83
|
/**
|
|
90
84
|
* Frequency of the rebill if not a fixed schedule
|
|
91
85
|
* @type {string}
|
|
@@ -152,12 +146,6 @@ export interface AutoOrderItem {
|
|
|
152
146
|
* @memberof AutoOrderItem
|
|
153
147
|
*/
|
|
154
148
|
original_quantity?: number;
|
|
155
|
-
/**
|
|
156
|
-
* True if paused. This field is an object instead of a primitive for backwards compatibility.
|
|
157
|
-
* @type {boolean}
|
|
158
|
-
* @memberof AutoOrderItem
|
|
159
|
-
*/
|
|
160
|
-
paused?: boolean;
|
|
161
149
|
/**
|
|
162
150
|
* The PayPal Payer ID tied to this item
|
|
163
151
|
* @type {string}
|
|
@@ -235,7 +223,6 @@ export function AutoOrderItemFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
235
223
|
'arbitrary_unit_cost': !exists(json, 'arbitrary_unit_cost') ? undefined : json['arbitrary_unit_cost'],
|
|
236
224
|
'arbitrary_unit_cost_remaining_orders': !exists(json, 'arbitrary_unit_cost_remaining_orders') ? undefined : json['arbitrary_unit_cost_remaining_orders'],
|
|
237
225
|
'auto_order_item_oid': !exists(json, 'auto_order_item_oid') ? undefined : json['auto_order_item_oid'],
|
|
238
|
-
'first_order_dts': !exists(json, 'first_order_dts') ? undefined : json['first_order_dts'],
|
|
239
226
|
'frequency': !exists(json, 'frequency') ? undefined : json['frequency'],
|
|
240
227
|
'future_schedules': !exists(json, 'future_schedules') ? undefined : ((json['future_schedules'] as Array<any>).map(AutoOrderItemFutureScheduleFromJSON)),
|
|
241
228
|
'last_order_dts': !exists(json, 'last_order_dts') ? undefined : json['last_order_dts'],
|
|
@@ -247,7 +234,6 @@ export function AutoOrderItemFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
247
234
|
'options': !exists(json, 'options') ? undefined : ((json['options'] as Array<any>).map(AutoOrderItemOptionFromJSON)),
|
|
248
235
|
'original_item_id': !exists(json, 'original_item_id') ? undefined : json['original_item_id'],
|
|
249
236
|
'original_quantity': !exists(json, 'original_quantity') ? undefined : json['original_quantity'],
|
|
250
|
-
'paused': !exists(json, 'paused') ? undefined : json['paused'],
|
|
251
237
|
'paypal_payer_id': !exists(json, 'paypal_payer_id') ? undefined : json['paypal_payer_id'],
|
|
252
238
|
'paypal_recurring_payment_profile_id': !exists(json, 'paypal_recurring_payment_profile_id') ? undefined : json['paypal_recurring_payment_profile_id'],
|
|
253
239
|
'preshipment_notice_sent': !exists(json, 'preshipment_notice_sent') ? undefined : json['preshipment_notice_sent'],
|
|
@@ -273,7 +259,6 @@ export function AutoOrderItemToJSON(value?: AutoOrderItem | null): any {
|
|
|
273
259
|
'arbitrary_unit_cost': value.arbitrary_unit_cost,
|
|
274
260
|
'arbitrary_unit_cost_remaining_orders': value.arbitrary_unit_cost_remaining_orders,
|
|
275
261
|
'auto_order_item_oid': value.auto_order_item_oid,
|
|
276
|
-
'first_order_dts': value.first_order_dts,
|
|
277
262
|
'frequency': value.frequency,
|
|
278
263
|
'future_schedules': value.future_schedules === undefined ? undefined : ((value.future_schedules as Array<any>).map(AutoOrderItemFutureScheduleToJSON)),
|
|
279
264
|
'last_order_dts': value.last_order_dts,
|
|
@@ -285,7 +270,6 @@ export function AutoOrderItemToJSON(value?: AutoOrderItem | null): any {
|
|
|
285
270
|
'options': value.options === undefined ? undefined : ((value.options as Array<any>).map(AutoOrderItemOptionToJSON)),
|
|
286
271
|
'original_item_id': value.original_item_id,
|
|
287
272
|
'original_quantity': value.original_quantity,
|
|
288
|
-
'paused': value.paused,
|
|
289
273
|
'paypal_payer_id': value.paypal_payer_id,
|
|
290
274
|
'paypal_recurring_payment_profile_id': value.paypal_recurring_payment_profile_id,
|
|
291
275
|
'preshipment_notice_sent': value.preshipment_notice_sent,
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AutoOrderManagement
|
|
20
|
+
*/
|
|
21
|
+
export interface AutoOrderManagement {
|
|
22
|
+
/**
|
|
23
|
+
* URL where the customer can go to update their billing information.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AutoOrderManagement
|
|
26
|
+
*/
|
|
27
|
+
update_billing_url?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function AutoOrderManagementFromJSON(json: any): AutoOrderManagement {
|
|
31
|
+
return AutoOrderManagementFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function AutoOrderManagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoOrderManagement {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'update_billing_url': !exists(json, 'update_billing_url') ? undefined : json['update_billing_url'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AutoOrderManagementToJSON(value?: AutoOrderManagement | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'update_billing_url': value.update_billing_url,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -31,6 +31,12 @@ export interface ConversationStartRequest {
|
|
|
31
31
|
* @memberof ConversationStartRequest
|
|
32
32
|
*/
|
|
33
33
|
conversation_arn?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ConversationStartRequest
|
|
38
|
+
*/
|
|
39
|
+
conversation_webchat_queue_uuid?: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
export function ConversationStartRequestFromJSON(json: any): ConversationStartRequest {
|
|
@@ -45,6 +51,7 @@ export function ConversationStartRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
45
51
|
|
|
46
52
|
'add_conversation_participant_arns': !exists(json, 'add_conversation_participant_arns') ? undefined : json['add_conversation_participant_arns'],
|
|
47
53
|
'conversation_arn': !exists(json, 'conversation_arn') ? undefined : json['conversation_arn'],
|
|
54
|
+
'conversation_webchat_queue_uuid': !exists(json, 'conversation_webchat_queue_uuid') ? undefined : json['conversation_webchat_queue_uuid'],
|
|
48
55
|
};
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -59,6 +66,7 @@ export function ConversationStartRequestToJSON(value?: ConversationStartRequest
|
|
|
59
66
|
|
|
60
67
|
'add_conversation_participant_arns': value.add_conversation_participant_arns,
|
|
61
68
|
'conversation_arn': value.conversation_arn,
|
|
69
|
+
'conversation_webchat_queue_uuid': value.conversation_webchat_queue_uuid,
|
|
62
70
|
};
|
|
63
71
|
}
|
|
64
72
|
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
Conversation,
|
|
18
|
+
ConversationFromJSON,
|
|
19
|
+
ConversationFromJSONTyped,
|
|
20
|
+
ConversationToJSON,
|
|
21
|
+
} from './Conversation';
|
|
22
|
+
import {
|
|
23
|
+
ConversationMessage,
|
|
24
|
+
ConversationMessageFromJSON,
|
|
25
|
+
ConversationMessageFromJSONTyped,
|
|
26
|
+
ConversationMessageToJSON,
|
|
27
|
+
} from './ConversationMessage';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ConversationWebsocketMessage
|
|
33
|
+
*/
|
|
34
|
+
export interface ConversationWebsocketMessage {
|
|
35
|
+
/**
|
|
36
|
+
* Conversation UUID if the websocket message is tied to a specific conversation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ConversationWebsocketMessage
|
|
39
|
+
*/
|
|
40
|
+
conversation_uuid?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Conversation}
|
|
44
|
+
* @memberof ConversationWebsocketMessage
|
|
45
|
+
*/
|
|
46
|
+
event_conversation_closed?: Conversation;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Conversation}
|
|
50
|
+
* @memberof ConversationWebsocketMessage
|
|
51
|
+
*/
|
|
52
|
+
event_new_conversation?: Conversation;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ConversationMessage}
|
|
56
|
+
* @memberof ConversationWebsocketMessage
|
|
57
|
+
*/
|
|
58
|
+
event_new_message?: ConversationMessage;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {object}
|
|
62
|
+
* @memberof ConversationWebsocketMessage
|
|
63
|
+
*/
|
|
64
|
+
event_queue_position?: object;
|
|
65
|
+
/**
|
|
66
|
+
* Type of event
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ConversationWebsocketMessage
|
|
69
|
+
*/
|
|
70
|
+
event_type?: ConversationWebsocketMessageEventTypeEnum;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {ConversationMessage}
|
|
74
|
+
* @memberof ConversationWebsocketMessage
|
|
75
|
+
*/
|
|
76
|
+
event_updated_message?: ConversationMessage;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {ConversationMessage}
|
|
80
|
+
* @memberof ConversationWebsocketMessage
|
|
81
|
+
*/
|
|
82
|
+
message?: ConversationMessage;
|
|
83
|
+
/**
|
|
84
|
+
* Type of message
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ConversationWebsocketMessage
|
|
87
|
+
*/
|
|
88
|
+
type?: ConversationWebsocketMessageTypeEnum;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export const ConversationWebsocketMessageEventTypeEnum = {
|
|
96
|
+
QueuePosition: 'queue position',
|
|
97
|
+
WebchatStartConversation: 'webchat start conversation',
|
|
98
|
+
ConversationClosed: 'conversation closed',
|
|
99
|
+
NewConversation: 'new conversation',
|
|
100
|
+
NewMessage: 'new message',
|
|
101
|
+
UpdatedMessage: 'updated message'
|
|
102
|
+
} as const;
|
|
103
|
+
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export const ConversationWebsocketMessageTypeEnum = {
|
|
109
|
+
Message: 'message',
|
|
110
|
+
Event: 'event',
|
|
111
|
+
Ping: 'ping'
|
|
112
|
+
} as const;
|
|
113
|
+
export type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
export function ConversationWebsocketMessageFromJSON(json: any): ConversationWebsocketMessage {
|
|
117
|
+
return ConversationWebsocketMessageFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebsocketMessage {
|
|
121
|
+
if ((json === undefined) || (json === null)) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
|
|
127
|
+
'event_conversation_closed': !exists(json, 'event_conversation_closed') ? undefined : ConversationFromJSON(json['event_conversation_closed']),
|
|
128
|
+
'event_new_conversation': !exists(json, 'event_new_conversation') ? undefined : ConversationFromJSON(json['event_new_conversation']),
|
|
129
|
+
'event_new_message': !exists(json, 'event_new_message') ? undefined : ConversationMessageFromJSON(json['event_new_message']),
|
|
130
|
+
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : json['event_queue_position'],
|
|
131
|
+
'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
|
|
132
|
+
'event_updated_message': !exists(json, 'event_updated_message') ? undefined : ConversationMessageFromJSON(json['event_updated_message']),
|
|
133
|
+
'message': !exists(json, 'message') ? undefined : ConversationMessageFromJSON(json['message']),
|
|
134
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocketMessage | null): any {
|
|
139
|
+
if (value === undefined) {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
if (value === null) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'conversation_uuid': value.conversation_uuid,
|
|
148
|
+
'event_conversation_closed': ConversationToJSON(value.event_conversation_closed),
|
|
149
|
+
'event_new_conversation': ConversationToJSON(value.event_new_conversation),
|
|
150
|
+
'event_new_message': ConversationMessageToJSON(value.event_new_message),
|
|
151
|
+
'event_queue_position': value.event_queue_position,
|
|
152
|
+
'event_type': value.event_type,
|
|
153
|
+
'event_updated_message': ConversationMessageToJSON(value.event_updated_message),
|
|
154
|
+
'message': ConversationMessageToJSON(value.message),
|
|
155
|
+
'type': value.type,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -80,7 +80,7 @@ export interface EmailCommseqPostcard {
|
|
|
80
80
|
*/
|
|
81
81
|
postcard_front_container_uuid?: string;
|
|
82
82
|
/**
|
|
83
|
-
* URL to screenshot of the
|
|
83
|
+
* URL to screenshot of the back of the postcard
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof EmailCommseqPostcard
|
|
86
86
|
*/
|
package/src/models/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './AutoOrderItemFutureSchedule';
|
|
|
27
27
|
export * from './AutoOrderItemOption';
|
|
28
28
|
export * from './AutoOrderItemSimpleSchedule';
|
|
29
29
|
export * from './AutoOrderLog';
|
|
30
|
+
export * from './AutoOrderManagement';
|
|
30
31
|
export * from './AutoOrderQuery';
|
|
31
32
|
export * from './AutoOrderQueryBatch';
|
|
32
33
|
export * from './AutoOrderResponse';
|
|
@@ -128,6 +129,7 @@ export * from './ConversationResponse';
|
|
|
128
129
|
export * from './ConversationStartRequest';
|
|
129
130
|
export * from './ConversationStartResponse';
|
|
130
131
|
export * from './ConversationSummary';
|
|
132
|
+
export * from './ConversationWebsocketMessage';
|
|
131
133
|
export * from './ConversationsResponse';
|
|
132
134
|
export * from './CountriesResponse';
|
|
133
135
|
export * from './Country';
|