ultracart_rest_api_v2_typescript 4.0.38-RC → 4.0.41-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 +5 -0
- package/README.md +5 -2
- package/dist/apis/ConversationApi.d.ts +5 -5
- package/dist/apis/ConversationApi.js +5 -3
- 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/ConversationEventQueuePosition.d.ts +33 -0
- package/dist/models/ConversationEventQueuePosition.js +44 -0
- package/dist/models/ConversationMultimediaUploadUrl.d.ts +33 -0
- package/dist/models/ConversationMultimediaUploadUrl.js +44 -0
- package/dist/models/ConversationMultimediaUploadUrlResponse.d.ts +55 -0
- package/dist/models/ConversationMultimediaUploadUrlResponse.js +54 -0
- package/dist/models/ConversationStartRequest.d.ts +6 -0
- package/dist/models/ConversationStartRequest.js +2 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +99 -0
- package/dist/models/ConversationWebsocketMessage.js +80 -0
- package/dist/models/EmailCommseqPostcard.d.ts +1 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +10 -6
- package/src/models/AutoOrder.ts +14 -0
- package/src/models/AutoOrderItem.ts +0 -16
- package/src/models/AutoOrderManagement.ts +56 -0
- package/src/models/ConversationEventQueuePosition.ts +64 -0
- package/src/models/ConversationMultimediaUploadUrl.ts +64 -0
- package/src/models/ConversationMultimediaUploadUrlResponse.ts +113 -0
- package/src/models/ConversationStartRequest.ts +8 -0
- package/src/models/ConversationWebsocketMessage.ts +164 -0
- package/src/models/EmailCommseqPostcard.ts +1 -1
- package/src/models/index.ts +5 -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
|
|
@@ -142,13 +143,17 @@ 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
|
|
149
|
+
src/models/ConversationMultimediaUploadUrl.ts
|
|
150
|
+
src/models/ConversationMultimediaUploadUrlResponse.ts
|
|
147
151
|
src/models/ConversationParticipant.ts
|
|
148
152
|
src/models/ConversationResponse.ts
|
|
149
153
|
src/models/ConversationStartRequest.ts
|
|
150
154
|
src/models/ConversationStartResponse.ts
|
|
151
155
|
src/models/ConversationSummary.ts
|
|
156
|
+
src/models/ConversationWebsocketMessage.ts
|
|
152
157
|
src/models/ConversationsResponse.ts
|
|
153
158
|
src/models/CountriesResponse.ts
|
|
154
159
|
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.41-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.41-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.41-RC | 07/25/2022 | conversations bug fixes |
|
|
58
|
+
| 4.0.40-RC | 07/25/2022 | conversations - add a websocket message model |
|
|
59
|
+
| 4.0.39-RC | 07/21/2022 | conversation response types improvements |
|
|
57
60
|
| 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
|
|
58
61
|
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
|
59
62
|
| 4.0.36-RC | 07/18/2022 | twilio dev |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ConversationAgentAuthResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
|
|
13
|
+
import { ConversationAgentAuthResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
|
|
14
14
|
export interface GetConversationRequest {
|
|
15
15
|
conversationUuid: string;
|
|
16
16
|
}
|
|
@@ -72,12 +72,12 @@ export interface ConversationApiInterface {
|
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
* @memberof ConversationApiInterface
|
|
74
74
|
*/
|
|
75
|
-
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
75
|
+
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMultimediaUploadUrlResponse>>;
|
|
76
76
|
/**
|
|
77
77
|
* Get a presigned conersation multimedia upload URL
|
|
78
78
|
* Get a presigned conersation multimedia upload URL
|
|
79
79
|
*/
|
|
80
|
-
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
80
|
+
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMultimediaUploadUrlResponse>;
|
|
81
81
|
/**
|
|
82
82
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
83
83
|
* @summary Retrieve a list of conversation summaries newest to oldest
|
|
@@ -164,12 +164,12 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
164
164
|
* Get a presigned conersation multimedia upload URL
|
|
165
165
|
* Get a presigned conersation multimedia upload URL
|
|
166
166
|
*/
|
|
167
|
-
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
167
|
+
getConversationMultimediaUploadUrlRaw(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationMultimediaUploadUrlResponse>>;
|
|
168
168
|
/**
|
|
169
169
|
* Get a presigned conersation multimedia upload URL
|
|
170
170
|
* Get a presigned conersation multimedia upload URL
|
|
171
171
|
*/
|
|
172
|
-
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
172
|
+
getConversationMultimediaUploadUrl(requestParameters: GetConversationMultimediaUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationMultimediaUploadUrlResponse>;
|
|
173
173
|
/**
|
|
174
174
|
* Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
175
175
|
* Retrieve a list of conversation summaries newest to oldest
|
|
@@ -226,7 +226,7 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
226
226
|
}, initOverrides)];
|
|
227
227
|
case 3:
|
|
228
228
|
response = _c.sent();
|
|
229
|
-
return [2 /*return*/, new runtime.
|
|
229
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationMultimediaUploadUrlResponseFromJSON)(jsonValue); })];
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
});
|
|
@@ -237,12 +237,14 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
237
237
|
*/
|
|
238
238
|
ConversationApi.prototype.getConversationMultimediaUploadUrl = function (requestParameters, initOverrides) {
|
|
239
239
|
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+
var response;
|
|
240
241
|
return __generator(this, function (_a) {
|
|
241
242
|
switch (_a.label) {
|
|
242
243
|
case 0: return [4 /*yield*/, this.getConversationMultimediaUploadUrlRaw(requestParameters, initOverrides)];
|
|
243
244
|
case 1:
|
|
244
|
-
_a.sent();
|
|
245
|
-
return [
|
|
245
|
+
response = _a.sent();
|
|
246
|
+
return [4 /*yield*/, response.value()];
|
|
247
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
246
248
|
}
|
|
247
249
|
});
|
|
248
250
|
});
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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 ConversationMultimediaUploadUrl
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationMultimediaUploadUrl {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationMultimediaUploadUrl
|
|
22
|
+
*/
|
|
23
|
+
key?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationMultimediaUploadUrl
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationMultimediaUploadUrlFromJSON(json: any): ConversationMultimediaUploadUrl;
|
|
32
|
+
export declare function ConversationMultimediaUploadUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMultimediaUploadUrl;
|
|
33
|
+
export declare function ConversationMultimediaUploadUrlToJSON(value?: ConversationMultimediaUploadUrl | 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.ConversationMultimediaUploadUrlToJSON = exports.ConversationMultimediaUploadUrlFromJSONTyped = exports.ConversationMultimediaUploadUrlFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationMultimediaUploadUrlFromJSON(json) {
|
|
19
|
+
return ConversationMultimediaUploadUrlFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationMultimediaUploadUrlFromJSON = ConversationMultimediaUploadUrlFromJSON;
|
|
22
|
+
function ConversationMultimediaUploadUrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'key': !(0, runtime_1.exists)(json, 'key') ? undefined : json['key'],
|
|
28
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationMultimediaUploadUrlFromJSONTyped = ConversationMultimediaUploadUrlFromJSONTyped;
|
|
32
|
+
function ConversationMultimediaUploadUrlToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'key': value.key,
|
|
41
|
+
'url': value.url,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationMultimediaUploadUrlToJSON = ConversationMultimediaUploadUrlToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { ConversationMultimediaUploadUrl } from './ConversationMultimediaUploadUrl';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConversationMultimediaUploadUrlResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationMultimediaUploadUrlResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ConversationMultimediaUploadUrl}
|
|
25
|
+
* @memberof ConversationMultimediaUploadUrlResponse
|
|
26
|
+
*/
|
|
27
|
+
conversation_multimedia_upload_url?: ConversationMultimediaUploadUrl;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ModelError}
|
|
31
|
+
* @memberof ConversationMultimediaUploadUrlResponse
|
|
32
|
+
*/
|
|
33
|
+
error?: ModelError;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResponseMetadata}
|
|
37
|
+
* @memberof ConversationMultimediaUploadUrlResponse
|
|
38
|
+
*/
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ConversationMultimediaUploadUrlResponse
|
|
44
|
+
*/
|
|
45
|
+
success?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Warning}
|
|
49
|
+
* @memberof ConversationMultimediaUploadUrlResponse
|
|
50
|
+
*/
|
|
51
|
+
warning?: Warning;
|
|
52
|
+
}
|
|
53
|
+
export declare function ConversationMultimediaUploadUrlResponseFromJSON(json: any): ConversationMultimediaUploadUrlResponse;
|
|
54
|
+
export declare function ConversationMultimediaUploadUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMultimediaUploadUrlResponse;
|
|
55
|
+
export declare function ConversationMultimediaUploadUrlResponseToJSON(value?: ConversationMultimediaUploadUrlResponse | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.ConversationMultimediaUploadUrlResponseToJSON = exports.ConversationMultimediaUploadUrlResponseFromJSONTyped = exports.ConversationMultimediaUploadUrlResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationMultimediaUploadUrl_1 = require("./ConversationMultimediaUploadUrl");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
function ConversationMultimediaUploadUrlResponseFromJSON(json) {
|
|
23
|
+
return ConversationMultimediaUploadUrlResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.ConversationMultimediaUploadUrlResponseFromJSON = ConversationMultimediaUploadUrlResponseFromJSON;
|
|
26
|
+
function ConversationMultimediaUploadUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'conversation_multimedia_upload_url': !(0, runtime_1.exists)(json, 'conversation_multimedia_upload_url') ? undefined : (0, ConversationMultimediaUploadUrl_1.ConversationMultimediaUploadUrlFromJSON)(json['conversation_multimedia_upload_url']),
|
|
32
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
33
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ConversationMultimediaUploadUrlResponseFromJSONTyped = ConversationMultimediaUploadUrlResponseFromJSONTyped;
|
|
39
|
+
function ConversationMultimediaUploadUrlResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'conversation_multimedia_upload_url': (0, ConversationMultimediaUploadUrl_1.ConversationMultimediaUploadUrlToJSON)(value.conversation_multimedia_upload_url),
|
|
48
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
50
|
+
'success': value.success,
|
|
51
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ConversationMultimediaUploadUrlResponseToJSON = ConversationMultimediaUploadUrlResponseToJSON;
|
|
@@ -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;
|