ultracart_rest_api_v2_typescript 4.0.98-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 +1 -0
- package/README.md +3 -2
- package/dist/models/ConversationAutocompleteResponse.d.ts +3 -2
- package/dist/models/ConversationAutocompleteResponse.js +3 -2
- package/dist/models/ConversationAutocompleteValue.d.ts +33 -0
- package/dist/models/ConversationAutocompleteValue.js +44 -0
- package/dist/models/ConversationSearchRequest.d.ts +12 -0
- package/dist/models/ConversationSearchRequest.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationAutocompleteResponse.ts +10 -4
- package/src/models/ConversationAutocompleteValue.ts +64 -0
- package/src/models/ConversationSearchRequest.ts +16 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -146,6 +146,7 @@ src/models/ConversationAgentAuth.ts
|
|
|
146
146
|
src/models/ConversationAgentAuthResponse.ts
|
|
147
147
|
src/models/ConversationAutocompleteRequest.ts
|
|
148
148
|
src/models/ConversationAutocompleteResponse.ts
|
|
149
|
+
src/models/ConversationAutocompleteValue.ts
|
|
149
150
|
src/models/ConversationCannedMessage.ts
|
|
150
151
|
src/models/ConversationCannedMessageResponse.ts
|
|
151
152
|
src/models/ConversationCannedMessagesResponse.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,7 @@ 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 |
|
|
57
58
|
| 4.0.98-RC | 12/15/2022 | conversation searching |
|
|
58
59
|
| 4.0.97-RC | 12/13/2022 | conversations - add email and sms_phone to participant object |
|
|
59
60
|
| 4.0.96-RC | 12/09/2022 | conversations - message translation |
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationAutocompleteValue } from './ConversationAutocompleteValue';
|
|
12
13
|
import { ModelError } from './ModelError';
|
|
13
14
|
import { ResponseMetadata } from './ResponseMetadata';
|
|
14
15
|
import { Warning } from './Warning';
|
|
@@ -38,10 +39,10 @@ export interface ConversationAutocompleteResponse {
|
|
|
38
39
|
metadata?: ResponseMetadata;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
|
-
* @type {Array<
|
|
42
|
+
* @type {Array<ConversationAutocompleteValue>}
|
|
42
43
|
* @memberof ConversationAutocompleteResponse
|
|
43
44
|
*/
|
|
44
|
-
results?: Array<
|
|
45
|
+
results?: Array<ConversationAutocompleteValue>;
|
|
45
46
|
/**
|
|
46
47
|
* Indicates if API call was successful
|
|
47
48
|
* @type {boolean}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationAutocompleteResponseToJSON = exports.ConversationAutocompleteResponseFromJSONTyped = exports.ConversationAutocompleteResponseFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationAutocompleteValue_1 = require("./ConversationAutocompleteValue");
|
|
18
19
|
var ModelError_1 = require("./ModelError");
|
|
19
20
|
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
20
21
|
var Warning_1 = require("./Warning");
|
|
@@ -30,7 +31,7 @@ function ConversationAutocompleteResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
30
31
|
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
31
32
|
'field': !(0, runtime_1.exists)(json, 'field') ? undefined : json['field'],
|
|
32
33
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
33
|
-
'results': !(0, runtime_1.exists)(json, 'results') ? undefined : json['results'],
|
|
34
|
+
'results': !(0, runtime_1.exists)(json, 'results') ? undefined : (json['results'].map(ConversationAutocompleteValue_1.ConversationAutocompleteValueFromJSON)),
|
|
34
35
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
35
36
|
'term': !(0, runtime_1.exists)(json, 'term') ? undefined : json['term'],
|
|
36
37
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
@@ -48,7 +49,7 @@ function ConversationAutocompleteResponseToJSON(value) {
|
|
|
48
49
|
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
49
50
|
'field': value.field,
|
|
50
51
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
51
|
-
'results': value.results,
|
|
52
|
+
'results': value.results === undefined ? undefined : (value.results.map(ConversationAutocompleteValue_1.ConversationAutocompleteValueToJSON)),
|
|
52
53
|
'success': value.success,
|
|
53
54
|
'term': value.term,
|
|
54
55
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
@@ -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;
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface ConversationSearchRequest
|
|
16
16
|
*/
|
|
17
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;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -24,6 +24,8 @@ function ConversationSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'date_end': !(0, runtime_1.exists)(json, 'date_end') ? undefined : json['date_end'],
|
|
28
|
+
'date_start': !(0, runtime_1.exists)(json, 'date_start') ? undefined : json['date_start'],
|
|
27
29
|
'email_filter': !(0, runtime_1.exists)(json, 'email_filter') ? undefined : json['email_filter'],
|
|
28
30
|
'language_filter': !(0, runtime_1.exists)(json, 'language_filter') ? undefined : json['language_filter'],
|
|
29
31
|
'medium_filter': !(0, runtime_1.exists)(json, 'medium_filter') ? undefined : json['medium_filter'],
|
|
@@ -45,6 +47,8 @@ function ConversationSearchRequestToJSON(value) {
|
|
|
45
47
|
return null;
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
50
|
+
'date_end': value.date_end,
|
|
51
|
+
'date_start': value.date_start,
|
|
48
52
|
'email_filter': value.email_filter,
|
|
49
53
|
'language_filter': value.language_filter,
|
|
50
54
|
'medium_filter': value.medium_filter,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export * from './ConversationAgentAuth';
|
|
|
121
121
|
export * from './ConversationAgentAuthResponse';
|
|
122
122
|
export * from './ConversationAutocompleteRequest';
|
|
123
123
|
export * from './ConversationAutocompleteResponse';
|
|
124
|
+
export * from './ConversationAutocompleteValue';
|
|
124
125
|
export * from './ConversationCannedMessage';
|
|
125
126
|
export * from './ConversationCannedMessageResponse';
|
|
126
127
|
export * from './ConversationCannedMessagesResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -139,6 +139,7 @@ __exportStar(require("./ConversationAgentAuth"), exports);
|
|
|
139
139
|
__exportStar(require("./ConversationAgentAuthResponse"), exports);
|
|
140
140
|
__exportStar(require("./ConversationAutocompleteRequest"), exports);
|
|
141
141
|
__exportStar(require("./ConversationAutocompleteResponse"), exports);
|
|
142
|
+
__exportStar(require("./ConversationAutocompleteValue"), exports);
|
|
142
143
|
__exportStar(require("./ConversationCannedMessage"), exports);
|
|
143
144
|
__exportStar(require("./ConversationCannedMessageResponse"), exports);
|
|
144
145
|
__exportStar(require("./ConversationCannedMessagesResponse"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ConversationAutocompleteValue,
|
|
18
|
+
ConversationAutocompleteValueFromJSON,
|
|
19
|
+
ConversationAutocompleteValueFromJSONTyped,
|
|
20
|
+
ConversationAutocompleteValueToJSON,
|
|
21
|
+
} from './ConversationAutocompleteValue';
|
|
16
22
|
import {
|
|
17
23
|
ModelError,
|
|
18
24
|
ModelErrorFromJSON,
|
|
@@ -58,10 +64,10 @@ export interface ConversationAutocompleteResponse {
|
|
|
58
64
|
metadata?: ResponseMetadata;
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
61
|
-
* @type {Array<
|
|
67
|
+
* @type {Array<ConversationAutocompleteValue>}
|
|
62
68
|
* @memberof ConversationAutocompleteResponse
|
|
63
69
|
*/
|
|
64
|
-
results?: Array<
|
|
70
|
+
results?: Array<ConversationAutocompleteValue>;
|
|
65
71
|
/**
|
|
66
72
|
* Indicates if API call was successful
|
|
67
73
|
* @type {boolean}
|
|
@@ -95,7 +101,7 @@ export function ConversationAutocompleteResponseFromJSONTyped(json: any, ignoreD
|
|
|
95
101
|
'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
|
|
96
102
|
'field': !exists(json, 'field') ? undefined : json['field'],
|
|
97
103
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
98
|
-
'results': !exists(json, 'results') ? undefined : json['results'],
|
|
104
|
+
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(ConversationAutocompleteValueFromJSON)),
|
|
99
105
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
100
106
|
'term': !exists(json, 'term') ? undefined : json['term'],
|
|
101
107
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
@@ -114,7 +120,7 @@ export function ConversationAutocompleteResponseToJSON(value?: ConversationAutoc
|
|
|
114
120
|
'error': ModelErrorToJSON(value.error),
|
|
115
121
|
'field': value.field,
|
|
116
122
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
117
|
-
'results': value.results,
|
|
123
|
+
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(ConversationAutocompleteValueToJSON)),
|
|
118
124
|
'success': value.success,
|
|
119
125
|
'term': value.term,
|
|
120
126
|
'warning': WarningToJSON(value.warning),
|
|
@@ -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 ConversationAutocompleteValue
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationAutocompleteValue {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationAutocompleteValue
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationAutocompleteValue
|
|
32
|
+
*/
|
|
33
|
+
value?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function ConversationAutocompleteValueFromJSON(json: any): ConversationAutocompleteValue {
|
|
37
|
+
return ConversationAutocompleteValueFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConversationAutocompleteValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAutocompleteValue {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
47
|
+
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ConversationAutocompleteValueToJSON(value?: ConversationAutocompleteValue | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'description': value.description,
|
|
61
|
+
'value': value.value,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ConversationSearchRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface ConversationSearchRequest {
|
|
22
|
+
/**
|
|
23
|
+
* End of the range
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationSearchRequest
|
|
26
|
+
*/
|
|
27
|
+
date_end?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Start of the range
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationSearchRequest
|
|
32
|
+
*/
|
|
33
|
+
date_start?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -91,6 +103,8 @@ export function ConversationSearchRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
91
103
|
}
|
|
92
104
|
return {
|
|
93
105
|
|
|
106
|
+
'date_end': !exists(json, 'date_end') ? undefined : json['date_end'],
|
|
107
|
+
'date_start': !exists(json, 'date_start') ? undefined : json['date_start'],
|
|
94
108
|
'email_filter': !exists(json, 'email_filter') ? undefined : json['email_filter'],
|
|
95
109
|
'language_filter': !exists(json, 'language_filter') ? undefined : json['language_filter'],
|
|
96
110
|
'medium_filter': !exists(json, 'medium_filter') ? undefined : json['medium_filter'],
|
|
@@ -113,6 +127,8 @@ export function ConversationSearchRequestToJSON(value?: ConversationSearchReques
|
|
|
113
127
|
}
|
|
114
128
|
return {
|
|
115
129
|
|
|
130
|
+
'date_end': value.date_end,
|
|
131
|
+
'date_start': value.date_start,
|
|
116
132
|
'email_filter': value.email_filter,
|
|
117
133
|
'language_filter': value.language_filter,
|
|
118
134
|
'medium_filter': value.medium_filter,
|
package/src/models/index.ts
CHANGED
|
@@ -123,6 +123,7 @@ export * from './ConversationAgentAuth';
|
|
|
123
123
|
export * from './ConversationAgentAuthResponse';
|
|
124
124
|
export * from './ConversationAutocompleteRequest';
|
|
125
125
|
export * from './ConversationAutocompleteResponse';
|
|
126
|
+
export * from './ConversationAutocompleteValue';
|
|
126
127
|
export * from './ConversationCannedMessage';
|
|
127
128
|
export * from './ConversationCannedMessageResponse';
|
|
128
129
|
export * from './ConversationCannedMessagesResponse';
|