@cimplify/sdk 0.45.1 → 0.45.3
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/{chunk-GCSZYC5C.js → chunk-B2MJQ7SU.js} +45 -137
- package/dist/{chunk-D3TVW7JP.mjs → chunk-J7BUGTAG.mjs} +1 -1
- package/dist/{chunk-T4E4R4YG.js → chunk-KD2HHETX.js} +2 -2
- package/dist/{chunk-W72W6M6M.mjs → chunk-ZTPP7PDU.mjs} +45 -137
- package/dist/mock/cli.mjs +45 -137
- package/dist/mock/library.js +45 -137
- package/dist/mock/library.mjs +45 -137
- package/dist/mock/msw.js +45 -137
- package/dist/mock/msw.mjs +45 -137
- package/dist/styles.css +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.js +77 -77
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
package/dist/testing/suite.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKD2HHETX_js = require('../chunk-KD2HHETX.js');
|
|
4
4
|
require('../chunk-LLZZMHSU.js');
|
|
5
5
|
require('../chunk-GVLWRI5I.js');
|
|
6
6
|
require('../chunk-BN2CXGMO.js');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-B2MJQ7SU.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(() =>
|
|
22
|
+
vitest.expect(() => chunkKD2HHETX_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(
|
|
26
|
+
vitest.expect(chunkKD2HHETX_js.SeedNameSchema.safeParse(b.mock?.seed).success).toBe(true);
|
|
27
27
|
});
|
|
28
28
|
vitest.it("has no placeholder copy left in", () => {
|
|
29
29
|
const offenders = [];
|
|
@@ -55,7 +55,7 @@ ${msg}`);
|
|
|
55
55
|
vitest.expect(b.mock?.businessId).toMatch(/^bus_/);
|
|
56
56
|
});
|
|
57
57
|
vitest.it("zod-parses cleanly", () => {
|
|
58
|
-
const result =
|
|
58
|
+
const result = chunkKD2HHETX_js.BrandSchema.safeParse(opts.brand);
|
|
59
59
|
if (!result.success) {
|
|
60
60
|
throw new Error(
|
|
61
61
|
"Brand schema violations:\n" + result.error.issues.map((i) => ` \u2022 brand.${i.path.join(".")}: ${i.message}`).join("\n")
|
|
@@ -70,23 +70,23 @@ function createCartFlowSuite(opts = {}) {
|
|
|
70
70
|
vitest.describe(opts.label ?? "cart flow against in-process mock", () => {
|
|
71
71
|
let h;
|
|
72
72
|
vitest.beforeEach(() => {
|
|
73
|
-
h =
|
|
73
|
+
h = chunkKD2HHETX_js.createTestClient(opts);
|
|
74
74
|
});
|
|
75
75
|
vitest.afterEach(() => h.dispose());
|
|
76
76
|
vitest.it("starts with an empty cart matching the canonical shape", async () => {
|
|
77
77
|
const res = await h.client.cart.get();
|
|
78
78
|
vitest.expect(res.ok).toBe(true);
|
|
79
79
|
if (!res.ok) return;
|
|
80
|
-
vitest.expect(() =>
|
|
80
|
+
vitest.expect(() => chunkKD2HHETX_js.assertCart(res.value)).not.toThrow();
|
|
81
81
|
vitest.expect(res.value.items).toHaveLength(0);
|
|
82
82
|
});
|
|
83
83
|
vitest.it("adds the first product, persists it, and returns a shape-valid cart", async () => {
|
|
84
|
-
const { product, variantId } = await
|
|
84
|
+
const { product, variantId } = await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
85
85
|
vitest.expect(product.id).toBeTruthy();
|
|
86
86
|
const get = await h.client.cart.get();
|
|
87
87
|
vitest.expect(get.ok).toBe(true);
|
|
88
88
|
if (!get.ok) return;
|
|
89
|
-
vitest.expect(() =>
|
|
89
|
+
vitest.expect(() => chunkKD2HHETX_js.assertCart(get.value)).not.toThrow();
|
|
90
90
|
vitest.expect(get.value.items).toHaveLength(1);
|
|
91
91
|
vitest.expect(get.value.items[0]?.item_id).toBe(product.id);
|
|
92
92
|
if (variantId) {
|
|
@@ -97,8 +97,8 @@ function createCartFlowSuite(opts = {}) {
|
|
|
97
97
|
vitest.expect(parseFloat(String(get.value.pricing.subtotal))).toBeGreaterThan(0);
|
|
98
98
|
});
|
|
99
99
|
vitest.it("dedupes by line_key when adding the same product twice", async () => {
|
|
100
|
-
await
|
|
101
|
-
await
|
|
100
|
+
await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
101
|
+
await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
102
102
|
const res = await h.client.cart.get();
|
|
103
103
|
vitest.expect(res.ok).toBe(true);
|
|
104
104
|
if (!res.ok) return;
|
|
@@ -106,7 +106,7 @@ function createCartFlowSuite(opts = {}) {
|
|
|
106
106
|
vitest.expect(res.value.items[0]?.quantity).toBe(2);
|
|
107
107
|
});
|
|
108
108
|
vitest.it("removes items and zeroes the subtotal", async () => {
|
|
109
|
-
await
|
|
109
|
+
await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
110
110
|
const before = await h.client.cart.get();
|
|
111
111
|
if (!before.ok) throw before.error;
|
|
112
112
|
const itemId = before.value.items[0]?.id;
|
|
@@ -132,28 +132,28 @@ function createContractSuite(opts = {}) {
|
|
|
132
132
|
vitest.describe(opts.label ?? "SDK \u2194 mock contract", () => {
|
|
133
133
|
let h;
|
|
134
134
|
vitest.beforeEach(() => {
|
|
135
|
-
h =
|
|
135
|
+
h = chunkKD2HHETX_js.createTestClient(opts);
|
|
136
136
|
});
|
|
137
137
|
vitest.afterEach(() => h.dispose());
|
|
138
138
|
vitest.it("AddItemPayload schema accepts a minimal valid body", () => {
|
|
139
|
-
const result =
|
|
139
|
+
const result = chunkKD2HHETX_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: 1 });
|
|
140
140
|
vitest.expect(result.success).toBe(true);
|
|
141
141
|
});
|
|
142
142
|
vitest.it("AddItemPayload schema rejects negative quantity", () => {
|
|
143
|
-
const result =
|
|
143
|
+
const result = chunkKD2HHETX_js.AddItemPayloadSchema.safeParse({ item_id: "prod_x", quantity: -1 });
|
|
144
144
|
vitest.expect(result.success).toBe(false);
|
|
145
145
|
});
|
|
146
146
|
vitest.it("AddItemPayload schema rejects empty item_id", () => {
|
|
147
|
-
const result =
|
|
147
|
+
const result = chunkKD2HHETX_js.AddItemPayloadSchema.safeParse({ item_id: "", quantity: 1 });
|
|
148
148
|
vitest.expect(result.success).toBe(false);
|
|
149
149
|
});
|
|
150
150
|
vitest.it("Cart line items returned by the mock match CartItemSchema", async () => {
|
|
151
|
-
const { product } = await
|
|
151
|
+
const { product } = await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
152
152
|
const get = await h.client.cart.get();
|
|
153
153
|
if (!get.ok) throw get.error;
|
|
154
154
|
vitest.expect(get.value.items.length).toBeGreaterThan(0);
|
|
155
155
|
for (const item of get.value.items) {
|
|
156
|
-
const result =
|
|
156
|
+
const result = chunkKD2HHETX_js.CartItemSchema.safeParse(item);
|
|
157
157
|
if (!result.success) {
|
|
158
158
|
const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
|
|
159
159
|
throw new Error(`Cart item shape mismatch for ${product.name}:
|
|
@@ -163,19 +163,19 @@ ${issues}`);
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
vitest.it("CheckoutResponse from the mock includes bill_token", async () => {
|
|
166
|
-
await
|
|
166
|
+
await chunkKD2HHETX_js.fixtures.addFirstProduct(h.client);
|
|
167
167
|
const cartRes = await h.client.cart.get();
|
|
168
168
|
if (!cartRes.ok) throw cartRes.error;
|
|
169
169
|
const checkout = await h.client.checkout.process({
|
|
170
170
|
cart_id: cartRes.value.id,
|
|
171
|
-
customer:
|
|
171
|
+
customer: chunkKD2HHETX_js.fixtures.customer(),
|
|
172
172
|
order_type: "delivery",
|
|
173
173
|
payment_method: "mobile_money",
|
|
174
174
|
mobile_money_details: { phone_number: "+233244000000", provider: "mtn" }
|
|
175
175
|
});
|
|
176
176
|
vitest.expect(checkout.ok).toBe(true);
|
|
177
177
|
if (!checkout.ok) return;
|
|
178
|
-
const result =
|
|
178
|
+
const result = chunkKD2HHETX_js.CheckoutResponseSchema.safeParse(checkout.value);
|
|
179
179
|
if (!result.success) {
|
|
180
180
|
const issues = result.error.issues.map((i) => ` \u2022 ${i.path.join(".")}: ${i.message}`).join("\n");
|
|
181
181
|
throw new Error(`CheckoutResponse shape mismatch:
|
package/dist/testing/suite.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-
|
|
1
|
+
import { assertBrand, SeedNameSchema, BrandSchema, createTestClient, assertCart, fixtures, AddItemPayloadSchema, CartItemSchema, CheckoutResponseSchema } from '../chunk-J7BUGTAG.mjs';
|
|
2
2
|
import '../chunk-RR3ZJQW5.mjs';
|
|
3
3
|
import '../chunk-AIXUFSA6.mjs';
|
|
4
4
|
import '../chunk-NRT6PVW5.mjs';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-ZTPP7PDU.mjs';
|
|
6
6
|
import '../chunk-XPXAZXF2.mjs';
|
|
7
7
|
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
|
|
8
8
|
|
package/dist/testing.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKD2HHETX_js = require('./chunk-KD2HHETX.js');
|
|
4
4
|
require('./chunk-LLZZMHSU.js');
|
|
5
5
|
require('./chunk-GVLWRI5I.js');
|
|
6
6
|
require('./chunk-BN2CXGMO.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-B2MJQ7SU.js');
|
|
8
8
|
require('./chunk-QBQCMQ4F.js');
|
|
9
9
|
var zod = require('zod');
|
|
10
10
|
|
|
11
11
|
var PUBLIC_SCHEMAS = {
|
|
12
|
-
Brand:
|
|
13
|
-
AddItemPayload:
|
|
14
|
-
Cart:
|
|
15
|
-
CartItem:
|
|
16
|
-
CartPricing:
|
|
17
|
-
CheckoutBody:
|
|
18
|
-
CheckoutResponse:
|
|
19
|
-
VariantInfo:
|
|
12
|
+
Brand: chunkKD2HHETX_js.BrandSchema,
|
|
13
|
+
AddItemPayload: chunkKD2HHETX_js.AddItemPayloadSchema,
|
|
14
|
+
Cart: chunkKD2HHETX_js.CartSchema,
|
|
15
|
+
CartItem: chunkKD2HHETX_js.CartItemSchema,
|
|
16
|
+
CartPricing: chunkKD2HHETX_js.CartPricingSchema,
|
|
17
|
+
CheckoutBody: chunkKD2HHETX_js.CheckoutBodySchema,
|
|
18
|
+
CheckoutResponse: chunkKD2HHETX_js.CheckoutResponseSchema,
|
|
19
|
+
VariantInfo: chunkKD2HHETX_js.VariantInfoSchema
|
|
20
20
|
};
|
|
21
21
|
function exportJsonSchemas() {
|
|
22
22
|
const out = {};
|
|
23
23
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
24
|
-
const meta =
|
|
25
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
24
|
+
const meta = chunkKD2HHETX_js.cimplifyRegistry.get(schema);
|
|
25
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkKD2HHETX_js.cimplifyRegistry });
|
|
26
26
|
if (meta) {
|
|
27
27
|
json.$id = meta.id;
|
|
28
28
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -34,16 +34,16 @@ function exportJsonSchemas() {
|
|
|
34
34
|
function listRegisteredSchemas() {
|
|
35
35
|
const entries = [];
|
|
36
36
|
for (const schema of [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
chunkKD2HHETX_js.BrandSchema,
|
|
38
|
+
chunkKD2HHETX_js.AddItemPayloadSchema,
|
|
39
|
+
chunkKD2HHETX_js.CartSchema,
|
|
40
|
+
chunkKD2HHETX_js.CartItemSchema,
|
|
41
|
+
chunkKD2HHETX_js.CartPricingSchema,
|
|
42
|
+
chunkKD2HHETX_js.CheckoutBodySchema,
|
|
43
|
+
chunkKD2HHETX_js.CheckoutResponseSchema,
|
|
44
|
+
chunkKD2HHETX_js.VariantInfoSchema
|
|
45
45
|
]) {
|
|
46
|
-
const meta =
|
|
46
|
+
const meta = chunkKD2HHETX_js.cimplifyRegistry.get(schema);
|
|
47
47
|
if (meta) entries.push({ schema, meta });
|
|
48
48
|
}
|
|
49
49
|
return entries;
|
|
@@ -51,227 +51,227 @@ function listRegisteredSchemas() {
|
|
|
51
51
|
|
|
52
52
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkKD2HHETX_js.AddItemPayloadSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkKD2HHETX_js.AddOnDetailsSchema; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkKD2HHETX_js.AddOnGroupDetailsSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkKD2HHETX_js.AddOnInDetailsSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkKD2HHETX_js.AddOnOptionDetailsSchema; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKD2HHETX_js.AuthorizationTypeSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKD2HHETX_js.BrandContactSchema; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKD2HHETX_js.BrandFaqSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkKD2HHETX_js.BrandHeroSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkKD2HHETX_js.BrandNavLinkSchema; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkKD2HHETX_js.BrandPolicyPageSchema; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkKD2HHETX_js.BrandPolicySectionSchema; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "BrandSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkKD2HHETX_js.BrandSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkKD2HHETX_js.BrandSocialSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkKD2HHETX_js.BundleResolvedSchema; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkKD2HHETX_js.BundleSelectionInputSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkKD2HHETX_js.CartItemSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkKD2HHETX_js.CartPricingSchema; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "CartSchema", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkKD2HHETX_js.CartSchema; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkKD2HHETX_js.CheckoutBodySchema; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkKD2HHETX_js.CheckoutCustomerSchema; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkKD2HHETX_js.CheckoutResponseSchema; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkKD2HHETX_js.ChosenPriceSchema; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkKD2HHETX_js.CompositeResolvedSchema; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkKD2HHETX_js.CompositeSelectionInputSchema; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkKD2HHETX_js.CountryCodeSchema; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkKD2HHETX_js.CurrencyCodeSchema; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkKD2HHETX_js.CustomerInputValueSchema; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkKD2HHETX_js.DiscountDetailsSchema; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkKD2HHETX_js.IsoDateTimeSchema; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkKD2HHETX_js.LineTypeSchema; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkKD2HHETX_js.LocaleSchema; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkKD2HHETX_js.MoneyLooseSchema; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "MoneySchema", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkKD2HHETX_js.MoneySchema; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkKD2HHETX_js.NextActionSchema; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkKD2HHETX_js.PhoneE164Schema; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkKD2HHETX_js.ProductTypeSchema; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkKD2HHETX_js.SchemaViolationError; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkKD2HHETX_js.SeedNameSchema; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkKD2HHETX_js.SelectedAddOnOptionSchema; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkKD2HHETX_js.ServiceStatusSchema; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkKD2HHETX_js.TimestampSchema; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkKD2HHETX_js.VariantDetailsSchema; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkKD2HHETX_js.VariantDisplayAttributeSchema; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkKD2HHETX_js.VariantInfoSchema; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkKD2HHETX_js.assertAddItemPayload; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "assertBrand", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkKD2HHETX_js.assertBrand; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "assertCart", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkKD2HHETX_js.assertCart; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "assertCartItem", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkKD2HHETX_js.assertCartItem; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkKD2HHETX_js.assertCheckoutBody; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkKD2HHETX_js.assertCheckoutResponse; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkKD2HHETX_js.cimplifyRegistry; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "createTestClient", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkKD2HHETX_js.createTestClient; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "fixtures", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkKD2HHETX_js.fixtures; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "makeAssertion", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkKD2HHETX_js.makeAssertion; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "registerSchema", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkKD2HHETX_js.registerSchema; }
|
|
275
275
|
});
|
|
276
276
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
277
277
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-
|
|
2
|
-
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
1
|
+
import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-J7BUGTAG.mjs';
|
|
2
|
+
export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-J7BUGTAG.mjs';
|
|
3
3
|
import './chunk-RR3ZJQW5.mjs';
|
|
4
4
|
import './chunk-AIXUFSA6.mjs';
|
|
5
5
|
import './chunk-NRT6PVW5.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-ZTPP7PDU.mjs';
|
|
7
7
|
import './chunk-XPXAZXF2.mjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
|