@shopware/composables 0.0.0-canary-20250116155626
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/LICENSE +21 -0
- package/README.md +172 -0
- package/composables/index.ts +1 -0
- package/dist/index.d.mts +2239 -0
- package/dist/index.d.ts +2239 -0
- package/dist/index.mjs +2686 -0
- package/nuxt.config.ts +14 -0
- package/package.json +83 -0
- package/src/_test/index.ts +1 -0
- package/src/_test/useSetup.ts +43 -0
- package/src/cms/README.md +9 -0
- package/src/cms/cmsAssociations.ts +28 -0
- package/src/cms/index.ts +2 -0
- package/src/cms/useCmsElementConfig.test.ts +145 -0
- package/src/cms/useCmsElementConfig.ts +29 -0
- package/src/cms/useCmsElementImage.test.ts +179 -0
- package/src/cms/useCmsElementImage.ts +103 -0
- package/src/cms/useCmsElementProductBox.test.ts +15 -0
- package/src/cms/useCmsElementProductBox.ts +25 -0
- package/src/createShopwareContext.test.ts +23 -0
- package/src/createShopwareContext.ts +43 -0
- package/src/devtools/plugin.ts +201 -0
- package/src/helpers/ContextError.spec.ts +20 -0
- package/src/helpers/ContextError.ts +6 -0
- package/src/index.test.ts +54 -0
- package/src/index.ts +111 -0
- package/src/mocks/Cart.ts +774 -0
- package/src/mocks/CmsPage.ts +544 -0
- package/src/mocks/CmsProductBox.ts +377 -0
- package/src/mocks/Configurator.ts +123 -0
- package/src/mocks/Country.ts +184 -0
- package/src/mocks/CrossSellingResponse.ts +552 -0
- package/src/mocks/LandingPage.ts +62 -0
- package/src/mocks/Menu.ts +598 -0
- package/src/mocks/Order.ts +1151 -0
- package/src/mocks/Product.ts +473 -0
- package/src/mocks/ProductTierPrices.ts +771 -0
- package/src/mocks/Salutations.ts +51 -0
- package/src/mocks/Search.ts +518 -0
- package/src/types/cmsBlockTypes.ts +80 -0
- package/src/types/cmsElementTypes.ts +381 -0
- package/src/types/cmsSectionTypes.ts +15 -0
- package/src/types/index.ts +52 -0
- package/src/useAddToCart/useAddToCart.test.ts +39 -0
- package/src/useAddToCart/useAddToCart.ts +90 -0
- package/src/useAddress/useAddress.test.ts +134 -0
- package/src/useAddress/useAddress.ts +202 -0
- package/src/useB2bQuoteManagement/useB2bQuoteManagement.test.ts +137 -0
- package/src/useB2bQuoteManagement/useB2bQuoteManagement.ts +225 -0
- package/src/useBreadcrumbs/useBreadcrumbs.test.ts +71 -0
- package/src/useBreadcrumbs/useBreadcrumbs.ts +89 -0
- package/src/useCart/useCart.test.ts +251 -0
- package/src/useCart/useCart.ts +314 -0
- package/src/useCartErrorParamsResolver/useCartErrorParamsResolver.test.ts +122 -0
- package/src/useCartErrorParamsResolver/useCartErrorParamsResolver.ts +80 -0
- package/src/useCartItem/useCartItem.test.ts +168 -0
- package/src/useCartItem/useCartItem.ts +157 -0
- package/src/useCartNotification/useCartNotification.test.ts +129 -0
- package/src/useCartNotification/useCartNotification.ts +63 -0
- package/src/useCategory/useCategory.test.ts +14 -0
- package/src/useCategory/useCategory.ts +32 -0
- package/src/useCategorySearch/useCategorySearch.test.ts +98 -0
- package/src/useCategorySearch/useCategorySearch.ts +81 -0
- package/src/useCheckout/useCheckout.test.ts +104 -0
- package/src/useCheckout/useCheckout.ts +163 -0
- package/src/useCmsBlock/useCmsBlock.test.ts +25 -0
- package/src/useCmsBlock/useCmsBlock.ts +36 -0
- package/src/useCmsMeta/useCmsMeta.test.ts +17 -0
- package/src/useCmsMeta/useCmsMeta.ts +46 -0
- package/src/useCmsSection/useCmsSection.test.ts +18 -0
- package/src/useCmsSection/useCmsSection.ts +39 -0
- package/src/useCmsTranslations/useCmsTranslations.test.ts +10 -0
- package/src/useCmsTranslations/useCmsTranslations.ts +9 -0
- package/src/useContext/useContext.ts +36 -0
- package/src/useCountries/useCountries.test.ts +64 -0
- package/src/useCountries/useCountries.ts +64 -0
- package/src/useCustomerOrders/useCustomerOrders.test.ts +47 -0
- package/src/useCustomerOrders/useCustomerOrders.ts +89 -0
- package/src/useCustomerPassword/useCustomerPassword.test.ts +164 -0
- package/src/useCustomerPassword/useCustomerPassword.ts +57 -0
- package/src/useDefaultOrderAssociations/useDefaultOrderAssociations.test.ts +41 -0
- package/src/useDefaultOrderAssociations/useDefaultOrderAssociations.ts +45 -0
- package/src/useInternationalization/useInternationalization.test.ts +155 -0
- package/src/useInternationalization/useInternationalization.ts +159 -0
- package/src/useLandingSearch/useLandingSearch.test.ts +30 -0
- package/src/useLandingSearch/useLandingSearch.ts +58 -0
- package/src/useListing/useListing.test.ts +249 -0
- package/src/useListing/useListing.ts +592 -0
- package/src/useLocalWishlist/useLocalWishlist.test.ts +54 -0
- package/src/useLocalWishlist/useLocalWishlist.ts +95 -0
- package/src/useNavigation/useNavigation.test.ts +68 -0
- package/src/useNavigation/useNavigation.ts +83 -0
- package/src/useNavigationContext/useNavigationContext.test.ts +48 -0
- package/src/useNavigationContext/useNavigationContext.ts +39 -0
- package/src/useNavigationSearch/useNavigationSearch.test.ts +110 -0
- package/src/useNavigationSearch/useNavigationSearch.ts +60 -0
- package/src/useNewsletter/useNewsletter.test.ts +55 -0
- package/src/useNewsletter/useNewsletter.ts +109 -0
- package/src/useNotifications/useNotifications.test.ts +56 -0
- package/src/useNotifications/useNotifications.ts +119 -0
- package/src/useOrderDetails/useOrderDetails.test.ts +224 -0
- package/src/useOrderDetails/useOrderDetails.ts +329 -0
- package/src/useOrderPayment/useOrderPayment.test.ts +80 -0
- package/src/useOrderPayment/useOrderPayment.ts +119 -0
- package/src/usePrice/usePrice.test.ts +97 -0
- package/src/usePrice/usePrice.ts +106 -0
- package/src/useProduct/useProduct.test.ts +36 -0
- package/src/useProduct/useProduct.ts +56 -0
- package/src/useProductAssociations/useProductAssociations.spec.ts +105 -0
- package/src/useProductAssociations/useProductAssociations.ts +107 -0
- package/src/useProductConfigurator/useProductConfigurator.spec.ts +77 -0
- package/src/useProductConfigurator/useProductConfigurator.ts +134 -0
- package/src/useProductPrice/useProductPrice.test.ts +126 -0
- package/src/useProductPrice/useProductPrice.ts +131 -0
- package/src/useProductReviews/useProductReviews.test.ts +45 -0
- package/src/useProductReviews/useProductReviews.ts +80 -0
- package/src/useProductSearch/useProductSearch.test.ts +37 -0
- package/src/useProductSearch/useProductSearch.ts +58 -0
- package/src/useProductSearchSuggest/useProductSearchSuggest.test.ts +19 -0
- package/src/useProductSearchSuggest/useProductSearchSuggest.ts +67 -0
- package/src/useProductWishlist/useProductWishlist.test.ts +63 -0
- package/src/useProductWishlist/useProductWishlist.ts +74 -0
- package/src/useSalutations/useSalutations.spec.ts +37 -0
- package/src/useSalutations/useSalutations.ts +55 -0
- package/src/useSessionContext/useSessionContext.test.ts +221 -0
- package/src/useSessionContext/useSessionContext.ts +281 -0
- package/src/useShopwareContext/useShopwareContext.test.ts +8 -0
- package/src/useShopwareContext/useShopwareContext.ts +31 -0
- package/src/useSyncWishlist/useSyncWishlist.test.ts +117 -0
- package/src/useSyncWishlist/useSyncWishlist.ts +117 -0
- package/src/useUrlResolver/useUrlResolver.test.ts +25 -0
- package/src/useUrlResolver/useUrlResolver.ts +31 -0
- package/src/useUser/useUser.test.ts +290 -0
- package/src/useUser/useUser.ts +321 -0
- package/src/useWishlist/useWishlist.test.ts +178 -0
- package/src/useWishlist/useWishlist.ts +128 -0
- package/types/api-types.ts +11 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
const CmsProductBox = {
|
|
2
|
+
versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
3
|
+
translated: {
|
|
4
|
+
config: {
|
|
5
|
+
product: {
|
|
6
|
+
value: "65666d2629744f65b981cc6263d3ef0a",
|
|
7
|
+
source: "static",
|
|
8
|
+
},
|
|
9
|
+
boxLayout: {
|
|
10
|
+
value: "standard",
|
|
11
|
+
source: "static",
|
|
12
|
+
},
|
|
13
|
+
displayMode: {
|
|
14
|
+
value: "standard",
|
|
15
|
+
source: "static",
|
|
16
|
+
},
|
|
17
|
+
verticalAlign: {
|
|
18
|
+
value: null,
|
|
19
|
+
source: "static",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
customFields: {},
|
|
23
|
+
},
|
|
24
|
+
createdAt: "2020-08-06T06:26:23.933+00:00",
|
|
25
|
+
updatedAt: "2024-04-03T07:25:20.056+00:00",
|
|
26
|
+
type: "product-box",
|
|
27
|
+
slot: "center",
|
|
28
|
+
block: null,
|
|
29
|
+
blockId: "75e7d6159c194c27909bbbf6df001ae1",
|
|
30
|
+
config: {
|
|
31
|
+
product: {
|
|
32
|
+
value: "65666d2629744f65b981cc6263d3ef0a",
|
|
33
|
+
source: "static",
|
|
34
|
+
},
|
|
35
|
+
boxLayout: {
|
|
36
|
+
value: "standard",
|
|
37
|
+
source: "static",
|
|
38
|
+
},
|
|
39
|
+
displayMode: {
|
|
40
|
+
value: "standard",
|
|
41
|
+
source: "static",
|
|
42
|
+
},
|
|
43
|
+
verticalAlign: {
|
|
44
|
+
value: null,
|
|
45
|
+
source: "static",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
fieldConfig: [
|
|
49
|
+
{
|
|
50
|
+
name: "product",
|
|
51
|
+
source: "static",
|
|
52
|
+
value: "65666d2629744f65b981cc6263d3ef0a",
|
|
53
|
+
apiAlias: "cms_data_resolver_field_config",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "boxLayout",
|
|
57
|
+
source: "static",
|
|
58
|
+
value: "standard",
|
|
59
|
+
apiAlias: "cms_data_resolver_field_config",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "displayMode",
|
|
63
|
+
source: "static",
|
|
64
|
+
value: "standard",
|
|
65
|
+
apiAlias: "cms_data_resolver_field_config",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "verticalAlign",
|
|
69
|
+
source: "static",
|
|
70
|
+
value: null,
|
|
71
|
+
apiAlias: "cms_data_resolver_field_config",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
translations: null,
|
|
75
|
+
data: {
|
|
76
|
+
productId: "65666d2629744f65b981cc6263d3ef0a",
|
|
77
|
+
product: {
|
|
78
|
+
extensions: {
|
|
79
|
+
foreignKeys: {
|
|
80
|
+
swagCustomizedProductsTemplateId: null,
|
|
81
|
+
swagCustomizedProductsTemplateVersionId:
|
|
82
|
+
"0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
83
|
+
apiAlias: "product_foreign_keys_extension",
|
|
84
|
+
},
|
|
85
|
+
search: {
|
|
86
|
+
extensions: [],
|
|
87
|
+
_uniqueIdentifier: null,
|
|
88
|
+
translated: [],
|
|
89
|
+
productNumber: "943280",
|
|
90
|
+
autoIncrement: 126,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
94
|
+
translated: {
|
|
95
|
+
metaDescription: null,
|
|
96
|
+
name: "Smoking Board Cedar Wood ",
|
|
97
|
+
keywords: null,
|
|
98
|
+
description:
|
|
99
|
+
"\u003Cp\u003E\u003C/p\u003E\u003Ch5\u003EHighlights\u003C/h5\u003E\u003Cul\u003E\u003Cli\u003E30 x 14 cm, set of 10\u003C/li\u003E\u003Cli\u003ECanadian cedarwood\u003C/li\u003E\u003Cli\u003EMoisture content below 14%\u003C/li\u003E\u003Cli\u003EImportant: leave to soak in water for 1 hour before use\u003C/li\u003E\u003Cli\u003E5 planks each with a smooth and rough surface\u003C/li\u003E\u003Cli\u003ECleaning by hand\u003C/li\u003E\u003Cli\u003EContents 10 smoking boards\u003C/li\u003E\u003C/ul\u003E\u003Cdiv\u003E\u003Ca href=\u0022124c71d524604ccbad6042edce3ac799/detail/018bd828d69f72dba59567a17c432eae#\u0022 target=\u0022_self\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Product Link\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022https://www.shopware.com/en/\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest URL link\u003C/a\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022124c71d524604ccbad6042edce3ac799/navigation/da5db02a783e467cae47e8d64c9f09a1#\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Category Link\u003C/a\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022mailto:shopware@shopware.com\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Email\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022tel:343434343\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Phone\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E",
|
|
100
|
+
metaTitle: null,
|
|
101
|
+
packUnit: null,
|
|
102
|
+
packUnitPlural: null,
|
|
103
|
+
customFields: {},
|
|
104
|
+
},
|
|
105
|
+
createdAt: "2020-08-06T06:26:45.454+00:00",
|
|
106
|
+
updatedAt: "2024-02-16T13:11:56.389+00:00",
|
|
107
|
+
parentId: null,
|
|
108
|
+
childCount: 0,
|
|
109
|
+
taxId: "94f1e03140d24698a894320e258e6d83",
|
|
110
|
+
manufacturerId: "05cd4e976df14c4d90e351f345ff5aa3",
|
|
111
|
+
unitId: null,
|
|
112
|
+
active: true,
|
|
113
|
+
displayGroup: "6ee9c82b6cdb6583cfa18aef4bff98a9",
|
|
114
|
+
manufacturerNumber: null,
|
|
115
|
+
ean: null,
|
|
116
|
+
sales: 8,
|
|
117
|
+
productNumber: "943280",
|
|
118
|
+
stock: 49484,
|
|
119
|
+
availableStock: 49484,
|
|
120
|
+
available: true,
|
|
121
|
+
deliveryTimeId: "0caaf7f6131142f6b1fa81f3e3f6c0fb",
|
|
122
|
+
deliveryTime: {
|
|
123
|
+
translated: {
|
|
124
|
+
name: "1-3 days",
|
|
125
|
+
customFields: {},
|
|
126
|
+
},
|
|
127
|
+
createdAt: "2020-08-06T06:26:54.178+00:00",
|
|
128
|
+
updatedAt: "2020-08-06T06:26:54.182+00:00",
|
|
129
|
+
name: "1-3 days",
|
|
130
|
+
min: 1,
|
|
131
|
+
max: 3,
|
|
132
|
+
unit: "day",
|
|
133
|
+
customFields: null,
|
|
134
|
+
id: "0caaf7f6131142f6b1fa81f3e3f6c0fb",
|
|
135
|
+
apiAlias: "delivery_time",
|
|
136
|
+
},
|
|
137
|
+
restockTime: 1,
|
|
138
|
+
isCloseout: false,
|
|
139
|
+
purchaseSteps: 1,
|
|
140
|
+
maxPurchase: 5,
|
|
141
|
+
minPurchase: 1,
|
|
142
|
+
purchaseUnit: null,
|
|
143
|
+
referenceUnit: null,
|
|
144
|
+
shippingFree: false,
|
|
145
|
+
markAsTopseller: null,
|
|
146
|
+
weight: null,
|
|
147
|
+
width: 300,
|
|
148
|
+
height: 140,
|
|
149
|
+
length: 8,
|
|
150
|
+
releaseDate: null,
|
|
151
|
+
categoryTree: [
|
|
152
|
+
"525abe8981214bd2ba94fd33942333ec",
|
|
153
|
+
"bda4b60e845240b2b9d6b60e71196e14",
|
|
154
|
+
"79f30922410344cca284b80be225cbfe",
|
|
155
|
+
"6bb2662482fe42fb90129f32cdd645bb",
|
|
156
|
+
],
|
|
157
|
+
streamIds: [
|
|
158
|
+
"1318833f46df457981763b94179d9ef0",
|
|
159
|
+
"5675448d6b3a4dd2a659d31a3dde74da",
|
|
160
|
+
"e8a363db4d1542dca933ffde1ebeace4",
|
|
161
|
+
],
|
|
162
|
+
optionIds: null,
|
|
163
|
+
propertyIds: [
|
|
164
|
+
"88592e7788484990b5a7389751eafebe",
|
|
165
|
+
"dbc078734b5b49a9a05a07646ccb8cdc",
|
|
166
|
+
],
|
|
167
|
+
name: "Smoking Board Cedar Wood ",
|
|
168
|
+
keywords: null,
|
|
169
|
+
description:
|
|
170
|
+
"\u003Cp\u003E\u003C/p\u003E\u003Ch5\u003EHighlights\u003C/h5\u003E\u003Cul\u003E\u003Cli\u003E30 x 14 cm, set of 10\u003C/li\u003E\u003Cli\u003ECanadian cedarwood\u003C/li\u003E\u003Cli\u003EMoisture content below 14%\u003C/li\u003E\u003Cli\u003EImportant: leave to soak in water for 1 hour before use\u003C/li\u003E\u003Cli\u003E5 planks each with a smooth and rough surface\u003C/li\u003E\u003Cli\u003ECleaning by hand\u003C/li\u003E\u003Cli\u003EContents 10 smoking boards\u003C/li\u003E\u003C/ul\u003E\u003Cdiv\u003E\u003Ca href=\u0022124c71d524604ccbad6042edce3ac799/detail/018bd828d69f72dba59567a17c432eae#\u0022 target=\u0022_self\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Product Link\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022https://www.shopware.com/en/\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest URL link\u003C/a\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022124c71d524604ccbad6042edce3ac799/navigation/da5db02a783e467cae47e8d64c9f09a1#\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Category Link\u003C/a\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022mailto:shopware@shopware.com\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Email\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E\u003Cdiv\u003E\u003Ca target=\u0022_self\u0022 href=\u0022tel:343434343\u0022 rel=\u0022noreferrer noopener\u0022\u003ETest Phone\u003C/a\u003E\u003Cbr /\u003E\u003C/div\u003E",
|
|
171
|
+
metaDescription: null,
|
|
172
|
+
metaTitle: null,
|
|
173
|
+
packUnit: null,
|
|
174
|
+
packUnitPlural: null,
|
|
175
|
+
tax: {
|
|
176
|
+
translated: [],
|
|
177
|
+
createdAt: "2020-08-06T06:23:45.421+00:00",
|
|
178
|
+
updatedAt: "2020-08-06T06:26:46.302+00:00",
|
|
179
|
+
taxRate: 7,
|
|
180
|
+
name: "7%",
|
|
181
|
+
position: 0,
|
|
182
|
+
customFields: null,
|
|
183
|
+
id: "94f1e03140d24698a894320e258e6d83",
|
|
184
|
+
apiAlias: "tax",
|
|
185
|
+
},
|
|
186
|
+
manufacturer: {
|
|
187
|
+
versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
188
|
+
translated: {
|
|
189
|
+
name: "Springlane",
|
|
190
|
+
description:
|
|
191
|
+
"We fuel people\u2019s passion for cooking.Good food is our passion. Our products and brands are therefore aimed at foodies and BBQ enthusiasts. With our food blogs, we inspire and inform millions of users every week about cooking and grilling.Springlane is a founder-managed, fully integrated company with online direct sales in Germany, Austria, Switzerland, Italy, France, Spain, the Netherlands and the UK. At its D\u00fcsseldorf location, Springlane currently employs 90 people including engineers, designers, software developers, chefs, bloggers and digital marketing experts.We want to continue to grow strongly and play an important role in the lives of our customers and in our industry! That\u0027s exactly what we get up for every morning.",
|
|
192
|
+
customFields: {},
|
|
193
|
+
},
|
|
194
|
+
createdAt: "2020-08-06T06:26:30.586+00:00",
|
|
195
|
+
updatedAt: null,
|
|
196
|
+
mediaId: "1efd8cb1fe164e4f8d56f0ff5ed954fa",
|
|
197
|
+
name: "Springlane",
|
|
198
|
+
link: "http://www.springlane.de",
|
|
199
|
+
description:
|
|
200
|
+
"We fuel people\u2019s passion for cooking.Good food is our passion. Our products and brands are therefore aimed at foodies and BBQ enthusiasts. With our food blogs, we inspire and inform millions of users every week about cooking and grilling.Springlane is a founder-managed, fully integrated company with online direct sales in Germany, Austria, Switzerland, Italy, France, Spain, the Netherlands and the UK. At its D\u00fcsseldorf location, Springlane currently employs 90 people including engineers, designers, software developers, chefs, bloggers and digital marketing experts.We want to continue to grow strongly and play an important role in the lives of our customers and in our industry! That\u0027s exactly what we get up for every morning.",
|
|
201
|
+
media: null,
|
|
202
|
+
translations: null,
|
|
203
|
+
customFields: null,
|
|
204
|
+
id: "05cd4e976df14c4d90e351f345ff5aa3",
|
|
205
|
+
apiAlias: "product_manufacturer",
|
|
206
|
+
},
|
|
207
|
+
unit: null,
|
|
208
|
+
cover: {
|
|
209
|
+
versionId: "0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
210
|
+
translated: [],
|
|
211
|
+
createdAt: "2020-08-06T06:26:45.420+00:00",
|
|
212
|
+
updatedAt: "2023-06-26T14:29:26.705+00:00",
|
|
213
|
+
productId: "65666d2629744f65b981cc6263d3ef0a",
|
|
214
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
215
|
+
position: 0,
|
|
216
|
+
media: {
|
|
217
|
+
translated: {
|
|
218
|
+
alt: null,
|
|
219
|
+
title: null,
|
|
220
|
+
customFields: {},
|
|
221
|
+
},
|
|
222
|
+
createdAt: "2020-08-06T06:25:50.000+00:00",
|
|
223
|
+
updatedAt: "2020-08-06T06:26:45.419+00:00",
|
|
224
|
+
mimeType: "image/jpeg",
|
|
225
|
+
fileExtension: "jpg",
|
|
226
|
+
fileSize: 369797,
|
|
227
|
+
title: null,
|
|
228
|
+
metaData: {
|
|
229
|
+
type: 2,
|
|
230
|
+
width: 1248,
|
|
231
|
+
height: 848,
|
|
232
|
+
},
|
|
233
|
+
uploadedAt: null,
|
|
234
|
+
alt: null,
|
|
235
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg?1596695205",
|
|
236
|
+
fileName: "PT_Ra-ucherbretter_Stein",
|
|
237
|
+
translations: null,
|
|
238
|
+
thumbnails: [
|
|
239
|
+
{
|
|
240
|
+
translated: [],
|
|
241
|
+
createdAt: "2020-08-06T06:25:49.998+00:00",
|
|
242
|
+
updatedAt: "2020-08-06T06:26:45.417+00:00",
|
|
243
|
+
width: 400,
|
|
244
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg",
|
|
245
|
+
height: 400,
|
|
246
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg?1596695205",
|
|
247
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
248
|
+
customFields: null,
|
|
249
|
+
id: "6385b30ea2df41359c43393cbd1c4e7a",
|
|
250
|
+
apiAlias: "media_thumbnail",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
hasFile: true,
|
|
254
|
+
private: false,
|
|
255
|
+
path: "media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg",
|
|
256
|
+
config: null,
|
|
257
|
+
customFields: null,
|
|
258
|
+
id: "0c25b06daa244618b342284498dc35ea",
|
|
259
|
+
apiAlias: "media",
|
|
260
|
+
},
|
|
261
|
+
customFields: null,
|
|
262
|
+
id: "0c25b06daa244618b342284498dc35ea",
|
|
263
|
+
apiAlias: "product_media",
|
|
264
|
+
},
|
|
265
|
+
parent: null,
|
|
266
|
+
children: null,
|
|
267
|
+
media: null,
|
|
268
|
+
cmsPageId: "7a6d253a67204037966f42b0119704d5",
|
|
269
|
+
cmsPage: null,
|
|
270
|
+
translations: null,
|
|
271
|
+
categories: null,
|
|
272
|
+
tags: null,
|
|
273
|
+
properties: null,
|
|
274
|
+
options: null,
|
|
275
|
+
configuratorSettings: null,
|
|
276
|
+
categoriesRo: null,
|
|
277
|
+
coverId: "0c25b06daa244618b342284498dc35ea",
|
|
278
|
+
tagIds: null,
|
|
279
|
+
categoryIds: ["6bb2662482fe42fb90129f32cdd645bb"],
|
|
280
|
+
productReviews: null,
|
|
281
|
+
ratingAverage: null,
|
|
282
|
+
mainCategories: null,
|
|
283
|
+
seoUrls: [
|
|
284
|
+
{
|
|
285
|
+
translated: [],
|
|
286
|
+
createdAt: "2020-08-06T06:26:52.576+00:00",
|
|
287
|
+
updatedAt: "2022-08-03T08:07:04.512+00:00",
|
|
288
|
+
salesChannelId: "98432def39fc4624b33213a56b8c944d",
|
|
289
|
+
languageId: "2fbb5fe2e29a4d70aa5854ce7ce3e20b",
|
|
290
|
+
routeName: "frontend.detail.page",
|
|
291
|
+
foreignKey: "65666d2629744f65b981cc6263d3ef0a",
|
|
292
|
+
pathInfo: "/detail/65666d2629744f65b981cc6263d3ef0a",
|
|
293
|
+
seoPathInfo: "Smoking-Board-Cedar-Wood/943280",
|
|
294
|
+
isCanonical: true,
|
|
295
|
+
isModified: false,
|
|
296
|
+
isDeleted: false,
|
|
297
|
+
url: null,
|
|
298
|
+
error: null,
|
|
299
|
+
customFields: null,
|
|
300
|
+
id: "74ab6a35516a46c288c5dc1292d0749e",
|
|
301
|
+
apiAlias: "seo_url",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
crossSellings: null,
|
|
305
|
+
canonicalProductId: null,
|
|
306
|
+
canonicalProduct: null,
|
|
307
|
+
streams: null,
|
|
308
|
+
downloads: null,
|
|
309
|
+
states: ["is-physical"],
|
|
310
|
+
customFields: {},
|
|
311
|
+
id: "65666d2629744f65b981cc6263d3ef0a",
|
|
312
|
+
calculatedPrices: [],
|
|
313
|
+
calculatedPrice: {
|
|
314
|
+
unitPrice: 17.9,
|
|
315
|
+
quantity: 1,
|
|
316
|
+
totalPrice: 17.9,
|
|
317
|
+
calculatedTaxes: [
|
|
318
|
+
{
|
|
319
|
+
tax: 1.17,
|
|
320
|
+
taxRate: 7,
|
|
321
|
+
price: 17.9,
|
|
322
|
+
apiAlias: "cart_tax_calculated",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
taxRules: [
|
|
326
|
+
{
|
|
327
|
+
taxRate: 7,
|
|
328
|
+
percentage: 100,
|
|
329
|
+
apiAlias: "cart_tax_rule",
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
referencePrice: null,
|
|
333
|
+
listPrice: null,
|
|
334
|
+
regulationPrice: null,
|
|
335
|
+
apiAlias: "calculated_price",
|
|
336
|
+
},
|
|
337
|
+
sortedProperties: null,
|
|
338
|
+
calculatedCheapestPrice: {
|
|
339
|
+
unitPrice: 17.9,
|
|
340
|
+
quantity: 1,
|
|
341
|
+
totalPrice: 17.9,
|
|
342
|
+
calculatedTaxes: [
|
|
343
|
+
{
|
|
344
|
+
tax: 1.17,
|
|
345
|
+
taxRate: 7,
|
|
346
|
+
price: 17.9,
|
|
347
|
+
apiAlias: "cart_tax_calculated",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
taxRules: [
|
|
351
|
+
{
|
|
352
|
+
taxRate: 7,
|
|
353
|
+
percentage: 100,
|
|
354
|
+
apiAlias: "cart_tax_rule",
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
referencePrice: null,
|
|
358
|
+
listPrice: null,
|
|
359
|
+
regulationPrice: null,
|
|
360
|
+
hasRange: false,
|
|
361
|
+
variantId: "65666d2629744f65b981cc6263d3ef0a",
|
|
362
|
+
apiAlias: "calculated_cheapest_price",
|
|
363
|
+
},
|
|
364
|
+
isNew: false,
|
|
365
|
+
calculatedMaxPurchase: 5,
|
|
366
|
+
seoCategory: null,
|
|
367
|
+
apiAlias: "product",
|
|
368
|
+
},
|
|
369
|
+
apiAlias: "cms_product_box",
|
|
370
|
+
},
|
|
371
|
+
locked: false,
|
|
372
|
+
cmsBlockVersionId: "0fa91ce3e96a4bc2be4bd9ce752c3425",
|
|
373
|
+
customFields: null,
|
|
374
|
+
apiAlias: "cms_slot",
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export default CmsProductBox;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
const Configurator = [
|
|
2
|
+
{
|
|
3
|
+
translated: {
|
|
4
|
+
name: "Colour",
|
|
5
|
+
description: null,
|
|
6
|
+
position: 1,
|
|
7
|
+
customFields: {},
|
|
8
|
+
},
|
|
9
|
+
createdAt: "2020-08-06T06:26:29.726+00:00",
|
|
10
|
+
updatedAt: null,
|
|
11
|
+
name: "Colour",
|
|
12
|
+
displayType: "text",
|
|
13
|
+
sortingType: "alphanumeric",
|
|
14
|
+
description: null,
|
|
15
|
+
position: 1,
|
|
16
|
+
filterable: true,
|
|
17
|
+
visibleOnProductDetailPage: true,
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
translated: { name: "red", position: 13, customFields: {} },
|
|
21
|
+
createdAt: "2020-08-06T06:26:29.679+00:00",
|
|
22
|
+
updatedAt: null,
|
|
23
|
+
groupId: "15de997512de4e229d2db1b72aca16f5",
|
|
24
|
+
name: "red",
|
|
25
|
+
position: 13,
|
|
26
|
+
colorHexCode: null,
|
|
27
|
+
mediaId: null,
|
|
28
|
+
group: null,
|
|
29
|
+
media: null,
|
|
30
|
+
customFields: null,
|
|
31
|
+
id: "cc02c6cf39ad43d5856a25f8928490bf",
|
|
32
|
+
apiAlias: "property_group_option",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
translated: { name: "blue", position: 17, customFields: {} },
|
|
36
|
+
createdAt: "2020-08-06T06:26:29.667+00:00",
|
|
37
|
+
updatedAt: null,
|
|
38
|
+
groupId: "15de997512de4e229d2db1b72aca16f5",
|
|
39
|
+
name: "blue",
|
|
40
|
+
position: 17,
|
|
41
|
+
colorHexCode: null,
|
|
42
|
+
mediaId: null,
|
|
43
|
+
group: null,
|
|
44
|
+
media: null,
|
|
45
|
+
customFields: null,
|
|
46
|
+
id: "862a4c3c1326423a874b25b6d9ae2101",
|
|
47
|
+
apiAlias: "property_group_option",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
customFields: null,
|
|
51
|
+
id: "15de997512de4e229d2db1b72aca16f5",
|
|
52
|
+
apiAlias: "property_group",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
translated: {
|
|
56
|
+
name: "Size",
|
|
57
|
+
description: null,
|
|
58
|
+
position: 1,
|
|
59
|
+
customFields: {},
|
|
60
|
+
},
|
|
61
|
+
createdAt: "2020-08-06T06:26:29.930+00:00",
|
|
62
|
+
updatedAt: null,
|
|
63
|
+
name: "Size",
|
|
64
|
+
displayType: "text",
|
|
65
|
+
sortingType: "alphanumeric",
|
|
66
|
+
description: null,
|
|
67
|
+
position: 1,
|
|
68
|
+
filterable: true,
|
|
69
|
+
visibleOnProductDetailPage: true,
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
translated: { name: "L", position: 24, customFields: {} },
|
|
73
|
+
createdAt: "2020-08-06T06:26:29.930+00:00",
|
|
74
|
+
updatedAt: null,
|
|
75
|
+
groupId: "6d71c64e67d64876b9c7fbb97fcba3c6",
|
|
76
|
+
name: "L",
|
|
77
|
+
position: 24,
|
|
78
|
+
colorHexCode: null,
|
|
79
|
+
mediaId: null,
|
|
80
|
+
group: null,
|
|
81
|
+
media: null,
|
|
82
|
+
customFields: null,
|
|
83
|
+
id: "f13d254355cc41e28637e3428e23f279",
|
|
84
|
+
apiAlias: "property_group_option",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
translated: { name: "M", position: 23, customFields: {} },
|
|
88
|
+
createdAt: "2020-08-06T06:26:29.877+00:00",
|
|
89
|
+
updatedAt: null,
|
|
90
|
+
groupId: "6d71c64e67d64876b9c7fbb97fcba3c6",
|
|
91
|
+
name: "M",
|
|
92
|
+
position: 23,
|
|
93
|
+
colorHexCode: null,
|
|
94
|
+
mediaId: null,
|
|
95
|
+
group: null,
|
|
96
|
+
media: null,
|
|
97
|
+
customFields: null,
|
|
98
|
+
id: "24495f5441004fb9bcde8e1645714063",
|
|
99
|
+
apiAlias: "property_group_option",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
translated: { name: "S", position: 22, customFields: {} },
|
|
103
|
+
createdAt: "2020-08-06T06:26:29.923+00:00",
|
|
104
|
+
updatedAt: null,
|
|
105
|
+
groupId: "6d71c64e67d64876b9c7fbb97fcba3c6",
|
|
106
|
+
name: "S",
|
|
107
|
+
position: 22,
|
|
108
|
+
colorHexCode: null,
|
|
109
|
+
mediaId: null,
|
|
110
|
+
group: null,
|
|
111
|
+
media: null,
|
|
112
|
+
customFields: null,
|
|
113
|
+
id: "dcd3a971b122413785ed56a5782ed5b7",
|
|
114
|
+
apiAlias: "property_group_option",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
customFields: null,
|
|
118
|
+
id: "6d71c64e67d64876b9c7fbb97fcba3c6",
|
|
119
|
+
apiAlias: "property_group",
|
|
120
|
+
},
|
|
121
|
+
];
|
|
122
|
+
|
|
123
|
+
export default Configurator;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
const Country = {
|
|
2
|
+
elements: [
|
|
3
|
+
{
|
|
4
|
+
translated: {
|
|
5
|
+
name: "Sweden",
|
|
6
|
+
customFields: {},
|
|
7
|
+
addressFormat: [
|
|
8
|
+
["address/company", "symbol/dash", "address/department"],
|
|
9
|
+
["address/first_name", "address/last_name"],
|
|
10
|
+
["address/street"],
|
|
11
|
+
["address/zipcode", "address/city"],
|
|
12
|
+
["address/country"],
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
createdAt: "2020-08-06T06:23:31.382+00:00",
|
|
16
|
+
updatedAt: "2023-07-18T09:15:24.413+00:00",
|
|
17
|
+
name: "Sweden",
|
|
18
|
+
iso: "SE",
|
|
19
|
+
position: 10,
|
|
20
|
+
active: true,
|
|
21
|
+
shippingAvailable: true,
|
|
22
|
+
iso3: "SWE",
|
|
23
|
+
displayStateInRegistration: false,
|
|
24
|
+
forceStateInRegistration: false,
|
|
25
|
+
checkVatIdPattern: false,
|
|
26
|
+
vatIdPattern: "(SE)?[0-9]{12}",
|
|
27
|
+
vatIdRequired: false,
|
|
28
|
+
customerTax: {
|
|
29
|
+
enabled: false,
|
|
30
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
31
|
+
amount: 0,
|
|
32
|
+
apiAlias:
|
|
33
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
34
|
+
},
|
|
35
|
+
companyTax: {
|
|
36
|
+
enabled: false,
|
|
37
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
38
|
+
amount: 0,
|
|
39
|
+
apiAlias:
|
|
40
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
41
|
+
},
|
|
42
|
+
states: [],
|
|
43
|
+
translations: null,
|
|
44
|
+
postalCodeRequired: false,
|
|
45
|
+
checkPostalCodePattern: false,
|
|
46
|
+
checkAdvancedPostalCodePattern: false,
|
|
47
|
+
advancedPostalCodePattern: null,
|
|
48
|
+
defaultPostalCodePattern: "\\d{3} ?\\d{2}",
|
|
49
|
+
addressFormat: [
|
|
50
|
+
["address/company", "symbol/dash", "address/department"],
|
|
51
|
+
["address/first_name", "address/last_name"],
|
|
52
|
+
["address/street"],
|
|
53
|
+
["address/zipcode", "address/city"],
|
|
54
|
+
["address/country"],
|
|
55
|
+
],
|
|
56
|
+
customFields: null,
|
|
57
|
+
id: "16bb0446bf094f5d8bebf450652abafc",
|
|
58
|
+
apiAlias: "country",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
translated: {
|
|
62
|
+
name: "Ireland",
|
|
63
|
+
customFields: {},
|
|
64
|
+
addressFormat: [
|
|
65
|
+
["address/company", "symbol/dash", "address/department"],
|
|
66
|
+
["address/first_name", "address/last_name"],
|
|
67
|
+
["address/street"],
|
|
68
|
+
["address/zipcode", "address/city"],
|
|
69
|
+
["address/country"],
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
createdAt: "2020-08-06T06:23:31.294+00:00",
|
|
73
|
+
updatedAt: null,
|
|
74
|
+
name: "Ireland",
|
|
75
|
+
iso: "IE",
|
|
76
|
+
position: 10,
|
|
77
|
+
active: true,
|
|
78
|
+
shippingAvailable: true,
|
|
79
|
+
iso3: "IRL",
|
|
80
|
+
displayStateInRegistration: false,
|
|
81
|
+
forceStateInRegistration: false,
|
|
82
|
+
checkVatIdPattern: false,
|
|
83
|
+
vatIdPattern: "(IE)?[0-9]S[0-9]{5}L",
|
|
84
|
+
vatIdRequired: false,
|
|
85
|
+
customerTax: {
|
|
86
|
+
enabled: false,
|
|
87
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
88
|
+
amount: 0,
|
|
89
|
+
apiAlias:
|
|
90
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
91
|
+
},
|
|
92
|
+
companyTax: {
|
|
93
|
+
enabled: false,
|
|
94
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
95
|
+
amount: 0,
|
|
96
|
+
apiAlias:
|
|
97
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
translations: null,
|
|
101
|
+
postalCodeRequired: false,
|
|
102
|
+
checkPostalCodePattern: false,
|
|
103
|
+
checkAdvancedPostalCodePattern: false,
|
|
104
|
+
advancedPostalCodePattern: null,
|
|
105
|
+
defaultPostalCodePattern: "[\\dA-Z]{3}( ?[\\dA-Z]{4})?",
|
|
106
|
+
addressFormat: [
|
|
107
|
+
["address/company", "symbol/dash", "address/department"],
|
|
108
|
+
["address/first_name", "address/last_name"],
|
|
109
|
+
["address/street"],
|
|
110
|
+
["address/zipcode", "address/city"],
|
|
111
|
+
["address/country"],
|
|
112
|
+
],
|
|
113
|
+
customFields: null,
|
|
114
|
+
id: "184eb596425f4d56aa9ed8af9c3dc8d1",
|
|
115
|
+
apiAlias: "country",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
translated: {
|
|
119
|
+
name: "Australia",
|
|
120
|
+
customFields: {},
|
|
121
|
+
addressFormat: [
|
|
122
|
+
["address/company", "symbol/dash", "address/department"],
|
|
123
|
+
["address/first_name", "address/last_name"],
|
|
124
|
+
["address/street"],
|
|
125
|
+
["address/zipcode", "address/city"],
|
|
126
|
+
["address/country"],
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
createdAt: "2020-08-06T06:23:31.807+00:00",
|
|
130
|
+
updatedAt: null,
|
|
131
|
+
name: "Australia",
|
|
132
|
+
iso: "AU",
|
|
133
|
+
position: 10,
|
|
134
|
+
active: true,
|
|
135
|
+
shippingAvailable: true,
|
|
136
|
+
iso3: "AUS",
|
|
137
|
+
displayStateInRegistration: false,
|
|
138
|
+
forceStateInRegistration: false,
|
|
139
|
+
checkVatIdPattern: false,
|
|
140
|
+
vatIdPattern: null,
|
|
141
|
+
vatIdRequired: false,
|
|
142
|
+
customerTax: {
|
|
143
|
+
enabled: false,
|
|
144
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
145
|
+
amount: 0,
|
|
146
|
+
apiAlias:
|
|
147
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
148
|
+
},
|
|
149
|
+
companyTax: {
|
|
150
|
+
enabled: false,
|
|
151
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
152
|
+
amount: 0,
|
|
153
|
+
apiAlias:
|
|
154
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
155
|
+
},
|
|
156
|
+
states: [],
|
|
157
|
+
translations: null,
|
|
158
|
+
postalCodeRequired: false,
|
|
159
|
+
checkPostalCodePattern: false,
|
|
160
|
+
checkAdvancedPostalCodePattern: false,
|
|
161
|
+
advancedPostalCodePattern: null,
|
|
162
|
+
defaultPostalCodePattern: "\\d{4}",
|
|
163
|
+
addressFormat: [
|
|
164
|
+
["address/company", "symbol/dash", "address/department"],
|
|
165
|
+
["address/first_name", "address/last_name"],
|
|
166
|
+
["address/street"],
|
|
167
|
+
["address/zipcode", "address/city"],
|
|
168
|
+
["address/country"],
|
|
169
|
+
],
|
|
170
|
+
customFields: null,
|
|
171
|
+
id: "20513996f80f4d00b5ebedc51a2deae2",
|
|
172
|
+
apiAlias: "country",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
aggregations: [],
|
|
176
|
+
page: 1,
|
|
177
|
+
limit: 100,
|
|
178
|
+
entity: "country",
|
|
179
|
+
total: 3,
|
|
180
|
+
states: [],
|
|
181
|
+
apiAlias: "dal_entity_search_result",
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export default Country;
|