@reactionary/core 0.0.70 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/core",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
@@ -10,7 +10,8 @@ const CapabilitiesSchema = z.looseObject({
10
10
  inventory: z.boolean(),
11
11
  price: z.boolean(),
12
12
  category: z.boolean(),
13
- store: z.boolean()
13
+ store: z.boolean(),
14
+ profile: z.boolean()
14
15
  });
15
16
  export {
16
17
  CapabilitiesSchema
@@ -1,15 +1,15 @@
1
1
  import { z } from "zod";
2
- import { CartIdentifierSchema, AddressSchema, PaymentInstructionIdentifierSchema, PaymentInstructionSchema, ShippingInstructionSchema } from "../models/index.js";
2
+ import { CartIdentifierSchema, AddressSchema, PaymentInstructionIdentifierSchema, PaymentInstructionSchema, ShippingInstructionSchema, CartSchema } from "../models/index.js";
3
3
  import { BaseMutationSchema } from "./base.mutation.js";
4
4
  const CheckoutMutationInitiateCheckoutSchema = BaseMutationSchema.extend({
5
- cart: CartIdentifierSchema.required(),
6
- billingAddress: AddressSchema.omit({ identifier: true }).optional(),
5
+ cart: CartSchema.required(),
6
+ billingAddress: AddressSchema.omit({ identifier: true, meta: true }).optional(),
7
7
  notificationEmail: z.string().optional(),
8
8
  notificationPhone: z.string().optional()
9
9
  });
10
10
  const CheckoutMutationSetShippingAddressSchema = BaseMutationSchema.extend({
11
11
  checkout: CartIdentifierSchema.required(),
12
- shippingAddress: AddressSchema.omit({ identifier: true }).required()
12
+ shippingAddress: AddressSchema.omit({ identifier: true, meta: true }).required()
13
13
  });
14
14
  const CheckoutMutationFinalizeCheckoutSchema = BaseMutationSchema.extend({
15
15
  checkout: CartIdentifierSchema.required()
@@ -1,7 +1,9 @@
1
+ import { z } from "zod";
1
2
  import { BaseQuerySchema } from "./base.query.js";
2
3
  import { ProductVariantIdentifierSchema } from "../models/identifiers.model.js";
3
4
  const PriceQueryBySkuSchema = BaseQuerySchema.extend({
4
- variant: ProductVariantIdentifierSchema.required()
5
+ variant: ProductVariantIdentifierSchema.required(),
6
+ type: z.literal(["List", "Offer"]).default("List")
5
7
  });
6
8
  export {
7
9
  PriceQueryBySkuSchema
@@ -11,5 +11,6 @@ export declare const CapabilitiesSchema: z.ZodObject<{
11
11
  price: z.ZodBoolean;
12
12
  category: z.ZodBoolean;
13
13
  store: z.ZodBoolean;
14
+ profile: z.ZodBoolean;
14
15
  }, z.core.$loose>;
15
16
  export type Capabilities = z.infer<typeof CapabilitiesSchema>;