ultracart_rest_api_v2_typescript 4.0.237 → 4.0.238
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.238
|
|
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.238 --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.238 | 12/13/2024 | added user and group ids to conversation agent auth object |
|
|
57
58
|
| 4.0.237 | 11/11/2024 | added seo properties to item.content object |
|
|
58
59
|
| 4.0.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
|
59
60
|
| 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
|
@@ -28,6 +28,12 @@ export interface ConversationAgentAuth {
|
|
|
28
28
|
* @memberof ConversationAgentAuth
|
|
29
29
|
*/
|
|
30
30
|
conversation_participant_name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* UltraCart Groups this user belongs to
|
|
33
|
+
* @type {Array<number>}
|
|
34
|
+
* @memberof ConversationAgentAuth
|
|
35
|
+
*/
|
|
36
|
+
group_ids?: Array<number>;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
@@ -88,6 +94,12 @@ export interface ConversationAgentAuth {
|
|
|
88
94
|
* @memberof ConversationAgentAuth
|
|
89
95
|
*/
|
|
90
96
|
twilio_accounts?: Array<ConversationTwilioAccount>;
|
|
97
|
+
/**
|
|
98
|
+
* UltraCart User ID
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof ConversationAgentAuth
|
|
101
|
+
*/
|
|
102
|
+
user_id?: number;
|
|
91
103
|
/**
|
|
92
104
|
*
|
|
93
105
|
* @type {string}
|
|
@@ -27,6 +27,7 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'conversation_participant_arn': !(0, runtime_1.exists)(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
|
|
29
29
|
'conversation_participant_name': !(0, runtime_1.exists)(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
30
|
+
'group_ids': !(0, runtime_1.exists)(json, 'group_ids') ? undefined : json['group_ids'],
|
|
30
31
|
'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
|
|
31
32
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
32
33
|
'pbx_admin': !(0, runtime_1.exists)(json, 'pbx_admin') ? undefined : json['pbx_admin'],
|
|
@@ -37,6 +38,7 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'pbx_voice_token': !(0, runtime_1.exists)(json, 'pbx_voice_token') ? undefined : json['pbx_voice_token'],
|
|
38
39
|
'pbx_worker_token': !(0, runtime_1.exists)(json, 'pbx_worker_token') ? undefined : json['pbx_worker_token'],
|
|
39
40
|
'twilio_accounts': !(0, runtime_1.exists)(json, 'twilio_accounts') ? undefined : (json['twilio_accounts'].map(ConversationTwilioAccount_1.ConversationTwilioAccountFromJSON)),
|
|
41
|
+
'user_id': !(0, runtime_1.exists)(json, 'user_id') ? undefined : json['user_id'],
|
|
40
42
|
'websocket_url': !(0, runtime_1.exists)(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -51,6 +53,7 @@ function ConversationAgentAuthToJSON(value) {
|
|
|
51
53
|
return {
|
|
52
54
|
'conversation_participant_arn': value.conversation_participant_arn,
|
|
53
55
|
'conversation_participant_name': value.conversation_participant_name,
|
|
56
|
+
'group_ids': value.group_ids,
|
|
54
57
|
'jwt': value.jwt,
|
|
55
58
|
'merchant_id': value.merchant_id,
|
|
56
59
|
'pbx_admin': value.pbx_admin,
|
|
@@ -61,6 +64,7 @@ function ConversationAgentAuthToJSON(value) {
|
|
|
61
64
|
'pbx_voice_token': value.pbx_voice_token,
|
|
62
65
|
'pbx_worker_token': value.pbx_worker_token,
|
|
63
66
|
'twilio_accounts': value.twilio_accounts === undefined ? undefined : (value.twilio_accounts.map(ConversationTwilioAccount_1.ConversationTwilioAccountToJSON)),
|
|
67
|
+
'user_id': value.user_id,
|
|
64
68
|
'websocket_url': value.websocket_url,
|
|
65
69
|
};
|
|
66
70
|
}
|
package/package.json
CHANGED
|
@@ -38,6 +38,12 @@ export interface ConversationAgentAuth {
|
|
|
38
38
|
* @memberof ConversationAgentAuth
|
|
39
39
|
*/
|
|
40
40
|
conversation_participant_name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* UltraCart Groups this user belongs to
|
|
43
|
+
* @type {Array<number>}
|
|
44
|
+
* @memberof ConversationAgentAuth
|
|
45
|
+
*/
|
|
46
|
+
group_ids?: Array<number>;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {string}
|
|
@@ -98,6 +104,12 @@ export interface ConversationAgentAuth {
|
|
|
98
104
|
* @memberof ConversationAgentAuth
|
|
99
105
|
*/
|
|
100
106
|
twilio_accounts?: Array<ConversationTwilioAccount>;
|
|
107
|
+
/**
|
|
108
|
+
* UltraCart User ID
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof ConversationAgentAuth
|
|
111
|
+
*/
|
|
112
|
+
user_id?: number;
|
|
101
113
|
/**
|
|
102
114
|
*
|
|
103
115
|
* @type {string}
|
|
@@ -118,6 +130,7 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
118
130
|
|
|
119
131
|
'conversation_participant_arn': !exists(json, 'conversation_participant_arn') ? undefined : json['conversation_participant_arn'],
|
|
120
132
|
'conversation_participant_name': !exists(json, 'conversation_participant_name') ? undefined : json['conversation_participant_name'],
|
|
133
|
+
'group_ids': !exists(json, 'group_ids') ? undefined : json['group_ids'],
|
|
121
134
|
'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
|
|
122
135
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
123
136
|
'pbx_admin': !exists(json, 'pbx_admin') ? undefined : json['pbx_admin'],
|
|
@@ -128,6 +141,7 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
128
141
|
'pbx_voice_token': !exists(json, 'pbx_voice_token') ? undefined : json['pbx_voice_token'],
|
|
129
142
|
'pbx_worker_token': !exists(json, 'pbx_worker_token') ? undefined : json['pbx_worker_token'],
|
|
130
143
|
'twilio_accounts': !exists(json, 'twilio_accounts') ? undefined : ((json['twilio_accounts'] as Array<any>).map(ConversationTwilioAccountFromJSON)),
|
|
144
|
+
'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
|
|
131
145
|
'websocket_url': !exists(json, 'websocket_url') ? undefined : json['websocket_url'],
|
|
132
146
|
};
|
|
133
147
|
}
|
|
@@ -143,6 +157,7 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
|
|
|
143
157
|
|
|
144
158
|
'conversation_participant_arn': value.conversation_participant_arn,
|
|
145
159
|
'conversation_participant_name': value.conversation_participant_name,
|
|
160
|
+
'group_ids': value.group_ids,
|
|
146
161
|
'jwt': value.jwt,
|
|
147
162
|
'merchant_id': value.merchant_id,
|
|
148
163
|
'pbx_admin': value.pbx_admin,
|
|
@@ -153,6 +168,7 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
|
|
|
153
168
|
'pbx_voice_token': value.pbx_voice_token,
|
|
154
169
|
'pbx_worker_token': value.pbx_worker_token,
|
|
155
170
|
'twilio_accounts': value.twilio_accounts === undefined ? undefined : ((value.twilio_accounts as Array<any>).map(ConversationTwilioAccountToJSON)),
|
|
171
|
+
'user_id': value.user_id,
|
|
156
172
|
'websocket_url': value.websocket_url,
|
|
157
173
|
};
|
|
158
174
|
}
|