ultracart_rest_api_v2_typescript 4.0.95-RC → 4.0.96-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/ConversationCannedMessage.d.ts +1 -1
- package/dist/models/ConversationCannedMessage.js +2 -2
- package/dist/models/ConversationMessage.d.ts +13 -0
- package/dist/models/ConversationMessage.js +5 -0
- package/dist/models/ConversationMessageTranslation.d.ts +33 -0
- package/dist/models/ConversationMessageTranslation.js +44 -0
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationCannedMessage.ts +3 -3
- package/src/models/ConversationMessage.ts +22 -0
- package/src/models/ConversationMessageTranslation.ts +64 -0
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -156,6 +156,7 @@ src/models/ConversationEventReadMessage.ts
|
|
|
156
156
|
src/models/ConversationEventTyping.ts
|
|
157
157
|
src/models/ConversationEventWebchatContext.ts
|
|
158
158
|
src/models/ConversationMessage.ts
|
|
159
|
+
src/models/ConversationMessageTranslation.ts
|
|
159
160
|
src/models/ConversationMessageTransportStatus.ts
|
|
160
161
|
src/models/ConversationMessagesResponse.ts
|
|
161
162
|
src/models/ConversationMultimediaUploadUrl.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.96-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.96-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.96-RC | 12/09/2022 | conversations - message translation |
|
|
57
58
|
| 4.0.95-RC | 12/08/2022 | conversation canned messages |
|
|
58
59
|
| 4.0.94-RC | 12/08/2022 | communications - expose the rebuild percentage |
|
|
59
60
|
| 4.0.93-RC | 12/06/2022 | convo - add session_start_dts to webchat context, cart - add customer_profile.signup_dts |
|
|
@@ -26,7 +26,7 @@ function ConversationCannedMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return {
|
|
27
27
|
'canned_message': !(0, runtime_1.exists)(json, 'canned_message') ? undefined : json['canned_message'],
|
|
28
28
|
'conversation_canned_message_oid': !(0, runtime_1.exists)(json, 'conversation_canned_message_oid') ? undefined : json['conversation_canned_message_oid'],
|
|
29
|
-
'
|
|
29
|
+
'conversation_department_oids': !(0, runtime_1.exists)(json, 'conversation_department_oids') ? undefined : json['conversation_department_oids'],
|
|
30
30
|
'short_code': !(0, runtime_1.exists)(json, 'short_code') ? undefined : json['short_code'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -41,7 +41,7 @@ function ConversationCannedMessageToJSON(value) {
|
|
|
41
41
|
return {
|
|
42
42
|
'canned_message': value.canned_message,
|
|
43
43
|
'conversation_canned_message_oid': value.conversation_canned_message_oid,
|
|
44
|
-
'
|
|
44
|
+
'conversation_department_oids': value.conversation_department_oids,
|
|
45
45
|
'short_code': value.short_code,
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ConversationMessageTranslation } from './ConversationMessageTranslation';
|
|
12
13
|
import { ConversationMessageTransportStatus } from './ConversationMessageTransportStatus';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -52,6 +53,12 @@ export interface ConversationMessage {
|
|
|
52
53
|
* @memberof ConversationMessage
|
|
53
54
|
*/
|
|
54
55
|
delay_until_dts?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ConversationMessage
|
|
60
|
+
*/
|
|
61
|
+
language_iso_code?: string;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {Array<string>}
|
|
@@ -76,6 +83,12 @@ export interface ConversationMessage {
|
|
|
76
83
|
* @memberof ConversationMessage
|
|
77
84
|
*/
|
|
78
85
|
message_epoch?: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Array<ConversationMessageTranslation>}
|
|
89
|
+
* @memberof ConversationMessage
|
|
90
|
+
*/
|
|
91
|
+
translations?: Array<ConversationMessageTranslation>;
|
|
79
92
|
/**
|
|
80
93
|
*
|
|
81
94
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationMessageToJSON = exports.ConversationMessageFromJSONTyped = exports.ConversationMessageFromJSON = exports.ConversationMessageTypeEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var ConversationMessageTranslation_1 = require("./ConversationMessageTranslation");
|
|
18
19
|
var ConversationMessageTransportStatus_1 = require("./ConversationMessageTransportStatus");
|
|
19
20
|
/**
|
|
20
21
|
* @export
|
|
@@ -38,10 +39,12 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'client_message_id': !(0, runtime_1.exists)(json, 'client_message_id') ? undefined : json['client_message_id'],
|
|
39
40
|
'conversation_message_uuid': !(0, runtime_1.exists)(json, 'conversation_message_uuid') ? undefined : json['conversation_message_uuid'],
|
|
40
41
|
'delay_until_dts': !(0, runtime_1.exists)(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
|
|
42
|
+
'language_iso_code': !(0, runtime_1.exists)(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
41
43
|
'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
|
|
42
44
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
43
45
|
'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
|
|
44
46
|
'message_epoch': !(0, runtime_1.exists)(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
47
|
+
'translations': !(0, runtime_1.exists)(json, 'translations') ? undefined : (json['translations'].map(ConversationMessageTranslation_1.ConversationMessageTranslationFromJSON)),
|
|
45
48
|
'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
|
|
46
49
|
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
47
50
|
'upload_keys': !(0, runtime_1.exists)(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
@@ -62,10 +65,12 @@ function ConversationMessageToJSON(value) {
|
|
|
62
65
|
'client_message_id': value.client_message_id,
|
|
63
66
|
'conversation_message_uuid': value.conversation_message_uuid,
|
|
64
67
|
'delay_until_dts': value.delay_until_dts,
|
|
68
|
+
'language_iso_code': value.language_iso_code,
|
|
65
69
|
'media_urls': value.media_urls,
|
|
66
70
|
'merchant_id': value.merchant_id,
|
|
67
71
|
'message_dts': value.message_dts,
|
|
68
72
|
'message_epoch': value.message_epoch,
|
|
73
|
+
'translations': value.translations === undefined ? undefined : (value.translations.map(ConversationMessageTranslation_1.ConversationMessageTranslationToJSON)),
|
|
69
74
|
'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
|
|
70
75
|
'type': value.type,
|
|
71
76
|
'upload_keys': value.upload_keys,
|
|
@@ -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 ConversationMessageTranslation
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationMessageTranslation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationMessageTranslation
|
|
22
|
+
*/
|
|
23
|
+
body?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationMessageTranslation
|
|
28
|
+
*/
|
|
29
|
+
language_iso_code?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ConversationMessageTranslationFromJSON(json: any): ConversationMessageTranslation;
|
|
32
|
+
export declare function ConversationMessageTranslationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageTranslation;
|
|
33
|
+
export declare function ConversationMessageTranslationToJSON(value?: ConversationMessageTranslation | 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.ConversationMessageTranslationToJSON = exports.ConversationMessageTranslationFromJSONTyped = exports.ConversationMessageTranslationFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationMessageTranslationFromJSON(json) {
|
|
19
|
+
return ConversationMessageTranslationFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationMessageTranslationFromJSON = ConversationMessageTranslationFromJSON;
|
|
22
|
+
function ConversationMessageTranslationFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'body': !(0, runtime_1.exists)(json, 'body') ? undefined : json['body'],
|
|
28
|
+
'language_iso_code': !(0, runtime_1.exists)(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ConversationMessageTranslationFromJSONTyped = ConversationMessageTranslationFromJSONTyped;
|
|
32
|
+
function ConversationMessageTranslationToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'body': value.body,
|
|
41
|
+
'language_iso_code': value.language_iso_code,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ConversationMessageTranslationToJSON = ConversationMessageTranslationToJSON;
|
|
@@ -39,6 +39,12 @@ export interface ConversationParticipant {
|
|
|
39
39
|
* @memberof ConversationParticipant
|
|
40
40
|
*/
|
|
41
41
|
joined_dts?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConversationParticipant
|
|
46
|
+
*/
|
|
47
|
+
language_iso_code?: string;
|
|
42
48
|
/**
|
|
43
49
|
* Last message date/time
|
|
44
50
|
* @type {string}
|
|
@@ -28,6 +28,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
29
29
|
'conversation_participant_uuid': !(0, runtime_1.exists)(json, 'conversation_participant_uuid') ? undefined : json['conversation_participant_uuid'],
|
|
30
30
|
'joined_dts': !(0, runtime_1.exists)(json, 'joined_dts') ? undefined : json['joined_dts'],
|
|
31
|
+
'language_iso_code': !(0, runtime_1.exists)(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
31
32
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
32
33
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
34
|
'profile_image_url': !(0, runtime_1.exists)(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
@@ -49,6 +50,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
49
50
|
'conversation_participant_name': value.conversation_participant_name,
|
|
50
51
|
'conversation_participant_uuid': value.conversation_participant_uuid,
|
|
51
52
|
'joined_dts': value.joined_dts,
|
|
53
|
+
'language_iso_code': value.language_iso_code,
|
|
52
54
|
'last_message_dts': value.last_message_dts,
|
|
53
55
|
'left_dts': value.left_dts,
|
|
54
56
|
'profile_image_url': value.profile_image_url,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export * from './ConversationEventReadMessage';
|
|
|
131
131
|
export * from './ConversationEventTyping';
|
|
132
132
|
export * from './ConversationEventWebchatContext';
|
|
133
133
|
export * from './ConversationMessage';
|
|
134
|
+
export * from './ConversationMessageTranslation';
|
|
134
135
|
export * from './ConversationMessageTransportStatus';
|
|
135
136
|
export * from './ConversationMessagesResponse';
|
|
136
137
|
export * from './ConversationMultimediaUploadUrl';
|
package/dist/models/index.js
CHANGED
|
@@ -149,6 +149,7 @@ __exportStar(require("./ConversationEventReadMessage"), exports);
|
|
|
149
149
|
__exportStar(require("./ConversationEventTyping"), exports);
|
|
150
150
|
__exportStar(require("./ConversationEventWebchatContext"), exports);
|
|
151
151
|
__exportStar(require("./ConversationMessage"), exports);
|
|
152
|
+
__exportStar(require("./ConversationMessageTranslation"), exports);
|
|
152
153
|
__exportStar(require("./ConversationMessageTransportStatus"), exports);
|
|
153
154
|
__exportStar(require("./ConversationMessagesResponse"), exports);
|
|
154
155
|
__exportStar(require("./ConversationMultimediaUploadUrl"), exports);
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface ConversationCannedMessage {
|
|
|
36
36
|
* @type {Array<string>}
|
|
37
37
|
* @memberof ConversationCannedMessage
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
conversation_department_oids?: Array<string>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -57,7 +57,7 @@ export function ConversationCannedMessageFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
57
57
|
|
|
58
58
|
'canned_message': !exists(json, 'canned_message') ? undefined : json['canned_message'],
|
|
59
59
|
'conversation_canned_message_oid': !exists(json, 'conversation_canned_message_oid') ? undefined : json['conversation_canned_message_oid'],
|
|
60
|
-
'
|
|
60
|
+
'conversation_department_oids': !exists(json, 'conversation_department_oids') ? undefined : json['conversation_department_oids'],
|
|
61
61
|
'short_code': !exists(json, 'short_code') ? undefined : json['short_code'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -73,7 +73,7 @@ export function ConversationCannedMessageToJSON(value?: ConversationCannedMessag
|
|
|
73
73
|
|
|
74
74
|
'canned_message': value.canned_message,
|
|
75
75
|
'conversation_canned_message_oid': value.conversation_canned_message_oid,
|
|
76
|
-
'
|
|
76
|
+
'conversation_department_oids': value.conversation_department_oids,
|
|
77
77
|
'short_code': value.short_code,
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ConversationMessageTranslation,
|
|
18
|
+
ConversationMessageTranslationFromJSON,
|
|
19
|
+
ConversationMessageTranslationFromJSONTyped,
|
|
20
|
+
ConversationMessageTranslationToJSON,
|
|
21
|
+
} from './ConversationMessageTranslation';
|
|
16
22
|
import {
|
|
17
23
|
ConversationMessageTransportStatus,
|
|
18
24
|
ConversationMessageTransportStatusFromJSON,
|
|
@@ -62,6 +68,12 @@ export interface ConversationMessage {
|
|
|
62
68
|
* @memberof ConversationMessage
|
|
63
69
|
*/
|
|
64
70
|
delay_until_dts?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ConversationMessage
|
|
75
|
+
*/
|
|
76
|
+
language_iso_code?: string;
|
|
65
77
|
/**
|
|
66
78
|
*
|
|
67
79
|
* @type {Array<string>}
|
|
@@ -86,6 +98,12 @@ export interface ConversationMessage {
|
|
|
86
98
|
* @memberof ConversationMessage
|
|
87
99
|
*/
|
|
88
100
|
message_epoch?: number;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<ConversationMessageTranslation>}
|
|
104
|
+
* @memberof ConversationMessage
|
|
105
|
+
*/
|
|
106
|
+
translations?: Array<ConversationMessageTranslation>;
|
|
89
107
|
/**
|
|
90
108
|
*
|
|
91
109
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -133,10 +151,12 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
133
151
|
'client_message_id': !exists(json, 'client_message_id') ? undefined : json['client_message_id'],
|
|
134
152
|
'conversation_message_uuid': !exists(json, 'conversation_message_uuid') ? undefined : json['conversation_message_uuid'],
|
|
135
153
|
'delay_until_dts': !exists(json, 'delay_until_dts') ? undefined : json['delay_until_dts'],
|
|
154
|
+
'language_iso_code': !exists(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
136
155
|
'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
|
|
137
156
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
138
157
|
'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
|
|
139
158
|
'message_epoch': !exists(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
159
|
+
'translations': !exists(json, 'translations') ? undefined : ((json['translations'] as Array<any>).map(ConversationMessageTranslationFromJSON)),
|
|
140
160
|
'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
|
|
141
161
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
142
162
|
'upload_keys': !exists(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
@@ -158,10 +178,12 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
|
|
|
158
178
|
'client_message_id': value.client_message_id,
|
|
159
179
|
'conversation_message_uuid': value.conversation_message_uuid,
|
|
160
180
|
'delay_until_dts': value.delay_until_dts,
|
|
181
|
+
'language_iso_code': value.language_iso_code,
|
|
161
182
|
'media_urls': value.media_urls,
|
|
162
183
|
'merchant_id': value.merchant_id,
|
|
163
184
|
'message_dts': value.message_dts,
|
|
164
185
|
'message_epoch': value.message_epoch,
|
|
186
|
+
'translations': value.translations === undefined ? undefined : ((value.translations as Array<any>).map(ConversationMessageTranslationToJSON)),
|
|
165
187
|
'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
|
|
166
188
|
'type': value.type,
|
|
167
189
|
'upload_keys': value.upload_keys,
|
|
@@ -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 ConversationMessageTranslation
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationMessageTranslation {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationMessageTranslation
|
|
26
|
+
*/
|
|
27
|
+
body?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationMessageTranslation
|
|
32
|
+
*/
|
|
33
|
+
language_iso_code?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function ConversationMessageTranslationFromJSON(json: any): ConversationMessageTranslation {
|
|
37
|
+
return ConversationMessageTranslationFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConversationMessageTranslationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageTranslation {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'body': !exists(json, 'body') ? undefined : json['body'],
|
|
47
|
+
'language_iso_code': !exists(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ConversationMessageTranslationToJSON(value?: ConversationMessageTranslation | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'body': value.body,
|
|
61
|
+
'language_iso_code': value.language_iso_code,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -43,6 +43,12 @@ export interface ConversationParticipant {
|
|
|
43
43
|
* @memberof ConversationParticipant
|
|
44
44
|
*/
|
|
45
45
|
joined_dts?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConversationParticipant
|
|
50
|
+
*/
|
|
51
|
+
language_iso_code?: string;
|
|
46
52
|
/**
|
|
47
53
|
* Last message date/time
|
|
48
54
|
* @type {string}
|
|
@@ -95,6 +101,7 @@ export function ConversationParticipantFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
95
101
|
'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
96
102
|
'conversation_participant_uuid': !exists(json, 'conversation_participant_uuid') ? undefined : json['conversation_participant_uuid'],
|
|
97
103
|
'joined_dts': !exists(json, 'joined_dts') ? undefined : json['joined_dts'],
|
|
104
|
+
'language_iso_code': !exists(json, 'language_iso_code') ? undefined : json['language_iso_code'],
|
|
98
105
|
'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
99
106
|
'left_dts': !exists(json, 'left_dts') ? undefined : json['left_dts'],
|
|
100
107
|
'profile_image_url': !exists(json, 'profile_image_url') ? undefined : json['profile_image_url'],
|
|
@@ -117,6 +124,7 @@ export function ConversationParticipantToJSON(value?: ConversationParticipant |
|
|
|
117
124
|
'conversation_participant_name': value.conversation_participant_name,
|
|
118
125
|
'conversation_participant_uuid': value.conversation_participant_uuid,
|
|
119
126
|
'joined_dts': value.joined_dts,
|
|
127
|
+
'language_iso_code': value.language_iso_code,
|
|
120
128
|
'last_message_dts': value.last_message_dts,
|
|
121
129
|
'left_dts': value.left_dts,
|
|
122
130
|
'profile_image_url': value.profile_image_url,
|
package/src/models/index.ts
CHANGED
|
@@ -133,6 +133,7 @@ export * from './ConversationEventReadMessage';
|
|
|
133
133
|
export * from './ConversationEventTyping';
|
|
134
134
|
export * from './ConversationEventWebchatContext';
|
|
135
135
|
export * from './ConversationMessage';
|
|
136
|
+
export * from './ConversationMessageTranslation';
|
|
136
137
|
export * from './ConversationMessageTransportStatus';
|
|
137
138
|
export * from './ConversationMessagesResponse';
|
|
138
139
|
export * from './ConversationMultimediaUploadUrl';
|