ultracart_rest_api_v2_typescript 4.0.71-RC → 4.0.73-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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.71-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.73-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.71-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.73-RC --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.73-RC | 10/07/2022 | bug fix for digital items response |
58
+ | 4.0.72-RC | 10/05/2022 | storefront rest file cdn icon urls |
57
59
  | 4.0.71-RC | 10/04/2022 | bug fix for new storefront file mgr |
58
60
  | 4.0.70-RC | 09/29/2022 | page_paths search category for search2 method |
59
61
  | 4.0.69-RC | 09/29/2022 | storefront file mgr calls tweaks |
@@ -199,6 +199,12 @@ export interface Customer {
199
199
  * @memberof Customer
200
200
  */
201
201
  maximum_item_count?: number;
202
+ /**
203
+ * Merchant ID
204
+ * @type {string}
205
+ * @memberof Customer
206
+ */
207
+ merchant_id?: string;
202
208
  /**
203
209
  * Minimum item count
204
210
  * @type {number}
@@ -68,6 +68,7 @@ function CustomerFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'last_modified_dts': !(0, runtime_1.exists)(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
69
69
  'loyalty': !(0, runtime_1.exists)(json, 'loyalty') ? undefined : (0, CustomerLoyalty_1.CustomerLoyaltyFromJSON)(json['loyalty']),
70
70
  'maximum_item_count': !(0, runtime_1.exists)(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
71
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
71
72
  'minimum_item_count': !(0, runtime_1.exists)(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
72
73
  'minimum_subtotal': !(0, runtime_1.exists)(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
73
74
  'no_coupons': !(0, runtime_1.exists)(json, 'no_coupons') ? undefined : json['no_coupons'],
@@ -138,6 +139,7 @@ function CustomerToJSON(value) {
138
139
  'last_modified_dts': value.last_modified_dts,
139
140
  'loyalty': (0, CustomerLoyalty_1.CustomerLoyaltyToJSON)(value.loyalty),
140
141
  'maximum_item_count': value.maximum_item_count,
142
+ 'merchant_id': value.merchant_id,
141
143
  'minimum_item_count': value.minimum_item_count,
142
144
  'minimum_subtotal': value.minimum_subtotal,
143
145
  'no_coupons': value.no_coupons,
@@ -117,6 +117,24 @@ export interface FileManagerFile {
117
117
  * @memberof FileManagerFile
118
118
  */
119
119
  storefront_oid?: number;
120
+ /**
121
+ * CDN thumbnail 16x16 size
122
+ * @type {string}
123
+ * @memberof FileManagerFile
124
+ */
125
+ thumbnail_16_url?: string;
126
+ /**
127
+ * CDN thumbnail 32x32 size
128
+ * @type {string}
129
+ * @memberof FileManagerFile
130
+ */
131
+ thumbnail_32_url?: string;
132
+ /**
133
+ * CDN thumbnail 64x64 size
134
+ * @type {string}
135
+ * @memberof FileManagerFile
136
+ */
137
+ thumbnail_64_url?: string;
120
138
  /**
121
139
  *
122
140
  * @type {string}
@@ -41,6 +41,9 @@ function FileManagerFileFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'storefront_fs_directory_oid': !(0, runtime_1.exists)(json, 'storefront_fs_directory_oid') ? undefined : json['storefront_fs_directory_oid'],
42
42
  'storefront_fs_file_oid': !(0, runtime_1.exists)(json, 'storefront_fs_file_oid') ? undefined : json['storefront_fs_file_oid'],
43
43
  'storefront_oid': !(0, runtime_1.exists)(json, 'storefront_oid') ? undefined : json['storefront_oid'],
44
+ 'thumbnail_16_url': !(0, runtime_1.exists)(json, 'thumbnail_16_url') ? undefined : json['thumbnail_16_url'],
45
+ 'thumbnail_32_url': !(0, runtime_1.exists)(json, 'thumbnail_32_url') ? undefined : json['thumbnail_32_url'],
46
+ 'thumbnail_64_url': !(0, runtime_1.exists)(json, 'thumbnail_64_url') ? undefined : json['thumbnail_64_url'],
44
47
  'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
45
48
  'valid_velocity': !(0, runtime_1.exists)(json, 'valid_velocity') ? undefined : json['valid_velocity'],
46
49
  };
@@ -71,6 +74,9 @@ function FileManagerFileToJSON(value) {
71
74
  'storefront_fs_directory_oid': value.storefront_fs_directory_oid,
72
75
  'storefront_fs_file_oid': value.storefront_fs_file_oid,
73
76
  'storefront_oid': value.storefront_oid,
77
+ 'thumbnail_16_url': value.thumbnail_16_url,
78
+ 'thumbnail_32_url': value.thumbnail_32_url,
79
+ 'thumbnail_64_url': value.thumbnail_64_url,
74
80
  'type': value.type,
75
81
  'valid_velocity': value.valid_velocity,
76
82
  };
@@ -24,7 +24,7 @@ export interface ItemDigitalItemsResponse {
24
24
  * @type {Array<ItemDigitalItem>}
25
25
  * @memberof ItemDigitalItemsResponse
26
26
  */
27
- digitalItems?: Array<ItemDigitalItem>;
27
+ digital_items?: Array<ItemDigitalItem>;
28
28
  /**
29
29
  *
30
30
  * @type {ModelError}
@@ -28,7 +28,7 @@ function ItemDigitalItemsResponseFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return json;
29
29
  }
30
30
  return {
31
- 'digitalItems': !(0, runtime_1.exists)(json, 'digitalItems') ? undefined : (json['digitalItems'].map(ItemDigitalItem_1.ItemDigitalItemFromJSON)),
31
+ 'digital_items': !(0, runtime_1.exists)(json, 'digital_items') ? undefined : (json['digital_items'].map(ItemDigitalItem_1.ItemDigitalItemFromJSON)),
32
32
  'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
33
33
  'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
34
34
  'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
@@ -44,7 +44,7 @@ function ItemDigitalItemsResponseToJSON(value) {
44
44
  return null;
45
45
  }
46
46
  return {
47
- 'digitalItems': value.digitalItems === undefined ? undefined : (value.digitalItems.map(ItemDigitalItem_1.ItemDigitalItemToJSON)),
47
+ 'digital_items': value.digital_items === undefined ? undefined : (value.digital_items.map(ItemDigitalItem_1.ItemDigitalItemToJSON)),
48
48
  'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
49
49
  'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
50
50
  'success': value.success,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.71-RC",
3
+ "version": "4.0.73-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -284,6 +284,12 @@ export interface Customer {
284
284
  * @memberof Customer
285
285
  */
286
286
  maximum_item_count?: number;
287
+ /**
288
+ * Merchant ID
289
+ * @type {string}
290
+ * @memberof Customer
291
+ */
292
+ merchant_id?: string;
287
293
  /**
288
294
  * Minimum item count
289
295
  * @type {number}
@@ -510,6 +516,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
510
516
  'last_modified_dts': !exists(json, 'last_modified_dts') ? undefined : json['last_modified_dts'],
511
517
  'loyalty': !exists(json, 'loyalty') ? undefined : CustomerLoyaltyFromJSON(json['loyalty']),
512
518
  'maximum_item_count': !exists(json, 'maximum_item_count') ? undefined : json['maximum_item_count'],
519
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
513
520
  'minimum_item_count': !exists(json, 'minimum_item_count') ? undefined : json['minimum_item_count'],
514
521
  'minimum_subtotal': !exists(json, 'minimum_subtotal') ? undefined : json['minimum_subtotal'],
515
522
  'no_coupons': !exists(json, 'no_coupons') ? undefined : json['no_coupons'],
@@ -581,6 +588,7 @@ export function CustomerToJSON(value?: Customer | null): any {
581
588
  'last_modified_dts': value.last_modified_dts,
582
589
  'loyalty': CustomerLoyaltyToJSON(value.loyalty),
583
590
  'maximum_item_count': value.maximum_item_count,
591
+ 'merchant_id': value.merchant_id,
584
592
  'minimum_item_count': value.minimum_item_count,
585
593
  'minimum_subtotal': value.minimum_subtotal,
586
594
  'no_coupons': value.no_coupons,
@@ -121,6 +121,24 @@ export interface FileManagerFile {
121
121
  * @memberof FileManagerFile
122
122
  */
123
123
  storefront_oid?: number;
124
+ /**
125
+ * CDN thumbnail 16x16 size
126
+ * @type {string}
127
+ * @memberof FileManagerFile
128
+ */
129
+ thumbnail_16_url?: string;
130
+ /**
131
+ * CDN thumbnail 32x32 size
132
+ * @type {string}
133
+ * @memberof FileManagerFile
134
+ */
135
+ thumbnail_32_url?: string;
136
+ /**
137
+ * CDN thumbnail 64x64 size
138
+ * @type {string}
139
+ * @memberof FileManagerFile
140
+ */
141
+ thumbnail_64_url?: string;
124
142
  /**
125
143
  *
126
144
  * @type {string}
@@ -162,6 +180,9 @@ export function FileManagerFileFromJSONTyped(json: any, ignoreDiscriminator: boo
162
180
  'storefront_fs_directory_oid': !exists(json, 'storefront_fs_directory_oid') ? undefined : json['storefront_fs_directory_oid'],
163
181
  'storefront_fs_file_oid': !exists(json, 'storefront_fs_file_oid') ? undefined : json['storefront_fs_file_oid'],
164
182
  'storefront_oid': !exists(json, 'storefront_oid') ? undefined : json['storefront_oid'],
183
+ 'thumbnail_16_url': !exists(json, 'thumbnail_16_url') ? undefined : json['thumbnail_16_url'],
184
+ 'thumbnail_32_url': !exists(json, 'thumbnail_32_url') ? undefined : json['thumbnail_32_url'],
185
+ 'thumbnail_64_url': !exists(json, 'thumbnail_64_url') ? undefined : json['thumbnail_64_url'],
165
186
  'type': !exists(json, 'type') ? undefined : json['type'],
166
187
  'valid_velocity': !exists(json, 'valid_velocity') ? undefined : json['valid_velocity'],
167
188
  };
@@ -193,6 +214,9 @@ export function FileManagerFileToJSON(value?: FileManagerFile | null): any {
193
214
  'storefront_fs_directory_oid': value.storefront_fs_directory_oid,
194
215
  'storefront_fs_file_oid': value.storefront_fs_file_oid,
195
216
  'storefront_oid': value.storefront_oid,
217
+ 'thumbnail_16_url': value.thumbnail_16_url,
218
+ 'thumbnail_32_url': value.thumbnail_32_url,
219
+ 'thumbnail_64_url': value.thumbnail_64_url,
196
220
  'type': value.type,
197
221
  'valid_velocity': value.valid_velocity,
198
222
  };
@@ -49,7 +49,7 @@ export interface ItemDigitalItemsResponse {
49
49
  * @type {Array<ItemDigitalItem>}
50
50
  * @memberof ItemDigitalItemsResponse
51
51
  */
52
- digitalItems?: Array<ItemDigitalItem>;
52
+ digital_items?: Array<ItemDigitalItem>;
53
53
  /**
54
54
  *
55
55
  * @type {ModelError}
@@ -86,7 +86,7 @@ export function ItemDigitalItemsResponseFromJSONTyped(json: any, ignoreDiscrimin
86
86
  }
87
87
  return {
88
88
 
89
- 'digitalItems': !exists(json, 'digitalItems') ? undefined : ((json['digitalItems'] as Array<any>).map(ItemDigitalItemFromJSON)),
89
+ 'digital_items': !exists(json, 'digital_items') ? undefined : ((json['digital_items'] as Array<any>).map(ItemDigitalItemFromJSON)),
90
90
  'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
91
91
  'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
92
92
  'success': !exists(json, 'success') ? undefined : json['success'],
@@ -103,7 +103,7 @@ export function ItemDigitalItemsResponseToJSON(value?: ItemDigitalItemsResponse
103
103
  }
104
104
  return {
105
105
 
106
- 'digitalItems': value.digitalItems === undefined ? undefined : ((value.digitalItems as Array<any>).map(ItemDigitalItemToJSON)),
106
+ 'digital_items': value.digital_items === undefined ? undefined : ((value.digital_items as Array<any>).map(ItemDigitalItemToJSON)),
107
107
  'error': ModelErrorToJSON(value.error),
108
108
  'metadata': ResponseMetadataToJSON(value.metadata),
109
109
  'success': value.success,