ultracart_rest_api_v2_typescript 4.0.97-RC → 4.0.99-RC
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +4 -2
- package/dist/apis/ConversationApi.d.ts +55 -1
- package/dist/apis/ConversationApi.js +122 -0
- package/dist/models/ConversationAutocompleteRequest.d.ts +33 -0
- package/dist/models/ConversationAutocompleteRequest.js +44 -0
- package/dist/models/ConversationAutocompleteResponse.d.ts +67 -0
- package/dist/models/ConversationAutocompleteResponse.js +58 -0
- package/dist/models/ConversationAutocompleteValue.d.ts +33 -0
- package/dist/models/ConversationAutocompleteValue.js +44 -0
- package/dist/models/ConversationSearchRequest.d.ts +93 -0
- package/dist/models/ConversationSearchRequest.js +64 -0
- package/dist/models/ConversationSearchResponse.d.ts +39 -0
- package/dist/models/ConversationSearchResponse.js +46 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ConversationApi.ts +140 -0
- package/src/models/ConversationAutocompleteRequest.ts +64 -0
- package/src/models/ConversationAutocompleteResponse.ts +129 -0
- package/src/models/ConversationAutocompleteValue.ts +64 -0
- package/src/models/ConversationSearchRequest.ts +144 -0
- package/src/models/ConversationSearchResponse.ts +72 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -144,6 +144,9 @@ src/models/CityStateZip.ts
|
|
|
144
144
|
src/models/Conversation.ts
|
|
145
145
|
src/models/ConversationAgentAuth.ts
|
|
146
146
|
src/models/ConversationAgentAuthResponse.ts
|
|
147
|
+
src/models/ConversationAutocompleteRequest.ts
|
|
148
|
+
src/models/ConversationAutocompleteResponse.ts
|
|
149
|
+
src/models/ConversationAutocompleteValue.ts
|
|
147
150
|
src/models/ConversationCannedMessage.ts
|
|
148
151
|
src/models/ConversationCannedMessageResponse.ts
|
|
149
152
|
src/models/ConversationCannedMessagesResponse.ts
|
|
@@ -170,6 +173,8 @@ src/models/ConversationMultimediaUploadUrl.ts
|
|
|
170
173
|
src/models/ConversationMultimediaUploadUrlResponse.ts
|
|
171
174
|
src/models/ConversationParticipant.ts
|
|
172
175
|
src/models/ConversationResponse.ts
|
|
176
|
+
src/models/ConversationSearchRequest.ts
|
|
177
|
+
src/models/ConversationSearchResponse.ts
|
|
173
178
|
src/models/ConversationStartRequest.ts
|
|
174
179
|
src/models/ConversationStartResponse.ts
|
|
175
180
|
src/models/ConversationSummary.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.99-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.99-RC --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.99-RC | 12/15/2022 | conversation search - added start date filtering |
|
|
58
|
+
| 4.0.98-RC | 12/15/2022 | conversation searching |
|
|
57
59
|
| 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
|
|
58
60
|
| 4.0.96-RC | 12/09/2022 | conversations - message translation |
|
|
59
61
|
| 4.0.95-RC | 12/08/2022 | conversation canned messages |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { ConversationAgentAuthResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDepartment, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationJoinRequest, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
13
|
+
import { ConversationAgentAuthResponse, ConversationAutocompleteRequest, ConversationAutocompleteResponse, ConversationCannedMessage, ConversationCannedMessageResponse, ConversationCannedMessagesResponse, ConversationCannedMessagesSearch, ConversationDepartment, ConversationDepartmentResponse, ConversationDepartmentsResponse, ConversationEngagement, ConversationEngagementResponse, ConversationEngagementsResponse, ConversationJoinRequest, ConversationMessagesResponse, ConversationMultimediaUploadUrlResponse, ConversationResponse, ConversationSearchRequest, ConversationSearchResponse, ConversationStartRequest, ConversationStartResponse, ConversationWebchatContext, ConversationWebchatQueueStatusUpdateRequest, ConversationWebchatQueueStatusesResponse, ConversationsResponse } from '../models';
|
|
14
14
|
export interface GetConversationRequest {
|
|
15
15
|
conversationUuid: string;
|
|
16
16
|
limit?: number;
|
|
@@ -32,6 +32,12 @@ export interface GetConversationsRequest {
|
|
|
32
32
|
limit?: number;
|
|
33
33
|
offset?: number;
|
|
34
34
|
}
|
|
35
|
+
export interface GetConversationsAutocompleteRequest {
|
|
36
|
+
autocompleteRequest: ConversationAutocompleteRequest;
|
|
37
|
+
}
|
|
38
|
+
export interface GetConversationsSearchRequest {
|
|
39
|
+
searchRequest: ConversationSearchRequest;
|
|
40
|
+
}
|
|
35
41
|
export interface InsertConversationCannedMessageRequest {
|
|
36
42
|
cannedMessage: ConversationCannedMessage;
|
|
37
43
|
}
|
|
@@ -234,6 +240,34 @@ export interface ConversationApiInterface {
|
|
|
234
240
|
* Retrieve a list of conversation summaries newest to oldest
|
|
235
241
|
*/
|
|
236
242
|
getConversations(requestParameters: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
|
|
243
|
+
/**
|
|
244
|
+
* Retrieve a list of matching terms for a search field
|
|
245
|
+
* @summary Retrieve a list of matching terms for a search field
|
|
246
|
+
* @param {ConversationAutocompleteRequest} autocompleteRequest Autocomplete Request
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
* @memberof ConversationApiInterface
|
|
250
|
+
*/
|
|
251
|
+
getConversationsAutocompleteRaw(requestParameters: GetConversationsAutocompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAutocompleteResponse>>;
|
|
252
|
+
/**
|
|
253
|
+
* Retrieve a list of matching terms for a search field
|
|
254
|
+
* Retrieve a list of matching terms for a search field
|
|
255
|
+
*/
|
|
256
|
+
getConversationsAutocomplete(requestParameters: GetConversationsAutocompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAutocompleteResponse>;
|
|
257
|
+
/**
|
|
258
|
+
* Search conversations
|
|
259
|
+
* @summary Search conversations
|
|
260
|
+
* @param {ConversationSearchRequest} searchRequest Search Request
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof ConversationApiInterface
|
|
264
|
+
*/
|
|
265
|
+
getConversationsSearchRaw(requestParameters: GetConversationsSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationSearchResponse>>;
|
|
266
|
+
/**
|
|
267
|
+
* Search conversations
|
|
268
|
+
* Search conversations
|
|
269
|
+
*/
|
|
270
|
+
getConversationsSearch(requestParameters: GetConversationsSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationSearchResponse>;
|
|
237
271
|
/**
|
|
238
272
|
* Insert a canned message
|
|
239
273
|
* @summary Insert a canned message
|
|
@@ -522,6 +556,26 @@ export declare class ConversationApi extends runtime.BaseAPI implements Conversa
|
|
|
522
556
|
* Retrieve a list of conversation summaries newest to oldest
|
|
523
557
|
*/
|
|
524
558
|
getConversations(requestParameters?: GetConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationsResponse>;
|
|
559
|
+
/**
|
|
560
|
+
* Retrieve a list of matching terms for a search field
|
|
561
|
+
* Retrieve a list of matching terms for a search field
|
|
562
|
+
*/
|
|
563
|
+
getConversationsAutocompleteRaw(requestParameters: GetConversationsAutocompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationAutocompleteResponse>>;
|
|
564
|
+
/**
|
|
565
|
+
* Retrieve a list of matching terms for a search field
|
|
566
|
+
* Retrieve a list of matching terms for a search field
|
|
567
|
+
*/
|
|
568
|
+
getConversationsAutocomplete(requestParameters: GetConversationsAutocompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationAutocompleteResponse>;
|
|
569
|
+
/**
|
|
570
|
+
* Search conversations
|
|
571
|
+
* Search conversations
|
|
572
|
+
*/
|
|
573
|
+
getConversationsSearchRaw(requestParameters: GetConversationsSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationSearchResponse>>;
|
|
574
|
+
/**
|
|
575
|
+
* Search conversations
|
|
576
|
+
* Search conversations
|
|
577
|
+
*/
|
|
578
|
+
getConversationsSearch(requestParameters: GetConversationsSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationSearchResponse>;
|
|
525
579
|
/**
|
|
526
580
|
* Insert a canned message
|
|
527
581
|
* Insert a canned message
|
|
@@ -723,6 +723,128 @@ var ConversationApi = /** @class */ (function (_super) {
|
|
|
723
723
|
});
|
|
724
724
|
});
|
|
725
725
|
};
|
|
726
|
+
/**
|
|
727
|
+
* Retrieve a list of matching terms for a search field
|
|
728
|
+
* Retrieve a list of matching terms for a search field
|
|
729
|
+
*/
|
|
730
|
+
ConversationApi.prototype.getConversationsAutocompleteRaw = function (requestParameters, initOverrides) {
|
|
731
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
732
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
733
|
+
return __generator(this, function (_c) {
|
|
734
|
+
switch (_c.label) {
|
|
735
|
+
case 0:
|
|
736
|
+
if (requestParameters.autocompleteRequest === null || requestParameters.autocompleteRequest === undefined) {
|
|
737
|
+
throw new runtime.RequiredError('autocompleteRequest', 'Required parameter requestParameters.autocompleteRequest was null or undefined when calling getConversationsAutocomplete.');
|
|
738
|
+
}
|
|
739
|
+
queryParameters = {};
|
|
740
|
+
headerParameters = {};
|
|
741
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
742
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
743
|
+
// oauth required
|
|
744
|
+
_a = headerParameters;
|
|
745
|
+
_b = "Authorization";
|
|
746
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
|
|
747
|
+
case 1:
|
|
748
|
+
// oauth required
|
|
749
|
+
_a[_b] = _c.sent();
|
|
750
|
+
_c.label = 2;
|
|
751
|
+
case 2:
|
|
752
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
753
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
754
|
+
}
|
|
755
|
+
return [4 /*yield*/, this.request({
|
|
756
|
+
path: "/conversation/conversations/autocomplete",
|
|
757
|
+
method: 'POST',
|
|
758
|
+
headers: headerParameters,
|
|
759
|
+
query: queryParameters,
|
|
760
|
+
body: (0, models_1.ConversationAutocompleteRequestToJSON)(requestParameters.autocompleteRequest),
|
|
761
|
+
}, initOverrides)];
|
|
762
|
+
case 3:
|
|
763
|
+
response = _c.sent();
|
|
764
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationAutocompleteResponseFromJSON)(jsonValue); })];
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Retrieve a list of matching terms for a search field
|
|
771
|
+
* Retrieve a list of matching terms for a search field
|
|
772
|
+
*/
|
|
773
|
+
ConversationApi.prototype.getConversationsAutocomplete = function (requestParameters, initOverrides) {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
775
|
+
var response;
|
|
776
|
+
return __generator(this, function (_a) {
|
|
777
|
+
switch (_a.label) {
|
|
778
|
+
case 0: return [4 /*yield*/, this.getConversationsAutocompleteRaw(requestParameters, initOverrides)];
|
|
779
|
+
case 1:
|
|
780
|
+
response = _a.sent();
|
|
781
|
+
return [4 /*yield*/, response.value()];
|
|
782
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
/**
|
|
788
|
+
* Search conversations
|
|
789
|
+
* Search conversations
|
|
790
|
+
*/
|
|
791
|
+
ConversationApi.prototype.getConversationsSearchRaw = function (requestParameters, initOverrides) {
|
|
792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
793
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
794
|
+
return __generator(this, function (_c) {
|
|
795
|
+
switch (_c.label) {
|
|
796
|
+
case 0:
|
|
797
|
+
if (requestParameters.searchRequest === null || requestParameters.searchRequest === undefined) {
|
|
798
|
+
throw new runtime.RequiredError('searchRequest', 'Required parameter requestParameters.searchRequest was null or undefined when calling getConversationsSearch.');
|
|
799
|
+
}
|
|
800
|
+
queryParameters = {};
|
|
801
|
+
headerParameters = {};
|
|
802
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
803
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
804
|
+
// oauth required
|
|
805
|
+
_a = headerParameters;
|
|
806
|
+
_b = "Authorization";
|
|
807
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["conversation_read"])];
|
|
808
|
+
case 1:
|
|
809
|
+
// oauth required
|
|
810
|
+
_a[_b] = _c.sent();
|
|
811
|
+
_c.label = 2;
|
|
812
|
+
case 2:
|
|
813
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
814
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
815
|
+
}
|
|
816
|
+
return [4 /*yield*/, this.request({
|
|
817
|
+
path: "/conversation/conversations/search",
|
|
818
|
+
method: 'POST',
|
|
819
|
+
headers: headerParameters,
|
|
820
|
+
query: queryParameters,
|
|
821
|
+
body: (0, models_1.ConversationSearchRequestToJSON)(requestParameters.searchRequest),
|
|
822
|
+
}, initOverrides)];
|
|
823
|
+
case 3:
|
|
824
|
+
response = _c.sent();
|
|
825
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ConversationSearchResponseFromJSON)(jsonValue); })];
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* Search conversations
|
|
832
|
+
* Search conversations
|
|
833
|
+
*/
|
|
834
|
+
ConversationApi.prototype.getConversationsSearch = function (requestParameters, initOverrides) {
|
|
835
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
836
|
+
var response;
|
|
837
|
+
return __generator(this, function (_a) {
|
|
838
|
+
switch (_a.label) {
|
|
839
|
+
case 0: return [4 /*yield*/, this.getConversationsSearchRaw(requestParameters, initOverrides)];
|
|
840
|
+
case 1:
|
|
841
|
+
response = _a.sent();
|
|
842
|
+
return [4 /*yield*/, response.value()];
|
|
843
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
});
|
|
847
|
+
};
|
|
726
848
|
/**
|
|
727
849
|
* Insert a canned message
|
|
728
850
|
* Insert a canned message
|
|
@@ -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 ConversationAutocompleteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationAutocompleteRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationAutocompleteRequest
|
|
22
|
+
*/
|
|
23
|
+
field?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationAutocompleteRequest
|
|
28
|
+
*/
|
|
29
|
+
term?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationAutocompleteRequestFromJSON(json: any): ConversationAutocompleteRequest;
|
|
32
|
+
export declare function ConversationAutocompleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAutocompleteRequest;
|
|
33
|
+
export declare function ConversationAutocompleteRequestToJSON(value?: ConversationAutocompleteRequest | 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.ConversationAutocompleteRequestToJSON = exports.ConversationAutocompleteRequestFromJSONTyped = exports.ConversationAutocompleteRequestFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationAutocompleteRequestFromJSON(json) {
|
|
19
|
+
return ConversationAutocompleteRequestFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationAutocompleteRequestFromJSON = ConversationAutocompleteRequestFromJSON;
|
|
22
|
+
function ConversationAutocompleteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'field': !(0, runtime_1.exists)(json, 'field') ? undefined : json['field'],
|
|
28
|
+
'term': !(0, runtime_1.exists)(json, 'term') ? undefined : json['term'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationAutocompleteRequestFromJSONTyped = ConversationAutocompleteRequestFromJSONTyped;
|
|
32
|
+
function ConversationAutocompleteRequestToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'field': value.field,
|
|
41
|
+
'term': value.term,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationAutocompleteRequestToJSON = ConversationAutocompleteRequestToJSON;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 { ConversationAutocompleteValue } from './ConversationAutocompleteValue';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConversationAutocompleteResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationAutocompleteResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ModelError}
|
|
25
|
+
* @memberof ConversationAutocompleteResponse
|
|
26
|
+
*/
|
|
27
|
+
error?: ModelError;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationAutocompleteResponse
|
|
32
|
+
*/
|
|
33
|
+
field?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResponseMetadata}
|
|
37
|
+
* @memberof ConversationAutocompleteResponse
|
|
38
|
+
*/
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<ConversationAutocompleteValue>}
|
|
43
|
+
* @memberof ConversationAutocompleteResponse
|
|
44
|
+
*/
|
|
45
|
+
results?: Array<ConversationAutocompleteValue>;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates if API call was successful
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof ConversationAutocompleteResponse
|
|
50
|
+
*/
|
|
51
|
+
success?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ConversationAutocompleteResponse
|
|
56
|
+
*/
|
|
57
|
+
term?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Warning}
|
|
61
|
+
* @memberof ConversationAutocompleteResponse
|
|
62
|
+
*/
|
|
63
|
+
warning?: Warning;
|
|
64
|
+
}
|
|
65
|
+
export declare function ConversationAutocompleteResponseFromJSON(json: any): ConversationAutocompleteResponse;
|
|
66
|
+
export declare function ConversationAutocompleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAutocompleteResponse;
|
|
67
|
+
export declare function ConversationAutocompleteResponseToJSON(value?: ConversationAutocompleteResponse | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ConversationAutocompleteResponseToJSON = exports.ConversationAutocompleteResponseFromJSONTyped = exports.ConversationAutocompleteResponseFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationAutocompleteValue_1 = require("./ConversationAutocompleteValue");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
function ConversationAutocompleteResponseFromJSON(json) {
|
|
23
|
+
return ConversationAutocompleteResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
exports.ConversationAutocompleteResponseFromJSON = ConversationAutocompleteResponseFromJSON;
|
|
26
|
+
function ConversationAutocompleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
32
|
+
'field': !(0, runtime_1.exists)(json, 'field') ? undefined : json['field'],
|
|
33
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
34
|
+
'results': !(0, runtime_1.exists)(json, 'results') ? undefined : (json['results'].map(ConversationAutocompleteValue_1.ConversationAutocompleteValueFromJSON)),
|
|
35
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
36
|
+
'term': !(0, runtime_1.exists)(json, 'term') ? undefined : json['term'],
|
|
37
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ConversationAutocompleteResponseFromJSONTyped = ConversationAutocompleteResponseFromJSONTyped;
|
|
41
|
+
function ConversationAutocompleteResponseToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
50
|
+
'field': value.field,
|
|
51
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
52
|
+
'results': value.results === undefined ? undefined : (value.results.map(ConversationAutocompleteValue_1.ConversationAutocompleteValueToJSON)),
|
|
53
|
+
'success': value.success,
|
|
54
|
+
'term': value.term,
|
|
55
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.ConversationAutocompleteResponseToJSON = ConversationAutocompleteResponseToJSON;
|
|
@@ -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 ConversationAutocompleteValue
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationAutocompleteValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationAutocompleteValue
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationAutocompleteValue
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationAutocompleteValueFromJSON(json: any): ConversationAutocompleteValue;
|
|
32
|
+
export declare function ConversationAutocompleteValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAutocompleteValue;
|
|
33
|
+
export declare function ConversationAutocompleteValueToJSON(value?: ConversationAutocompleteValue | 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.ConversationAutocompleteValueToJSON = exports.ConversationAutocompleteValueFromJSONTyped = exports.ConversationAutocompleteValueFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationAutocompleteValueFromJSON(json) {
|
|
19
|
+
return ConversationAutocompleteValueFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationAutocompleteValueFromJSON = ConversationAutocompleteValueFromJSON;
|
|
22
|
+
function ConversationAutocompleteValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
|
|
28
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationAutocompleteValueFromJSONTyped = ConversationAutocompleteValueFromJSONTyped;
|
|
32
|
+
function ConversationAutocompleteValueToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'description': value.description,
|
|
41
|
+
'value': value.value,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationAutocompleteValueToJSON = ConversationAutocompleteValueToJSON;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ConversationSearchRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationSearchRequest {
|
|
18
|
+
/**
|
|
19
|
+
* End of the range
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationSearchRequest
|
|
22
|
+
*/
|
|
23
|
+
date_end?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Start of the range
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationSearchRequest
|
|
28
|
+
*/
|
|
29
|
+
date_start?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationSearchRequest
|
|
34
|
+
*/
|
|
35
|
+
email_filter?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ConversationSearchRequest
|
|
40
|
+
*/
|
|
41
|
+
language_filter?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationSearchRequest
|
|
46
|
+
*/
|
|
47
|
+
medium_filter?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ConversationSearchRequest
|
|
52
|
+
*/
|
|
53
|
+
order_by_newest?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof ConversationSearchRequest
|
|
58
|
+
*/
|
|
59
|
+
order_by_oldest?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ConversationSearchRequest
|
|
64
|
+
*/
|
|
65
|
+
range_begin?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ConversationSearchRequest
|
|
70
|
+
*/
|
|
71
|
+
range_end?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ConversationSearchRequest
|
|
76
|
+
*/
|
|
77
|
+
sms_phone_number_filter?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ConversationSearchRequest
|
|
82
|
+
*/
|
|
83
|
+
text_search?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof ConversationSearchRequest
|
|
88
|
+
*/
|
|
89
|
+
visible_filter?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export declare function ConversationSearchRequestFromJSON(json: any): ConversationSearchRequest;
|
|
92
|
+
export declare function ConversationSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationSearchRequest;
|
|
93
|
+
export declare function ConversationSearchRequestToJSON(value?: ConversationSearchRequest | null): any;
|