ultracart_rest_api_v2_typescript 4.0.37-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 +6 -0
- package/README.md +5 -2
- package/dist/apis/ConversationApi.d.ts +9 -9
- package/dist/apis/ConversationApi.js +6 -4
- package/dist/models/AutoOrder.d.ts +7 -0
- package/dist/models/AutoOrder.js +3 -0
- package/dist/models/AutoOrderManagement.d.ts +27 -0
- package/dist/models/AutoOrderManagement.js +42 -0
- package/dist/models/ConversationAgentAuth.d.ts +57 -0
- package/dist/models/ConversationAgentAuth.js +52 -0
- package/dist/models/ConversationAgentAuthResponse.d.ts +15 -17
- package/dist/models/ConversationAgentAuthResponse.js +14 -12
- 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/ConversationResponse.d.ts +55 -0
- package/dist/models/ConversationResponse.js +54 -0
- package/dist/models/ConversationStartRequest.d.ts +6 -0
- package/dist/models/ConversationStartRequest.js +2 -0
- package/dist/models/ConversationStartResponse.d.ts +3 -8
- package/dist/models/ConversationStartResponse.js +3 -4
- package/dist/models/ConversationWebsocketMessage.d.ts +98 -0
- package/dist/models/ConversationWebsocketMessage.js +79 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +18 -14
- package/src/models/AutoOrder.ts +14 -0
- package/src/models/AutoOrderManagement.ts +56 -0
- package/src/models/ConversationAgentAuth.ts +96 -0
- package/src/models/ConversationAgentAuthResponse.ts +46 -29
- package/src/models/ConversationMultimediaUploadUrl.ts +64 -0
- package/src/models/ConversationMultimediaUploadUrlResponse.ts +113 -0
- package/src/models/ConversationResponse.ts +113 -0
- package/src/models/ConversationStartRequest.ts +8 -0
- package/src/models/ConversationStartResponse.ts +11 -12
- package/src/models/ConversationWebsocketMessage.ts +158 -0
- package/src/models/index.ts +6 -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
|
|
@@ -140,13 +141,18 @@ src/models/CheckoutSetupBrowserKeyResponse.ts
|
|
|
140
141
|
src/models/CheckoutStateProvinceResponse.ts
|
|
141
142
|
src/models/CityStateZip.ts
|
|
142
143
|
src/models/Conversation.ts
|
|
144
|
+
src/models/ConversationAgentAuth.ts
|
|
143
145
|
src/models/ConversationAgentAuthResponse.ts
|
|
144
146
|
src/models/ConversationMessage.ts
|
|
145
147
|
src/models/ConversationMessageTransportStatus.ts
|
|
148
|
+
src/models/ConversationMultimediaUploadUrl.ts
|
|
149
|
+
src/models/ConversationMultimediaUploadUrlResponse.ts
|
|
146
150
|
src/models/ConversationParticipant.ts
|
|
151
|
+
src/models/ConversationResponse.ts
|
|
147
152
|
src/models/ConversationStartRequest.ts
|
|
148
153
|
src/models/ConversationStartResponse.ts
|
|
149
154
|
src/models/ConversationSummary.ts
|
|
155
|
+
src/models/ConversationWebsocketMessage.ts
|
|
150
156
|
src/models/ConversationsResponse.ts
|
|
151
157
|
src/models/CountriesResponse.ts
|
|
152
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,9 @@ 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 |
|
|
58
|
+
| 4.0.39-RC | 07/21/2022 | conversation response types improvements |
|
|
59
|
+
| 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
|
|
57
60
|
| 4.0.37-RC | 07/20/2022 | conversation participant name added |
|
|
58
61
|
| 4.0.36-RC | 07/18/2022 | twilio dev |
|
|
59
62
|
| 4.0.35-RC | 07/14/2022 | Add channel storefront_oid to the customer activity record |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import {
|
|
13
|
+
import { ConversationAgentAuthResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationsResponse } from '../models';
|
|
14
14
|
export interface GetConversationRequest {
|
|
15
15
|
conversationUuid: string;
|
|
16
16
|
}
|
|
@@ -58,12 +58,12 @@ export interface ConversationApiInterface {
|
|
|
58
58
|
* @throws {RequiredError}
|
|
59
59
|
* @memberof ConversationApiInterface
|
|
60
60
|
*/
|
|
61
|
-
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
61
|
+
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>>;
|
|
62
62
|
/**
|
|
63
63
|
* Retrieve a conversation including the participants and messages
|
|
64
64
|
* Retrieve a conversation
|
|
65
65
|
*/
|
|
66
|
-
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
66
|
+
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
|
|
67
67
|
/**
|
|
68
68
|
* Get a presigned conersation multimedia upload URL
|
|
69
69
|
* @summary Get a presigned conersation multimedia upload URL
|
|
@@ -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
|
|
@@ -154,22 +154,22 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
154
154
|
* Retrieve a conversation including the participants and messages
|
|
155
155
|
* Retrieve a conversation
|
|
156
156
|
*/
|
|
157
|
-
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
157
|
+
getConversationRaw(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationResponse>>;
|
|
158
158
|
/**
|
|
159
159
|
* Retrieve a conversation including the participants and messages
|
|
160
160
|
* Retrieve a conversation
|
|
161
161
|
*/
|
|
162
|
-
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
162
|
+
getConversation(requestParameters: GetConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationResponse>;
|
|
163
163
|
/**
|
|
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
|
|
@@ -167,7 +167,7 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
167
167
|
}, initOverrides)];
|
|
168
168
|
case 3:
|
|
169
169
|
response = _c.sent();
|
|
170
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
170
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationResponseFromJSON)(jsonValue); })];
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
});
|
|
@@ -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,
|
|
@@ -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,57 @@
|
|
|
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 ConversationAgentAuth
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationAgentAuth {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationAgentAuth
|
|
22
|
+
*/
|
|
23
|
+
conversation_participant_arn?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationAgentAuth
|
|
28
|
+
*/
|
|
29
|
+
conversation_participant_name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationAgentAuth
|
|
34
|
+
*/
|
|
35
|
+
jwt?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ConversationAgentAuth
|
|
40
|
+
*/
|
|
41
|
+
merchant_id?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof ConversationAgentAuth
|
|
46
|
+
*/
|
|
47
|
+
twilio_phone_numbers?: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConversationAgentAuth
|
|
52
|
+
*/
|
|
53
|
+
websocket_url?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function ConversationAgentAuthFromJSON(json: any): ConversationAgentAuth;
|
|
56
|
+
export declare function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuth;
|
|
57
|
+
export declare function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationAgentAuthFromJSON(json) {
|
|
19
|
+
return ConversationAgentAuthFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationAgentAuthFromJSON = ConversationAgentAuthFromJSON;
|
|
22
|
+
function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
|
|
28
|
+
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
29
|
+
'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
|
|
30
|
+
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
31
|
+
'twilio_phone_numbers': !(0, runtime_1.exists)(json, 'twilio_phone_numbers') ? undefined : json['twilio_phone_numbers'],
|
|
32
|
+
'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.ConversationAgentAuthFromJSONTyped = ConversationAgentAuthFromJSONTyped;
|
|
36
|
+
function ConversationAgentAuthToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'conversation_participant_arn': value.conversation_participant_arn,
|
|
45
|
+
'conversation_participant_name': value.conversation_participant_name,
|
|
46
|
+
'jwt': value.jwt,
|
|
47
|
+
'merchant_id': value.merchant_id,
|
|
48
|
+
'twilio_phone_numbers': value.twilio_phone_numbers,
|
|
49
|
+
'websocket_url': value.websocket_url,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.ConversationAgentAuthToJSON = ConversationAgentAuthToJSON;
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationAgentAuth } from './ConversationAgentAuth';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
12
16
|
/**
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
@@ -17,40 +21,34 @@
|
|
|
17
21
|
export interface ConversationAgentAuthResponse {
|
|
18
22
|
/**
|
|
19
23
|
*
|
|
20
|
-
* @type {
|
|
24
|
+
* @type {ConversationAgentAuth}
|
|
21
25
|
* @memberof ConversationAgentAuthResponse
|
|
22
26
|
*/
|
|
23
|
-
|
|
27
|
+
agent_auth?: ConversationAgentAuth;
|
|
24
28
|
/**
|
|
25
29
|
*
|
|
26
|
-
* @type {
|
|
30
|
+
* @type {ModelError}
|
|
27
31
|
* @memberof ConversationAgentAuthResponse
|
|
28
32
|
*/
|
|
29
|
-
|
|
33
|
+
error?: ModelError;
|
|
30
34
|
/**
|
|
31
35
|
*
|
|
32
|
-
* @type {
|
|
36
|
+
* @type {ResponseMetadata}
|
|
33
37
|
* @memberof ConversationAgentAuthResponse
|
|
34
38
|
*/
|
|
35
|
-
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
36
40
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {
|
|
39
|
-
* @memberof ConversationAgentAuthResponse
|
|
40
|
-
*/
|
|
41
|
-
merchant_id?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {Array<string>}
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
45
43
|
* @memberof ConversationAgentAuthResponse
|
|
46
44
|
*/
|
|
47
|
-
|
|
45
|
+
success?: boolean;
|
|
48
46
|
/**
|
|
49
47
|
*
|
|
50
|
-
* @type {
|
|
48
|
+
* @type {Warning}
|
|
51
49
|
* @memberof ConversationAgentAuthResponse
|
|
52
50
|
*/
|
|
53
|
-
|
|
51
|
+
warning?: Warning;
|
|
54
52
|
}
|
|
55
53
|
export declare function ConversationAgentAuthResponseFromJSON(json: any): ConversationAgentAuthResponse;
|
|
56
54
|
export declare function ConversationAgentAuthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuthResponse;
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationAgentAuthResponseToJSON = exports.ConversationAgentAuthResponseFromJSONTyped = exports.ConversationAgentAuthResponseFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationAgentAuth_1 = require("./ConversationAgentAuth");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
18
22
|
function ConversationAgentAuthResponseFromJSON(json) {
|
|
19
23
|
return ConversationAgentAuthResponseFromJSONTyped(json, false);
|
|
20
24
|
}
|
|
@@ -24,12 +28,11 @@ function ConversationAgentAuthResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
28
|
return json;
|
|
25
29
|
}
|
|
26
30
|
return {
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
31
|
+
'agent_auth': !(0, runtime_1.exists)(json, 'agent_auth') ? undefined : (0, ConversationAgentAuth_1.ConversationAgentAuthFromJSON)(json['agent_auth']),
|
|
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']),
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
exports.ConversationAgentAuthResponseFromJSONTyped = ConversationAgentAuthResponseFromJSONTyped;
|
|
@@ -41,12 +44,11 @@ function ConversationAgentAuthResponseToJSON(value) {
|
|
|
41
44
|
return null;
|
|
42
45
|
}
|
|
43
46
|
return {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'websocket_url': value.websocket_url,
|
|
47
|
+
'agent_auth': (0, ConversationAgentAuth_1.ConversationAgentAuthToJSON)(value.agent_auth),
|
|
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),
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
exports.ConversationAgentAuthResponseToJSON = ConversationAgentAuthResponseToJSON;
|
|
@@ -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;
|