@reactionary/core 0.0.80 → 0.0.82
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 +2 -2
- package/initialization.js +0 -17
- package/package.json +1 -1
- package/providers/base.provider.js +1 -29
- package/providers/cart.provider.js +36 -3
- package/providers/inventory.provider.js +3 -2
- package/providers/order.provider.js +39 -3
- package/providers/price.provider.js +19 -12
- package/providers/product.provider.js +34 -11
- package/schemas/models/identifiers.model.js +35 -37
- package/schemas/models/identity.model.js +5 -5
- package/schemas/models/inventory.model.js +7 -5
- package/schemas/models/order.model.js +16 -16
- package/schemas/models/payment.model.js +10 -10
- package/schemas/models/price.model.js +7 -7
- package/schemas/models/product-search.model.js +15 -15
- package/schemas/models/product.model.js +32 -32
- package/schemas/models/profile.model.js +16 -16
- package/schemas/models/shipping-method.model.js +19 -19
- package/schemas/models/store.model.js +7 -4
- package/schemas/mutations/analytics.mutation.js +3 -3
- package/schemas/mutations/cart.mutation.js +19 -19
- package/schemas/mutations/checkout.mutation.js +10 -10
- package/schemas/mutations/profile.mutation.js +2 -2
- package/schemas/queries/cart.query.js +1 -1
- package/schemas/queries/category.query.js +6 -6
- package/schemas/queries/checkout.query.js +3 -3
- package/schemas/queries/inventory.query.js +3 -3
- package/schemas/queries/order.query.js +1 -1
- package/schemas/queries/price.query.js +2 -2
- package/schemas/queries/product-search.query.js +1 -1
- package/schemas/queries/product.query.js +4 -4
- package/schemas/queries/store.query.js +4 -4
- package/src/providers/analytics.provider.d.ts +1 -2
- package/src/providers/base.provider.d.ts +3 -22
- package/src/providers/cart.provider.d.ts +10 -10
- package/src/providers/category.provider.d.ts +7 -7
- package/src/providers/checkout.provider.d.ts +8 -8
- package/src/providers/identity.provider.d.ts +5 -5
- package/src/providers/inventory.provider.d.ts +3 -3
- package/src/providers/order.provider.d.ts +6 -6
- package/src/providers/price.provider.d.ts +5 -5
- package/src/providers/product-search.provider.d.ts +2 -2
- package/src/providers/product.provider.d.ts +5 -12
- package/src/providers/profile.provider.d.ts +3 -3
- package/src/providers/store.provider.d.ts +2 -2
- package/src/schemas/capabilities.schema.d.ts +2 -1
- package/src/schemas/models/analytics.model.d.ts +2 -1
- package/src/schemas/models/base.model.d.ts +6 -5
- package/src/schemas/models/cart.model.d.ts +53 -52
- package/src/schemas/models/category.model.d.ts +7 -6
- package/src/schemas/models/checkout.model.d.ts +94 -93
- package/src/schemas/models/cost.model.d.ts +33 -32
- package/src/schemas/models/currency.model.d.ts +2 -1
- package/src/schemas/models/identifiers.model.d.ts +80 -79
- package/src/schemas/models/identity.model.d.ts +23 -22
- package/src/schemas/models/inventory.model.d.ts +21 -12
- package/src/schemas/models/order.model.d.ts +140 -137
- package/src/schemas/models/payment.model.d.ts +31 -30
- package/src/schemas/models/price.model.d.ts +31 -30
- package/src/schemas/models/product-search.model.d.ts +118 -117
- package/src/schemas/models/product.model.d.ts +137 -136
- package/src/schemas/models/profile.model.d.ts +50 -49
- package/src/schemas/models/shipping-method.model.d.ts +42 -41
- package/src/schemas/models/store.model.d.ts +9 -8
- package/src/schemas/mutations/analytics.mutation.d.ts +48 -47
- package/src/schemas/mutations/base.mutation.d.ts +2 -1
- package/src/schemas/mutations/cart.mutation.d.ts +73 -72
- package/src/schemas/mutations/checkout.mutation.d.ts +96 -95
- package/src/schemas/mutations/identity.mutation.d.ts +4 -3
- package/src/schemas/mutations/profile.mutation.d.ts +4 -3
- package/src/schemas/queries/base.query.d.ts +2 -1
- package/src/schemas/queries/cart.query.d.ts +7 -7
- package/src/schemas/queries/category.query.d.ts +20 -19
- package/src/schemas/queries/checkout.query.d.ts +7 -6
- package/src/schemas/queries/identity.query.d.ts +2 -1
- package/src/schemas/queries/inventory.query.d.ts +8 -7
- package/src/schemas/queries/order.query.d.ts +3 -2
- package/src/schemas/queries/price.query.d.ts +5 -4
- package/src/schemas/queries/product-search.query.d.ts +12 -11
- package/src/schemas/queries/product.query.d.ts +14 -13
- package/src/schemas/queries/profile.query.d.ts +2 -1
- package/src/schemas/queries/store.query.d.ts +6 -5
- package/src/schemas/session.schema.d.ts +1 -1
- package/src/zod-utils.d.ts +5 -0
- package/zod-utils.js +0 -0
|
@@ -1,139 +1,140 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const FacetIdentifierSchema: z.ZodObject<{
|
|
3
|
-
key: z.
|
|
4
|
+
key: z.ZodString;
|
|
4
5
|
}, z.core.$loose>;
|
|
5
6
|
export declare const FacetValueIdentifierSchema: z.ZodObject<{
|
|
6
|
-
facet: z.
|
|
7
|
-
key: z.
|
|
8
|
-
}, z.core.$loose
|
|
9
|
-
key: z.
|
|
7
|
+
facet: z.ZodObject<{
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
key: z.ZodString;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const ProductVariantIdentifierSchema: z.ZodObject<{
|
|
12
|
-
sku: z.
|
|
13
|
+
sku: z.ZodString;
|
|
13
14
|
}, z.core.$loose>;
|
|
14
15
|
export declare const ProductAttributeIdentifierSchema: z.ZodObject<{
|
|
15
|
-
key: z.
|
|
16
|
+
key: z.ZodString;
|
|
16
17
|
}, z.core.$loose>;
|
|
17
18
|
export declare const ProductAttributeValueIdentifierSchema: z.ZodObject<{
|
|
18
|
-
key: z.
|
|
19
|
+
key: z.ZodString;
|
|
19
20
|
}, z.core.$loose>;
|
|
20
21
|
export declare const ProductOptionIdentifierSchema: z.ZodObject<{
|
|
21
|
-
key: z.
|
|
22
|
+
key: z.ZodString;
|
|
22
23
|
}, z.core.$loose>;
|
|
23
24
|
export declare const ProductOptionValueIdentifierSchema: z.ZodObject<{
|
|
24
|
-
option: z.
|
|
25
|
-
key: z.
|
|
26
|
-
}, z.core.$loose
|
|
27
|
-
key: z.
|
|
25
|
+
option: z.ZodObject<{
|
|
26
|
+
key: z.ZodString;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
key: z.ZodString;
|
|
28
29
|
}, z.core.$loose>;
|
|
29
30
|
export declare const ProductIdentifierSchema: z.ZodObject<{
|
|
30
|
-
key: z.
|
|
31
|
+
key: z.ZodString;
|
|
31
32
|
}, z.core.$loose>;
|
|
32
33
|
export declare const ProductSearchIdentifierSchema: z.ZodObject<{
|
|
33
|
-
term: z.
|
|
34
|
-
facets: z.
|
|
35
|
-
facet: z.
|
|
36
|
-
key: z.
|
|
37
|
-
}, z.core.$loose
|
|
38
|
-
key: z.
|
|
39
|
-
}, z.core.$strip
|
|
40
|
-
filters: z.
|
|
41
|
-
paginationOptions: z.
|
|
34
|
+
term: z.ZodString;
|
|
35
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
36
|
+
facet: z.ZodObject<{
|
|
37
|
+
key: z.ZodString;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
key: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
filters: z.ZodArray<z.ZodString>;
|
|
42
|
+
paginationOptions: z.ZodObject<{
|
|
42
43
|
pageNumber: z.ZodDefault<z.ZodNumber>;
|
|
43
44
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
44
|
-
}, z.core.$loose
|
|
45
|
+
}, z.core.$loose>;
|
|
45
46
|
}, z.core.$loose>;
|
|
46
47
|
export declare const CartIdentifierSchema: z.ZodObject<{
|
|
47
|
-
key: z.
|
|
48
|
+
key: z.ZodString;
|
|
48
49
|
}, z.core.$loose>;
|
|
49
50
|
export declare const CartItemIdentifierSchema: z.ZodObject<{
|
|
50
|
-
key: z.
|
|
51
|
+
key: z.ZodString;
|
|
51
52
|
}, z.core.$loose>;
|
|
52
53
|
export declare const PriceIdentifierSchema: z.ZodObject<{
|
|
53
|
-
variant: z.
|
|
54
|
-
sku: z.
|
|
55
|
-
}, z.core.$loose
|
|
54
|
+
variant: z.ZodObject<{
|
|
55
|
+
sku: z.ZodString;
|
|
56
|
+
}, z.core.$loose>;
|
|
56
57
|
}, z.core.$loose>;
|
|
57
58
|
export declare const CategoryIdentifierSchema: z.ZodObject<{
|
|
58
|
-
key: z.
|
|
59
|
+
key: z.ZodString;
|
|
59
60
|
}, z.core.$loose>;
|
|
60
61
|
export declare const StoreIdentifierSchema: z.ZodObject<{
|
|
61
|
-
key: z.
|
|
62
|
+
key: z.ZodString;
|
|
62
63
|
}, z.core.$loose>;
|
|
63
64
|
export declare const OrderIdentifierSchema: z.ZodObject<{
|
|
64
|
-
key: z.
|
|
65
|
+
key: z.ZodString;
|
|
65
66
|
}, z.core.$loose>;
|
|
66
67
|
export declare const OrderItemIdentifierSchema: z.ZodObject<{
|
|
67
|
-
key: z.
|
|
68
|
+
key: z.ZodString;
|
|
68
69
|
}, z.core.$loose>;
|
|
69
70
|
export declare const CheckoutIdentifierSchema: z.ZodObject<{
|
|
70
|
-
key: z.
|
|
71
|
+
key: z.ZodString;
|
|
71
72
|
}, z.core.$loose>;
|
|
72
73
|
export declare const CheckoutItemIdentifierSchema: z.ZodObject<{
|
|
73
|
-
key: z.
|
|
74
|
+
key: z.ZodString;
|
|
74
75
|
}, z.core.$loose>;
|
|
75
76
|
/**
|
|
76
77
|
* The target store the user is interacting with. Can change over time, and is not necessarily the same as the default store.
|
|
77
78
|
*/
|
|
78
79
|
export declare const WebStoreIdentifierSchema: z.ZodObject<{
|
|
79
|
-
key: z.
|
|
80
|
+
key: z.ZodString;
|
|
80
81
|
}, z.core.$loose>;
|
|
81
82
|
export declare const FulfillmentCenterIdentifierSchema: z.ZodObject<{
|
|
82
|
-
key: z.
|
|
83
|
+
key: z.ZodString;
|
|
83
84
|
}, z.core.$loose>;
|
|
84
85
|
export declare const InventoryIdentifierSchema: z.ZodObject<{
|
|
85
|
-
variant: z.
|
|
86
|
-
sku: z.
|
|
87
|
-
}, z.core.$loose
|
|
88
|
-
fulfillmentCenter: z.
|
|
89
|
-
key: z.
|
|
90
|
-
}, z.core.$loose
|
|
86
|
+
variant: z.ZodObject<{
|
|
87
|
+
sku: z.ZodString;
|
|
88
|
+
}, z.core.$loose>;
|
|
89
|
+
fulfillmentCenter: z.ZodObject<{
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
}, z.core.$loose>;
|
|
91
92
|
}, z.core.$loose>;
|
|
92
93
|
export declare const IdentityIdentifierSchema: z.ZodObject<{
|
|
93
|
-
userId: z.
|
|
94
|
+
userId: z.ZodString;
|
|
94
95
|
}, z.core.$loose>;
|
|
95
96
|
export declare const ShippingMethodIdentifierSchema: z.ZodObject<{
|
|
96
|
-
key: z.
|
|
97
|
+
key: z.ZodString;
|
|
97
98
|
}, z.core.$loose>;
|
|
98
99
|
export declare const PaymentMethodIdentifierSchema: z.ZodObject<{
|
|
99
|
-
method: z.
|
|
100
|
-
name: z.
|
|
101
|
-
paymentProcessor: z.
|
|
100
|
+
method: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
paymentProcessor: z.ZodString;
|
|
102
103
|
}, z.core.$loose>;
|
|
103
104
|
export declare const AddressIdentifierSchema: z.ZodObject<{
|
|
104
|
-
nickName: z.
|
|
105
|
+
nickName: z.ZodString;
|
|
105
106
|
}, z.core.$loose>;
|
|
106
107
|
export declare const PaymentInstructionIdentifierSchema: z.ZodObject<{
|
|
107
|
-
key: z.
|
|
108
|
+
key: z.ZodString;
|
|
108
109
|
}, z.core.$loose>;
|
|
109
110
|
export declare const PickupPointIdentifierSchema: z.ZodObject<{
|
|
110
|
-
key: z.
|
|
111
|
-
}, z.core.$loose>;
|
|
112
|
-
export type ProductIdentifier =
|
|
113
|
-
export type ProductVariantIdentifier =
|
|
114
|
-
export type SearchIdentifier =
|
|
115
|
-
export type FacetIdentifier =
|
|
116
|
-
export type FacetValueIdentifier =
|
|
117
|
-
export type CartIdentifier =
|
|
118
|
-
export type CartItemIdentifier =
|
|
119
|
-
export type PriceIdentifier =
|
|
120
|
-
export type CategoryIdentifier =
|
|
121
|
-
export type WebStoreIdentifier =
|
|
122
|
-
export type InventoryIdentifier =
|
|
123
|
-
export type FulfillmentCenterIdentifier =
|
|
124
|
-
export type IdentityIdentifier =
|
|
125
|
-
export type ShippingMethodIdentifier =
|
|
126
|
-
export type PaymentMethodIdentifier =
|
|
127
|
-
export type AddressIdentifier =
|
|
128
|
-
export type PaymentInstructionIdentifier =
|
|
129
|
-
export type OrderIdentifier =
|
|
130
|
-
export type OrderItemIdentifier =
|
|
131
|
-
export type CheckoutIdentifier =
|
|
132
|
-
export type CheckoutItemIdentifier =
|
|
133
|
-
export type PickupPointIdentifier =
|
|
134
|
-
export type StoreIdentifier =
|
|
135
|
-
export type ProductOptionIdentifier =
|
|
136
|
-
export type ProductOptionValueIdentifier =
|
|
137
|
-
export type ProductAttributeIdentifier =
|
|
138
|
-
export type ProductAttributeValueIdentifier =
|
|
111
|
+
key: z.ZodString;
|
|
112
|
+
}, z.core.$loose>;
|
|
113
|
+
export type ProductIdentifier = InferType<typeof ProductIdentifierSchema>;
|
|
114
|
+
export type ProductVariantIdentifier = InferType<typeof ProductVariantIdentifierSchema>;
|
|
115
|
+
export type SearchIdentifier = InferType<typeof ProductSearchIdentifierSchema>;
|
|
116
|
+
export type FacetIdentifier = InferType<typeof FacetIdentifierSchema>;
|
|
117
|
+
export type FacetValueIdentifier = InferType<typeof FacetValueIdentifierSchema>;
|
|
118
|
+
export type CartIdentifier = InferType<typeof CartIdentifierSchema>;
|
|
119
|
+
export type CartItemIdentifier = InferType<typeof CartItemIdentifierSchema>;
|
|
120
|
+
export type PriceIdentifier = InferType<typeof PriceIdentifierSchema>;
|
|
121
|
+
export type CategoryIdentifier = InferType<typeof CategoryIdentifierSchema>;
|
|
122
|
+
export type WebStoreIdentifier = InferType<typeof WebStoreIdentifierSchema>;
|
|
123
|
+
export type InventoryIdentifier = InferType<typeof InventoryIdentifierSchema>;
|
|
124
|
+
export type FulfillmentCenterIdentifier = InferType<typeof FulfillmentCenterIdentifierSchema>;
|
|
125
|
+
export type IdentityIdentifier = InferType<typeof IdentityIdentifierSchema>;
|
|
126
|
+
export type ShippingMethodIdentifier = InferType<typeof ShippingMethodIdentifierSchema>;
|
|
127
|
+
export type PaymentMethodIdentifier = InferType<typeof PaymentMethodIdentifierSchema>;
|
|
128
|
+
export type AddressIdentifier = InferType<typeof AddressIdentifierSchema>;
|
|
129
|
+
export type PaymentInstructionIdentifier = InferType<typeof PaymentInstructionIdentifierSchema>;
|
|
130
|
+
export type OrderIdentifier = InferType<typeof OrderIdentifierSchema>;
|
|
131
|
+
export type OrderItemIdentifier = InferType<typeof OrderItemIdentifierSchema>;
|
|
132
|
+
export type CheckoutIdentifier = InferType<typeof CheckoutIdentifierSchema>;
|
|
133
|
+
export type CheckoutItemIdentifier = InferType<typeof CheckoutItemIdentifierSchema>;
|
|
134
|
+
export type PickupPointIdentifier = InferType<typeof PickupPointIdentifierSchema>;
|
|
135
|
+
export type StoreIdentifier = InferType<typeof StoreIdentifierSchema>;
|
|
136
|
+
export type ProductOptionIdentifier = InferType<typeof ProductOptionIdentifierSchema>;
|
|
137
|
+
export type ProductOptionValueIdentifier = InferType<typeof ProductOptionValueIdentifierSchema>;
|
|
138
|
+
export type ProductAttributeIdentifier = InferType<typeof ProductAttributeIdentifierSchema>;
|
|
139
|
+
export type ProductAttributeValueIdentifier = InferType<typeof ProductAttributeValueIdentifierSchema>;
|
|
139
140
|
export type IdentifierType = ProductIdentifier | ProductVariantIdentifier | SearchIdentifier | FacetIdentifier | FacetValueIdentifier | CartIdentifier | CartItemIdentifier | PriceIdentifier | CategoryIdentifier | WebStoreIdentifier | InventoryIdentifier | FulfillmentCenterIdentifier | IdentityIdentifier | ShippingMethodIdentifier | PaymentMethodIdentifier | AddressIdentifier | PaymentInstructionIdentifier | OrderIdentifier | OrderItemIdentifier | CheckoutIdentifier | CheckoutItemIdentifier | StoreIdentifier | ProductOptionIdentifier | ProductOptionValueIdentifier | PickupPointIdentifier | ProductAttributeIdentifier | ProductAttributeValueIdentifier;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const AnonymousIdentitySchema: z.ZodObject<{
|
|
3
4
|
meta: z.ZodDefault<z.ZodObject<{
|
|
4
5
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -7,7 +8,7 @@ export declare const AnonymousIdentitySchema: z.ZodObject<{
|
|
|
7
8
|
}, z.core.$loose>>;
|
|
8
9
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
9
10
|
}, z.core.$loose>>;
|
|
10
|
-
type: z.
|
|
11
|
+
type: z.ZodLiteral<"Anonymous">;
|
|
11
12
|
}, z.core.$loose>;
|
|
12
13
|
export declare const GuestIdentitySchema: z.ZodObject<{
|
|
13
14
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -17,10 +18,10 @@ export declare const GuestIdentitySchema: z.ZodObject<{
|
|
|
17
18
|
}, z.core.$loose>>;
|
|
18
19
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
19
20
|
}, z.core.$loose>>;
|
|
20
|
-
id: z.
|
|
21
|
-
userId: z.
|
|
22
|
-
}, z.core.$loose
|
|
23
|
-
type: z.
|
|
21
|
+
id: z.ZodObject<{
|
|
22
|
+
userId: z.ZodString;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
type: z.ZodLiteral<"Guest">;
|
|
24
25
|
}, z.core.$loose>;
|
|
25
26
|
export declare const RegisteredIdentitySchema: z.ZodObject<{
|
|
26
27
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -30,10 +31,10 @@ export declare const RegisteredIdentitySchema: z.ZodObject<{
|
|
|
30
31
|
}, z.core.$loose>>;
|
|
31
32
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
32
33
|
}, z.core.$loose>>;
|
|
33
|
-
id: z.
|
|
34
|
-
userId: z.
|
|
35
|
-
}, z.core.$loose
|
|
36
|
-
type: z.
|
|
34
|
+
id: z.ZodObject<{
|
|
35
|
+
userId: z.ZodString;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
type: z.ZodLiteral<"Registered">;
|
|
37
38
|
}, z.core.$loose>;
|
|
38
39
|
export declare const IdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
40
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -43,7 +44,7 @@ export declare const IdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
43
44
|
}, z.core.$loose>>;
|
|
44
45
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
45
46
|
}, z.core.$loose>>;
|
|
46
|
-
type: z.
|
|
47
|
+
type: z.ZodLiteral<"Anonymous">;
|
|
47
48
|
}, z.core.$loose>, z.ZodObject<{
|
|
48
49
|
meta: z.ZodDefault<z.ZodObject<{
|
|
49
50
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -52,10 +53,10 @@ export declare const IdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
52
53
|
}, z.core.$loose>>;
|
|
53
54
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
54
55
|
}, z.core.$loose>>;
|
|
55
|
-
id: z.
|
|
56
|
-
userId: z.
|
|
57
|
-
}, z.core.$loose
|
|
58
|
-
type: z.
|
|
56
|
+
id: z.ZodObject<{
|
|
57
|
+
userId: z.ZodString;
|
|
58
|
+
}, z.core.$loose>;
|
|
59
|
+
type: z.ZodLiteral<"Guest">;
|
|
59
60
|
}, z.core.$loose>, z.ZodObject<{
|
|
60
61
|
meta: z.ZodDefault<z.ZodObject<{
|
|
61
62
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -64,12 +65,12 @@ export declare const IdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
64
65
|
}, z.core.$loose>>;
|
|
65
66
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
66
67
|
}, z.core.$loose>>;
|
|
67
|
-
id: z.
|
|
68
|
-
userId: z.
|
|
69
|
-
}, z.core.$loose
|
|
70
|
-
type: z.
|
|
68
|
+
id: z.ZodObject<{
|
|
69
|
+
userId: z.ZodString;
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
type: z.ZodLiteral<"Registered">;
|
|
71
72
|
}, z.core.$loose>], "type">;
|
|
72
|
-
export type AnonymousIdentity =
|
|
73
|
-
export type GuestIdentity =
|
|
74
|
-
export type RegisteredIdentity =
|
|
75
|
-
export type Identity =
|
|
73
|
+
export type AnonymousIdentity = InferType<typeof AnonymousIdentitySchema>;
|
|
74
|
+
export type GuestIdentity = InferType<typeof GuestIdentitySchema>;
|
|
75
|
+
export type RegisteredIdentity = InferType<typeof RegisteredIdentitySchema>;
|
|
76
|
+
export type Identity = InferType<typeof IdentitySchema>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
3
|
+
export declare const InventoryStatusSchema: z.ZodEnum<{
|
|
4
|
+
inStock: "inStock";
|
|
5
|
+
outOfStock: "outOfStock";
|
|
6
|
+
onBackOrder: "onBackOrder";
|
|
7
|
+
preOrder: "preOrder";
|
|
8
|
+
discontinued: "discontinued";
|
|
9
|
+
}>;
|
|
2
10
|
export declare const InventorySchema: z.ZodObject<{
|
|
3
11
|
meta: z.ZodDefault<z.ZodObject<{
|
|
4
12
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -7,21 +15,22 @@ export declare const InventorySchema: z.ZodObject<{
|
|
|
7
15
|
}, z.core.$loose>>;
|
|
8
16
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
9
17
|
}, z.core.$loose>>;
|
|
10
|
-
identifier: z.
|
|
11
|
-
variant: z.
|
|
12
|
-
sku: z.
|
|
13
|
-
}, z.core.$loose
|
|
14
|
-
fulfillmentCenter: z.
|
|
15
|
-
key: z.
|
|
16
|
-
}, z.core.$loose
|
|
17
|
-
}, z.core.$loose
|
|
18
|
-
quantity: z.
|
|
19
|
-
status: z.
|
|
18
|
+
identifier: z.ZodObject<{
|
|
19
|
+
variant: z.ZodObject<{
|
|
20
|
+
sku: z.ZodString;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
fulfillmentCenter: z.ZodObject<{
|
|
23
|
+
key: z.ZodString;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
quantity: z.ZodNumber;
|
|
27
|
+
status: z.ZodEnum<{
|
|
20
28
|
inStock: "inStock";
|
|
21
29
|
outOfStock: "outOfStock";
|
|
22
30
|
onBackOrder: "onBackOrder";
|
|
23
31
|
preOrder: "preOrder";
|
|
24
32
|
discontinued: "discontinued";
|
|
25
|
-
}
|
|
33
|
+
}>;
|
|
26
34
|
}, z.core.$loose>;
|
|
27
|
-
export type
|
|
35
|
+
export type InventoryStatus = InferType<typeof InventoryStatusSchema>;
|
|
36
|
+
export type Inventory = InferType<typeof InventorySchema>;
|