@scayle/storefront-nuxt 7.74.0 → 7.75.1

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.
Files changed (72) hide show
  1. package/CHANGELOG.md +50 -1
  2. package/dist/index.d.mts +12 -2
  3. package/dist/index.d.ts +12 -2
  4. package/dist/index.mjs +15 -0
  5. package/dist/module.d.mts +2 -2
  6. package/dist/module.d.ts +2 -2
  7. package/dist/module.json +1 -1
  8. package/dist/module.mjs +32 -1
  9. package/dist/rpc.d.mts +1 -1
  10. package/dist/rpc.d.ts +1 -1
  11. package/dist/runtime/composables/core/useIDP.d.ts +5 -5
  12. package/dist/runtime/composables/core/useIDP.mjs +2 -2
  13. package/dist/runtime/composables/core/useRpc.d.ts +38 -9
  14. package/dist/runtime/composables/core/useRpc.mjs +29 -49
  15. package/dist/runtime/composables/core/useUser.d.ts +21 -6
  16. package/dist/runtime/composables/core/useUser.mjs +26 -10
  17. package/dist/runtime/composables/storefront/useBasket.d.ts +69 -8
  18. package/dist/runtime/composables/storefront/useBasket.mjs +16 -18
  19. package/dist/runtime/composables/storefront/useBrand.d.ts +4 -9
  20. package/dist/runtime/composables/storefront/useBrand.mjs +5 -12
  21. package/dist/runtime/composables/storefront/useBrands.d.ts +4 -9
  22. package/dist/runtime/composables/storefront/useBrands.mjs +5 -12
  23. package/dist/runtime/composables/storefront/useCategories.d.ts +23 -13
  24. package/dist/runtime/composables/storefront/useCategories.mjs +8 -12
  25. package/dist/runtime/composables/storefront/useCategoryById.d.ts +4 -9
  26. package/dist/runtime/composables/storefront/useCategoryById.mjs +5 -12
  27. package/dist/runtime/composables/storefront/useCategoryByPath.d.ts +4 -9
  28. package/dist/runtime/composables/storefront/useCategoryByPath.mjs +5 -12
  29. package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +4 -9
  30. package/dist/runtime/composables/storefront/useCurrentPromotions.mjs +5 -12
  31. package/dist/runtime/composables/storefront/useFacet.d.ts +60 -15
  32. package/dist/runtime/composables/storefront/useFacet.mjs +117 -110
  33. package/dist/runtime/composables/storefront/useFilters.d.ts +4 -12
  34. package/dist/runtime/composables/storefront/useFilters.mjs +5 -12
  35. package/dist/runtime/composables/storefront/useNavigationTree.d.ts +4 -9
  36. package/dist/runtime/composables/storefront/useNavigationTree.mjs +5 -12
  37. package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +4 -9
  38. package/dist/runtime/composables/storefront/useNavigationTrees.mjs +5 -12
  39. package/dist/runtime/composables/storefront/useOrder.d.ts +6 -5
  40. package/dist/runtime/composables/storefront/useOrder.mjs +2 -2
  41. package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +6 -5
  42. package/dist/runtime/composables/storefront/useOrderConfirmation.mjs +2 -2
  43. package/dist/runtime/composables/storefront/useProduct.d.ts +4 -9
  44. package/dist/runtime/composables/storefront/useProduct.mjs +5 -12
  45. package/dist/runtime/composables/storefront/useProducts.d.ts +4 -21
  46. package/dist/runtime/composables/storefront/useProducts.mjs +5 -12
  47. package/dist/runtime/composables/storefront/useProductsByIds.d.ts +4 -9
  48. package/dist/runtime/composables/storefront/useProductsByIds.mjs +5 -12
  49. package/dist/runtime/composables/storefront/useProductsByReferenceKeys.d.ts +4 -9
  50. package/dist/runtime/composables/storefront/useProductsByReferenceKeys.mjs +5 -12
  51. package/dist/runtime/composables/storefront/useProductsCount.d.ts +4 -11
  52. package/dist/runtime/composables/storefront/useProductsCount.mjs +5 -12
  53. package/dist/runtime/composables/storefront/usePromotions.d.ts +4 -9
  54. package/dist/runtime/composables/storefront/usePromotions.mjs +5 -12
  55. package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +4 -9
  56. package/dist/runtime/composables/storefront/usePromotionsByIds.mjs +5 -12
  57. package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +4 -9
  58. package/dist/runtime/composables/storefront/useShopConfiguration.mjs +5 -12
  59. package/dist/runtime/composables/storefront/useUserAddresses.d.ts +4 -9
  60. package/dist/runtime/composables/storefront/useUserAddresses.mjs +5 -12
  61. package/dist/runtime/composables/storefront/useVariant.d.ts +4 -9
  62. package/dist/runtime/composables/storefront/useVariant.mjs +5 -12
  63. package/dist/runtime/composables/storefront/useWishlist.d.ts +42 -4
  64. package/dist/runtime/composables/storefront/useWishlist.mjs +17 -14
  65. package/dist/runtime/log.mjs +1 -1
  66. package/dist/runtime/utils/promise.d.ts +9 -0
  67. package/dist/runtime/utils/promise.mjs +12 -0
  68. package/dist/runtime/utils/zodSchema.d.ts +22 -22
  69. package/dist/runtime/utils/zodSchema.mjs +4 -4
  70. package/dist/shared/{storefront-nuxt.db7a2f93.d.mts → storefront-nuxt.257df9a6.d.mts} +8 -8
  71. package/dist/shared/{storefront-nuxt.db7a2f93.d.ts → storefront-nuxt.257df9a6.d.ts} +8 -8
  72. package/package.json +2 -2
@@ -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;
@@ -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;
@@ -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;
@@ -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: boolean;
804
+ enabled?: boolean | undefined;
805
805
  }, {
806
806
  auth: {
807
807
  password: string;
808
808
  username: string;
809
809
  };
810
- enabled: boolean;
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: boolean;
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: boolean;
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: boolean;
1248
+ enabled?: boolean | undefined;
1249
1249
  }, {
1250
1250
  auth: {
1251
1251
  password: string;
1252
1252
  username: string;
1253
1253
  };
1254
- enabled: boolean;
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: boolean;
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: boolean;
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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -2158,7 +2158,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2158
2158
  password: string;
2159
2159
  username: string;
2160
2160
  };
2161
- enabled: boolean;
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;
@@ -2331,7 +2331,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
2331
2331
  password: string;
2332
2332
  username: string;
2333
2333
  };
2334
- enabled: boolean;
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;
@@ -91,7 +91,7 @@ const ShopConfigSchema = z.object({
91
91
  shopId: z.number(),
92
92
  path: z.string().optional(),
93
93
  apiBasePath: z.string().optional(),
94
- domain: z.string(),
94
+ domain: z.string().optional(),
95
95
  locale: z.string(),
96
96
  auth: z.object({
97
97
  resetPasswordUrl: z.string()
@@ -114,10 +114,10 @@ const ShopConfigSchema = z.object({
114
114
  });
115
115
  const CacheSchema = z.object({
116
116
  auth: z.object({
117
- username: z.string().min(1),
118
- password: z.string().min(1)
117
+ username: z.string(),
118
+ password: z.string()
119
119
  }),
120
- enabled: z.boolean()
120
+ enabled: z.boolean().optional()
121
121
  });
122
122
  const ShopSelectorSchema = z.enum(["path", "domain", "path_or_default"]);
123
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;
@@ -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;
@@ -513,7 +513,6 @@ declare const ShopConfigSchema: z.ZodObject<{
513
513
  } | undefined;
514
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;
@@ -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;
@@ -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;
@@ -513,7 +513,6 @@ declare const ShopConfigSchema: z.ZodObject<{
513
513
  } | undefined;
514
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;
@@ -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.74.0",
4
+ "version": "7.75.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -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.1",
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",