@shop-on/theme-server 0.13.2 → 0.14.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-proxy.js +11 -0
- package/dist/api-contract/src/custom-attributes.d.ts +1 -0
- package/dist/api-contract/src/custom-attributes.js +23 -0
- package/dist/api-contract/src/ids.js +3 -1
- package/dist/api-contract/src/limits.js +7 -1
- package/dist/api-contract/src/storefront/analytics.js +4 -1
- package/dist/api-contract/src/storefront/cart.d.ts +6 -0
- package/dist/api-contract/src/storefront/cart.js +41 -18
- package/dist/api-contract/src/storefront/checkout.js +16 -3
- package/dist/api-contract/src/storefront/index.d.ts +336 -1
- package/dist/app-proxy.d.ts +35 -0
- package/dist/app-proxy.js +163 -0
- package/dist/card.js +11 -2
- package/dist/cart-customer.d.ts +11 -2
- package/dist/cart-customer.js +38 -2
- package/dist/cart.d.ts +3 -0
- package/dist/cart.js +1 -0
- package/dist/collection.d.ts +1 -0
- package/dist/contract-kit/src/procedure.d.ts +4 -2
- package/dist/csrf.d.ts +7 -0
- package/dist/csrf.js +11 -1
- package/dist/product.d.ts +1 -0
- package/dist/search.d.ts +3 -0
- package/dist/search.js +3 -2
- package/dist/storefront.js +2 -1
- package/package.json +5 -4
|
@@ -3,6 +3,7 @@ import { ProcedureMeta } from "../../../contract-kit/src/procedure.js";
|
|
|
3
3
|
import "../../../contract-kit/src/index.js";
|
|
4
4
|
import { StorefrontEvent, storefrontEvent } from "./analytics.js";
|
|
5
5
|
import "./checkout-analytics.js";
|
|
6
|
+
import "../custom-attributes.js";
|
|
6
7
|
import { StorefrontCart, storefrontCart } from "./cart.js";
|
|
7
8
|
import "./checkout.js";
|
|
8
9
|
import "./catalog.js";
|
|
@@ -594,6 +595,7 @@ export declare const storefrontContract: {
|
|
|
594
595
|
value: import("zod").ZodNumber;
|
|
595
596
|
count: import("zod").ZodInt;
|
|
596
597
|
}, import("zod/v4/core").$strip>>;
|
|
598
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
597
599
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
598
600
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
599
601
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -4599,6 +4601,7 @@ export declare const storefrontContract: {
|
|
|
4599
4601
|
title: import("zod").ZodString;
|
|
4600
4602
|
sku: import("zod").ZodNullable<import("zod").ZodString>;
|
|
4601
4603
|
}, import("zod/v4/core").$strip>;
|
|
4604
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
4602
4605
|
descriptionHtml: import("zod").ZodString;
|
|
4603
4606
|
descriptionText: import("zod").ZodString;
|
|
4604
4607
|
seoTitle: import("zod").ZodString;
|
|
@@ -4994,6 +4997,7 @@ export declare const storefrontContract: {
|
|
|
4994
4997
|
value: import("zod").ZodNumber;
|
|
4995
4998
|
count: import("zod").ZodInt;
|
|
4996
4999
|
}, import("zod/v4/core").$strip>>;
|
|
5000
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
4997
5001
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
4998
5002
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
4999
5003
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -5350,6 +5354,7 @@ export declare const storefrontContract: {
|
|
|
5350
5354
|
value: import("zod").ZodNumber;
|
|
5351
5355
|
count: import("zod").ZodInt;
|
|
5352
5356
|
}, import("zod/v4/core").$strip>>;
|
|
5357
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
5353
5358
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5354
5359
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
5355
5360
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -5839,6 +5844,7 @@ export declare const storefrontContract: {
|
|
|
5839
5844
|
value: import("zod").ZodNumber;
|
|
5840
5845
|
count: import("zod").ZodInt;
|
|
5841
5846
|
}, import("zod/v4/core").$strip>>;
|
|
5847
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
5842
5848
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
5843
5849
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
5844
5850
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -6984,6 +6990,7 @@ export declare const storefrontContract: {
|
|
|
6984
6990
|
value: import("zod").ZodNumber;
|
|
6985
6991
|
count: import("zod").ZodInt;
|
|
6986
6992
|
}, import("zod/v4/core").$strip>>;
|
|
6993
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
6987
6994
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
6988
6995
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
6989
6996
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -7701,6 +7708,7 @@ export declare const storefrontContract: {
|
|
|
7701
7708
|
value: import("zod").ZodNumber;
|
|
7702
7709
|
count: import("zod").ZodInt;
|
|
7703
7710
|
}, import("zod/v4/core").$strip>>;
|
|
7711
|
+
buyButtonAppIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7704
7712
|
media: import("zod").ZodArray<import("zod").ZodObject<{
|
|
7705
7713
|
fileId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
7706
7714
|
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -8628,6 +8636,7 @@ export declare const storefrontContract: {
|
|
|
8628
8636
|
totalQuantity: import("zod").ZodInt;
|
|
8629
8637
|
subtotal: import("zod").ZodInt;
|
|
8630
8638
|
}, import("zod/v4/core").$strip>], "name">>;
|
|
8639
|
+
cartToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8631
8640
|
marketing: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
8632
8641
|
fbp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8633
8642
|
fbc: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -11531,6 +11540,11 @@ export declare const storefrontContract: {
|
|
|
11531
11540
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
11532
11541
|
expiresAt: import("zod").ZodISODateTime;
|
|
11533
11542
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
11543
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11544
|
+
name: import("zod").ZodString;
|
|
11545
|
+
value: import("zod").ZodString;
|
|
11546
|
+
visible: import("zod").ZodBoolean;
|
|
11547
|
+
}, import("zod/v4/core").$strip>>;
|
|
11534
11548
|
totalQuantity: import("zod").ZodInt;
|
|
11535
11549
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11536
11550
|
unitPrice: import("zod").ZodInt;
|
|
@@ -11545,6 +11559,7 @@ export declare const storefrontContract: {
|
|
|
11545
11559
|
}, import("zod/v4/core").$strip>>;
|
|
11546
11560
|
available: import("zod").ZodBoolean;
|
|
11547
11561
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
11562
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
11548
11563
|
variant: import("zod").ZodObject<{
|
|
11549
11564
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
11550
11565
|
title: import("zod").ZodString;
|
|
@@ -11746,6 +11761,11 @@ export declare const storefrontContract: {
|
|
|
11746
11761
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
11747
11762
|
expiresAt: import("zod").ZodISODateTime;
|
|
11748
11763
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
11764
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11765
|
+
name: import("zod").ZodString;
|
|
11766
|
+
value: import("zod").ZodString;
|
|
11767
|
+
visible: import("zod").ZodBoolean;
|
|
11768
|
+
}, import("zod/v4/core").$strip>>;
|
|
11749
11769
|
totalQuantity: import("zod").ZodInt;
|
|
11750
11770
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11751
11771
|
unitPrice: import("zod").ZodInt;
|
|
@@ -11760,6 +11780,7 @@ export declare const storefrontContract: {
|
|
|
11760
11780
|
}, import("zod/v4/core").$strip>>;
|
|
11761
11781
|
available: import("zod").ZodBoolean;
|
|
11762
11782
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
11783
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
11763
11784
|
variant: import("zod").ZodObject<{
|
|
11764
11785
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
11765
11786
|
title: import("zod").ZodString;
|
|
@@ -11965,6 +11986,11 @@ export declare const storefrontContract: {
|
|
|
11965
11986
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
11966
11987
|
expiresAt: import("zod").ZodISODateTime;
|
|
11967
11988
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
11989
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11990
|
+
name: import("zod").ZodString;
|
|
11991
|
+
value: import("zod").ZodString;
|
|
11992
|
+
visible: import("zod").ZodBoolean;
|
|
11993
|
+
}, import("zod/v4/core").$strip>>;
|
|
11968
11994
|
totalQuantity: import("zod").ZodInt;
|
|
11969
11995
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
11970
11996
|
unitPrice: import("zod").ZodInt;
|
|
@@ -11979,6 +12005,7 @@ export declare const storefrontContract: {
|
|
|
11979
12005
|
}, import("zod/v4/core").$strip>>;
|
|
11980
12006
|
available: import("zod").ZodBoolean;
|
|
11981
12007
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
12008
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
11982
12009
|
variant: import("zod").ZodObject<{
|
|
11983
12010
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
11984
12011
|
title: import("zod").ZodString;
|
|
@@ -12180,6 +12207,11 @@ export declare const storefrontContract: {
|
|
|
12180
12207
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
12181
12208
|
expiresAt: import("zod").ZodISODateTime;
|
|
12182
12209
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12210
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12211
|
+
name: import("zod").ZodString;
|
|
12212
|
+
value: import("zod").ZodString;
|
|
12213
|
+
visible: import("zod").ZodBoolean;
|
|
12214
|
+
}, import("zod/v4/core").$strip>>;
|
|
12183
12215
|
totalQuantity: import("zod").ZodInt;
|
|
12184
12216
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12185
12217
|
unitPrice: import("zod").ZodInt;
|
|
@@ -12194,6 +12226,7 @@ export declare const storefrontContract: {
|
|
|
12194
12226
|
}, import("zod/v4/core").$strip>>;
|
|
12195
12227
|
available: import("zod").ZodBoolean;
|
|
12196
12228
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
12229
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
12197
12230
|
variant: import("zod").ZodObject<{
|
|
12198
12231
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12199
12232
|
title: import("zod").ZodString;
|
|
@@ -12425,6 +12458,11 @@ export declare const storefrontContract: {
|
|
|
12425
12458
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
12426
12459
|
expiresAt: import("zod").ZodISODateTime;
|
|
12427
12460
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12461
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12462
|
+
name: import("zod").ZodString;
|
|
12463
|
+
value: import("zod").ZodString;
|
|
12464
|
+
visible: import("zod").ZodBoolean;
|
|
12465
|
+
}, import("zod/v4/core").$strip>>;
|
|
12428
12466
|
totalQuantity: import("zod").ZodInt;
|
|
12429
12467
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12430
12468
|
unitPrice: import("zod").ZodInt;
|
|
@@ -12439,6 +12477,7 @@ export declare const storefrontContract: {
|
|
|
12439
12477
|
}, import("zod/v4/core").$strip>>;
|
|
12440
12478
|
available: import("zod").ZodBoolean;
|
|
12441
12479
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
12480
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
12442
12481
|
variant: import("zod").ZodObject<{
|
|
12443
12482
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12444
12483
|
title: import("zod").ZodString;
|
|
@@ -12639,6 +12678,12 @@ export declare const storefrontContract: {
|
|
|
12639
12678
|
variantId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12640
12679
|
}, import("zod/v4/core").$strip>;
|
|
12641
12680
|
};
|
|
12681
|
+
LINE_HELD: {
|
|
12682
|
+
readonly status: 409;
|
|
12683
|
+
readonly data: import("zod").ZodObject<{
|
|
12684
|
+
lineId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
12685
|
+
}, import("zod/v4/core").$strip>;
|
|
12686
|
+
};
|
|
12642
12687
|
LIMIT_EXCEEDED: {
|
|
12643
12688
|
status: number;
|
|
12644
12689
|
data: import("zod").ZodObject<{
|
|
@@ -12656,6 +12701,11 @@ export declare const storefrontContract: {
|
|
|
12656
12701
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
12657
12702
|
expiresAt: import("zod").ZodISODateTime;
|
|
12658
12703
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12704
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12705
|
+
name: import("zod").ZodString;
|
|
12706
|
+
value: import("zod").ZodString;
|
|
12707
|
+
visible: import("zod").ZodBoolean;
|
|
12708
|
+
}, import("zod/v4/core").$strip>>;
|
|
12659
12709
|
totalQuantity: import("zod").ZodInt;
|
|
12660
12710
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12661
12711
|
unitPrice: import("zod").ZodInt;
|
|
@@ -12670,6 +12720,7 @@ export declare const storefrontContract: {
|
|
|
12670
12720
|
}, import("zod/v4/core").$strip>>;
|
|
12671
12721
|
available: import("zod").ZodBoolean;
|
|
12672
12722
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
12723
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
12673
12724
|
variant: import("zod").ZodObject<{
|
|
12674
12725
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12675
12726
|
title: import("zod").ZodString;
|
|
@@ -12864,12 +12915,18 @@ export declare const storefrontContract: {
|
|
|
12864
12915
|
}, import("zod/v4/core").$strip>;
|
|
12865
12916
|
};
|
|
12866
12917
|
}>, {
|
|
12867
|
-
|
|
12918
|
+
INSUFFICIENT_INVENTORY: {
|
|
12868
12919
|
readonly status: 409;
|
|
12869
12920
|
readonly data: import("zod").ZodObject<{
|
|
12870
12921
|
variantId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12871
12922
|
}, import("zod/v4/core").$strip>;
|
|
12872
12923
|
};
|
|
12924
|
+
LINE_HELD: {
|
|
12925
|
+
readonly status: 409;
|
|
12926
|
+
readonly data: import("zod").ZodObject<{
|
|
12927
|
+
lineId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
12928
|
+
}, import("zod/v4/core").$strip>;
|
|
12929
|
+
};
|
|
12873
12930
|
}>, ProcedureMeta<"storefront.read"> & Record<never, never>>;
|
|
12874
12931
|
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
12875
12932
|
token: import("zod").ZodString;
|
|
@@ -12878,6 +12935,11 @@ export declare const storefrontContract: {
|
|
|
12878
12935
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
12879
12936
|
expiresAt: import("zod").ZodISODateTime;
|
|
12880
12937
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12938
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12939
|
+
name: import("zod").ZodString;
|
|
12940
|
+
value: import("zod").ZodString;
|
|
12941
|
+
visible: import("zod").ZodBoolean;
|
|
12942
|
+
}, import("zod/v4/core").$strip>>;
|
|
12881
12943
|
totalQuantity: import("zod").ZodInt;
|
|
12882
12944
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
12883
12945
|
unitPrice: import("zod").ZodInt;
|
|
@@ -12892,6 +12954,7 @@ export declare const storefrontContract: {
|
|
|
12892
12954
|
}, import("zod/v4/core").$strip>>;
|
|
12893
12955
|
available: import("zod").ZodBoolean;
|
|
12894
12956
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
12957
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
12895
12958
|
variant: import("zod").ZodObject<{
|
|
12896
12959
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
12897
12960
|
title: import("zod").ZodString;
|
|
@@ -13095,6 +13158,11 @@ export declare const storefrontContract: {
|
|
|
13095
13158
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
13096
13159
|
expiresAt: import("zod").ZodISODateTime;
|
|
13097
13160
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13161
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13162
|
+
name: import("zod").ZodString;
|
|
13163
|
+
value: import("zod").ZodString;
|
|
13164
|
+
visible: import("zod").ZodBoolean;
|
|
13165
|
+
}, import("zod/v4/core").$strip>>;
|
|
13098
13166
|
totalQuantity: import("zod").ZodInt;
|
|
13099
13167
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13100
13168
|
unitPrice: import("zod").ZodInt;
|
|
@@ -13109,6 +13177,7 @@ export declare const storefrontContract: {
|
|
|
13109
13177
|
}, import("zod/v4/core").$strip>>;
|
|
13110
13178
|
available: import("zod").ZodBoolean;
|
|
13111
13179
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
13180
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
13112
13181
|
variant: import("zod").ZodObject<{
|
|
13113
13182
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
13114
13183
|
title: import("zod").ZodString;
|
|
@@ -13304,6 +13373,248 @@ export declare const storefrontContract: {
|
|
|
13304
13373
|
};
|
|
13305
13374
|
}>, ProcedureMeta<"storefront.read"> & Record<never, never>>;
|
|
13306
13375
|
};
|
|
13376
|
+
customAttributes: {
|
|
13377
|
+
set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
13378
|
+
token: import("zod").ZodString;
|
|
13379
|
+
customAttributes: import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodObject<{
|
|
13380
|
+
name: import("zod").ZodString;
|
|
13381
|
+
value: import("zod").ZodString;
|
|
13382
|
+
visible: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
13383
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodTransform<{
|
|
13384
|
+
name: string;
|
|
13385
|
+
value: string;
|
|
13386
|
+
visible: boolean;
|
|
13387
|
+
}[], {
|
|
13388
|
+
name: string;
|
|
13389
|
+
value: string;
|
|
13390
|
+
visible: boolean;
|
|
13391
|
+
}[]>>;
|
|
13392
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
13393
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
13394
|
+
expiresAt: import("zod").ZodISODateTime;
|
|
13395
|
+
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13396
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13397
|
+
name: import("zod").ZodString;
|
|
13398
|
+
value: import("zod").ZodString;
|
|
13399
|
+
visible: import("zod").ZodBoolean;
|
|
13400
|
+
}, import("zod/v4/core").$strip>>;
|
|
13401
|
+
totalQuantity: import("zod").ZodInt;
|
|
13402
|
+
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13403
|
+
unitPrice: import("zod").ZodInt;
|
|
13404
|
+
compareAtPrice: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
13405
|
+
subtotal: import("zod").ZodInt;
|
|
13406
|
+
discount: import("zod").ZodInt;
|
|
13407
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
13408
|
+
quantity: import("zod").ZodInt;
|
|
13409
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13410
|
+
name: import("zod").ZodString;
|
|
13411
|
+
value: import("zod").ZodString;
|
|
13412
|
+
}, import("zod/v4/core").$strip>>;
|
|
13413
|
+
available: import("zod").ZodBoolean;
|
|
13414
|
+
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
13415
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
13416
|
+
variant: import("zod").ZodObject<{
|
|
13417
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
13418
|
+
title: import("zod").ZodString;
|
|
13419
|
+
sku: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13420
|
+
selectedOptions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13421
|
+
name: import("zod").ZodString;
|
|
13422
|
+
value: import("zod").ZodString;
|
|
13423
|
+
}, import("zod/v4/core").$strip>>;
|
|
13424
|
+
requiresShipping: import("zod").ZodBoolean;
|
|
13425
|
+
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13426
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
13427
|
+
url: import("zod").ZodString;
|
|
13428
|
+
sized: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13429
|
+
width: import("zod").ZodInt;
|
|
13430
|
+
height: import("zod").ZodInt;
|
|
13431
|
+
alt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13432
|
+
thumbhash: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13433
|
+
focalPoint: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13434
|
+
x: import("zod").ZodNumber;
|
|
13435
|
+
y: import("zod").ZodNumber;
|
|
13436
|
+
}, import("zod/v4/core").$strip>>;
|
|
13437
|
+
}, import("zod/v4/core").$strip>>;
|
|
13438
|
+
}, import("zod/v4/core").$strip>;
|
|
13439
|
+
product: import("zod").ZodObject<{
|
|
13440
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`prod_${string}`>, "id:prod", "inout">;
|
|
13441
|
+
handle: import("zod").ZodString;
|
|
13442
|
+
url: import("zod").ZodString;
|
|
13443
|
+
title: import("zod").ZodString;
|
|
13444
|
+
vendor: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13445
|
+
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13446
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
13447
|
+
url: import("zod").ZodString;
|
|
13448
|
+
sized: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13449
|
+
width: import("zod").ZodInt;
|
|
13450
|
+
height: import("zod").ZodInt;
|
|
13451
|
+
alt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13452
|
+
thumbhash: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13453
|
+
focalPoint: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13454
|
+
x: import("zod").ZodNumber;
|
|
13455
|
+
y: import("zod").ZodNumber;
|
|
13456
|
+
}, import("zod/v4/core").$strip>>;
|
|
13457
|
+
}, import("zod/v4/core").$strip>>;
|
|
13458
|
+
}, import("zod/v4/core").$strip>;
|
|
13459
|
+
bundleItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
13460
|
+
quantity: import("zod").ZodInt;
|
|
13461
|
+
variant: import("zod").ZodObject<{
|
|
13462
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
13463
|
+
title: import("zod").ZodString;
|
|
13464
|
+
image: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13465
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`file_${string}`>, "id:file", "inout">;
|
|
13466
|
+
url: import("zod").ZodString;
|
|
13467
|
+
sized: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13468
|
+
width: import("zod").ZodInt;
|
|
13469
|
+
height: import("zod").ZodInt;
|
|
13470
|
+
alt: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13471
|
+
thumbhash: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13472
|
+
focalPoint: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13473
|
+
x: import("zod").ZodNumber;
|
|
13474
|
+
y: import("zod").ZodNumber;
|
|
13475
|
+
}, import("zod/v4/core").$strip>>;
|
|
13476
|
+
}, import("zod/v4/core").$strip>>;
|
|
13477
|
+
}, import("zod/v4/core").$strip>;
|
|
13478
|
+
product: import("zod").ZodObject<{
|
|
13479
|
+
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`prod_${string}`>, "id:prod", "inout">;
|
|
13480
|
+
handle: import("zod").ZodString;
|
|
13481
|
+
title: import("zod").ZodString;
|
|
13482
|
+
}, import("zod/v4/core").$strip>;
|
|
13483
|
+
}, import("zod/v4/core").$strip>>>;
|
|
13484
|
+
}, import("zod/v4/core").$strip>>;
|
|
13485
|
+
discountCode: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
13486
|
+
code: import("zod").ZodString;
|
|
13487
|
+
error: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
13488
|
+
DISCOUNT_EXPIRED: "DISCOUNT_EXPIRED";
|
|
13489
|
+
DISCOUNT_INACTIVE: "DISCOUNT_INACTIVE";
|
|
13490
|
+
DISCOUNT_MINIMUM_NOT_MET: "DISCOUNT_MINIMUM_NOT_MET";
|
|
13491
|
+
DISCOUNT_NOT_ELIGIBLE: "DISCOUNT_NOT_ELIGIBLE";
|
|
13492
|
+
DISCOUNT_USAGE_LIMIT_REACHED: "DISCOUNT_USAGE_LIMIT_REACHED";
|
|
13493
|
+
}>>;
|
|
13494
|
+
atCheckout: import("zod").ZodBoolean;
|
|
13495
|
+
}, import("zod/v4/core").$strip>>;
|
|
13496
|
+
discountApplications: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13497
|
+
source: import("zod").ZodEnum<{
|
|
13498
|
+
automatic: "automatic";
|
|
13499
|
+
code: "code";
|
|
13500
|
+
}>;
|
|
13501
|
+
class: import("zod").ZodEnum<{
|
|
13502
|
+
order: "order";
|
|
13503
|
+
product: "product";
|
|
13504
|
+
shipping: "shipping";
|
|
13505
|
+
}>;
|
|
13506
|
+
title: import("zod").ZodString;
|
|
13507
|
+
code: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13508
|
+
amount: import("zod").ZodInt;
|
|
13509
|
+
allocations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13510
|
+
lineId: import("zod").ZodNullable<import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">>;
|
|
13511
|
+
amount: import("zod").ZodInt;
|
|
13512
|
+
}, import("zod/v4/core").$strip>>;
|
|
13513
|
+
}, import("zod/v4/core").$strip>>;
|
|
13514
|
+
subtotal: import("zod").ZodInt;
|
|
13515
|
+
discount: import("zod").ZodInt;
|
|
13516
|
+
vat: import("zod").ZodInt;
|
|
13517
|
+
taxesIncluded: import("zod").ZodBoolean;
|
|
13518
|
+
total: import("zod").ZodInt;
|
|
13519
|
+
warnings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13520
|
+
code: import("zod").ZodEnum<{
|
|
13521
|
+
MERCHANDISE_NOT_ENOUGH_STOCK: "MERCHANDISE_NOT_ENOUGH_STOCK";
|
|
13522
|
+
MERCHANDISE_OUT_OF_STOCK: "MERCHANDISE_OUT_OF_STOCK";
|
|
13523
|
+
}>;
|
|
13524
|
+
lineId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
13525
|
+
}, import("zod/v4/core").$strip>>;
|
|
13526
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
13527
|
+
readonly UNAUTHENTICATED: {
|
|
13528
|
+
readonly status: 401;
|
|
13529
|
+
readonly data: import("zod").ZodObject<{
|
|
13530
|
+
reason: import("zod").ZodEnum<{
|
|
13531
|
+
expired: "expired";
|
|
13532
|
+
invalid: "invalid";
|
|
13533
|
+
missing: "missing";
|
|
13534
|
+
revoked: "revoked";
|
|
13535
|
+
}>;
|
|
13536
|
+
}, import("zod/v4/core").$strip>;
|
|
13537
|
+
};
|
|
13538
|
+
readonly PERMISSION_DENIED: {
|
|
13539
|
+
readonly status: 403;
|
|
13540
|
+
readonly data: import("zod").ZodObject<{
|
|
13541
|
+
permission: import("zod").ZodString;
|
|
13542
|
+
}, import("zod/v4/core").$strip>;
|
|
13543
|
+
};
|
|
13544
|
+
readonly NOT_FOUND: {
|
|
13545
|
+
readonly status: 404;
|
|
13546
|
+
readonly data: import("zod").ZodObject<{
|
|
13547
|
+
resource: import("zod").ZodString;
|
|
13548
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13549
|
+
}, import("zod/v4/core").$strip>;
|
|
13550
|
+
};
|
|
13551
|
+
readonly CONFLICT: {
|
|
13552
|
+
readonly status: 409;
|
|
13553
|
+
readonly data: import("zod").ZodObject<{
|
|
13554
|
+
resource: import("zod").ZodString;
|
|
13555
|
+
field: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13556
|
+
}, import("zod/v4/core").$strip>;
|
|
13557
|
+
};
|
|
13558
|
+
readonly PRECONDITION_FAILED: {
|
|
13559
|
+
readonly status: 412;
|
|
13560
|
+
readonly data: import("zod").ZodObject<{
|
|
13561
|
+
condition: import("zod").ZodString;
|
|
13562
|
+
categories: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodInt>>;
|
|
13563
|
+
}, import("zod/v4/core").$strip>;
|
|
13564
|
+
};
|
|
13565
|
+
readonly PAYLOAD_TOO_LARGE: {
|
|
13566
|
+
readonly status: 413;
|
|
13567
|
+
readonly data: import("zod").ZodObject<{
|
|
13568
|
+
limitBytes: import("zod").ZodInt;
|
|
13569
|
+
}, import("zod/v4/core").$strip>;
|
|
13570
|
+
};
|
|
13571
|
+
readonly VALIDATION_FAILED: {
|
|
13572
|
+
readonly status: 422;
|
|
13573
|
+
readonly data: import("zod").ZodObject<{
|
|
13574
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13575
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
13576
|
+
code: import("zod").ZodString;
|
|
13577
|
+
params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
13578
|
+
}, import("zod/v4/core").$strip>>;
|
|
13579
|
+
}, import("zod/v4/core").$strip>;
|
|
13580
|
+
};
|
|
13581
|
+
readonly RATE_LIMITED: {
|
|
13582
|
+
readonly status: 429;
|
|
13583
|
+
readonly data: import("zod").ZodObject<{
|
|
13584
|
+
retryAfterSeconds: import("zod").ZodInt;
|
|
13585
|
+
}, import("zod/v4/core").$strip>;
|
|
13586
|
+
};
|
|
13587
|
+
readonly UNAVAILABLE: {
|
|
13588
|
+
readonly status: 503;
|
|
13589
|
+
readonly data: import("zod").ZodObject<{
|
|
13590
|
+
status: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
13591
|
+
}, import("zod/v4/core").$strip>;
|
|
13592
|
+
};
|
|
13593
|
+
readonly DEADLINE_EXCEEDED: {
|
|
13594
|
+
readonly status: 504;
|
|
13595
|
+
readonly data: import("zod").ZodObject<{
|
|
13596
|
+
deadlineMs: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
13597
|
+
}, import("zod/v4/core").$strip>;
|
|
13598
|
+
};
|
|
13599
|
+
}>, {
|
|
13600
|
+
SHOP_UNAVAILABLE: {
|
|
13601
|
+
readonly status: 503;
|
|
13602
|
+
readonly data: import("zod").ZodObject<{
|
|
13603
|
+
status: import("zod").ZodEnum<{
|
|
13604
|
+
closed: "closed";
|
|
13605
|
+
suspended: "suspended";
|
|
13606
|
+
}>;
|
|
13607
|
+
}, import("zod/v4/core").$strip>;
|
|
13608
|
+
};
|
|
13609
|
+
}>, {
|
|
13610
|
+
LIMIT_EXCEEDED: {
|
|
13611
|
+
status: number;
|
|
13612
|
+
data: import("zod").ZodObject<{
|
|
13613
|
+
limit: import("zod").ZodInt;
|
|
13614
|
+
}, import("zod/v4/core").$strip>;
|
|
13615
|
+
};
|
|
13616
|
+
}>, ProcedureMeta<"storefront.read"> & Record<never, never>>;
|
|
13617
|
+
};
|
|
13307
13618
|
discountCode: {
|
|
13308
13619
|
set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
13309
13620
|
token: import("zod").ZodString;
|
|
@@ -13312,6 +13623,11 @@ export declare const storefrontContract: {
|
|
|
13312
13623
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_${string}`>, "id:basket", "inout">;
|
|
13313
13624
|
expiresAt: import("zod").ZodISODateTime;
|
|
13314
13625
|
note: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13626
|
+
customAttributes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13627
|
+
name: import("zod").ZodString;
|
|
13628
|
+
value: import("zod").ZodString;
|
|
13629
|
+
visible: import("zod").ZodBoolean;
|
|
13630
|
+
}, import("zod/v4/core").$strip>>;
|
|
13315
13631
|
totalQuantity: import("zod").ZodInt;
|
|
13316
13632
|
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
13317
13633
|
unitPrice: import("zod").ZodInt;
|
|
@@ -13326,6 +13642,7 @@ export declare const storefrontContract: {
|
|
|
13326
13642
|
}, import("zod/v4/core").$strip>>;
|
|
13327
13643
|
available: import("zod").ZodBoolean;
|
|
13328
13644
|
quantityAvailable: import("zod").ZodNullable<import("zod").ZodInt>;
|
|
13645
|
+
holdExpiresAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
13329
13646
|
variant: import("zod").ZodObject<{
|
|
13330
13647
|
id: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`variant_${string}`>, "id:variant", "inout">;
|
|
13331
13648
|
title: import("zod").ZodString;
|
|
@@ -19776,6 +20093,15 @@ export declare const storefrontContract: {
|
|
|
19776
20093
|
}>;
|
|
19777
20094
|
}, import("zod/v4/core").$strip>;
|
|
19778
20095
|
};
|
|
20096
|
+
readonly HOLD_REFUSED: {
|
|
20097
|
+
readonly status: 409;
|
|
20098
|
+
readonly data: import("zod").ZodObject<{
|
|
20099
|
+
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20100
|
+
lineId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
20101
|
+
message: import("zod").ZodString;
|
|
20102
|
+
}, import("zod/v4/core").$strip>>;
|
|
20103
|
+
}, import("zod/v4/core").$strip>;
|
|
20104
|
+
};
|
|
19779
20105
|
}>, ProcedureMeta<"storefront.read"> & Record<never, never>>;
|
|
19780
20106
|
pay: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
19781
20107
|
token: import("zod").ZodString;
|
|
@@ -19929,6 +20255,15 @@ export declare const storefrontContract: {
|
|
|
19929
20255
|
}>;
|
|
19930
20256
|
}, import("zod/v4/core").$strip>;
|
|
19931
20257
|
};
|
|
20258
|
+
HOLD_REFUSED: {
|
|
20259
|
+
readonly status: 409;
|
|
20260
|
+
readonly data: import("zod").ZodObject<{
|
|
20261
|
+
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20262
|
+
lineId: import("zod/v4/core").$ZodBranded<import("zod").ZodTemplateLiteral<`basket_line_${string}`>, "id:basket_line", "inout">;
|
|
20263
|
+
message: import("zod").ZodString;
|
|
20264
|
+
}, import("zod/v4/core").$strip>>;
|
|
20265
|
+
}, import("zod/v4/core").$strip>;
|
|
20266
|
+
};
|
|
19932
20267
|
NO_PAYMENT_METHOD: {
|
|
19933
20268
|
status: number;
|
|
19934
20269
|
data: import("zod").ZodObject<{}, import("zod/v4/core").$strip>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CustomerSessionData } from "./customer-session.js";
|
|
2
|
+
import { extractClientIp } from "./analytics-proxy.js";
|
|
3
|
+
import { checkSameOriginRequest } from "./csrf.js";
|
|
4
|
+
import { readPasswordGate } from "./password.js";
|
|
5
|
+
/** The api mount's own body cap (`apps/api/src/server.ts`, APP_PROXY_PATH). */
|
|
6
|
+
export declare const MAX_REQUEST_BYTES: number;
|
|
7
|
+
export interface AppProxyRequest {
|
|
8
|
+
/** The buyer's request: its method, the four forwarded headers, the body. */
|
|
9
|
+
request: Request;
|
|
10
|
+
prefix: string;
|
|
11
|
+
subpath: string;
|
|
12
|
+
/** The buyer's path after `/<prefix>/<subpath>`, raw (the api normalises it). */
|
|
13
|
+
path: string;
|
|
14
|
+
/** The raw query string, no `?`. */
|
|
15
|
+
query: string;
|
|
16
|
+
/** The buyer's address as Traefik named it, for a theme server outside a shard. */
|
|
17
|
+
clientIp: string | null | undefined;
|
|
18
|
+
/** The `customer_session` token; absent for a logged-out buyer. */
|
|
19
|
+
customerSessionToken: string | null | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** The storefront's public origin, as the buyer sees it (custom domain included). */
|
|
22
|
+
export declare function requestOrigin(): Promise<string>;
|
|
23
|
+
export declare function proxyAppRequest(input: AppProxyRequest): Promise<Response>;
|
|
24
|
+
/** What `appProxyHandler` (`@shop-on/theme-routes`) takes. Only a theme's
|
|
25
|
+
* `/<prefix>/$` route files import it, and the client build deletes their
|
|
26
|
+
* `server` key and prunes them from the client route tree, so none of this
|
|
27
|
+
* reaches the browser. */
|
|
28
|
+
export declare const appProxyDeps: {
|
|
29
|
+
proxyAppRequest: typeof proxyAppRequest;
|
|
30
|
+
readCustomerSession: () => Promise<CustomerSessionData | undefined>;
|
|
31
|
+
extractClientIp: typeof extractClientIp;
|
|
32
|
+
requestOrigin: typeof requestOrigin;
|
|
33
|
+
checkSameOriginRequest: typeof checkSameOriginRequest;
|
|
34
|
+
readPasswordGate: typeof readPasswordGate;
|
|
35
|
+
};
|