ultracart_rest_api_v2_typescript 4.0.52-RC → 4.0.53-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 +2 -0
- package/README.md +3 -2
- package/dist/models/ConversationEventReadMessage.d.ts +39 -0
- package/dist/models/ConversationEventReadMessage.js +46 -0
- package/dist/models/ConversationMessage.d.ts +6 -0
- package/dist/models/ConversationMessage.js +2 -0
- package/dist/models/ConversationMessageTransportStatus.d.ts +19 -2
- package/dist/models/ConversationMessageTransportStatus.js +17 -1
- package/dist/models/ConversationParticipant.d.ts +6 -0
- package/dist/models/ConversationParticipant.js +2 -0
- package/dist/models/ConversationWebsocketMessage.d.ts +8 -0
- package/dist/models/ConversationWebsocketMessage.js +5 -1
- package/dist/models/Coupon.d.ts +3 -2
- package/dist/models/Coupon.js +3 -2
- package/dist/models/CouponNoDiscount.d.ts +27 -0
- package/dist/models/CouponNoDiscount.js +42 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/ConversationEventReadMessage.ts +72 -0
- package/src/models/ConversationMessage.ts +8 -0
- package/src/models/ConversationMessageTransportStatus.ts +22 -2
- package/src/models/ConversationParticipant.ts +8 -0
- package/src/models/ConversationWebsocketMessage.ts +16 -1
- package/src/models/Coupon.ts +10 -4
- package/src/models/CouponNoDiscount.ts +56 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -145,6 +145,7 @@ src/models/ConversationAgentAuth.ts
|
|
|
145
145
|
src/models/ConversationAgentAuthResponse.ts
|
|
146
146
|
src/models/ConversationEventQueuePosition.ts
|
|
147
147
|
src/models/ConversationEventRRWeb.ts
|
|
148
|
+
src/models/ConversationEventReadMessage.ts
|
|
148
149
|
src/models/ConversationEventTyping.ts
|
|
149
150
|
src/models/ConversationMessage.ts
|
|
150
151
|
src/models/ConversationMessageTransportStatus.ts
|
|
@@ -199,6 +200,7 @@ src/models/CouponFreeShippingWithSubtotal.ts
|
|
|
199
200
|
src/models/CouponItemSearchResult.ts
|
|
200
201
|
src/models/CouponItemSearchResultsResponse.ts
|
|
201
202
|
src/models/CouponMultipleAmountsOffItems.ts
|
|
203
|
+
src/models/CouponNoDiscount.ts
|
|
202
204
|
src/models/CouponPercentOffItemWithItemsQuantityPurchase.ts
|
|
203
205
|
src/models/CouponPercentOffItems.ts
|
|
204
206
|
src/models/CouponPercentOffItemsAndFreeShipping.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.53-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.53-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.53-RC | 08/10/2022 | conversation event refactoring |
|
|
57
58
|
| 4.0.52-RC | 08/05/2022 | conversation adjustments for ES integration |
|
|
58
59
|
| 4.0.51-RC | 08/05/2022 | conversations query by medium and stats fixes |
|
|
59
60
|
| 4.0.50-RC | 08/03/2022 | conversation summary participants |
|
|
@@ -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 ConversationEventReadMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface ConversationEventReadMessage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConversationEventReadMessage
|
|
22
|
+
*/
|
|
23
|
+
conversation_message_uuid?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Message date/time
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ConversationEventReadMessage
|
|
28
|
+
*/
|
|
29
|
+
message_dts?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ConversationEventReadMessage
|
|
34
|
+
*/
|
|
35
|
+
message_epoch?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function ConversationEventReadMessageFromJSON(json: any): ConversationEventReadMessage;
|
|
38
|
+
export declare function ConversationEventReadMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventReadMessage;
|
|
39
|
+
export declare function ConversationEventReadMessageToJSON(value?: ConversationEventReadMessage | 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.ConversationEventReadMessageToJSON = exports.ConversationEventReadMessageFromJSONTyped = exports.ConversationEventReadMessageFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ConversationEventReadMessageFromJSON(json) {
|
|
19
|
+
return ConversationEventReadMessageFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ConversationEventReadMessageFromJSON = ConversationEventReadMessageFromJSON;
|
|
22
|
+
function ConversationEventReadMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'conversation_message_uuid': !(0, runtime_1.exists)(json, 'conversation_message_uuid') ? undefined : json['conversation_message_uuid'],
|
|
28
|
+
'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
|
|
29
|
+
'message_epoch': !(0, runtime_1.exists)(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.ConversationEventReadMessageFromJSONTyped = ConversationEventReadMessageFromJSONTyped;
|
|
33
|
+
function ConversationEventReadMessageToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'conversation_message_uuid': value.conversation_message_uuid,
|
|
42
|
+
'message_dts': value.message_dts,
|
|
43
|
+
'message_epoch': value.message_epoch,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.ConversationEventReadMessageToJSON = ConversationEventReadMessageToJSON;
|
|
@@ -64,6 +64,12 @@ export interface ConversationMessage {
|
|
|
64
64
|
* @memberof ConversationMessage
|
|
65
65
|
*/
|
|
66
66
|
message_dts?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Message epoch milliseconds
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof ConversationMessage
|
|
71
|
+
*/
|
|
72
|
+
message_epoch?: number;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -40,6 +40,7 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'media_urls': !(0, runtime_1.exists)(json, 'media_urls') ? undefined : json['media_urls'],
|
|
41
41
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
42
42
|
'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
|
|
43
|
+
'message_epoch': !(0, runtime_1.exists)(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
43
44
|
'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
|
|
44
45
|
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
45
46
|
'upload_keys': !(0, runtime_1.exists)(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
@@ -62,6 +63,7 @@ function ConversationMessageToJSON(value) {
|
|
|
62
63
|
'media_urls': value.media_urls,
|
|
63
64
|
'merchant_id': value.merchant_id,
|
|
64
65
|
'message_dts': value.message_dts,
|
|
66
|
+
'message_epoch': value.message_epoch,
|
|
65
67
|
'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
|
|
66
68
|
'type': value.type,
|
|
67
69
|
'upload_keys': value.upload_keys,
|
|
@@ -22,12 +22,29 @@ export interface ConversationMessageTransportStatus {
|
|
|
22
22
|
*/
|
|
23
23
|
conversation_participant_arn?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The status of the message transport
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ConversationMessageTransportStatus
|
|
28
28
|
*/
|
|
29
|
-
status?:
|
|
29
|
+
status?: ConversationMessageTransportStatusStatusEnum;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ConversationMessageTransportStatusStatusEnum: {
|
|
35
|
+
readonly Accepted: "accepted";
|
|
36
|
+
readonly Scheduled: "scheduled";
|
|
37
|
+
readonly Queued: "queued";
|
|
38
|
+
readonly Sending: "sending";
|
|
39
|
+
readonly Sent: "sent";
|
|
40
|
+
readonly Read: "read";
|
|
41
|
+
readonly TwilioCredentialsMissing: "TWILIO_CREDENTIALS_MISSING";
|
|
42
|
+
readonly SentToTwilio: "SENT_TO_TWILIO";
|
|
43
|
+
readonly TwilioError: "TWILIO_ERROR";
|
|
44
|
+
readonly SentToPinpoint: "SENT_TO_PINPOINT";
|
|
45
|
+
readonly PinpointError: "PINPOINT_ERROR";
|
|
46
|
+
};
|
|
47
|
+
export declare type ConversationMessageTransportStatusStatusEnum = typeof ConversationMessageTransportStatusStatusEnum[keyof typeof ConversationMessageTransportStatusStatusEnum];
|
|
31
48
|
export declare function ConversationMessageTransportStatusFromJSON(json: any): ConversationMessageTransportStatus;
|
|
32
49
|
export declare function ConversationMessageTransportStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageTransportStatus;
|
|
33
50
|
export declare function ConversationMessageTransportStatusToJSON(value?: ConversationMessageTransportStatus | null): any;
|
|
@@ -13,8 +13,24 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConversationMessageTransportStatusToJSON = exports.ConversationMessageTransportStatusFromJSONTyped = exports.ConversationMessageTransportStatusFromJSON = void 0;
|
|
16
|
+
exports.ConversationMessageTransportStatusToJSON = exports.ConversationMessageTransportStatusFromJSONTyped = exports.ConversationMessageTransportStatusFromJSON = exports.ConversationMessageTransportStatusStatusEnum = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ConversationMessageTransportStatusStatusEnum = {
|
|
22
|
+
Accepted: 'accepted',
|
|
23
|
+
Scheduled: 'scheduled',
|
|
24
|
+
Queued: 'queued',
|
|
25
|
+
Sending: 'sending',
|
|
26
|
+
Sent: 'sent',
|
|
27
|
+
Read: 'read',
|
|
28
|
+
TwilioCredentialsMissing: 'TWILIO_CREDENTIALS_MISSING',
|
|
29
|
+
SentToTwilio: 'SENT_TO_TWILIO',
|
|
30
|
+
TwilioError: 'TWILIO_ERROR',
|
|
31
|
+
SentToPinpoint: 'SENT_TO_PINPOINT',
|
|
32
|
+
PinpointError: 'PINPOINT_ERROR'
|
|
33
|
+
};
|
|
18
34
|
function ConversationMessageTransportStatusFromJSON(json) {
|
|
19
35
|
return ConversationMessageTransportStatusFromJSONTyped(json, false);
|
|
20
36
|
}
|
|
@@ -57,6 +57,12 @@ export interface ConversationParticipant {
|
|
|
57
57
|
* @memberof ConversationParticipant
|
|
58
58
|
*/
|
|
59
59
|
status?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ConversationParticipant
|
|
64
|
+
*/
|
|
65
|
+
unread_messages?: number;
|
|
60
66
|
}
|
|
61
67
|
export declare function ConversationParticipantFromJSON(json: any): ConversationParticipant;
|
|
62
68
|
export declare function ConversationParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationParticipant;
|
|
@@ -31,6 +31,7 @@ function ConversationParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'last_message_dts': !(0, runtime_1.exists)(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
32
32
|
'left_dts': !(0, runtime_1.exists)(json, 'left_dts') ? undefined : json['left_dts'],
|
|
33
33
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
34
|
+
'unread_messages': !(0, runtime_1.exists)(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
exports.ConversationParticipantFromJSONTyped = ConversationParticipantFromJSONTyped;
|
|
@@ -49,6 +50,7 @@ function ConversationParticipantToJSON(value) {
|
|
|
49
50
|
'last_message_dts': value.last_message_dts,
|
|
50
51
|
'left_dts': value.left_dts,
|
|
51
52
|
'status': value.status,
|
|
53
|
+
'unread_messages': value.unread_messages,
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
exports.ConversationParticipantToJSON = ConversationParticipantToJSON;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ConversationEventQueuePosition } from './ConversationEventQueuePosition';
|
|
13
13
|
import { ConversationEventRRWeb } from './ConversationEventRRWeb';
|
|
14
|
+
import { ConversationEventReadMessage } from './ConversationEventReadMessage';
|
|
14
15
|
import { ConversationEventTyping } from './ConversationEventTyping';
|
|
15
16
|
import { ConversationMessage } from './ConversationMessage';
|
|
16
17
|
import { ConversationSummary } from './ConversationSummary';
|
|
@@ -63,6 +64,12 @@ export interface ConversationWebsocketMessage {
|
|
|
63
64
|
* @memberof ConversationWebsocketMessage
|
|
64
65
|
*/
|
|
65
66
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ConversationEventReadMessage}
|
|
70
|
+
* @memberof ConversationWebsocketMessage
|
|
71
|
+
*/
|
|
72
|
+
event_read_message?: ConversationEventReadMessage;
|
|
66
73
|
/**
|
|
67
74
|
*
|
|
68
75
|
* @type {ConversationEventRRWeb}
|
|
@@ -113,6 +120,7 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
|
|
|
113
120
|
readonly QueueStatusUpdate: "queue status update";
|
|
114
121
|
readonly Rrweb: "rrweb";
|
|
115
122
|
readonly ParticipantUpdate: "participant update";
|
|
123
|
+
readonly ReadMessage: "read message";
|
|
116
124
|
};
|
|
117
125
|
export declare type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
118
126
|
/**
|
|
@@ -17,6 +17,7 @@ exports.ConversationWebsocketMessageToJSON = exports.ConversationWebsocketMessag
|
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var ConversationEventQueuePosition_1 = require("./ConversationEventQueuePosition");
|
|
19
19
|
var ConversationEventRRWeb_1 = require("./ConversationEventRRWeb");
|
|
20
|
+
var ConversationEventReadMessage_1 = require("./ConversationEventReadMessage");
|
|
20
21
|
var ConversationEventTyping_1 = require("./ConversationEventTyping");
|
|
21
22
|
var ConversationMessage_1 = require("./ConversationMessage");
|
|
22
23
|
var ConversationSummary_1 = require("./ConversationSummary");
|
|
@@ -33,7 +34,8 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
|
|
|
33
34
|
UpdatedMessage: 'updated message',
|
|
34
35
|
QueueStatusUpdate: 'queue status update',
|
|
35
36
|
Rrweb: 'rrweb',
|
|
36
|
-
ParticipantUpdate: 'participant update'
|
|
37
|
+
ParticipantUpdate: 'participant update',
|
|
38
|
+
ReadMessage: 'read message'
|
|
37
39
|
};
|
|
38
40
|
/**
|
|
39
41
|
* @export
|
|
@@ -60,6 +62,7 @@ function ConversationWebsocketMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
62
|
'event_participant_update': !(0, runtime_1.exists)(json, 'event_participant_update') ? undefined : (0, ConversationSummary_1.ConversationSummaryFromJSON)(json['event_participant_update']),
|
|
61
63
|
'event_queue_position': !(0, runtime_1.exists)(json, 'event_queue_position') ? undefined : (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionFromJSON)(json['event_queue_position']),
|
|
62
64
|
'event_queue_status_update': !(0, runtime_1.exists)(json, 'event_queue_status_update') ? undefined : (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusFromJSON)(json['event_queue_status_update']),
|
|
65
|
+
'event_read_message': !(0, runtime_1.exists)(json, 'event_read_message') ? undefined : (0, ConversationEventReadMessage_1.ConversationEventReadMessageFromJSON)(json['event_read_message']),
|
|
63
66
|
'event_rrweb': !(0, runtime_1.exists)(json, 'event_rrweb') ? undefined : (0, ConversationEventRRWeb_1.ConversationEventRRWebFromJSON)(json['event_rrweb']),
|
|
64
67
|
'event_type': !(0, runtime_1.exists)(json, 'event_type') ? undefined : json['event_type'],
|
|
65
68
|
'event_typing': !(0, runtime_1.exists)(json, 'event_typing') ? undefined : (0, ConversationEventTyping_1.ConversationEventTypingFromJSON)(json['event_typing']),
|
|
@@ -84,6 +87,7 @@ function ConversationWebsocketMessageToJSON(value) {
|
|
|
84
87
|
'event_participant_update': (0, ConversationSummary_1.ConversationSummaryToJSON)(value.event_participant_update),
|
|
85
88
|
'event_queue_position': (0, ConversationEventQueuePosition_1.ConversationEventQueuePositionToJSON)(value.event_queue_position),
|
|
86
89
|
'event_queue_status_update': (0, ConversationWebchatQueueStatus_1.ConversationWebchatQueueStatusToJSON)(value.event_queue_status_update),
|
|
90
|
+
'event_read_message': (0, ConversationEventReadMessage_1.ConversationEventReadMessageToJSON)(value.event_read_message),
|
|
87
91
|
'event_rrweb': (0, ConversationEventRRWeb_1.ConversationEventRRWebToJSON)(value.event_rrweb),
|
|
88
92
|
'event_type': value.event_type,
|
|
89
93
|
'event_typing': (0, ConversationEventTyping_1.ConversationEventTypingToJSON)(value.event_typing),
|
package/dist/models/Coupon.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { CouponFreeShippingSpecificItems } from './CouponFreeShippingSpecificIte
|
|
|
33
33
|
import { CouponFreeShippingWithItemsPurchase } from './CouponFreeShippingWithItemsPurchase';
|
|
34
34
|
import { CouponFreeShippingWithSubtotal } from './CouponFreeShippingWithSubtotal';
|
|
35
35
|
import { CouponMultipleAmountsOffItems } from './CouponMultipleAmountsOffItems';
|
|
36
|
+
import { CouponNoDiscount } from './CouponNoDiscount';
|
|
36
37
|
import { CouponPercentOffItemWithItemsQuantityPurchase } from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
37
38
|
import { CouponPercentOffItems } from './CouponPercentOffItems';
|
|
38
39
|
import { CouponPercentOffItemsAndFreeShipping } from './CouponPercentOffItemsAndFreeShipping';
|
|
@@ -269,10 +270,10 @@ export interface Coupon {
|
|
|
269
270
|
multiple_amounts_off_items?: CouponMultipleAmountsOffItems;
|
|
270
271
|
/**
|
|
271
272
|
*
|
|
272
|
-
* @type {
|
|
273
|
+
* @type {CouponNoDiscount}
|
|
273
274
|
* @memberof Coupon
|
|
274
275
|
*/
|
|
275
|
-
no_discount?:
|
|
276
|
+
no_discount?: CouponNoDiscount;
|
|
276
277
|
/**
|
|
277
278
|
*
|
|
278
279
|
* @type {CouponPercentOffItemWithItemsQuantityPurchase}
|
package/dist/models/Coupon.js
CHANGED
|
@@ -39,6 +39,7 @@ var CouponFreeShippingSpecificItems_1 = require("./CouponFreeShippingSpecificIte
|
|
|
39
39
|
var CouponFreeShippingWithItemsPurchase_1 = require("./CouponFreeShippingWithItemsPurchase");
|
|
40
40
|
var CouponFreeShippingWithSubtotal_1 = require("./CouponFreeShippingWithSubtotal");
|
|
41
41
|
var CouponMultipleAmountsOffItems_1 = require("./CouponMultipleAmountsOffItems");
|
|
42
|
+
var CouponNoDiscount_1 = require("./CouponNoDiscount");
|
|
42
43
|
var CouponPercentOffItemWithItemsQuantityPurchase_1 = require("./CouponPercentOffItemWithItemsQuantityPurchase");
|
|
43
44
|
var CouponPercentOffItems_1 = require("./CouponPercentOffItems");
|
|
44
45
|
var CouponPercentOffItemsAndFreeShipping_1 = require("./CouponPercentOffItemsAndFreeShipping");
|
|
@@ -101,7 +102,7 @@ function CouponFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
102
|
'merchant_code': !(0, runtime_1.exists)(json, 'merchant_code') ? undefined : json['merchant_code'],
|
|
102
103
|
'merchant_notes': !(0, runtime_1.exists)(json, 'merchant_notes') ? undefined : json['merchant_notes'],
|
|
103
104
|
'multiple_amounts_off_items': !(0, runtime_1.exists)(json, 'multiple_amounts_off_items') ? undefined : (0, CouponMultipleAmountsOffItems_1.CouponMultipleAmountsOffItemsFromJSON)(json['multiple_amounts_off_items']),
|
|
104
|
-
'no_discount': !(0, runtime_1.exists)(json, 'no_discount') ? undefined : json['no_discount'],
|
|
105
|
+
'no_discount': !(0, runtime_1.exists)(json, 'no_discount') ? undefined : (0, CouponNoDiscount_1.CouponNoDiscountFromJSON)(json['no_discount']),
|
|
105
106
|
'percent_off_item_with_items_quantity_purchase': !(0, runtime_1.exists)(json, 'percent_off_item_with_items_quantity_purchase') ? undefined : (0, CouponPercentOffItemWithItemsQuantityPurchase_1.CouponPercentOffItemWithItemsQuantityPurchaseFromJSON)(json['percent_off_item_with_items_quantity_purchase']),
|
|
106
107
|
'percent_off_items': !(0, runtime_1.exists)(json, 'percent_off_items') ? undefined : (0, CouponPercentOffItems_1.CouponPercentOffItemsFromJSON)(json['percent_off_items']),
|
|
107
108
|
'percent_off_items_and_free_shipping': !(0, runtime_1.exists)(json, 'percent_off_items_and_free_shipping') ? undefined : (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingFromJSON)(json['percent_off_items_and_free_shipping']),
|
|
@@ -172,7 +173,7 @@ function CouponToJSON(value) {
|
|
|
172
173
|
'merchant_code': value.merchant_code,
|
|
173
174
|
'merchant_notes': value.merchant_notes,
|
|
174
175
|
'multiple_amounts_off_items': (0, CouponMultipleAmountsOffItems_1.CouponMultipleAmountsOffItemsToJSON)(value.multiple_amounts_off_items),
|
|
175
|
-
'no_discount': value.no_discount,
|
|
176
|
+
'no_discount': (0, CouponNoDiscount_1.CouponNoDiscountToJSON)(value.no_discount),
|
|
176
177
|
'percent_off_item_with_items_quantity_purchase': (0, CouponPercentOffItemWithItemsQuantityPurchase_1.CouponPercentOffItemWithItemsQuantityPurchaseToJSON)(value.percent_off_item_with_items_quantity_purchase),
|
|
177
178
|
'percent_off_items': (0, CouponPercentOffItems_1.CouponPercentOffItemsToJSON)(value.percent_off_items),
|
|
178
179
|
'percent_off_items_and_free_shipping': (0, CouponPercentOffItemsAndFreeShipping_1.CouponPercentOffItemsAndFreeShippingToJSON)(value.percent_off_items_and_free_shipping),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CouponNoDiscount
|
|
16
|
+
*/
|
|
17
|
+
export interface CouponNoDiscount {
|
|
18
|
+
/**
|
|
19
|
+
* This property does nothing but is included in this object to ensure the object is generated by our sdk builders.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CouponNoDiscount
|
|
22
|
+
*/
|
|
23
|
+
ignore_this_property?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function CouponNoDiscountFromJSON(json: any): CouponNoDiscount;
|
|
26
|
+
export declare function CouponNoDiscountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponNoDiscount;
|
|
27
|
+
export declare function CouponNoDiscountToJSON(value?: CouponNoDiscount | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CouponNoDiscountToJSON = exports.CouponNoDiscountFromJSONTyped = exports.CouponNoDiscountFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function CouponNoDiscountFromJSON(json) {
|
|
19
|
+
return CouponNoDiscountFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.CouponNoDiscountFromJSON = CouponNoDiscountFromJSON;
|
|
22
|
+
function CouponNoDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'ignore_this_property': !(0, runtime_1.exists)(json, 'ignore_this_property') ? undefined : json['ignore_this_property'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.CouponNoDiscountFromJSONTyped = CouponNoDiscountFromJSONTyped;
|
|
31
|
+
function CouponNoDiscountToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'ignore_this_property': value.ignore_this_property,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.CouponNoDiscountToJSON = CouponNoDiscountToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export * from './ConversationAgentAuth';
|
|
|
120
120
|
export * from './ConversationAgentAuthResponse';
|
|
121
121
|
export * from './ConversationEventQueuePosition';
|
|
122
122
|
export * from './ConversationEventRRWeb';
|
|
123
|
+
export * from './ConversationEventReadMessage';
|
|
123
124
|
export * from './ConversationEventTyping';
|
|
124
125
|
export * from './ConversationMessage';
|
|
125
126
|
export * from './ConversationMessageTransportStatus';
|
|
@@ -174,6 +175,7 @@ export * from './CouponFreeShippingWithSubtotal';
|
|
|
174
175
|
export * from './CouponItemSearchResult';
|
|
175
176
|
export * from './CouponItemSearchResultsResponse';
|
|
176
177
|
export * from './CouponMultipleAmountsOffItems';
|
|
178
|
+
export * from './CouponNoDiscount';
|
|
177
179
|
export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
178
180
|
export * from './CouponPercentOffItems';
|
|
179
181
|
export * from './CouponPercentOffItemsAndFreeShipping';
|
package/dist/models/index.js
CHANGED
|
@@ -138,6 +138,7 @@ __exportStar(require("./ConversationAgentAuth"), exports);
|
|
|
138
138
|
__exportStar(require("./ConversationAgentAuthResponse"), exports);
|
|
139
139
|
__exportStar(require("./ConversationEventQueuePosition"), exports);
|
|
140
140
|
__exportStar(require("./ConversationEventRRWeb"), exports);
|
|
141
|
+
__exportStar(require("./ConversationEventReadMessage"), exports);
|
|
141
142
|
__exportStar(require("./ConversationEventTyping"), exports);
|
|
142
143
|
__exportStar(require("./ConversationMessage"), exports);
|
|
143
144
|
__exportStar(require("./ConversationMessageTransportStatus"), exports);
|
|
@@ -192,6 +193,7 @@ __exportStar(require("./CouponFreeShippingWithSubtotal"), exports);
|
|
|
192
193
|
__exportStar(require("./CouponItemSearchResult"), exports);
|
|
193
194
|
__exportStar(require("./CouponItemSearchResultsResponse"), exports);
|
|
194
195
|
__exportStar(require("./CouponMultipleAmountsOffItems"), exports);
|
|
196
|
+
__exportStar(require("./CouponNoDiscount"), exports);
|
|
195
197
|
__exportStar(require("./CouponPercentOffItemWithItemsQuantityPurchase"), exports);
|
|
196
198
|
__exportStar(require("./CouponPercentOffItems"), exports);
|
|
197
199
|
__exportStar(require("./CouponPercentOffItemsAndFreeShipping"), exports);
|
package/package.json
CHANGED
|
@@ -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 ConversationEventReadMessage
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationEventReadMessage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationEventReadMessage
|
|
26
|
+
*/
|
|
27
|
+
conversation_message_uuid?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Message date/time
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConversationEventReadMessage
|
|
32
|
+
*/
|
|
33
|
+
message_dts?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ConversationEventReadMessage
|
|
38
|
+
*/
|
|
39
|
+
message_epoch?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ConversationEventReadMessageFromJSON(json: any): ConversationEventReadMessage {
|
|
43
|
+
return ConversationEventReadMessageFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ConversationEventReadMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationEventReadMessage {
|
|
47
|
+
if ((json === undefined) || (json === null)) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
'conversation_message_uuid': !exists(json, 'conversation_message_uuid') ? undefined : json['conversation_message_uuid'],
|
|
53
|
+
'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
|
|
54
|
+
'message_epoch': !exists(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ConversationEventReadMessageToJSON(value?: ConversationEventReadMessage | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'conversation_message_uuid': value.conversation_message_uuid,
|
|
68
|
+
'message_dts': value.message_dts,
|
|
69
|
+
'message_epoch': value.message_epoch,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -74,6 +74,12 @@ export interface ConversationMessage {
|
|
|
74
74
|
* @memberof ConversationMessage
|
|
75
75
|
*/
|
|
76
76
|
message_dts?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Message epoch milliseconds
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof ConversationMessage
|
|
81
|
+
*/
|
|
82
|
+
message_epoch?: number;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {Array<ConversationMessageTransportStatus>}
|
|
@@ -123,6 +129,7 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
123
129
|
'media_urls': !exists(json, 'media_urls') ? undefined : json['media_urls'],
|
|
124
130
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
125
131
|
'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
|
|
132
|
+
'message_epoch': !exists(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
126
133
|
'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
|
|
127
134
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
128
135
|
'upload_keys': !exists(json, 'upload_keys') ? undefined : json['upload_keys'],
|
|
@@ -146,6 +153,7 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
|
|
|
146
153
|
'media_urls': value.media_urls,
|
|
147
154
|
'merchant_id': value.merchant_id,
|
|
148
155
|
'message_dts': value.message_dts,
|
|
156
|
+
'message_epoch': value.message_epoch,
|
|
149
157
|
'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
|
|
150
158
|
'type': value.type,
|
|
151
159
|
'upload_keys': value.upload_keys,
|
|
@@ -26,13 +26,33 @@ export interface ConversationMessageTransportStatus {
|
|
|
26
26
|
*/
|
|
27
27
|
conversation_participant_arn?: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The status of the message transport
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof ConversationMessageTransportStatus
|
|
32
32
|
*/
|
|
33
|
-
status?:
|
|
33
|
+
status?: ConversationMessageTransportStatusStatusEnum;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ConversationMessageTransportStatusStatusEnum = {
|
|
41
|
+
Accepted: 'accepted',
|
|
42
|
+
Scheduled: 'scheduled',
|
|
43
|
+
Queued: 'queued',
|
|
44
|
+
Sending: 'sending',
|
|
45
|
+
Sent: 'sent',
|
|
46
|
+
Read: 'read',
|
|
47
|
+
TwilioCredentialsMissing: 'TWILIO_CREDENTIALS_MISSING',
|
|
48
|
+
SentToTwilio: 'SENT_TO_TWILIO',
|
|
49
|
+
TwilioError: 'TWILIO_ERROR',
|
|
50
|
+
SentToPinpoint: 'SENT_TO_PINPOINT',
|
|
51
|
+
PinpointError: 'PINPOINT_ERROR'
|
|
52
|
+
} as const;
|
|
53
|
+
export type ConversationMessageTransportStatusStatusEnum = typeof ConversationMessageTransportStatusStatusEnum[keyof typeof ConversationMessageTransportStatusStatusEnum];
|
|
54
|
+
|
|
55
|
+
|
|
36
56
|
export function ConversationMessageTransportStatusFromJSON(json: any): ConversationMessageTransportStatus {
|
|
37
57
|
return ConversationMessageTransportStatusFromJSONTyped(json, false);
|
|
38
58
|
}
|
|
@@ -61,6 +61,12 @@ export interface ConversationParticipant {
|
|
|
61
61
|
* @memberof ConversationParticipant
|
|
62
62
|
*/
|
|
63
63
|
status?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ConversationParticipant
|
|
68
|
+
*/
|
|
69
|
+
unread_messages?: number;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
export function ConversationParticipantFromJSON(json: any): ConversationParticipant {
|
|
@@ -80,6 +86,7 @@ export function ConversationParticipantFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
80
86
|
'last_message_dts': !exists(json, 'last_message_dts') ? undefined : json['last_message_dts'],
|
|
81
87
|
'left_dts': !exists(json, 'left_dts') ? undefined : json['left_dts'],
|
|
82
88
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
89
|
+
'unread_messages': !exists(json, 'unread_messages') ? undefined : json['unread_messages'],
|
|
83
90
|
};
|
|
84
91
|
}
|
|
85
92
|
|
|
@@ -99,6 +106,7 @@ export function ConversationParticipantToJSON(value?: ConversationParticipant |
|
|
|
99
106
|
'last_message_dts': value.last_message_dts,
|
|
100
107
|
'left_dts': value.left_dts,
|
|
101
108
|
'status': value.status,
|
|
109
|
+
'unread_messages': value.unread_messages,
|
|
102
110
|
};
|
|
103
111
|
}
|
|
104
112
|
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
ConversationEventRRWebFromJSONTyped,
|
|
26
26
|
ConversationEventRRWebToJSON,
|
|
27
27
|
} from './ConversationEventRRWeb';
|
|
28
|
+
import {
|
|
29
|
+
ConversationEventReadMessage,
|
|
30
|
+
ConversationEventReadMessageFromJSON,
|
|
31
|
+
ConversationEventReadMessageFromJSONTyped,
|
|
32
|
+
ConversationEventReadMessageToJSON,
|
|
33
|
+
} from './ConversationEventReadMessage';
|
|
28
34
|
import {
|
|
29
35
|
ConversationEventTyping,
|
|
30
36
|
ConversationEventTypingFromJSON,
|
|
@@ -98,6 +104,12 @@ export interface ConversationWebsocketMessage {
|
|
|
98
104
|
* @memberof ConversationWebsocketMessage
|
|
99
105
|
*/
|
|
100
106
|
event_queue_status_update?: ConversationWebchatQueueStatus;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {ConversationEventReadMessage}
|
|
110
|
+
* @memberof ConversationWebsocketMessage
|
|
111
|
+
*/
|
|
112
|
+
event_read_message?: ConversationEventReadMessage;
|
|
101
113
|
/**
|
|
102
114
|
*
|
|
103
115
|
* @type {ConversationEventRRWeb}
|
|
@@ -149,7 +161,8 @@ export const ConversationWebsocketMessageEventTypeEnum = {
|
|
|
149
161
|
UpdatedMessage: 'updated message',
|
|
150
162
|
QueueStatusUpdate: 'queue status update',
|
|
151
163
|
Rrweb: 'rrweb',
|
|
152
|
-
ParticipantUpdate: 'participant update'
|
|
164
|
+
ParticipantUpdate: 'participant update',
|
|
165
|
+
ReadMessage: 'read message'
|
|
153
166
|
} as const;
|
|
154
167
|
export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
|
|
155
168
|
|
|
@@ -182,6 +195,7 @@ export function ConversationWebsocketMessageFromJSONTyped(json: any, ignoreDiscr
|
|
|
182
195
|
'event_participant_update': !exists(json, 'event_participant_update') ? undefined : ConversationSummaryFromJSON(json['event_participant_update']),
|
|
183
196
|
'event_queue_position': !exists(json, 'event_queue_position') ? undefined : ConversationEventQueuePositionFromJSON(json['event_queue_position']),
|
|
184
197
|
'event_queue_status_update': !exists(json, 'event_queue_status_update') ? undefined : ConversationWebchatQueueStatusFromJSON(json['event_queue_status_update']),
|
|
198
|
+
'event_read_message': !exists(json, 'event_read_message') ? undefined : ConversationEventReadMessageFromJSON(json['event_read_message']),
|
|
185
199
|
'event_rrweb': !exists(json, 'event_rrweb') ? undefined : ConversationEventRRWebFromJSON(json['event_rrweb']),
|
|
186
200
|
'event_type': !exists(json, 'event_type') ? undefined : json['event_type'],
|
|
187
201
|
'event_typing': !exists(json, 'event_typing') ? undefined : ConversationEventTypingFromJSON(json['event_typing']),
|
|
@@ -207,6 +221,7 @@ export function ConversationWebsocketMessageToJSON(value?: ConversationWebsocket
|
|
|
207
221
|
'event_participant_update': ConversationSummaryToJSON(value.event_participant_update),
|
|
208
222
|
'event_queue_position': ConversationEventQueuePositionToJSON(value.event_queue_position),
|
|
209
223
|
'event_queue_status_update': ConversationWebchatQueueStatusToJSON(value.event_queue_status_update),
|
|
224
|
+
'event_read_message': ConversationEventReadMessageToJSON(value.event_read_message),
|
|
210
225
|
'event_rrweb': ConversationEventRRWebToJSON(value.event_rrweb),
|
|
211
226
|
'event_type': value.event_type,
|
|
212
227
|
'event_typing': ConversationEventTypingToJSON(value.event_typing),
|
package/src/models/Coupon.ts
CHANGED
|
@@ -157,6 +157,12 @@ import {
|
|
|
157
157
|
CouponMultipleAmountsOffItemsFromJSONTyped,
|
|
158
158
|
CouponMultipleAmountsOffItemsToJSON,
|
|
159
159
|
} from './CouponMultipleAmountsOffItems';
|
|
160
|
+
import {
|
|
161
|
+
CouponNoDiscount,
|
|
162
|
+
CouponNoDiscountFromJSON,
|
|
163
|
+
CouponNoDiscountFromJSONTyped,
|
|
164
|
+
CouponNoDiscountToJSON,
|
|
165
|
+
} from './CouponNoDiscount';
|
|
160
166
|
import {
|
|
161
167
|
CouponPercentOffItemWithItemsQuantityPurchase,
|
|
162
168
|
CouponPercentOffItemWithItemsQuantityPurchaseFromJSON,
|
|
@@ -484,10 +490,10 @@ export interface Coupon {
|
|
|
484
490
|
multiple_amounts_off_items?: CouponMultipleAmountsOffItems;
|
|
485
491
|
/**
|
|
486
492
|
*
|
|
487
|
-
* @type {
|
|
493
|
+
* @type {CouponNoDiscount}
|
|
488
494
|
* @memberof Coupon
|
|
489
495
|
*/
|
|
490
|
-
no_discount?:
|
|
496
|
+
no_discount?: CouponNoDiscount;
|
|
491
497
|
/**
|
|
492
498
|
*
|
|
493
499
|
* @type {CouponPercentOffItemWithItemsQuantityPurchase}
|
|
@@ -679,7 +685,7 @@ export function CouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
|
|
|
679
685
|
'merchant_code': !exists(json, 'merchant_code') ? undefined : json['merchant_code'],
|
|
680
686
|
'merchant_notes': !exists(json, 'merchant_notes') ? undefined : json['merchant_notes'],
|
|
681
687
|
'multiple_amounts_off_items': !exists(json, 'multiple_amounts_off_items') ? undefined : CouponMultipleAmountsOffItemsFromJSON(json['multiple_amounts_off_items']),
|
|
682
|
-
'no_discount': !exists(json, 'no_discount') ? undefined : json['no_discount'],
|
|
688
|
+
'no_discount': !exists(json, 'no_discount') ? undefined : CouponNoDiscountFromJSON(json['no_discount']),
|
|
683
689
|
'percent_off_item_with_items_quantity_purchase': !exists(json, 'percent_off_item_with_items_quantity_purchase') ? undefined : CouponPercentOffItemWithItemsQuantityPurchaseFromJSON(json['percent_off_item_with_items_quantity_purchase']),
|
|
684
690
|
'percent_off_items': !exists(json, 'percent_off_items') ? undefined : CouponPercentOffItemsFromJSON(json['percent_off_items']),
|
|
685
691
|
'percent_off_items_and_free_shipping': !exists(json, 'percent_off_items_and_free_shipping') ? undefined : CouponPercentOffItemsAndFreeShippingFromJSON(json['percent_off_items_and_free_shipping']),
|
|
@@ -751,7 +757,7 @@ export function CouponToJSON(value?: Coupon | null): any {
|
|
|
751
757
|
'merchant_code': value.merchant_code,
|
|
752
758
|
'merchant_notes': value.merchant_notes,
|
|
753
759
|
'multiple_amounts_off_items': CouponMultipleAmountsOffItemsToJSON(value.multiple_amounts_off_items),
|
|
754
|
-
'no_discount': value.no_discount,
|
|
760
|
+
'no_discount': CouponNoDiscountToJSON(value.no_discount),
|
|
755
761
|
'percent_off_item_with_items_quantity_purchase': CouponPercentOffItemWithItemsQuantityPurchaseToJSON(value.percent_off_item_with_items_quantity_purchase),
|
|
756
762
|
'percent_off_items': CouponPercentOffItemsToJSON(value.percent_off_items),
|
|
757
763
|
'percent_off_items_and_free_shipping': CouponPercentOffItemsAndFreeShippingToJSON(value.percent_off_items_and_free_shipping),
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UltraCart Rest API V2
|
|
5
|
+
* UltraCart REST API Version 2
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
* Contact: support@ultracart.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CouponNoDiscount
|
|
20
|
+
*/
|
|
21
|
+
export interface CouponNoDiscount {
|
|
22
|
+
/**
|
|
23
|
+
* This property does nothing but is included in this object to ensure the object is generated by our sdk builders.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof CouponNoDiscount
|
|
26
|
+
*/
|
|
27
|
+
ignore_this_property?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function CouponNoDiscountFromJSON(json: any): CouponNoDiscount {
|
|
31
|
+
return CouponNoDiscountFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CouponNoDiscountFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponNoDiscount {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'ignore_this_property': !exists(json, 'ignore_this_property') ? undefined : json['ignore_this_property'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function CouponNoDiscountToJSON(value?: CouponNoDiscount | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'ignore_this_property': value.ignore_this_property,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -122,6 +122,7 @@ export * from './ConversationAgentAuth';
|
|
|
122
122
|
export * from './ConversationAgentAuthResponse';
|
|
123
123
|
export * from './ConversationEventQueuePosition';
|
|
124
124
|
export * from './ConversationEventRRWeb';
|
|
125
|
+
export * from './ConversationEventReadMessage';
|
|
125
126
|
export * from './ConversationEventTyping';
|
|
126
127
|
export * from './ConversationMessage';
|
|
127
128
|
export * from './ConversationMessageTransportStatus';
|
|
@@ -176,6 +177,7 @@ export * from './CouponFreeShippingWithSubtotal';
|
|
|
176
177
|
export * from './CouponItemSearchResult';
|
|
177
178
|
export * from './CouponItemSearchResultsResponse';
|
|
178
179
|
export * from './CouponMultipleAmountsOffItems';
|
|
180
|
+
export * from './CouponNoDiscount';
|
|
179
181
|
export * from './CouponPercentOffItemWithItemsQuantityPurchase';
|
|
180
182
|
export * from './CouponPercentOffItems';
|
|
181
183
|
export * from './CouponPercentOffItemsAndFreeShipping';
|