ultracart_rest_api_v2_typescript 4.0.39-RC → 4.0.42-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.
Files changed (32) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +5 -2
  3. package/dist/models/AutoOrder.d.ts +7 -0
  4. package/dist/models/AutoOrder.js +3 -0
  5. package/dist/models/AutoOrderItem.d.ts +0 -12
  6. package/dist/models/AutoOrderItem.js +0 -4
  7. package/dist/models/AutoOrderManagement.d.ts +27 -0
  8. package/dist/models/AutoOrderManagement.js +42 -0
  9. package/dist/models/Conversation.d.ts +6 -0
  10. package/dist/models/Conversation.js +2 -0
  11. package/dist/models/ConversationEventQueuePosition.d.ts +33 -0
  12. package/dist/models/ConversationEventQueuePosition.js +44 -0
  13. package/dist/models/ConversationStartRequest.d.ts +6 -0
  14. package/dist/models/ConversationStartRequest.js +2 -0
  15. package/dist/models/ConversationSummary.d.ts +6 -0
  16. package/dist/models/ConversationSummary.js +2 -0
  17. package/dist/models/ConversationWebsocketMessage.d.ts +99 -0
  18. package/dist/models/ConversationWebsocketMessage.js +80 -0
  19. package/dist/models/EmailCommseqPostcard.d.ts +1 -1
  20. package/dist/models/index.d.ts +3 -0
  21. package/dist/models/index.js +3 -0
  22. package/package.json +1 -1
  23. package/src/models/AutoOrder.ts +14 -0
  24. package/src/models/AutoOrderItem.ts +0 -16
  25. package/src/models/AutoOrderManagement.ts +56 -0
  26. package/src/models/Conversation.ts +8 -0
  27. package/src/models/ConversationEventQueuePosition.ts +64 -0
  28. package/src/models/ConversationStartRequest.ts +8 -0
  29. package/src/models/ConversationSummary.ts +8 -0
  30. package/src/models/ConversationWebsocketMessage.ts +164 -0
  31. package/src/models/EmailCommseqPostcard.ts +1 -1
  32. package/src/models/index.ts +3 -0
@@ -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
@@ -142,6 +143,7 @@ src/models/CityStateZip.ts
142
143
  src/models/Conversation.ts
143
144
  src/models/ConversationAgentAuth.ts
144
145
  src/models/ConversationAgentAuthResponse.ts
146
+ src/models/ConversationEventQueuePosition.ts
145
147
  src/models/ConversationMessage.ts
146
148
  src/models/ConversationMessageTransportStatus.ts
147
149
  src/models/ConversationMultimediaUploadUrl.ts
@@ -151,6 +153,7 @@ src/models/ConversationResponse.ts
151
153
  src/models/ConversationStartRequest.ts
152
154
  src/models/ConversationStartResponse.ts
153
155
  src/models/ConversationSummary.ts
156
+ src/models/ConversationWebsocketMessage.ts
154
157
  src/models/ConversationsResponse.ts
155
158
  src/models/CountriesResponse.ts
156
159
  src/models/Country.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.39-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.42-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-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.42-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,9 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.42-RC | 07/25/2022 | conversation development |
58
+ | 4.0.41-RC | 07/25/2022 | conversations bug fixes |
59
+ | 4.0.40-RC | 07/25/2022 | conversations - add a websocket message model |
57
60
  | 4.0.39-RC | 07/21/2022 | conversation response types improvements |
58
61
  | 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
59
62
  | 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}
@@ -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;
@@ -17,6 +17,12 @@ import { ConversationParticipant } from './ConversationParticipant';
17
17
  * @interface Conversation
18
18
  */
19
19
  export interface Conversation {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof Conversation
24
+ */
25
+ closed?: boolean;
20
26
  /**
21
27
  *
22
28
  * @type {string}
@@ -26,6 +26,7 @@ function ConversationFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return json;
27
27
  }
28
28
  return {
29
+ 'closed': !(0, runtime_1.exists)(json, 'closed') ? undefined : json['closed'],
29
30
  'conversation_arn': !(0, runtime_1.exists)(json, 'conversation_arn') ? undefined : json['conversation_arn'],
30
31
  'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
31
32
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -42,6 +43,7 @@ function ConversationToJSON(value) {
42
43
  return null;
43
44
  }
44
45
  return {
46
+ 'closed': value.closed,
45
47
  'conversation_arn': value.conversation_arn,
46
48
  'conversation_uuid': value.conversation_uuid,
47
49
  'merchant_id': value.merchant_id,
@@ -0,0 +1,33 @@
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 ConversationEventQueuePosition
16
+ */
17
+ export interface ConversationEventQueuePosition {
18
+ /**
19
+ * True if agents are logged into the queue
20
+ * @type {boolean}
21
+ * @memberof ConversationEventQueuePosition
22
+ */
23
+ available?: boolean;
24
+ /**
25
+ * Position in the queue. Value will be -1 if they cant be found in the queue.
26
+ * @type {number}
27
+ * @memberof ConversationEventQueuePosition
28
+ */
29
+ position?: number;
30
+ }
31
+ export declare function ConversationEventQueuePositionFromJSON(json: any): ConversationEventQueuePosition;
32
+ export declare function ConversationEventQueuePositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventQueuePosition;
33
+ export declare function ConversationEventQueuePositionToJSON(value?: ConversationEventQueuePosition | null): any;
@@ -0,0 +1,44 @@
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.ConversationEventQueuePositionToJSON = exports.ConversationEventQueuePositionFromJSONTyped = exports.ConversationEventQueuePositionFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ConversationEventQueuePositionFromJSON(json) {
19
+ return ConversationEventQueuePositionFromJSONTyped(json, false);
20
+ }
21
+ exports.ConversationEventQueuePositionFromJSON = ConversationEventQueuePositionFromJSON;
22
+ function ConversationEventQueuePositionFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'available': !(0, runtime_1.exists)(json, 'available') ? undefined : json['available'],
28
+ 'position': !(0, runtime_1.exists)(json, 'position') ? undefined : json['position'],
29
+ };
30
+ }
31
+ exports.ConversationEventQueuePositionFromJSONTyped = ConversationEventQueuePositionFromJSONTyped;
32
+ function ConversationEventQueuePositionToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'available': value.available,
41
+ 'position': value.position,
42
+ };
43
+ }
44
+ exports.ConversationEventQueuePositionToJSON = ConversationEventQueuePositionToJSON;
@@ -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;
@@ -15,6 +15,12 @@
15
15
  * @interface ConversationSummary
16
16
  */
17
17
  export interface ConversationSummary {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ConversationSummary
22
+ */
23
+ closed?: boolean;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -24,6 +24,7 @@ function ConversationSummaryFromJSONTyped(json, ignoreDiscriminator) {
24
24
  return json;
25
25
  }
26
26
  return {
27
+ 'closed': !(0, runtime_1.exists)(json, 'closed') ? undefined : json['closed'],
27
28
  'conversation_arn': !(0, runtime_1.exists)(json, 'conversation_arn') ? undefined : json['conversation_arn'],
28
29
  'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
29
30
  'last_conversation_message_body': !(0, runtime_1.exists)(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
@@ -44,6 +45,7 @@ function ConversationSummaryToJSON(value) {
44
45
  return null;
45
46
  }
46
47
  return {
48
+ 'closed': value.closed,
47
49
  'conversation_arn': value.conversation_arn,
48
50
  'conversation_uuid': value.conversation_uuid,
49
51
  'last_conversation_message_body': value.last_conversation_message_body,
@@ -0,0 +1,99 @@
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 { ConversationEventQueuePosition } from './ConversationEventQueuePosition';
13
+ import { ConversationMessage } from './ConversationMessage';
14
+ import { ConversationSummary } from './ConversationSummary';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ConversationWebsocketMessage
19
+ */
20
+ export interface ConversationWebsocketMessage {
21
+ /**
22
+ * Conversation UUID if the websocket message is tied to a specific conversation
23
+ * @type {string}
24
+ * @memberof ConversationWebsocketMessage
25
+ */
26
+ conversation_uuid?: string;
27
+ /**
28
+ *
29
+ * @type {ConversationSummary}
30
+ * @memberof ConversationWebsocketMessage
31
+ */
32
+ event_conversation_closed?: ConversationSummary;
33
+ /**
34
+ *
35
+ * @type {ConversationSummary}
36
+ * @memberof ConversationWebsocketMessage
37
+ */
38
+ event_new_conversation?: ConversationSummary;
39
+ /**
40
+ *
41
+ * @type {ConversationSummary}
42
+ * @memberof ConversationWebsocketMessage
43
+ */
44
+ event_new_message?: ConversationSummary;
45
+ /**
46
+ *
47
+ * @type {ConversationEventQueuePosition}
48
+ * @memberof ConversationWebsocketMessage
49
+ */
50
+ event_queue_position?: ConversationEventQueuePosition;
51
+ /**
52
+ * Type of event
53
+ * @type {string}
54
+ * @memberof ConversationWebsocketMessage
55
+ */
56
+ event_type?: ConversationWebsocketMessageEventTypeEnum;
57
+ /**
58
+ *
59
+ * @type {ConversationMessage}
60
+ * @memberof ConversationWebsocketMessage
61
+ */
62
+ event_updated_message?: ConversationMessage;
63
+ /**
64
+ *
65
+ * @type {ConversationMessage}
66
+ * @memberof ConversationWebsocketMessage
67
+ */
68
+ message?: ConversationMessage;
69
+ /**
70
+ * Type of message
71
+ * @type {string}
72
+ * @memberof ConversationWebsocketMessage
73
+ */
74
+ type?: ConversationWebsocketMessageTypeEnum;
75
+ }
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const ConversationWebsocketMessageEventTypeEnum: {
80
+ readonly QueuePosition: "queue position";
81
+ readonly WebchatStartConversation: "webchat start conversation";
82
+ readonly ConversationClosed: "conversation closed";
83
+ readonly NewConversation: "new conversation";
84
+ readonly NewMessage: "new message";
85
+ readonly UpdatedMessage: "updated message";
86
+ };
87
+ export declare type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
88
+ /**
89
+ * @export
90
+ */
91
+ export declare const ConversationWebsocketMessageTypeEnum: {
92
+ readonly Message: "message";
93
+ readonly Event: "event";
94
+ readonly Ping: "ping";
95
+ };
96
+ export declare type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
97
+ export declare function ConversationWebsocketMessageFromJSON(json: any): ConversationWebsocketMessage;
98
+ export declare function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebsocketMessage;
99
+ export declare function ConversationWebsocketMessageToJSON(value?: ConversationWebsocketMessage | null): any;
@@ -0,0 +1,80 @@
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 ConversationEventQueuePosition_1 = require("./ConversationEventQueuePosition");
19
+ var ConversationMessage_1 = require("./ConversationMessage");
20
+ var ConversationSummary_1 = require("./ConversationSummary");
21
+ /**
22
+ * @export
23
+ */
24
+ exports.ConversationWebsocketMessageEventTypeEnum = {
25
+ QueuePosition: 'queue position',
26
+ WebchatStartConversation: 'webchat start conversation',
27
+ ConversationClosed: 'conversation closed',
28
+ NewConversation: 'new conversation',
29
+ NewMessage: 'new message',
30
+ UpdatedMessage: 'updated message'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.ConversationWebsocketMessageTypeEnum = {
36
+ Message: 'message',
37
+ Event: 'event',
38
+ Ping: 'ping'
39
+ };
40
+ function ConversationWebsocketMessageFromJSON(json) {
41
+ return ConversationWebsocketMessageFromJSONTyped(json, false);
42
+ }
43
+ exports.ConversationWebsocketMessageFromJSON = ConversationWebsocketMessageFromJSON;
44
+ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'conversation_uuid': !(0, runtime_1.exists)(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
50
+ 'event_conversation_closed': !(0, runtime_1.exists)(json, 'event_conversation_closed') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_conversation_closed']),
51
+ 'event_new_conversation': !(0, runtime_1.exists)(json, 'event_new_conversation') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_new_conversation']),
52
+ 'event_new_message': !(0, runtime_1.exists)(json, 'event_new_message') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_new_message']),
53
+ 'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
54
+ 'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
55
+ 'event_updated_message': !(0, runtime_1.exists)(json, 'event_updated_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_updated_message']),
56
+ 'message': !(0, runtime_1.exists)(json, 'message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['message']),
57
+ 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
58
+ };
59
+ }
60
+ exports.ConversationWebsocketMessageFromJSONTyped = ConversationWebsocketMessageFromJSONTyped;
61
+ function ConversationWebsocketMessageToJSON(value) {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+ 'conversation_uuid': value.conversation_uuid,
70
+ 'event_conversation_closed': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_conversation_closed),
71
+ 'event_new_conversation': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_new_conversation),
72
+ 'event_new_message': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_new_message),
73
+ 'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
74
+ 'event_type': value.event_type,
75
+ 'event_updated_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_updated_message),
76
+ 'message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.message),
77
+ 'type': value.type,
78
+ };
79
+ }
80
+ 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 front of the postcard
79
+ * URL to screenshot of the back of the postcard
80
80
  * @type {string}
81
81
  * @memberof EmailCommseqPostcard
82
82
  */
@@ -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';
@@ -117,6 +118,7 @@ export * from './CityStateZip';
117
118
  export * from './Conversation';
118
119
  export * from './ConversationAgentAuth';
119
120
  export * from './ConversationAgentAuthResponse';
121
+ export * from './ConversationEventQueuePosition';
120
122
  export * from './ConversationMessage';
121
123
  export * from './ConversationMessageTransportStatus';
122
124
  export * from './ConversationMultimediaUploadUrl';
@@ -126,6 +128,7 @@ export * from './ConversationResponse';
126
128
  export * from './ConversationStartRequest';
127
129
  export * from './ConversationStartResponse';
128
130
  export * from './ConversationSummary';
131
+ export * from './ConversationWebsocketMessage';
129
132
  export * from './ConversationsResponse';
130
133
  export * from './CountriesResponse';
131
134
  export * from './Country';
@@ -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);
@@ -135,6 +136,7 @@ __exportStar(require("./CityStateZip"), exports);
135
136
  __exportStar(require("./Conversation"), exports);
136
137
  __exportStar(require("./ConversationAgentAuth"), exports);
137
138
  __exportStar(require("./ConversationAgentAuthResponse"), exports);
139
+ __exportStar(require("./ConversationEventQueuePosition"), exports);
138
140
  __exportStar(require("./ConversationMessage"), exports);
139
141
  __exportStar(require("./ConversationMessageTransportStatus"), exports);
140
142
  __exportStar(require("./ConversationMultimediaUploadUrl"), exports);
@@ -144,6 +146,7 @@ __exportStar(require("./ConversationResponse"), exports);
144
146
  __exportStar(require("./ConversationStartRequest"), exports);
145
147
  __exportStar(require("./ConversationStartResponse"), exports);
146
148
  __exportStar(require("./ConversationSummary"), exports);
149
+ __exportStar(require("./ConversationWebsocketMessage"), exports);
147
150
  __exportStar(require("./ConversationsResponse"), exports);
148
151
  __exportStar(require("./CountriesResponse"), exports);
149
152
  __exportStar(require("./Country"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.39-RC",
3
+ "version": "4.0.42-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -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
+
@@ -32,6 +32,12 @@ import {
32
32
  * @interface Conversation
33
33
  */
34
34
  export interface Conversation {
35
+ /**
36
+ *
37
+ * @type {boolean}
38
+ * @memberof Conversation
39
+ */
40
+ closed?: boolean;
35
41
  /**
36
42
  *
37
43
  * @type {string}
@@ -74,6 +80,7 @@ export function ConversationFromJSONTyped(json: any, ignoreDiscriminator: boolea
74
80
  }
75
81
  return {
76
82
 
83
+ 'closed': !exists(json, 'closed') ? undefined : json['closed'],
77
84
  'conversation_arn': !exists(json, 'conversation_arn') ? undefined : json['conversation_arn'],
78
85
  'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
79
86
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -91,6 +98,7 @@ export function ConversationToJSON(value?: Conversation | null): any {
91
98
  }
92
99
  return {
93
100
 
101
+ 'closed': value.closed,
94
102
  'conversation_arn': value.conversation_arn,
95
103
  'conversation_uuid': value.conversation_uuid,
96
104
  'merchant_id': value.merchant_id,
@@ -0,0 +1,64 @@
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 ConversationEventQueuePosition
20
+ */
21
+ export interface ConversationEventQueuePosition {
22
+ /**
23
+ * True if agents are logged into the queue
24
+ * @type {boolean}
25
+ * @memberof ConversationEventQueuePosition
26
+ */
27
+ available?: boolean;
28
+ /**
29
+ * Position in the queue. Value will be -1 if they cant be found in the queue.
30
+ * @type {number}
31
+ * @memberof ConversationEventQueuePosition
32
+ */
33
+ position?: number;
34
+ }
35
+
36
+ export function ConversationEventQueuePositionFromJSON(json: any): ConversationEventQueuePosition {
37
+ return ConversationEventQueuePositionFromJSONTyped(json, false);
38
+ }
39
+
40
+ export function ConversationEventQueuePositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventQueuePosition {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+
46
+ 'available': !exists(json, 'available') ? undefined : json['available'],
47
+ 'position': !exists(json, 'position') ? undefined : json['position'],
48
+ };
49
+ }
50
+
51
+ export function ConversationEventQueuePositionToJSON(value?: ConversationEventQueuePosition | null): any {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+
60
+ 'available': value.available,
61
+ 'position': value.position,
62
+ };
63
+ }
64
+
@@ -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
 
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface ConversationSummary
20
20
  */
21
21
  export interface ConversationSummary {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ConversationSummary
26
+ */
27
+ closed?: boolean;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -85,6 +91,7 @@ export function ConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator:
85
91
  }
86
92
  return {
87
93
 
94
+ 'closed': !exists(json, 'closed') ? undefined : json['closed'],
88
95
  'conversation_arn': !exists(json, 'conversation_arn') ? undefined : json['conversation_arn'],
89
96
  'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
90
97
  'last_conversation_message_body': !exists(json, 'last_conversation_message_body') ? undefined : json['last_conversation_message_body'],
@@ -106,6 +113,7 @@ export function ConversationSummaryToJSON(value?: ConversationSummary | null): a
106
113
  }
107
114
  return {
108
115
 
116
+ 'closed': value.closed,
109
117
  'conversation_arn': value.conversation_arn,
110
118
  'conversation_uuid': value.conversation_uuid,
111
119
  'last_conversation_message_body': value.last_conversation_message_body,
@@ -0,0 +1,164 @@
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
+ ConversationEventQueuePosition,
18
+ ConversationEventQueuePositionFromJSON,
19
+ ConversationEventQueuePositionFromJSONTyped,
20
+ ConversationEventQueuePositionToJSON,
21
+ } from './ConversationEventQueuePosition';
22
+ import {
23
+ ConversationMessage,
24
+ ConversationMessageFromJSON,
25
+ ConversationMessageFromJSONTyped,
26
+ ConversationMessageToJSON,
27
+ } from './ConversationMessage';
28
+ import {
29
+ ConversationSummary,
30
+ ConversationSummaryFromJSON,
31
+ ConversationSummaryFromJSONTyped,
32
+ ConversationSummaryToJSON,
33
+ } from './ConversationSummary';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface ConversationWebsocketMessage
39
+ */
40
+ export interface ConversationWebsocketMessage {
41
+ /**
42
+ * Conversation UUID if the websocket message is tied to a specific conversation
43
+ * @type {string}
44
+ * @memberof ConversationWebsocketMessage
45
+ */
46
+ conversation_uuid?: string;
47
+ /**
48
+ *
49
+ * @type {ConversationSummary}
50
+ * @memberof ConversationWebsocketMessage
51
+ */
52
+ event_conversation_closed?: ConversationSummary;
53
+ /**
54
+ *
55
+ * @type {ConversationSummary}
56
+ * @memberof ConversationWebsocketMessage
57
+ */
58
+ event_new_conversation?: ConversationSummary;
59
+ /**
60
+ *
61
+ * @type {ConversationSummary}
62
+ * @memberof ConversationWebsocketMessage
63
+ */
64
+ event_new_message?: ConversationSummary;
65
+ /**
66
+ *
67
+ * @type {ConversationEventQueuePosition}
68
+ * @memberof ConversationWebsocketMessage
69
+ */
70
+ event_queue_position?: ConversationEventQueuePosition;
71
+ /**
72
+ * Type of event
73
+ * @type {string}
74
+ * @memberof ConversationWebsocketMessage
75
+ */
76
+ event_type?: ConversationWebsocketMessageEventTypeEnum;
77
+ /**
78
+ *
79
+ * @type {ConversationMessage}
80
+ * @memberof ConversationWebsocketMessage
81
+ */
82
+ event_updated_message?: ConversationMessage;
83
+ /**
84
+ *
85
+ * @type {ConversationMessage}
86
+ * @memberof ConversationWebsocketMessage
87
+ */
88
+ message?: ConversationMessage;
89
+ /**
90
+ * Type of message
91
+ * @type {string}
92
+ * @memberof ConversationWebsocketMessage
93
+ */
94
+ type?: ConversationWebsocketMessageTypeEnum;
95
+ }
96
+
97
+
98
+ /**
99
+ * @export
100
+ */
101
+ export const ConversationWebsocketMessageEventTypeEnum = {
102
+ QueuePosition: 'queue position',
103
+ WebchatStartConversation: 'webchat start conversation',
104
+ ConversationClosed: 'conversation closed',
105
+ NewConversation: 'new conversation',
106
+ NewMessage: 'new message',
107
+ UpdatedMessage: 'updated message'
108
+ } as const;
109
+ export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const ConversationWebsocketMessageTypeEnum = {
115
+ Message: 'message',
116
+ Event: 'event',
117
+ Ping: 'ping'
118
+ } as const;
119
+ export type ConversationWebsocketMessageTypeEnum = typeof ConversationWebsocketMessageTypeEnum[keyof typeof ConversationWebsocketMessageTypeEnum];
120
+
121
+
122
+ export function ConversationWebsocketMessageFromJSON(json: any): ConversationWebsocketMessage {
123
+ return ConversationWebsocketMessageFromJSONTyped(json, false);
124
+ }
125
+
126
+ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationWebsocketMessage {
127
+ if ((json === undefined) || (json === null)) {
128
+ return json;
129
+ }
130
+ return {
131
+
132
+ 'conversation_uuid': !exists(json, 'conversation_uuid') ? undefined : json['conversation_uuid'],
133
+ 'event_conversation_closed': !exists(json, 'event_conversation_closed') ? undefined : ConversationSummaryFromJSON(json['event_conversation_closed']),
134
+ 'event_new_conversation': !exists(json, 'event_new_conversation') ? undefined : ConversationSummaryFromJSON(json['event_new_conversation']),
135
+ 'event_new_message': !exists(json, 'event_new_message') ? undefined : ConversationSummaryFromJSON(json['event_new_message']),
136
+ 'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
137
+ 'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
138
+ 'event_updated_message': !exists(json, 'event_updated_message') ? undefined : ConversationMessageFromJSON(json['event_updated_message']),
139
+ 'message': !exists(json, 'message') ? undefined : ConversationMessageFromJSON(json['message']),
140
+ 'type': !exists(json, 'type') ? undefined : json['type'],
141
+ };
142
+ }
143
+
144
+ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocketMessage | null): any {
145
+ if (value === undefined) {
146
+ return undefined;
147
+ }
148
+ if (value === null) {
149
+ return null;
150
+ }
151
+ return {
152
+
153
+ 'conversation_uuid': value.conversation_uuid,
154
+ 'event_conversation_closed': ConversationSummaryToJSON(value.event_conversation_closed),
155
+ 'event_new_conversation': ConversationSummaryToJSON(value.event_new_conversation),
156
+ 'event_new_message': ConversationSummaryToJSON(value.event_new_message),
157
+ 'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
158
+ 'event_type': value.event_type,
159
+ 'event_updated_message': ConversationMessageToJSON(value.event_updated_message),
160
+ 'message': ConversationMessageToJSON(value.message),
161
+ 'type': value.type,
162
+ };
163
+ }
164
+
@@ -80,7 +80,7 @@ export interface EmailCommseqPostcard {
80
80
  */
81
81
  postcard_front_container_uuid?: string;
82
82
  /**
83
- * URL to screenshot of the front of the postcard
83
+ * URL to screenshot of the back of the postcard
84
84
  * @type {string}
85
85
  * @memberof EmailCommseqPostcard
86
86
  */
@@ -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';
@@ -119,6 +120,7 @@ export * from './CityStateZip';
119
120
  export * from './Conversation';
120
121
  export * from './ConversationAgentAuth';
121
122
  export * from './ConversationAgentAuthResponse';
123
+ export * from './ConversationEventQueuePosition';
122
124
  export * from './ConversationMessage';
123
125
  export * from './ConversationMessageTransportStatus';
124
126
  export * from './ConversationMultimediaUploadUrl';
@@ -128,6 +130,7 @@ export * from './ConversationResponse';
128
130
  export * from './ConversationStartRequest';
129
131
  export * from './ConversationStartResponse';
130
132
  export * from './ConversationSummary';
133
+ export * from './ConversationWebsocketMessage';
131
134
  export * from './ConversationsResponse';
132
135
  export * from './CountriesResponse';
133
136
  export * from './Country';