@kizlo/woocommerce 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/checkout-validation.d.ts +2 -0
- package/dist/checkout-validation.js +3 -0
- package/dist/index.d.ts +144 -262
- package/dist/index.js +23 -119
- package/dist/schema-ScTHhVY4.d.ts +368 -0
- package/dist/validation-DDEq7ebc.js +337 -0
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -62,7 +62,11 @@ Customer reads use the grouped `billing.additional_fields` adapter backed by pub
|
|
|
62
62
|
|
|
63
63
|
Consumers should deploy the matching WooCommerce plugin and regenerate their contract after upgrading; the old per-field raw `billing.tax_id` response is removed. The native API remains `customer.billing.taxId` and `billingAddress.taxId`. This feature does not validate jurisdiction-specific identifiers or calculate tax exemptions.
|
|
64
64
|
|
|
65
|
-
Storefront field definitions include SDK binding paths derived from the same address identity and native projection contract. For billing Tax ID, `bindings.billing` is `["taxId"]`; there is no shipping binding.
|
|
65
|
+
Storefront field definitions include SDK binding paths derived from the same address identity and native projection contract. For billing Tax ID, `bindings.billing` is `["taxId"]`; there is no shipping binding. See [checkout validation](./docs/checkout-validation.md) to attach server errors through the shared field bindings.
|
|
66
|
+
|
|
67
|
+
## Checkout validation
|
|
68
|
+
|
|
69
|
+
Update, confirm, and retry expose `CHECKOUT_VALIDATION_FAILED.data = { issues }`. Registered fields carry literal IDs and normalized SDK buckets for Kit or standalone consumers to match against loaded bindings. The browser entry retains schemas/types; the SDK resolver is removed. See [client handling and Kit requirements](./docs/checkout-validation.md) and the [breaking handler migration](./docs/checkout-validation-migration.md).
|
|
66
70
|
|
|
67
71
|
## Storefront settings
|
|
68
72
|
|
|
@@ -100,7 +104,9 @@ Address `bindings.billing` and `bindings.shipping` are relative to the address o
|
|
|
100
104
|
|
|
101
105
|
Upgrade the matching plugin and SDK together and regenerate the consumer contract. The field-map/location-list response is replaced by the field array. Kit's group resolvers transform these definitions into form metadata and complete validation schemas; applications decide where and how to render them. Cart-dependent plugin rules remain a separate integration concern; this response does not contain a field document or shopper/session data.
|
|
102
106
|
|
|
103
|
-
|
|
107
|
+
`checkout.localPickup.methodIds` classifies shipping methods supporting local pickup, including plugin methods. An empty list is known empty; `null` means older or malformed producer metadata. See [checkout condition data](./docs/checkout-conditions.md) for the complete client document mapping and Kit handoff.
|
|
108
|
+
|
|
109
|
+
The response is cached in WordPress per locale. Changing a WooCommerce setting clears it and sends the `settings.woocommerce.updated` webhook event; plugin activation/deactivation also invalidates it.
|
|
104
110
|
|
|
105
111
|
## License
|
|
106
112
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { a as StorefrontCountry, c as StorefrontFieldOverride, d as StorefrontPricing, f as CheckoutRegisteredFieldReference, i as StorefrontCheckout, l as StorefrontFieldRule, m as CheckoutValidationIssue, n as StorefrontAddress, o as StorefrontField, p as CheckoutValidationData, r as StorefrontCatalog, s as StorefrontFieldOption, t as Storefront, u as StorefrontFieldSchema } from "./schema-ScTHhVY4.js";
|
|
1
2
|
import * as kizlo0 from "kizlo";
|
|
2
3
|
import { WP_CustomFields, WP_Schema } from "kizlo";
|
|
3
4
|
import * as _kizlo_shared0 from "@kizlo/shared";
|
|
@@ -3769,261 +3770,6 @@ declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
|
3769
3770
|
type RetrieveProductFiltersInput = z.input<typeof RetrieveProductFiltersInput>;
|
|
3770
3771
|
type RetrieveProductFiltersInputOut = z.output<typeof RetrieveProductFiltersInput>;
|
|
3771
3772
|
//#endregion
|
|
3772
|
-
//#region src/storefront/schema.d.ts
|
|
3773
|
-
/**
|
|
3774
|
-
* A plugin-registered field may make `required` or `hidden` a JSON Schema rule evaluated against the
|
|
3775
|
-
* checkout rather than a fixed boolean.
|
|
3776
|
-
*/
|
|
3777
|
-
declare const StorefrontFieldRule: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3778
|
-
type StorefrontFieldRule = z$2.infer<typeof StorefrontFieldRule>;
|
|
3779
|
-
declare const StorefrontFieldOption: z$2.ZodObject<{
|
|
3780
|
-
value: z$2.ZodString;
|
|
3781
|
-
label: z$2.ZodString;
|
|
3782
|
-
}, z$2.core.$strip>;
|
|
3783
|
-
type StorefrontFieldOption = z$2.infer<typeof StorefrontFieldOption>;
|
|
3784
|
-
/** JSON Schema draft-07, retained as data for the consumer's validator. */
|
|
3785
|
-
declare const StorefrontFieldSchema: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3786
|
-
type StorefrontFieldSchema = z$2.infer<typeof StorefrontFieldSchema>;
|
|
3787
|
-
declare const StorefrontField: z$2.ZodObject<{
|
|
3788
|
-
id: z$2.ZodString;
|
|
3789
|
-
location: z$2.ZodEnum<{
|
|
3790
|
-
address: "address";
|
|
3791
|
-
order: "order";
|
|
3792
|
-
contact: "contact";
|
|
3793
|
-
}>;
|
|
3794
|
-
attributes: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3795
|
-
schema: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3796
|
-
bindings: z$2.ZodObject<{
|
|
3797
|
-
billing: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3798
|
-
shipping: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3799
|
-
other: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3800
|
-
}, z$2.core.$strip>;
|
|
3801
|
-
label: z$2.ZodString;
|
|
3802
|
-
optionalLabel: z$2.ZodString;
|
|
3803
|
-
required: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3804
|
-
hidden: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3805
|
-
type: z$2.ZodNullable<z$2.ZodString>;
|
|
3806
|
-
autocomplete: z$2.ZodNullable<z$2.ZodString>;
|
|
3807
|
-
index: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3808
|
-
placeholder: z$2.ZodNullable<z$2.ZodString>;
|
|
3809
|
-
options: z$2.ZodArray<z$2.ZodObject<{
|
|
3810
|
-
value: z$2.ZodString;
|
|
3811
|
-
label: z$2.ZodString;
|
|
3812
|
-
}, z$2.core.$strip>>;
|
|
3813
|
-
}, z$2.core.$strip>;
|
|
3814
|
-
type StorefrontField = z$2.infer<typeof StorefrontField>;
|
|
3815
|
-
/** What a country changes about a field. Anything it leaves out keeps the field's default. */
|
|
3816
|
-
declare const StorefrontFieldOverride: z$2.ZodObject<{
|
|
3817
|
-
label: z$2.ZodOptional<z$2.ZodString>;
|
|
3818
|
-
required: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3819
|
-
hidden: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3820
|
-
index: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3821
|
-
}, z$2.core.$strip>;
|
|
3822
|
-
type StorefrontFieldOverride = z$2.infer<typeof StorefrontFieldOverride>;
|
|
3823
|
-
declare const StorefrontCountry: z$2.ZodObject<{
|
|
3824
|
-
code: z$2.ZodString;
|
|
3825
|
-
name: z$2.ZodString;
|
|
3826
|
-
allowBilling: z$2.ZodBoolean;
|
|
3827
|
-
allowShipping: z$2.ZodBoolean;
|
|
3828
|
-
states: z$2.ZodArray<z$2.ZodObject<{
|
|
3829
|
-
code: z$2.ZodString;
|
|
3830
|
-
name: z$2.ZodString;
|
|
3831
|
-
}, z$2.core.$strip>>;
|
|
3832
|
-
locale: z$2.ZodRecord<z$2.ZodString, z$2.ZodObject<{
|
|
3833
|
-
label: z$2.ZodOptional<z$2.ZodString>;
|
|
3834
|
-
required: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3835
|
-
hidden: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3836
|
-
index: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3837
|
-
}, z$2.core.$strip>>;
|
|
3838
|
-
format: z$2.ZodString;
|
|
3839
|
-
}, z$2.core.$strip>;
|
|
3840
|
-
type StorefrontCountry = z$2.infer<typeof StorefrontCountry>;
|
|
3841
|
-
declare const StorefrontAddress: z$2.ZodObject<{
|
|
3842
|
-
countries: z$2.ZodArray<z$2.ZodObject<{
|
|
3843
|
-
code: z$2.ZodString;
|
|
3844
|
-
name: z$2.ZodString;
|
|
3845
|
-
allowBilling: z$2.ZodBoolean;
|
|
3846
|
-
allowShipping: z$2.ZodBoolean;
|
|
3847
|
-
states: z$2.ZodArray<z$2.ZodObject<{
|
|
3848
|
-
code: z$2.ZodString;
|
|
3849
|
-
name: z$2.ZodString;
|
|
3850
|
-
}, z$2.core.$strip>>;
|
|
3851
|
-
locale: z$2.ZodRecord<z$2.ZodString, z$2.ZodObject<{
|
|
3852
|
-
label: z$2.ZodOptional<z$2.ZodString>;
|
|
3853
|
-
required: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3854
|
-
hidden: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3855
|
-
index: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3856
|
-
}, z$2.core.$strip>>;
|
|
3857
|
-
format: z$2.ZodString;
|
|
3858
|
-
}, z$2.core.$strip>>;
|
|
3859
|
-
defaultAddressFormat: z$2.ZodString;
|
|
3860
|
-
fields: z$2.ZodArray<z$2.ZodObject<{
|
|
3861
|
-
id: z$2.ZodString;
|
|
3862
|
-
location: z$2.ZodEnum<{
|
|
3863
|
-
address: "address";
|
|
3864
|
-
order: "order";
|
|
3865
|
-
contact: "contact";
|
|
3866
|
-
}>;
|
|
3867
|
-
attributes: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3868
|
-
schema: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3869
|
-
bindings: z$2.ZodObject<{
|
|
3870
|
-
billing: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3871
|
-
shipping: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3872
|
-
other: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3873
|
-
}, z$2.core.$strip>;
|
|
3874
|
-
label: z$2.ZodString;
|
|
3875
|
-
optionalLabel: z$2.ZodString;
|
|
3876
|
-
required: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3877
|
-
hidden: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3878
|
-
type: z$2.ZodNullable<z$2.ZodString>;
|
|
3879
|
-
autocomplete: z$2.ZodNullable<z$2.ZodString>;
|
|
3880
|
-
index: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3881
|
-
placeholder: z$2.ZodNullable<z$2.ZodString>;
|
|
3882
|
-
options: z$2.ZodArray<z$2.ZodObject<{
|
|
3883
|
-
value: z$2.ZodString;
|
|
3884
|
-
label: z$2.ZodString;
|
|
3885
|
-
}, z$2.core.$strip>>;
|
|
3886
|
-
}, z$2.core.$strip>>;
|
|
3887
|
-
baseCountry: z$2.ZodString;
|
|
3888
|
-
defaultCountry: z$2.ZodNullable<z$2.ZodString>;
|
|
3889
|
-
}, z$2.core.$strip>;
|
|
3890
|
-
type StorefrontAddress = z$2.infer<typeof StorefrontAddress>;
|
|
3891
|
-
declare const StorefrontCheckout: z$2.ZodObject<{
|
|
3892
|
-
allowsGuest: z$2.ZodBoolean;
|
|
3893
|
-
couponsEnabled: z$2.ZodBoolean;
|
|
3894
|
-
forcedBillingAddress: z$2.ZodBoolean;
|
|
3895
|
-
taxesEnabled: z$2.ZodBoolean;
|
|
3896
|
-
displayCartPricesIncludingTax: z$2.ZodBoolean;
|
|
3897
|
-
displayItemizedTaxes: z$2.ZodBoolean;
|
|
3898
|
-
shippingEnabled: z$2.ZodBoolean;
|
|
3899
|
-
localPickup: z$2.ZodObject<{
|
|
3900
|
-
enabled: z$2.ZodBoolean;
|
|
3901
|
-
title: z$2.ZodString;
|
|
3902
|
-
cost: z$2.ZodString;
|
|
3903
|
-
}, z$2.core.$strip>;
|
|
3904
|
-
}, z$2.core.$strip>;
|
|
3905
|
-
type StorefrontCheckout = z$2.infer<typeof StorefrontCheckout>;
|
|
3906
|
-
declare const StorefrontPricing: z$2.ZodObject<{
|
|
3907
|
-
currency: z$2.ZodObject<{
|
|
3908
|
-
currencyCode: z$2.ZodString;
|
|
3909
|
-
currencySymbol: z$2.ZodString;
|
|
3910
|
-
currencyPrefix: z$2.ZodString;
|
|
3911
|
-
currencySuffix: z$2.ZodString;
|
|
3912
|
-
currencyMinorUnit: z$2.ZodNumber;
|
|
3913
|
-
currencyDecimalSeparator: z$2.ZodString;
|
|
3914
|
-
currencyThousandSeparator: z$2.ZodString;
|
|
3915
|
-
}, z$2.core.$strip>;
|
|
3916
|
-
pricesIncludeTax: z$2.ZodBoolean;
|
|
3917
|
-
displayShopPricesIncludingTax: z$2.ZodBoolean;
|
|
3918
|
-
priceSuffix: z$2.ZodString;
|
|
3919
|
-
}, z$2.core.$strip>;
|
|
3920
|
-
type StorefrontPricing = z$2.infer<typeof StorefrontPricing>;
|
|
3921
|
-
declare const StorefrontCatalog: z$2.ZodObject<{
|
|
3922
|
-
weightUnit: z$2.ZodString;
|
|
3923
|
-
dimensionUnit: z$2.ZodString;
|
|
3924
|
-
reviewsEnabled: z$2.ZodBoolean;
|
|
3925
|
-
reviewRatingsEnabled: z$2.ZodBoolean;
|
|
3926
|
-
reviewRatingRequired: z$2.ZodBoolean;
|
|
3927
|
-
reviewsVerifiedOwnersOnly: z$2.ZodBoolean;
|
|
3928
|
-
stockFormat: z$2.ZodString;
|
|
3929
|
-
hideOutOfStock: z$2.ZodBoolean;
|
|
3930
|
-
placeholderImage: z$2.ZodString;
|
|
3931
|
-
cartRedirectAfterAdd: z$2.ZodBoolean;
|
|
3932
|
-
}, z$2.core.$strip>;
|
|
3933
|
-
type StorefrontCatalog = z$2.infer<typeof StorefrontCatalog>;
|
|
3934
|
-
declare const Storefront: z$2.ZodObject<{
|
|
3935
|
-
address: z$2.ZodObject<{
|
|
3936
|
-
countries: z$2.ZodArray<z$2.ZodObject<{
|
|
3937
|
-
code: z$2.ZodString;
|
|
3938
|
-
name: z$2.ZodString;
|
|
3939
|
-
allowBilling: z$2.ZodBoolean;
|
|
3940
|
-
allowShipping: z$2.ZodBoolean;
|
|
3941
|
-
states: z$2.ZodArray<z$2.ZodObject<{
|
|
3942
|
-
code: z$2.ZodString;
|
|
3943
|
-
name: z$2.ZodString;
|
|
3944
|
-
}, z$2.core.$strip>>;
|
|
3945
|
-
locale: z$2.ZodRecord<z$2.ZodString, z$2.ZodObject<{
|
|
3946
|
-
label: z$2.ZodOptional<z$2.ZodString>;
|
|
3947
|
-
required: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3948
|
-
hidden: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3949
|
-
index: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3950
|
-
}, z$2.core.$strip>>;
|
|
3951
|
-
format: z$2.ZodString;
|
|
3952
|
-
}, z$2.core.$strip>>;
|
|
3953
|
-
defaultAddressFormat: z$2.ZodString;
|
|
3954
|
-
fields: z$2.ZodArray<z$2.ZodObject<{
|
|
3955
|
-
id: z$2.ZodString;
|
|
3956
|
-
location: z$2.ZodEnum<{
|
|
3957
|
-
address: "address";
|
|
3958
|
-
order: "order";
|
|
3959
|
-
contact: "contact";
|
|
3960
|
-
}>;
|
|
3961
|
-
attributes: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3962
|
-
schema: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3963
|
-
bindings: z$2.ZodObject<{
|
|
3964
|
-
billing: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3965
|
-
shipping: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3966
|
-
other: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
3967
|
-
}, z$2.core.$strip>;
|
|
3968
|
-
label: z$2.ZodString;
|
|
3969
|
-
optionalLabel: z$2.ZodString;
|
|
3970
|
-
required: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3971
|
-
hidden: z$2.ZodUnion<readonly [z$2.ZodBoolean, z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>]>;
|
|
3972
|
-
type: z$2.ZodNullable<z$2.ZodString>;
|
|
3973
|
-
autocomplete: z$2.ZodNullable<z$2.ZodString>;
|
|
3974
|
-
index: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3975
|
-
placeholder: z$2.ZodNullable<z$2.ZodString>;
|
|
3976
|
-
options: z$2.ZodArray<z$2.ZodObject<{
|
|
3977
|
-
value: z$2.ZodString;
|
|
3978
|
-
label: z$2.ZodString;
|
|
3979
|
-
}, z$2.core.$strip>>;
|
|
3980
|
-
}, z$2.core.$strip>>;
|
|
3981
|
-
baseCountry: z$2.ZodString;
|
|
3982
|
-
defaultCountry: z$2.ZodNullable<z$2.ZodString>;
|
|
3983
|
-
}, z$2.core.$strip>;
|
|
3984
|
-
checkout: z$2.ZodObject<{
|
|
3985
|
-
allowsGuest: z$2.ZodBoolean;
|
|
3986
|
-
couponsEnabled: z$2.ZodBoolean;
|
|
3987
|
-
forcedBillingAddress: z$2.ZodBoolean;
|
|
3988
|
-
taxesEnabled: z$2.ZodBoolean;
|
|
3989
|
-
displayCartPricesIncludingTax: z$2.ZodBoolean;
|
|
3990
|
-
displayItemizedTaxes: z$2.ZodBoolean;
|
|
3991
|
-
shippingEnabled: z$2.ZodBoolean;
|
|
3992
|
-
localPickup: z$2.ZodObject<{
|
|
3993
|
-
enabled: z$2.ZodBoolean;
|
|
3994
|
-
title: z$2.ZodString;
|
|
3995
|
-
cost: z$2.ZodString;
|
|
3996
|
-
}, z$2.core.$strip>;
|
|
3997
|
-
}, z$2.core.$strip>;
|
|
3998
|
-
pricing: z$2.ZodObject<{
|
|
3999
|
-
currency: z$2.ZodObject<{
|
|
4000
|
-
currencyCode: z$2.ZodString;
|
|
4001
|
-
currencySymbol: z$2.ZodString;
|
|
4002
|
-
currencyPrefix: z$2.ZodString;
|
|
4003
|
-
currencySuffix: z$2.ZodString;
|
|
4004
|
-
currencyMinorUnit: z$2.ZodNumber;
|
|
4005
|
-
currencyDecimalSeparator: z$2.ZodString;
|
|
4006
|
-
currencyThousandSeparator: z$2.ZodString;
|
|
4007
|
-
}, z$2.core.$strip>;
|
|
4008
|
-
pricesIncludeTax: z$2.ZodBoolean;
|
|
4009
|
-
displayShopPricesIncludingTax: z$2.ZodBoolean;
|
|
4010
|
-
priceSuffix: z$2.ZodString;
|
|
4011
|
-
}, z$2.core.$strip>;
|
|
4012
|
-
catalog: z$2.ZodObject<{
|
|
4013
|
-
weightUnit: z$2.ZodString;
|
|
4014
|
-
dimensionUnit: z$2.ZodString;
|
|
4015
|
-
reviewsEnabled: z$2.ZodBoolean;
|
|
4016
|
-
reviewRatingsEnabled: z$2.ZodBoolean;
|
|
4017
|
-
reviewRatingRequired: z$2.ZodBoolean;
|
|
4018
|
-
reviewsVerifiedOwnersOnly: z$2.ZodBoolean;
|
|
4019
|
-
stockFormat: z$2.ZodString;
|
|
4020
|
-
hideOutOfStock: z$2.ZodBoolean;
|
|
4021
|
-
placeholderImage: z$2.ZodString;
|
|
4022
|
-
cartRedirectAfterAdd: z$2.ZodBoolean;
|
|
4023
|
-
}, z$2.core.$strip>;
|
|
4024
|
-
}, z$2.core.$strip>;
|
|
4025
|
-
type Storefront = z$2.infer<typeof Storefront>;
|
|
4026
|
-
//#endregion
|
|
4027
3773
|
//#region src/index.d.ts
|
|
4028
3774
|
declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
4029
3775
|
cart: {
|
|
@@ -4378,8 +4124,53 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
4378
4124
|
readonly status: 400;
|
|
4379
4125
|
readonly message: "Checkout validation failed.";
|
|
4380
4126
|
readonly data: zod0.ZodObject<{
|
|
4381
|
-
|
|
4382
|
-
|
|
4127
|
+
issues: zod0.ZodArray<zod0.ZodDiscriminatedUnion<[zod0.ZodObject<{
|
|
4128
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
4129
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
4130
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
4131
|
+
message: zod0.ZodString;
|
|
4132
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
4133
|
+
id: zod0.ZodString;
|
|
4134
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
4135
|
+
billingAddress: "billingAddress";
|
|
4136
|
+
shippingAddress: "shippingAddress";
|
|
4137
|
+
additionalFields: "additionalFields";
|
|
4138
|
+
}>>;
|
|
4139
|
+
}, zod_v4_core0.$strip>>;
|
|
4140
|
+
scope: zod0.ZodLiteral<"field">;
|
|
4141
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
4142
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
4143
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
4144
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
4145
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
4146
|
+
message: zod0.ZodString;
|
|
4147
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
4148
|
+
id: zod0.ZodString;
|
|
4149
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
4150
|
+
billingAddress: "billingAddress";
|
|
4151
|
+
shippingAddress: "shippingAddress";
|
|
4152
|
+
additionalFields: "additionalFields";
|
|
4153
|
+
}>>;
|
|
4154
|
+
}, zod_v4_core0.$strip>>;
|
|
4155
|
+
scope: zod0.ZodLiteral<"group">;
|
|
4156
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
4157
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
4158
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
4159
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
4160
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
4161
|
+
message: zod0.ZodString;
|
|
4162
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
4163
|
+
id: zod0.ZodString;
|
|
4164
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
4165
|
+
billingAddress: "billingAddress";
|
|
4166
|
+
shippingAddress: "shippingAddress";
|
|
4167
|
+
additionalFields: "additionalFields";
|
|
4168
|
+
}>>;
|
|
4169
|
+
}, zod_v4_core0.$strip>>;
|
|
4170
|
+
scope: zod0.ZodLiteral<"unresolved">;
|
|
4171
|
+
target: zod0.ZodNull;
|
|
4172
|
+
}, zod_v4_core0.$strip>], "scope">>;
|
|
4173
|
+
}, zod_v4_core0.$strict>;
|
|
4383
4174
|
};
|
|
4384
4175
|
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
4385
4176
|
readonly status: 404;
|
|
@@ -6016,8 +5807,53 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
6016
5807
|
readonly status: 400;
|
|
6017
5808
|
readonly message: "Checkout validation failed.";
|
|
6018
5809
|
readonly data: zod0.ZodObject<{
|
|
6019
|
-
|
|
6020
|
-
|
|
5810
|
+
issues: zod0.ZodArray<zod0.ZodDiscriminatedUnion<[zod0.ZodObject<{
|
|
5811
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
5812
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
5813
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
5814
|
+
message: zod0.ZodString;
|
|
5815
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
5816
|
+
id: zod0.ZodString;
|
|
5817
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
5818
|
+
billingAddress: "billingAddress";
|
|
5819
|
+
shippingAddress: "shippingAddress";
|
|
5820
|
+
additionalFields: "additionalFields";
|
|
5821
|
+
}>>;
|
|
5822
|
+
}, zod_v4_core0.$strip>>;
|
|
5823
|
+
scope: zod0.ZodLiteral<"field">;
|
|
5824
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
5825
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
5826
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
5827
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
5828
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
5829
|
+
message: zod0.ZodString;
|
|
5830
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
5831
|
+
id: zod0.ZodString;
|
|
5832
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
5833
|
+
billingAddress: "billingAddress";
|
|
5834
|
+
shippingAddress: "shippingAddress";
|
|
5835
|
+
additionalFields: "additionalFields";
|
|
5836
|
+
}>>;
|
|
5837
|
+
}, zod_v4_core0.$strip>>;
|
|
5838
|
+
scope: zod0.ZodLiteral<"group">;
|
|
5839
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
5840
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
5841
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
5842
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
5843
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
5844
|
+
message: zod0.ZodString;
|
|
5845
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
5846
|
+
id: zod0.ZodString;
|
|
5847
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
5848
|
+
billingAddress: "billingAddress";
|
|
5849
|
+
shippingAddress: "shippingAddress";
|
|
5850
|
+
additionalFields: "additionalFields";
|
|
5851
|
+
}>>;
|
|
5852
|
+
}, zod_v4_core0.$strip>>;
|
|
5853
|
+
scope: zod0.ZodLiteral<"unresolved">;
|
|
5854
|
+
target: zod0.ZodNull;
|
|
5855
|
+
}, zod_v4_core0.$strip>], "scope">>;
|
|
5856
|
+
}, zod_v4_core0.$strict>;
|
|
6021
5857
|
};
|
|
6022
5858
|
readonly CHECKOUT_ACCOUNT_CREATION_FAILED: {
|
|
6023
5859
|
readonly status: 400;
|
|
@@ -8275,8 +8111,53 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
8275
8111
|
readonly status: 400;
|
|
8276
8112
|
readonly message: "Checkout validation failed.";
|
|
8277
8113
|
readonly data: zod0.ZodObject<{
|
|
8278
|
-
|
|
8279
|
-
|
|
8114
|
+
issues: zod0.ZodArray<zod0.ZodDiscriminatedUnion<[zod0.ZodObject<{
|
|
8115
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
8116
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
8117
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
8118
|
+
message: zod0.ZodString;
|
|
8119
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
8120
|
+
id: zod0.ZodString;
|
|
8121
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
8122
|
+
billingAddress: "billingAddress";
|
|
8123
|
+
shippingAddress: "shippingAddress";
|
|
8124
|
+
additionalFields: "additionalFields";
|
|
8125
|
+
}>>;
|
|
8126
|
+
}, zod_v4_core0.$strip>>;
|
|
8127
|
+
scope: zod0.ZodLiteral<"field">;
|
|
8128
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
8129
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
8130
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
8131
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
8132
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
8133
|
+
message: zod0.ZodString;
|
|
8134
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
8135
|
+
id: zod0.ZodString;
|
|
8136
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
8137
|
+
billingAddress: "billingAddress";
|
|
8138
|
+
shippingAddress: "shippingAddress";
|
|
8139
|
+
additionalFields: "additionalFields";
|
|
8140
|
+
}>>;
|
|
8141
|
+
}, zod_v4_core0.$strip>>;
|
|
8142
|
+
scope: zod0.ZodLiteral<"group">;
|
|
8143
|
+
target: zod0.ZodArray<zod0.ZodString>;
|
|
8144
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
8145
|
+
source: zod0.ZodNullable<zod0.ZodString>;
|
|
8146
|
+
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
8147
|
+
code: zod0.ZodNullable<zod0.ZodString>;
|
|
8148
|
+
message: zod0.ZodString;
|
|
8149
|
+
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
8150
|
+
id: zod0.ZodString;
|
|
8151
|
+
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
8152
|
+
billingAddress: "billingAddress";
|
|
8153
|
+
shippingAddress: "shippingAddress";
|
|
8154
|
+
additionalFields: "additionalFields";
|
|
8155
|
+
}>>;
|
|
8156
|
+
}, zod_v4_core0.$strip>>;
|
|
8157
|
+
scope: zod0.ZodLiteral<"unresolved">;
|
|
8158
|
+
target: zod0.ZodNull;
|
|
8159
|
+
}, zod_v4_core0.$strip>], "scope">>;
|
|
8160
|
+
}, zod_v4_core0.$strict>;
|
|
8280
8161
|
};
|
|
8281
8162
|
readonly CHECKOUT_PAYMENT_RESULT_INVALID: {
|
|
8282
8163
|
readonly status: 500;
|
|
@@ -8388,6 +8269,7 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
8388
8269
|
enabled: boolean;
|
|
8389
8270
|
title: string;
|
|
8390
8271
|
cost: string;
|
|
8272
|
+
methodIds: string[] | null;
|
|
8391
8273
|
};
|
|
8392
8274
|
};
|
|
8393
8275
|
pricing: {
|
|
@@ -8420,4 +8302,4 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
8420
8302
|
};
|
|
8421
8303
|
}>;
|
|
8422
8304
|
//#endregion
|
|
8423
|
-
export { AddCartItemInput, type AddressAdditionalFields, type AddressAdditionalFieldsInput, ApplyCouponInput, type BillingAdditionalFields, type BillingAdditionalFieldsInput, BillingFieldProjections, Cart, CartAdditionalFields, CartBillingAddress, CartBillingAddressInput, CartBillingAddressSubmission, CartCoupon, CartCouponTotals, CartError, CartFee, CartFeeTotals, CartItem, CartItemData, CartItemQuantityLimits, CartItemTotals, CartPaymentMethod, CartSelectedAttribute, CartShippingAddress, CartShippingAddressInput, CartShippingAddressSubmission, CartShippingDestination, CartShippingItem, CartShippingPackage, CartShippingRate, CartShippingRateMetadata, CartTaxLine, CartTotals, Checkout, CheckoutAdditionalFields, type CheckoutAdditionalFieldsInput, CheckoutExtensions, CheckoutPaymentData, CheckoutPaymentResult, ConfirmCheckoutInput, type ContactAdditionalFields, GetOrderInput, ListProductInput, ListProductInputOut, Order, OrderFee, OrderItem, OrderItemProduct, OrderTotals, PRODUCT_ATTRIBUTE_RELATIONS, PRODUCT_CATALOG_VISIBILITIES, PRODUCT_DATE_COLUMNS, PRODUCT_RATINGS, PRODUCT_STOCK_STATUSES, PRODUCT_TYPES, Product, ProductAddToCart, ProductAttributeCount, ProductAttributeFilter, ProductAttributeRelation, ProductAttributeSummary, ProductAttributeTermSummary, ProductBrandSummary, ProductCatalogVisibility, ProductCategorySummary, ProductCustomFieldsSchema, ProductDateColumn, ProductDimensions, ProductExtensions, ProductFilters, ProductFiltersAttributeTerm, ProductFiltersPriceRange, ProductFiltersRatingCount, ProductFiltersStockStatus, ProductFiltersTaxonomyTerm, ProductFiltersTerm, ProductList, ProductOrderBy, ProductPriceRange, ProductPrices, ProductRating, ProductRecommendations, ProductStockAvailability, ProductStockStatus, ProductSummary, ProductTagSummary, ProductTaxonomyFilter, ProductTaxonomyOperator, ProductTermSummary, ProductType, ProductVariationAttributeSummary, ProductVariationSummary, type RegisteredFieldGroup, type RegisteredFieldLocations, type RegisteredFieldTarget, RemoveCartItemInput, RemoveCouponInput, RetrieveProductFiltersInput, RetrieveProductFiltersInputOut, RetrieveProductInput, RetryCheckoutInput, SWATCH_TYPES, SelectCartShippingRateInput, Storefront, StorefrontAddress, StorefrontCatalog, StorefrontCheckout, StorefrontCountry, StorefrontField, StorefrontFieldOption, StorefrontFieldOverride, StorefrontFieldRule, StorefrontFieldSchema, StorefrontPricing, SwatchType, UpdateCartInput, UpdateCartItemInput, UpdateCheckoutInput, resolveRegisteredFieldTarget, woocommerce };
|
|
8305
|
+
export { AddCartItemInput, type AddressAdditionalFields, type AddressAdditionalFieldsInput, ApplyCouponInput, type BillingAdditionalFields, type BillingAdditionalFieldsInput, BillingFieldProjections, Cart, CartAdditionalFields, CartBillingAddress, CartBillingAddressInput, CartBillingAddressSubmission, CartCoupon, CartCouponTotals, CartError, CartFee, CartFeeTotals, CartItem, CartItemData, CartItemQuantityLimits, CartItemTotals, CartPaymentMethod, CartSelectedAttribute, CartShippingAddress, CartShippingAddressInput, CartShippingAddressSubmission, CartShippingDestination, CartShippingItem, CartShippingPackage, CartShippingRate, CartShippingRateMetadata, CartTaxLine, CartTotals, Checkout, CheckoutAdditionalFields, type CheckoutAdditionalFieldsInput, CheckoutExtensions, CheckoutPaymentData, CheckoutPaymentResult, CheckoutRegisteredFieldReference, CheckoutValidationData, CheckoutValidationIssue, ConfirmCheckoutInput, type ContactAdditionalFields, GetOrderInput, ListProductInput, ListProductInputOut, Order, OrderFee, OrderItem, OrderItemProduct, OrderTotals, PRODUCT_ATTRIBUTE_RELATIONS, PRODUCT_CATALOG_VISIBILITIES, PRODUCT_DATE_COLUMNS, PRODUCT_RATINGS, PRODUCT_STOCK_STATUSES, PRODUCT_TYPES, Product, ProductAddToCart, ProductAttributeCount, ProductAttributeFilter, ProductAttributeRelation, ProductAttributeSummary, ProductAttributeTermSummary, ProductBrandSummary, ProductCatalogVisibility, ProductCategorySummary, ProductCustomFieldsSchema, ProductDateColumn, ProductDimensions, ProductExtensions, ProductFilters, ProductFiltersAttributeTerm, ProductFiltersPriceRange, ProductFiltersRatingCount, ProductFiltersStockStatus, ProductFiltersTaxonomyTerm, ProductFiltersTerm, ProductList, ProductOrderBy, ProductPriceRange, ProductPrices, ProductRating, ProductRecommendations, ProductStockAvailability, ProductStockStatus, ProductSummary, ProductTagSummary, ProductTaxonomyFilter, ProductTaxonomyOperator, ProductTermSummary, ProductType, ProductVariationAttributeSummary, ProductVariationSummary, type RegisteredFieldGroup, type RegisteredFieldLocations, type RegisteredFieldTarget, RemoveCartItemInput, RemoveCouponInput, RetrieveProductFiltersInput, RetrieveProductFiltersInputOut, RetrieveProductInput, RetryCheckoutInput, SWATCH_TYPES, SelectCartShippingRateInput, Storefront, StorefrontAddress, StorefrontCatalog, StorefrontCheckout, StorefrontCountry, StorefrontField, StorefrontFieldOption, StorefrontFieldOverride, StorefrontFieldRule, StorefrontFieldSchema, StorefrontPricing, SwatchType, UpdateCartInput, UpdateCartItemInput, UpdateCheckoutInput, resolveRegisteredFieldTarget, woocommerce };
|