ultracart_rest_api_v2_typescript 4.0.70-RC → 4.0.72-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 +4 -2
- package/dist/models/CartBilling.d.ts +12 -0
- package/dist/models/CartBilling.js +4 -0
- package/dist/models/FileManagerFile.d.ts +18 -0
- package/dist/models/FileManagerFile.js +6 -0
- package/dist/models/FileManagerUploadUrlResponse.d.ts +6 -0
- package/dist/models/FileManagerUploadUrlResponse.js +2 -0
- package/dist/models/Order.d.ts +1 -0
- package/dist/models/Order.js +2 -1
- package/package.json +1 -1
- package/src/models/CartBilling.ts +16 -0
- package/src/models/FileManagerFile.ts +24 -0
- package/src/models/FileManagerUploadUrlResponse.ts +8 -0
- package/src/models/Order.ts +2 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.72-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.72-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.72-RC | 10/05/2022 | storefront rest file cdn icon urls |
|
|
58
|
+
| 4.0.71-RC | 10/04/2022 | bug fix for new storefront file mgr |
|
|
57
59
|
| 4.0.70-RC | 09/29/2022 | page_paths search category for search2 method |
|
|
58
60
|
| 4.0.69-RC | 09/29/2022 | storefront file mgr calls tweaks |
|
|
59
61
|
| 4.0.68-RC | 09/29/2022 | storefront methods for file manager ui |
|
|
@@ -33,6 +33,18 @@ export interface CartBilling {
|
|
|
33
33
|
* @memberof CartBilling
|
|
34
34
|
*/
|
|
35
35
|
cc_emails?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Cell phone
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CartBilling
|
|
40
|
+
*/
|
|
41
|
+
cell_phone?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Cell phone (E164 format)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CartBilling
|
|
46
|
+
*/
|
|
47
|
+
cell_phone_e164?: string;
|
|
36
48
|
/**
|
|
37
49
|
* City
|
|
38
50
|
* @type {string}
|
|
@@ -27,6 +27,8 @@ function CartBillingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'address1': !(0, runtime_1.exists)(json, 'address1') ? undefined : json['address1'],
|
|
28
28
|
'address2': !(0, runtime_1.exists)(json, 'address2') ? undefined : json['address2'],
|
|
29
29
|
'cc_emails': !(0, runtime_1.exists)(json, 'cc_emails') ? undefined : json['cc_emails'],
|
|
30
|
+
'cell_phone': !(0, runtime_1.exists)(json, 'cell_phone') ? undefined : json['cell_phone'],
|
|
31
|
+
'cell_phone_e164': !(0, runtime_1.exists)(json, 'cell_phone_e164') ? undefined : json['cell_phone_e164'],
|
|
30
32
|
'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
|
|
31
33
|
'company': !(0, runtime_1.exists)(json, 'company') ? undefined : json['company'],
|
|
32
34
|
'country_code': !(0, runtime_1.exists)(json, 'country_code') ? undefined : json['country_code'],
|
|
@@ -53,6 +55,8 @@ function CartBillingToJSON(value) {
|
|
|
53
55
|
'address1': value.address1,
|
|
54
56
|
'address2': value.address2,
|
|
55
57
|
'cc_emails': value.cc_emails,
|
|
58
|
+
'cell_phone': value.cell_phone,
|
|
59
|
+
'cell_phone_e164': value.cell_phone_e164,
|
|
56
60
|
'city': value.city,
|
|
57
61
|
'company': value.company,
|
|
58
62
|
'country_code': value.country_code,
|
|
@@ -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
|
};
|
|
@@ -42,6 +42,12 @@ export interface FileManagerUploadUrlResponse {
|
|
|
42
42
|
* @memberof FileManagerUploadUrlResponse
|
|
43
43
|
*/
|
|
44
44
|
success?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof FileManagerUploadUrlResponse
|
|
49
|
+
*/
|
|
50
|
+
url?: string;
|
|
45
51
|
/**
|
|
46
52
|
*
|
|
47
53
|
* @type {Warning}
|
|
@@ -31,6 +31,7 @@ function FileManagerUploadUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'key': !(0, runtime_1.exists)(json, 'key') ? undefined : json['key'],
|
|
32
32
|
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
33
33
|
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
34
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
34
35
|
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -47,6 +48,7 @@ function FileManagerUploadUrlResponseToJSON(value) {
|
|
|
47
48
|
'key': value.key,
|
|
48
49
|
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
49
50
|
'success': value.success,
|
|
51
|
+
'url': value.url,
|
|
50
52
|
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
51
53
|
};
|
|
52
54
|
}
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export declare const OrderCurrentStageEnum: {
|
|
|
260
260
|
readonly LeastCostRouting: "Least Cost Routing";
|
|
261
261
|
readonly Unknown: "Unknown";
|
|
262
262
|
readonly PreOrdered: "Pre-ordered";
|
|
263
|
+
readonly AdvancedOrderRouting: "Advanced Order Routing";
|
|
263
264
|
};
|
|
264
265
|
export declare type OrderCurrentStageEnum = typeof OrderCurrentStageEnum[keyof typeof OrderCurrentStageEnum];
|
|
265
266
|
export declare function OrderFromJSON(json: any): Order;
|
package/dist/models/Order.js
CHANGED
|
@@ -54,7 +54,8 @@ exports.OrderCurrentStageEnum = {
|
|
|
54
54
|
QuoteSent: 'Quote Sent',
|
|
55
55
|
LeastCostRouting: 'Least Cost Routing',
|
|
56
56
|
Unknown: 'Unknown',
|
|
57
|
-
PreOrdered: 'Pre-ordered'
|
|
57
|
+
PreOrdered: 'Pre-ordered',
|
|
58
|
+
AdvancedOrderRouting: 'Advanced Order Routing'
|
|
58
59
|
};
|
|
59
60
|
function OrderFromJSON(json) {
|
|
60
61
|
return OrderFromJSONTyped(json, false);
|
package/package.json
CHANGED
|
@@ -37,6 +37,18 @@ export interface CartBilling {
|
|
|
37
37
|
* @memberof CartBilling
|
|
38
38
|
*/
|
|
39
39
|
cc_emails?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Cell phone
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CartBilling
|
|
44
|
+
*/
|
|
45
|
+
cell_phone?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Cell phone (E164 format)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CartBilling
|
|
50
|
+
*/
|
|
51
|
+
cell_phone_e164?: string;
|
|
40
52
|
/**
|
|
41
53
|
* City
|
|
42
54
|
* @type {string}
|
|
@@ -124,6 +136,8 @@ export function CartBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
124
136
|
'address1': !exists(json, 'address1') ? undefined : json['address1'],
|
|
125
137
|
'address2': !exists(json, 'address2') ? undefined : json['address2'],
|
|
126
138
|
'cc_emails': !exists(json, 'cc_emails') ? undefined : json['cc_emails'],
|
|
139
|
+
'cell_phone': !exists(json, 'cell_phone') ? undefined : json['cell_phone'],
|
|
140
|
+
'cell_phone_e164': !exists(json, 'cell_phone_e164') ? undefined : json['cell_phone_e164'],
|
|
127
141
|
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
128
142
|
'company': !exists(json, 'company') ? undefined : json['company'],
|
|
129
143
|
'country_code': !exists(json, 'country_code') ? undefined : json['country_code'],
|
|
@@ -151,6 +165,8 @@ export function CartBillingToJSON(value?: CartBilling | null): any {
|
|
|
151
165
|
'address1': value.address1,
|
|
152
166
|
'address2': value.address2,
|
|
153
167
|
'cc_emails': value.cc_emails,
|
|
168
|
+
'cell_phone': value.cell_phone,
|
|
169
|
+
'cell_phone_e164': value.cell_phone_e164,
|
|
154
170
|
'city': value.city,
|
|
155
171
|
'company': value.company,
|
|
156
172
|
'country_code': value.country_code,
|
|
@@ -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
|
};
|
|
@@ -62,6 +62,12 @@ export interface FileManagerUploadUrlResponse {
|
|
|
62
62
|
* @memberof FileManagerUploadUrlResponse
|
|
63
63
|
*/
|
|
64
64
|
success?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof FileManagerUploadUrlResponse
|
|
69
|
+
*/
|
|
70
|
+
url?: string;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {Warning}
|
|
@@ -84,6 +90,7 @@ export function FileManagerUploadUrlResponseFromJSONTyped(json: any, ignoreDiscr
|
|
|
84
90
|
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
85
91
|
'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
|
|
86
92
|
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
93
|
+
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
87
94
|
'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
|
|
88
95
|
};
|
|
89
96
|
}
|
|
@@ -101,6 +108,7 @@ export function FileManagerUploadUrlResponseToJSON(value?: FileManagerUploadUrlR
|
|
|
101
108
|
'key': value.key,
|
|
102
109
|
'metadata': ResponseMetadataToJSON(value.metadata),
|
|
103
110
|
'success': value.success,
|
|
111
|
+
'url': value.url,
|
|
104
112
|
'warning': WarningToJSON(value.warning),
|
|
105
113
|
};
|
|
106
114
|
}
|
package/src/models/Order.ts
CHANGED
|
@@ -391,7 +391,8 @@ export const OrderCurrentStageEnum = {
|
|
|
391
391
|
QuoteSent: 'Quote Sent',
|
|
392
392
|
LeastCostRouting: 'Least Cost Routing',
|
|
393
393
|
Unknown: 'Unknown',
|
|
394
|
-
PreOrdered: 'Pre-ordered'
|
|
394
|
+
PreOrdered: 'Pre-ordered',
|
|
395
|
+
AdvancedOrderRouting: 'Advanced Order Routing'
|
|
395
396
|
} as const;
|
|
396
397
|
export type OrderCurrentStageEnum = typeof OrderCurrentStageEnum[keyof typeof OrderCurrentStageEnum];
|
|
397
398
|
|