@scayle/storefront-nuxt 7.82.1 → 7.83.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 +16 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/module.d.mts +3 -3
- package/dist/module.d.ts +3 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -5
- package/dist/rpc.d.mts +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/runtime/campaignKey.d.ts +1 -1
- package/dist/runtime/campaignKey.mjs +2 -2
- package/dist/runtime/composables/core/useIDP.d.ts +16 -10
- package/dist/runtime/composables/core/useIDP.mjs +15 -1
- package/dist/runtime/composables/storefront/useCategories.d.ts +24 -18
- package/dist/runtime/composables/storefront/useCategories.mjs +15 -1
- package/dist/runtime/composables/storefront/useOrder.d.ts +12 -8
- package/dist/runtime/composables/storefront/useOrder.mjs +16 -3
- package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +11 -7
- package/dist/runtime/composables/storefront/useOrderConfirmation.mjs +15 -2
- package/dist/runtime/composables/storefront/useQueryFilterState.d.ts +2 -1
- package/dist/runtime/composables/storefront/useQueryFilterState.mjs +2 -2
- package/dist/runtime/context.d.ts +6 -0
- package/dist/runtime/context.mjs +7 -6
- package/dist/runtime/server/middleware/redirects.mjs +11 -11
- package/dist/runtime/utils/zodSchema.d.ts +863 -731
- package/dist/runtime/utils/zodSchema.mjs +25 -19
- package/dist/shared/{storefront-nuxt.ed010583.d.mts → storefront-nuxt.87331293.d.mts} +78 -26
- package/dist/shared/{storefront-nuxt.ed010583.d.ts → storefront-nuxt.87331293.d.ts} +78 -26
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +4 -4
|
@@ -41,7 +41,7 @@ const SessionSchema = z.object({
|
|
|
41
41
|
*/
|
|
42
42
|
domain: z.string().optional()
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const SapiSchema = z.object({
|
|
45
45
|
host: z.string().url(),
|
|
46
46
|
token: z.string().min(1)
|
|
47
47
|
});
|
|
@@ -103,7 +103,8 @@ const ShopConfigSchema = z.object({
|
|
|
103
103
|
currencyFractionDigits: z.number().optional(),
|
|
104
104
|
isEnabled: z.boolean().optional(),
|
|
105
105
|
sessionConfig: SessionSchema.optional(),
|
|
106
|
-
|
|
106
|
+
sapi: SapiSchema.optional(),
|
|
107
|
+
bapi: SapiSchema.optional(),
|
|
107
108
|
storage: z.object({
|
|
108
109
|
session: StorageSchema.optional(),
|
|
109
110
|
cache: StorageSchema.optional()
|
|
@@ -120,22 +121,27 @@ const CacheSchema = z.object({
|
|
|
120
121
|
enabled: z.boolean().optional()
|
|
121
122
|
});
|
|
122
123
|
const ShopSelectorSchema = z.enum(["path", "domain", "path_or_default"]);
|
|
123
|
-
const StorefrontConfigSchema = z.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
})
|
|
124
|
+
const StorefrontConfigSchema = z.intersection(
|
|
125
|
+
z.object({
|
|
126
|
+
session: SessionSchema.optional(),
|
|
127
|
+
storage: z.object({
|
|
128
|
+
session: StorageSchema.optional(),
|
|
129
|
+
cache: StorageSchema.optional()
|
|
130
|
+
}).optional(),
|
|
131
|
+
oauth: OAuthSchema,
|
|
132
|
+
appKeys: AppKeysSchema,
|
|
133
|
+
apiBasePath: z.string().optional(),
|
|
134
|
+
cache: CacheSchema.optional(),
|
|
135
|
+
publicShopData: z.array(z.string()).optional(),
|
|
136
|
+
idp: IdpSchema.optional(),
|
|
137
|
+
/** @deprecated Global storefront.redis config is being removed in favor of `storefront.storage` config */
|
|
138
|
+
redis: RedisConfigSchema.optional()
|
|
139
|
+
}),
|
|
140
|
+
z.union([
|
|
141
|
+
z.object({ sapi: SapiSchema, bapi: z.undefined() }),
|
|
142
|
+
z.object({ bapi: SapiSchema, sapi: z.undefined() })
|
|
143
|
+
])
|
|
144
|
+
);
|
|
139
145
|
const ModuleOptionSchema = z.object(
|
|
140
146
|
{
|
|
141
147
|
shopSelector: ShopSelectorSchema,
|
|
@@ -151,7 +157,7 @@ const PublicRuntimeConfigSchema = z.object({
|
|
|
151
157
|
})
|
|
152
158
|
});
|
|
153
159
|
export const RuntimeConfigSchema = z.object({
|
|
154
|
-
storefront: z.
|
|
160
|
+
storefront: z.intersection(ModuleOptionSchema, StorefrontConfigSchema),
|
|
155
161
|
public: z.object({
|
|
156
162
|
storefront: PublicRuntimeConfigSchema
|
|
157
163
|
})
|
|
@@ -89,7 +89,7 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
89
89
|
secret?: string | string[] | undefined;
|
|
90
90
|
domain?: string | undefined;
|
|
91
91
|
}>;
|
|
92
|
-
declare const
|
|
92
|
+
declare const SapiSchema: z.ZodObject<{
|
|
93
93
|
host: z.ZodString;
|
|
94
94
|
token: z.ZodString;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -262,6 +262,16 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
262
262
|
secret?: string | string[] | undefined;
|
|
263
263
|
domain?: string | undefined;
|
|
264
264
|
}>>;
|
|
265
|
+
sapi: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
host: z.ZodString;
|
|
267
|
+
token: z.ZodString;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
host: string;
|
|
270
|
+
token: string;
|
|
271
|
+
}, {
|
|
272
|
+
host: string;
|
|
273
|
+
token: string;
|
|
274
|
+
}>>;
|
|
265
275
|
bapi: z.ZodOptional<z.ZodObject<{
|
|
266
276
|
host: z.ZodString;
|
|
267
277
|
token: z.ZodString;
|
|
@@ -481,6 +491,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
481
491
|
secret?: string | string[] | undefined;
|
|
482
492
|
domain?: string | undefined;
|
|
483
493
|
} | undefined;
|
|
494
|
+
sapi?: {
|
|
495
|
+
host: string;
|
|
496
|
+
token: string;
|
|
497
|
+
} | undefined;
|
|
484
498
|
bapi?: {
|
|
485
499
|
host: string;
|
|
486
500
|
token: string;
|
|
@@ -562,6 +576,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
562
576
|
secret?: string | string[] | undefined;
|
|
563
577
|
domain?: string | undefined;
|
|
564
578
|
} | undefined;
|
|
579
|
+
sapi?: {
|
|
580
|
+
host: string;
|
|
581
|
+
token: string;
|
|
582
|
+
} | undefined;
|
|
565
583
|
bapi?: {
|
|
566
584
|
host: string;
|
|
567
585
|
token: string;
|
|
@@ -596,7 +614,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
596
614
|
}>;
|
|
597
615
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
616
|
type ShopConfigType = z.infer<typeof ShopConfigSchema>;
|
|
599
|
-
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
617
|
+
declare const StorefrontConfigSchema: z.ZodIntersection<z.ZodObject<{
|
|
600
618
|
session: z.ZodOptional<z.ZodObject<{
|
|
601
619
|
/**
|
|
602
620
|
* The sameSite policy to use for the session cookie
|
|
@@ -632,16 +650,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
632
650
|
secret?: string | string[] | undefined;
|
|
633
651
|
domain?: string | undefined;
|
|
634
652
|
}>>;
|
|
635
|
-
bapi: z.ZodObject<{
|
|
636
|
-
host: z.ZodString;
|
|
637
|
-
token: z.ZodString;
|
|
638
|
-
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
host: string;
|
|
640
|
-
token: string;
|
|
641
|
-
}, {
|
|
642
|
-
host: string;
|
|
643
|
-
token: string;
|
|
644
|
-
}>;
|
|
645
653
|
storage: z.ZodOptional<z.ZodObject<{
|
|
646
654
|
session: z.ZodOptional<z.ZodObject<{
|
|
647
655
|
driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
|
|
@@ -872,10 +880,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
872
880
|
basketKey: string;
|
|
873
881
|
hashAlgorithm: string;
|
|
874
882
|
};
|
|
875
|
-
bapi: {
|
|
876
|
-
host: string;
|
|
877
|
-
token: string;
|
|
878
|
-
};
|
|
879
883
|
oauth: {
|
|
880
884
|
apiHost: string;
|
|
881
885
|
clientId: string | number;
|
|
@@ -947,10 +951,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
947
951
|
basketKey: string;
|
|
948
952
|
hashAlgorithm: string;
|
|
949
953
|
};
|
|
950
|
-
bapi: {
|
|
951
|
-
host: string;
|
|
952
|
-
token: string;
|
|
953
|
-
};
|
|
954
954
|
oauth: {
|
|
955
955
|
apiHost: string;
|
|
956
956
|
clientId: string | number;
|
|
@@ -1016,7 +1016,55 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
1016
1016
|
} | undefined;
|
|
1017
1017
|
} | undefined;
|
|
1018
1018
|
publicShopData?: string[] | undefined;
|
|
1019
|
-
}
|
|
1019
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
1020
|
+
sapi: z.ZodObject<{
|
|
1021
|
+
host: z.ZodString;
|
|
1022
|
+
token: z.ZodString;
|
|
1023
|
+
}, "strip", z.ZodTypeAny, {
|
|
1024
|
+
host: string;
|
|
1025
|
+
token: string;
|
|
1026
|
+
}, {
|
|
1027
|
+
host: string;
|
|
1028
|
+
token: string;
|
|
1029
|
+
}>;
|
|
1030
|
+
bapi: z.ZodUndefined;
|
|
1031
|
+
}, "strip", z.ZodTypeAny, {
|
|
1032
|
+
sapi: {
|
|
1033
|
+
host: string;
|
|
1034
|
+
token: string;
|
|
1035
|
+
};
|
|
1036
|
+
bapi?: undefined;
|
|
1037
|
+
}, {
|
|
1038
|
+
sapi: {
|
|
1039
|
+
host: string;
|
|
1040
|
+
token: string;
|
|
1041
|
+
};
|
|
1042
|
+
bapi?: undefined;
|
|
1043
|
+
}>, z.ZodObject<{
|
|
1044
|
+
bapi: z.ZodObject<{
|
|
1045
|
+
host: z.ZodString;
|
|
1046
|
+
token: z.ZodString;
|
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
|
1048
|
+
host: string;
|
|
1049
|
+
token: string;
|
|
1050
|
+
}, {
|
|
1051
|
+
host: string;
|
|
1052
|
+
token: string;
|
|
1053
|
+
}>;
|
|
1054
|
+
sapi: z.ZodUndefined;
|
|
1055
|
+
}, "strip", z.ZodTypeAny, {
|
|
1056
|
+
bapi: {
|
|
1057
|
+
host: string;
|
|
1058
|
+
token: string;
|
|
1059
|
+
};
|
|
1060
|
+
sapi?: undefined;
|
|
1061
|
+
}, {
|
|
1062
|
+
bapi: {
|
|
1063
|
+
host: string;
|
|
1064
|
+
token: string;
|
|
1065
|
+
};
|
|
1066
|
+
sapi?: undefined;
|
|
1067
|
+
}>]>>;
|
|
1020
1068
|
declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
1021
1069
|
log: z.ZodObject<{
|
|
1022
1070
|
name: z.ZodString;
|
|
@@ -1042,7 +1090,7 @@ declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
|
1042
1090
|
type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
|
|
1043
1091
|
type SessionType = z.infer<typeof SessionSchema>;
|
|
1044
1092
|
type StorageType = z.infer<typeof StorageSchema>;
|
|
1045
|
-
type
|
|
1093
|
+
type SapiConfigType = z.infer<typeof SapiSchema>;
|
|
1046
1094
|
type StorefrontConfigType = z.infer<typeof StorefrontConfigSchema>;
|
|
1047
1095
|
type ShopSelectorType = z.infer<typeof ShopSelectorSchema>;
|
|
1048
1096
|
type RedirectType = z.infer<typeof RedirectsSchema>;
|
|
@@ -1077,7 +1125,11 @@ interface StorageConfig {
|
|
|
1077
1125
|
cache?: StorageType;
|
|
1078
1126
|
session?: StorageType;
|
|
1079
1127
|
}
|
|
1080
|
-
|
|
1128
|
+
/**
|
|
1129
|
+
* @deprecated Use {@link SapiConfig} instead
|
|
1130
|
+
*/
|
|
1131
|
+
type BapiConfig = SapiConfigType;
|
|
1132
|
+
type SapiConfig = SapiConfigType;
|
|
1081
1133
|
interface AppKeys {
|
|
1082
1134
|
wishlistKey: string;
|
|
1083
1135
|
basketKey: string;
|
|
@@ -1094,9 +1146,9 @@ interface PublicShopConfig extends Pick<ShopConfig, 'shopId' | 'domain' | 'local
|
|
|
1094
1146
|
idp?: IdpType;
|
|
1095
1147
|
path?: string;
|
|
1096
1148
|
}
|
|
1097
|
-
|
|
1149
|
+
type StorefrontConfig = StorefrontConfigType & {
|
|
1098
1150
|
withParams?: WithParams;
|
|
1099
|
-
}
|
|
1151
|
+
};
|
|
1100
1152
|
type ModuleOption = {
|
|
1101
1153
|
shopSelector: ShopSelectorType;
|
|
1102
1154
|
stores: ShopConfigIndexed;
|
|
@@ -1136,4 +1188,4 @@ declare module 'nitropack' {
|
|
|
1136
1188
|
}
|
|
1137
1189
|
}
|
|
1138
1190
|
|
|
1139
|
-
export type { AppKeys as A, BapiConfig as B, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, RedisConfig as R, StorageProvider as S, SessionConfig as a, StorageEntity as b, StorageConfig as c,
|
|
1191
|
+
export type { AppKeys as A, BapiConfig as B, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, RedisConfig as R, StorageProvider as S, SessionConfig as a, StorageEntity as b, StorageConfig as c, SapiConfig as d, AdditionalShopConfig as e, ShopConfig as f, ShopConfigIndexed as g, StorefrontConfig as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };
|
|
@@ -89,7 +89,7 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
89
89
|
secret?: string | string[] | undefined;
|
|
90
90
|
domain?: string | undefined;
|
|
91
91
|
}>;
|
|
92
|
-
declare const
|
|
92
|
+
declare const SapiSchema: z.ZodObject<{
|
|
93
93
|
host: z.ZodString;
|
|
94
94
|
token: z.ZodString;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -262,6 +262,16 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
262
262
|
secret?: string | string[] | undefined;
|
|
263
263
|
domain?: string | undefined;
|
|
264
264
|
}>>;
|
|
265
|
+
sapi: z.ZodOptional<z.ZodObject<{
|
|
266
|
+
host: z.ZodString;
|
|
267
|
+
token: z.ZodString;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
host: string;
|
|
270
|
+
token: string;
|
|
271
|
+
}, {
|
|
272
|
+
host: string;
|
|
273
|
+
token: string;
|
|
274
|
+
}>>;
|
|
265
275
|
bapi: z.ZodOptional<z.ZodObject<{
|
|
266
276
|
host: z.ZodString;
|
|
267
277
|
token: z.ZodString;
|
|
@@ -481,6 +491,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
481
491
|
secret?: string | string[] | undefined;
|
|
482
492
|
domain?: string | undefined;
|
|
483
493
|
} | undefined;
|
|
494
|
+
sapi?: {
|
|
495
|
+
host: string;
|
|
496
|
+
token: string;
|
|
497
|
+
} | undefined;
|
|
484
498
|
bapi?: {
|
|
485
499
|
host: string;
|
|
486
500
|
token: string;
|
|
@@ -562,6 +576,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
562
576
|
secret?: string | string[] | undefined;
|
|
563
577
|
domain?: string | undefined;
|
|
564
578
|
} | undefined;
|
|
579
|
+
sapi?: {
|
|
580
|
+
host: string;
|
|
581
|
+
token: string;
|
|
582
|
+
} | undefined;
|
|
565
583
|
bapi?: {
|
|
566
584
|
host: string;
|
|
567
585
|
token: string;
|
|
@@ -596,7 +614,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
596
614
|
}>;
|
|
597
615
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
598
616
|
type ShopConfigType = z.infer<typeof ShopConfigSchema>;
|
|
599
|
-
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
617
|
+
declare const StorefrontConfigSchema: z.ZodIntersection<z.ZodObject<{
|
|
600
618
|
session: z.ZodOptional<z.ZodObject<{
|
|
601
619
|
/**
|
|
602
620
|
* The sameSite policy to use for the session cookie
|
|
@@ -632,16 +650,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
632
650
|
secret?: string | string[] | undefined;
|
|
633
651
|
domain?: string | undefined;
|
|
634
652
|
}>>;
|
|
635
|
-
bapi: z.ZodObject<{
|
|
636
|
-
host: z.ZodString;
|
|
637
|
-
token: z.ZodString;
|
|
638
|
-
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
host: string;
|
|
640
|
-
token: string;
|
|
641
|
-
}, {
|
|
642
|
-
host: string;
|
|
643
|
-
token: string;
|
|
644
|
-
}>;
|
|
645
653
|
storage: z.ZodOptional<z.ZodObject<{
|
|
646
654
|
session: z.ZodOptional<z.ZodObject<{
|
|
647
655
|
driver: z.ZodEnum<["azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http", ...("azureAppConfiguration" | "azureCosmos" | "azureKeyVault" | "azureStorageBlob" | "azureStorageTable" | "cloudflareKVBinding" | "cloudflareKVHTTP" | "cloudflareR2Binding" | "fs" | "fsLite" | "github" | "http" | "indexedb" | "localStorage" | "lruCache" | "memory" | "mongodb" | "netlifyBlobs" | "overlay" | "planetscale" | "redis" | "sessionStorage" | "vercelKV" | "cloudflare-kv-binding" | "cloudflare-kv-http")[]]>;
|
|
@@ -872,10 +880,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
872
880
|
basketKey: string;
|
|
873
881
|
hashAlgorithm: string;
|
|
874
882
|
};
|
|
875
|
-
bapi: {
|
|
876
|
-
host: string;
|
|
877
|
-
token: string;
|
|
878
|
-
};
|
|
879
883
|
oauth: {
|
|
880
884
|
apiHost: string;
|
|
881
885
|
clientId: string | number;
|
|
@@ -947,10 +951,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
947
951
|
basketKey: string;
|
|
948
952
|
hashAlgorithm: string;
|
|
949
953
|
};
|
|
950
|
-
bapi: {
|
|
951
|
-
host: string;
|
|
952
|
-
token: string;
|
|
953
|
-
};
|
|
954
954
|
oauth: {
|
|
955
955
|
apiHost: string;
|
|
956
956
|
clientId: string | number;
|
|
@@ -1016,7 +1016,55 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
1016
1016
|
} | undefined;
|
|
1017
1017
|
} | undefined;
|
|
1018
1018
|
publicShopData?: string[] | undefined;
|
|
1019
|
-
}
|
|
1019
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
1020
|
+
sapi: z.ZodObject<{
|
|
1021
|
+
host: z.ZodString;
|
|
1022
|
+
token: z.ZodString;
|
|
1023
|
+
}, "strip", z.ZodTypeAny, {
|
|
1024
|
+
host: string;
|
|
1025
|
+
token: string;
|
|
1026
|
+
}, {
|
|
1027
|
+
host: string;
|
|
1028
|
+
token: string;
|
|
1029
|
+
}>;
|
|
1030
|
+
bapi: z.ZodUndefined;
|
|
1031
|
+
}, "strip", z.ZodTypeAny, {
|
|
1032
|
+
sapi: {
|
|
1033
|
+
host: string;
|
|
1034
|
+
token: string;
|
|
1035
|
+
};
|
|
1036
|
+
bapi?: undefined;
|
|
1037
|
+
}, {
|
|
1038
|
+
sapi: {
|
|
1039
|
+
host: string;
|
|
1040
|
+
token: string;
|
|
1041
|
+
};
|
|
1042
|
+
bapi?: undefined;
|
|
1043
|
+
}>, z.ZodObject<{
|
|
1044
|
+
bapi: z.ZodObject<{
|
|
1045
|
+
host: z.ZodString;
|
|
1046
|
+
token: z.ZodString;
|
|
1047
|
+
}, "strip", z.ZodTypeAny, {
|
|
1048
|
+
host: string;
|
|
1049
|
+
token: string;
|
|
1050
|
+
}, {
|
|
1051
|
+
host: string;
|
|
1052
|
+
token: string;
|
|
1053
|
+
}>;
|
|
1054
|
+
sapi: z.ZodUndefined;
|
|
1055
|
+
}, "strip", z.ZodTypeAny, {
|
|
1056
|
+
bapi: {
|
|
1057
|
+
host: string;
|
|
1058
|
+
token: string;
|
|
1059
|
+
};
|
|
1060
|
+
sapi?: undefined;
|
|
1061
|
+
}, {
|
|
1062
|
+
bapi: {
|
|
1063
|
+
host: string;
|
|
1064
|
+
token: string;
|
|
1065
|
+
};
|
|
1066
|
+
sapi?: undefined;
|
|
1067
|
+
}>]>>;
|
|
1020
1068
|
declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
1021
1069
|
log: z.ZodObject<{
|
|
1022
1070
|
name: z.ZodString;
|
|
@@ -1042,7 +1090,7 @@ declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
|
1042
1090
|
type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
|
|
1043
1091
|
type SessionType = z.infer<typeof SessionSchema>;
|
|
1044
1092
|
type StorageType = z.infer<typeof StorageSchema>;
|
|
1045
|
-
type
|
|
1093
|
+
type SapiConfigType = z.infer<typeof SapiSchema>;
|
|
1046
1094
|
type StorefrontConfigType = z.infer<typeof StorefrontConfigSchema>;
|
|
1047
1095
|
type ShopSelectorType = z.infer<typeof ShopSelectorSchema>;
|
|
1048
1096
|
type RedirectType = z.infer<typeof RedirectsSchema>;
|
|
@@ -1077,7 +1125,11 @@ interface StorageConfig {
|
|
|
1077
1125
|
cache?: StorageType;
|
|
1078
1126
|
session?: StorageType;
|
|
1079
1127
|
}
|
|
1080
|
-
|
|
1128
|
+
/**
|
|
1129
|
+
* @deprecated Use {@link SapiConfig} instead
|
|
1130
|
+
*/
|
|
1131
|
+
type BapiConfig = SapiConfigType;
|
|
1132
|
+
type SapiConfig = SapiConfigType;
|
|
1081
1133
|
interface AppKeys {
|
|
1082
1134
|
wishlistKey: string;
|
|
1083
1135
|
basketKey: string;
|
|
@@ -1094,9 +1146,9 @@ interface PublicShopConfig extends Pick<ShopConfig, 'shopId' | 'domain' | 'local
|
|
|
1094
1146
|
idp?: IdpType;
|
|
1095
1147
|
path?: string;
|
|
1096
1148
|
}
|
|
1097
|
-
|
|
1149
|
+
type StorefrontConfig = StorefrontConfigType & {
|
|
1098
1150
|
withParams?: WithParams;
|
|
1099
|
-
}
|
|
1151
|
+
};
|
|
1100
1152
|
type ModuleOption = {
|
|
1101
1153
|
shopSelector: ShopSelectorType;
|
|
1102
1154
|
stores: ShopConfigIndexed;
|
|
@@ -1136,4 +1188,4 @@ declare module 'nitropack' {
|
|
|
1136
1188
|
}
|
|
1137
1189
|
}
|
|
1138
1190
|
|
|
1139
|
-
export type { AppKeys as A, BapiConfig as B, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, RedisConfig as R, StorageProvider as S, SessionConfig as a, StorageEntity as b, StorageConfig as c,
|
|
1191
|
+
export type { AppKeys as A, BapiConfig as B, CheckoutShopConfig as C, ModuleBaseOptions as M, PublicShopConfig as P, RedisConfig as R, StorageProvider as S, SessionConfig as a, StorageEntity as b, StorageConfig as c, SapiConfig as d, AdditionalShopConfig as e, ShopConfig as f, ShopConfigIndexed as g, StorefrontConfig as h, CheckoutEvent as i, ModulePublicRuntimeConfig as j };
|
package/dist/types.d.mts
CHANGED
|
@@ -11,4 +11,4 @@ declare module 'nuxt/schema' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
export type { AdditionalShopConfig, AppKeys, BapiConfig, CheckoutEvent, CheckoutShopConfig, ModulePublicRuntimeConfig, PublicShopConfig, RedisConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module.js'
|
|
14
|
+
export type { AdditionalShopConfig, AppKeys, BapiConfig, CheckoutEvent, CheckoutShopConfig, ModulePublicRuntimeConfig, PublicShopConfig, RedisConfig, SapiConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ declare module 'nuxt/schema' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
export type { AdditionalShopConfig, AppKeys, BapiConfig, CheckoutEvent, CheckoutShopConfig, ModulePublicRuntimeConfig, PublicShopConfig, RedisConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module'
|
|
14
|
+
export type { AdditionalShopConfig, AppKeys, BapiConfig, CheckoutEvent, CheckoutShopConfig, ModulePublicRuntimeConfig, PublicShopConfig, RedisConfig, SapiConfig, SessionConfig, ShopConfig, ShopConfigIndexed, StorageConfig, StorageEntity, StorageProvider, StorefrontConfig } from './module'
|
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.83.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.12.2",
|
|
61
61
|
"@opentelemetry/api": "^1.9.0",
|
|
62
62
|
"@scayle/h3-session": "^0.4.0",
|
|
63
|
-
"@scayle/storefront-core": "^7.
|
|
63
|
+
"@scayle/storefront-core": "^7.62.0",
|
|
64
64
|
"@scayle/unstorage-compression-driver": "^0.1.3",
|
|
65
65
|
"@vueuse/core": "^10.11.0",
|
|
66
66
|
"consola": "^3.2.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@nuxt/test-utils": "3.13.1",
|
|
87
87
|
"@scayle/eslint-config-storefront": "4.2.0",
|
|
88
88
|
"@scayle/eslint-plugin-vue-composable": "0.2.0",
|
|
89
|
-
"@types/node": "20.14.
|
|
89
|
+
"@types/node": "20.14.12",
|
|
90
90
|
"dprint": "0.47.2",
|
|
91
91
|
"eslint": "9.7.0",
|
|
92
92
|
"eslint-formatter-gitlab": "5.1.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"nuxt": "3.12.4",
|
|
98
98
|
"publint": "0.2.9",
|
|
99
99
|
"vitest": "2.0.4",
|
|
100
|
-
"vue-tsc": "2.0.
|
|
100
|
+
"vue-tsc": "2.0.29"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"h3": "^1.10.0",
|