@scayle/storefront-nuxt 7.73.0 → 7.75.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.
- package/CHANGELOG.md +55 -1
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.mjs +15 -0
- package/dist/module.d.mts +2 -2
- package/dist/module.d.ts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +32 -1
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/runtime/composables/core/useIDP.d.ts +5 -5
- package/dist/runtime/composables/core/useIDP.mjs +2 -2
- package/dist/runtime/composables/core/useRpc.d.ts +38 -9
- package/dist/runtime/composables/core/useRpc.mjs +24 -49
- package/dist/runtime/composables/core/useUser.d.ts +15 -4
- package/dist/runtime/composables/core/useUser.mjs +12 -5
- package/dist/runtime/composables/storefront/useBasket.d.ts +69 -8
- package/dist/runtime/composables/storefront/useBasket.mjs +16 -18
- package/dist/runtime/composables/storefront/useBrand.d.ts +4 -9
- package/dist/runtime/composables/storefront/useBrand.mjs +5 -12
- package/dist/runtime/composables/storefront/useBrands.d.ts +4 -9
- package/dist/runtime/composables/storefront/useBrands.mjs +5 -12
- package/dist/runtime/composables/storefront/useCategories.d.ts +23 -13
- package/dist/runtime/composables/storefront/useCategories.mjs +8 -12
- package/dist/runtime/composables/storefront/useCategoryById.d.ts +4 -9
- package/dist/runtime/composables/storefront/useCategoryById.mjs +5 -12
- package/dist/runtime/composables/storefront/useCategoryByPath.d.ts +4 -9
- package/dist/runtime/composables/storefront/useCategoryByPath.mjs +5 -12
- package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +4 -9
- package/dist/runtime/composables/storefront/useCurrentPromotions.mjs +5 -12
- package/dist/runtime/composables/storefront/useFacet.d.ts +60 -15
- package/dist/runtime/composables/storefront/useFacet.mjs +117 -110
- package/dist/runtime/composables/storefront/useFilters.d.ts +4 -12
- package/dist/runtime/composables/storefront/useFilters.mjs +5 -12
- package/dist/runtime/composables/storefront/useNavigationTree.d.ts +4 -9
- package/dist/runtime/composables/storefront/useNavigationTree.mjs +5 -12
- package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +4 -9
- package/dist/runtime/composables/storefront/useNavigationTrees.mjs +5 -12
- package/dist/runtime/composables/storefront/useOrder.d.ts +6 -5
- package/dist/runtime/composables/storefront/useOrder.mjs +2 -2
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +6 -5
- package/dist/runtime/composables/storefront/useOrderConfirmation.mjs +2 -2
- package/dist/runtime/composables/storefront/useProduct.d.ts +4 -9
- package/dist/runtime/composables/storefront/useProduct.mjs +5 -12
- package/dist/runtime/composables/storefront/useProducts.d.ts +4 -21
- package/dist/runtime/composables/storefront/useProducts.mjs +5 -12
- package/dist/runtime/composables/storefront/useProductsByIds.d.ts +4 -9
- package/dist/runtime/composables/storefront/useProductsByIds.mjs +5 -12
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.d.ts +4 -9
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.mjs +5 -12
- package/dist/runtime/composables/storefront/useProductsCount.d.ts +4 -11
- package/dist/runtime/composables/storefront/useProductsCount.mjs +5 -12
- package/dist/runtime/composables/storefront/usePromotions.d.ts +4 -9
- package/dist/runtime/composables/storefront/usePromotions.mjs +5 -12
- package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +4 -9
- package/dist/runtime/composables/storefront/usePromotionsByIds.mjs +5 -12
- package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +4 -9
- package/dist/runtime/composables/storefront/useShopConfiguration.mjs +5 -12
- package/dist/runtime/composables/storefront/useUserAddresses.d.ts +4 -9
- package/dist/runtime/composables/storefront/useUserAddresses.mjs +5 -12
- package/dist/runtime/composables/storefront/useVariant.d.ts +4 -9
- package/dist/runtime/composables/storefront/useVariant.mjs +5 -12
- package/dist/runtime/composables/storefront/useWishlist.d.ts +42 -4
- package/dist/runtime/composables/storefront/useWishlist.mjs +17 -14
- package/dist/runtime/log.mjs +1 -1
- package/dist/runtime/utils/promise.d.ts +9 -0
- package/dist/runtime/utils/promise.mjs +12 -0
- package/dist/runtime/utils/zodSchema.d.ts +32 -32
- package/dist/runtime/utils/zodSchema.mjs +8 -5
- package/dist/shared/{storefront-nuxt.d9a4c377.d.mts → storefront-nuxt.257df9a6.d.mts} +11 -11
- package/dist/shared/{storefront-nuxt.d9a4c377.d.ts → storefront-nuxt.257df9a6.d.ts} +11 -11
- package/package.json +3 -3
|
@@ -178,7 +178,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
178
178
|
shopId: z.ZodNumber;
|
|
179
179
|
path: z.ZodOptional<z.ZodString>;
|
|
180
180
|
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
181
|
-
domain: z.ZodString
|
|
181
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
182
182
|
locale: z.ZodString;
|
|
183
183
|
auth: z.ZodObject<{
|
|
184
184
|
resetPasswordUrl: z.ZodString;
|
|
@@ -388,7 +388,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
388
388
|
tls?: boolean | undefined;
|
|
389
389
|
} | undefined;
|
|
390
390
|
}>>;
|
|
391
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
392
392
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
393
393
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
394
394
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -437,11 +437,11 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
437
437
|
cbdExpiration?: number | undefined;
|
|
438
438
|
};
|
|
439
439
|
shopId: number;
|
|
440
|
-
domain: string;
|
|
441
440
|
auth: {
|
|
442
441
|
resetPasswordUrl: string;
|
|
443
442
|
};
|
|
444
443
|
currency: string;
|
|
444
|
+
domain?: string | undefined;
|
|
445
445
|
storeCampaignKeyword?: string | undefined;
|
|
446
446
|
idp?: {
|
|
447
447
|
enabled: boolean;
|
|
@@ -507,7 +507,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
507
507
|
tls?: boolean | undefined;
|
|
508
508
|
} | undefined;
|
|
509
509
|
} | undefined;
|
|
510
|
-
isDefault?: boolean | undefined;
|
|
510
|
+
isDefault?: string | boolean | undefined;
|
|
511
511
|
}, {
|
|
512
512
|
locale: string;
|
|
513
513
|
checkout: {
|
|
@@ -518,11 +518,11 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
518
518
|
cbdExpiration?: number | undefined;
|
|
519
519
|
};
|
|
520
520
|
shopId: number;
|
|
521
|
-
domain: string;
|
|
522
521
|
auth: {
|
|
523
522
|
resetPasswordUrl: string;
|
|
524
523
|
};
|
|
525
524
|
currency: string;
|
|
525
|
+
domain?: string | undefined;
|
|
526
526
|
storeCampaignKeyword?: string | undefined;
|
|
527
527
|
idp?: {
|
|
528
528
|
enabled: boolean;
|
|
@@ -588,7 +588,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
588
588
|
tls?: boolean | undefined;
|
|
589
589
|
} | undefined;
|
|
590
590
|
} | undefined;
|
|
591
|
-
isDefault?: boolean | undefined;
|
|
591
|
+
isDefault?: string | boolean | undefined;
|
|
592
592
|
}>;
|
|
593
593
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
594
594
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
@@ -795,19 +795,19 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
795
795
|
password: string;
|
|
796
796
|
username: string;
|
|
797
797
|
}>;
|
|
798
|
-
enabled: z.ZodBoolean
|
|
798
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
799
799
|
}, "strip", z.ZodTypeAny, {
|
|
800
800
|
auth: {
|
|
801
801
|
password: string;
|
|
802
802
|
username: string;
|
|
803
803
|
};
|
|
804
|
-
enabled
|
|
804
|
+
enabled?: boolean | undefined;
|
|
805
805
|
}, {
|
|
806
806
|
auth: {
|
|
807
807
|
password: string;
|
|
808
808
|
username: string;
|
|
809
809
|
};
|
|
810
|
-
enabled
|
|
810
|
+
enabled?: boolean | undefined;
|
|
811
811
|
}>>;
|
|
812
812
|
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
813
813
|
idp: z.ZodOptional<z.ZodObject<{
|
|
@@ -907,7 +907,7 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
907
907
|
password: string;
|
|
908
908
|
username: string;
|
|
909
909
|
};
|
|
910
|
-
enabled
|
|
910
|
+
enabled?: boolean | undefined;
|
|
911
911
|
} | undefined;
|
|
912
912
|
storage?: {
|
|
913
913
|
session?: {
|
|
@@ -982,7 +982,7 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
982
982
|
password: string;
|
|
983
983
|
username: string;
|
|
984
984
|
};
|
|
985
|
-
enabled
|
|
985
|
+
enabled?: boolean | undefined;
|
|
986
986
|
} | undefined;
|
|
987
987
|
storage?: {
|
|
988
988
|
session?: {
|
|
@@ -1239,19 +1239,19 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1239
1239
|
password: string;
|
|
1240
1240
|
username: string;
|
|
1241
1241
|
}>;
|
|
1242
|
-
enabled: z.ZodBoolean
|
|
1242
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1243
1243
|
}, "strip", z.ZodTypeAny, {
|
|
1244
1244
|
auth: {
|
|
1245
1245
|
password: string;
|
|
1246
1246
|
username: string;
|
|
1247
1247
|
};
|
|
1248
|
-
enabled
|
|
1248
|
+
enabled?: boolean | undefined;
|
|
1249
1249
|
}, {
|
|
1250
1250
|
auth: {
|
|
1251
1251
|
password: string;
|
|
1252
1252
|
username: string;
|
|
1253
1253
|
};
|
|
1254
|
-
enabled
|
|
1254
|
+
enabled?: boolean | undefined;
|
|
1255
1255
|
}>>;
|
|
1256
1256
|
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1257
1257
|
idp: z.ZodOptional<z.ZodObject<{
|
|
@@ -1351,7 +1351,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1351
1351
|
password: string;
|
|
1352
1352
|
username: string;
|
|
1353
1353
|
};
|
|
1354
|
-
enabled
|
|
1354
|
+
enabled?: boolean | undefined;
|
|
1355
1355
|
} | undefined;
|
|
1356
1356
|
storage?: {
|
|
1357
1357
|
session?: {
|
|
@@ -1426,7 +1426,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1426
1426
|
password: string;
|
|
1427
1427
|
username: string;
|
|
1428
1428
|
};
|
|
1429
|
-
enabled
|
|
1429
|
+
enabled?: boolean | undefined;
|
|
1430
1430
|
} | undefined;
|
|
1431
1431
|
storage?: {
|
|
1432
1432
|
session?: {
|
|
@@ -1474,7 +1474,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1474
1474
|
shopId: z.ZodNumber;
|
|
1475
1475
|
path: z.ZodOptional<z.ZodString>;
|
|
1476
1476
|
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
1477
|
-
domain: z.ZodString
|
|
1477
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
1478
1478
|
locale: z.ZodString;
|
|
1479
1479
|
auth: z.ZodObject<{
|
|
1480
1480
|
resetPasswordUrl: z.ZodString;
|
|
@@ -1684,7 +1684,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1684
1684
|
tls?: boolean | undefined;
|
|
1685
1685
|
} | undefined;
|
|
1686
1686
|
}>>;
|
|
1687
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1687
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
1688
1688
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
1689
1689
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1690
1690
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1733,11 +1733,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1733
1733
|
cbdExpiration?: number | undefined;
|
|
1734
1734
|
};
|
|
1735
1735
|
shopId: number;
|
|
1736
|
-
domain: string;
|
|
1737
1736
|
auth: {
|
|
1738
1737
|
resetPasswordUrl: string;
|
|
1739
1738
|
};
|
|
1740
1739
|
currency: string;
|
|
1740
|
+
domain?: string | undefined;
|
|
1741
1741
|
storeCampaignKeyword?: string | undefined;
|
|
1742
1742
|
idp?: {
|
|
1743
1743
|
enabled: boolean;
|
|
@@ -1803,7 +1803,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1803
1803
|
tls?: boolean | undefined;
|
|
1804
1804
|
} | undefined;
|
|
1805
1805
|
} | undefined;
|
|
1806
|
-
isDefault?: boolean | undefined;
|
|
1806
|
+
isDefault?: string | boolean | undefined;
|
|
1807
1807
|
}, {
|
|
1808
1808
|
locale: string;
|
|
1809
1809
|
checkout: {
|
|
@@ -1814,11 +1814,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1814
1814
|
cbdExpiration?: number | undefined;
|
|
1815
1815
|
};
|
|
1816
1816
|
shopId: number;
|
|
1817
|
-
domain: string;
|
|
1818
1817
|
auth: {
|
|
1819
1818
|
resetPasswordUrl: string;
|
|
1820
1819
|
};
|
|
1821
1820
|
currency: string;
|
|
1821
|
+
domain?: string | undefined;
|
|
1822
1822
|
storeCampaignKeyword?: string | undefined;
|
|
1823
1823
|
idp?: {
|
|
1824
1824
|
enabled: boolean;
|
|
@@ -1884,7 +1884,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1884
1884
|
tls?: boolean | undefined;
|
|
1885
1885
|
} | undefined;
|
|
1886
1886
|
} | undefined;
|
|
1887
|
-
isDefault?: boolean | undefined;
|
|
1887
|
+
isDefault?: string | boolean | undefined;
|
|
1888
1888
|
}>>;
|
|
1889
1889
|
redirects: z.ZodOptional<z.ZodObject<{
|
|
1890
1890
|
enabled: z.ZodBoolean;
|
|
@@ -1908,11 +1908,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1908
1908
|
cbdExpiration?: number | undefined;
|
|
1909
1909
|
};
|
|
1910
1910
|
shopId: number;
|
|
1911
|
-
domain: string;
|
|
1912
1911
|
auth: {
|
|
1913
1912
|
resetPasswordUrl: string;
|
|
1914
1913
|
};
|
|
1915
1914
|
currency: string;
|
|
1915
|
+
domain?: string | undefined;
|
|
1916
1916
|
storeCampaignKeyword?: string | undefined;
|
|
1917
1917
|
idp?: {
|
|
1918
1918
|
enabled: boolean;
|
|
@@ -1978,7 +1978,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1978
1978
|
tls?: boolean | undefined;
|
|
1979
1979
|
} | undefined;
|
|
1980
1980
|
} | undefined;
|
|
1981
|
-
isDefault?: boolean | undefined;
|
|
1981
|
+
isDefault?: string | boolean | undefined;
|
|
1982
1982
|
}>;
|
|
1983
1983
|
redirects?: {
|
|
1984
1984
|
enabled: boolean;
|
|
@@ -1996,11 +1996,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1996
1996
|
cbdExpiration?: number | undefined;
|
|
1997
1997
|
};
|
|
1998
1998
|
shopId: number;
|
|
1999
|
-
domain: string;
|
|
2000
1999
|
auth: {
|
|
2001
2000
|
resetPasswordUrl: string;
|
|
2002
2001
|
};
|
|
2003
2002
|
currency: string;
|
|
2003
|
+
domain?: string | undefined;
|
|
2004
2004
|
storeCampaignKeyword?: string | undefined;
|
|
2005
2005
|
idp?: {
|
|
2006
2006
|
enabled: boolean;
|
|
@@ -2066,7 +2066,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2066
2066
|
tls?: boolean | undefined;
|
|
2067
2067
|
} | undefined;
|
|
2068
2068
|
} | undefined;
|
|
2069
|
-
isDefault?: boolean | undefined;
|
|
2069
|
+
isDefault?: string | boolean | undefined;
|
|
2070
2070
|
}>;
|
|
2071
2071
|
redirects?: {
|
|
2072
2072
|
enabled: boolean;
|
|
@@ -2158,7 +2158,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2158
2158
|
password: string;
|
|
2159
2159
|
username: string;
|
|
2160
2160
|
};
|
|
2161
|
-
enabled
|
|
2161
|
+
enabled?: boolean | undefined;
|
|
2162
2162
|
} | undefined;
|
|
2163
2163
|
storage?: {
|
|
2164
2164
|
session?: {
|
|
@@ -2199,11 +2199,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2199
2199
|
cbdExpiration?: number | undefined;
|
|
2200
2200
|
};
|
|
2201
2201
|
shopId: number;
|
|
2202
|
-
domain: string;
|
|
2203
2202
|
auth: {
|
|
2204
2203
|
resetPasswordUrl: string;
|
|
2205
2204
|
};
|
|
2206
2205
|
currency: string;
|
|
2206
|
+
domain?: string | undefined;
|
|
2207
2207
|
storeCampaignKeyword?: string | undefined;
|
|
2208
2208
|
idp?: {
|
|
2209
2209
|
enabled: boolean;
|
|
@@ -2269,7 +2269,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2269
2269
|
tls?: boolean | undefined;
|
|
2270
2270
|
} | undefined;
|
|
2271
2271
|
} | undefined;
|
|
2272
|
-
isDefault?: boolean | undefined;
|
|
2272
|
+
isDefault?: string | boolean | undefined;
|
|
2273
2273
|
}>;
|
|
2274
2274
|
redirects?: {
|
|
2275
2275
|
enabled: boolean;
|
|
@@ -2331,7 +2331,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2331
2331
|
password: string;
|
|
2332
2332
|
username: string;
|
|
2333
2333
|
};
|
|
2334
|
-
enabled
|
|
2334
|
+
enabled?: boolean | undefined;
|
|
2335
2335
|
} | undefined;
|
|
2336
2336
|
storage?: {
|
|
2337
2337
|
session?: {
|
|
@@ -2372,11 +2372,11 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2372
2372
|
cbdExpiration?: number | undefined;
|
|
2373
2373
|
};
|
|
2374
2374
|
shopId: number;
|
|
2375
|
-
domain: string;
|
|
2376
2375
|
auth: {
|
|
2377
2376
|
resetPasswordUrl: string;
|
|
2378
2377
|
};
|
|
2379
2378
|
currency: string;
|
|
2379
|
+
domain?: string | undefined;
|
|
2380
2380
|
storeCampaignKeyword?: string | undefined;
|
|
2381
2381
|
idp?: {
|
|
2382
2382
|
enabled: boolean;
|
|
@@ -2442,7 +2442,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2442
2442
|
tls?: boolean | undefined;
|
|
2443
2443
|
} | undefined;
|
|
2444
2444
|
} | undefined;
|
|
2445
|
-
isDefault?: boolean | undefined;
|
|
2445
|
+
isDefault?: string | boolean | undefined;
|
|
2446
2446
|
}>;
|
|
2447
2447
|
redirects?: {
|
|
2448
2448
|
enabled: boolean;
|
|
@@ -83,12 +83,15 @@ const CheckoutShopConfigSchema = z.object({
|
|
|
83
83
|
user: z.string().or(z.number()),
|
|
84
84
|
cbdExpiration: z.number().optional()
|
|
85
85
|
});
|
|
86
|
+
const emptyString = z.string().refine((val) => val === "", {
|
|
87
|
+
message: "Expected boolean, received string"
|
|
88
|
+
});
|
|
86
89
|
const ShopConfigSchema = z.object({
|
|
87
90
|
idp: IdpSchema.optional(),
|
|
88
91
|
shopId: z.number(),
|
|
89
92
|
path: z.string().optional(),
|
|
90
93
|
apiBasePath: z.string().optional(),
|
|
91
|
-
domain: z.string(),
|
|
94
|
+
domain: z.string().optional(),
|
|
92
95
|
locale: z.string(),
|
|
93
96
|
auth: z.object({
|
|
94
97
|
resetPasswordUrl: z.string()
|
|
@@ -105,16 +108,16 @@ const ShopConfigSchema = z.object({
|
|
|
105
108
|
session: StorageSchema.optional(),
|
|
106
109
|
cache: StorageSchema.optional()
|
|
107
110
|
}).optional(),
|
|
108
|
-
isDefault: z.boolean().optional(),
|
|
111
|
+
isDefault: z.boolean().optional().or(emptyString),
|
|
109
112
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
110
113
|
redis: RedisConfigSchema.optional()
|
|
111
114
|
});
|
|
112
115
|
const CacheSchema = z.object({
|
|
113
116
|
auth: z.object({
|
|
114
|
-
username: z.string()
|
|
115
|
-
password: z.string()
|
|
117
|
+
username: z.string(),
|
|
118
|
+
password: z.string()
|
|
116
119
|
}),
|
|
117
|
-
enabled: z.boolean()
|
|
120
|
+
enabled: z.boolean().optional()
|
|
118
121
|
});
|
|
119
122
|
const ShopSelectorSchema = z.enum(["path", "domain", "path_or_default"]);
|
|
120
123
|
const StorefrontConfigSchema = z.object({
|
|
@@ -182,7 +182,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
182
182
|
shopId: z.ZodNumber;
|
|
183
183
|
path: z.ZodOptional<z.ZodString>;
|
|
184
184
|
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
185
|
-
domain: z.ZodString
|
|
185
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
186
186
|
locale: z.ZodString;
|
|
187
187
|
auth: z.ZodObject<{
|
|
188
188
|
resetPasswordUrl: z.ZodString;
|
|
@@ -392,7 +392,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
392
392
|
ttl?: number | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
}>>;
|
|
395
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
396
396
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
397
397
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
398
398
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -432,7 +432,6 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
432
432
|
sslTransit?: boolean | undefined;
|
|
433
433
|
}>]>>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
domain: string;
|
|
436
435
|
shopId: number;
|
|
437
436
|
locale: string;
|
|
438
437
|
auth: {
|
|
@@ -447,6 +446,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
447
446
|
cbdExpiration?: number | undefined;
|
|
448
447
|
};
|
|
449
448
|
path?: string | undefined;
|
|
449
|
+
domain?: string | undefined;
|
|
450
450
|
redis?: {
|
|
451
451
|
port?: number | undefined;
|
|
452
452
|
host?: string | undefined;
|
|
@@ -511,9 +511,8 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
511
511
|
ttl?: number | undefined;
|
|
512
512
|
} | undefined;
|
|
513
513
|
} | undefined;
|
|
514
|
-
isDefault?: boolean | undefined;
|
|
514
|
+
isDefault?: string | boolean | undefined;
|
|
515
515
|
}, {
|
|
516
|
-
domain: string;
|
|
517
516
|
shopId: number;
|
|
518
517
|
locale: string;
|
|
519
518
|
auth: {
|
|
@@ -528,6 +527,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
528
527
|
cbdExpiration?: number | undefined;
|
|
529
528
|
};
|
|
530
529
|
path?: string | undefined;
|
|
530
|
+
domain?: string | undefined;
|
|
531
531
|
redis?: {
|
|
532
532
|
port?: number | undefined;
|
|
533
533
|
host?: string | undefined;
|
|
@@ -592,7 +592,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
592
592
|
ttl?: number | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
} | undefined;
|
|
595
|
-
isDefault?: boolean | undefined;
|
|
595
|
+
isDefault?: string | boolean | undefined;
|
|
596
596
|
}>;
|
|
597
597
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
598
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
@@ -799,19 +799,19 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
799
799
|
password: string;
|
|
800
800
|
username: string;
|
|
801
801
|
}>;
|
|
802
|
-
enabled: z.ZodBoolean
|
|
802
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
803
803
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
-
enabled: boolean;
|
|
805
804
|
auth: {
|
|
806
805
|
password: string;
|
|
807
806
|
username: string;
|
|
808
807
|
};
|
|
808
|
+
enabled?: boolean | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
enabled: boolean;
|
|
811
810
|
auth: {
|
|
812
811
|
password: string;
|
|
813
812
|
username: string;
|
|
814
813
|
};
|
|
814
|
+
enabled?: boolean | undefined;
|
|
815
815
|
}>>;
|
|
816
816
|
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
817
817
|
idp: z.ZodOptional<z.ZodObject<{
|
|
@@ -907,11 +907,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
907
907
|
domain?: string | undefined;
|
|
908
908
|
} | undefined;
|
|
909
909
|
cache?: {
|
|
910
|
-
enabled: boolean;
|
|
911
910
|
auth: {
|
|
912
911
|
password: string;
|
|
913
912
|
username: string;
|
|
914
913
|
};
|
|
914
|
+
enabled?: boolean | undefined;
|
|
915
915
|
} | undefined;
|
|
916
916
|
storage?: {
|
|
917
917
|
session?: {
|
|
@@ -982,11 +982,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
982
982
|
domain?: string | undefined;
|
|
983
983
|
} | undefined;
|
|
984
984
|
cache?: {
|
|
985
|
-
enabled: boolean;
|
|
986
985
|
auth: {
|
|
987
986
|
password: string;
|
|
988
987
|
username: string;
|
|
989
988
|
};
|
|
989
|
+
enabled?: boolean | undefined;
|
|
990
990
|
} | undefined;
|
|
991
991
|
storage?: {
|
|
992
992
|
session?: {
|
|
@@ -182,7 +182,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
182
182
|
shopId: z.ZodNumber;
|
|
183
183
|
path: z.ZodOptional<z.ZodString>;
|
|
184
184
|
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
185
|
-
domain: z.ZodString
|
|
185
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
186
186
|
locale: z.ZodString;
|
|
187
187
|
auth: z.ZodObject<{
|
|
188
188
|
resetPasswordUrl: z.ZodString;
|
|
@@ -392,7 +392,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
392
392
|
ttl?: number | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
}>>;
|
|
395
|
-
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
isDefault: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
396
396
|
/** @deprecated shop-specific storefront.redis config is being removed in favor of global nitro.storage config */
|
|
397
397
|
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
398
398
|
port: z.ZodOptional<z.ZodNumber>;
|
|
@@ -432,7 +432,6 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
432
432
|
sslTransit?: boolean | undefined;
|
|
433
433
|
}>]>>;
|
|
434
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
domain: string;
|
|
436
435
|
shopId: number;
|
|
437
436
|
locale: string;
|
|
438
437
|
auth: {
|
|
@@ -447,6 +446,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
447
446
|
cbdExpiration?: number | undefined;
|
|
448
447
|
};
|
|
449
448
|
path?: string | undefined;
|
|
449
|
+
domain?: string | undefined;
|
|
450
450
|
redis?: {
|
|
451
451
|
port?: number | undefined;
|
|
452
452
|
host?: string | undefined;
|
|
@@ -511,9 +511,8 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
511
511
|
ttl?: number | undefined;
|
|
512
512
|
} | undefined;
|
|
513
513
|
} | undefined;
|
|
514
|
-
isDefault?: boolean | undefined;
|
|
514
|
+
isDefault?: string | boolean | undefined;
|
|
515
515
|
}, {
|
|
516
|
-
domain: string;
|
|
517
516
|
shopId: number;
|
|
518
517
|
locale: string;
|
|
519
518
|
auth: {
|
|
@@ -528,6 +527,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
528
527
|
cbdExpiration?: number | undefined;
|
|
529
528
|
};
|
|
530
529
|
path?: string | undefined;
|
|
530
|
+
domain?: string | undefined;
|
|
531
531
|
redis?: {
|
|
532
532
|
port?: number | undefined;
|
|
533
533
|
host?: string | undefined;
|
|
@@ -592,7 +592,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
592
592
|
ttl?: number | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
} | undefined;
|
|
595
|
-
isDefault?: boolean | undefined;
|
|
595
|
+
isDefault?: string | boolean | undefined;
|
|
596
596
|
}>;
|
|
597
597
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
598
|
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
@@ -799,19 +799,19 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
799
799
|
password: string;
|
|
800
800
|
username: string;
|
|
801
801
|
}>;
|
|
802
|
-
enabled: z.ZodBoolean
|
|
802
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
803
803
|
}, "strip", z.ZodTypeAny, {
|
|
804
|
-
enabled: boolean;
|
|
805
804
|
auth: {
|
|
806
805
|
password: string;
|
|
807
806
|
username: string;
|
|
808
807
|
};
|
|
808
|
+
enabled?: boolean | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
enabled: boolean;
|
|
811
810
|
auth: {
|
|
812
811
|
password: string;
|
|
813
812
|
username: string;
|
|
814
813
|
};
|
|
814
|
+
enabled?: boolean | undefined;
|
|
815
815
|
}>>;
|
|
816
816
|
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
817
817
|
idp: z.ZodOptional<z.ZodObject<{
|
|
@@ -907,11 +907,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
907
907
|
domain?: string | undefined;
|
|
908
908
|
} | undefined;
|
|
909
909
|
cache?: {
|
|
910
|
-
enabled: boolean;
|
|
911
910
|
auth: {
|
|
912
911
|
password: string;
|
|
913
912
|
username: string;
|
|
914
913
|
};
|
|
914
|
+
enabled?: boolean | undefined;
|
|
915
915
|
} | undefined;
|
|
916
916
|
storage?: {
|
|
917
917
|
session?: {
|
|
@@ -982,11 +982,11 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
982
982
|
domain?: string | undefined;
|
|
983
983
|
} | undefined;
|
|
984
984
|
cache?: {
|
|
985
|
-
enabled: boolean;
|
|
986
985
|
auth: {
|
|
987
986
|
password: string;
|
|
988
987
|
username: string;
|
|
989
988
|
};
|
|
989
|
+
enabled?: boolean | undefined;
|
|
990
990
|
} | undefined;
|
|
991
991
|
storage?: {
|
|
992
992
|
session?: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.75.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@nuxt/kit": "3.11.1",
|
|
61
61
|
"@opentelemetry/api": "1.8.0",
|
|
62
62
|
"@scayle/h3-session": "0.4.0",
|
|
63
|
-
"@scayle/storefront-core": "7.
|
|
63
|
+
"@scayle/storefront-core": "7.55.0",
|
|
64
64
|
"@scayle/unstorage-compression-driver": "0.1.3",
|
|
65
65
|
"@vueuse/core": "10.10.0",
|
|
66
66
|
"consola": "3.2.3",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@nuxt/test-utils": "3.13.1",
|
|
86
86
|
"@scayle/eslint-config-storefront": "4.2.0",
|
|
87
87
|
"@scayle/eslint-plugin-vue-composable": "0.2.0",
|
|
88
|
-
"@types/node": "20.14.
|
|
88
|
+
"@types/node": "20.14.2",
|
|
89
89
|
"dprint": "0.46.1",
|
|
90
90
|
"eslint": "9.4.0",
|
|
91
91
|
"eslint-formatter-gitlab": "5.1.0",
|