@scayle/storefront-nuxt 7.82.0 → 7.82.2
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 +45 -27
- 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/useBasket.d.ts +6 -8
- package/dist/runtime/composables/storefront/useBasket.mjs +7 -5
- 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/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 +12 -12
|
@@ -85,7 +85,7 @@ declare const SessionSchema: z.ZodObject<{
|
|
|
85
85
|
cookieName?: string | undefined;
|
|
86
86
|
secret?: string | string[] | undefined;
|
|
87
87
|
}>;
|
|
88
|
-
declare const
|
|
88
|
+
declare const SapiSchema: z.ZodObject<{
|
|
89
89
|
host: z.ZodString;
|
|
90
90
|
token: z.ZodString;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -258,6 +258,16 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
258
258
|
cookieName?: string | undefined;
|
|
259
259
|
secret?: string | string[] | undefined;
|
|
260
260
|
}>>;
|
|
261
|
+
sapi: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
host: z.ZodString;
|
|
263
|
+
token: z.ZodString;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
host: string;
|
|
266
|
+
token: string;
|
|
267
|
+
}, {
|
|
268
|
+
host: string;
|
|
269
|
+
token: string;
|
|
270
|
+
}>>;
|
|
261
271
|
bapi: z.ZodOptional<z.ZodObject<{
|
|
262
272
|
host: z.ZodString;
|
|
263
273
|
token: z.ZodString;
|
|
@@ -477,6 +487,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
477
487
|
cookieName?: string | undefined;
|
|
478
488
|
secret?: string | string[] | undefined;
|
|
479
489
|
} | undefined;
|
|
490
|
+
sapi?: {
|
|
491
|
+
host: string;
|
|
492
|
+
token: string;
|
|
493
|
+
} | undefined;
|
|
480
494
|
bapi?: {
|
|
481
495
|
host: string;
|
|
482
496
|
token: string;
|
|
@@ -558,6 +572,10 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
558
572
|
cookieName?: string | undefined;
|
|
559
573
|
secret?: string | string[] | undefined;
|
|
560
574
|
} | undefined;
|
|
575
|
+
sapi?: {
|
|
576
|
+
host: string;
|
|
577
|
+
token: string;
|
|
578
|
+
} | undefined;
|
|
561
579
|
bapi?: {
|
|
562
580
|
host: string;
|
|
563
581
|
token: string;
|
|
@@ -592,7 +610,7 @@ declare const ShopConfigSchema: z.ZodObject<{
|
|
|
592
610
|
}>;
|
|
593
611
|
declare const ShopSelectorSchema: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
594
612
|
type ShopConfigType = z.infer<typeof ShopConfigSchema>;
|
|
595
|
-
declare const StorefrontConfigSchema: z.ZodObject<{
|
|
613
|
+
declare const StorefrontConfigSchema: z.ZodIntersection<z.ZodObject<{
|
|
596
614
|
session: z.ZodOptional<z.ZodObject<{
|
|
597
615
|
/**
|
|
598
616
|
* The sameSite policy to use for the session cookie
|
|
@@ -628,16 +646,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
628
646
|
cookieName?: string | undefined;
|
|
629
647
|
secret?: string | string[] | undefined;
|
|
630
648
|
}>>;
|
|
631
|
-
bapi: z.ZodObject<{
|
|
632
|
-
host: z.ZodString;
|
|
633
|
-
token: z.ZodString;
|
|
634
|
-
}, "strip", z.ZodTypeAny, {
|
|
635
|
-
host: string;
|
|
636
|
-
token: string;
|
|
637
|
-
}, {
|
|
638
|
-
host: string;
|
|
639
|
-
token: string;
|
|
640
|
-
}>;
|
|
641
649
|
storage: z.ZodOptional<z.ZodObject<{
|
|
642
650
|
session: z.ZodOptional<z.ZodObject<{
|
|
643
651
|
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")[]]>;
|
|
@@ -873,10 +881,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
873
881
|
basketKey: string;
|
|
874
882
|
hashAlgorithm: string;
|
|
875
883
|
};
|
|
876
|
-
bapi: {
|
|
877
|
-
host: string;
|
|
878
|
-
token: string;
|
|
879
|
-
};
|
|
880
884
|
idp?: {
|
|
881
885
|
enabled: boolean;
|
|
882
886
|
idpKeys: string[];
|
|
@@ -948,10 +952,6 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
948
952
|
basketKey: string;
|
|
949
953
|
hashAlgorithm: string;
|
|
950
954
|
};
|
|
951
|
-
bapi: {
|
|
952
|
-
host: string;
|
|
953
|
-
token: string;
|
|
954
|
-
};
|
|
955
955
|
idp?: {
|
|
956
956
|
enabled: boolean;
|
|
957
957
|
idpKeys: string[];
|
|
@@ -1012,7 +1012,55 @@ declare const StorefrontConfigSchema: z.ZodObject<{
|
|
|
1012
1012
|
} | undefined;
|
|
1013
1013
|
} | undefined;
|
|
1014
1014
|
publicShopData?: string[] | undefined;
|
|
1015
|
-
}
|
|
1015
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
1016
|
+
sapi: z.ZodObject<{
|
|
1017
|
+
host: z.ZodString;
|
|
1018
|
+
token: z.ZodString;
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
host: string;
|
|
1021
|
+
token: string;
|
|
1022
|
+
}, {
|
|
1023
|
+
host: string;
|
|
1024
|
+
token: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
bapi: z.ZodUndefined;
|
|
1027
|
+
}, "strip", z.ZodTypeAny, {
|
|
1028
|
+
sapi: {
|
|
1029
|
+
host: string;
|
|
1030
|
+
token: string;
|
|
1031
|
+
};
|
|
1032
|
+
bapi?: undefined;
|
|
1033
|
+
}, {
|
|
1034
|
+
sapi: {
|
|
1035
|
+
host: string;
|
|
1036
|
+
token: string;
|
|
1037
|
+
};
|
|
1038
|
+
bapi?: undefined;
|
|
1039
|
+
}>, z.ZodObject<{
|
|
1040
|
+
bapi: z.ZodObject<{
|
|
1041
|
+
host: z.ZodString;
|
|
1042
|
+
token: z.ZodString;
|
|
1043
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
|
+
host: string;
|
|
1045
|
+
token: string;
|
|
1046
|
+
}, {
|
|
1047
|
+
host: string;
|
|
1048
|
+
token: string;
|
|
1049
|
+
}>;
|
|
1050
|
+
sapi: z.ZodUndefined;
|
|
1051
|
+
}, "strip", z.ZodTypeAny, {
|
|
1052
|
+
bapi: {
|
|
1053
|
+
host: string;
|
|
1054
|
+
token: string;
|
|
1055
|
+
};
|
|
1056
|
+
sapi?: undefined;
|
|
1057
|
+
}, {
|
|
1058
|
+
bapi: {
|
|
1059
|
+
host: string;
|
|
1060
|
+
token: string;
|
|
1061
|
+
};
|
|
1062
|
+
sapi?: undefined;
|
|
1063
|
+
}>]>>;
|
|
1016
1064
|
declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
1017
1065
|
log: z.ZodObject<{
|
|
1018
1066
|
name: z.ZodString;
|
|
@@ -1036,487 +1084,67 @@ declare const PublicRuntimeConfigSchema: z.ZodObject<{
|
|
|
1036
1084
|
};
|
|
1037
1085
|
}>;
|
|
1038
1086
|
export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
1039
|
-
storefront: z.
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
* The default maxAge (in seconds) set on the session cookie and default TTL for session store
|
|
1047
|
-
*/
|
|
1048
|
-
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
1049
|
-
/**
|
|
1050
|
-
* The name used for the session cookie
|
|
1051
|
-
*/
|
|
1052
|
-
cookieName: z.ZodOptional<z.ZodString>;
|
|
1053
|
-
/**
|
|
1054
|
-
* The secret used for signing session cookies. If an array is passed, the last
|
|
1055
|
-
* value is used for signing new cookies, but all values are used to verify cookies.
|
|
1056
|
-
*/
|
|
1057
|
-
secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1058
|
-
/**
|
|
1059
|
-
* Controls the domain option on the session cookie
|
|
1060
|
-
*/
|
|
1061
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
1062
|
-
}, "strip", z.ZodTypeAny, {
|
|
1063
|
-
domain?: string | undefined;
|
|
1064
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1065
|
-
maxAge?: number | undefined;
|
|
1066
|
-
cookieName?: string | undefined;
|
|
1067
|
-
secret?: string | string[] | undefined;
|
|
1068
|
-
}, {
|
|
1069
|
-
domain?: string | undefined;
|
|
1070
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1071
|
-
maxAge?: number | undefined;
|
|
1072
|
-
cookieName?: string | undefined;
|
|
1073
|
-
secret?: string | string[] | undefined;
|
|
1074
|
-
}>>;
|
|
1075
|
-
bapi: z.ZodObject<{
|
|
1076
|
-
host: z.ZodString;
|
|
1077
|
-
token: z.ZodString;
|
|
1078
|
-
}, "strip", z.ZodTypeAny, {
|
|
1079
|
-
host: string;
|
|
1080
|
-
token: string;
|
|
1081
|
-
}, {
|
|
1082
|
-
host: string;
|
|
1083
|
-
token: string;
|
|
1084
|
-
}>;
|
|
1085
|
-
storage: z.ZodOptional<z.ZodObject<{
|
|
1086
|
-
session: z.ZodOptional<z.ZodObject<{
|
|
1087
|
-
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")[]]>;
|
|
1088
|
-
compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
|
|
1089
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1090
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1091
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1092
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
1093
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1094
|
-
password: z.ZodOptional<z.ZodString>;
|
|
1095
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
1096
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1087
|
+
storefront: z.ZodIntersection<z.ZodObject<{
|
|
1088
|
+
shopSelector: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
1089
|
+
stores: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1090
|
+
idp: z.ZodOptional<z.ZodObject<{
|
|
1091
|
+
enabled: z.ZodBoolean;
|
|
1092
|
+
idpKeys: z.ZodArray<z.ZodString, "many">;
|
|
1093
|
+
idpRedirectURL: z.ZodString;
|
|
1097
1094
|
}, "strip", z.ZodTypeAny, {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
host?: string | undefined;
|
|
1102
|
-
password?: string | undefined;
|
|
1103
|
-
token?: string | undefined;
|
|
1104
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1105
|
-
url?: string | undefined;
|
|
1106
|
-
username?: string | undefined;
|
|
1107
|
-
tls?: boolean | undefined;
|
|
1095
|
+
enabled: boolean;
|
|
1096
|
+
idpKeys: string[];
|
|
1097
|
+
idpRedirectURL: string;
|
|
1108
1098
|
}, {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
host?: string | undefined;
|
|
1113
|
-
password?: string | undefined;
|
|
1114
|
-
token?: string | undefined;
|
|
1115
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1116
|
-
url?: string | undefined;
|
|
1117
|
-
username?: string | undefined;
|
|
1118
|
-
tls?: boolean | undefined;
|
|
1099
|
+
enabled: boolean;
|
|
1100
|
+
idpKeys: string[];
|
|
1101
|
+
idpRedirectURL: string;
|
|
1119
1102
|
}>>;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
password: z.ZodOptional<z.ZodString>;
|
|
1129
|
-
tls: z.ZodOptional<z.ZodBoolean>;
|
|
1130
|
-
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1103
|
+
shopId: z.ZodNumber;
|
|
1104
|
+
path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1105
|
+
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
locale: z.ZodString;
|
|
1108
|
+
auth: z.ZodObject<{
|
|
1109
|
+
resetPasswordUrl: z.ZodString;
|
|
1131
1110
|
}, "strip", z.ZodTypeAny, {
|
|
1132
|
-
|
|
1133
|
-
ttl?: number | undefined;
|
|
1134
|
-
port?: number | undefined;
|
|
1135
|
-
host?: string | undefined;
|
|
1136
|
-
password?: string | undefined;
|
|
1137
|
-
token?: string | undefined;
|
|
1138
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1139
|
-
url?: string | undefined;
|
|
1140
|
-
username?: string | undefined;
|
|
1141
|
-
tls?: boolean | undefined;
|
|
1111
|
+
resetPasswordUrl: string;
|
|
1142
1112
|
}, {
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
token
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
} | undefined;
|
|
1179
|
-
}, {
|
|
1180
|
-
session?: {
|
|
1181
|
-
driver: "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";
|
|
1182
|
-
ttl?: number | undefined;
|
|
1183
|
-
port?: number | undefined;
|
|
1184
|
-
host?: string | undefined;
|
|
1185
|
-
password?: string | undefined;
|
|
1186
|
-
token?: string | undefined;
|
|
1187
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1188
|
-
url?: string | undefined;
|
|
1189
|
-
username?: string | undefined;
|
|
1190
|
-
tls?: boolean | undefined;
|
|
1191
|
-
} | undefined;
|
|
1192
|
-
cache?: {
|
|
1193
|
-
driver: "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";
|
|
1194
|
-
ttl?: number | undefined;
|
|
1195
|
-
port?: number | undefined;
|
|
1196
|
-
host?: string | undefined;
|
|
1197
|
-
password?: string | undefined;
|
|
1198
|
-
token?: string | undefined;
|
|
1199
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1200
|
-
url?: string | undefined;
|
|
1201
|
-
username?: string | undefined;
|
|
1202
|
-
tls?: boolean | undefined;
|
|
1203
|
-
} | undefined;
|
|
1204
|
-
}>>;
|
|
1205
|
-
oauth: z.ZodObject<{
|
|
1206
|
-
apiHost: z.ZodString;
|
|
1207
|
-
clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1208
|
-
clientSecret: z.ZodString;
|
|
1209
|
-
}, "strip", z.ZodTypeAny, {
|
|
1210
|
-
apiHost: string;
|
|
1211
|
-
clientId: string | number;
|
|
1212
|
-
clientSecret: string;
|
|
1213
|
-
}, {
|
|
1214
|
-
apiHost: string;
|
|
1215
|
-
clientId: string | number;
|
|
1216
|
-
clientSecret: string;
|
|
1217
|
-
}>;
|
|
1218
|
-
appKeys: z.ZodObject<{
|
|
1219
|
-
wishlistKey: z.ZodString;
|
|
1220
|
-
basketKey: z.ZodString;
|
|
1221
|
-
hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
|
|
1222
|
-
}, "strip", z.ZodTypeAny, {
|
|
1223
|
-
wishlistKey: string;
|
|
1224
|
-
basketKey: string;
|
|
1225
|
-
hashAlgorithm: string;
|
|
1226
|
-
}, {
|
|
1227
|
-
wishlistKey: string;
|
|
1228
|
-
basketKey: string;
|
|
1229
|
-
hashAlgorithm: string;
|
|
1230
|
-
}>;
|
|
1231
|
-
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
1232
|
-
cache: z.ZodOptional<z.ZodObject<{
|
|
1233
|
-
auth: z.ZodObject<{
|
|
1234
|
-
username: z.ZodString;
|
|
1235
|
-
password: z.ZodString;
|
|
1236
|
-
}, "strip", z.ZodTypeAny, {
|
|
1237
|
-
password: string;
|
|
1238
|
-
username: string;
|
|
1239
|
-
}, {
|
|
1240
|
-
password: string;
|
|
1241
|
-
username: string;
|
|
1242
|
-
}>;
|
|
1243
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1244
|
-
}, "strip", z.ZodTypeAny, {
|
|
1245
|
-
auth: {
|
|
1246
|
-
password: string;
|
|
1247
|
-
username: string;
|
|
1248
|
-
};
|
|
1249
|
-
enabled?: boolean | undefined;
|
|
1250
|
-
}, {
|
|
1251
|
-
auth: {
|
|
1252
|
-
password: string;
|
|
1253
|
-
username: string;
|
|
1254
|
-
};
|
|
1255
|
-
enabled?: boolean | undefined;
|
|
1256
|
-
}>>;
|
|
1257
|
-
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1258
|
-
idp: z.ZodOptional<z.ZodObject<{
|
|
1259
|
-
enabled: z.ZodBoolean;
|
|
1260
|
-
idpKeys: z.ZodArray<z.ZodString, "many">;
|
|
1261
|
-
idpRedirectURL: z.ZodString;
|
|
1262
|
-
}, "strip", z.ZodTypeAny, {
|
|
1263
|
-
enabled: boolean;
|
|
1264
|
-
idpKeys: string[];
|
|
1265
|
-
idpRedirectURL: string;
|
|
1266
|
-
}, {
|
|
1267
|
-
enabled: boolean;
|
|
1268
|
-
idpKeys: string[];
|
|
1269
|
-
idpRedirectURL: string;
|
|
1270
|
-
}>>;
|
|
1271
|
-
/** @deprecated Global storefront.redis config is being removed in favor of `storefront.storage` config */
|
|
1272
|
-
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1273
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1275
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
1276
|
-
sslTransit: z.ZodOptional<z.ZodBoolean>;
|
|
1277
|
-
}, "strip", z.ZodTypeAny, {
|
|
1278
|
-
port?: number | undefined;
|
|
1279
|
-
host?: string | undefined;
|
|
1280
|
-
prefix?: string | undefined;
|
|
1281
|
-
sslTransit?: boolean | undefined;
|
|
1282
|
-
}, {
|
|
1283
|
-
port?: number | undefined;
|
|
1284
|
-
host?: string | undefined;
|
|
1285
|
-
prefix?: string | undefined;
|
|
1286
|
-
sslTransit?: boolean | undefined;
|
|
1287
|
-
}>, z.ZodObject<{
|
|
1288
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
1289
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1290
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
1291
|
-
sslTransit: z.ZodOptional<z.ZodBoolean>;
|
|
1292
|
-
user: z.ZodString;
|
|
1293
|
-
password: z.ZodString;
|
|
1294
|
-
}, "strip", z.ZodTypeAny, {
|
|
1295
|
-
user: string;
|
|
1296
|
-
password: string;
|
|
1297
|
-
port?: number | undefined;
|
|
1298
|
-
host?: string | undefined;
|
|
1299
|
-
prefix?: string | undefined;
|
|
1300
|
-
sslTransit?: boolean | undefined;
|
|
1301
|
-
}, {
|
|
1302
|
-
user: string;
|
|
1303
|
-
password: string;
|
|
1304
|
-
port?: number | undefined;
|
|
1305
|
-
host?: string | undefined;
|
|
1306
|
-
prefix?: string | undefined;
|
|
1307
|
-
sslTransit?: boolean | undefined;
|
|
1308
|
-
}>]>>;
|
|
1309
|
-
}, "strip", z.ZodTypeAny, {
|
|
1310
|
-
oauth: {
|
|
1311
|
-
apiHost: string;
|
|
1312
|
-
clientId: string | number;
|
|
1313
|
-
clientSecret: string;
|
|
1314
|
-
};
|
|
1315
|
-
appKeys: {
|
|
1316
|
-
wishlistKey: string;
|
|
1317
|
-
basketKey: string;
|
|
1318
|
-
hashAlgorithm: string;
|
|
1319
|
-
};
|
|
1320
|
-
bapi: {
|
|
1321
|
-
host: string;
|
|
1322
|
-
token: string;
|
|
1323
|
-
};
|
|
1324
|
-
idp?: {
|
|
1325
|
-
enabled: boolean;
|
|
1326
|
-
idpKeys: string[];
|
|
1327
|
-
idpRedirectURL: string;
|
|
1328
|
-
} | undefined;
|
|
1329
|
-
redis?: {
|
|
1330
|
-
port?: number | undefined;
|
|
1331
|
-
host?: string | undefined;
|
|
1332
|
-
prefix?: string | undefined;
|
|
1333
|
-
sslTransit?: boolean | undefined;
|
|
1334
|
-
} | {
|
|
1335
|
-
user: string;
|
|
1336
|
-
password: string;
|
|
1337
|
-
port?: number | undefined;
|
|
1338
|
-
host?: string | undefined;
|
|
1339
|
-
prefix?: string | undefined;
|
|
1340
|
-
sslTransit?: boolean | undefined;
|
|
1341
|
-
} | undefined;
|
|
1342
|
-
apiBasePath?: string | undefined;
|
|
1343
|
-
session?: {
|
|
1344
|
-
domain?: string | undefined;
|
|
1345
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1346
|
-
maxAge?: number | undefined;
|
|
1347
|
-
cookieName?: string | undefined;
|
|
1348
|
-
secret?: string | string[] | undefined;
|
|
1349
|
-
} | undefined;
|
|
1350
|
-
cache?: {
|
|
1351
|
-
auth: {
|
|
1352
|
-
password: string;
|
|
1353
|
-
username: string;
|
|
1354
|
-
};
|
|
1355
|
-
enabled?: boolean | undefined;
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
storage?: {
|
|
1358
|
-
session?: {
|
|
1359
|
-
driver: "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";
|
|
1360
|
-
ttl?: number | undefined;
|
|
1361
|
-
port?: number | undefined;
|
|
1362
|
-
host?: string | undefined;
|
|
1363
|
-
password?: string | undefined;
|
|
1364
|
-
token?: string | undefined;
|
|
1365
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1366
|
-
url?: string | undefined;
|
|
1367
|
-
username?: string | undefined;
|
|
1368
|
-
tls?: boolean | undefined;
|
|
1369
|
-
} | undefined;
|
|
1370
|
-
cache?: {
|
|
1371
|
-
driver: "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";
|
|
1372
|
-
ttl?: number | undefined;
|
|
1373
|
-
port?: number | undefined;
|
|
1374
|
-
host?: string | undefined;
|
|
1375
|
-
password?: string | undefined;
|
|
1376
|
-
token?: string | undefined;
|
|
1377
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1378
|
-
url?: string | undefined;
|
|
1379
|
-
username?: string | undefined;
|
|
1380
|
-
tls?: boolean | undefined;
|
|
1381
|
-
} | undefined;
|
|
1382
|
-
} | undefined;
|
|
1383
|
-
publicShopData?: string[] | undefined;
|
|
1384
|
-
}, {
|
|
1385
|
-
oauth: {
|
|
1386
|
-
apiHost: string;
|
|
1387
|
-
clientId: string | number;
|
|
1388
|
-
clientSecret: string;
|
|
1389
|
-
};
|
|
1390
|
-
appKeys: {
|
|
1391
|
-
wishlistKey: string;
|
|
1392
|
-
basketKey: string;
|
|
1393
|
-
hashAlgorithm: string;
|
|
1394
|
-
};
|
|
1395
|
-
bapi: {
|
|
1396
|
-
host: string;
|
|
1397
|
-
token: string;
|
|
1398
|
-
};
|
|
1399
|
-
idp?: {
|
|
1400
|
-
enabled: boolean;
|
|
1401
|
-
idpKeys: string[];
|
|
1402
|
-
idpRedirectURL: string;
|
|
1403
|
-
} | undefined;
|
|
1404
|
-
redis?: {
|
|
1405
|
-
port?: number | undefined;
|
|
1406
|
-
host?: string | undefined;
|
|
1407
|
-
prefix?: string | undefined;
|
|
1408
|
-
sslTransit?: boolean | undefined;
|
|
1409
|
-
} | {
|
|
1410
|
-
user: string;
|
|
1411
|
-
password: string;
|
|
1412
|
-
port?: number | undefined;
|
|
1413
|
-
host?: string | undefined;
|
|
1414
|
-
prefix?: string | undefined;
|
|
1415
|
-
sslTransit?: boolean | undefined;
|
|
1416
|
-
} | undefined;
|
|
1417
|
-
apiBasePath?: string | undefined;
|
|
1418
|
-
session?: {
|
|
1419
|
-
domain?: string | undefined;
|
|
1420
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1421
|
-
maxAge?: number | undefined;
|
|
1422
|
-
cookieName?: string | undefined;
|
|
1423
|
-
secret?: string | string[] | undefined;
|
|
1424
|
-
} | undefined;
|
|
1425
|
-
cache?: {
|
|
1426
|
-
auth: {
|
|
1427
|
-
password: string;
|
|
1428
|
-
username: string;
|
|
1429
|
-
};
|
|
1430
|
-
enabled?: boolean | undefined;
|
|
1431
|
-
} | undefined;
|
|
1432
|
-
storage?: {
|
|
1433
|
-
session?: {
|
|
1434
|
-
driver: "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";
|
|
1435
|
-
ttl?: number | undefined;
|
|
1436
|
-
port?: number | undefined;
|
|
1437
|
-
host?: string | undefined;
|
|
1438
|
-
password?: string | undefined;
|
|
1439
|
-
token?: string | undefined;
|
|
1440
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1441
|
-
url?: string | undefined;
|
|
1442
|
-
username?: string | undefined;
|
|
1443
|
-
tls?: boolean | undefined;
|
|
1444
|
-
} | undefined;
|
|
1445
|
-
cache?: {
|
|
1446
|
-
driver: "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";
|
|
1447
|
-
ttl?: number | undefined;
|
|
1448
|
-
port?: number | undefined;
|
|
1449
|
-
host?: string | undefined;
|
|
1450
|
-
password?: string | undefined;
|
|
1451
|
-
token?: string | undefined;
|
|
1452
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1453
|
-
url?: string | undefined;
|
|
1454
|
-
username?: string | undefined;
|
|
1455
|
-
tls?: boolean | undefined;
|
|
1456
|
-
} | undefined;
|
|
1457
|
-
} | undefined;
|
|
1458
|
-
publicShopData?: string[] | undefined;
|
|
1459
|
-
}>, z.ZodObject<{
|
|
1460
|
-
shopSelector: z.ZodEnum<["path", "domain", "path_or_default"]>;
|
|
1461
|
-
stores: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1462
|
-
idp: z.ZodOptional<z.ZodObject<{
|
|
1463
|
-
enabled: z.ZodBoolean;
|
|
1464
|
-
idpKeys: z.ZodArray<z.ZodString, "many">;
|
|
1465
|
-
idpRedirectURL: z.ZodString;
|
|
1466
|
-
}, "strip", z.ZodTypeAny, {
|
|
1467
|
-
enabled: boolean;
|
|
1468
|
-
idpKeys: string[];
|
|
1469
|
-
idpRedirectURL: string;
|
|
1470
|
-
}, {
|
|
1471
|
-
enabled: boolean;
|
|
1472
|
-
idpKeys: string[];
|
|
1473
|
-
idpRedirectURL: string;
|
|
1474
|
-
}>>;
|
|
1475
|
-
shopId: z.ZodNumber;
|
|
1476
|
-
path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1477
|
-
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
1479
|
-
locale: z.ZodString;
|
|
1480
|
-
auth: z.ZodObject<{
|
|
1481
|
-
resetPasswordUrl: z.ZodString;
|
|
1482
|
-
}, "strip", z.ZodTypeAny, {
|
|
1483
|
-
resetPasswordUrl: string;
|
|
1484
|
-
}, {
|
|
1485
|
-
resetPasswordUrl: string;
|
|
1486
|
-
}>;
|
|
1487
|
-
storeCampaignKeyword: z.ZodOptional<z.ZodString>;
|
|
1488
|
-
currency: z.ZodString;
|
|
1489
|
-
checkout: z.ZodObject<{
|
|
1490
|
-
token: z.ZodString;
|
|
1491
|
-
secret: z.ZodString;
|
|
1492
|
-
host: z.ZodString;
|
|
1493
|
-
user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1494
|
-
cbdExpiration: z.ZodOptional<z.ZodNumber>;
|
|
1495
|
-
}, "strip", z.ZodTypeAny, {
|
|
1496
|
-
user: string | number;
|
|
1497
|
-
host: string;
|
|
1498
|
-
secret: string;
|
|
1499
|
-
token: string;
|
|
1500
|
-
cbdExpiration?: number | undefined;
|
|
1501
|
-
}, {
|
|
1502
|
-
user: string | number;
|
|
1503
|
-
host: string;
|
|
1504
|
-
secret: string;
|
|
1505
|
-
token: string;
|
|
1506
|
-
cbdExpiration?: number | undefined;
|
|
1507
|
-
}>;
|
|
1508
|
-
appKeys: z.ZodOptional<z.ZodObject<{
|
|
1509
|
-
wishlistKey: z.ZodString;
|
|
1510
|
-
basketKey: z.ZodString;
|
|
1511
|
-
hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
|
|
1512
|
-
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
wishlistKey: string;
|
|
1514
|
-
basketKey: string;
|
|
1515
|
-
hashAlgorithm: string;
|
|
1516
|
-
}, {
|
|
1517
|
-
wishlistKey: string;
|
|
1518
|
-
basketKey: string;
|
|
1519
|
-
hashAlgorithm: string;
|
|
1113
|
+
resetPasswordUrl: string;
|
|
1114
|
+
}>;
|
|
1115
|
+
storeCampaignKeyword: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
currency: z.ZodString;
|
|
1117
|
+
checkout: z.ZodObject<{
|
|
1118
|
+
token: z.ZodString;
|
|
1119
|
+
secret: z.ZodString;
|
|
1120
|
+
host: z.ZodString;
|
|
1121
|
+
user: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1122
|
+
cbdExpiration: z.ZodOptional<z.ZodNumber>;
|
|
1123
|
+
}, "strip", z.ZodTypeAny, {
|
|
1124
|
+
user: string | number;
|
|
1125
|
+
host: string;
|
|
1126
|
+
secret: string;
|
|
1127
|
+
token: string;
|
|
1128
|
+
cbdExpiration?: number | undefined;
|
|
1129
|
+
}, {
|
|
1130
|
+
user: string | number;
|
|
1131
|
+
host: string;
|
|
1132
|
+
secret: string;
|
|
1133
|
+
token: string;
|
|
1134
|
+
cbdExpiration?: number | undefined;
|
|
1135
|
+
}>;
|
|
1136
|
+
appKeys: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
wishlistKey: z.ZodString;
|
|
1138
|
+
basketKey: z.ZodString;
|
|
1139
|
+
hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
|
|
1140
|
+
}, "strip", z.ZodTypeAny, {
|
|
1141
|
+
wishlistKey: string;
|
|
1142
|
+
basketKey: string;
|
|
1143
|
+
hashAlgorithm: string;
|
|
1144
|
+
}, {
|
|
1145
|
+
wishlistKey: string;
|
|
1146
|
+
basketKey: string;
|
|
1147
|
+
hashAlgorithm: string;
|
|
1520
1148
|
}>>;
|
|
1521
1149
|
currencyFractionDigits: z.ZodOptional<z.ZodNumber>;
|
|
1522
1150
|
isEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1555,6 +1183,16 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1555
1183
|
cookieName?: string | undefined;
|
|
1556
1184
|
secret?: string | string[] | undefined;
|
|
1557
1185
|
}>>;
|
|
1186
|
+
sapi: z.ZodOptional<z.ZodObject<{
|
|
1187
|
+
host: z.ZodString;
|
|
1188
|
+
token: z.ZodString;
|
|
1189
|
+
}, "strip", z.ZodTypeAny, {
|
|
1190
|
+
host: string;
|
|
1191
|
+
token: string;
|
|
1192
|
+
}, {
|
|
1193
|
+
host: string;
|
|
1194
|
+
token: string;
|
|
1195
|
+
}>>;
|
|
1558
1196
|
bapi: z.ZodOptional<z.ZodObject<{
|
|
1559
1197
|
host: z.ZodString;
|
|
1560
1198
|
token: z.ZodString;
|
|
@@ -1774,6 +1412,193 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1774
1412
|
cookieName?: string | undefined;
|
|
1775
1413
|
secret?: string | string[] | undefined;
|
|
1776
1414
|
} | undefined;
|
|
1415
|
+
sapi?: {
|
|
1416
|
+
host: string;
|
|
1417
|
+
token: string;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
bapi?: {
|
|
1420
|
+
host: string;
|
|
1421
|
+
token: string;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
storage?: {
|
|
1424
|
+
session?: {
|
|
1425
|
+
driver: "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";
|
|
1426
|
+
ttl?: number | undefined;
|
|
1427
|
+
port?: number | undefined;
|
|
1428
|
+
host?: string | undefined;
|
|
1429
|
+
password?: string | undefined;
|
|
1430
|
+
token?: string | undefined;
|
|
1431
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1432
|
+
url?: string | undefined;
|
|
1433
|
+
username?: string | undefined;
|
|
1434
|
+
tls?: boolean | undefined;
|
|
1435
|
+
} | undefined;
|
|
1436
|
+
cache?: {
|
|
1437
|
+
driver: "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";
|
|
1438
|
+
ttl?: number | undefined;
|
|
1439
|
+
port?: number | undefined;
|
|
1440
|
+
host?: string | undefined;
|
|
1441
|
+
password?: string | undefined;
|
|
1442
|
+
token?: string | undefined;
|
|
1443
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1444
|
+
url?: string | undefined;
|
|
1445
|
+
username?: string | undefined;
|
|
1446
|
+
tls?: boolean | undefined;
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
} | undefined;
|
|
1449
|
+
isDefault?: boolean | "" | undefined;
|
|
1450
|
+
}, {
|
|
1451
|
+
locale: string;
|
|
1452
|
+
checkout: {
|
|
1453
|
+
user: string | number;
|
|
1454
|
+
host: string;
|
|
1455
|
+
secret: string;
|
|
1456
|
+
token: string;
|
|
1457
|
+
cbdExpiration?: number | undefined;
|
|
1458
|
+
};
|
|
1459
|
+
shopId: number;
|
|
1460
|
+
auth: {
|
|
1461
|
+
resetPasswordUrl: string;
|
|
1462
|
+
};
|
|
1463
|
+
currency: string;
|
|
1464
|
+
domain?: string | undefined;
|
|
1465
|
+
storeCampaignKeyword?: string | undefined;
|
|
1466
|
+
idp?: {
|
|
1467
|
+
enabled: boolean;
|
|
1468
|
+
idpKeys: string[];
|
|
1469
|
+
idpRedirectURL: string;
|
|
1470
|
+
} | undefined;
|
|
1471
|
+
path?: string | string[] | undefined;
|
|
1472
|
+
redis?: {
|
|
1473
|
+
port?: number | undefined;
|
|
1474
|
+
host?: string | undefined;
|
|
1475
|
+
prefix?: string | undefined;
|
|
1476
|
+
sslTransit?: boolean | undefined;
|
|
1477
|
+
} | {
|
|
1478
|
+
user: string;
|
|
1479
|
+
password: string;
|
|
1480
|
+
port?: number | undefined;
|
|
1481
|
+
host?: string | undefined;
|
|
1482
|
+
prefix?: string | undefined;
|
|
1483
|
+
sslTransit?: boolean | undefined;
|
|
1484
|
+
} | undefined;
|
|
1485
|
+
apiBasePath?: string | undefined;
|
|
1486
|
+
appKeys?: {
|
|
1487
|
+
wishlistKey: string;
|
|
1488
|
+
basketKey: string;
|
|
1489
|
+
hashAlgorithm: string;
|
|
1490
|
+
} | undefined;
|
|
1491
|
+
currencyFractionDigits?: number | undefined;
|
|
1492
|
+
isEnabled?: boolean | undefined;
|
|
1493
|
+
sessionConfig?: {
|
|
1494
|
+
domain?: string | undefined;
|
|
1495
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1496
|
+
maxAge?: number | undefined;
|
|
1497
|
+
cookieName?: string | undefined;
|
|
1498
|
+
secret?: string | string[] | undefined;
|
|
1499
|
+
} | undefined;
|
|
1500
|
+
sapi?: {
|
|
1501
|
+
host: string;
|
|
1502
|
+
token: string;
|
|
1503
|
+
} | undefined;
|
|
1504
|
+
bapi?: {
|
|
1505
|
+
host: string;
|
|
1506
|
+
token: string;
|
|
1507
|
+
} | undefined;
|
|
1508
|
+
storage?: {
|
|
1509
|
+
session?: {
|
|
1510
|
+
driver: "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";
|
|
1511
|
+
ttl?: number | undefined;
|
|
1512
|
+
port?: number | undefined;
|
|
1513
|
+
host?: string | undefined;
|
|
1514
|
+
password?: string | undefined;
|
|
1515
|
+
token?: string | undefined;
|
|
1516
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1517
|
+
url?: string | undefined;
|
|
1518
|
+
username?: string | undefined;
|
|
1519
|
+
tls?: boolean | undefined;
|
|
1520
|
+
} | undefined;
|
|
1521
|
+
cache?: {
|
|
1522
|
+
driver: "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";
|
|
1523
|
+
ttl?: number | undefined;
|
|
1524
|
+
port?: number | undefined;
|
|
1525
|
+
host?: string | undefined;
|
|
1526
|
+
password?: string | undefined;
|
|
1527
|
+
token?: string | undefined;
|
|
1528
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1529
|
+
url?: string | undefined;
|
|
1530
|
+
username?: string | undefined;
|
|
1531
|
+
tls?: boolean | undefined;
|
|
1532
|
+
} | undefined;
|
|
1533
|
+
} | undefined;
|
|
1534
|
+
isDefault?: string | boolean | undefined;
|
|
1535
|
+
}>>;
|
|
1536
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
1537
|
+
enabled: z.ZodBoolean;
|
|
1538
|
+
queryParamWhitelist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1539
|
+
}, "strip", z.ZodTypeAny, {
|
|
1540
|
+
enabled: boolean;
|
|
1541
|
+
queryParamWhitelist?: string[] | undefined;
|
|
1542
|
+
}, {
|
|
1543
|
+
enabled: boolean;
|
|
1544
|
+
queryParamWhitelist?: string[] | undefined;
|
|
1545
|
+
}>>;
|
|
1546
|
+
}, "strip", z.ZodTypeAny, {
|
|
1547
|
+
shopSelector: "domain" | "path" | "path_or_default";
|
|
1548
|
+
stores: Record<string, {
|
|
1549
|
+
locale: string;
|
|
1550
|
+
checkout: {
|
|
1551
|
+
user: string | number;
|
|
1552
|
+
host: string;
|
|
1553
|
+
secret: string;
|
|
1554
|
+
token: string;
|
|
1555
|
+
cbdExpiration?: number | undefined;
|
|
1556
|
+
};
|
|
1557
|
+
shopId: number;
|
|
1558
|
+
auth: {
|
|
1559
|
+
resetPasswordUrl: string;
|
|
1560
|
+
};
|
|
1561
|
+
currency: string;
|
|
1562
|
+
domain?: string | undefined;
|
|
1563
|
+
storeCampaignKeyword?: string | undefined;
|
|
1564
|
+
idp?: {
|
|
1565
|
+
enabled: boolean;
|
|
1566
|
+
idpKeys: string[];
|
|
1567
|
+
idpRedirectURL: string;
|
|
1568
|
+
} | undefined;
|
|
1569
|
+
path?: string | string[] | undefined;
|
|
1570
|
+
redis?: {
|
|
1571
|
+
port?: number | undefined;
|
|
1572
|
+
host?: string | undefined;
|
|
1573
|
+
prefix?: string | undefined;
|
|
1574
|
+
sslTransit?: boolean | undefined;
|
|
1575
|
+
} | {
|
|
1576
|
+
user: string;
|
|
1577
|
+
password: string;
|
|
1578
|
+
port?: number | undefined;
|
|
1579
|
+
host?: string | undefined;
|
|
1580
|
+
prefix?: string | undefined;
|
|
1581
|
+
sslTransit?: boolean | undefined;
|
|
1582
|
+
} | undefined;
|
|
1583
|
+
apiBasePath?: string | undefined;
|
|
1584
|
+
appKeys?: {
|
|
1585
|
+
wishlistKey: string;
|
|
1586
|
+
basketKey: string;
|
|
1587
|
+
hashAlgorithm: string;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
currencyFractionDigits?: number | undefined;
|
|
1590
|
+
isEnabled?: boolean | undefined;
|
|
1591
|
+
sessionConfig?: {
|
|
1592
|
+
domain?: string | undefined;
|
|
1593
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1594
|
+
maxAge?: number | undefined;
|
|
1595
|
+
cookieName?: string | undefined;
|
|
1596
|
+
secret?: string | string[] | undefined;
|
|
1597
|
+
} | undefined;
|
|
1598
|
+
sapi?: {
|
|
1599
|
+
host: string;
|
|
1600
|
+
token: string;
|
|
1601
|
+
} | undefined;
|
|
1777
1602
|
bapi?: {
|
|
1778
1603
|
host: string;
|
|
1779
1604
|
token: string;
|
|
@@ -1805,7 +1630,14 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1805
1630
|
} | undefined;
|
|
1806
1631
|
} | undefined;
|
|
1807
1632
|
isDefault?: boolean | "" | undefined;
|
|
1808
|
-
}
|
|
1633
|
+
}>;
|
|
1634
|
+
redirects?: {
|
|
1635
|
+
enabled: boolean;
|
|
1636
|
+
queryParamWhitelist?: string[] | undefined;
|
|
1637
|
+
} | undefined;
|
|
1638
|
+
}, {
|
|
1639
|
+
shopSelector: "domain" | "path" | "path_or_default";
|
|
1640
|
+
stores: Record<string, {
|
|
1809
1641
|
locale: string;
|
|
1810
1642
|
checkout: {
|
|
1811
1643
|
user: string | number;
|
|
@@ -1855,6 +1687,10 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1855
1687
|
cookieName?: string | undefined;
|
|
1856
1688
|
secret?: string | string[] | undefined;
|
|
1857
1689
|
} | undefined;
|
|
1690
|
+
sapi?: {
|
|
1691
|
+
host: string;
|
|
1692
|
+
token: string;
|
|
1693
|
+
} | undefined;
|
|
1858
1694
|
bapi?: {
|
|
1859
1695
|
host: string;
|
|
1860
1696
|
token: string;
|
|
@@ -1886,234 +1722,343 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
1886
1722
|
} | undefined;
|
|
1887
1723
|
} | undefined;
|
|
1888
1724
|
isDefault?: string | boolean | undefined;
|
|
1725
|
+
}>;
|
|
1726
|
+
redirects?: {
|
|
1727
|
+
enabled: boolean;
|
|
1728
|
+
queryParamWhitelist?: string[] | undefined;
|
|
1729
|
+
} | undefined;
|
|
1730
|
+
}>, z.ZodIntersection<z.ZodObject<{
|
|
1731
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
1732
|
+
/**
|
|
1733
|
+
* The sameSite policy to use for the session cookie
|
|
1734
|
+
*/
|
|
1735
|
+
sameSite: z.ZodOptional<z.ZodEnum<["lax", "strict", "none"]>>;
|
|
1736
|
+
/**
|
|
1737
|
+
* The default maxAge (in seconds) set on the session cookie and default TTL for session store
|
|
1738
|
+
*/
|
|
1739
|
+
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
1740
|
+
/**
|
|
1741
|
+
* The name used for the session cookie
|
|
1742
|
+
*/
|
|
1743
|
+
cookieName: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
/**
|
|
1745
|
+
* The secret used for signing session cookies. If an array is passed, the last
|
|
1746
|
+
* value is used for signing new cookies, but all values are used to verify cookies.
|
|
1747
|
+
*/
|
|
1748
|
+
secret: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Controls the domain option on the session cookie
|
|
1751
|
+
*/
|
|
1752
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
domain?: string | undefined;
|
|
1755
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1756
|
+
maxAge?: number | undefined;
|
|
1757
|
+
cookieName?: string | undefined;
|
|
1758
|
+
secret?: string | string[] | undefined;
|
|
1759
|
+
}, {
|
|
1760
|
+
domain?: string | undefined;
|
|
1761
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1762
|
+
maxAge?: number | undefined;
|
|
1763
|
+
cookieName?: string | undefined;
|
|
1764
|
+
secret?: string | string[] | undefined;
|
|
1889
1765
|
}>>;
|
|
1890
|
-
|
|
1766
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
1767
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
1768
|
+
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")[]]>;
|
|
1769
|
+
compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
|
|
1770
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1771
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1772
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1773
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
1774
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1775
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
tls: z.ZodOptional<z.ZodBoolean>;
|
|
1777
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1778
|
+
}, "strip", z.ZodTypeAny, {
|
|
1779
|
+
driver: "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";
|
|
1780
|
+
ttl?: number | undefined;
|
|
1781
|
+
port?: number | undefined;
|
|
1782
|
+
host?: string | undefined;
|
|
1783
|
+
password?: string | undefined;
|
|
1784
|
+
token?: string | undefined;
|
|
1785
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1786
|
+
url?: string | undefined;
|
|
1787
|
+
username?: string | undefined;
|
|
1788
|
+
tls?: boolean | undefined;
|
|
1789
|
+
}, {
|
|
1790
|
+
driver: "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";
|
|
1791
|
+
ttl?: number | undefined;
|
|
1792
|
+
port?: number | undefined;
|
|
1793
|
+
host?: string | undefined;
|
|
1794
|
+
password?: string | undefined;
|
|
1795
|
+
token?: string | undefined;
|
|
1796
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1797
|
+
url?: string | undefined;
|
|
1798
|
+
username?: string | undefined;
|
|
1799
|
+
tls?: boolean | undefined;
|
|
1800
|
+
}>>;
|
|
1801
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
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")[]]>;
|
|
1803
|
+
compression: z.ZodOptional<z.ZodEnum<["deflate", "gzip", "brotli", "none"]>>;
|
|
1804
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1807
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
1808
|
+
username: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1810
|
+
tls: z.ZodOptional<z.ZodBoolean>;
|
|
1811
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
1812
|
+
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
driver: "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";
|
|
1814
|
+
ttl?: number | undefined;
|
|
1815
|
+
port?: number | undefined;
|
|
1816
|
+
host?: string | undefined;
|
|
1817
|
+
password?: string | undefined;
|
|
1818
|
+
token?: string | undefined;
|
|
1819
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1820
|
+
url?: string | undefined;
|
|
1821
|
+
username?: string | undefined;
|
|
1822
|
+
tls?: boolean | undefined;
|
|
1823
|
+
}, {
|
|
1824
|
+
driver: "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";
|
|
1825
|
+
ttl?: number | undefined;
|
|
1826
|
+
port?: number | undefined;
|
|
1827
|
+
host?: string | undefined;
|
|
1828
|
+
password?: string | undefined;
|
|
1829
|
+
token?: string | undefined;
|
|
1830
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1831
|
+
url?: string | undefined;
|
|
1832
|
+
username?: string | undefined;
|
|
1833
|
+
tls?: boolean | undefined;
|
|
1834
|
+
}>>;
|
|
1835
|
+
}, "strip", z.ZodTypeAny, {
|
|
1836
|
+
session?: {
|
|
1837
|
+
driver: "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";
|
|
1838
|
+
ttl?: number | undefined;
|
|
1839
|
+
port?: number | undefined;
|
|
1840
|
+
host?: string | undefined;
|
|
1841
|
+
password?: string | undefined;
|
|
1842
|
+
token?: string | undefined;
|
|
1843
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1844
|
+
url?: string | undefined;
|
|
1845
|
+
username?: string | undefined;
|
|
1846
|
+
tls?: boolean | undefined;
|
|
1847
|
+
} | undefined;
|
|
1848
|
+
cache?: {
|
|
1849
|
+
driver: "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";
|
|
1850
|
+
ttl?: number | undefined;
|
|
1851
|
+
port?: number | undefined;
|
|
1852
|
+
host?: string | undefined;
|
|
1853
|
+
password?: string | undefined;
|
|
1854
|
+
token?: string | undefined;
|
|
1855
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1856
|
+
url?: string | undefined;
|
|
1857
|
+
username?: string | undefined;
|
|
1858
|
+
tls?: boolean | undefined;
|
|
1859
|
+
} | undefined;
|
|
1860
|
+
}, {
|
|
1861
|
+
session?: {
|
|
1862
|
+
driver: "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";
|
|
1863
|
+
ttl?: number | undefined;
|
|
1864
|
+
port?: number | undefined;
|
|
1865
|
+
host?: string | undefined;
|
|
1866
|
+
password?: string | undefined;
|
|
1867
|
+
token?: string | undefined;
|
|
1868
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1869
|
+
url?: string | undefined;
|
|
1870
|
+
username?: string | undefined;
|
|
1871
|
+
tls?: boolean | undefined;
|
|
1872
|
+
} | undefined;
|
|
1873
|
+
cache?: {
|
|
1874
|
+
driver: "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";
|
|
1875
|
+
ttl?: number | undefined;
|
|
1876
|
+
port?: number | undefined;
|
|
1877
|
+
host?: string | undefined;
|
|
1878
|
+
password?: string | undefined;
|
|
1879
|
+
token?: string | undefined;
|
|
1880
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1881
|
+
url?: string | undefined;
|
|
1882
|
+
username?: string | undefined;
|
|
1883
|
+
tls?: boolean | undefined;
|
|
1884
|
+
} | undefined;
|
|
1885
|
+
}>>;
|
|
1886
|
+
oauth: z.ZodObject<{
|
|
1887
|
+
apiHost: z.ZodString;
|
|
1888
|
+
clientId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1889
|
+
clientSecret: z.ZodString;
|
|
1890
|
+
}, "strip", z.ZodTypeAny, {
|
|
1891
|
+
apiHost: string;
|
|
1892
|
+
clientId: string | number;
|
|
1893
|
+
clientSecret: string;
|
|
1894
|
+
}, {
|
|
1895
|
+
apiHost: string;
|
|
1896
|
+
clientId: string | number;
|
|
1897
|
+
clientSecret: string;
|
|
1898
|
+
}>;
|
|
1899
|
+
appKeys: z.ZodObject<{
|
|
1900
|
+
wishlistKey: z.ZodString;
|
|
1901
|
+
basketKey: z.ZodString;
|
|
1902
|
+
hashAlgorithm: z.ZodEnum<[string, ...string[]]>;
|
|
1903
|
+
}, "strip", z.ZodTypeAny, {
|
|
1904
|
+
wishlistKey: string;
|
|
1905
|
+
basketKey: string;
|
|
1906
|
+
hashAlgorithm: string;
|
|
1907
|
+
}, {
|
|
1908
|
+
wishlistKey: string;
|
|
1909
|
+
basketKey: string;
|
|
1910
|
+
hashAlgorithm: string;
|
|
1911
|
+
}>;
|
|
1912
|
+
apiBasePath: z.ZodOptional<z.ZodString>;
|
|
1913
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
1914
|
+
auth: z.ZodObject<{
|
|
1915
|
+
username: z.ZodString;
|
|
1916
|
+
password: z.ZodString;
|
|
1917
|
+
}, "strip", z.ZodTypeAny, {
|
|
1918
|
+
password: string;
|
|
1919
|
+
username: string;
|
|
1920
|
+
}, {
|
|
1921
|
+
password: string;
|
|
1922
|
+
username: string;
|
|
1923
|
+
}>;
|
|
1924
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1925
|
+
}, "strip", z.ZodTypeAny, {
|
|
1926
|
+
auth: {
|
|
1927
|
+
password: string;
|
|
1928
|
+
username: string;
|
|
1929
|
+
};
|
|
1930
|
+
enabled?: boolean | undefined;
|
|
1931
|
+
}, {
|
|
1932
|
+
auth: {
|
|
1933
|
+
password: string;
|
|
1934
|
+
username: string;
|
|
1935
|
+
};
|
|
1936
|
+
enabled?: boolean | undefined;
|
|
1937
|
+
}>>;
|
|
1938
|
+
publicShopData: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1939
|
+
idp: z.ZodOptional<z.ZodObject<{
|
|
1891
1940
|
enabled: z.ZodBoolean;
|
|
1892
|
-
|
|
1941
|
+
idpKeys: z.ZodArray<z.ZodString, "many">;
|
|
1942
|
+
idpRedirectURL: z.ZodString;
|
|
1893
1943
|
}, "strip", z.ZodTypeAny, {
|
|
1894
1944
|
enabled: boolean;
|
|
1895
|
-
|
|
1945
|
+
idpKeys: string[];
|
|
1946
|
+
idpRedirectURL: string;
|
|
1896
1947
|
}, {
|
|
1897
1948
|
enabled: boolean;
|
|
1898
|
-
|
|
1949
|
+
idpKeys: string[];
|
|
1950
|
+
idpRedirectURL: string;
|
|
1899
1951
|
}>>;
|
|
1952
|
+
/** @deprecated Global storefront.redis config is being removed in favor of `storefront.storage` config */
|
|
1953
|
+
redis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1954
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
1955
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1957
|
+
sslTransit: z.ZodOptional<z.ZodBoolean>;
|
|
1958
|
+
}, "strip", z.ZodTypeAny, {
|
|
1959
|
+
port?: number | undefined;
|
|
1960
|
+
host?: string | undefined;
|
|
1961
|
+
prefix?: string | undefined;
|
|
1962
|
+
sslTransit?: boolean | undefined;
|
|
1963
|
+
}, {
|
|
1964
|
+
port?: number | undefined;
|
|
1965
|
+
host?: string | undefined;
|
|
1966
|
+
prefix?: string | undefined;
|
|
1967
|
+
sslTransit?: boolean | undefined;
|
|
1968
|
+
}>, z.ZodObject<{
|
|
1969
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
1970
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
sslTransit: z.ZodOptional<z.ZodBoolean>;
|
|
1973
|
+
user: z.ZodString;
|
|
1974
|
+
password: z.ZodString;
|
|
1975
|
+
}, "strip", z.ZodTypeAny, {
|
|
1976
|
+
user: string;
|
|
1977
|
+
password: string;
|
|
1978
|
+
port?: number | undefined;
|
|
1979
|
+
host?: string | undefined;
|
|
1980
|
+
prefix?: string | undefined;
|
|
1981
|
+
sslTransit?: boolean | undefined;
|
|
1982
|
+
}, {
|
|
1983
|
+
user: string;
|
|
1984
|
+
password: string;
|
|
1985
|
+
port?: number | undefined;
|
|
1986
|
+
host?: string | undefined;
|
|
1987
|
+
prefix?: string | undefined;
|
|
1988
|
+
sslTransit?: boolean | undefined;
|
|
1989
|
+
}>]>>;
|
|
1900
1990
|
}, "strip", z.ZodTypeAny, {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
auth: {
|
|
1913
|
-
resetPasswordUrl: string;
|
|
1914
|
-
};
|
|
1915
|
-
currency: string;
|
|
1916
|
-
domain?: string | undefined;
|
|
1917
|
-
storeCampaignKeyword?: string | undefined;
|
|
1918
|
-
idp?: {
|
|
1919
|
-
enabled: boolean;
|
|
1920
|
-
idpKeys: string[];
|
|
1921
|
-
idpRedirectURL: string;
|
|
1922
|
-
} | undefined;
|
|
1923
|
-
path?: string | string[] | undefined;
|
|
1924
|
-
redis?: {
|
|
1925
|
-
port?: number | undefined;
|
|
1926
|
-
host?: string | undefined;
|
|
1927
|
-
prefix?: string | undefined;
|
|
1928
|
-
sslTransit?: boolean | undefined;
|
|
1929
|
-
} | {
|
|
1930
|
-
user: string;
|
|
1931
|
-
password: string;
|
|
1932
|
-
port?: number | undefined;
|
|
1933
|
-
host?: string | undefined;
|
|
1934
|
-
prefix?: string | undefined;
|
|
1935
|
-
sslTransit?: boolean | undefined;
|
|
1936
|
-
} | undefined;
|
|
1937
|
-
apiBasePath?: string | undefined;
|
|
1938
|
-
appKeys?: {
|
|
1939
|
-
wishlistKey: string;
|
|
1940
|
-
basketKey: string;
|
|
1941
|
-
hashAlgorithm: string;
|
|
1942
|
-
} | undefined;
|
|
1943
|
-
currencyFractionDigits?: number | undefined;
|
|
1944
|
-
isEnabled?: boolean | undefined;
|
|
1945
|
-
sessionConfig?: {
|
|
1946
|
-
domain?: string | undefined;
|
|
1947
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
1948
|
-
maxAge?: number | undefined;
|
|
1949
|
-
cookieName?: string | undefined;
|
|
1950
|
-
secret?: string | string[] | undefined;
|
|
1951
|
-
} | undefined;
|
|
1952
|
-
bapi?: {
|
|
1953
|
-
host: string;
|
|
1954
|
-
token: string;
|
|
1955
|
-
} | undefined;
|
|
1956
|
-
storage?: {
|
|
1957
|
-
session?: {
|
|
1958
|
-
driver: "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";
|
|
1959
|
-
ttl?: number | undefined;
|
|
1960
|
-
port?: number | undefined;
|
|
1961
|
-
host?: string | undefined;
|
|
1962
|
-
password?: string | undefined;
|
|
1963
|
-
token?: string | undefined;
|
|
1964
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1965
|
-
url?: string | undefined;
|
|
1966
|
-
username?: string | undefined;
|
|
1967
|
-
tls?: boolean | undefined;
|
|
1968
|
-
} | undefined;
|
|
1969
|
-
cache?: {
|
|
1970
|
-
driver: "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";
|
|
1971
|
-
ttl?: number | undefined;
|
|
1972
|
-
port?: number | undefined;
|
|
1973
|
-
host?: string | undefined;
|
|
1974
|
-
password?: string | undefined;
|
|
1975
|
-
token?: string | undefined;
|
|
1976
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
1977
|
-
url?: string | undefined;
|
|
1978
|
-
username?: string | undefined;
|
|
1979
|
-
tls?: boolean | undefined;
|
|
1980
|
-
} | undefined;
|
|
1981
|
-
} | undefined;
|
|
1982
|
-
isDefault?: boolean | "" | undefined;
|
|
1983
|
-
}>;
|
|
1984
|
-
redirects?: {
|
|
1991
|
+
oauth: {
|
|
1992
|
+
apiHost: string;
|
|
1993
|
+
clientId: string | number;
|
|
1994
|
+
clientSecret: string;
|
|
1995
|
+
};
|
|
1996
|
+
appKeys: {
|
|
1997
|
+
wishlistKey: string;
|
|
1998
|
+
basketKey: string;
|
|
1999
|
+
hashAlgorithm: string;
|
|
2000
|
+
};
|
|
2001
|
+
idp?: {
|
|
1985
2002
|
enabled: boolean;
|
|
1986
|
-
|
|
2003
|
+
idpKeys: string[];
|
|
2004
|
+
idpRedirectURL: string;
|
|
1987
2005
|
} | undefined;
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
currency: string;
|
|
2006
|
+
redis?: {
|
|
2007
|
+
port?: number | undefined;
|
|
2008
|
+
host?: string | undefined;
|
|
2009
|
+
prefix?: string | undefined;
|
|
2010
|
+
sslTransit?: boolean | undefined;
|
|
2011
|
+
} | {
|
|
2012
|
+
user: string;
|
|
2013
|
+
password: string;
|
|
2014
|
+
port?: number | undefined;
|
|
2015
|
+
host?: string | undefined;
|
|
2016
|
+
prefix?: string | undefined;
|
|
2017
|
+
sslTransit?: boolean | undefined;
|
|
2018
|
+
} | undefined;
|
|
2019
|
+
apiBasePath?: string | undefined;
|
|
2020
|
+
session?: {
|
|
2004
2021
|
domain?: string | undefined;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
redis?: {
|
|
2013
|
-
port?: number | undefined;
|
|
2014
|
-
host?: string | undefined;
|
|
2015
|
-
prefix?: string | undefined;
|
|
2016
|
-
sslTransit?: boolean | undefined;
|
|
2017
|
-
} | {
|
|
2018
|
-
user: string;
|
|
2022
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
2023
|
+
maxAge?: number | undefined;
|
|
2024
|
+
cookieName?: string | undefined;
|
|
2025
|
+
secret?: string | string[] | undefined;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
cache?: {
|
|
2028
|
+
auth: {
|
|
2019
2029
|
password: string;
|
|
2030
|
+
username: string;
|
|
2031
|
+
};
|
|
2032
|
+
enabled?: boolean | undefined;
|
|
2033
|
+
} | undefined;
|
|
2034
|
+
storage?: {
|
|
2035
|
+
session?: {
|
|
2036
|
+
driver: "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";
|
|
2037
|
+
ttl?: number | undefined;
|
|
2020
2038
|
port?: number | undefined;
|
|
2021
2039
|
host?: string | undefined;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
basketKey: string;
|
|
2029
|
-
hashAlgorithm: string;
|
|
2030
|
-
} | undefined;
|
|
2031
|
-
currencyFractionDigits?: number | undefined;
|
|
2032
|
-
isEnabled?: boolean | undefined;
|
|
2033
|
-
sessionConfig?: {
|
|
2034
|
-
domain?: string | undefined;
|
|
2035
|
-
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
2036
|
-
maxAge?: number | undefined;
|
|
2037
|
-
cookieName?: string | undefined;
|
|
2038
|
-
secret?: string | string[] | undefined;
|
|
2039
|
-
} | undefined;
|
|
2040
|
-
bapi?: {
|
|
2041
|
-
host: string;
|
|
2042
|
-
token: string;
|
|
2040
|
+
password?: string | undefined;
|
|
2041
|
+
token?: string | undefined;
|
|
2042
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
2043
|
+
url?: string | undefined;
|
|
2044
|
+
username?: string | undefined;
|
|
2045
|
+
tls?: boolean | undefined;
|
|
2043
2046
|
} | undefined;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
tls?: boolean | undefined;
|
|
2056
|
-
} | undefined;
|
|
2057
|
-
cache?: {
|
|
2058
|
-
driver: "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";
|
|
2059
|
-
ttl?: number | undefined;
|
|
2060
|
-
port?: number | undefined;
|
|
2061
|
-
host?: string | undefined;
|
|
2062
|
-
password?: string | undefined;
|
|
2063
|
-
token?: string | undefined;
|
|
2064
|
-
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
2065
|
-
url?: string | undefined;
|
|
2066
|
-
username?: string | undefined;
|
|
2067
|
-
tls?: boolean | undefined;
|
|
2068
|
-
} | undefined;
|
|
2047
|
+
cache?: {
|
|
2048
|
+
driver: "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";
|
|
2049
|
+
ttl?: number | undefined;
|
|
2050
|
+
port?: number | undefined;
|
|
2051
|
+
host?: string | undefined;
|
|
2052
|
+
password?: string | undefined;
|
|
2053
|
+
token?: string | undefined;
|
|
2054
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
2055
|
+
url?: string | undefined;
|
|
2056
|
+
username?: string | undefined;
|
|
2057
|
+
tls?: boolean | undefined;
|
|
2069
2058
|
} | undefined;
|
|
2070
|
-
isDefault?: string | boolean | undefined;
|
|
2071
|
-
}>;
|
|
2072
|
-
redirects?: {
|
|
2073
|
-
enabled: boolean;
|
|
2074
|
-
queryParamWhitelist?: string[] | undefined;
|
|
2075
2059
|
} | undefined;
|
|
2076
|
-
|
|
2077
|
-
public: z.ZodObject<{
|
|
2078
|
-
storefront: z.ZodObject<{
|
|
2079
|
-
log: z.ZodObject<{
|
|
2080
|
-
name: z.ZodString;
|
|
2081
|
-
level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
|
|
2082
|
-
}, "strip", z.ZodTypeAny, {
|
|
2083
|
-
level: LogLevel;
|
|
2084
|
-
name: string;
|
|
2085
|
-
}, {
|
|
2086
|
-
level: LogLevel;
|
|
2087
|
-
name: string;
|
|
2088
|
-
}>;
|
|
2089
|
-
}, "strip", z.ZodTypeAny, {
|
|
2090
|
-
log: {
|
|
2091
|
-
level: LogLevel;
|
|
2092
|
-
name: string;
|
|
2093
|
-
};
|
|
2094
|
-
}, {
|
|
2095
|
-
log: {
|
|
2096
|
-
level: LogLevel;
|
|
2097
|
-
name: string;
|
|
2098
|
-
};
|
|
2099
|
-
}>;
|
|
2100
|
-
}, "strip", z.ZodTypeAny, {
|
|
2101
|
-
storefront: {
|
|
2102
|
-
log: {
|
|
2103
|
-
level: LogLevel;
|
|
2104
|
-
name: string;
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2060
|
+
publicShopData?: string[] | undefined;
|
|
2107
2061
|
}, {
|
|
2108
|
-
storefront: {
|
|
2109
|
-
log: {
|
|
2110
|
-
level: LogLevel;
|
|
2111
|
-
name: string;
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
}>;
|
|
2115
|
-
}, "strip", z.ZodTypeAny, {
|
|
2116
|
-
storefront: {
|
|
2117
2062
|
oauth: {
|
|
2118
2063
|
apiHost: string;
|
|
2119
2064
|
clientId: string | number;
|
|
@@ -2124,10 +2069,6 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2124
2069
|
basketKey: string;
|
|
2125
2070
|
hashAlgorithm: string;
|
|
2126
2071
|
};
|
|
2127
|
-
bapi: {
|
|
2128
|
-
host: string;
|
|
2129
|
-
token: string;
|
|
2130
|
-
};
|
|
2131
2072
|
idp?: {
|
|
2132
2073
|
enabled: boolean;
|
|
2133
2074
|
idpKeys: string[];
|
|
@@ -2188,7 +2129,95 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2188
2129
|
} | undefined;
|
|
2189
2130
|
} | undefined;
|
|
2190
2131
|
publicShopData?: string[] | undefined;
|
|
2191
|
-
}
|
|
2132
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
2133
|
+
sapi: z.ZodObject<{
|
|
2134
|
+
host: z.ZodString;
|
|
2135
|
+
token: z.ZodString;
|
|
2136
|
+
}, "strip", z.ZodTypeAny, {
|
|
2137
|
+
host: string;
|
|
2138
|
+
token: string;
|
|
2139
|
+
}, {
|
|
2140
|
+
host: string;
|
|
2141
|
+
token: string;
|
|
2142
|
+
}>;
|
|
2143
|
+
bapi: z.ZodUndefined;
|
|
2144
|
+
}, "strip", z.ZodTypeAny, {
|
|
2145
|
+
sapi: {
|
|
2146
|
+
host: string;
|
|
2147
|
+
token: string;
|
|
2148
|
+
};
|
|
2149
|
+
bapi?: undefined;
|
|
2150
|
+
}, {
|
|
2151
|
+
sapi: {
|
|
2152
|
+
host: string;
|
|
2153
|
+
token: string;
|
|
2154
|
+
};
|
|
2155
|
+
bapi?: undefined;
|
|
2156
|
+
}>, z.ZodObject<{
|
|
2157
|
+
bapi: z.ZodObject<{
|
|
2158
|
+
host: z.ZodString;
|
|
2159
|
+
token: z.ZodString;
|
|
2160
|
+
}, "strip", z.ZodTypeAny, {
|
|
2161
|
+
host: string;
|
|
2162
|
+
token: string;
|
|
2163
|
+
}, {
|
|
2164
|
+
host: string;
|
|
2165
|
+
token: string;
|
|
2166
|
+
}>;
|
|
2167
|
+
sapi: z.ZodUndefined;
|
|
2168
|
+
}, "strip", z.ZodTypeAny, {
|
|
2169
|
+
bapi: {
|
|
2170
|
+
host: string;
|
|
2171
|
+
token: string;
|
|
2172
|
+
};
|
|
2173
|
+
sapi?: undefined;
|
|
2174
|
+
}, {
|
|
2175
|
+
bapi: {
|
|
2176
|
+
host: string;
|
|
2177
|
+
token: string;
|
|
2178
|
+
};
|
|
2179
|
+
sapi?: undefined;
|
|
2180
|
+
}>]>>>;
|
|
2181
|
+
public: z.ZodObject<{
|
|
2182
|
+
storefront: z.ZodObject<{
|
|
2183
|
+
log: z.ZodObject<{
|
|
2184
|
+
name: z.ZodString;
|
|
2185
|
+
level: z.ZodType<LogLevel, z.ZodTypeDef, LogLevel>;
|
|
2186
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
|
+
level: LogLevel;
|
|
2188
|
+
name: string;
|
|
2189
|
+
}, {
|
|
2190
|
+
level: LogLevel;
|
|
2191
|
+
name: string;
|
|
2192
|
+
}>;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
log: {
|
|
2195
|
+
level: LogLevel;
|
|
2196
|
+
name: string;
|
|
2197
|
+
};
|
|
2198
|
+
}, {
|
|
2199
|
+
log: {
|
|
2200
|
+
level: LogLevel;
|
|
2201
|
+
name: string;
|
|
2202
|
+
};
|
|
2203
|
+
}>;
|
|
2204
|
+
}, "strip", z.ZodTypeAny, {
|
|
2205
|
+
storefront: {
|
|
2206
|
+
log: {
|
|
2207
|
+
level: LogLevel;
|
|
2208
|
+
name: string;
|
|
2209
|
+
};
|
|
2210
|
+
};
|
|
2211
|
+
}, {
|
|
2212
|
+
storefront: {
|
|
2213
|
+
log: {
|
|
2214
|
+
level: LogLevel;
|
|
2215
|
+
name: string;
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
}>;
|
|
2219
|
+
}, "strip", z.ZodTypeAny, {
|
|
2220
|
+
storefront: {
|
|
2192
2221
|
shopSelector: "domain" | "path" | "path_or_default";
|
|
2193
2222
|
stores: Record<string, {
|
|
2194
2223
|
locale: string;
|
|
@@ -2240,6 +2269,10 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2240
2269
|
cookieName?: string | undefined;
|
|
2241
2270
|
secret?: string | string[] | undefined;
|
|
2242
2271
|
} | undefined;
|
|
2272
|
+
sapi?: {
|
|
2273
|
+
host: string;
|
|
2274
|
+
token: string;
|
|
2275
|
+
} | undefined;
|
|
2243
2276
|
bapi?: {
|
|
2244
2277
|
host: string;
|
|
2245
2278
|
token: string;
|
|
@@ -2276,17 +2309,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2276
2309
|
enabled: boolean;
|
|
2277
2310
|
queryParamWhitelist?: string[] | undefined;
|
|
2278
2311
|
} | undefined;
|
|
2279
|
-
}
|
|
2280
|
-
public: {
|
|
2281
|
-
storefront: {
|
|
2282
|
-
log: {
|
|
2283
|
-
level: LogLevel;
|
|
2284
|
-
name: string;
|
|
2285
|
-
};
|
|
2286
|
-
};
|
|
2287
|
-
};
|
|
2288
|
-
}, {
|
|
2289
|
-
storefront: {
|
|
2312
|
+
} & ({
|
|
2290
2313
|
oauth: {
|
|
2291
2314
|
apiHost: string;
|
|
2292
2315
|
clientId: string | number;
|
|
@@ -2297,10 +2320,6 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2297
2320
|
basketKey: string;
|
|
2298
2321
|
hashAlgorithm: string;
|
|
2299
2322
|
};
|
|
2300
|
-
bapi: {
|
|
2301
|
-
host: string;
|
|
2302
|
-
token: string;
|
|
2303
|
-
};
|
|
2304
2323
|
idp?: {
|
|
2305
2324
|
enabled: boolean;
|
|
2306
2325
|
idpKeys: string[];
|
|
@@ -2361,7 +2380,29 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2361
2380
|
} | undefined;
|
|
2362
2381
|
} | undefined;
|
|
2363
2382
|
publicShopData?: string[] | undefined;
|
|
2383
|
+
} & ({
|
|
2384
|
+
sapi: {
|
|
2385
|
+
host: string;
|
|
2386
|
+
token: string;
|
|
2387
|
+
};
|
|
2388
|
+
bapi?: undefined;
|
|
2364
2389
|
} | {
|
|
2390
|
+
bapi: {
|
|
2391
|
+
host: string;
|
|
2392
|
+
token: string;
|
|
2393
|
+
};
|
|
2394
|
+
sapi?: undefined;
|
|
2395
|
+
}));
|
|
2396
|
+
public: {
|
|
2397
|
+
storefront: {
|
|
2398
|
+
log: {
|
|
2399
|
+
level: LogLevel;
|
|
2400
|
+
name: string;
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
}, {
|
|
2405
|
+
storefront: {
|
|
2365
2406
|
shopSelector: "domain" | "path" | "path_or_default";
|
|
2366
2407
|
stores: Record<string, {
|
|
2367
2408
|
locale: string;
|
|
@@ -2413,6 +2454,10 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2413
2454
|
cookieName?: string | undefined;
|
|
2414
2455
|
secret?: string | string[] | undefined;
|
|
2415
2456
|
} | undefined;
|
|
2457
|
+
sapi?: {
|
|
2458
|
+
host: string;
|
|
2459
|
+
token: string;
|
|
2460
|
+
} | undefined;
|
|
2416
2461
|
bapi?: {
|
|
2417
2462
|
host: string;
|
|
2418
2463
|
token: string;
|
|
@@ -2449,7 +2494,90 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2449
2494
|
enabled: boolean;
|
|
2450
2495
|
queryParamWhitelist?: string[] | undefined;
|
|
2451
2496
|
} | undefined;
|
|
2452
|
-
}
|
|
2497
|
+
} & ({
|
|
2498
|
+
oauth: {
|
|
2499
|
+
apiHost: string;
|
|
2500
|
+
clientId: string | number;
|
|
2501
|
+
clientSecret: string;
|
|
2502
|
+
};
|
|
2503
|
+
appKeys: {
|
|
2504
|
+
wishlistKey: string;
|
|
2505
|
+
basketKey: string;
|
|
2506
|
+
hashAlgorithm: string;
|
|
2507
|
+
};
|
|
2508
|
+
idp?: {
|
|
2509
|
+
enabled: boolean;
|
|
2510
|
+
idpKeys: string[];
|
|
2511
|
+
idpRedirectURL: string;
|
|
2512
|
+
} | undefined;
|
|
2513
|
+
redis?: {
|
|
2514
|
+
port?: number | undefined;
|
|
2515
|
+
host?: string | undefined;
|
|
2516
|
+
prefix?: string | undefined;
|
|
2517
|
+
sslTransit?: boolean | undefined;
|
|
2518
|
+
} | {
|
|
2519
|
+
user: string;
|
|
2520
|
+
password: string;
|
|
2521
|
+
port?: number | undefined;
|
|
2522
|
+
host?: string | undefined;
|
|
2523
|
+
prefix?: string | undefined;
|
|
2524
|
+
sslTransit?: boolean | undefined;
|
|
2525
|
+
} | undefined;
|
|
2526
|
+
apiBasePath?: string | undefined;
|
|
2527
|
+
session?: {
|
|
2528
|
+
domain?: string | undefined;
|
|
2529
|
+
sameSite?: "lax" | "strict" | "none" | undefined;
|
|
2530
|
+
maxAge?: number | undefined;
|
|
2531
|
+
cookieName?: string | undefined;
|
|
2532
|
+
secret?: string | string[] | undefined;
|
|
2533
|
+
} | undefined;
|
|
2534
|
+
cache?: {
|
|
2535
|
+
auth: {
|
|
2536
|
+
password: string;
|
|
2537
|
+
username: string;
|
|
2538
|
+
};
|
|
2539
|
+
enabled?: boolean | undefined;
|
|
2540
|
+
} | undefined;
|
|
2541
|
+
storage?: {
|
|
2542
|
+
session?: {
|
|
2543
|
+
driver: "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";
|
|
2544
|
+
ttl?: number | undefined;
|
|
2545
|
+
port?: number | undefined;
|
|
2546
|
+
host?: string | undefined;
|
|
2547
|
+
password?: string | undefined;
|
|
2548
|
+
token?: string | undefined;
|
|
2549
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
2550
|
+
url?: string | undefined;
|
|
2551
|
+
username?: string | undefined;
|
|
2552
|
+
tls?: boolean | undefined;
|
|
2553
|
+
} | undefined;
|
|
2554
|
+
cache?: {
|
|
2555
|
+
driver: "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";
|
|
2556
|
+
ttl?: number | undefined;
|
|
2557
|
+
port?: number | undefined;
|
|
2558
|
+
host?: string | undefined;
|
|
2559
|
+
password?: string | undefined;
|
|
2560
|
+
token?: string | undefined;
|
|
2561
|
+
compression?: "none" | "deflate" | "gzip" | "brotli" | undefined;
|
|
2562
|
+
url?: string | undefined;
|
|
2563
|
+
username?: string | undefined;
|
|
2564
|
+
tls?: boolean | undefined;
|
|
2565
|
+
} | undefined;
|
|
2566
|
+
} | undefined;
|
|
2567
|
+
publicShopData?: string[] | undefined;
|
|
2568
|
+
} & ({
|
|
2569
|
+
sapi: {
|
|
2570
|
+
host: string;
|
|
2571
|
+
token: string;
|
|
2572
|
+
};
|
|
2573
|
+
bapi?: undefined;
|
|
2574
|
+
} | {
|
|
2575
|
+
bapi: {
|
|
2576
|
+
host: string;
|
|
2577
|
+
token: string;
|
|
2578
|
+
};
|
|
2579
|
+
sapi?: undefined;
|
|
2580
|
+
}));
|
|
2453
2581
|
public: {
|
|
2454
2582
|
storefront: {
|
|
2455
2583
|
log: {
|
|
@@ -2462,11 +2590,15 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
2462
2590
|
type CheckoutShopConfigType = z.infer<typeof CheckoutShopConfigSchema>;
|
|
2463
2591
|
type SessionType = z.infer<typeof SessionSchema>;
|
|
2464
2592
|
type StorageType = z.infer<typeof StorageSchema>;
|
|
2465
|
-
type
|
|
2593
|
+
type SapiConfigType = z.infer<typeof SapiSchema>;
|
|
2594
|
+
/**
|
|
2595
|
+
* @deprecated Use {@link SapiConfigType} instead
|
|
2596
|
+
*/
|
|
2597
|
+
type BapiConfigType = z.infer<typeof SapiSchema>;
|
|
2466
2598
|
type StorefrontConfigType = z.infer<typeof StorefrontConfigSchema>;
|
|
2467
2599
|
type ShopSelectorType = z.infer<typeof ShopSelectorSchema>;
|
|
2468
2600
|
type RedirectType = z.infer<typeof RedirectsSchema>;
|
|
2469
2601
|
type IdpType = z.infer<typeof IdpSchema>;
|
|
2470
2602
|
type RedisConfigType = z.infer<typeof RedisConfigSchema>;
|
|
2471
2603
|
type ModulePublicRuntimeConfigType = z.infer<typeof PublicRuntimeConfigSchema>;
|
|
2472
|
-
export type { CheckoutShopConfigType, SessionType, StorageType, BapiConfigType, ShopSelectorType, ShopConfigType, StorefrontConfigType, RedirectType, ModulePublicRuntimeConfigType, IdpType, RedisConfigType, };
|
|
2604
|
+
export type { CheckoutShopConfigType, SessionType, StorageType, SapiConfigType, BapiConfigType, ShopSelectorType, ShopConfigType, StorefrontConfigType, RedirectType, ModulePublicRuntimeConfigType, IdpType, RedisConfigType, };
|