ultracart_rest_api_v2_typescript 4.1.28 → 4.1.29
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/README.md +3 -2
- package/dist/models/ConversationMessage.d.ts +6 -0
- package/dist/models/ConversationMessage.js +2 -0
- package/dist/models/ConversationVirtualAgentCapabilities.d.ts +6 -0
- package/dist/models/ConversationVirtualAgentCapabilities.js +2 -0
- package/package.json +1 -1
- package/src/models/ConversationMessage.ts +8 -0
- package/src/models/ConversationVirtualAgentCapabilities.ts +8 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.29
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.29 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.29 | 11/13/2025 | conversations - AI capabilities flag for generate coupon |
|
|
88
89
|
| 4.1.28 | 11/07/2025 | OrderApi.assignToAffiliate |
|
|
89
90
|
| 4.1.27 | 11/06/2025 | conversation ai knowledge base changes |
|
|
90
91
|
| 4.1.26 | 10/20/2025 | conversation api bug fixes |
|
|
@@ -83,6 +83,12 @@ export interface ConversationMessage {
|
|
|
83
83
|
* @memberof ConversationMessage
|
|
84
84
|
*/
|
|
85
85
|
message_epoch?: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ConversationMessage
|
|
90
|
+
*/
|
|
91
|
+
message_type?: string;
|
|
86
92
|
/**
|
|
87
93
|
*
|
|
88
94
|
* @type {Array<ConversationMessageTranslation>}
|
|
@@ -53,6 +53,7 @@ function ConversationMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
54
54
|
'message_dts': !(0, runtime_1.exists)(json, 'message_dts') ? undefined : json['message_dts'],
|
|
55
55
|
'message_epoch': !(0, runtime_1.exists)(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
56
|
+
'message_type': !(0, runtime_1.exists)(json, 'message_type') ? undefined : json['message_type'],
|
|
56
57
|
'translations': !(0, runtime_1.exists)(json, 'translations') ? undefined : (json['translations'].map(ConversationMessageTranslation_1.ConversationMessageTranslationFromJSON)),
|
|
57
58
|
'transport_statuses': !(0, runtime_1.exists)(json, 'transport_statuses') ? undefined : (json['transport_statuses'].map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusFromJSON)),
|
|
58
59
|
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
@@ -79,6 +80,7 @@ function ConversationMessageToJSON(value) {
|
|
|
79
80
|
'merchant_id': value.merchant_id,
|
|
80
81
|
'message_dts': value.message_dts,
|
|
81
82
|
'message_epoch': value.message_epoch,
|
|
83
|
+
'message_type': value.message_type,
|
|
82
84
|
'translations': value.translations === undefined ? undefined : (value.translations.map(ConversationMessageTranslation_1.ConversationMessageTranslationToJSON)),
|
|
83
85
|
'transport_statuses': value.transport_statuses === undefined ? undefined : (value.transport_statuses.map(ConversationMessageTransportStatus_1.ConversationMessageTransportStatusToJSON)),
|
|
84
86
|
'type': value.type,
|
|
@@ -34,6 +34,12 @@ export interface ConversationVirtualAgentCapabilities {
|
|
|
34
34
|
* @memberof ConversationVirtualAgentCapabilities
|
|
35
35
|
*/
|
|
36
36
|
delay_subscription?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Permission flag to allow this Agent to generate coupons based upon the agent prompt instructions
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
41
|
+
*/
|
|
42
|
+
generate_coupon?: boolean;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {boolean}
|
|
@@ -45,6 +45,7 @@ function ConversationVirtualAgentCapabilitiesFromJSONTyped(json, ignoreDiscrimin
|
|
|
45
45
|
'access_storefront_and_item': !(0, runtime_1.exists)(json, 'access_storefront_and_item') ? undefined : json['access_storefront_and_item'],
|
|
46
46
|
'cancel_subscription': !(0, runtime_1.exists)(json, 'cancel_subscription') ? undefined : json['cancel_subscription'],
|
|
47
47
|
'delay_subscription': !(0, runtime_1.exists)(json, 'delay_subscription') ? undefined : json['delay_subscription'],
|
|
48
|
+
'generate_coupon': !(0, runtime_1.exists)(json, 'generate_coupon') ? undefined : json['generate_coupon'],
|
|
48
49
|
'lookup_order_information': !(0, runtime_1.exists)(json, 'lookup_order_information') ? undefined : json['lookup_order_information'],
|
|
49
50
|
'lookup_subscription_information': !(0, runtime_1.exists)(json, 'lookup_subscription_information') ? undefined : json['lookup_subscription_information'],
|
|
50
51
|
'open_support_ticket': !(0, runtime_1.exists)(json, 'open_support_ticket') ? undefined : json['open_support_ticket'],
|
|
@@ -71,6 +72,7 @@ function ConversationVirtualAgentCapabilitiesToJSON(value) {
|
|
|
71
72
|
'access_storefront_and_item': value.access_storefront_and_item,
|
|
72
73
|
'cancel_subscription': value.cancel_subscription,
|
|
73
74
|
'delay_subscription': value.delay_subscription,
|
|
75
|
+
'generate_coupon': value.generate_coupon,
|
|
74
76
|
'lookup_order_information': value.lookup_order_information,
|
|
75
77
|
'lookup_subscription_information': value.lookup_subscription_information,
|
|
76
78
|
'open_support_ticket': value.open_support_ticket,
|
package/package.json
CHANGED
|
@@ -98,6 +98,12 @@ export interface ConversationMessage {
|
|
|
98
98
|
* @memberof ConversationMessage
|
|
99
99
|
*/
|
|
100
100
|
message_epoch?: number;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ConversationMessage
|
|
105
|
+
*/
|
|
106
|
+
message_type?: string;
|
|
101
107
|
/**
|
|
102
108
|
*
|
|
103
109
|
* @type {Array<ConversationMessageTranslation>}
|
|
@@ -167,6 +173,7 @@ export function ConversationMessageFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
167
173
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
168
174
|
'message_dts': !exists(json, 'message_dts') ? undefined : json['message_dts'],
|
|
169
175
|
'message_epoch': !exists(json, 'message_epoch') ? undefined : json['message_epoch'],
|
|
176
|
+
'message_type': !exists(json, 'message_type') ? undefined : json['message_type'],
|
|
170
177
|
'translations': !exists(json, 'translations') ? undefined : ((json['translations'] as Array<any>).map(ConversationMessageTranslationFromJSON)),
|
|
171
178
|
'transport_statuses': !exists(json, 'transport_statuses') ? undefined : ((json['transport_statuses'] as Array<any>).map(ConversationMessageTransportStatusFromJSON)),
|
|
172
179
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
@@ -194,6 +201,7 @@ export function ConversationMessageToJSON(value?: ConversationMessage | null): a
|
|
|
194
201
|
'merchant_id': value.merchant_id,
|
|
195
202
|
'message_dts': value.message_dts,
|
|
196
203
|
'message_epoch': value.message_epoch,
|
|
204
|
+
'message_type': value.message_type,
|
|
197
205
|
'translations': value.translations === undefined ? undefined : ((value.translations as Array<any>).map(ConversationMessageTranslationToJSON)),
|
|
198
206
|
'transport_statuses': value.transport_statuses === undefined ? undefined : ((value.transport_statuses as Array<any>).map(ConversationMessageTransportStatusToJSON)),
|
|
199
207
|
'type': value.type,
|
|
@@ -44,6 +44,12 @@ export interface ConversationVirtualAgentCapabilities {
|
|
|
44
44
|
* @memberof ConversationVirtualAgentCapabilities
|
|
45
45
|
*/
|
|
46
46
|
delay_subscription?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Permission flag to allow this Agent to generate coupons based upon the agent prompt instructions
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof ConversationVirtualAgentCapabilities
|
|
51
|
+
*/
|
|
52
|
+
generate_coupon?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {boolean}
|
|
@@ -154,6 +160,7 @@ export function ConversationVirtualAgentCapabilitiesFromJSONTyped(json: any, ign
|
|
|
154
160
|
'access_storefront_and_item': !exists(json, 'access_storefront_and_item') ? undefined : json['access_storefront_and_item'],
|
|
155
161
|
'cancel_subscription': !exists(json, 'cancel_subscription') ? undefined : json['cancel_subscription'],
|
|
156
162
|
'delay_subscription': !exists(json, 'delay_subscription') ? undefined : json['delay_subscription'],
|
|
163
|
+
'generate_coupon': !exists(json, 'generate_coupon') ? undefined : json['generate_coupon'],
|
|
157
164
|
'lookup_order_information': !exists(json, 'lookup_order_information') ? undefined : json['lookup_order_information'],
|
|
158
165
|
'lookup_subscription_information': !exists(json, 'lookup_subscription_information') ? undefined : json['lookup_subscription_information'],
|
|
159
166
|
'open_support_ticket': !exists(json, 'open_support_ticket') ? undefined : json['open_support_ticket'],
|
|
@@ -181,6 +188,7 @@ export function ConversationVirtualAgentCapabilitiesToJSON(value?: ConversationV
|
|
|
181
188
|
'access_storefront_and_item': value.access_storefront_and_item,
|
|
182
189
|
'cancel_subscription': value.cancel_subscription,
|
|
183
190
|
'delay_subscription': value.delay_subscription,
|
|
191
|
+
'generate_coupon': value.generate_coupon,
|
|
184
192
|
'lookup_order_information': value.lookup_order_information,
|
|
185
193
|
'lookup_subscription_information': value.lookup_subscription_information,
|
|
186
194
|
'open_support_ticket': value.open_support_ticket,
|