ultracart_rest_api_v2_typescript 4.0.84-RC → 4.0.85-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/ConversationEventAddCoupon.d.ts +12 -0
- package/dist/models/ConversationEventAddCoupon.js +4 -0
- package/dist/models/ConversationEventAddItem.d.ts +14 -1
- package/dist/models/ConversationEventAddItem.js +7 -2
- package/dist/models/ConversationEventWebchatContext.d.ts +39 -0
- package/dist/models/ConversationEventWebchatContext.js +46 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +7 -0
- package/dist/models/ConversationWebsocketMessage.js +3 -0
- package/dist/models/Weight.d.ts +1 -0
- package/dist/models/Weight.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/ConversationEventAddCoupon.ts +16 -0
- package/src/models/ConversationEventAddItem.ts +26 -3
- package/src/models/ConversationEventWebchatContext.ts +72 -0
- package/src/models/ConversationWebsocketMessage.ts +14 -0
- package/src/models/Weight.ts +1 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -149,6 +149,7 @@ src/models/ConversationEventQueuePosition.ts
|
|
|
149
149
|
src/models/ConversationEventRRWeb.ts
|
|
150
150
|
src/models/ConversationEventReadMessage.ts
|
|
151
151
|
src/models/ConversationEventTyping.ts
|
|
152
|
+
src/models/ConversationEventWebchatContext.ts
|
|
152
153
|
src/models/ConversationMessage.ts
|
|
153
154
|
src/models/ConversationMessageTransportStatus.ts
|
|
154
155
|
src/models/ConversationMessagesResponse.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.85-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.85-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.85-RC | 11/21/2022 | adjusted conversation event model |
|
|
57
58
|
| 4.0.84-RC | 11/15/2022 | conversation methods bug fix |
|
|
58
59
|
| 4.0.83-RC | 11/15/2022 | conversations - enw events for add coupon and items |
|
|
59
60
|
| 4.0.82-RC | 11/15/2022 | order api new method is order refundable |
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface ConversationEventAddCoupon
|
|
16
16
|
*/
|
|
17
17
|
export interface ConversationEventAddCoupon {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationEventAddCoupon
|
|
22
|
+
*/
|
|
23
|
+
agent_arn?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationEventAddCoupon
|
|
28
|
+
*/
|
|
29
|
+
agent_name?: string;
|
|
18
30
|
/**
|
|
19
31
|
*
|
|
20
32
|
* @type {string}
|
|
@@ -24,6 +24,8 @@ function ConversationEventAddCouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return json;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
+
'agent_arn': !(0, runtime_1.exists)(json, 'agent_arn') ? undefined : json['agent_arn'],
|
|
28
|
+
'agent_name': !(0, runtime_1.exists)(json, 'agent_name') ? undefined : json['agent_name'],
|
|
27
29
|
'coupon_code': !(0, runtime_1.exists)(json, 'coupon_code') ? undefined : json['coupon_code'],
|
|
28
30
|
};
|
|
29
31
|
}
|
|
@@ -36,6 +38,8 @@ function ConversationEventAddCouponToJSON(value) {
|
|
|
36
38
|
return null;
|
|
37
39
|
}
|
|
38
40
|
return {
|
|
41
|
+
'agent_arn': value.agent_arn,
|
|
42
|
+
'agent_name': value.agent_name,
|
|
39
43
|
'coupon_code': value.coupon_code,
|
|
40
44
|
};
|
|
41
45
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CartItem } from './CartItem';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,7 +21,19 @@ export interface ConversationEventAddItem {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof ConversationEventAddItem
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
agent_arn?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConversationEventAddItem
|
|
29
|
+
*/
|
|
30
|
+
agent_name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<CartItem>}
|
|
34
|
+
* @memberof ConversationEventAddItem
|
|
35
|
+
*/
|
|
36
|
+
items?: Array<CartItem>;
|
|
24
37
|
}
|
|
25
38
|
export declare function ConversationEventAddItemFromJSON(json: any): ConversationEventAddItem;
|
|
26
39
|
export declare function ConversationEventAddItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventAddItem;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConversationEventAddItemToJSON = exports.ConversationEventAddItemFromJSONTyped = exports.ConversationEventAddItemFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var CartItem_1 = require("./CartItem");
|
|
18
19
|
function ConversationEventAddItemFromJSON(json) {
|
|
19
20
|
return ConversationEventAddItemFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -24,7 +25,9 @@ function ConversationEventAddItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
return json;
|
|
25
26
|
}
|
|
26
27
|
return {
|
|
27
|
-
'
|
|
28
|
+
'agent_arn': !(0, runtime_1.exists)(json, 'agent_arn') ? undefined : json['agent_arn'],
|
|
29
|
+
'agent_name': !(0, runtime_1.exists)(json, 'agent_name') ? undefined : json['agent_name'],
|
|
30
|
+
'items': !(0, runtime_1.exists)(json, 'items') ? undefined : (json['items'].map(CartItem_1.CartItemFromJSON)),
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
exports.ConversationEventAddItemFromJSONTyped = ConversationEventAddItemFromJSONTyped;
|
|
@@ -36,7 +39,9 @@ function ConversationEventAddItemToJSON(value) {
|
|
|
36
39
|
return null;
|
|
37
40
|
}
|
|
38
41
|
return {
|
|
39
|
-
'
|
|
42
|
+
'agent_arn': value.agent_arn,
|
|
43
|
+
'agent_name': value.agent_name,
|
|
44
|
+
'items': value.items === undefined ? undefined : (value.items.map(CartItem_1.CartItemToJSON)),
|
|
40
45
|
};
|
|
41
46
|
}
|
|
42
47
|
exports.ConversationEventAddItemToJSON = ConversationEventAddItemToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 ConversationEventWebchatContext
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationEventWebchatContext {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationEventWebchatContext
|
|
22
|
+
*/
|
|
23
|
+
cart_id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationEventWebchatContext
|
|
28
|
+
*/
|
|
29
|
+
ucacid?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConversationEventWebchatContext
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function ConversationEventWebchatContextFromJSON(json: any): ConversationEventWebchatContext;
|
|
38
|
+
export declare function ConversationEventWebchatContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventWebchatContext;
|
|
39
|
+
export declare function ConversationEventWebchatContextToJSON(value?: ConversationEventWebchatContext | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ConversationEventWebchatContextToJSON = exports.ConversationEventWebchatContextFromJSONTyped = exports.ConversationEventWebchatContextFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationEventWebchatContextFromJSON(json) {
|
|
19
|
+
return ConversationEventWebchatContextFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationEventWebchatContextFromJSON = ConversationEventWebchatContextFromJSON;
|
|
22
|
+
function ConversationEventWebchatContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'cart_id': !(0, runtime_1.exists)(json, 'cart_id') ? undefined : json['cart_id'],
|
|
28
|
+
'ucacid': !(0, runtime_1.exists)(json, 'ucacid') ? undefined : json['ucacid'],
|
|
29
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.ConversationEventWebchatContextFromJSONTyped = ConversationEventWebchatContextFromJSONTyped;
|
|
33
|
+
function ConversationEventWebchatContextToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'cart_id': value.cart_id,
|
|
42
|
+
'ucacid': value.ucacid,
|
|
43
|
+
'url': value.url,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.ConversationEventWebchatContextToJSON = ConversationEventWebchatContextToJSON;
|
|
@@ -15,6 +15,7 @@ import { ConversationEventQueuePosition } from './ConversationEventQueuePosition
|
|
|
15
15
|
import { ConversationEventRRWeb } from './ConversationEventRRWeb';
|
|
16
16
|
import { ConversationEventReadMessage } from './ConversationEventReadMessage';
|
|
17
17
|
import { ConversationEventTyping } from './ConversationEventTyping';
|
|
18
|
+
import { ConversationEventWebchatContext } from './ConversationEventWebchatContext';
|
|
18
19
|
import { ConversationMessage } from './ConversationMessage';
|
|
19
20
|
import { ConversationSummary } from './ConversationSummary';
|
|
20
21
|
import { ConversationWebchatQueueStatus } from './ConversationWebchatQueueStatus';
|
|
@@ -108,6 +109,12 @@ export interface ConversationWebsocketMessage {
|
|
|
108
109
|
* @memberof ConversationWebsocketMessage
|
|
109
110
|
*/
|
|
110
111
|
event_updated_message?: ConversationMessage;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {ConversationEventWebchatContext}
|
|
115
|
+
* @memberof ConversationWebsocketMessage
|
|
116
|
+
*/
|
|
117
|
+
event_webchat_context?: ConversationEventWebchatContext;
|
|
111
118
|
/**
|
|
112
119
|
*
|
|
113
120
|
* @type {ConversationMessage}
|
|
@@ -21,6 +21,7 @@ var ConversationEventQueuePosition_1 = require("./ConversationEventQueuePosition
|
|
|
21
21
|
var ConversationEventRRWeb_1 = require("./ConversationEventRRWeb");
|
|
22
22
|
var ConversationEventReadMessage_1 = require("./ConversationEventReadMessage");
|
|
23
23
|
var ConversationEventTyping_1 = require("./ConversationEventTyping");
|
|
24
|
+
var ConversationEventWebchatContext_1 = require("./ConversationEventWebchatContext");
|
|
24
25
|
var ConversationMessage_1 = require("./ConversationMessage");
|
|
25
26
|
var ConversationSummary_1 = require("./ConversationSummary");
|
|
26
27
|
var ConversationWebchatQueueStatus_1 = require("./ConversationWebchatQueueStatus");
|
|
@@ -74,6 +75,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
75
|
'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
|
|
75
76
|
'event_typing': !(0, runtime_1.exists)(json, 'event_typing') ? undefined : (0, ConversationEventTyping_1.ConversationEventTypingFromJSON)(json['event_typing']),
|
|
76
77
|
'event_updated_message': !(0, runtime_1.exists)(json, 'event_updated_message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['event_updated_message']),
|
|
78
|
+
'event_webchat_context': !(0, runtime_1.exists)(json, 'event_webchat_context') ? undefined : (0, ConversationEventWebchatContext_1.ConversationEventWebchatContextFromJSON)(json['event_webchat_context']),
|
|
77
79
|
'message': !(0, runtime_1.exists)(json, 'message') ? undefined : (0, ConversationMessage_1.ConversationMessageFromJSON)(json['message']),
|
|
78
80
|
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
79
81
|
};
|
|
@@ -101,6 +103,7 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
101
103
|
'event_type': value.event_type,
|
|
102
104
|
'event_typing': (0, ConversationEventTyping_1.ConversationEventTypingToJSON)(value.event_typing),
|
|
103
105
|
'event_updated_message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.event_updated_message),
|
|
106
|
+
'event_webchat_context': (0, ConversationEventWebchatContext_1.ConversationEventWebchatContextToJSON)(value.event_webchat_context),
|
|
104
107
|
'message': (0, ConversationMessage_1.ConversationMessageToJSON)(value.message),
|
|
105
108
|
'type': value.type,
|
|
106
109
|
};
|
package/dist/models/Weight.d.ts
CHANGED
package/dist/models/Weight.js
CHANGED
package/dist/models/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export * from './ConversationEventQueuePosition';
|
|
|
124
124
|
export * from './ConversationEventRRWeb';
|
|
125
125
|
export * from './ConversationEventReadMessage';
|
|
126
126
|
export * from './ConversationEventTyping';
|
|
127
|
+
export * from './ConversationEventWebchatContext';
|
|
127
128
|
export * from './ConversationMessage';
|
|
128
129
|
export * from './ConversationMessageTransportStatus';
|
|
129
130
|
export * from './ConversationMessagesResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -142,6 +142,7 @@ __exportStar(require("./ConversationEventQueuePosition"), exports);
|
|
|
142
142
|
__exportStar(require("./ConversationEventRRWeb"), exports);
|
|
143
143
|
__exportStar(require("./ConversationEventReadMessage"), exports);
|
|
144
144
|
__exportStar(require("./ConversationEventTyping"), exports);
|
|
145
|
+
__exportStar(require("./ConversationEventWebchatContext"), exports);
|
|
145
146
|
__exportStar(require("./ConversationMessage"), exports);
|
|
146
147
|
__exportStar(require("./ConversationMessageTransportStatus"), exports);
|
|
147
148
|
__exportStar(require("./ConversationMessagesResponse"), exports);
|
package/package.json
CHANGED
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ConversationEventAddCoupon
|
|
20
20
|
*/
|
|
21
21
|
export interface ConversationEventAddCoupon {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationEventAddCoupon
|
|
26
|
+
*/
|
|
27
|
+
agent_arn?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationEventAddCoupon
|
|
32
|
+
*/
|
|
33
|
+
agent_name?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -37,6 +49,8 @@ export function ConversationEventAddCouponFromJSONTyped(json: any, ignoreDiscrim
|
|
|
37
49
|
}
|
|
38
50
|
return {
|
|
39
51
|
|
|
52
|
+
'agent_arn': !exists(json, 'agent_arn') ? undefined : json['agent_arn'],
|
|
53
|
+
'agent_name': !exists(json, 'agent_name') ? undefined : json['agent_name'],
|
|
40
54
|
'coupon_code': !exists(json, 'coupon_code') ? undefined : json['coupon_code'],
|
|
41
55
|
};
|
|
42
56
|
}
|
|
@@ -50,6 +64,8 @@ export function ConversationEventAddCouponToJSON(value?: ConversationEventAddCou
|
|
|
50
64
|
}
|
|
51
65
|
return {
|
|
52
66
|
|
|
67
|
+
'agent_arn': value.agent_arn,
|
|
68
|
+
'agent_name': value.agent_name,
|
|
53
69
|
'coupon_code': value.coupon_code,
|
|
54
70
|
};
|
|
55
71
|
}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
CartItem,
|
|
18
|
+
CartItemFromJSON,
|
|
19
|
+
CartItemFromJSONTyped,
|
|
20
|
+
CartItemToJSON,
|
|
21
|
+
} from './CartItem';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -24,7 +31,19 @@ export interface ConversationEventAddItem {
|
|
|
24
31
|
* @type {string}
|
|
25
32
|
* @memberof ConversationEventAddItem
|
|
26
33
|
*/
|
|
27
|
-
|
|
34
|
+
agent_arn?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ConversationEventAddItem
|
|
39
|
+
*/
|
|
40
|
+
agent_name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<CartItem>}
|
|
44
|
+
* @memberof ConversationEventAddItem
|
|
45
|
+
*/
|
|
46
|
+
items?: Array<CartItem>;
|
|
28
47
|
}
|
|
29
48
|
|
|
30
49
|
export function ConversationEventAddItemFromJSON(json: any): ConversationEventAddItem {
|
|
@@ -37,7 +56,9 @@ export function ConversationEventAddItemFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
37
56
|
}
|
|
38
57
|
return {
|
|
39
58
|
|
|
40
|
-
'
|
|
59
|
+
'agent_arn': !exists(json, 'agent_arn') ? undefined : json['agent_arn'],
|
|
60
|
+
'agent_name': !exists(json, 'agent_name') ? undefined : json['agent_name'],
|
|
61
|
+
'items': !exists(json, 'items') ? undefined : ((json['items'] as Array<any>).map(CartItemFromJSON)),
|
|
41
62
|
};
|
|
42
63
|
}
|
|
43
64
|
|
|
@@ -50,7 +71,9 @@ export function ConversationEventAddItemToJSON(value?: ConversationEventAddItem
|
|
|
50
71
|
}
|
|
51
72
|
return {
|
|
52
73
|
|
|
53
|
-
'
|
|
74
|
+
'agent_arn': value.agent_arn,
|
|
75
|
+
'agent_name': value.agent_name,
|
|
76
|
+
'items': value.items === undefined ? undefined : ((value.items as Array<any>).map(CartItemToJSON)),
|
|
54
77
|
};
|
|
55
78
|
}
|
|
56
79
|
|
|
@@ -0,0 +1,72 @@
|
|
|
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 ConversationEventWebchatContext
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationEventWebchatContext {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationEventWebchatContext
|
|
26
|
+
*/
|
|
27
|
+
cart_id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationEventWebchatContext
|
|
32
|
+
*/
|
|
33
|
+
ucacid?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ConversationEventWebchatContext
|
|
38
|
+
*/
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ConversationEventWebchatContextFromJSON(json: any): ConversationEventWebchatContext {
|
|
43
|
+
return ConversationEventWebchatContextFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ConversationEventWebchatContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventWebchatContext {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'cart_id': !exists(json, 'cart_id') ? undefined : json['cart_id'],
|
|
53
|
+
'ucacid': !exists(json, 'ucacid') ? undefined : json['ucacid'],
|
|
54
|
+
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ConversationEventWebchatContextToJSON(value?: ConversationEventWebchatContext | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'cart_id': value.cart_id,
|
|
68
|
+
'ucacid': value.ucacid,
|
|
69
|
+
'url': value.url,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -49,6 +49,12 @@ import {
|
|
|
49
49
|
ConversationEventTypingFromJSONTyped,
|
|
50
50
|
ConversationEventTypingToJSON,
|
|
51
51
|
} from './ConversationEventTyping';
|
|
52
|
+
import {
|
|
53
|
+
ConversationEventWebchatContext,
|
|
54
|
+
ConversationEventWebchatContextFromJSON,
|
|
55
|
+
ConversationEventWebchatContextFromJSONTyped,
|
|
56
|
+
ConversationEventWebchatContextToJSON,
|
|
57
|
+
} from './ConversationEventWebchatContext';
|
|
52
58
|
import {
|
|
53
59
|
ConversationMessage,
|
|
54
60
|
ConversationMessageFromJSON,
|
|
@@ -158,6 +164,12 @@ export interface ConversationWebsocketMessage {
|
|
|
158
164
|
* @memberof ConversationWebsocketMessage
|
|
159
165
|
*/
|
|
160
166
|
event_updated_message?: ConversationMessage;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {ConversationEventWebchatContext}
|
|
170
|
+
* @memberof ConversationWebsocketMessage
|
|
171
|
+
*/
|
|
172
|
+
event_webchat_context?: ConversationEventWebchatContext;
|
|
161
173
|
/**
|
|
162
174
|
*
|
|
163
175
|
* @type {ConversationMessage}
|
|
@@ -229,6 +241,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
229
241
|
'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
|
|
230
242
|
'event_typing': !exists(json, 'event_typing') ? undefined : ConversationEventTypingFromJSON(json['event_typing']),
|
|
231
243
|
'event_updated_message': !exists(json, 'event_updated_message') ? undefined : ConversationMessageFromJSON(json['event_updated_message']),
|
|
244
|
+
'event_webchat_context': !exists(json, 'event_webchat_context') ? undefined : ConversationEventWebchatContextFromJSON(json['event_webchat_context']),
|
|
232
245
|
'message': !exists(json, 'message') ? undefined : ConversationMessageFromJSON(json['message']),
|
|
233
246
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
234
247
|
};
|
|
@@ -257,6 +270,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
257
270
|
'event_type': value.event_type,
|
|
258
271
|
'event_typing': ConversationEventTypingToJSON(value.event_typing),
|
|
259
272
|
'event_updated_message': ConversationMessageToJSON(value.event_updated_message),
|
|
273
|
+
'event_webchat_context': ConversationEventWebchatContextToJSON(value.event_webchat_context),
|
|
260
274
|
'message': ConversationMessageToJSON(value.message),
|
|
261
275
|
'type': value.type,
|
|
262
276
|
};
|
package/src/models/Weight.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './ConversationEventQueuePosition';
|
|
|
126
126
|
export * from './ConversationEventRRWeb';
|
|
127
127
|
export * from './ConversationEventReadMessage';
|
|
128
128
|
export * from './ConversationEventTyping';
|
|
129
|
+
export * from './ConversationEventWebchatContext';
|
|
129
130
|
export * from './ConversationMessage';
|
|
130
131
|
export * from './ConversationMessageTransportStatus';
|
|
131
132
|
export * from './ConversationMessagesResponse';
|