@cloudcommerce/api 0.14.0 → 0.15.0

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.
@@ -1,360 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
-
8
- /**
9
- * Shopping cart object model
10
- */
11
- export interface Carts {
12
- _id: string & { length: 24 };
13
- created_at: string;
14
- updated_at: string;
15
- store_id: number;
16
- /**
17
- * Whether cart was created by staff and is trusted
18
- */
19
- staff_signature?: boolean;
20
- /**
21
- * Whether cart still available to complete checkout
22
- */
23
- available?: boolean;
24
- /**
25
- * If the cart has been completed, generating an order
26
- */
27
- completed?: boolean;
28
- /**
29
- * URL to this cart's page
30
- */
31
- permalink?: string;
32
- /**
33
- * Status defined by seller
34
- */
35
- status?: string;
36
- /**
37
- * UTM campaign HTTP parameters
38
- */
39
- utm?: {
40
- /**
41
- * Parameter 'utm_source', the referrer: (e.g. 'google', 'newsletter')
42
- */
43
- source?: string;
44
- /**
45
- * Parameter 'utm_medium', the marketing medium: (e.g. 'cpc', 'banner', 'email')
46
- */
47
- medium?: string;
48
- /**
49
- * Parameter 'utm_campaign', the product, promo code, or slogan (e.g. 'spring_sale')
50
- */
51
- campaign?: string;
52
- /**
53
- * Parameter 'utm_term', identifies the paid keywords
54
- */
55
- term?: string;
56
- /**
57
- * Parameter 'utm_content', used to differentiate ads
58
- */
59
- content?: string;
60
- };
61
- /**
62
- * The website that the customer clicked on to come to the shop
63
- */
64
- referring_site?: string;
65
- /**
66
- * Code to identify the affiliate that referred the customer
67
- */
68
- affiliate_code?: string;
69
- /**
70
- * List of customers associated with this cart
71
- *
72
- * @maxItems 3000
73
- */
74
- customers?: string[];
75
- /**
76
- * Whether cart is available for other customers too (anyone)
77
- */
78
- other_customers?: boolean;
79
- /**
80
- * Products composing the cart
81
- *
82
- * @maxItems 3000
83
- */
84
- items: {
85
- /**
86
- * Cart item ID (ObjectID) [auto]
87
- */
88
- _id?: string;
89
- /**
90
- * Product ID
91
- */
92
- product_id: string;
93
- /**
94
- * ID to specify the variation added to cart, if product has variations
95
- */
96
- variation_id?: string;
97
- /**
98
- * Product or variation SKU (reference code)
99
- */
100
- sku?: string;
101
- /**
102
- * Product or variation full name, or other label for this cart item
103
- */
104
- name?: string;
105
- /**
106
- * Product or variation picture for this cart item
107
- */
108
- picture?: {
109
- normal?: PictureSize;
110
- big?: PictureSize1;
111
- zoom?: PictureSize2;
112
- small?: PictureSize3;
113
- };
114
- /**
115
- * Item customization fields
116
- *
117
- * @maxItems 100
118
- */
119
- customizations?: {
120
- /**
121
- * Title for this customization field, can be the grid title
122
- */
123
- label?: string;
124
- /**
125
- * Option chosen or created by customer
126
- */
127
- option: {
128
- /**
129
- * Option ID (ObjectID) if it was predefined (not custom value created by customer)
130
- */
131
- _id?: string;
132
- /**
133
- * Option text value displayed for the client
134
- */
135
- text: string;
136
- };
137
- /**
138
- * URL of file attached by customer to this field
139
- */
140
- attachment?: string;
141
- /**
142
- * Price alteration due to this customization
143
- */
144
- add_to_price?: {
145
- /**
146
- * Type of price addition
147
- */
148
- type?: 'percentage' | 'fixed';
149
- /**
150
- * Additional value, could be negative
151
- */
152
- addition: number;
153
- };
154
- }[];
155
- /**
156
- * Parent kit product for this item
157
- */
158
- kit_product?: {
159
- /**
160
- * Kit product ID (ObjectID)
161
- */
162
- _id: string & { length: 24 };
163
- /**
164
- * Kit product full name
165
- */
166
- name?: string;
167
- /**
168
- * Total quantity of items to close a kit unit
169
- */
170
- pack_quantity?: number;
171
- /**
172
- * Kit total pack price
173
- */
174
- price?: number;
175
- /**
176
- * Current kit composition
177
- *
178
- * @maxItems 100
179
- */
180
- composition?: {
181
- /**
182
- * Product ID (ObjectID)
183
- */
184
- _id: string & { length: 24 };
185
- /**
186
- * Selected variation ID (ObjectID) if any
187
- */
188
- variation_id?: string;
189
- /**
190
- * Kit item quantity
191
- */
192
- quantity?: number;
193
- }[];
194
- };
195
- /**
196
- * Item quantity in cart
197
- */
198
- quantity: number;
199
- /**
200
- * Minimum item quantity for this cart
201
- */
202
- min_quantity?: number;
203
- /**
204
- * Maximum item quantity for this cart
205
- */
206
- max_quantity?: number;
207
- /**
208
- * Deadline for production or handling of pre-ordered item
209
- */
210
- production_time?: {
211
- /**
212
- * Number of days to post the product after purchase, deadline for production or handling
213
- */
214
- days: number;
215
- /**
216
- * If the deadline is calculated in working days
217
- */
218
- working_days?: boolean;
219
- /**
220
- * If the production time is cumulative per item unit
221
- */
222
- cumulative?: boolean;
223
- /**
224
- * When cumulative, increase the term proportionally up to this maximum (in days)
225
- */
226
- max_time?: number;
227
- };
228
- /**
229
- * Designator of currency according to ISO 4217 (3 uppercase letters)
230
- */
231
- currency_id?: string;
232
- /**
233
- * Graphic symbol used as a shorthand for currency's name
234
- */
235
- currency_symbol?: string;
236
- /**
237
- * Product sale price specifically for this cart
238
- */
239
- price: number;
240
- /**
241
- * Final item price including additions due to customizations (auto-calculated)
242
- */
243
- final_price?: number;
244
- /**
245
- * Flags to associate additional info
246
- *
247
- * @maxItems 10
248
- */
249
- flags?: string[];
250
- }[];
251
- /**
252
- * The sum of all items prices (auto-calculated)
253
- */
254
- subtotal?: number;
255
- /**
256
- * List of orders completed with this cart
257
- *
258
- * @maxItems 3000
259
- */
260
- orders?: string[];
261
- /**
262
- * List of custom attributes
263
- *
264
- * @maxItems 100
265
- */
266
- metafields?: {
267
- /**
268
- * String to help distinguish who (or which app) created and can use the metafield
269
- */
270
- namespace?: string;
271
- /**
272
- * Field name
273
- */
274
- field?: string;
275
- /**
276
- * Custom property value
277
- */
278
- value: {
279
- [k: string]: unknown;
280
- };
281
- }[];
282
- /**
283
- * Flags to associate additional info
284
- *
285
- * @maxItems 10
286
- */
287
- flags?: string[];
288
- /**
289
- * Optional notes with additional info about this brand
290
- */
291
- notes?: string;
292
- }
293
- /**
294
- * Default image size variant
295
- */
296
- export interface PictureSize {
297
- /**
298
- * Image link
299
- */
300
- url: string;
301
- /**
302
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
303
- */
304
- size?: string;
305
- /**
306
- * Alternative text, HTML alt tag (important for SEO)
307
- */
308
- alt?: string;
309
- }
310
- /**
311
- * Image big size variant
312
- */
313
- export interface PictureSize1 {
314
- /**
315
- * Image link
316
- */
317
- url: string;
318
- /**
319
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
320
- */
321
- size?: string;
322
- /**
323
- * Alternative text, HTML alt tag (important for SEO)
324
- */
325
- alt?: string;
326
- }
327
- /**
328
- * Image zoom size variant
329
- */
330
- export interface PictureSize2 {
331
- /**
332
- * Image link
333
- */
334
- url: string;
335
- /**
336
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
337
- */
338
- size?: string;
339
- /**
340
- * Alternative text, HTML alt tag (important for SEO)
341
- */
342
- alt?: string;
343
- }
344
- /**
345
- * Image small size variant
346
- */
347
- export interface PictureSize3 {
348
- /**
349
- * Image link
350
- */
351
- url: string;
352
- /**
353
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
354
- */
355
- size?: string;
356
- /**
357
- * Alternative text, HTML alt tag (important for SEO)
358
- */
359
- alt?: string;
360
- }
@@ -1,159 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
-
8
- export interface Collections {
9
- _id: string & { length: 24 };
10
- created_at: string;
11
- updated_at: string;
12
- store_id: number;
13
- /**
14
- * Collection full name
15
- */
16
- name: string;
17
- /**
18
- * Slug to complete page URL, starting with number or lowercase letter
19
- */
20
- slug?: string;
21
- /**
22
- * Short collection description in plain text
23
- */
24
- short_description?: string;
25
- /**
26
- * Full collection description, may use HTML tags
27
- */
28
- body_html?: string;
29
- /**
30
- * Full collection description, plain text only
31
- */
32
- body_text?: string;
33
- /**
34
- * Title tag for page SEO
35
- */
36
- meta_title?: string;
37
- /**
38
- * Meta description tag for page SEO
39
- */
40
- meta_description?: string;
41
- /**
42
- * Text translations for internationalization
43
- */
44
- i18n?: {
45
- /**
46
- * Language specific text fields
47
- *
48
- * This interface was referenced by `undefined`'s JSON-Schema definition
49
- * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
50
- */
51
- [k: string]: {
52
- /**
53
- * Category full name
54
- */
55
- name?: string;
56
- /**
57
- * Short collection description in plain text
58
- */
59
- short_description?: string;
60
- /**
61
- * Full collection description, may use HTML tags
62
- */
63
- body_html?: string;
64
- /**
65
- * Full collection description, plain text only
66
- */
67
- body_text?: string;
68
- /**
69
- * Title tag for page SEO
70
- */
71
- meta_title?: string;
72
- /**
73
- * Meta description tag for page SEO
74
- */
75
- meta_description?: string;
76
- };
77
- };
78
- /**
79
- * List of collection products
80
- *
81
- * @maxItems 3000
82
- */
83
- products?: string[];
84
- /**
85
- * Collection icon image
86
- */
87
- icon?: {
88
- /**
89
- * Image link
90
- */
91
- url: string;
92
- /**
93
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
94
- */
95
- size?: string;
96
- /**
97
- * Alternative text, HTML alt tag (important for SEO)
98
- */
99
- alt?: string;
100
- };
101
- /**
102
- * List of collection images
103
- *
104
- * @maxItems 50
105
- */
106
- pictures?: {
107
- /**
108
- * Picture ID (ObjectID) [auto]
109
- */
110
- _id?: string;
111
- /**
112
- * Tag to identify object, use only lowercase letters, digits and underscore
113
- */
114
- tag?: string;
115
- /**
116
- * Image link
117
- */
118
- url: string;
119
- /**
120
- * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
121
- */
122
- size?: string;
123
- /**
124
- * Alternative text, HTML alt tag (important for SEO)
125
- */
126
- alt?: string;
127
- }[];
128
- /**
129
- * List of custom attributes
130
- *
131
- * @maxItems 100
132
- */
133
- metafields?: {
134
- /**
135
- * String to help distinguish who (or which app) created and can use the metafield
136
- */
137
- namespace?: string;
138
- /**
139
- * Field name
140
- */
141
- field?: string;
142
- /**
143
- * Custom property value
144
- */
145
- value: {
146
- [k: string]: unknown;
147
- };
148
- }[];
149
- /**
150
- * Flags to associate additional info
151
- *
152
- * @maxItems 10
153
- */
154
- flags?: string[];
155
- /**
156
- * Optional notes with additional info about this category
157
- */
158
- notes?: string;
159
- }