@reactionary/core 0.0.69 → 0.0.71
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/decorators/reactionary.decorator.js +50 -33
- package/index.js +10 -10
- package/package.json +1 -1
- package/schemas/capabilities.schema.js +2 -1
- package/schemas/mutations/checkout.mutation.js +5 -5
- package/schemas/queries/category.query.js +10 -10
- package/schemas/queries/price.query.js +3 -1
- package/src/decorators/reactionary.decorator.d.ts +22 -3
- package/src/index.d.ts +2 -2
- package/src/schemas/capabilities.schema.d.ts +1 -0
- package/src/schemas/mutations/checkout.mutation.d.ts +1888 -12
- package/src/schemas/queries/category.query.d.ts +10 -10
- package/src/schemas/queries/price.query.d.ts +2 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const CategoryQueryByIdSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
5
5
|
}, z.core.$loose>>;
|
|
6
6
|
}, z.core.$loose>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const CategoryQueryBySlugSchema: z.ZodObject<{
|
|
8
8
|
slug: z.ZodDefault<z.ZodString>;
|
|
9
9
|
}, z.core.$loose>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const CategoryQueryForBreadcrumbSchema: z.ZodObject<{
|
|
11
11
|
id: z.ZodDefault<z.ZodObject<{
|
|
12
12
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
13
13
|
}, z.core.$loose>>;
|
|
14
14
|
}, z.core.$loose>;
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const CategoryQueryForChildCategoriesSchema: z.ZodObject<{
|
|
16
16
|
parentId: z.ZodDefault<z.ZodObject<{
|
|
17
17
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
18
18
|
}, z.core.$loose>>;
|
|
@@ -21,14 +21,14 @@ export declare const CategoryQueryForChildCategories: z.ZodObject<{
|
|
|
21
21
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
22
22
|
}, z.core.$loose>>;
|
|
23
23
|
}, z.core.$loose>;
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const CategoryQueryForTopCategoriesSchema: z.ZodObject<{
|
|
25
25
|
paginationOptions: z.ZodDefault<z.ZodObject<{
|
|
26
26
|
pageNumber: z.ZodDefault<z.ZodNumber>;
|
|
27
27
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
28
28
|
}, z.core.$loose>>;
|
|
29
29
|
}, z.core.$loose>;
|
|
30
|
-
export type CategoryQueryById = z.infer<typeof
|
|
31
|
-
export type CategoryQueryBySlug = z.infer<typeof
|
|
32
|
-
export type CategoryQueryForBreadcrumb = z.infer<typeof
|
|
33
|
-
export type CategoryQueryForChildCategories = z.infer<typeof
|
|
34
|
-
export type CategoryQueryForTopCategories = z.infer<typeof
|
|
30
|
+
export type CategoryQueryById = z.infer<typeof CategoryQueryByIdSchema>;
|
|
31
|
+
export type CategoryQueryBySlug = z.infer<typeof CategoryQueryBySlugSchema>;
|
|
32
|
+
export type CategoryQueryForBreadcrumb = z.infer<typeof CategoryQueryForBreadcrumbSchema>;
|
|
33
|
+
export type CategoryQueryForChildCategories = z.infer<typeof CategoryQueryForChildCategoriesSchema>;
|
|
34
|
+
export type CategoryQueryForTopCategories = z.infer<typeof CategoryQueryForTopCategoriesSchema>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const PriceQueryBySkuSchema: z.ZodObject<{
|
|
3
3
|
variant: z.ZodObject<{
|
|
4
4
|
sku: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
|
|
5
5
|
}, z.core.$loose>;
|
|
6
|
+
type: z.ZodDefault<z.ZodLiteral<"List" | "Offer">>;
|
|
6
7
|
}, z.core.$loose>;
|
|
7
8
|
export type PriceQueryBySku = z.infer<typeof PriceQueryBySkuSchema>;
|