cloudcommerce 0.6.2 → 0.6.4
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/CHANGELOG.md +30 -0
- package/package.json +10 -10
- package/packages/api/lib/types/carts.d.ts +72 -20
- package/packages/api/lib/types/orders.d.ts +72 -20
- package/packages/api/lib/types/products.d.ts +82 -11
- package/packages/api/package.json +1 -1
- package/packages/api/src/types/carts.d.ts +72 -20
- package/packages/api/src/types/orders.d.ts +72 -20
- package/packages/api/src/types/products.d.ts +82 -11
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +2 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/infinitepay/package.json +2 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +3 -3
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +3 -2
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +5 -5
- package/packages/ssr/src/firebase/serve-storefront.ts +3 -2
- package/packages/storefront/dist/client/_astro/PitchBar.b3636d56.js +1 -0
- package/packages/storefront/dist/client/_astro/{Prices.a1302bf9.js → Prices.2bd87845.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductCard.1a45764a.js → ProductCard.48f0f5ba.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.44e0873d.js +4 -0
- package/packages/storefront/dist/client/_astro/_...slug_.cd49465e.css +1 -0
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.43eaff51.js +1 -0
- package/packages/storefront/dist/client/_astro/client.14d15518.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.6f464cee.js → format-money.060d67ef.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index.a500792d.js → index.3243538d.js} +1 -1
- package/packages/storefront/dist/client/_astro/{modules-info.80ae4e30.js → modules-info.01f8d523.js} +1 -1
- package/packages/storefront/dist/client/_astro/{runtime-dom.esm-bundler.acde10ec.js → runtime-dom.esm-bundler.cb4db78a.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{astro.7d9d5f6e.mjs → astro.a9f695c0.mjs} +16 -3
- package/packages/storefront/dist/server/chunks/pages/{all.42c985c2.mjs → all.7f368e08.mjs} +638 -101
- package/packages/storefront/dist/server/entry.mjs +59 -16
- package/packages/storefront/package.json +10 -10
- package/packages/storefront/src/lib/components/CarouselControl.vue +4 -1
- package/packages/storefront/src/lib/components/globals/AImg.vue +53 -0
- package/packages/storefront/src/lib/composables/use-shop-header-submenu.ts +53 -0
- package/packages/storefront/src/lib/composables/use-shop-header.ts +55 -7
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -1
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +3 -0
- package/packages/storefront/src/lib/pages/_vue.ts +2 -0
- package/packages/storefront/src/lib/ssr-context.ts +4 -2
- package/packages/storefront/src/vue-globals.d.ts +1 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/PitchBar.457658a3.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.d36e6752.js +0 -1
- package/packages/storefront/dist/client/_astro/_...slug_.6721f699.css +0 -1
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.6da04e63.js +0 -1
- package/packages/storefront/dist/client/_astro/client.b854166f.js +0 -1
- package/packages/storefront/dist/client/fallback/index.html +0 -79
- package/packages/storefront/dist/server/chunks/prerender.6899569d.mjs +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.6.4](https://github.com/ecomplus/cloud-commerce/compare/v0.6.3...v0.6.4) (2023-02-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **api:** Improved product and cart/order item picture object typedef ([aa2f206](https://github.com/ecomplus/cloud-commerce/commit/aa2f20628599321951fe4992f8babdb753b4ce57))
|
|
11
|
+
* **storefront:** Add new `AImg` global Vue component ([ac4be0b](https://github.com/ecomplus/cloud-commerce/commit/ac4be0bd710fbb380bac16958f073648e999e0fb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **ssr:** Fix handling not found routes ([7749baa](https://github.com/ecomplus/cloud-commerce/commit/7749baad91308d8b39fa5dc548cf46058f307136))
|
|
17
|
+
* **storefront:** Ensure Web App Manifest <link> ([d17dcb4](https://github.com/ecomplus/cloud-commerce/commit/d17dcb46e72c651d8a2e0ad46143785c25f081a2))
|
|
18
|
+
|
|
19
|
+
### [0.6.3](https://github.com/ecomplus/cloud-commerce/compare/v0.6.2...v0.6.3) (2023-02-21)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **storefront:** Add new `useShopHeaderSubmenu` composable ([f2a73d3](https://github.com/ecomplus/cloud-commerce/commit/f2a73d36da2d069c05a9607d71a57bc834f704ac))
|
|
25
|
+
* **storefront:** Edit default SSR prefetch endpoint to also get categories first picture field ([fd81185](https://github.com/ecomplus/cloud-commerce/commit/fd81185fc0b8b33b16bed6a61730e6fb6fe25677))
|
|
26
|
+
* **storefront:** Update `useShopHeader` to handle CMS header config for categories ([ccbf0a9](https://github.com/ecomplus/cloud-commerce/commit/ccbf0a9667d5eb6bbe52afe03c1bbfacf7314f67))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **deps:** Update all non-major dependencies ([#125](https://github.com/ecomplus/cloud-commerce/issues/125)) ([884f1f4](https://github.com/ecomplus/cloud-commerce/commit/884f1f451f6bd4d5ac95cd734544e24a90bd5037))
|
|
32
|
+
* **storefront:** Fixing `useShopHeaderSubmenu` returned `categoryPicture` ([32ba21b](https://github.com/ecomplus/cloud-commerce/commit/32ba21bf5679bfccba2d439ccfecb113340956e3))
|
|
33
|
+
* **storefront:** Support parameters on API prefetch endpoints keeping only resource on `apiState` ([03c66df](https://github.com/ecomplus/cloud-commerce/commit/03c66dfe8e9c5a5a332a11cbc18d6a608cf2c788))
|
|
34
|
+
|
|
5
35
|
### [0.6.2](https://github.com/ecomplus/cloud-commerce/compare/v0.6.1...v0.6.2) (2023-02-19)
|
|
6
36
|
|
|
7
37
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^17.4.
|
|
20
|
-
"@commitlint/config-conventional": "^17.4.
|
|
21
|
-
"@commitlint/rules": "^17.4.
|
|
22
|
-
"@types/node": "^18.
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
24
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
-
"esbuild": "^0.17.
|
|
19
|
+
"@commitlint/cli": "^17.4.4",
|
|
20
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
21
|
+
"@commitlint/rules": "^17.4.4",
|
|
22
|
+
"@types/node": "^18.14.0",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
24
|
+
"@typescript-eslint/parser": "^5.52.0",
|
|
25
|
+
"esbuild": "^0.17.9",
|
|
26
26
|
"eslint": "^8.34.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
28
28
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"turbo": "1.6.3",
|
|
34
34
|
"typescript": "^4.9.5",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
|
-
"vite": "^4.1.
|
|
37
|
-
"vitest": "^0.28.
|
|
36
|
+
"vite": "^4.1.3",
|
|
37
|
+
"vitest": "^0.28.5",
|
|
38
38
|
"zx": "^7.1.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
@@ -106,26 +106,10 @@ export interface Carts {
|
|
|
106
106
|
* Product or variation picture for this cart item
|
|
107
107
|
*/
|
|
108
108
|
picture?: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* via the `patternProperty` "^small|normal|big|zoom|custom$".
|
|
114
|
-
*/
|
|
115
|
-
[k: string]: {
|
|
116
|
-
/**
|
|
117
|
-
* Image link
|
|
118
|
-
*/
|
|
119
|
-
url: string;
|
|
120
|
-
/**
|
|
121
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
122
|
-
*/
|
|
123
|
-
size?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
126
|
-
*/
|
|
127
|
-
alt?: string;
|
|
128
|
-
};
|
|
109
|
+
normal?: PictureSize;
|
|
110
|
+
big?: PictureSize1;
|
|
111
|
+
zoom?: PictureSize2;
|
|
112
|
+
small?: PictureSize3;
|
|
129
113
|
};
|
|
130
114
|
/**
|
|
131
115
|
* Item customization fields
|
|
@@ -306,3 +290,71 @@ export interface Carts {
|
|
|
306
290
|
*/
|
|
307
291
|
notes?: string;
|
|
308
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
|
+
}
|
|
@@ -1160,26 +1160,10 @@ export interface Orders {
|
|
|
1160
1160
|
* Product or variation picture for this cart item
|
|
1161
1161
|
*/
|
|
1162
1162
|
picture?: {
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
* via the `patternProperty` "^small|normal|big|zoom|custom$".
|
|
1168
|
-
*/
|
|
1169
|
-
[k: string]: {
|
|
1170
|
-
/**
|
|
1171
|
-
* Image link
|
|
1172
|
-
*/
|
|
1173
|
-
url: string;
|
|
1174
|
-
/**
|
|
1175
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1176
|
-
*/
|
|
1177
|
-
size?: string;
|
|
1178
|
-
/**
|
|
1179
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
1180
|
-
*/
|
|
1181
|
-
alt?: string;
|
|
1182
|
-
};
|
|
1163
|
+
normal?: PictureSize;
|
|
1164
|
+
big?: PictureSize1;
|
|
1165
|
+
zoom?: PictureSize2;
|
|
1166
|
+
small?: PictureSize3;
|
|
1183
1167
|
};
|
|
1184
1168
|
/**
|
|
1185
1169
|
* Item customization fields
|
|
@@ -1651,3 +1635,71 @@ export interface Address2 {
|
|
|
1651
1635
|
number: string;
|
|
1652
1636
|
};
|
|
1653
1637
|
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Default image size variant
|
|
1640
|
+
*/
|
|
1641
|
+
export interface PictureSize {
|
|
1642
|
+
/**
|
|
1643
|
+
* Image link
|
|
1644
|
+
*/
|
|
1645
|
+
url: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1648
|
+
*/
|
|
1649
|
+
size?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1652
|
+
*/
|
|
1653
|
+
alt?: string;
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Image big size variant
|
|
1657
|
+
*/
|
|
1658
|
+
export interface PictureSize1 {
|
|
1659
|
+
/**
|
|
1660
|
+
* Image link
|
|
1661
|
+
*/
|
|
1662
|
+
url: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1665
|
+
*/
|
|
1666
|
+
size?: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1669
|
+
*/
|
|
1670
|
+
alt?: string;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Image zoom size variant
|
|
1674
|
+
*/
|
|
1675
|
+
export interface PictureSize2 {
|
|
1676
|
+
/**
|
|
1677
|
+
* Image link
|
|
1678
|
+
*/
|
|
1679
|
+
url: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1682
|
+
*/
|
|
1683
|
+
size?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1686
|
+
*/
|
|
1687
|
+
alt?: string;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Image small size variant
|
|
1691
|
+
*/
|
|
1692
|
+
export interface PictureSize3 {
|
|
1693
|
+
/**
|
|
1694
|
+
* Image link
|
|
1695
|
+
*/
|
|
1696
|
+
url: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1699
|
+
*/
|
|
1700
|
+
size?: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1703
|
+
*/
|
|
1704
|
+
alt?: string;
|
|
1705
|
+
}
|
|
@@ -802,17 +802,20 @@ export interface Products {
|
|
|
802
802
|
*
|
|
803
803
|
* @maxItems 50
|
|
804
804
|
*/
|
|
805
|
-
pictures?:
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
805
|
+
pictures?: {
|
|
806
|
+
/**
|
|
807
|
+
* Picture ID (ObjectID) [auto]
|
|
808
|
+
*/
|
|
809
|
+
_id?: string;
|
|
810
|
+
/**
|
|
811
|
+
* Tag to identify object, use only lowercase letters, digits and underscore
|
|
812
|
+
*/
|
|
813
|
+
tag?: string;
|
|
814
|
+
normal?: PictureSize;
|
|
815
|
+
big?: PictureSize1;
|
|
816
|
+
zoom?: PictureSize2;
|
|
817
|
+
small?: PictureSize3;
|
|
818
|
+
}[];
|
|
816
819
|
/**
|
|
817
820
|
* List of videos related to your product
|
|
818
821
|
*
|
|
@@ -1351,3 +1354,71 @@ export interface Products {
|
|
|
1351
1354
|
*/
|
|
1352
1355
|
notes?: string;
|
|
1353
1356
|
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Default image size variant
|
|
1359
|
+
*/
|
|
1360
|
+
export interface PictureSize {
|
|
1361
|
+
/**
|
|
1362
|
+
* Image link
|
|
1363
|
+
*/
|
|
1364
|
+
url: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1367
|
+
*/
|
|
1368
|
+
size?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1371
|
+
*/
|
|
1372
|
+
alt?: string;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Image big size variant
|
|
1376
|
+
*/
|
|
1377
|
+
export interface PictureSize1 {
|
|
1378
|
+
/**
|
|
1379
|
+
* Image link
|
|
1380
|
+
*/
|
|
1381
|
+
url: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1384
|
+
*/
|
|
1385
|
+
size?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1388
|
+
*/
|
|
1389
|
+
alt?: string;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Image zoom size variant
|
|
1393
|
+
*/
|
|
1394
|
+
export interface PictureSize2 {
|
|
1395
|
+
/**
|
|
1396
|
+
* Image link
|
|
1397
|
+
*/
|
|
1398
|
+
url: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1401
|
+
*/
|
|
1402
|
+
size?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1405
|
+
*/
|
|
1406
|
+
alt?: string;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Image small size variant
|
|
1410
|
+
*/
|
|
1411
|
+
export interface PictureSize3 {
|
|
1412
|
+
/**
|
|
1413
|
+
* Image link
|
|
1414
|
+
*/
|
|
1415
|
+
url: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1418
|
+
*/
|
|
1419
|
+
size?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1422
|
+
*/
|
|
1423
|
+
alt?: string;
|
|
1424
|
+
}
|
|
@@ -106,26 +106,10 @@ export interface Carts {
|
|
|
106
106
|
* Product or variation picture for this cart item
|
|
107
107
|
*/
|
|
108
108
|
picture?: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* via the `patternProperty` "^small|normal|big|zoom|custom$".
|
|
114
|
-
*/
|
|
115
|
-
[k: string]: {
|
|
116
|
-
/**
|
|
117
|
-
* Image link
|
|
118
|
-
*/
|
|
119
|
-
url: string;
|
|
120
|
-
/**
|
|
121
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
122
|
-
*/
|
|
123
|
-
size?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
126
|
-
*/
|
|
127
|
-
alt?: string;
|
|
128
|
-
};
|
|
109
|
+
normal?: PictureSize;
|
|
110
|
+
big?: PictureSize1;
|
|
111
|
+
zoom?: PictureSize2;
|
|
112
|
+
small?: PictureSize3;
|
|
129
113
|
};
|
|
130
114
|
/**
|
|
131
115
|
* Item customization fields
|
|
@@ -306,3 +290,71 @@ export interface Carts {
|
|
|
306
290
|
*/
|
|
307
291
|
notes?: string;
|
|
308
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
|
+
}
|
|
@@ -1160,26 +1160,10 @@ export interface Orders {
|
|
|
1160
1160
|
* Product or variation picture for this cart item
|
|
1161
1161
|
*/
|
|
1162
1162
|
picture?: {
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
* via the `patternProperty` "^small|normal|big|zoom|custom$".
|
|
1168
|
-
*/
|
|
1169
|
-
[k: string]: {
|
|
1170
|
-
/**
|
|
1171
|
-
* Image link
|
|
1172
|
-
*/
|
|
1173
|
-
url: string;
|
|
1174
|
-
/**
|
|
1175
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1176
|
-
*/
|
|
1177
|
-
size?: string;
|
|
1178
|
-
/**
|
|
1179
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
1180
|
-
*/
|
|
1181
|
-
alt?: string;
|
|
1182
|
-
};
|
|
1163
|
+
normal?: PictureSize;
|
|
1164
|
+
big?: PictureSize1;
|
|
1165
|
+
zoom?: PictureSize2;
|
|
1166
|
+
small?: PictureSize3;
|
|
1183
1167
|
};
|
|
1184
1168
|
/**
|
|
1185
1169
|
* Item customization fields
|
|
@@ -1651,3 +1635,71 @@ export interface Address2 {
|
|
|
1651
1635
|
number: string;
|
|
1652
1636
|
};
|
|
1653
1637
|
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Default image size variant
|
|
1640
|
+
*/
|
|
1641
|
+
export interface PictureSize {
|
|
1642
|
+
/**
|
|
1643
|
+
* Image link
|
|
1644
|
+
*/
|
|
1645
|
+
url: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1648
|
+
*/
|
|
1649
|
+
size?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1652
|
+
*/
|
|
1653
|
+
alt?: string;
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Image big size variant
|
|
1657
|
+
*/
|
|
1658
|
+
export interface PictureSize1 {
|
|
1659
|
+
/**
|
|
1660
|
+
* Image link
|
|
1661
|
+
*/
|
|
1662
|
+
url: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1665
|
+
*/
|
|
1666
|
+
size?: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1669
|
+
*/
|
|
1670
|
+
alt?: string;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Image zoom size variant
|
|
1674
|
+
*/
|
|
1675
|
+
export interface PictureSize2 {
|
|
1676
|
+
/**
|
|
1677
|
+
* Image link
|
|
1678
|
+
*/
|
|
1679
|
+
url: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1682
|
+
*/
|
|
1683
|
+
size?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1686
|
+
*/
|
|
1687
|
+
alt?: string;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Image small size variant
|
|
1691
|
+
*/
|
|
1692
|
+
export interface PictureSize3 {
|
|
1693
|
+
/**
|
|
1694
|
+
* Image link
|
|
1695
|
+
*/
|
|
1696
|
+
url: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1699
|
+
*/
|
|
1700
|
+
size?: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1703
|
+
*/
|
|
1704
|
+
alt?: string;
|
|
1705
|
+
}
|
|
@@ -802,17 +802,20 @@ export interface Products {
|
|
|
802
802
|
*
|
|
803
803
|
* @maxItems 50
|
|
804
804
|
*/
|
|
805
|
-
pictures?:
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
805
|
+
pictures?: {
|
|
806
|
+
/**
|
|
807
|
+
* Picture ID (ObjectID) [auto]
|
|
808
|
+
*/
|
|
809
|
+
_id?: string;
|
|
810
|
+
/**
|
|
811
|
+
* Tag to identify object, use only lowercase letters, digits and underscore
|
|
812
|
+
*/
|
|
813
|
+
tag?: string;
|
|
814
|
+
normal?: PictureSize;
|
|
815
|
+
big?: PictureSize1;
|
|
816
|
+
zoom?: PictureSize2;
|
|
817
|
+
small?: PictureSize3;
|
|
818
|
+
}[];
|
|
816
819
|
/**
|
|
817
820
|
* List of videos related to your product
|
|
818
821
|
*
|
|
@@ -1351,3 +1354,71 @@ export interface Products {
|
|
|
1351
1354
|
*/
|
|
1352
1355
|
notes?: string;
|
|
1353
1356
|
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Default image size variant
|
|
1359
|
+
*/
|
|
1360
|
+
export interface PictureSize {
|
|
1361
|
+
/**
|
|
1362
|
+
* Image link
|
|
1363
|
+
*/
|
|
1364
|
+
url: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1367
|
+
*/
|
|
1368
|
+
size?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1371
|
+
*/
|
|
1372
|
+
alt?: string;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Image big size variant
|
|
1376
|
+
*/
|
|
1377
|
+
export interface PictureSize1 {
|
|
1378
|
+
/**
|
|
1379
|
+
* Image link
|
|
1380
|
+
*/
|
|
1381
|
+
url: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1384
|
+
*/
|
|
1385
|
+
size?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1388
|
+
*/
|
|
1389
|
+
alt?: string;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Image zoom size variant
|
|
1393
|
+
*/
|
|
1394
|
+
export interface PictureSize2 {
|
|
1395
|
+
/**
|
|
1396
|
+
* Image link
|
|
1397
|
+
*/
|
|
1398
|
+
url: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1401
|
+
*/
|
|
1402
|
+
size?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1405
|
+
*/
|
|
1406
|
+
alt?: string;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Image small size variant
|
|
1410
|
+
*/
|
|
1411
|
+
export interface PictureSize3 {
|
|
1412
|
+
/**
|
|
1413
|
+
* Image link
|
|
1414
|
+
*/
|
|
1415
|
+
url: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
1418
|
+
*/
|
|
1419
|
+
size?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Alternative text, HTML alt tag (important for SEO)
|
|
1422
|
+
*/
|
|
1423
|
+
alt?: string;
|
|
1424
|
+
}
|