@kizlo/woocommerce 0.6.0 → 0.6.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/index.d.ts +11 -7
- package/dist/index.js +5 -0
- package/dist/test.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2975,8 +2975,8 @@ declare const ProductStockStatus: z.ZodEnum<{
|
|
|
2975
2975
|
type ProductStockStatus = z.infer<typeof ProductStockStatus>;
|
|
2976
2976
|
declare const PRODUCT_CATALOG_VISIBILITIES: readonly ["any", "visible", "catalog", "search", "hidden"];
|
|
2977
2977
|
declare const ProductCatalogVisibility: z.ZodEnum<{
|
|
2978
|
-
search: "search";
|
|
2979
2978
|
any: "any";
|
|
2979
|
+
search: "search";
|
|
2980
2980
|
visible: "visible";
|
|
2981
2981
|
catalog: "catalog";
|
|
2982
2982
|
hidden: "hidden";
|
|
@@ -3091,8 +3091,8 @@ declare const ListProductInput: z.ZodObject<{
|
|
|
3091
3091
|
and: "and";
|
|
3092
3092
|
}>>;
|
|
3093
3093
|
catalogVisibility: z.ZodOptional<z.ZodEnum<{
|
|
3094
|
-
search: "search";
|
|
3095
3094
|
any: "any";
|
|
3095
|
+
search: "search";
|
|
3096
3096
|
visible: "visible";
|
|
3097
3097
|
catalog: "catalog";
|
|
3098
3098
|
hidden: "hidden";
|
|
@@ -3260,13 +3260,12 @@ declare const ProductAttributeCount: z.ZodObject<{
|
|
|
3260
3260
|
}, z.core.$strip>;
|
|
3261
3261
|
type ProductAttributeCount = z.input<typeof ProductAttributeCount>;
|
|
3262
3262
|
declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
3263
|
-
search: z.ZodOptional<z.ZodString>;
|
|
3264
3263
|
type: z.ZodOptional<z.ZodString>;
|
|
3265
3264
|
sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3266
3265
|
slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3267
3266
|
catalogVisibility: z.ZodOptional<z.ZodEnum<{
|
|
3268
|
-
search: "search";
|
|
3269
3267
|
any: "any";
|
|
3268
|
+
search: "search";
|
|
3270
3269
|
visible: "visible";
|
|
3271
3270
|
catalog: "catalog";
|
|
3272
3271
|
hidden: "hidden";
|
|
@@ -3285,6 +3284,7 @@ declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
|
3285
3284
|
asc: "asc";
|
|
3286
3285
|
desc: "desc";
|
|
3287
3286
|
}>>;
|
|
3287
|
+
search: z.ZodOptional<z.ZodString>;
|
|
3288
3288
|
related: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
3289
3289
|
parent: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
3290
3290
|
page: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
@@ -6053,7 +6053,7 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
6053
6053
|
operator?: "in" | "not_in" | "and" | undefined;
|
|
6054
6054
|
}[] | undefined;
|
|
6055
6055
|
attributeRelation?: "in" | "and" | undefined;
|
|
6056
|
-
catalogVisibility?: "
|
|
6056
|
+
catalogVisibility?: "any" | "search" | "visible" | "catalog" | "hidden" | undefined;
|
|
6057
6057
|
rating?: string | number | (string | number)[] | undefined;
|
|
6058
6058
|
related?: string | number | undefined;
|
|
6059
6059
|
taxonomies?: {
|
|
@@ -6066,11 +6066,10 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
6066
6066
|
}, ProductList, {}>;
|
|
6067
6067
|
filters: kizlo0.Procedure<"api", {
|
|
6068
6068
|
query?: {
|
|
6069
|
-
search?: string | undefined;
|
|
6070
6069
|
type?: string | undefined;
|
|
6071
6070
|
sku?: string | string[] | undefined;
|
|
6072
6071
|
slug?: string | string[] | undefined;
|
|
6073
|
-
catalogVisibility?: "
|
|
6072
|
+
catalogVisibility?: "any" | "search" | "visible" | "catalog" | "hidden" | undefined;
|
|
6074
6073
|
attributes?: {
|
|
6075
6074
|
taxonomy: string;
|
|
6076
6075
|
slug?: string | string[] | undefined;
|
|
@@ -6078,6 +6077,7 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
6078
6077
|
operator?: "in" | "not_in" | "and" | undefined;
|
|
6079
6078
|
}[] | undefined;
|
|
6080
6079
|
order?: "asc" | "desc" | undefined;
|
|
6080
|
+
search?: string | undefined;
|
|
6081
6081
|
related?: string | number | undefined;
|
|
6082
6082
|
parent?: string | number | (string | number)[] | undefined;
|
|
6083
6083
|
page?: string | number | undefined;
|
|
@@ -8881,6 +8881,10 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
8881
8881
|
readonly status: 400;
|
|
8882
8882
|
readonly message: "A payment method is required.";
|
|
8883
8883
|
};
|
|
8884
|
+
readonly CHECKOUT_SHIPPING_OPTION_INVALID: {
|
|
8885
|
+
readonly status: 400;
|
|
8886
|
+
readonly message: "The selected shipping option is missing or unavailable.";
|
|
8887
|
+
};
|
|
8884
8888
|
readonly CHECKOUT_VALIDATION_FAILED: {
|
|
8885
8889
|
readonly status: 400;
|
|
8886
8890
|
readonly message: "Checkout validation failed.";
|
package/dist/index.js
CHANGED
|
@@ -1417,6 +1417,10 @@ const CONFIRM_CHECKOUT_ERROR_MAP = defineErrorMap({
|
|
|
1417
1417
|
status: 400,
|
|
1418
1418
|
message: "A payment method is required."
|
|
1419
1419
|
},
|
|
1420
|
+
CHECKOUT_SHIPPING_OPTION_INVALID: {
|
|
1421
|
+
status: 400,
|
|
1422
|
+
message: "The selected shipping option is missing or unavailable."
|
|
1423
|
+
},
|
|
1420
1424
|
CHECKOUT_VALIDATION_FAILED: {
|
|
1421
1425
|
status: 400,
|
|
1422
1426
|
message: "Checkout validation failed.",
|
|
@@ -1774,6 +1778,7 @@ const CHECKOUT_PROCEDURES = {
|
|
|
1774
1778
|
case "woocommerce_rest_checkout_process_payment_error": throw errors.CHECKOUT_PAYMENT_FAILED({ message: response.error.message });
|
|
1775
1779
|
case "woocommerce_rest_checkout_payment_method_disabled": throw errors.CHECKOUT_PAYMENT_METHOD_DISABLED({ message: response.error.message });
|
|
1776
1780
|
case "woocommerce_rest_checkout_missing_payment_method": throw errors.CHECKOUT_PAYMENT_METHOD_MISSING({ message: response.error.message });
|
|
1781
|
+
case "woocommerce_rest_invalid_shipping_option": throw errors.CHECKOUT_SHIPPING_OPTION_INVALID({ message: response.error.message });
|
|
1777
1782
|
case "woocommerce_rest_checkout_custom_validation_error": throw errors.CHECKOUT_VALIDATION_FAILED({
|
|
1778
1783
|
message: response.error.message,
|
|
1779
1784
|
data: { fields: {} }
|
package/dist/test.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as kizlo19 from "kizlo";
|
|
2
2
|
import { DevPluginSource } from "kizlo/test";
|
|
3
3
|
|
|
4
4
|
//#region src/test/index.d.ts
|
|
@@ -20,6 +20,6 @@ declare const BANK_TRANSFER_DESCRIPTION = "Pay by transferring to our test bank
|
|
|
20
20
|
*/
|
|
21
21
|
declare function woocommerce(opts?: {
|
|
22
22
|
plugins?: DevPluginSource[];
|
|
23
|
-
}):
|
|
23
|
+
}): kizlo19.Fixture;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { BANK_TRANSFER_DESCRIPTION, BANK_TRANSFER_TITLE, woocommerce };
|