@cimplify/sdk 0.103.0 → 0.104.0
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/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-C2JSNJUC.mjs → chunk-2WPVUIHX.mjs} +52 -11
- package/dist/{chunk-JG5CQNCB.js → chunk-4BKOKHE3.js} +4 -0
- package/dist/{chunk-R6OLQ33I.js → chunk-5BDYDZ4U.js} +239 -87
- package/dist/{chunk-H7ACMHM3.mjs → chunk-5RT4HYMP.mjs} +32 -4
- package/dist/{chunk-NNG6IFFX.js → chunk-7PDEX54K.js} +3 -3
- package/dist/{chunk-M4URVKHE.mjs → chunk-DYIAX3WI.mjs} +1 -1
- package/dist/{chunk-QOWPGS7Z.js → chunk-E4K2VQDD.js} +35 -5
- package/dist/{chunk-VNPEYLB2.mjs → chunk-H3RATH4B.mjs} +4 -0
- package/dist/{chunk-JSWJ4XDE.js → chunk-IQFFSKE2.js} +315 -108
- package/dist/{chunk-J6PNHDHL.mjs → chunk-OCCNG6MO.mjs} +284 -77
- package/dist/{chunk-GERXZQSX.mjs → chunk-OKADBZAI.mjs} +171 -20
- package/dist/{chunk-VIL6IQCG.js → chunk-YVAEY3VC.js} +54 -13
- package/dist/{client-Dqg2mc-7.d.ts → client-BVNWjk6W.d.ts} +2 -2
- package/dist/{client-BfpNjJ_a.d.mts → client-BuLcOWLv.d.ts} +115 -23
- package/dist/{client-DHBwvh7U.d.ts → client-D5AoobFc.d.mts} +115 -23
- package/dist/{client-DpqRobY9.d.mts → client-fM716k7G.d.mts} +2 -2
- package/dist/{index-C8uDqLwJ.d.ts → index-BtcoqrY1.d.ts} +3 -3
- package/dist/{index-e2y6AK70.d.mts → index-D7Tf3v7c.d.mts} +3 -3
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +107 -106
- package/dist/index.mjs +6 -5
- package/dist/{link-cuNVYc2s.d.mts → link-D9iSVxt5.d.mts} +12 -1
- package/dist/{link-cuNVYc2s.d.ts → link-D9iSVxt5.d.ts} +12 -1
- package/dist/mock/cli.mjs +53 -10
- package/dist/mock/library.js +53 -10
- package/dist/mock/library.mjs +53 -10
- package/dist/mock/msw.js +53 -10
- package/dist/mock/msw.mjs +53 -10
- package/dist/{payment-H5LoIvXU.d.mts → payment-g0HFkEDU.d.mts} +519 -54
- package/dist/{payment-H5LoIvXU.d.ts → payment-g0HFkEDU.d.ts} +519 -54
- package/dist/{price-C2RqscMY.d.ts → price-BLIeAb8K.d.ts} +1 -1
- package/dist/{price-BvePgDXe.d.mts → price-Czq_cTC_.d.mts} +1 -1
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +193 -169
- package/dist/react.mjs +54 -30
- package/dist/{server-C7FyLdrz.d.mts → server-BkVhOIwn.d.mts} +4 -2
- package/dist/{server-DoXIpSd7.d.ts → server-DKK_D-PP.d.ts} +4 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +11 -10
- package/dist/server.mjs +5 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +46 -6
- package/dist/testing.d.ts +46 -6
- package/dist/testing.js +94 -82
- package/dist/testing.mjs +13 -9
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +31 -31
- package/dist/utils.mjs +2 -2
- package/package.json +1 -1
- package/registry/chat-widget.json +1 -1
package/dist/testing.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { $ZodType } from 'zod/v4/core';
|
|
3
|
-
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-
|
|
4
|
-
import './client-
|
|
5
|
-
import './payment-
|
|
6
|
-
import './link-
|
|
7
|
-
import './server-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-fM716k7G.mjs';
|
|
4
|
+
import './client-D5AoobFc.mjs';
|
|
5
|
+
import './payment-g0HFkEDU.mjs';
|
|
6
|
+
import './link-D9iSVxt5.mjs';
|
|
7
|
+
import './server-BkVhOIwn.mjs';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1512,6 +1512,7 @@ declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1512
1512
|
provider: z.ZodString;
|
|
1513
1513
|
client_secret: z.ZodString;
|
|
1514
1514
|
public_key: z.ZodString;
|
|
1515
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
1515
1516
|
}, z.core.$strip>, z.ZodObject<{
|
|
1516
1517
|
type: z.ZodLiteral<"redirect">;
|
|
1517
1518
|
authorization_url: z.ZodString;
|
|
@@ -1561,6 +1562,7 @@ declare const CheckoutResponseSchema: z.ZodObject<{
|
|
|
1561
1562
|
provider: z.ZodString;
|
|
1562
1563
|
client_secret: z.ZodString;
|
|
1563
1564
|
public_key: z.ZodString;
|
|
1565
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
1564
1566
|
}, z.core.$strip>, z.ZodObject<{
|
|
1565
1567
|
type: z.ZodLiteral<"redirect">;
|
|
1566
1568
|
authorization_url: z.ZodString;
|
|
@@ -1604,6 +1606,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1604
1606
|
provider: string;
|
|
1605
1607
|
client_secret: string;
|
|
1606
1608
|
public_key: string;
|
|
1609
|
+
provider_account_id?: string | undefined;
|
|
1607
1610
|
} | {
|
|
1608
1611
|
type: "redirect";
|
|
1609
1612
|
authorization_url: string;
|
|
@@ -1639,6 +1642,26 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1639
1642
|
public_key?: string | null | undefined;
|
|
1640
1643
|
};
|
|
1641
1644
|
|
|
1645
|
+
/** Link OTP verification wire input. `challenge_id` remains optional only for
|
|
1646
|
+
* clients talking to the bounded rolling-deployment compatibility bridge. */
|
|
1647
|
+
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
1648
|
+
challenge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1649
|
+
contact: z.ZodString;
|
|
1650
|
+
contact_type: z.ZodEnum<{
|
|
1651
|
+
email: "email";
|
|
1652
|
+
phone: "phone";
|
|
1653
|
+
}>;
|
|
1654
|
+
otp_code: z.ZodString;
|
|
1655
|
+
}, z.core.$strict>;
|
|
1656
|
+
/** The authoritative response from Link OTP issuance. */
|
|
1657
|
+
declare const RequestOtpResponseSchema: z.ZodObject<{
|
|
1658
|
+
success: z.ZodBoolean;
|
|
1659
|
+
challenge_id: z.ZodString;
|
|
1660
|
+
message: z.ZodString;
|
|
1661
|
+
expires_in: z.ZodNumber;
|
|
1662
|
+
is_new_account: z.ZodBoolean;
|
|
1663
|
+
}, z.core.$strict>;
|
|
1664
|
+
|
|
1642
1665
|
/**
|
|
1643
1666
|
* JSON Schema export — feeds OpenAPI generators, agent prompts,
|
|
1644
1667
|
* codegen tooling, and CI contract-snapshot diffs.
|
|
@@ -2275,6 +2298,7 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2275
2298
|
provider: z.ZodString;
|
|
2276
2299
|
client_secret: z.ZodString;
|
|
2277
2300
|
public_key: z.ZodString;
|
|
2301
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
2278
2302
|
}, z.core.$strip>, z.ZodObject<{
|
|
2279
2303
|
type: z.ZodLiteral<"redirect">;
|
|
2280
2304
|
authorization_url: z.ZodString;
|
|
@@ -2319,6 +2343,22 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2319
2343
|
}, z.core.$strip>>>;
|
|
2320
2344
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2321
2345
|
}, z.core.$strip>;
|
|
2346
|
+
readonly VerifyOtpRequest: z.ZodObject<{
|
|
2347
|
+
challenge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2348
|
+
contact: z.ZodString;
|
|
2349
|
+
contact_type: z.ZodEnum<{
|
|
2350
|
+
email: "email";
|
|
2351
|
+
phone: "phone";
|
|
2352
|
+
}>;
|
|
2353
|
+
otp_code: z.ZodString;
|
|
2354
|
+
}, z.core.$strict>;
|
|
2355
|
+
readonly RequestOtpResponse: z.ZodObject<{
|
|
2356
|
+
success: z.ZodBoolean;
|
|
2357
|
+
challenge_id: z.ZodString;
|
|
2358
|
+
message: z.ZodString;
|
|
2359
|
+
expires_in: z.ZodNumber;
|
|
2360
|
+
is_new_account: z.ZodBoolean;
|
|
2361
|
+
}, z.core.$strict>;
|
|
2322
2362
|
};
|
|
2323
2363
|
type PublicSchemaName = keyof typeof PUBLIC_SCHEMAS;
|
|
2324
2364
|
/**
|
|
@@ -2337,4 +2377,4 @@ declare function listRegisteredSchemas(): Array<{
|
|
|
2337
2377
|
meta: CimplifySchemaMeta;
|
|
2338
2378
|
}>;
|
|
2339
2379
|
|
|
2340
|
-
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, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
|
|
2380
|
+
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, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { $ZodType } from 'zod/v4/core';
|
|
3
|
-
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-
|
|
4
|
-
import './client-
|
|
5
|
-
import './payment-
|
|
6
|
-
import './link-
|
|
7
|
-
import './server-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-BVNWjk6W.js';
|
|
4
|
+
import './client-BuLcOWLv.js';
|
|
5
|
+
import './payment-g0HFkEDU.js';
|
|
6
|
+
import './link-D9iSVxt5.js';
|
|
7
|
+
import './server-DKK_D-PP.js';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1512,6 +1512,7 @@ declare const NextActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1512
1512
|
provider: z.ZodString;
|
|
1513
1513
|
client_secret: z.ZodString;
|
|
1514
1514
|
public_key: z.ZodString;
|
|
1515
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
1515
1516
|
}, z.core.$strip>, z.ZodObject<{
|
|
1516
1517
|
type: z.ZodLiteral<"redirect">;
|
|
1517
1518
|
authorization_url: z.ZodString;
|
|
@@ -1561,6 +1562,7 @@ declare const CheckoutResponseSchema: z.ZodObject<{
|
|
|
1561
1562
|
provider: z.ZodString;
|
|
1562
1563
|
client_secret: z.ZodString;
|
|
1563
1564
|
public_key: z.ZodString;
|
|
1565
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
1564
1566
|
}, z.core.$strip>, z.ZodObject<{
|
|
1565
1567
|
type: z.ZodLiteral<"redirect">;
|
|
1566
1568
|
authorization_url: z.ZodString;
|
|
@@ -1604,6 +1606,7 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1604
1606
|
provider: string;
|
|
1605
1607
|
client_secret: string;
|
|
1606
1608
|
public_key: string;
|
|
1609
|
+
provider_account_id?: string | undefined;
|
|
1607
1610
|
} | {
|
|
1608
1611
|
type: "redirect";
|
|
1609
1612
|
authorization_url: string;
|
|
@@ -1639,6 +1642,26 @@ declare const assertCheckoutResponse: (value: unknown) => asserts value is {
|
|
|
1639
1642
|
public_key?: string | null | undefined;
|
|
1640
1643
|
};
|
|
1641
1644
|
|
|
1645
|
+
/** Link OTP verification wire input. `challenge_id` remains optional only for
|
|
1646
|
+
* clients talking to the bounded rolling-deployment compatibility bridge. */
|
|
1647
|
+
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
1648
|
+
challenge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1649
|
+
contact: z.ZodString;
|
|
1650
|
+
contact_type: z.ZodEnum<{
|
|
1651
|
+
email: "email";
|
|
1652
|
+
phone: "phone";
|
|
1653
|
+
}>;
|
|
1654
|
+
otp_code: z.ZodString;
|
|
1655
|
+
}, z.core.$strict>;
|
|
1656
|
+
/** The authoritative response from Link OTP issuance. */
|
|
1657
|
+
declare const RequestOtpResponseSchema: z.ZodObject<{
|
|
1658
|
+
success: z.ZodBoolean;
|
|
1659
|
+
challenge_id: z.ZodString;
|
|
1660
|
+
message: z.ZodString;
|
|
1661
|
+
expires_in: z.ZodNumber;
|
|
1662
|
+
is_new_account: z.ZodBoolean;
|
|
1663
|
+
}, z.core.$strict>;
|
|
1664
|
+
|
|
1642
1665
|
/**
|
|
1643
1666
|
* JSON Schema export — feeds OpenAPI generators, agent prompts,
|
|
1644
1667
|
* codegen tooling, and CI contract-snapshot diffs.
|
|
@@ -2275,6 +2298,7 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2275
2298
|
provider: z.ZodString;
|
|
2276
2299
|
client_secret: z.ZodString;
|
|
2277
2300
|
public_key: z.ZodString;
|
|
2301
|
+
provider_account_id: z.ZodOptional<z.ZodString>;
|
|
2278
2302
|
}, z.core.$strip>, z.ZodObject<{
|
|
2279
2303
|
type: z.ZodLiteral<"redirect">;
|
|
2280
2304
|
authorization_url: z.ZodString;
|
|
@@ -2319,6 +2343,22 @@ declare const PUBLIC_SCHEMAS: {
|
|
|
2319
2343
|
}, z.core.$strip>>>;
|
|
2320
2344
|
images: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2321
2345
|
}, z.core.$strip>;
|
|
2346
|
+
readonly VerifyOtpRequest: z.ZodObject<{
|
|
2347
|
+
challenge_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2348
|
+
contact: z.ZodString;
|
|
2349
|
+
contact_type: z.ZodEnum<{
|
|
2350
|
+
email: "email";
|
|
2351
|
+
phone: "phone";
|
|
2352
|
+
}>;
|
|
2353
|
+
otp_code: z.ZodString;
|
|
2354
|
+
}, z.core.$strict>;
|
|
2355
|
+
readonly RequestOtpResponse: z.ZodObject<{
|
|
2356
|
+
success: z.ZodBoolean;
|
|
2357
|
+
challenge_id: z.ZodString;
|
|
2358
|
+
message: z.ZodString;
|
|
2359
|
+
expires_in: z.ZodNumber;
|
|
2360
|
+
is_new_account: z.ZodBoolean;
|
|
2361
|
+
}, z.core.$strict>;
|
|
2322
2362
|
};
|
|
2323
2363
|
type PublicSchemaName = keyof typeof PUBLIC_SCHEMAS;
|
|
2324
2364
|
/**
|
|
@@ -2337,4 +2377,4 @@ declare function listRegisteredSchemas(): Array<{
|
|
|
2337
2377
|
meta: CimplifySchemaMeta;
|
|
2338
2378
|
}>;
|
|
2339
2379
|
|
|
2340
|
-
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, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
|
|
2380
|
+
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, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, exportJsonSchemas, listRegisteredSchemas, makeAssertion, registerSchema };
|
package/dist/testing.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkE4K2VQDD_js = require('./chunk-E4K2VQDD.js');
|
|
4
|
+
require('./chunk-YVAEY3VC.js');
|
|
5
|
+
require('./chunk-5BDYDZ4U.js');
|
|
5
6
|
require('./chunk-XREIZ56K.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-JSWJ4XDE.js');
|
|
7
|
+
require('./chunk-IQFFSKE2.js');
|
|
8
8
|
require('./chunk-CNN7Z2IP.js');
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-7PDEX54K.js');
|
|
10
|
+
require('./chunk-4BKOKHE3.js');
|
|
11
11
|
require('./chunk-OWW5GUSB.js');
|
|
12
12
|
var zod = require('zod');
|
|
13
13
|
|
|
14
14
|
var PUBLIC_SCHEMAS = {
|
|
15
|
-
Brand:
|
|
16
|
-
AddItemPayload:
|
|
17
|
-
Cart:
|
|
18
|
-
CartItem:
|
|
19
|
-
CartPricing:
|
|
20
|
-
CheckoutBody:
|
|
21
|
-
CheckoutResponse:
|
|
22
|
-
VariantInfo:
|
|
15
|
+
Brand: chunkE4K2VQDD_js.BrandSchema,
|
|
16
|
+
AddItemPayload: chunkE4K2VQDD_js.AddItemPayloadSchema,
|
|
17
|
+
Cart: chunkE4K2VQDD_js.CartSchema,
|
|
18
|
+
CartItem: chunkE4K2VQDD_js.CartItemSchema,
|
|
19
|
+
CartPricing: chunkE4K2VQDD_js.CartPricingSchema,
|
|
20
|
+
CheckoutBody: chunkE4K2VQDD_js.CheckoutBodySchema,
|
|
21
|
+
CheckoutResponse: chunkE4K2VQDD_js.CheckoutResponseSchema,
|
|
22
|
+
VariantInfo: chunkE4K2VQDD_js.VariantInfoSchema,
|
|
23
|
+
VerifyOtpRequest: chunkE4K2VQDD_js.VerifyOtpRequestSchema,
|
|
24
|
+
RequestOtpResponse: chunkE4K2VQDD_js.RequestOtpResponseSchema
|
|
23
25
|
};
|
|
24
26
|
function exportJsonSchemas() {
|
|
25
27
|
const out = {};
|
|
26
28
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
27
|
-
const meta =
|
|
28
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
29
|
+
const meta = chunkE4K2VQDD_js.cimplifyRegistry.get(schema);
|
|
30
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkE4K2VQDD_js.cimplifyRegistry });
|
|
29
31
|
if (meta) {
|
|
30
32
|
json.$id = meta.id;
|
|
31
33
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -37,16 +39,18 @@ function exportJsonSchemas() {
|
|
|
37
39
|
function listRegisteredSchemas() {
|
|
38
40
|
const entries = [];
|
|
39
41
|
for (const schema of [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
chunkE4K2VQDD_js.BrandSchema,
|
|
43
|
+
chunkE4K2VQDD_js.AddItemPayloadSchema,
|
|
44
|
+
chunkE4K2VQDD_js.CartSchema,
|
|
45
|
+
chunkE4K2VQDD_js.CartItemSchema,
|
|
46
|
+
chunkE4K2VQDD_js.CartPricingSchema,
|
|
47
|
+
chunkE4K2VQDD_js.CheckoutBodySchema,
|
|
48
|
+
chunkE4K2VQDD_js.CheckoutResponseSchema,
|
|
49
|
+
chunkE4K2VQDD_js.VariantInfoSchema,
|
|
50
|
+
chunkE4K2VQDD_js.VerifyOtpRequestSchema,
|
|
51
|
+
chunkE4K2VQDD_js.RequestOtpResponseSchema
|
|
48
52
|
]) {
|
|
49
|
-
const meta =
|
|
53
|
+
const meta = chunkE4K2VQDD_js.cimplifyRegistry.get(schema);
|
|
50
54
|
if (meta) entries.push({ schema, meta });
|
|
51
55
|
}
|
|
52
56
|
return entries;
|
|
@@ -54,231 +58,239 @@ function listRegisteredSchemas() {
|
|
|
54
58
|
|
|
55
59
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkE4K2VQDD_js.AddItemPayloadSchema; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkE4K2VQDD_js.AddOnDetailsSchema; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkE4K2VQDD_js.AddOnGroupDetailsSchema; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkE4K2VQDD_js.AddOnInDetailsSchema; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkE4K2VQDD_js.AddOnOptionDetailsSchema; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkE4K2VQDD_js.AuthorizationTypeSchema; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkE4K2VQDD_js.BrandContactSchema; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkE4K2VQDD_js.BrandFaqSchema; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkE4K2VQDD_js.BrandHeroSchema; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkE4K2VQDD_js.BrandNavLinkSchema; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkE4K2VQDD_js.BrandPolicyPageSchema; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkE4K2VQDD_js.BrandPolicySectionSchema; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "BrandSchema", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkE4K2VQDD_js.BrandSchema; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkE4K2VQDD_js.BrandSocialSchema; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkE4K2VQDD_js.BundleResolvedSchema; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkE4K2VQDD_js.BundleSelectionInputSchema; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
120
124
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkE4K2VQDD_js.CartItemSchema; }
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
124
128
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkE4K2VQDD_js.CartPricingSchema; }
|
|
126
130
|
});
|
|
127
131
|
Object.defineProperty(exports, "CartSchema", {
|
|
128
132
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkE4K2VQDD_js.CartSchema; }
|
|
130
134
|
});
|
|
131
135
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
132
136
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkE4K2VQDD_js.CheckoutBodySchema; }
|
|
134
138
|
});
|
|
135
139
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
136
140
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkE4K2VQDD_js.CheckoutCustomerSchema; }
|
|
138
142
|
});
|
|
139
143
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
140
144
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkE4K2VQDD_js.CheckoutResponseSchema; }
|
|
142
146
|
});
|
|
143
147
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
144
148
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkE4K2VQDD_js.ChosenPriceSchema; }
|
|
146
150
|
});
|
|
147
151
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
148
152
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkE4K2VQDD_js.CompositeResolvedSchema; }
|
|
150
154
|
});
|
|
151
155
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
152
156
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkE4K2VQDD_js.CompositeSelectionInputSchema; }
|
|
154
158
|
});
|
|
155
159
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
156
160
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkE4K2VQDD_js.CountryCodeSchema; }
|
|
158
162
|
});
|
|
159
163
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
160
164
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkE4K2VQDD_js.CurrencyCodeSchema; }
|
|
162
166
|
});
|
|
163
167
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
164
168
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkE4K2VQDD_js.CustomerInputValueSchema; }
|
|
166
170
|
});
|
|
167
171
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
168
172
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkE4K2VQDD_js.DiscountDetailsSchema; }
|
|
170
174
|
});
|
|
171
175
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
172
176
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkE4K2VQDD_js.IsoDateTimeSchema; }
|
|
174
178
|
});
|
|
175
179
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
176
180
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkE4K2VQDD_js.LineTypeSchema; }
|
|
178
182
|
});
|
|
179
183
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
180
184
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkE4K2VQDD_js.LocaleSchema; }
|
|
182
186
|
});
|
|
183
187
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
184
188
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkE4K2VQDD_js.MoneyLooseSchema; }
|
|
186
190
|
});
|
|
187
191
|
Object.defineProperty(exports, "MoneySchema", {
|
|
188
192
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkE4K2VQDD_js.MoneySchema; }
|
|
190
194
|
});
|
|
191
195
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
192
196
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkE4K2VQDD_js.NextActionSchema; }
|
|
194
198
|
});
|
|
195
199
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
196
200
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkE4K2VQDD_js.PhoneE164Schema; }
|
|
198
202
|
});
|
|
199
203
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
200
204
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkE4K2VQDD_js.ProductTypeSchema; }
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, "RequestOtpResponseSchema", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () { return chunkE4K2VQDD_js.RequestOtpResponseSchema; }
|
|
202
210
|
});
|
|
203
211
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
204
212
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkE4K2VQDD_js.SchemaViolationError; }
|
|
206
214
|
});
|
|
207
215
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
208
216
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkE4K2VQDD_js.SeedNameSchema; }
|
|
210
218
|
});
|
|
211
219
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
212
220
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkE4K2VQDD_js.SelectedAddOnOptionSchema; }
|
|
214
222
|
});
|
|
215
223
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
216
224
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkE4K2VQDD_js.ServiceStatusSchema; }
|
|
218
226
|
});
|
|
219
227
|
Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
|
|
220
228
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkE4K2VQDD_js.TaxPriceDisplayModeSchema; }
|
|
222
230
|
});
|
|
223
231
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
224
232
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkE4K2VQDD_js.TimestampSchema; }
|
|
226
234
|
});
|
|
227
235
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
228
236
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkE4K2VQDD_js.VariantDetailsSchema; }
|
|
230
238
|
});
|
|
231
239
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
232
240
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkE4K2VQDD_js.VariantDisplayAttributeSchema; }
|
|
234
242
|
});
|
|
235
243
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
236
244
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkE4K2VQDD_js.VariantInfoSchema; }
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "VerifyOtpRequestSchema", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function () { return chunkE4K2VQDD_js.VerifyOtpRequestSchema; }
|
|
238
250
|
});
|
|
239
251
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
240
252
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkE4K2VQDD_js.assertAddItemPayload; }
|
|
242
254
|
});
|
|
243
255
|
Object.defineProperty(exports, "assertBrand", {
|
|
244
256
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkE4K2VQDD_js.assertBrand; }
|
|
246
258
|
});
|
|
247
259
|
Object.defineProperty(exports, "assertCart", {
|
|
248
260
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkE4K2VQDD_js.assertCart; }
|
|
250
262
|
});
|
|
251
263
|
Object.defineProperty(exports, "assertCartItem", {
|
|
252
264
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkE4K2VQDD_js.assertCartItem; }
|
|
254
266
|
});
|
|
255
267
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
256
268
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkE4K2VQDD_js.assertCheckoutBody; }
|
|
258
270
|
});
|
|
259
271
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
260
272
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkE4K2VQDD_js.assertCheckoutResponse; }
|
|
262
274
|
});
|
|
263
275
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
264
276
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkE4K2VQDD_js.cimplifyRegistry; }
|
|
266
278
|
});
|
|
267
279
|
Object.defineProperty(exports, "createTestClient", {
|
|
268
280
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkE4K2VQDD_js.createTestClient; }
|
|
270
282
|
});
|
|
271
283
|
Object.defineProperty(exports, "fixtures", {
|
|
272
284
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkE4K2VQDD_js.fixtures; }
|
|
274
286
|
});
|
|
275
287
|
Object.defineProperty(exports, "makeAssertion", {
|
|
276
288
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkE4K2VQDD_js.makeAssertion; }
|
|
278
290
|
});
|
|
279
291
|
Object.defineProperty(exports, "registerSchema", {
|
|
280
292
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkE4K2VQDD_js.registerSchema; }
|
|
282
294
|
});
|
|
283
295
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
284
296
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { RequestOtpResponseSchema, VerifyOtpRequestSchema, VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-5RT4HYMP.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, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-5RT4HYMP.mjs';
|
|
3
|
+
import './chunk-2WPVUIHX.mjs';
|
|
4
|
+
import './chunk-OKADBZAI.mjs';
|
|
4
5
|
import './chunk-U4MW6PYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-J6PNHDHL.mjs';
|
|
6
|
+
import './chunk-OCCNG6MO.mjs';
|
|
7
7
|
import './chunk-GOHSXBKW.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-DYIAX3WI.mjs';
|
|
9
|
+
import './chunk-H3RATH4B.mjs';
|
|
10
10
|
import './chunk-3G6RQLXK.mjs';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -18,7 +18,9 @@ var PUBLIC_SCHEMAS = {
|
|
|
18
18
|
CartPricing: CartPricingSchema,
|
|
19
19
|
CheckoutBody: CheckoutBodySchema,
|
|
20
20
|
CheckoutResponse: CheckoutResponseSchema,
|
|
21
|
-
VariantInfo: VariantInfoSchema
|
|
21
|
+
VariantInfo: VariantInfoSchema,
|
|
22
|
+
VerifyOtpRequest: VerifyOtpRequestSchema,
|
|
23
|
+
RequestOtpResponse: RequestOtpResponseSchema
|
|
22
24
|
};
|
|
23
25
|
function exportJsonSchemas() {
|
|
24
26
|
const out = {};
|
|
@@ -43,7 +45,9 @@ function listRegisteredSchemas() {
|
|
|
43
45
|
CartPricingSchema,
|
|
44
46
|
CheckoutBodySchema,
|
|
45
47
|
CheckoutResponseSchema,
|
|
46
|
-
VariantInfoSchema
|
|
48
|
+
VariantInfoSchema,
|
|
49
|
+
VerifyOtpRequestSchema,
|
|
50
|
+
RequestOtpResponseSchema
|
|
47
51
|
]) {
|
|
48
52
|
const meta = cimplifyRegistry.get(schema);
|
|
49
53
|
if (meta) entries.push({ schema, meta });
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './payment-
|
|
3
|
-
import './price-
|
|
4
|
-
import './link-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-D7Tf3v7c.mjs';
|
|
2
|
+
import './payment-g0HFkEDU.mjs';
|
|
3
|
+
import './price-Czq_cTC_.mjs';
|
|
4
|
+
import './link-D9iSVxt5.mjs';
|
|
5
5
|
import 'libphonenumber-js';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './payment-
|
|
3
|
-
import './price-
|
|
4
|
-
import './link-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-BtcoqrY1.js';
|
|
2
|
+
import './payment-g0HFkEDU.js';
|
|
3
|
+
import './price-BLIeAb8K.js';
|
|
4
|
+
import './link-D9iSVxt5.js';
|
|
5
5
|
import 'libphonenumber-js';
|