@cimplify/sdk 0.44.18 → 0.44.20

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.
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk53J2WE4S_js = require('../chunk-53J2WE4S.js');
3
+ var chunkQ4I7JRGO_js = require('../chunk-Q4I7JRGO.js');
4
4
  require('../chunk-3FS3ZDKX.js');
5
5
  require('../chunk-HBRCVJL4.js');
6
6
  require('../chunk-BN2CXGMO.js');
7
- require('../chunk-CCSONJCO.js');
7
+ require('../chunk-PGSM3NQ2.js');
8
8
  require('../chunk-QBQCMQ4F.js');
9
9
  var vitest = require('vitest');
10
10
 
@@ -19,11 +19,11 @@ var PLACEHOLDER_PHRASES = [
19
19
  function createBrandSuite(opts) {
20
20
  vitest.describe(opts.label ?? "brand schema", () => {
21
21
  vitest.it("conforms to the Cimplify brand contract", () => {
22
- vitest.expect(() => chunk53J2WE4S_js.assertBrand(opts.brand)).not.toThrow();
22
+ vitest.expect(() => chunkQ4I7JRGO_js.assertBrand(opts.brand)).not.toThrow();
23
23
  });
24
24
  vitest.it("declares a known mock seed", () => {
25
25
  const b = opts.brand;
26
- vitest.expect(chunk53J2WE4S_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
26
+ vitest.expect(chunkQ4I7JRGO_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
27
27
  });
28
28
  vitest.it("has no placeholder copy left in", () => {
29
29
  const flat = JSON.stringify(opts.brand).toLowerCase();
@@ -36,7 +36,7 @@ function createBrandSuite(opts) {
36
36
  vitest.expect(b.mock?.businessId).toMatch(/^bus_/);
37
37
  });
38
38
  vitest.it("zod-parses cleanly", () => {
39
- const result = chunk53J2WE4S_js.BrandSchema.safeParse(opts.brand);
39
+ const result = chunkQ4I7JRGO_js.BrandSchema.safeParse(opts.brand);
40
40
  if (!result.success) {
41
41
  throw new Error(
42
42
  "Brand schema violations:\n" + result.error.issues.map((i) => ` \u2022 brand.${i.path.join(".")}: ${i.message}`).join("\n")
@@ -51,23 +51,23 @@ function createCartFlowSuite(opts = {}) {
51
51
  vitest.describe(opts.label ?? "cart flow against in-process mock", () => {
52
52
  let h;
53
53
  vitest.beforeEach(() => {
54
- h = chunk53J2WE4S_js.createTestClient(opts);
54
+ h = chunkQ4I7JRGO_js.createTestClient(opts);
55
55
  });
56
56
  vitest.afterEach(() => h.dispose());
57
57
  vitest.it("starts with an empty cart matching the canonical shape", async () => {
58
58
  const res = await h.client.cart.get();
59
59
  vitest.expect(res.ok).toBe(true);
60
60
  if (!res.ok) return;
61
- vitest.expect(() => chunk53J2WE4S_js.assertCart(res.value)).not.toThrow();
61
+ vitest.expect(() => chunkQ4I7JRGO_js.assertCart(res.value)).not.toThrow();
62
62
  vitest.expect(res.value.items).toHaveLength(0);
63
63
  });
64
64
  vitest.it("adds the first product, persists it, and returns a shape-valid cart", async () => {
65
- const { product, variantId } = await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
65
+ const { product, variantId } = await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
66
66
  vitest.expect(product.id).toBeTruthy();
67
67
  const get = await h.client.cart.get();
68
68
  vitest.expect(get.ok).toBe(true);
69
69
  if (!get.ok) return;
70
- vitest.expect(() => chunk53J2WE4S_js.assertCart(get.value)).not.toThrow();
70
+ vitest.expect(() => chunkQ4I7JRGO_js.assertCart(get.value)).not.toThrow();
71
71
  vitest.expect(get.value.items).toHaveLength(1);
72
72
  vitest.expect(get.value.items[0]?.item_id).toBe(product.id);
73
73
  if (variantId) {
@@ -78,8 +78,8 @@ function createCartFlowSuite(opts = {}) {
78
78
  vitest.expect(parseFloat(String(get.value.pricing.subtotal))).toBeGreaterThan(0);
79
79
  });
80
80
  vitest.it("dedupes by line_key when adding the same product twice", async () => {
81
- await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
82
- await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
81
+ await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
82
+ await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
83
83
  const res = await h.client.cart.get();
84
84
  vitest.expect(res.ok).toBe(true);
85
85
  if (!res.ok) return;
@@ -87,7 +87,7 @@ function createCartFlowSuite(opts = {}) {
87
87
  vitest.expect(res.value.items[0]?.quantity).toBe(2);
88
88
  });
89
89
  vitest.it("removes items and zeroes the subtotal", async () => {
90
- await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
90
+ await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
91
91
  const before = await h.client.cart.get();
92
92
  if (!before.ok) throw before.error;
93
93
  const itemId = before.value.items[0]?.id;
@@ -113,28 +113,28 @@ function createContractSuite(opts = {}) {
113
113
  vitest.describe(opts.label ?? "SDK \u2194 mock contract", () => {
114
114
  let h;
115
115
  vitest.beforeEach(() => {
116
- h = chunk53J2WE4S_js.createTestClient(opts);
116
+ h = chunkQ4I7JRGO_js.createTestClient(opts);
117
117
  });
118
118
  vitest.afterEach(() => h.dispose());
119
119
  vitest.it("AddItemPayload schema accepts a minimal valid body", () => {
120
- const result = chunk53J2WE4S_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
120
+ const result = chunkQ4I7JRGO_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
121
121
  vitest.expect(result.success).toBe(true);
122
122
  });
123
123
  vitest.it("AddItemPayload schema rejects negative quantity", () => {
124
- const result = chunk53J2WE4S_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
124
+ const result = chunkQ4I7JRGO_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
125
125
  vitest.expect(result.success).toBe(false);
126
126
  });
127
127
  vitest.it("AddItemPayload schema rejects empty item_id", () => {
128
- const result = chunk53J2WE4S_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
128
+ const result = chunkQ4I7JRGO_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
129
129
  vitest.expect(result.success).toBe(false);
130
130
  });
131
131
  vitest.it("Cart line items returned by the mock match CartItemSchema", async () => {
132
- const { product } = await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
132
+ const { product } = await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
133
133
  const get = await h.client.cart.get();
134
134
  if (!get.ok) throw get.error;
135
135
  vitest.expect(get.value.items.length).toBeGreaterThan(0);
136
136
  for (const item of get.value.items) {
137
- const result = chunk53J2WE4S_js.CartItemSchema.safeParse(item);
137
+ const result = chunkQ4I7JRGO_js.CartItemSchema.safeParse(item);
138
138
  if (!result.success) {
139
139
  const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
140
140
  throw new Error(`Cart item shape mismatch for ${product.name}:
@@ -144,19 +144,19 @@ ${issues}`);
144
144
  }
145
145
  });
146
146
  vitest.it("CheckoutResponse from the mock includes bill_token", async () => {
147
- await chunk53J2WE4S_js.fixtures.addFirstProduct(h.client);
147
+ await chunkQ4I7JRGO_js.fixtures.addFirstProduct(h.client);
148
148
  const cartRes = await h.client.cart.get();
149
149
  if (!cartRes.ok) throw cartRes.error;
150
150
  const checkout = await h.client.checkout.process({
151
151
  cart_id: cartRes.value.id,
152
- customer: chunk53J2WE4S_js.fixtures.customer(),
152
+ customer: chunkQ4I7JRGO_js.fixtures.customer(),
153
153
  order_type: "delivery",
154
154
  payment_method: "mobile_money",
155
155
  mobile_money_details: { phone_number: "+233244000000", provider: "mtn" }
156
156
  });
157
157
  vitest.expect(checkout.ok).toBe(true);
158
158
  if (!checkout.ok) return;
159
- const result = chunk53J2WE4S_js.CheckoutResponseSchema.safeParse(checkout.value);
159
+ const result = chunkQ4I7JRGO_js.CheckoutResponseSchema.safeParse(checkout.value);
160
160
  if (!result.success) {
161
161
  const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
162
162
  throw new Error(`CheckoutResponse shape mismatch:
@@ -1,8 +1,8 @@
1
- import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-VDH3O7UB.mjs';
1
+ import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-GLOO4HUN.mjs';
2
2
  import '../chunk-5OK3YDZC.mjs';
3
3
  import '../chunk-XZPO5GEM.mjs';
4
4
  import '../chunk-NRT6PVW5.mjs';
5
- import '../chunk-MJBSVUHO.mjs';
5
+ import '../chunk-KSKZAXG2.mjs';
6
6
  import '../chunk-XPXAZXF2.mjs';
7
7
  import { describe, it, expect, beforeEach, afterEach } from 'vitest';
8
8
 
@@ -667,7 +667,9 @@ declare const VariantInfoSchema: z.ZodObject<{
667
667
  id: z.ZodString;
668
668
  name: z.ZodString;
669
669
  sku: z.ZodOptional<z.ZodString>;
670
+ price: z.ZodString;
670
671
  price_adjustment: z.ZodString;
672
+ is_default: z.ZodBoolean;
671
673
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
674
  axis_id: z.ZodString;
673
675
  axis_name: z.ZodString;
@@ -689,10 +691,68 @@ declare const ChosenPriceSchema: z.ZodObject<{
689
691
  markup_discount_percentage: z.ZodString;
690
692
  markup_discount_amount: z.ZodString;
691
693
  }, z.core.$strip>;
694
+ declare const SelectedAddOnOptionSchema: z.ZodObject<{
695
+ option_id: z.ZodString;
696
+ add_on_id: z.ZodString;
697
+ name: z.ZodString;
698
+ price: z.ZodString;
699
+ quantity: z.ZodNumber;
700
+ is_required: z.ZodBoolean;
701
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
702
+ price_info: z.ZodOptional<z.ZodUnknown>;
703
+ }, z.core.$strip>;
704
+ declare const AddOnInDetailsSchema: z.ZodObject<{
705
+ add_on_id: z.ZodString;
706
+ name: z.ZodString;
707
+ min_selections: z.ZodNumber;
708
+ max_selections: z.ZodNumber;
709
+ selected_options: z.ZodArray<z.ZodString>;
710
+ is_required: z.ZodBoolean;
711
+ }, z.core.$strip>;
692
712
  declare const AddOnDetailsSchema: z.ZodObject<{
693
- selected_options: z.ZodArray<z.ZodUnknown>;
713
+ selected_options: z.ZodArray<z.ZodObject<{
714
+ option_id: z.ZodString;
715
+ add_on_id: z.ZodString;
716
+ name: z.ZodString;
717
+ price: z.ZodString;
718
+ quantity: z.ZodNumber;
719
+ is_required: z.ZodBoolean;
720
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
721
+ price_info: z.ZodOptional<z.ZodUnknown>;
722
+ }, z.core.$strip>>;
694
723
  total_add_on_price: z.ZodString;
695
- add_ons: z.ZodArray<z.ZodUnknown>;
724
+ add_ons: z.ZodArray<z.ZodObject<{
725
+ add_on_id: z.ZodString;
726
+ name: z.ZodString;
727
+ min_selections: z.ZodNumber;
728
+ max_selections: z.ZodNumber;
729
+ selected_options: z.ZodArray<z.ZodString>;
730
+ is_required: z.ZodBoolean;
731
+ }, z.core.$strip>>;
732
+ }, z.core.$strip>;
733
+ declare const AddOnOptionDetailsSchema: z.ZodObject<{
734
+ id: z.ZodString;
735
+ name: z.ZodString;
736
+ is_required: z.ZodBoolean;
737
+ description: z.ZodOptional<z.ZodString>;
738
+ price: z.ZodOptional<z.ZodString>;
739
+ image_url: z.ZodOptional<z.ZodString>;
740
+ }, z.core.$strip>;
741
+ declare const AddOnGroupDetailsSchema: z.ZodObject<{
742
+ id: z.ZodString;
743
+ name: z.ZodString;
744
+ is_multiple_allowed: z.ZodBoolean;
745
+ min_selections: z.ZodNumber;
746
+ max_selections: z.ZodNumber;
747
+ required: z.ZodBoolean;
748
+ options: z.ZodArray<z.ZodObject<{
749
+ id: z.ZodString;
750
+ name: z.ZodString;
751
+ is_required: z.ZodBoolean;
752
+ description: z.ZodOptional<z.ZodString>;
753
+ price: z.ZodOptional<z.ZodString>;
754
+ image_url: z.ZodOptional<z.ZodString>;
755
+ }, z.core.$strip>>;
696
756
  }, z.core.$strip>;
697
757
  declare const BundleResolvedSchema: z.ZodObject<{
698
758
  bundle_id: z.ZodString;
@@ -738,7 +798,9 @@ declare const CartItemSchema: z.ZodObject<{
738
798
  id: z.ZodString;
739
799
  name: z.ZodString;
740
800
  sku: z.ZodOptional<z.ZodString>;
801
+ price: z.ZodString;
741
802
  price_adjustment: z.ZodString;
803
+ is_default: z.ZodBoolean;
742
804
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
743
805
  axis_id: z.ZodString;
744
806
  axis_name: z.ZodString;
@@ -767,12 +829,50 @@ declare const CartItemSchema: z.ZodObject<{
767
829
  add_on_option_ids: z.ZodArray<z.ZodString>;
768
830
  add_on_ids: z.ZodArray<z.ZodString>;
769
831
  add_on_details: z.ZodObject<{
770
- selected_options: z.ZodArray<z.ZodUnknown>;
832
+ selected_options: z.ZodArray<z.ZodObject<{
833
+ option_id: z.ZodString;
834
+ add_on_id: z.ZodString;
835
+ name: z.ZodString;
836
+ price: z.ZodString;
837
+ quantity: z.ZodNumber;
838
+ is_required: z.ZodBoolean;
839
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
840
+ price_info: z.ZodOptional<z.ZodUnknown>;
841
+ }, z.core.$strip>>;
771
842
  total_add_on_price: z.ZodString;
772
- add_ons: z.ZodArray<z.ZodUnknown>;
843
+ add_ons: z.ZodArray<z.ZodObject<{
844
+ add_on_id: z.ZodString;
845
+ name: z.ZodString;
846
+ min_selections: z.ZodNumber;
847
+ max_selections: z.ZodNumber;
848
+ selected_options: z.ZodArray<z.ZodString>;
849
+ is_required: z.ZodBoolean;
850
+ }, z.core.$strip>>;
773
851
  }, z.core.$strip>;
774
- add_on_options: z.ZodArray<z.ZodUnknown>;
775
- add_ons: z.ZodArray<z.ZodUnknown>;
852
+ add_on_options: z.ZodArray<z.ZodObject<{
853
+ id: z.ZodString;
854
+ name: z.ZodString;
855
+ is_required: z.ZodBoolean;
856
+ description: z.ZodOptional<z.ZodString>;
857
+ price: z.ZodOptional<z.ZodString>;
858
+ image_url: z.ZodOptional<z.ZodString>;
859
+ }, z.core.$strip>>;
860
+ add_ons: z.ZodArray<z.ZodObject<{
861
+ id: z.ZodString;
862
+ name: z.ZodString;
863
+ is_multiple_allowed: z.ZodBoolean;
864
+ min_selections: z.ZodNumber;
865
+ max_selections: z.ZodNumber;
866
+ required: z.ZodBoolean;
867
+ options: z.ZodArray<z.ZodObject<{
868
+ id: z.ZodString;
869
+ name: z.ZodString;
870
+ is_required: z.ZodBoolean;
871
+ description: z.ZodOptional<z.ZodString>;
872
+ price: z.ZodOptional<z.ZodString>;
873
+ image_url: z.ZodOptional<z.ZodString>;
874
+ }, z.core.$strip>>;
875
+ }, z.core.$strip>>;
776
876
  scheduled_start: z.ZodOptional<z.ZodString>;
777
877
  scheduled_end: z.ZodOptional<z.ZodString>;
778
878
  staff_id: z.ZodOptional<z.ZodString>;
@@ -844,12 +944,50 @@ declare const assertCartItem: (value: unknown) => asserts value is {
844
944
  add_on_option_ids: string[];
845
945
  add_on_ids: string[];
846
946
  add_on_details: {
847
- selected_options: unknown[];
947
+ selected_options: {
948
+ option_id: string;
949
+ add_on_id: string;
950
+ name: string;
951
+ price: string;
952
+ quantity: number;
953
+ is_required: boolean;
954
+ selected_at: string;
955
+ price_info?: unknown;
956
+ }[];
848
957
  total_add_on_price: string;
849
- add_ons: unknown[];
958
+ add_ons: {
959
+ add_on_id: string;
960
+ name: string;
961
+ min_selections: number;
962
+ max_selections: number;
963
+ selected_options: string[];
964
+ is_required: boolean;
965
+ }[];
850
966
  };
851
- add_on_options: unknown[];
852
- add_ons: unknown[];
967
+ add_on_options: {
968
+ id: string;
969
+ name: string;
970
+ is_required: boolean;
971
+ description?: string | undefined;
972
+ price?: string | undefined;
973
+ image_url?: string | undefined;
974
+ }[];
975
+ add_ons: {
976
+ id: string;
977
+ name: string;
978
+ is_multiple_allowed: boolean;
979
+ min_selections: number;
980
+ max_selections: number;
981
+ required: boolean;
982
+ options: {
983
+ id: string;
984
+ name: string;
985
+ is_required: boolean;
986
+ description?: string | undefined;
987
+ price?: string | undefined;
988
+ image_url?: string | undefined;
989
+ }[];
990
+ }[];
853
991
  applied_discount_ids: string[];
854
992
  created_at: string;
855
993
  updated_at: string;
@@ -862,7 +1000,9 @@ declare const assertCartItem: (value: unknown) => asserts value is {
862
1000
  variant_info?: {
863
1001
  id: string;
864
1002
  name: string;
1003
+ price: string;
865
1004
  price_adjustment: string;
1005
+ is_default: boolean;
866
1006
  sku?: string | undefined;
867
1007
  display_attributes?: {
868
1008
  axis_id: string;
@@ -954,7 +1094,9 @@ declare const CartSchema: z.ZodObject<{
954
1094
  id: z.ZodString;
955
1095
  name: z.ZodString;
956
1096
  sku: z.ZodOptional<z.ZodString>;
1097
+ price: z.ZodString;
957
1098
  price_adjustment: z.ZodString;
1099
+ is_default: z.ZodBoolean;
958
1100
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
959
1101
  axis_id: z.ZodString;
960
1102
  axis_name: z.ZodString;
@@ -983,12 +1125,50 @@ declare const CartSchema: z.ZodObject<{
983
1125
  add_on_option_ids: z.ZodArray<z.ZodString>;
984
1126
  add_on_ids: z.ZodArray<z.ZodString>;
985
1127
  add_on_details: z.ZodObject<{
986
- selected_options: z.ZodArray<z.ZodUnknown>;
1128
+ selected_options: z.ZodArray<z.ZodObject<{
1129
+ option_id: z.ZodString;
1130
+ add_on_id: z.ZodString;
1131
+ name: z.ZodString;
1132
+ price: z.ZodString;
1133
+ quantity: z.ZodNumber;
1134
+ is_required: z.ZodBoolean;
1135
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
1136
+ price_info: z.ZodOptional<z.ZodUnknown>;
1137
+ }, z.core.$strip>>;
987
1138
  total_add_on_price: z.ZodString;
988
- add_ons: z.ZodArray<z.ZodUnknown>;
1139
+ add_ons: z.ZodArray<z.ZodObject<{
1140
+ add_on_id: z.ZodString;
1141
+ name: z.ZodString;
1142
+ min_selections: z.ZodNumber;
1143
+ max_selections: z.ZodNumber;
1144
+ selected_options: z.ZodArray<z.ZodString>;
1145
+ is_required: z.ZodBoolean;
1146
+ }, z.core.$strip>>;
989
1147
  }, z.core.$strip>;
990
- add_on_options: z.ZodArray<z.ZodUnknown>;
991
- add_ons: z.ZodArray<z.ZodUnknown>;
1148
+ add_on_options: z.ZodArray<z.ZodObject<{
1149
+ id: z.ZodString;
1150
+ name: z.ZodString;
1151
+ is_required: z.ZodBoolean;
1152
+ description: z.ZodOptional<z.ZodString>;
1153
+ price: z.ZodOptional<z.ZodString>;
1154
+ image_url: z.ZodOptional<z.ZodString>;
1155
+ }, z.core.$strip>>;
1156
+ add_ons: z.ZodArray<z.ZodObject<{
1157
+ id: z.ZodString;
1158
+ name: z.ZodString;
1159
+ is_multiple_allowed: z.ZodBoolean;
1160
+ min_selections: z.ZodNumber;
1161
+ max_selections: z.ZodNumber;
1162
+ required: z.ZodBoolean;
1163
+ options: z.ZodArray<z.ZodObject<{
1164
+ id: z.ZodString;
1165
+ name: z.ZodString;
1166
+ is_required: z.ZodBoolean;
1167
+ description: z.ZodOptional<z.ZodString>;
1168
+ price: z.ZodOptional<z.ZodString>;
1169
+ image_url: z.ZodOptional<z.ZodString>;
1170
+ }, z.core.$strip>>;
1171
+ }, z.core.$strip>>;
992
1172
  scheduled_start: z.ZodOptional<z.ZodString>;
993
1173
  scheduled_end: z.ZodOptional<z.ZodString>;
994
1174
  staff_id: z.ZodOptional<z.ZodString>;
@@ -1087,12 +1267,50 @@ declare const assertCart: (value: unknown) => asserts value is {
1087
1267
  add_on_option_ids: string[];
1088
1268
  add_on_ids: string[];
1089
1269
  add_on_details: {
1090
- selected_options: unknown[];
1270
+ selected_options: {
1271
+ option_id: string;
1272
+ add_on_id: string;
1273
+ name: string;
1274
+ price: string;
1275
+ quantity: number;
1276
+ is_required: boolean;
1277
+ selected_at: string;
1278
+ price_info?: unknown;
1279
+ }[];
1091
1280
  total_add_on_price: string;
1092
- add_ons: unknown[];
1281
+ add_ons: {
1282
+ add_on_id: string;
1283
+ name: string;
1284
+ min_selections: number;
1285
+ max_selections: number;
1286
+ selected_options: string[];
1287
+ is_required: boolean;
1288
+ }[];
1093
1289
  };
1094
- add_on_options: unknown[];
1095
- add_ons: unknown[];
1290
+ add_on_options: {
1291
+ id: string;
1292
+ name: string;
1293
+ is_required: boolean;
1294
+ description?: string | undefined;
1295
+ price?: string | undefined;
1296
+ image_url?: string | undefined;
1297
+ }[];
1298
+ add_ons: {
1299
+ id: string;
1300
+ name: string;
1301
+ is_multiple_allowed: boolean;
1302
+ min_selections: number;
1303
+ max_selections: number;
1304
+ required: boolean;
1305
+ options: {
1306
+ id: string;
1307
+ name: string;
1308
+ is_required: boolean;
1309
+ description?: string | undefined;
1310
+ price?: string | undefined;
1311
+ image_url?: string | undefined;
1312
+ }[];
1313
+ }[];
1096
1314
  applied_discount_ids: string[];
1097
1315
  created_at: string;
1098
1316
  updated_at: string;
@@ -1105,7 +1323,9 @@ declare const assertCart: (value: unknown) => asserts value is {
1105
1323
  variant_info?: {
1106
1324
  id: string;
1107
1325
  name: string;
1326
+ price: string;
1108
1327
  price_adjustment: string;
1328
+ is_default: boolean;
1109
1329
  sku?: string | undefined;
1110
1330
  display_attributes?: {
1111
1331
  axis_id: string;
@@ -1581,7 +1801,9 @@ declare const PUBLIC_SCHEMAS: {
1581
1801
  id: z.ZodString;
1582
1802
  name: z.ZodString;
1583
1803
  sku: z.ZodOptional<z.ZodString>;
1804
+ price: z.ZodString;
1584
1805
  price_adjustment: z.ZodString;
1806
+ is_default: z.ZodBoolean;
1585
1807
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1586
1808
  axis_id: z.ZodString;
1587
1809
  axis_name: z.ZodString;
@@ -1610,12 +1832,50 @@ declare const PUBLIC_SCHEMAS: {
1610
1832
  add_on_option_ids: z.ZodArray<z.ZodString>;
1611
1833
  add_on_ids: z.ZodArray<z.ZodString>;
1612
1834
  add_on_details: z.ZodObject<{
1613
- selected_options: z.ZodArray<z.ZodUnknown>;
1835
+ selected_options: z.ZodArray<z.ZodObject<{
1836
+ option_id: z.ZodString;
1837
+ add_on_id: z.ZodString;
1838
+ name: z.ZodString;
1839
+ price: z.ZodString;
1840
+ quantity: z.ZodNumber;
1841
+ is_required: z.ZodBoolean;
1842
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
1843
+ price_info: z.ZodOptional<z.ZodUnknown>;
1844
+ }, z.core.$strip>>;
1614
1845
  total_add_on_price: z.ZodString;
1615
- add_ons: z.ZodArray<z.ZodUnknown>;
1846
+ add_ons: z.ZodArray<z.ZodObject<{
1847
+ add_on_id: z.ZodString;
1848
+ name: z.ZodString;
1849
+ min_selections: z.ZodNumber;
1850
+ max_selections: z.ZodNumber;
1851
+ selected_options: z.ZodArray<z.ZodString>;
1852
+ is_required: z.ZodBoolean;
1853
+ }, z.core.$strip>>;
1616
1854
  }, z.core.$strip>;
1617
- add_on_options: z.ZodArray<z.ZodUnknown>;
1618
- add_ons: z.ZodArray<z.ZodUnknown>;
1855
+ add_on_options: z.ZodArray<z.ZodObject<{
1856
+ id: z.ZodString;
1857
+ name: z.ZodString;
1858
+ is_required: z.ZodBoolean;
1859
+ description: z.ZodOptional<z.ZodString>;
1860
+ price: z.ZodOptional<z.ZodString>;
1861
+ image_url: z.ZodOptional<z.ZodString>;
1862
+ }, z.core.$strip>>;
1863
+ add_ons: z.ZodArray<z.ZodObject<{
1864
+ id: z.ZodString;
1865
+ name: z.ZodString;
1866
+ is_multiple_allowed: z.ZodBoolean;
1867
+ min_selections: z.ZodNumber;
1868
+ max_selections: z.ZodNumber;
1869
+ required: z.ZodBoolean;
1870
+ options: z.ZodArray<z.ZodObject<{
1871
+ id: z.ZodString;
1872
+ name: z.ZodString;
1873
+ is_required: z.ZodBoolean;
1874
+ description: z.ZodOptional<z.ZodString>;
1875
+ price: z.ZodOptional<z.ZodString>;
1876
+ image_url: z.ZodOptional<z.ZodString>;
1877
+ }, z.core.$strip>>;
1878
+ }, z.core.$strip>>;
1619
1879
  scheduled_start: z.ZodOptional<z.ZodString>;
1620
1880
  scheduled_end: z.ZodOptional<z.ZodString>;
1621
1881
  staff_id: z.ZodOptional<z.ZodString>;
@@ -1709,7 +1969,9 @@ declare const PUBLIC_SCHEMAS: {
1709
1969
  id: z.ZodString;
1710
1970
  name: z.ZodString;
1711
1971
  sku: z.ZodOptional<z.ZodString>;
1972
+ price: z.ZodString;
1712
1973
  price_adjustment: z.ZodString;
1974
+ is_default: z.ZodBoolean;
1713
1975
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1714
1976
  axis_id: z.ZodString;
1715
1977
  axis_name: z.ZodString;
@@ -1738,12 +2000,50 @@ declare const PUBLIC_SCHEMAS: {
1738
2000
  add_on_option_ids: z.ZodArray<z.ZodString>;
1739
2001
  add_on_ids: z.ZodArray<z.ZodString>;
1740
2002
  add_on_details: z.ZodObject<{
1741
- selected_options: z.ZodArray<z.ZodUnknown>;
2003
+ selected_options: z.ZodArray<z.ZodObject<{
2004
+ option_id: z.ZodString;
2005
+ add_on_id: z.ZodString;
2006
+ name: z.ZodString;
2007
+ price: z.ZodString;
2008
+ quantity: z.ZodNumber;
2009
+ is_required: z.ZodBoolean;
2010
+ selected_at: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodString]>;
2011
+ price_info: z.ZodOptional<z.ZodUnknown>;
2012
+ }, z.core.$strip>>;
1742
2013
  total_add_on_price: z.ZodString;
1743
- add_ons: z.ZodArray<z.ZodUnknown>;
2014
+ add_ons: z.ZodArray<z.ZodObject<{
2015
+ add_on_id: z.ZodString;
2016
+ name: z.ZodString;
2017
+ min_selections: z.ZodNumber;
2018
+ max_selections: z.ZodNumber;
2019
+ selected_options: z.ZodArray<z.ZodString>;
2020
+ is_required: z.ZodBoolean;
2021
+ }, z.core.$strip>>;
1744
2022
  }, z.core.$strip>;
1745
- add_on_options: z.ZodArray<z.ZodUnknown>;
1746
- add_ons: z.ZodArray<z.ZodUnknown>;
2023
+ add_on_options: z.ZodArray<z.ZodObject<{
2024
+ id: z.ZodString;
2025
+ name: z.ZodString;
2026
+ is_required: z.ZodBoolean;
2027
+ description: z.ZodOptional<z.ZodString>;
2028
+ price: z.ZodOptional<z.ZodString>;
2029
+ image_url: z.ZodOptional<z.ZodString>;
2030
+ }, z.core.$strip>>;
2031
+ add_ons: z.ZodArray<z.ZodObject<{
2032
+ id: z.ZodString;
2033
+ name: z.ZodString;
2034
+ is_multiple_allowed: z.ZodBoolean;
2035
+ min_selections: z.ZodNumber;
2036
+ max_selections: z.ZodNumber;
2037
+ required: z.ZodBoolean;
2038
+ options: z.ZodArray<z.ZodObject<{
2039
+ id: z.ZodString;
2040
+ name: z.ZodString;
2041
+ is_required: z.ZodBoolean;
2042
+ description: z.ZodOptional<z.ZodString>;
2043
+ price: z.ZodOptional<z.ZodString>;
2044
+ image_url: z.ZodOptional<z.ZodString>;
2045
+ }, z.core.$strip>>;
2046
+ }, z.core.$strip>>;
1747
2047
  scheduled_start: z.ZodOptional<z.ZodString>;
1748
2048
  scheduled_end: z.ZodOptional<z.ZodString>;
1749
2049
  staff_id: z.ZodOptional<z.ZodString>;
@@ -1855,7 +2155,9 @@ declare const PUBLIC_SCHEMAS: {
1855
2155
  id: z.ZodString;
1856
2156
  name: z.ZodString;
1857
2157
  sku: z.ZodOptional<z.ZodString>;
2158
+ price: z.ZodString;
1858
2159
  price_adjustment: z.ZodString;
2160
+ is_default: z.ZodBoolean;
1859
2161
  display_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1860
2162
  axis_id: z.ZodString;
1861
2163
  axis_name: z.ZodString;
@@ -1882,4 +2184,4 @@ declare function listRegisteredSchemas(): Array<{
1882
2184
  meta: CimplifySchemaMeta;
1883
2185
  }>;
1884
2186
 
1885
- export { type AddItemPayload, AddItemPayloadSchema, AddOnDetailsSchema, AuthorizationTypeSchema, type Brand, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, type Cart, type CartItem, CartItemSchema, CartPricingSchema, CartSchema, type CheckoutBody, CheckoutBodySchema, CheckoutCustomerSchema, type CheckoutResponse, CheckoutResponseSchema, ChosenPriceSchema, type CimplifySchemaMeta, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, type PublicSchemaName, SchemaViolationError, SeedNameSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
2187
+ export { type AddItemPayload, AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, type Brand, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, type Cart, type CartItem, CartItemSchema, CartPricingSchema, CartSchema, type CheckoutBody, CheckoutBodySchema, CheckoutCustomerSchema, type CheckoutResponse, CheckoutResponseSchema, ChosenPriceSchema, type CimplifySchemaMeta, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, type PublicSchemaName, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };