ultracart_rest_api_v2_typescript 4.0.236 → 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.236
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.236 --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.238 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ 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 |
58
+ | 4.0.237 | 11/11/2024 | added seo properties to item.content object |
57
59
  | 4.0.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
58
60
  | 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
59
61
  | 4.0.234 | 10/24/2024 | storefront page attribute edit method |
@@ -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
  }
@@ -61,11 +61,29 @@ export interface ItemContent {
61
61
  */
62
62
  extended_description?: string;
63
63
  /**
64
- * Extneded description text translation instance identifier
64
+ * Extended description text translation instance identifier
65
65
  * @type {number}
66
66
  * @memberof ItemContent
67
67
  */
68
68
  extended_description_translated_text_instance_oid?: number;
69
+ /**
70
+ * SEO meta description used by Storefronts
71
+ * @type {string}
72
+ * @memberof ItemContent
73
+ */
74
+ meta_description?: string;
75
+ /**
76
+ * SEO meta keywords used by Storefronts
77
+ * @type {string}
78
+ * @memberof ItemContent
79
+ */
80
+ meta_keywords?: string;
81
+ /**
82
+ * SEO meta title used by Storefronts
83
+ * @type {string}
84
+ * @memberof ItemContent
85
+ */
86
+ meta_title?: string;
69
87
  /**
70
88
  * Multimedia
71
89
  * @type {Array<ItemContentMultimedia>}
@@ -35,6 +35,9 @@ function ItemContentFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'exclude_from_top_sellers': !(0, runtime_1.exists)(json, 'exclude_from_top_sellers') ? undefined : json['exclude_from_top_sellers'],
36
36
  'extended_description': !(0, runtime_1.exists)(json, 'extended_description') ? undefined : json['extended_description'],
37
37
  'extended_description_translated_text_instance_oid': !(0, runtime_1.exists)(json, 'extended_description_translated_text_instance_oid') ? undefined : json['extended_description_translated_text_instance_oid'],
38
+ 'meta_description': !(0, runtime_1.exists)(json, 'meta_description') ? undefined : json['meta_description'],
39
+ 'meta_keywords': !(0, runtime_1.exists)(json, 'meta_keywords') ? undefined : json['meta_keywords'],
40
+ 'meta_title': !(0, runtime_1.exists)(json, 'meta_title') ? undefined : json['meta_title'],
38
41
  'multimedia': !(0, runtime_1.exists)(json, 'multimedia') ? undefined : (json['multimedia'].map(ItemContentMultimedia_1.ItemContentMultimediaFromJSON)),
39
42
  'new_item': !(0, runtime_1.exists)(json, 'new_item') ? undefined : json['new_item'],
40
43
  'new_item_end': !(0, runtime_1.exists)(json, 'new_item_end') ? undefined : json['new_item_end'],
@@ -59,6 +62,9 @@ function ItemContentToJSON(value) {
59
62
  'exclude_from_top_sellers': value.exclude_from_top_sellers,
60
63
  'extended_description': value.extended_description,
61
64
  'extended_description_translated_text_instance_oid': value.extended_description_translated_text_instance_oid,
65
+ 'meta_description': value.meta_description,
66
+ 'meta_keywords': value.meta_keywords,
67
+ 'meta_title': value.meta_title,
62
68
  'multimedia': value.multimedia === undefined ? undefined : (value.multimedia.map(ItemContentMultimedia_1.ItemContentMultimediaToJSON)),
63
69
  'new_item': value.new_item,
64
70
  'new_item_end': value.new_item_end,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.236",
3
+ "version": "4.0.238",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -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
  }
@@ -81,11 +81,29 @@ export interface ItemContent {
81
81
  */
82
82
  extended_description?: string;
83
83
  /**
84
- * Extneded description text translation instance identifier
84
+ * Extended description text translation instance identifier
85
85
  * @type {number}
86
86
  * @memberof ItemContent
87
87
  */
88
88
  extended_description_translated_text_instance_oid?: number;
89
+ /**
90
+ * SEO meta description used by Storefronts
91
+ * @type {string}
92
+ * @memberof ItemContent
93
+ */
94
+ meta_description?: string;
95
+ /**
96
+ * SEO meta keywords used by Storefronts
97
+ * @type {string}
98
+ * @memberof ItemContent
99
+ */
100
+ meta_keywords?: string;
101
+ /**
102
+ * SEO meta title used by Storefronts
103
+ * @type {string}
104
+ * @memberof ItemContent
105
+ */
106
+ meta_title?: string;
89
107
  /**
90
108
  * Multimedia
91
109
  * @type {Array<ItemContentMultimedia>}
@@ -136,6 +154,9 @@ export function ItemContentFromJSONTyped(json: any, ignoreDiscriminator: boolean
136
154
  'exclude_from_top_sellers': !exists(json, 'exclude_from_top_sellers') ? undefined : json['exclude_from_top_sellers'],
137
155
  'extended_description': !exists(json, 'extended_description') ? undefined : json['extended_description'],
138
156
  'extended_description_translated_text_instance_oid': !exists(json, 'extended_description_translated_text_instance_oid') ? undefined : json['extended_description_translated_text_instance_oid'],
157
+ 'meta_description': !exists(json, 'meta_description') ? undefined : json['meta_description'],
158
+ 'meta_keywords': !exists(json, 'meta_keywords') ? undefined : json['meta_keywords'],
159
+ 'meta_title': !exists(json, 'meta_title') ? undefined : json['meta_title'],
139
160
  'multimedia': !exists(json, 'multimedia') ? undefined : ((json['multimedia'] as Array<any>).map(ItemContentMultimediaFromJSON)),
140
161
  'new_item': !exists(json, 'new_item') ? undefined : json['new_item'],
141
162
  'new_item_end': !exists(json, 'new_item_end') ? undefined : json['new_item_end'],
@@ -161,6 +182,9 @@ export function ItemContentToJSON(value?: ItemContent | null): any {
161
182
  'exclude_from_top_sellers': value.exclude_from_top_sellers,
162
183
  'extended_description': value.extended_description,
163
184
  'extended_description_translated_text_instance_oid': value.extended_description_translated_text_instance_oid,
185
+ 'meta_description': value.meta_description,
186
+ 'meta_keywords': value.meta_keywords,
187
+ 'meta_title': value.meta_title,
164
188
  'multimedia': value.multimedia === undefined ? undefined : ((value.multimedia as Array<any>).map(ItemContentMultimediaToJSON)),
165
189
  'new_item': value.new_item,
166
190
  'new_item_end': value.new_item_end,