ultracart_rest_api_v2_typescript 4.0.211 → 4.0.213
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 +3 -0
- package/README.md +4 -2
- package/dist/apis/AutoOrderApi.d.ts +32 -1
- package/dist/apis/AutoOrderApi.js +67 -0
- package/dist/apis/ConversationApi.d.ts +5 -5
- package/dist/apis/ConversationApi.js +1 -1
- package/dist/models/AutoOrder.d.ts +13 -0
- package/dist/models/AutoOrder.js +6 -1
- package/dist/models/AutoOrderConsolidate.d.ts +27 -0
- package/dist/models/AutoOrderConsolidate.js +42 -0
- package/dist/models/ConversationPbxAudioUploadUrl.d.ts +33 -0
- package/dist/models/ConversationPbxAudioUploadUrl.js +44 -0
- package/dist/models/ConversationPbxAudioUploadUrlResponse.d.ts +55 -0
- package/dist/models/ConversationPbxAudioUploadUrlResponse.js +54 -0
- package/dist/models/ConversationPbxCustomerSnapshotResponse.d.ts +2 -2
- package/dist/models/ConversationPbxCustomerSnapshotResponse.js +2 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AutoOrderApi.ts +79 -0
- package/src/apis/ConversationApi.ts +8 -5
- package/src/models/AutoOrder.ts +18 -1
- package/src/models/AutoOrderConsolidate.ts +56 -0
- package/src/models/ConversationPbxAudioUploadUrl.ts +64 -0
- package/src/models/ConversationPbxAudioUploadUrlResponse.ts +113 -0
- package/src/models/ConversationPbxCustomerSnapshotResponse.ts +4 -4
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ src/models/ApplyLibraryItemResponse.ts
|
|
|
50
50
|
src/models/AutoOrder.ts
|
|
51
51
|
src/models/AutoOrderAddonItem.ts
|
|
52
52
|
src/models/AutoOrderAddonItemOption.ts
|
|
53
|
+
src/models/AutoOrderConsolidate.ts
|
|
53
54
|
src/models/AutoOrderItem.ts
|
|
54
55
|
src/models/AutoOrderItemFutureSchedule.ts
|
|
55
56
|
src/models/AutoOrderItemOption.ts
|
|
@@ -198,6 +199,8 @@ src/models/ConversationPbxAgentResponse.ts
|
|
|
198
199
|
src/models/ConversationPbxAgentsResponse.ts
|
|
199
200
|
src/models/ConversationPbxAudio.ts
|
|
200
201
|
src/models/ConversationPbxAudioResponse.ts
|
|
202
|
+
src/models/ConversationPbxAudioUploadUrl.ts
|
|
203
|
+
src/models/ConversationPbxAudioUploadUrlResponse.ts
|
|
201
204
|
src/models/ConversationPbxAudiosResponse.ts
|
|
202
205
|
src/models/ConversationPbxCustomerSnapshotRequest.ts
|
|
203
206
|
src/models/ConversationPbxCustomerSnapshotResponse.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.213
|
|
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.213 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.213 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
|
|
58
|
+
| 4.0.212 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
|
57
59
|
| 4.0.211 | 04/24/2024 | esp - add fields for external generation on email |
|
|
58
60
|
| 4.0.210 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
|
|
59
61
|
| 4.0.209 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AutoOrder, AutoOrderQuery, AutoOrderQueryBatch, AutoOrderResponse, AutoOrdersRequest, AutoOrdersResponse } from '../models';
|
|
13
|
+
import { AutoOrder, AutoOrderConsolidate, AutoOrderQuery, AutoOrderQueryBatch, AutoOrderResponse, AutoOrdersRequest, AutoOrdersResponse } from '../models';
|
|
14
|
+
export interface ConsolidateAutoOrdersRequest {
|
|
15
|
+
autoOrderOid: number;
|
|
16
|
+
autoOrderConsolidate: AutoOrderConsolidate;
|
|
17
|
+
expand?: string;
|
|
18
|
+
}
|
|
14
19
|
export interface EstablishAutoOrderByReferenceOrderIdRequest {
|
|
15
20
|
referenceOrderId: string;
|
|
16
21
|
expand?: string;
|
|
@@ -82,6 +87,22 @@ export interface UpdateAutoOrdersBatchRequest {
|
|
|
82
87
|
* @interface AutoOrderApiInterface
|
|
83
88
|
*/
|
|
84
89
|
export interface AutoOrderApiInterface {
|
|
90
|
+
/**
|
|
91
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
92
|
+
* @summary Consolidates multiple auto orders
|
|
93
|
+
* @param {number} autoOrderOid The auto order oid to consolidate into.
|
|
94
|
+
* @param {AutoOrderConsolidate} autoOrderConsolidate Auto orders to consolidate
|
|
95
|
+
* @param {string} [expand] The object expansion to perform on the result. See documentation for examples
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof AutoOrderApiInterface
|
|
99
|
+
*/
|
|
100
|
+
consolidateAutoOrdersRaw(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>>;
|
|
101
|
+
/**
|
|
102
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
103
|
+
* Consolidates multiple auto orders
|
|
104
|
+
*/
|
|
105
|
+
consolidateAutoOrders(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse>;
|
|
85
106
|
/**
|
|
86
107
|
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
87
108
|
* @summary Establish an auto order by referencing a regular order id
|
|
@@ -250,6 +271,16 @@ export interface AutoOrderApiInterface {
|
|
|
250
271
|
*
|
|
251
272
|
*/
|
|
252
273
|
export declare class AutoOrderApi extends runtime.BaseAPI implements AutoOrderApiInterface {
|
|
274
|
+
/**
|
|
275
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
276
|
+
* Consolidates multiple auto orders
|
|
277
|
+
*/
|
|
278
|
+
consolidateAutoOrdersRaw(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>>;
|
|
279
|
+
/**
|
|
280
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
281
|
+
* Consolidates multiple auto orders
|
|
282
|
+
*/
|
|
283
|
+
consolidateAutoOrders(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse>;
|
|
253
284
|
/**
|
|
254
285
|
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
255
286
|
* Establish an auto order by referencing a regular order id
|
|
@@ -75,6 +75,73 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AutoOrderApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
80
|
+
* Consolidates multiple auto orders
|
|
81
|
+
*/
|
|
82
|
+
AutoOrderApi.prototype.consolidateAutoOrdersRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.autoOrderOid === null || requestParameters.autoOrderOid === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('autoOrderOid', 'Required parameter requestParameters.autoOrderOid was null or undefined when calling consolidateAutoOrders.');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters.autoOrderConsolidate === null || requestParameters.autoOrderConsolidate === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('autoOrderConsolidate', 'Required parameter requestParameters.autoOrderConsolidate was null or undefined when calling consolidateAutoOrders.');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
if (requestParameters.expand !== undefined) {
|
|
96
|
+
queryParameters['_expand'] = requestParameters.expand;
|
|
97
|
+
}
|
|
98
|
+
headerParameters = {};
|
|
99
|
+
headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
|
|
100
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
101
|
+
// oauth required
|
|
102
|
+
_a = headerParameters;
|
|
103
|
+
_b = "Authorization";
|
|
104
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["auto_order_write"])];
|
|
105
|
+
case 1:
|
|
106
|
+
// oauth required
|
|
107
|
+
_a[_b] = _c.sent();
|
|
108
|
+
_c.label = 2;
|
|
109
|
+
case 2:
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
112
|
+
}
|
|
113
|
+
return [4 /*yield*/, this.request({
|
|
114
|
+
path: "/auto_order/auto_orders/{auto_order_oid}/consolidate".replace("{".concat("auto_order_oid", "}"), encodeURIComponent(String(requestParameters.autoOrderOid))),
|
|
115
|
+
method: 'PUT',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
body: (0, models_1.AutoOrderConsolidateToJSON)(requestParameters.autoOrderConsolidate),
|
|
119
|
+
}, initOverrides)];
|
|
120
|
+
case 3:
|
|
121
|
+
response = _c.sent();
|
|
122
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.AutoOrderResponseFromJSON)(jsonValue); })];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
129
|
+
* Consolidates multiple auto orders
|
|
130
|
+
*/
|
|
131
|
+
AutoOrderApi.prototype.consolidateAutoOrders = function (requestParameters, initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
+
var response;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0: return [4 /*yield*/, this.consolidateAutoOrdersRaw(requestParameters, initOverrides)];
|
|
137
|
+
case 1:
|
|
138
|
+
response = _a.sent();
|
|
139
|
+
return [4 /*yield*/, response.value()];
|
|
140
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
};
|
|
78
145
|
/**
|
|
79
146
|
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
80
147
|
* Establish an auto order by referencing a regular order id
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationJoinRequest, ConversationLocationsResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudiosResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
13
|
+
import { ConversationAgentAuthResponse, ConversationAgentProfile, ConversationAgentProfileResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDepartment, ConversationDepartmentMembersResponse, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationJoinRequest, ConversationLocationsResponse, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationPbxAgent, ConversationPbxAgentResponse, ConversationPbxAgentsResponse, ConversationPbxAudio, ConversationPbxAudioResponse, ConversationPbxAudioUploadUrlResponse, ConversationPbxAudiosResponse, ConversationPbxCustomerSnapshotRequest, ConversationPbxCustomerSnapshotResponse, ConversationPbxMenu, ConversationPbxMenuResponse, ConversationPbxMenusResponse, ConversationPbxPhoneNumber, ConversationPbxPhoneNumberResponse, ConversationPbxPhoneNumbersResponse, ConversationPbxQueue, ConversationPbxQueueResponse, ConversationPbxQueuesResponse, ConversationPbxTimeBased, ConversationPbxTimeBasedResponse, ConversationPbxTimeBasedsResponse, ConversationPbxTimeRange, ConversationPbxTimeRangeResponse, ConversationPbxTimeRangesResponse, ConversationPbxVoicemailMailbox, ConversationPbxVoicemailMailboxResponse, ConversationPbxVoicemailMailboxesResponse, ConversationPbxVoicemailMessageResponse, ConversationPbxVoicemailMessageSummariesResponse, ConversationPermissionsResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
14
14
|
export interface DeleteConversationCannedMessageRequest {
|
|
15
15
|
conversationCannedMessageOid: number;
|
|
16
16
|
}
|
|
@@ -596,12 +596,12 @@ export interface ConversationApiInterface {
|
|
|
596
596
|
* @throws {RequiredError}
|
|
597
597
|
* @memberof ConversationApiInterface
|
|
598
598
|
*/
|
|
599
|
-
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
599
|
+
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAudioUploadUrlResponse>>;
|
|
600
600
|
/**
|
|
601
601
|
* Get a pre-signed conversation multimedia upload URL
|
|
602
602
|
* Get a pre-signed conversation multimedia upload URL
|
|
603
603
|
*/
|
|
604
|
-
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
604
|
+
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudioUploadUrlResponse>;
|
|
605
605
|
/**
|
|
606
606
|
* Retrieves all the orders, auto orders, and customer profile for a given phone number
|
|
607
607
|
* @summary Get orders and customer information for a phone number
|
|
@@ -1707,12 +1707,12 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
1707
1707
|
* Get a pre-signed conversation multimedia upload URL
|
|
1708
1708
|
* Get a pre-signed conversation multimedia upload URL
|
|
1709
1709
|
*/
|
|
1710
|
-
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1710
|
+
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAudioUploadUrlResponse>>;
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Get a pre-signed conversation multimedia upload URL
|
|
1713
1713
|
* Get a pre-signed conversation multimedia upload URL
|
|
1714
1714
|
*/
|
|
1715
|
-
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1715
|
+
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudioUploadUrlResponse>;
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Retrieves all the orders, auto orders, and customer profile for a given phone number
|
|
1718
1718
|
* Get orders and customer information for a phone number
|
|
@@ -1565,7 +1565,7 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
1565
1565
|
}, initOverrides)];
|
|
1566
1566
|
case 3:
|
|
1567
1567
|
response = _c.sent();
|
|
1568
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.
|
|
1568
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationPbxAudioUploadUrlResponseFromJSON)(jsonValue); })];
|
|
1569
1569
|
}
|
|
1570
1570
|
});
|
|
1571
1571
|
});
|
|
@@ -128,6 +128,18 @@ export interface AutoOrder {
|
|
|
128
128
|
* @memberof AutoOrder
|
|
129
129
|
*/
|
|
130
130
|
merchant_id?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The date/time the auto order was merged into another auto order
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof AutoOrder
|
|
135
|
+
*/
|
|
136
|
+
merged_dts?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The auto order that this auto order was merged into
|
|
139
|
+
* @type {number}
|
|
140
|
+
* @memberof AutoOrder
|
|
141
|
+
*/
|
|
142
|
+
merged_into_auto_order_oid?: number;
|
|
131
143
|
/**
|
|
132
144
|
* The next time that the auto order will be attempted for processing
|
|
133
145
|
* @type {string}
|
|
@@ -178,6 +190,7 @@ export declare const AutoOrderStatusEnum: {
|
|
|
178
190
|
readonly Active: "active";
|
|
179
191
|
readonly Canceled: "canceled";
|
|
180
192
|
readonly Disabled: "disabled";
|
|
193
|
+
readonly Merged: "merged";
|
|
181
194
|
};
|
|
182
195
|
export type AutoOrderStatusEnum = typeof AutoOrderStatusEnum[keyof typeof AutoOrderStatusEnum];
|
|
183
196
|
export declare function AutoOrderFromJSON(json: any): AutoOrder;
|
package/dist/models/AutoOrder.js
CHANGED
|
@@ -26,7 +26,8 @@ var Order_1 = require("./Order");
|
|
|
26
26
|
exports.AutoOrderStatusEnum = {
|
|
27
27
|
Active: 'active',
|
|
28
28
|
Canceled: 'canceled',
|
|
29
|
-
Disabled: 'disabled'
|
|
29
|
+
Disabled: 'disabled',
|
|
30
|
+
Merged: 'merged'
|
|
30
31
|
};
|
|
31
32
|
function AutoOrderFromJSON(json) {
|
|
32
33
|
return AutoOrderFromJSONTyped(json, false);
|
|
@@ -55,6 +56,8 @@ function AutoOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'logs': !(0, runtime_1.exists)(json, 'logs') ? undefined : (json['logs'].map(AutoOrderLog_1.AutoOrderLogFromJSON)),
|
|
56
57
|
'management': !(0, runtime_1.exists)(json, 'management') ? undefined : (0, AutoOrderManagement_1.AutoOrderManagementFromJSON)(json['management']),
|
|
57
58
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
59
|
+
'merged_dts': !(0, runtime_1.exists)(json, 'merged_dts') ? undefined : json['merged_dts'],
|
|
60
|
+
'merged_into_auto_order_oid': !(0, runtime_1.exists)(json, 'merged_into_auto_order_oid') ? undefined : json['merged_into_auto_order_oid'],
|
|
58
61
|
'next_attempt': !(0, runtime_1.exists)(json, 'next_attempt') ? undefined : json['next_attempt'],
|
|
59
62
|
'original_order': !(0, runtime_1.exists)(json, 'original_order') ? undefined : (0, Order_1.OrderFromJSON)(json['original_order']),
|
|
60
63
|
'original_order_id': !(0, runtime_1.exists)(json, 'original_order_id') ? undefined : json['original_order_id'],
|
|
@@ -91,6 +94,8 @@ function AutoOrderToJSON(value) {
|
|
|
91
94
|
'logs': value.logs === undefined ? undefined : (value.logs.map(AutoOrderLog_1.AutoOrderLogToJSON)),
|
|
92
95
|
'management': (0, AutoOrderManagement_1.AutoOrderManagementToJSON)(value.management),
|
|
93
96
|
'merchant_id': value.merchant_id,
|
|
97
|
+
'merged_dts': value.merged_dts,
|
|
98
|
+
'merged_into_auto_order_oid': value.merged_into_auto_order_oid,
|
|
94
99
|
'next_attempt': value.next_attempt,
|
|
95
100
|
'original_order': (0, Order_1.OrderToJSON)(value.original_order),
|
|
96
101
|
'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 AutoOrderConsolidate
|
|
16
|
+
*/
|
|
17
|
+
export interface AutoOrderConsolidate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof AutoOrderConsolidate
|
|
22
|
+
*/
|
|
23
|
+
source_auto_order_oids?: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
export declare function AutoOrderConsolidateFromJSON(json: any): AutoOrderConsolidate;
|
|
26
|
+
export declare function AutoOrderConsolidateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoOrderConsolidate;
|
|
27
|
+
export declare function AutoOrderConsolidateToJSON(value?: AutoOrderConsolidate | 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.AutoOrderConsolidateToJSON = exports.AutoOrderConsolidateFromJSONTyped = exports.AutoOrderConsolidateFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function AutoOrderConsolidateFromJSON(json) {
|
|
19
|
+
return AutoOrderConsolidateFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.AutoOrderConsolidateFromJSON = AutoOrderConsolidateFromJSON;
|
|
22
|
+
function AutoOrderConsolidateFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'source_auto_order_oids': !(0, runtime_1.exists)(json, 'source_auto_order_oids') ? undefined : json['source_auto_order_oids'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.AutoOrderConsolidateFromJSONTyped = AutoOrderConsolidateFromJSONTyped;
|
|
31
|
+
function AutoOrderConsolidateToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'source_auto_order_oids': value.source_auto_order_oids,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.AutoOrderConsolidateToJSON = AutoOrderConsolidateToJSON;
|
|
@@ -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 ConversationPbxAudioUploadUrl
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationPbxAudioUploadUrl {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationPbxAudioUploadUrl
|
|
22
|
+
*/
|
|
23
|
+
key?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationPbxAudioUploadUrl
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationPbxAudioUploadUrlFromJSON(json: any): ConversationPbxAudioUploadUrl;
|
|
32
|
+
export declare function ConversationPbxAudioUploadUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxAudioUploadUrl;
|
|
33
|
+
export declare function ConversationPbxAudioUploadUrlToJSON(value?: ConversationPbxAudioUploadUrl | 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.ConversationPbxAudioUploadUrlToJSON = exports.ConversationPbxAudioUploadUrlFromJSONTyped = exports.ConversationPbxAudioUploadUrlFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationPbxAudioUploadUrlFromJSON(json) {
|
|
19
|
+
return ConversationPbxAudioUploadUrlFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationPbxAudioUploadUrlFromJSON = ConversationPbxAudioUploadUrlFromJSON;
|
|
22
|
+
function ConversationPbxAudioUploadUrlFromJSONTyped(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.ConversationPbxAudioUploadUrlFromJSONTyped = ConversationPbxAudioUploadUrlFromJSONTyped;
|
|
32
|
+
function ConversationPbxAudioUploadUrlToJSON(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.ConversationPbxAudioUploadUrlToJSON = ConversationPbxAudioUploadUrlToJSON;
|
|
@@ -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 { ConversationPbxAudioUploadUrl } from './ConversationPbxAudioUploadUrl';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConversationPbxAudioUploadUrlResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationPbxAudioUploadUrlResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ConversationPbxAudioUploadUrl}
|
|
25
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
26
|
+
*/
|
|
27
|
+
conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ModelError}
|
|
31
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
32
|
+
*/
|
|
33
|
+
error?: ModelError;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResponseMetadata}
|
|
37
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
38
|
+
*/
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
44
|
+
*/
|
|
45
|
+
success?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Warning}
|
|
49
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
50
|
+
*/
|
|
51
|
+
warning?: Warning;
|
|
52
|
+
}
|
|
53
|
+
export declare function ConversationPbxAudioUploadUrlResponseFromJSON(json: any): ConversationPbxAudioUploadUrlResponse;
|
|
54
|
+
export declare function ConversationPbxAudioUploadUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxAudioUploadUrlResponse;
|
|
55
|
+
export declare function ConversationPbxAudioUploadUrlResponseToJSON(value?: ConversationPbxAudioUploadUrlResponse | 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.ConversationPbxAudioUploadUrlResponseToJSON = exports.ConversationPbxAudioUploadUrlResponseFromJSONTyped = exports.ConversationPbxAudioUploadUrlResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationPbxAudioUploadUrl_1 = require("./ConversationPbxAudioUploadUrl");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
function ConversationPbxAudioUploadUrlResponseFromJSON(json) {
|
|
23
|
+
return ConversationPbxAudioUploadUrlResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.ConversationPbxAudioUploadUrlResponseFromJSON = ConversationPbxAudioUploadUrlResponseFromJSON;
|
|
26
|
+
function ConversationPbxAudioUploadUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'conversation_pbx_audio_upload_url': !(0, runtime_1.exists)(json, 'conversation_pbx_audio_upload_url') ? undefined : (0, ConversationPbxAudioUploadUrl_1.ConversationPbxAudioUploadUrlFromJSON)(json['conversation_pbx_audio_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.ConversationPbxAudioUploadUrlResponseFromJSONTyped = ConversationPbxAudioUploadUrlResponseFromJSONTyped;
|
|
39
|
+
function ConversationPbxAudioUploadUrlResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'conversation_pbx_audio_upload_url': (0, ConversationPbxAudioUploadUrl_1.ConversationPbxAudioUploadUrlToJSON)(value.conversation_pbx_audio_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.ConversationPbxAudioUploadUrlResponseToJSON = ConversationPbxAudioUploadUrlResponseToJSON;
|
|
@@ -29,10 +29,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
|
|
|
29
29
|
auto_orders?: Array<AutoOrder>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {Customer}
|
|
32
|
+
* @type {Array<Customer>}
|
|
33
33
|
* @memberof ConversationPbxCustomerSnapshotResponse
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
customers?: Array<Customer>;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {ModelError}
|
|
@@ -31,7 +31,7 @@ function ConversationPbxCustomerSnapshotResponseFromJSONTyped(json, ignoreDiscri
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'auto_orders': !(0, runtime_1.exists)(json, 'auto_orders') ? undefined : (json['auto_orders'].map(AutoOrder_1.AutoOrderFromJSON)),
|
|
34
|
-
'
|
|
34
|
+
'customers': !(0, runtime_1.exists)(json, 'customers') ? undefined : (json['customers'].map(Customer_1.CustomerFromJSON)),
|
|
35
35
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
36
36
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
37
37
|
'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
@@ -49,7 +49,7 @@ function ConversationPbxCustomerSnapshotResponseToJSON(value) {
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
'auto_orders': value.auto_orders === undefined ? undefined : (value.auto_orders.map(AutoOrder_1.AutoOrderToJSON)),
|
|
52
|
-
'
|
|
52
|
+
'customers': value.customers === undefined ? undefined : (value.customers.map(Customer_1.CustomerToJSON)),
|
|
53
53
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
54
54
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
55
55
|
'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './ApplyLibraryItemResponse';
|
|
|
23
23
|
export * from './AutoOrder';
|
|
24
24
|
export * from './AutoOrderAddonItem';
|
|
25
25
|
export * from './AutoOrderAddonItemOption';
|
|
26
|
+
export * from './AutoOrderConsolidate';
|
|
26
27
|
export * from './AutoOrderItem';
|
|
27
28
|
export * from './AutoOrderItemFutureSchedule';
|
|
28
29
|
export * from './AutoOrderItemOption';
|
|
@@ -171,6 +172,8 @@ export * from './ConversationPbxAgentResponse';
|
|
|
171
172
|
export * from './ConversationPbxAgentsResponse';
|
|
172
173
|
export * from './ConversationPbxAudio';
|
|
173
174
|
export * from './ConversationPbxAudioResponse';
|
|
175
|
+
export * from './ConversationPbxAudioUploadUrl';
|
|
176
|
+
export * from './ConversationPbxAudioUploadUrlResponse';
|
|
174
177
|
export * from './ConversationPbxAudiosResponse';
|
|
175
178
|
export * from './ConversationPbxCustomerSnapshotRequest';
|
|
176
179
|
export * from './ConversationPbxCustomerSnapshotResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./ApplyLibraryItemResponse"), exports);
|
|
|
41
41
|
__exportStar(require("./AutoOrder"), exports);
|
|
42
42
|
__exportStar(require("./AutoOrderAddonItem"), exports);
|
|
43
43
|
__exportStar(require("./AutoOrderAddonItemOption"), exports);
|
|
44
|
+
__exportStar(require("./AutoOrderConsolidate"), exports);
|
|
44
45
|
__exportStar(require("./AutoOrderItem"), exports);
|
|
45
46
|
__exportStar(require("./AutoOrderItemFutureSchedule"), exports);
|
|
46
47
|
__exportStar(require("./AutoOrderItemOption"), exports);
|
|
@@ -189,6 +190,8 @@ __exportStar(require("./ConversationPbxAgentResponse"), exports);
|
|
|
189
190
|
__exportStar(require("./ConversationPbxAgentsResponse"), exports);
|
|
190
191
|
__exportStar(require("./ConversationPbxAudio"), exports);
|
|
191
192
|
__exportStar(require("./ConversationPbxAudioResponse"), exports);
|
|
193
|
+
__exportStar(require("./ConversationPbxAudioUploadUrl"), exports);
|
|
194
|
+
__exportStar(require("./ConversationPbxAudioUploadUrlResponse"), exports);
|
|
192
195
|
__exportStar(require("./ConversationPbxAudiosResponse"), exports);
|
|
193
196
|
__exportStar(require("./ConversationPbxCustomerSnapshotRequest"), exports);
|
|
194
197
|
__exportStar(require("./ConversationPbxCustomerSnapshotResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/AutoOrderApi.ts
CHANGED
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
AutoOrder,
|
|
19
19
|
AutoOrderFromJSON,
|
|
20
20
|
AutoOrderToJSON,
|
|
21
|
+
AutoOrderConsolidate,
|
|
22
|
+
AutoOrderConsolidateFromJSON,
|
|
23
|
+
AutoOrderConsolidateToJSON,
|
|
21
24
|
AutoOrderQuery,
|
|
22
25
|
AutoOrderQueryFromJSON,
|
|
23
26
|
AutoOrderQueryToJSON,
|
|
@@ -38,6 +41,12 @@ import {
|
|
|
38
41
|
ErrorResponseToJSON,
|
|
39
42
|
} from '../models';
|
|
40
43
|
|
|
44
|
+
export interface ConsolidateAutoOrdersRequest {
|
|
45
|
+
autoOrderOid: number;
|
|
46
|
+
autoOrderConsolidate: AutoOrderConsolidate;
|
|
47
|
+
expand?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
export interface EstablishAutoOrderByReferenceOrderIdRequest {
|
|
42
51
|
referenceOrderId: string;
|
|
43
52
|
expand?: string;
|
|
@@ -118,6 +127,24 @@ export interface UpdateAutoOrdersBatchRequest {
|
|
|
118
127
|
* @interface AutoOrderApiInterface
|
|
119
128
|
*/
|
|
120
129
|
export interface AutoOrderApiInterface {
|
|
130
|
+
/**
|
|
131
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
132
|
+
* @summary Consolidates multiple auto orders
|
|
133
|
+
* @param {number} autoOrderOid The auto order oid to consolidate into.
|
|
134
|
+
* @param {AutoOrderConsolidate} autoOrderConsolidate Auto orders to consolidate
|
|
135
|
+
* @param {string} [expand] The object expansion to perform on the result. See documentation for examples
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof AutoOrderApiInterface
|
|
139
|
+
*/
|
|
140
|
+
consolidateAutoOrdersRaw(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
144
|
+
* Consolidates multiple auto orders
|
|
145
|
+
*/
|
|
146
|
+
consolidateAutoOrders(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse>;
|
|
147
|
+
|
|
121
148
|
/**
|
|
122
149
|
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
123
150
|
* @summary Establish an auto order by referencing a regular order id
|
|
@@ -306,6 +333,58 @@ export interface AutoOrderApiInterface {
|
|
|
306
333
|
*/
|
|
307
334
|
export class AutoOrderApi extends runtime.BaseAPI implements AutoOrderApiInterface {
|
|
308
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
338
|
+
* Consolidates multiple auto orders
|
|
339
|
+
*/
|
|
340
|
+
async consolidateAutoOrdersRaw(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>> {
|
|
341
|
+
if (requestParameters.autoOrderOid === null || requestParameters.autoOrderOid === undefined) {
|
|
342
|
+
throw new runtime.RequiredError('autoOrderOid','Required parameter requestParameters.autoOrderOid was null or undefined when calling consolidateAutoOrders.');
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (requestParameters.autoOrderConsolidate === null || requestParameters.autoOrderConsolidate === undefined) {
|
|
346
|
+
throw new runtime.RequiredError('autoOrderConsolidate','Required parameter requestParameters.autoOrderConsolidate was null or undefined when calling consolidateAutoOrders.');
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const queryParameters: any = {};
|
|
350
|
+
|
|
351
|
+
if (requestParameters.expand !== undefined) {
|
|
352
|
+
queryParameters['_expand'] = requestParameters.expand;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
356
|
+
|
|
357
|
+
headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
|
|
358
|
+
|
|
359
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
360
|
+
// oauth required
|
|
361
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["auto_order_write"]);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
365
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const response = await this.request({
|
|
369
|
+
path: `/auto_order/auto_orders/{auto_order_oid}/consolidate`.replace(`{${"auto_order_oid"}}`, encodeURIComponent(String(requestParameters.autoOrderOid))),
|
|
370
|
+
method: 'PUT',
|
|
371
|
+
headers: headerParameters,
|
|
372
|
+
query: queryParameters,
|
|
373
|
+
body: AutoOrderConsolidateToJSON(requestParameters.autoOrderConsolidate),
|
|
374
|
+
}, initOverrides);
|
|
375
|
+
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AutoOrderResponseFromJSON(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Consolidates mutliple auto orders on the UltraCart account.
|
|
381
|
+
* Consolidates multiple auto orders
|
|
382
|
+
*/
|
|
383
|
+
async consolidateAutoOrders(requestParameters: ConsolidateAutoOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse> {
|
|
384
|
+
const response = await this.consolidateAutoOrdersRaw(requestParameters, initOverrides);
|
|
385
|
+
return await response.value();
|
|
386
|
+
}
|
|
387
|
+
|
|
309
388
|
/**
|
|
310
389
|
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
311
390
|
* Establish an auto order by referencing a regular order id
|
|
@@ -90,6 +90,9 @@ import {
|
|
|
90
90
|
ConversationPbxAudioResponse,
|
|
91
91
|
ConversationPbxAudioResponseFromJSON,
|
|
92
92
|
ConversationPbxAudioResponseToJSON,
|
|
93
|
+
ConversationPbxAudioUploadUrlResponse,
|
|
94
|
+
ConversationPbxAudioUploadUrlResponseFromJSON,
|
|
95
|
+
ConversationPbxAudioUploadUrlResponseToJSON,
|
|
93
96
|
ConversationPbxAudiosResponse,
|
|
94
97
|
ConversationPbxAudiosResponseFromJSON,
|
|
95
98
|
ConversationPbxAudiosResponseToJSON,
|
|
@@ -896,13 +899,13 @@ export interface ConversationApiInterface {
|
|
|
896
899
|
* @throws {RequiredError}
|
|
897
900
|
* @memberof ConversationApiInterface
|
|
898
901
|
*/
|
|
899
|
-
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
902
|
+
getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAudioUploadUrlResponse>>;
|
|
900
903
|
|
|
901
904
|
/**
|
|
902
905
|
* Get a pre-signed conversation multimedia upload URL
|
|
903
906
|
* Get a pre-signed conversation multimedia upload URL
|
|
904
907
|
*/
|
|
905
|
-
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
908
|
+
getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudioUploadUrlResponse>;
|
|
906
909
|
|
|
907
910
|
/**
|
|
908
911
|
* Retrieves all the orders, auto orders, and customer profile for a given phone number
|
|
@@ -2888,7 +2891,7 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
2888
2891
|
* Get a pre-signed conversation multimedia upload URL
|
|
2889
2892
|
* Get a pre-signed conversation multimedia upload URL
|
|
2890
2893
|
*/
|
|
2891
|
-
async getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2894
|
+
async getConversationPbxAudioUploadUrlRaw(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationPbxAudioUploadUrlResponse>> {
|
|
2892
2895
|
if (requestParameters.extension === null || requestParameters.extension === undefined) {
|
|
2893
2896
|
throw new runtime.RequiredError('extension','Required parameter requestParameters.extension was null or undefined when calling getConversationPbxAudioUploadUrl.');
|
|
2894
2897
|
}
|
|
@@ -2913,14 +2916,14 @@ export class ConversationApi extends runtime.BaseAPI implements ConversationApiI
|
|
|
2913
2916
|
query: queryParameters,
|
|
2914
2917
|
}, initOverrides);
|
|
2915
2918
|
|
|
2916
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2919
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConversationPbxAudioUploadUrlResponseFromJSON(jsonValue));
|
|
2917
2920
|
}
|
|
2918
2921
|
|
|
2919
2922
|
/**
|
|
2920
2923
|
* Get a pre-signed conversation multimedia upload URL
|
|
2921
2924
|
* Get a pre-signed conversation multimedia upload URL
|
|
2922
2925
|
*/
|
|
2923
|
-
async getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2926
|
+
async getConversationPbxAudioUploadUrl(requestParameters: GetConversationPbxAudioUploadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationPbxAudioUploadUrlResponse> {
|
|
2924
2927
|
const response = await this.getConversationPbxAudioUploadUrlRaw(requestParameters, initOverrides);
|
|
2925
2928
|
return await response.value();
|
|
2926
2929
|
}
|
package/src/models/AutoOrder.ts
CHANGED
|
@@ -158,6 +158,18 @@ export interface AutoOrder {
|
|
|
158
158
|
* @memberof AutoOrder
|
|
159
159
|
*/
|
|
160
160
|
merchant_id?: string;
|
|
161
|
+
/**
|
|
162
|
+
* The date/time the auto order was merged into another auto order
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof AutoOrder
|
|
165
|
+
*/
|
|
166
|
+
merged_dts?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The auto order that this auto order was merged into
|
|
169
|
+
* @type {number}
|
|
170
|
+
* @memberof AutoOrder
|
|
171
|
+
*/
|
|
172
|
+
merged_into_auto_order_oid?: number;
|
|
161
173
|
/**
|
|
162
174
|
* The next time that the auto order will be attempted for processing
|
|
163
175
|
* @type {string}
|
|
@@ -209,7 +221,8 @@ export interface AutoOrder {
|
|
|
209
221
|
export const AutoOrderStatusEnum = {
|
|
210
222
|
Active: 'active',
|
|
211
223
|
Canceled: 'canceled',
|
|
212
|
-
Disabled: 'disabled'
|
|
224
|
+
Disabled: 'disabled',
|
|
225
|
+
Merged: 'merged'
|
|
213
226
|
} as const;
|
|
214
227
|
export type AutoOrderStatusEnum = typeof AutoOrderStatusEnum[keyof typeof AutoOrderStatusEnum];
|
|
215
228
|
|
|
@@ -242,6 +255,8 @@ export function AutoOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
242
255
|
'logs': !exists(json, 'logs') ? undefined : ((json['logs'] as Array<any>).map(AutoOrderLogFromJSON)),
|
|
243
256
|
'management': !exists(json, 'management') ? undefined : AutoOrderManagementFromJSON(json['management']),
|
|
244
257
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
258
|
+
'merged_dts': !exists(json, 'merged_dts') ? undefined : json['merged_dts'],
|
|
259
|
+
'merged_into_auto_order_oid': !exists(json, 'merged_into_auto_order_oid') ? undefined : json['merged_into_auto_order_oid'],
|
|
245
260
|
'next_attempt': !exists(json, 'next_attempt') ? undefined : json['next_attempt'],
|
|
246
261
|
'original_order': !exists(json, 'original_order') ? undefined : OrderFromJSON(json['original_order']),
|
|
247
262
|
'original_order_id': !exists(json, 'original_order_id') ? undefined : json['original_order_id'],
|
|
@@ -279,6 +294,8 @@ export function AutoOrderToJSON(value?: AutoOrder | null): any {
|
|
|
279
294
|
'logs': value.logs === undefined ? undefined : ((value.logs as Array<any>).map(AutoOrderLogToJSON)),
|
|
280
295
|
'management': AutoOrderManagementToJSON(value.management),
|
|
281
296
|
'merchant_id': value.merchant_id,
|
|
297
|
+
'merged_dts': value.merged_dts,
|
|
298
|
+
'merged_into_auto_order_oid': value.merged_into_auto_order_oid,
|
|
282
299
|
'next_attempt': value.next_attempt,
|
|
283
300
|
'original_order': OrderToJSON(value.original_order),
|
|
284
301
|
'original_order_id': value.original_order_id,
|
|
@@ -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 AutoOrderConsolidate
|
|
20
|
+
*/
|
|
21
|
+
export interface AutoOrderConsolidate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof AutoOrderConsolidate
|
|
26
|
+
*/
|
|
27
|
+
source_auto_order_oids?: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function AutoOrderConsolidateFromJSON(json: any): AutoOrderConsolidate {
|
|
31
|
+
return AutoOrderConsolidateFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function AutoOrderConsolidateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoOrderConsolidate {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'source_auto_order_oids': !exists(json, 'source_auto_order_oids') ? undefined : json['source_auto_order_oids'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AutoOrderConsolidateToJSON(value?: AutoOrderConsolidate | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'source_auto_order_oids': value.source_auto_order_oids,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -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 ConversationPbxAudioUploadUrl
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationPbxAudioUploadUrl {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationPbxAudioUploadUrl
|
|
26
|
+
*/
|
|
27
|
+
key?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationPbxAudioUploadUrl
|
|
32
|
+
*/
|
|
33
|
+
url?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function ConversationPbxAudioUploadUrlFromJSON(json: any): ConversationPbxAudioUploadUrl {
|
|
37
|
+
return ConversationPbxAudioUploadUrlFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConversationPbxAudioUploadUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxAudioUploadUrl {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
47
|
+
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ConversationPbxAudioUploadUrlToJSON(value?: ConversationPbxAudioUploadUrl | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'key': value.key,
|
|
61
|
+
'url': value.url,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
ConversationPbxAudioUploadUrl,
|
|
18
|
+
ConversationPbxAudioUploadUrlFromJSON,
|
|
19
|
+
ConversationPbxAudioUploadUrlFromJSONTyped,
|
|
20
|
+
ConversationPbxAudioUploadUrlToJSON,
|
|
21
|
+
} from './ConversationPbxAudioUploadUrl';
|
|
22
|
+
import {
|
|
23
|
+
ModelError,
|
|
24
|
+
ModelErrorFromJSON,
|
|
25
|
+
ModelErrorFromJSONTyped,
|
|
26
|
+
ModelErrorToJSON,
|
|
27
|
+
} from './ModelError';
|
|
28
|
+
import {
|
|
29
|
+
ResponseMetadata,
|
|
30
|
+
ResponseMetadataFromJSON,
|
|
31
|
+
ResponseMetadataFromJSONTyped,
|
|
32
|
+
ResponseMetadataToJSON,
|
|
33
|
+
} from './ResponseMetadata';
|
|
34
|
+
import {
|
|
35
|
+
Warning,
|
|
36
|
+
WarningFromJSON,
|
|
37
|
+
WarningFromJSONTyped,
|
|
38
|
+
WarningToJSON,
|
|
39
|
+
} from './Warning';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface ConversationPbxAudioUploadUrlResponse
|
|
45
|
+
*/
|
|
46
|
+
export interface ConversationPbxAudioUploadUrlResponse {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ConversationPbxAudioUploadUrl}
|
|
50
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
51
|
+
*/
|
|
52
|
+
conversation_pbx_audio_upload_url?: ConversationPbxAudioUploadUrl;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ModelError}
|
|
56
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
57
|
+
*/
|
|
58
|
+
error?: ModelError;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ResponseMetadata}
|
|
62
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
63
|
+
*/
|
|
64
|
+
metadata?: ResponseMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* Indicates if API call was successful
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
69
|
+
*/
|
|
70
|
+
success?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Warning}
|
|
74
|
+
* @memberof ConversationPbxAudioUploadUrlResponse
|
|
75
|
+
*/
|
|
76
|
+
warning?: Warning;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ConversationPbxAudioUploadUrlResponseFromJSON(json: any): ConversationPbxAudioUploadUrlResponse {
|
|
80
|
+
return ConversationPbxAudioUploadUrlResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ConversationPbxAudioUploadUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationPbxAudioUploadUrlResponse {
|
|
84
|
+
if ((json === undefined) || (json === null)) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'conversation_pbx_audio_upload_url': !exists(json, 'conversation_pbx_audio_upload_url') ? undefined : ConversationPbxAudioUploadUrlFromJSON(json['conversation_pbx_audio_upload_url']),
|
|
90
|
+
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
91
|
+
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
92
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
93
|
+
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ConversationPbxAudioUploadUrlResponseToJSON(value?: ConversationPbxAudioUploadUrlResponse | null): any {
|
|
98
|
+
if (value === undefined) {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
if (value === null) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'conversation_pbx_audio_upload_url': ConversationPbxAudioUploadUrlToJSON(value.conversation_pbx_audio_upload_url),
|
|
107
|
+
'error': ModelErrorToJSON(value.error),
|
|
108
|
+
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
109
|
+
'success': value.success,
|
|
110
|
+
'warning': WarningToJSON(value.warning),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -64,10 +64,10 @@ export interface ConversationPbxCustomerSnapshotResponse {
|
|
|
64
64
|
auto_orders?: Array<AutoOrder>;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {Customer}
|
|
67
|
+
* @type {Array<Customer>}
|
|
68
68
|
* @memberof ConversationPbxCustomerSnapshotResponse
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
customers?: Array<Customer>;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {ModelError}
|
|
@@ -111,7 +111,7 @@ export function ConversationPbxCustomerSnapshotResponseFromJSONTyped(json: any,
|
|
|
111
111
|
return {
|
|
112
112
|
|
|
113
113
|
'auto_orders': !exists(json, 'auto_orders') ? undefined : ((json['auto_orders'] as Array<any>).map(AutoOrderFromJSON)),
|
|
114
|
-
'
|
|
114
|
+
'customers': !exists(json, 'customers') ? undefined : ((json['customers'] as Array<any>).map(CustomerFromJSON)),
|
|
115
115
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
116
116
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
117
117
|
'orders': !exists(json, 'orders') ? undefined : ((json['orders'] as Array<any>).map(OrderFromJSON)),
|
|
@@ -130,7 +130,7 @@ export function ConversationPbxCustomerSnapshotResponseToJSON(value?: Conversati
|
|
|
130
130
|
return {
|
|
131
131
|
|
|
132
132
|
'auto_orders': value.auto_orders === undefined ? undefined : ((value.auto_orders as Array<any>).map(AutoOrderToJSON)),
|
|
133
|
-
'
|
|
133
|
+
'customers': value.customers === undefined ? undefined : ((value.customers as Array<any>).map(CustomerToJSON)),
|
|
134
134
|
'error': ModelErrorToJSON(value.error),
|
|
135
135
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
136
136
|
'orders': value.orders === undefined ? undefined : ((value.orders as Array<any>).map(OrderToJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './ApplyLibraryItemResponse';
|
|
|
25
25
|
export * from './AutoOrder';
|
|
26
26
|
export * from './AutoOrderAddonItem';
|
|
27
27
|
export * from './AutoOrderAddonItemOption';
|
|
28
|
+
export * from './AutoOrderConsolidate';
|
|
28
29
|
export * from './AutoOrderItem';
|
|
29
30
|
export * from './AutoOrderItemFutureSchedule';
|
|
30
31
|
export * from './AutoOrderItemOption';
|
|
@@ -173,6 +174,8 @@ export * from './ConversationPbxAgentResponse';
|
|
|
173
174
|
export * from './ConversationPbxAgentsResponse';
|
|
174
175
|
export * from './ConversationPbxAudio';
|
|
175
176
|
export * from './ConversationPbxAudioResponse';
|
|
177
|
+
export * from './ConversationPbxAudioUploadUrl';
|
|
178
|
+
export * from './ConversationPbxAudioUploadUrlResponse';
|
|
176
179
|
export * from './ConversationPbxAudiosResponse';
|
|
177
180
|
export * from './ConversationPbxCustomerSnapshotRequest';
|
|
178
181
|
export * from './ConversationPbxCustomerSnapshotResponse';
|