@brytdesigns/shopify-ajax-cart-api 1.0.43 → 3.0.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/effect/api/CartAdd.js +36 -9
- package/dist/effect/api/CartAdd.js.map +1 -1
- package/dist/effect/api/CartChange.js +32 -9
- package/dist/effect/api/CartChange.js.map +1 -1
- package/dist/effect/api/CartClear.js +26 -9
- package/dist/effect/api/CartClear.js.map +1 -1
- package/dist/effect/api/CartGet.js +35 -9
- package/dist/effect/api/CartGet.js.map +1 -1
- package/dist/effect/api/CartUpdate.js +31 -9
- package/dist/effect/api/CartUpdate.js.map +1 -1
- package/dist/effect/index.d.ts +1746 -899
- package/dist/effect/index.js +13 -13
- package/dist/effect/index.js.map +1 -1
- package/dist/effect/schema.js +970 -1059
- package/dist/effect/schema.js.map +1 -1
- package/dist/main/effect/api/CartAdd.js +36 -9
- package/dist/main/effect/api/CartAdd.js.map +1 -1
- package/dist/main/effect/api/CartChange.js +32 -9
- package/dist/main/effect/api/CartChange.js.map +1 -1
- package/dist/main/effect/api/CartClear.js +26 -9
- package/dist/main/effect/api/CartClear.js.map +1 -1
- package/dist/main/effect/api/CartGet.js +35 -9
- package/dist/main/effect/api/CartGet.js.map +1 -1
- package/dist/main/effect/api/CartUpdate.js +31 -9
- package/dist/main/effect/api/CartUpdate.js.map +1 -1
- package/dist/main/effect/index.js +13 -13
- package/dist/main/effect/index.js.map +1 -1
- package/dist/main/effect/schema.js +970 -1059
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +586 -1808
- package/dist/main/index.js +123 -235
- package/dist/main/index.js.map +1 -1
- package/package.json +11 -13
- package/dist/esm/index.js +0 -19525
- package/dist/esm/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/effect/schema.ts"],"names":[],"mappings":";;;;;;AAOA,MAAM,qBAAqB,MAAO,CAAA,KAAA;AAAA,EAChC,MA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AAA,KAAA,CAAM,WAAY,CAAA;AAAA,EAC5D,UAAY,EAAA,gBAAA;AAAA,EACZ,KAAO,EAAA,kBAAA;AAAA,EACP,WAAa,EAAA,wDAAA;AAAA,EACb,UAAU,CAAC,IAAI,EAAE,QAAA,EAAU,4BAA4B;AACzD,CAAC;AAGM,MAAM,YAAe,GAAA,IAAA,CAAK,QAAS,CAAA,KAAA,CAAM,WAAY,CAAA;AAAA,EAC1D,UAAY,EAAA,cAAA;AAAA,EACZ,KAAO,EAAA,gBAAA;AAAA,EACP,WAAa,EAAA,uDAAA;AAAA,EACb,UAAU,CAAC,IAAI,EAAE,QAAA,EAAU,4BAA4B;AACzD,CAAC;AAKM,MAAM,2BAA2B,MAAO,CAAA,OAAA;AAAA,EAC7C,MAAA,CAAO,KAAM,CAAA,MAAA,CAAO,cAAc;AACpC","file":"schema.js","sourcesContent":["import * as Schema from \"effect/Schema\";\nimport * as Array from \"effect/Array\";\nimport * as Record from \"effect/Record\";\nimport { Resource, Ajax } from \"@brytdesigns/shopify-utils/effect\";\nimport { pipe, identity } from \"effect\";\n\ntype BaseAttributeValue = Schema.Schema.Type<typeof BaseAttributeValue>;\nconst BaseAttributeValue = Schema.Union(\n Schema.Null,\n Schema.String,\n Schema.Boolean,\n Schema.Number\n).annotations({\n title: \"base_attribute_value\",\n identifier: \"BaseAttributeValue\",\n description:\n \"An attribute value that can be either a string, a boolean, or a number\",\n examples: [null, \"hello\", true, 123131],\n});\n\nconst AttributesArray = Schema.Array(\n Schema.Struct({ key: Schema.String, value: BaseAttributeValue })\n).annotations({\n title: \"base_attributes_array\",\n identifier: \"BaseAttributesArray\",\n description: \"An array of attribute key-value pairs\",\n examples: [\n [{ key: \"size\", value: \"medium\" }],\n [{ key: \"color\", value: \"red\" }],\n ],\n});\n\nexport type BaseAttributes = Schema.Schema.Type<typeof BaseAttributes>;\nexport const BaseAttributes = Schema.Record({\n key: Schema.String,\n value: BaseAttributeValue,\n}).annotations({\n title: \"base_attributes\",\n identifier: \"BaseAttributes\",\n description: \"An object containing attribute key-value pairs\",\n examples: [\n { key: \"size\", value: \"medium\" },\n { key: \"color\", value: \"red\" },\n ],\n});\n\nexport const BaseAttributesArray = Schema.transform(\n BaseAttributes,\n AttributesArray,\n {\n decode: (record) =>\n Record.toEntries(record).map(([key, value]) => ({ key, value })),\n encode: (array) =>\n Record.fromEntries(\n pipe(\n array,\n Array.map(({ key, value }) => [key, value])\n )\n ),\n }\n).annotations({\n title: \"base_attributes_array\",\n identifier: \"BaseAttributesArray\",\n description: \"An array of attribute key-value pairs\",\n examples: [\n [{ key: \"size\", value: \"medium\" }],\n [{ key: \"color\", value: \"red\" }],\n ],\n});\n\nconst BasePrivateAttributes = Schema.transform(BaseAttributes, BaseAttributes, {\n decode: Record.filter((_, key) => key.startsWith(\"_\")),\n encode: identity,\n}).annotations({\n title: \"base_private_attributes\",\n identifier: \"BasePrivateAttributes\",\n description: \"An object containing private(_) attribute key-value pairs\",\n examples: [{ _key: \"private_attribute\" }],\n});\n\nconst BasePublicAttributes = Schema.transform(BaseAttributes, BaseAttributes, {\n decode: Record.filter((_, key) => !key.startsWith(\"_\")),\n encode: identity,\n}).annotations({\n title: \"base_public_attributes\",\n identifier: \"BasePublicAttributes\",\n description: \"An object containing public attribute key-value pairs\",\n examples: [{ key: \"public_attribute\" }],\n});\n\nconst BasePrivateAttributesArray = Schema.transform(\n BasePrivateAttributes,\n AttributesArray,\n {\n decode: (record) =>\n Record.toEntries(record).map(([key, value]) => ({ key, value })),\n encode: (array) =>\n Record.fromEntries(\n pipe(\n array,\n Array.map(({ key, value }) => [key, value])\n )\n ),\n }\n).annotations({\n title: \"base_private_attributes_array\",\n identifier: \"BasePrivateAttributesArray\",\n description: \"An array of private(_)_attribute key-value pairs\",\n examples: [[{ key: \"_private_key\", value: \"private_value\" }]],\n});\n\nconst BasePublicAttributesArray = Schema.transform(\n BasePublicAttributes,\n AttributesArray,\n {\n decode: (record) =>\n Record.toEntries(record).map(([key, value]) => ({ key, value })),\n encode: (array) =>\n Record.fromEntries(\n pipe(\n array,\n Array.map(({ key, value }) => [key, value])\n )\n ),\n }\n).annotations({\n title: \"base_public_attributes_array\",\n identifier: \"BasePublicAttributesArray\",\n description: \"An array of public attribute key-value pairs\",\n examples: [[{ key: \"public_key\", value: \"public_value\" }]],\n});\n\nexport const Attributes = Schema.transform(\n BaseAttributes,\n Schema.Struct({\n private: Schema.Struct({\n array: BasePrivateAttributesArray,\n record: BasePrivateAttributes,\n }),\n public: Schema.Struct({\n array: BasePublicAttributesArray,\n record: BasePublicAttributes,\n }),\n }),\n {\n decode: (attributes) => ({\n private: {\n array: attributes,\n record: attributes,\n },\n public: {\n array: attributes,\n record: attributes,\n },\n }),\n encode: (attributes) => ({\n ...attributes.private.record,\n ...attributes.public.record,\n }),\n }\n).annotations({\n title: \"attributes\",\n identifier: \"Attributes\",\n description:\n \"An object containing private and public properties which contain the array and record of private and public attribute key-value pairs\",\n examples: [\n {\n private: {\n array: [{ key: \"_size\", value: \"medium\" }],\n record: { _size: \"medium\" },\n },\n public: {\n array: [{ key: \"public_size\", value: \"large\" }],\n record: { public_size: \"large\" },\n },\n },\n ],\n});\n\nexport type DiscountApplication = Schema.Schema.Type<\n typeof DiscountApplication\n>;\n\nexport const DiscountApplication = Schema.Struct({\n target_selection: Schema.Literal(\"all\", \"entitled\", \"explicit\"),\n target_type: Schema.Literal(\"line_item\", \"shipping_line\"),\n title: Schema.NonEmptyString,\n total_allocated_amount: Schema.Number,\n type: Schema.Literal(\"\", \"automatic\", \"discount_code\", \"manual\", \"script\"),\n value: Schema.Union(Schema.Number, Schema.NumberFromString),\n value_type: Schema.Literal(\"fixed_amount\", \"percentage\"),\n description: Schema.NullOr(Schema.String),\n}).annotations({\n title: \"discount_application\",\n identifier: \"DiscountApplication\",\n description: \"An object representing a discount application\",\n examples: [\n {\n target_selection: \"all\",\n target_type: \"line_item\",\n title: \"10% off all line items\",\n total_allocated_amount: 10,\n type: \"automatic\",\n value_type: \"percentage\",\n value: 10,\n description: null,\n },\n ],\n});\n\nexport const Discount = Schema.Struct({\n amount: Schema.Number,\n title: Schema.String,\n}).annotations({\n title: \"discount\",\n identifier: \"Discount\",\n description: \"An object representing a discount\",\n examples: [{ amount: 10, title: \"10% off\" }],\n});\n\nexport type CurrencyCode = Schema.Schema.Type<typeof CurrencyCode>;\nexport const CurrencyCode = Schema.String.annotations({\n title: \"currency_code\",\n identifier: \"CurrencyCode\",\n description: \"An ISO 4217 currency code\",\n examples: [\"USD\", \"EUR\", \"GBP\"],\n});\n\nexport type Image = Schema.Schema.Type<typeof Image>;\nexport const Image = Schema.Struct({\n aspect_ratio: Schema.NullOr(Schema.Number),\n alt: Schema.NullOr(Schema.String),\n height: Schema.NullOr(Schema.Number),\n url: Schema.NullOr(Schema.String),\n width: Schema.NullOr(Schema.Number),\n}).annotations({\n title: \"image\",\n identifier: \"Image\",\n description: \"An object representing an image\",\n examples: [\n {\n url: \"https://example.com/image.jpg\",\n alt: \"Example image\",\n height: 100,\n width: 100,\n aspect_ratio: 1,\n },\n {\n url: null,\n alt: null,\n height: null,\n width: null,\n aspect_ratio: null,\n },\n ],\n});\n\nexport type OptionWithValue = Schema.Schema.Type<typeof OptionWithValue>;\nexport const OptionWithValue = Schema.Struct({\n name: Schema.String,\n value: Schema.String,\n}).annotations({\n title: \"option_with_value\",\n identifier: \"OptionWithValue\",\n description: \"An object representing an option with a value\",\n examples: [{ name: \"Size\", value: \"Large\" }],\n});\n\nexport type QuantityRule = Schema.Schema.Type<typeof QuantityRule>;\nexport const QuantityRule = Schema.Struct({\n min: Schema.Number,\n max: Schema.NullOr(Schema.Number),\n increment: Schema.Number,\n}).annotations({\n title: \"quantity_rule\",\n identifier: \"QuantityRule\",\n description: \"An object representing a quantity rule\",\n examples: [{ min: 1, max: 5, increment: 1 }],\n});\n\nexport type SellingPlanAllocationPriceAdjustment = Schema.Schema.Type<\n typeof SellingPlanAllocationPriceAdjustment\n>;\nexport const SellingPlanAllocationPriceAdjustment = Schema.Struct({\n position: Schema.Number,\n price: Schema.Number,\n}).annotations({\n title: \"selling_plan_allocation_price_adjustment\",\n identifier: \"SellingPlanAllocationPriceAdjustment\",\n description:\n \"An object representing a selling plan allocation price adjustment\",\n examples: [{ position: 1, price: 10.0 }],\n});\n\nexport const SellingPlanPriceAdjustment = Schema.Struct({\n order_count: Schema.NullOr(Schema.Number),\n position: Schema.Number,\n value: Schema.Union(Schema.Number, Schema.String),\n value_type: Schema.Literal(\"percentage\", \"fixed_amount\", \"price\"),\n}).annotations({\n title: \"selling_plan_price_adjustment\",\n identifier: \"SellingPlanPriceAdjustment\",\n description: \"An object representing a selling plan price adjustment\",\n examples: [\n { order_count: null, position: 1, value: 10.0, value_type: \"percentage\" },\n ],\n});\n\nexport type SellingPlanOption = Schema.Schema.Type<typeof SellingPlanOption>;\nexport const SellingPlanOption = Schema.Struct({\n name: Schema.String,\n position: Schema.Number,\n value: Schema.String,\n}).annotations({\n title: \"selling_plan_option\",\n identifier: \"SellingPlanOption\",\n description: \"An object representing a selling plan option\",\n examples: [{ name: \"Size\", position: 1, value: \"Large\" }],\n});\n\nexport type SellingPlan = Schema.Schema.Type<typeof SellingPlan>;\nexport const SellingPlan = Schema.Struct({\n id: Resource.ID,\n name: Schema.String,\n description: Schema.NullOr(Schema.String),\n options: Schema.Array(SellingPlanOption),\n recurring_deliveries: Schema.optionalWith(Schema.Boolean, {\n default: () => false,\n }),\n fixed_selling_plan: Schema.optionalWith(Schema.Boolean, {\n default: () => false,\n }),\n price_adjustments: Schema.Array(SellingPlanPriceAdjustment),\n}).annotations({\n title: \"selling_plan\",\n identifier: \"SellingPlan\",\n description: \"An object representing a selling plan\",\n examples: [\n {\n id: \"sp-123\",\n name: \"Standard Plan\",\n description: \"A basic selling plan\",\n options: [{ name: \"Size\", position: 1, value: \"Large\" }],\n recurring_deliveries: false,\n fixed_selling_plan: false,\n price_adjustments: [],\n },\n ],\n});\n\nexport type SellingPlanAllocation = Schema.Schema.Type<\n typeof SellingPlanAllocation\n>;\nexport const SellingPlanAllocation = Schema.Struct({\n price_adjustments: Schema.Array(SellingPlanAllocationPriceAdjustment),\n price: Schema.Number,\n compare_at_price: Schema.Number,\n per_delivery_price: Schema.Number,\n selling_plan: SellingPlan,\n}).annotations({\n title: \"selling_plan_allocation\",\n identifier: \"SellingPlanAllocation\",\n description: \"An object representing a selling plan allocation\",\n examples: [\n {\n price_adjustments: [],\n price: 10.0,\n compare_at_price: 15.0,\n per_delivery_price: 10.0,\n selling_plan: {\n id: \"sp-123\",\n name: \"Standard Plan\",\n description: \"A basic selling plan\",\n options: [{ name: \"Size\", position: 1, value: \"Large\" }],\n recurring_deliveries: false,\n fixed_selling_plan: false,\n price_adjustments: [],\n },\n },\n ],\n});\n\nexport type LineLevelDiscountAllocation = Schema.Schema.Type<\n typeof LineLevelDiscountAllocation\n>;\nexport const LineLevelDiscountAllocation = Schema.Struct({\n amount: Schema.Number,\n discount_application: DiscountApplication,\n}).annotations({\n title: \"line_level_discount_allocation\",\n identifier: \"LineLevelDiscountAllocation\",\n description: \"An object representing a line level discount allocation\",\n examples: [\n {\n amount: 10.0,\n discount_application: {\n target_selection: \"all\",\n target_type: \"line_item\",\n title: \"10% off all line items\",\n total_allocated_amount: 10,\n type: \"automatic\",\n value_type: \"percentage\",\n value: 10,\n description: null,\n },\n },\n ],\n});\n\nconst CartLevelDiscountApplicationUpdate = Schema.transform(\n Schema.Struct({\n discount_application: DiscountApplication,\n }),\n DiscountApplication,\n {\n decode: (application) => application.discount_application,\n encode: (discountApplication) => ({\n discount_application: discountApplication,\n }),\n strict: false,\n }\n).annotations({\n title: \"cart_level_discount_application\",\n identifier: \"CartLevelDiscountApplication\",\n description: \"An object representing a cart level discount application\",\n examples: [\n {\n target_selection: \"all\",\n target_type: \"line_item\",\n title: \"10% off all line items\",\n total_allocated_amount: 10,\n type: \"automatic\",\n value_type: \"percentage\",\n value: 10,\n description: null,\n },\n ],\n});\n\nexport const CartLevelDiscountApplication = Schema.Union(\n DiscountApplication,\n CartLevelDiscountApplicationUpdate\n).annotations({\n title: \"cart_level_discount_application\",\n identifier: \"CartLevelDiscountApplication\",\n description: \"An object representing a cart level discount application\",\n examples: [\n {\n target_selection: \"all\",\n target_type: \"line_item\",\n title: \"10% off all line items\",\n total_allocated_amount: 10,\n type: \"automatic\",\n value_type: \"percentage\",\n value: 10,\n description: null,\n },\n ],\n});\n\nexport type UnitPriceMeasurement = Schema.Schema.Type<\n typeof UnitPriceMeasurement\n>;\nexport const UnitPriceMeasurement = Schema.Struct({\n measured_type: Schema.Literal(\"volume\", \"weight\", \"dimension\"),\n quantity_unit: Schema.String,\n quantity_value: Schema.Number,\n reference_unit: Schema.String,\n reference_value: Schema.Number,\n}).annotations({\n title: \"unit_price_measurement\",\n identifier: \"UnitPriceMeasurement\",\n description: \"An object representing a unit price measurement\",\n examples: [\n {\n measured_type: \"volume\",\n quantity_unit: \"gallons\",\n quantity_value: 1,\n reference_unit: \"ounces\",\n reference_value: 128,\n },\n ],\n});\n\nconst VariantOptions = Schema.optionalWith(Schema.Array(Schema.String), {\n default: () => [],\n}).annotations({\n title: \"variant_options\",\n identifier: \"VariantOptions\",\n description: \"An array of strings representing variant options\",\n examples: [[\"Red\", \"Size 10\"]],\n});\n\nexport type BaseLineItem = Schema.Schema.Type<typeof BaseLineItem>;\nconst BaseLineItem = Schema.Struct({\n id: Resource.ID,\n properties: BaseAttributes,\n quantity: Schema.Number,\n variant_id: Resource.ID,\n key: Schema.String,\n title: Schema.String,\n price: Schema.Number,\n original_price: Schema.Number,\n discounted_price: Schema.Number,\n line_price: Schema.Number,\n original_line_price: Schema.Number,\n total_discount: Schema.Number,\n discounts: Schema.optionalWith(Schema.Array(Discount), { default: () => [] }),\n sku: Schema.NullOr(Schema.String),\n grams: Schema.Number,\n vendor: Schema.String,\n taxable: Schema.Boolean,\n product_id: Resource.ID,\n product_has_only_default_variant: Schema.Boolean,\n gift_card: Schema.Boolean,\n final_line_price: Schema.Number,\n final_price: Schema.Number,\n url: Schema.String,\n featured_image: Image,\n image: Schema.NullOr(Schema.String),\n handle: Schema.String,\n requires_shipping: Schema.Boolean,\n product_type: Schema.NullOr(Schema.String),\n product_title: Schema.String,\n product_description: Schema.NullOr(Schema.String),\n variant_title: Schema.NullOr(Schema.String),\n variant_options: VariantOptions,\n options_with_values: Schema.Array(OptionWithValue),\n line_level_discount_allocations: Schema.Array(LineLevelDiscountAllocation),\n line_level_total_discount: Schema.Number,\n quantity_rule: Schema.optional(QuantityRule),\n has_components: Schema.optionalWith(Schema.Boolean, { default: () => false }),\n unit_price: Schema.optional(Schema.Number),\n unit_price_measurement: Schema.optional(UnitPriceMeasurement),\n selling_plan_allocation: Schema.optionalWith(\n Schema.NullOr(SellingPlanAllocation),\n { default: () => null }\n ),\n}).annotations({\n identifier: \"BaseLineItem\",\n title: \"base_line_item\",\n description: \"An object representing the base cart line item\",\n examples: [\n {\n id: 103424255,\n properties: {\n Size: \"Large\",\n _hidden: \"value\",\n },\n quantity: 1,\n variant_id: 103424256,\n key: \"2klj234ljlkjsdlf:103424255\",\n title: \"Black T-Shirt\",\n price: 29.99,\n original_price: 39.99,\n discounted_price: 29.99,\n line_price: 29.99,\n original_line_price: 39.99,\n total_discount: 0,\n discounts: [],\n sku: \"SKU-12345\",\n grams: 100,\n vendor: \"Vendor Name\",\n taxable: true,\n product_id: 12345,\n product_has_only_default_variant: true,\n gift_card: false,\n final_line_price: 29.99,\n final_price: 29.99,\n url: \"https://example.com/products/black-t-shirt?variant=103424256\",\n featured_image: {\n alt: \"Black T-Shirt\",\n url: \"https://example.com/black-t-shirt.jpg\",\n width: 600,\n height: 400,\n aspect_ratio: 1.5,\n },\n image: \"https://example.com/black-t-shirt.jpg\",\n handle: \"black-t-shirt\",\n requires_shipping: true,\n product_type: \"t-shirt\",\n product_title: \"Black T-Shirt\",\n product_description: \"A stylish and comfortable t-shirt.\",\n variant_title: \"Large\",\n variant_options: [\"Large\"],\n options_with_values: [],\n line_level_discount_allocations: [],\n line_level_total_discount: 0,\n quantity_rule: {\n min: 1,\n max: null,\n increment: 1,\n },\n has_components: false,\n unit_price: 29.99,\n unit_price_measurement: {\n measured_type: \"volume\",\n quantity_unit: \"gallons\",\n quantity_value: 1,\n reference_unit: \"ounces\",\n reference_value: 128,\n },\n selling_plan_allocation: null,\n },\n ],\n});\n\nexport type LineItem = Schema.Schema.Type<typeof LineItem>;\nexport const LineItem = Schema.transform(\n BaseLineItem,\n Schema.extend(\n BaseLineItem,\n Schema.Struct({\n properties_array: Schema.optionalWith(BaseAttributesArray, {\n default: () => [],\n }),\n private_properties: Schema.optionalWith(BasePrivateAttributes, {\n default: () => ({}),\n }),\n private_properties_array: Schema.optionalWith(\n BasePrivateAttributesArray,\n {\n default: () => [],\n }\n ),\n public_properties: Schema.optionalWith(BasePublicAttributes, {\n default: () => ({}),\n }),\n public_properties_array: Schema.optionalWith(BasePublicAttributesArray, {\n default: () => [],\n }),\n })\n ),\n {\n decode: (lineItem) => ({\n ...lineItem,\n product: lineItem.handle,\n properties_array: lineItem.properties,\n private_properties: lineItem.properties,\n private_properties_array: lineItem.properties,\n public_properties: lineItem.properties,\n public_properties_array: lineItem.properties,\n }),\n encode: (lineItem) =>\n pipe(\n Record.remove(\"properties_array\")(lineItem),\n Record.remove(\"private_properties\"),\n Record.remove(\"private_properties_array\"),\n Record.remove(\"public_properties\"),\n Record.remove(\"public_properties_array\")\n ) as BaseLineItem,\n }\n).annotations({\n identifier: \"LineItem\",\n title: \"line_item\",\n description: \"An object representing a cart line item\",\n examples: [\n {\n id: 103424255,\n properties: {\n Size: \"Large\",\n _hidden: \"value\",\n },\n properties_array: [\n { key: \"Size\", value: \"Large\" },\n { key: \"_hidden\", value: \"value\" },\n ],\n private_properties: {\n _hidden: \"value\",\n },\n private_properties_array: [{ key: \"_hidden\", value: \"value\" }],\n public_properties: {\n Size: \"Large\",\n },\n public_properties_array: [{ key: \"Size\", value: \"Large\" }],\n quantity: 1,\n variant_id: 103424256,\n key: \"2klj234ljlkjsdlf:103424255\",\n title: \"Black T-Shirt\",\n price: 29.99,\n original_price: 39.99,\n discounted_price: 29.99,\n line_price: 29.99,\n original_line_price: 39.99,\n total_discount: 0,\n discounts: [],\n sku: \"SKU-12345\",\n grams: 100,\n vendor: \"Vendor Name\",\n taxable: true,\n product_id: 12345,\n product_has_only_default_variant: true,\n gift_card: false,\n final_line_price: 29.99,\n final_price: 29.99,\n url: \"https://example.com/products/black-t-shirt?variant=103424256\",\n featured_image: {\n alt: \"Black T-Shirt\",\n url: \"https://example.com/black-t-shirt.jpg\",\n width: 600,\n height: 400,\n aspect_ratio: 1.5,\n },\n image: \"https://example.com/black-t-shirt.jpg\",\n handle: \"black-t-shirt\",\n requires_shipping: true,\n product_type: \"t-shirt\",\n product_title: \"Black T-Shirt\",\n product_description: \"A stylish and comfortable t-shirt.\",\n variant_title: \"Large\",\n variant_options: [\"Large\"],\n options_with_values: [],\n line_level_discount_allocations: [],\n line_level_total_discount: 0,\n quantity_rule: {\n min: 1,\n max: null,\n increment: 1,\n },\n has_components: false,\n unit_price: 29.99,\n unit_price_measurement: {\n measured_type: \"volume\",\n quantity_unit: \"gallons\",\n quantity_value: 1,\n reference_unit: \"ounces\",\n reference_value: 128,\n },\n selling_plan_allocation: null,\n },\n ],\n});\n\ntype BaseCart = Schema.Schema.Type<typeof BaseCart>;\nexport const BaseCart = Schema.Struct({\n token: Schema.String,\n note: Schema.NullOr(Schema.String),\n attributes: BaseAttributes,\n discounts: Schema.optionalWith(Schema.Array(Discount), { default: () => [] }),\n discount_codes: Schema.optionalWith(\n Schema.Array(\n Schema.Struct({ code: Schema.String, applicable: Schema.Boolean })\n ),\n { default: () => [] }\n ),\n original_total_price: Schema.Number,\n total_price: Schema.Number,\n total_discount: Schema.Number,\n total_weight: Schema.Number,\n item_count: Schema.Number,\n items: Schema.Array(LineItem).annotations({ concurrency: \"unbounded\" }),\n requires_shipping: Schema.Boolean,\n currency: CurrencyCode,\n items_subtotal_price: Schema.Number,\n cart_level_discount_applications: Schema.Array(CartLevelDiscountApplication),\n}).annotations({\n identifier: \"BaseCart\",\n title: \"base_cart\",\n description: \"An object representing the base cart\",\n examples: [\n {\n token: \"2lk34j2lk34kljl09sdfksldfk\",\n note: \"This is a note\",\n attributes: {\n public: \"value\",\n _private: \"value2\",\n },\n discounts: [],\n discount_codes: [],\n original_total_price: 99.99,\n total_price: 99.99,\n total_discount: 0,\n total_weight: 100,\n item_count: 1,\n items: [],\n requires_shipping: true,\n currency: \"USD\",\n items_subtotal_price: 99.99,\n cart_level_discount_applications: [],\n },\n ],\n});\n\ntype Cart = Schema.Schema.Type<typeof Cart>;\nexport const Cart = Schema.extend(\n BaseCart,\n Schema.Struct({\n attributes_array: Schema.optionalWith(BaseAttributesArray, {\n default: () => [],\n }),\n private_attributes: Schema.optionalWith(BasePrivateAttributes, {\n default: () => ({}),\n }),\n private_attributes_array: Schema.optionalWith(BasePrivateAttributesArray, {\n default: () => [],\n }),\n public_attributes: Schema.optionalWith(BasePublicAttributes, {\n default: () => ({}),\n }),\n public_attributes_array: Schema.optionalWith(BasePublicAttributesArray, {\n default: () => [],\n }),\n })\n).annotations({\n identifier: \"Cart\",\n title: \"cart\",\n description: \"An object representing a cart\",\n examples: [\n {\n token: \"2lk34j2lk34kljl09sdfksldfk\",\n note: \"This is a note\",\n attributes: {\n public: \"value\",\n _private: \"value2\",\n },\n attributes_array: [\n { key: \"public\", value: \"value\" },\n { key: \"_private\", value: \"value2\" },\n ],\n private_attributes: { _private: \"value2\" },\n private_attributes_array: [{ key: \"_private\", value: \"value2\" }],\n public_attributes: { public: \"value\" },\n public_attributes_array: [{ key: \"public\", value: \"value\" }],\n discounts: [],\n discount_codes: [],\n original_total_price: 99.99,\n total_price: 99.99,\n total_discount: 0,\n total_weight: 100,\n item_count: 1,\n items: [],\n requires_shipping: true,\n currency: \"USD\",\n items_subtotal_price: 99.99,\n cart_level_discount_applications: [],\n },\n ],\n});\n\nexport const makeCartTransformSchema = <\n A extends Schema.Schema.Type<typeof BaseCart>,\n I,\n R,\n>(\n schema: Schema.Schema<A, I, R>\n) =>\n Schema.transform(schema, Cart, {\n decode: (cart) => ({\n ...cart,\n attributes_array: cart.attributes,\n private_attributes: cart.attributes,\n private_attributes_array: cart.attributes,\n public_attributes: cart.attributes,\n public_attributes_array: cart.attributes,\n }),\n encode: (cart) =>\n pipe(\n Record.remove(\"attributes_array\")(cart),\n Record.remove(\"private_attributes\"),\n Record.remove(\"private_attributes_array\"),\n Record.remove(\"public_attributes\"),\n Record.remove(\"public_attributes_array\")\n ) as Schema.Schema.Type<Schema.Schema<A, I, R>>,\n });\n\nexport const CartOutput = makeCartTransformSchema(BaseCart);\n\nexport const makeCartSchema = (sections?: string) => {\n if (sections) {\n return makeCartTransformSchema(\n Schema.extend(\n BaseCart,\n Schema.Struct({\n sections: Schema.optionalWith(\n Schema.NullOr(Ajax.Sections.makeResponseSchema(sections)),\n { default: () => null }\n ),\n })\n )\n );\n }\n return makeCartTransformSchema(\n Schema.extend(\n BaseCart,\n Schema.Struct({\n sections: Schema.optionalWith(Schema.Null, { default: () => null }),\n })\n )\n );\n};\n\nexport type AddItemInput = Schema.Schema.Encoded<typeof AddItemInput>;\nexport const AddItemInput = Schema.Struct({\n id: Resource.ID,\n quantity: Schema.optionalWith(Schema.Number, { default: () => 1 }),\n properties: Schema.optionalWith(BaseAttributes, { default: () => ({}) }),\n selling_plan: Schema.optional(Resource.ID),\n}).annotations({\n identifier: \"AddItemInput\",\n title: \"add_item_input\",\n description:\n \"An object representing the input for adding an item to the cart\",\n examples: [\n {\n id: \"1234567890\",\n quantity: 1,\n properties: {\n public: \"value\",\n _private: \"value2\",\n },\n selling_plan: \"sp1234567890\",\n },\n ],\n});\n\nexport const BaseInput = Schema.extend(Ajax.Sections.Input);\n\nexport type CartAddInput = Schema.Schema.Encoded<typeof CartAddInput>;\nexport const CartAddInput = Schema.Struct({\n items: Schema.Array(AddItemInput),\n})\n .pipe(BaseInput)\n .annotations({\n identifier: \"CartAddInput\",\n title: \"cart_add_input\",\n description:\n \"An object representing the input for adding items to the cart\",\n examples: [\n {\n items: [\n {\n id: \"1234567890\",\n quantity: 1,\n properties: {\n public: \"value\",\n _private: \"value2\",\n },\n selling_plan: \"sp1234567890\",\n },\n ],\n },\n ],\n });\n\nexport type CartAddOutput = Schema.Schema.Type<typeof CartAddOutput>;\nexport const CartAddOutput = Schema.Struct({\n items: Schema.Array(LineItem),\n}).annotations({\n identifier: \"CartAddOutput\",\n title: \"cart_add_output\",\n description: \"An object representing the output for adding items to the cart\",\n});\n\nexport type UpdateItemRecordInput = Schema.Schema.Encoded<\n typeof UpdateItemRecordInput\n>;\nexport const UpdateItemRecordInput = Schema.Record({\n key: Schema.String,\n value: Schema.Number,\n}).annotations({\n identifier: \"UpdateItemRecordInput\",\n title: \"update_item_record_input\",\n description: \"An object representing the input for updating an item record\",\n examples: [\n {\n 11231233132: 2,\n 1115235234242: 0,\n },\n ],\n});\n\nconst DiscountCodeInput = Schema.Array(Schema.String);\nconst DiscountCodeTransformed = Schema.String;\n\nexport type CartUpdateInput = Schema.Schema.Encoded<typeof CartUpdateInput>;\nexport const CartUpdateInput = Schema.Struct({\n updates: Schema.optional(\n Schema.Union(UpdateItemRecordInput, Schema.Array(Schema.Number))\n ),\n note: Schema.optional(Schema.NullOr(Schema.String)),\n attributes: Schema.optional(BaseAttributes),\n discount: Schema.optional(\n Schema.transform(DiscountCodeInput, DiscountCodeTransformed, {\n decode: (input) => input.join(\",\"),\n encode: (input) => input.split(\",\"),\n })\n ),\n})\n .pipe(BaseInput)\n .annotations({\n identifier: \"CartUpdateInput\",\n title: \"cart_update_input\",\n description: \"An object representing the input for updating the cart\",\n examples: [\n {\n updates: {\n 11231233132: 2,\n 1115235234242: 0,\n },\n note: \"Updated note\",\n attributes: {\n public: \"updated\",\n _private: \"updated2\",\n },\n discount: \"code1,code2\",\n },\n ],\n });\n\nexport type ItemAddedChangelog = Schema.Schema.Type<typeof ItemAddedChangelog>;\nexport const ItemAddedChangelog = Schema.Struct({\n variant_id: Schema.Number,\n quantity: Schema.Number,\n}).annotations({\n identifier: \"ItemAddedChangelog\",\n title: \"item_added_changelog\",\n description: \"An object representing the item added to the cart\",\n examples: [\n {\n variant_id: 123,\n quantity: 1,\n },\n ],\n});\n\nexport type CartUpdateOutput = Schema.Schema.Type<typeof CartUpdateOutput>;\nexport const CartUpdateOutput = makeCartTransformSchema(\n Schema.extend(\n BaseCart,\n Schema.Struct({\n items_changelog: Schema.Struct({\n added: Schema.Array(ItemAddedChangelog),\n }),\n })\n )\n).annotations({\n identifier: \"CartUpdateOutput\",\n title: \"cart_update_output\",\n description: \"An object representing the output for updating the cart\",\n});\n\nexport const CartChangeItemOptionalInput = Schema.Struct({\n quantity: Schema.optional(Schema.Number),\n properties: Schema.optional(\n Schema.Record({\n key: Schema.String,\n value: Schema.NullOr(Schema.String),\n })\n ),\n selling_plan: Schema.optional(Schema.NullOr(Resource.ID)),\n})\n .pipe(BaseInput)\n .annotations({\n identifier: \"CartChangeItemOptionalInput\",\n title: \"cart_change_item_optional_input\",\n description:\n \"An object representing optional input for changing an item in the cart\",\n examples: [\n {\n quantity: 1,\n properties: {\n key: \"property_key\",\n value: \"property_value\",\n },\n selling_plan: \"sp1234567890\",\n },\n {\n quantity: 1,\n properties: {\n key: \"property_key\",\n value: \"property_value\",\n },\n selling_plan: \"sp1234567890\",\n },\n ],\n });\n\nexport const LineItemChange = Schema.Struct({\n product_id: Schema.Number,\n variant_id: Schema.Number,\n id: Schema.String,\n image: Schema.NullOr(Schema.String),\n price: Schema.String,\n presentment_price: Schema.Number,\n quantity: Schema.Number,\n title: Schema.String,\n product_title: Schema.String,\n variant_title: Schema.String,\n vendor: Schema.String,\n product_type: Schema.String,\n sku: Schema.NullOr(Schema.String),\n url: Schema.String,\n untranslated_product_title: Schema.String,\n untranslated_variant_title: Schema.String,\n view_key: Schema.String,\n}).annotations({\n identifier: \"LineItemChange\",\n title: \"line_item_change\",\n description: \"An object representing a change in a line item in the cart\",\n});\n\nexport type CartChangeInput = Schema.Schema.Encoded<typeof CartChangeInput>;\nexport const CartChangeInput = Schema.Union(\n Schema.extend(CartChangeItemOptionalInput)(\n Schema.Struct({\n id: Schema.String,\n })\n ),\n Schema.extend(CartChangeItemOptionalInput)(\n Schema.Struct({\n line: Schema.Number,\n })\n )\n).annotations({\n identifier: \"CartChangeInput\",\n title: \"cart_change_input\",\n description:\n \"An object representing the input for changing an item in the cart\",\n examples: [\n {\n id: \"1234567890\",\n quantity: 1,\n properties: {\n key: \"property_key\",\n value: \"property_value\",\n },\n selling_plan: \"sp1234567890\",\n },\n {\n line: 1,\n quantity: 1,\n properties: {\n key: \"property_key\",\n value: \"property_value\",\n },\n selling_plan: \"sp1234567890\",\n },\n ],\n});\n\nexport type CartChangeOutput = Schema.Schema.Type<typeof CartChangeOutput>;\nexport const CartChangeOutput = makeCartTransformSchema(\n Schema.extend(\n BaseCart,\n Schema.Struct({\n items_added: Schema.Array(LineItemChange),\n items_removed: Schema.Array(LineItemChange),\n })\n )\n).annotations({\n identifier: \"CartChangeOutput\",\n title: \"cart_change_output\",\n description:\n \"An object representing the output for changing an item in the cart\",\n});\n\nexport type CartClearInput = Schema.Schema.Encoded<typeof CartClearInput>;\nexport const CartClearInput = Ajax.Sections.Input.annotations({\n identifier: \"CartClearInput\",\n title: \"cart_clear_input\",\n description: \"An object representing the input for clearing the cart\",\n examples: [{}, { sections: \"cart_drawer,cart_section\" }],\n});\n\nexport type CartGetInput = Schema.Schema.Encoded<typeof CartClearInput>;\nexport const CartGetInput = Ajax.Sections.Input.annotations({\n identifier: \"CartGetInput\",\n title: \"cart_get_input\",\n description: \"An object representing the input for getting the cart\",\n examples: [{}, { sections: \"cart_drawer,cart_section\" }],\n});\n\nexport type CartUpdateDiscountsInput = Schema.Schema.Encoded<\n typeof CartUpdateDiscountsInput\n>;\nexport const CartUpdateDiscountsInput = Schema.mutable(\n Schema.Array(Schema.NonEmptyString)\n);\n"]}
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../../src/effect/schema.ts"],"sourcesContent":["import { Ajax, Resource } from \"@brytdesigns/shopify-utils/effect\";\nimport { identity, pipe } from \"effect\";\nimport * as Arr from \"effect/Array\";\nimport * as Effect from \"effect/Effect\";\nimport * as Rec from \"effect/Record\";\nimport * as Schema from \"effect/Schema\";\nimport * as SchemaGetter from \"effect/SchemaGetter\";\n\ntype BaseAttributeValue = Schema.Schema.Type<typeof BaseAttributeValue>;\nconst BaseAttributeValue = Schema.Union([\n\tSchema.Null,\n\tSchema.String,\n\tSchema.Boolean,\n\tSchema.Number,\n]).annotate({\n\ttitle: \"base_attribute_value\",\n\tidentifier: \"BaseAttributeValue\",\n\tdescription:\n\t\t\"An attribute value that can be either a string, a boolean, or a number\",\n\texamples: [null, \"hello\", true, 123131],\n});\n\nconst AttributesArray = Schema.Array(\n\tSchema.Struct({ key: Schema.String, value: BaseAttributeValue }),\n).annotate({\n\ttitle: \"base_attributes_array\",\n\tidentifier: \"BaseAttributesArray\",\n\tdescription: \"An array of attribute key-value pairs\",\n\texamples: [\n\t\t[{ key: \"size\", value: \"medium\" }],\n\t\t[{ key: \"color\", value: \"red\" }],\n\t],\n});\n\nexport type BaseAttributes = Schema.Schema.Type<typeof BaseAttributes>;\nexport const BaseAttributes = Schema.Record(\n\tSchema.String,\n\tBaseAttributeValue,\n).annotate({\n\ttitle: \"base_attributes\",\n\tidentifier: \"BaseAttributes\",\n\tdescription: \"An object containing attribute key-value pairs\",\n\texamples: [\n\t\t{ key: \"size\", value: \"medium\" },\n\t\t{ key: \"color\", value: \"red\" },\n\t],\n});\n\nexport const BaseAttributesArray = BaseAttributes.pipe(\n\tSchema.decodeTo(AttributesArray, {\n\t\tdecode: SchemaGetter.transform((record) =>\n\t\t\tRec.toEntries(record).map(([key, value]) => ({ key, value })),\n\t\t),\n\t\tencode: SchemaGetter.transform((array) =>\n\t\t\tRec.fromEntries(\n\t\t\t\tpipe(\n\t\t\t\t\tarray,\n\t\t\t\t\tArr.map(({ key, value }) => [key, value]),\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t}),\n).annotate({\n\ttitle: \"base_attributes_array\",\n\tidentifier: \"BaseAttributesArray\",\n\tdescription: \"An array of attribute key-value pairs\",\n\texamples: [\n\t\t[{ key: \"size\", value: \"medium\" }],\n\t\t[{ key: \"color\", value: \"red\" }],\n\t],\n});\n\nconst BasePrivateAttributes = BaseAttributes.pipe(\n\tSchema.decodeTo(BaseAttributes, {\n\t\tdecode: SchemaGetter.transform(Rec.filter((_, key) => key.startsWith(\"_\"))),\n\t\tencode: SchemaGetter.transform(identity),\n\t}),\n).annotate({\n\ttitle: \"base_private_attributes\",\n\tidentifier: \"BasePrivateAttributes\",\n\tdescription: \"An object containing private(_) attribute key-value pairs\",\n\texamples: [{ _key: \"private_attribute\" }],\n});\n\nconst BasePublicAttributes = BaseAttributes.pipe(\n\tSchema.decodeTo(BaseAttributes, {\n\t\tdecode: SchemaGetter.transform(\n\t\t\tRec.filter((_, key) => !key.startsWith(\"_\")),\n\t\t),\n\t\tencode: SchemaGetter.transform(identity),\n\t}),\n).annotate({\n\ttitle: \"base_public_attributes\",\n\tidentifier: \"BasePublicAttributes\",\n\tdescription: \"An object containing public attribute key-value pairs\",\n\texamples: [{ key: \"public_attribute\" }],\n});\n\nconst BasePrivateAttributesArray = BasePrivateAttributes.pipe(\n\tSchema.decodeTo(AttributesArray, {\n\t\tdecode: SchemaGetter.transform((record) =>\n\t\t\tRec.toEntries(record).map(([key, value]) => ({ key, value })),\n\t\t),\n\t\tencode: SchemaGetter.transform((array) =>\n\t\t\tRec.fromEntries(\n\t\t\t\tpipe(\n\t\t\t\t\tarray,\n\t\t\t\t\tArr.map(({ key, value }) => [key, value]),\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t}),\n).annotate({\n\ttitle: \"base_private_attributes_array\",\n\tidentifier: \"BasePrivateAttributesArray\",\n\tdescription: \"An array of private(_)_attribute key-value pairs\",\n\texamples: [[{ key: \"_private_key\", value: \"private_value\" }]],\n});\n\nconst BasePublicAttributesArray = BasePublicAttributes.pipe(\n\tSchema.decodeTo(AttributesArray, {\n\t\tdecode: SchemaGetter.transform((record) =>\n\t\t\tRec.toEntries(record).map(([key, value]) => ({ key, value })),\n\t\t),\n\t\tencode: SchemaGetter.transform((array) =>\n\t\t\tRec.fromEntries(\n\t\t\t\tpipe(\n\t\t\t\t\tarray,\n\t\t\t\t\tArr.map(({ key, value }) => [key, value]),\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t}),\n).annotate({\n\ttitle: \"base_public_attributes_array\",\n\tidentifier: \"BasePublicAttributesArray\",\n\tdescription: \"An array of public attribute key-value pairs\",\n\texamples: [[{ key: \"public_key\", value: \"public_value\" }]],\n});\n\nexport const Attributes = BaseAttributes.pipe(\n\tSchema.decodeTo(\n\t\tSchema.Struct({\n\t\t\tprivate: Schema.Struct({\n\t\t\t\tarray: BasePrivateAttributesArray,\n\t\t\t\trecord: BasePrivateAttributes,\n\t\t\t}),\n\t\t\tpublic: Schema.Struct({\n\t\t\t\tarray: BasePublicAttributesArray,\n\t\t\t\trecord: BasePublicAttributes,\n\t\t\t}),\n\t\t}),\n\t\t{\n\t\t\tdecode: SchemaGetter.transform((attributes) => ({\n\t\t\t\tprivate: {\n\t\t\t\t\tarray: attributes,\n\t\t\t\t\trecord: attributes,\n\t\t\t\t},\n\t\t\t\tpublic: {\n\t\t\t\t\tarray: attributes,\n\t\t\t\t\trecord: attributes,\n\t\t\t\t},\n\t\t\t})),\n\t\t\tencode: SchemaGetter.transform((attributes) => ({\n\t\t\t\t...attributes.private.record,\n\t\t\t\t...attributes.public.record,\n\t\t\t})),\n\t\t},\n\t),\n).annotate({\n\ttitle: \"attributes\",\n\tidentifier: \"Attributes\",\n\tdescription:\n\t\t\"An object containing private and public properties which contain the array and record of private and public attribute key-value pairs\",\n\texamples: [\n\t\t{\n\t\t\tprivate: {\n\t\t\t\tarray: [{ key: \"_size\", value: \"medium\" }],\n\t\t\t\trecord: { _size: \"medium\" },\n\t\t\t},\n\t\t\tpublic: {\n\t\t\t\tarray: [{ key: \"public_size\", value: \"large\" }],\n\t\t\t\trecord: { public_size: \"large\" },\n\t\t\t},\n\t\t},\n\t],\n});\n\nexport type DiscountApplication = Schema.Schema.Type<\n\ttypeof DiscountApplication\n>;\n\nexport const DiscountApplication = Schema.Struct({\n\ttarget_selection: Schema.Literals([\"all\", \"entitled\", \"explicit\"]),\n\ttarget_type: Schema.Literals([\"line_item\", \"shipping_line\"]),\n\ttitle: Schema.NonEmptyString,\n\ttotal_allocated_amount: Schema.Number,\n\ttype: Schema.Literals([\"\", \"automatic\", \"discount_code\", \"manual\", \"script\"]),\n\tvalue: Schema.Union([Schema.Number, Schema.NumberFromString]),\n\tvalue_type: Schema.Literals([\"fixed_amount\", \"percentage\"]),\n\tdescription: Schema.NullOr(Schema.String),\n}).annotate({\n\ttitle: \"discount_application\",\n\tidentifier: \"DiscountApplication\",\n\tdescription: \"An object representing a discount application\",\n\texamples: [\n\t\t{\n\t\t\ttarget_selection: \"all\",\n\t\t\ttarget_type: \"line_item\",\n\t\t\ttitle: \"10% off all line items\",\n\t\t\ttotal_allocated_amount: 10,\n\t\t\ttype: \"automatic\",\n\t\t\tvalue_type: \"percentage\",\n\t\t\tvalue: 10,\n\t\t\tdescription: null,\n\t\t},\n\t],\n});\n\nexport const Discount = Schema.Struct({\n\tamount: Schema.Number,\n\ttitle: Schema.String,\n}).annotate({\n\ttitle: \"discount\",\n\tidentifier: \"Discount\",\n\tdescription: \"An object representing a discount\",\n\texamples: [{ amount: 10, title: \"10% off\" }],\n});\n\nexport type CurrencyCode = Schema.Schema.Type<typeof CurrencyCode>;\nexport const CurrencyCode = Schema.String.annotate({\n\ttitle: \"currency_code\",\n\tidentifier: \"CurrencyCode\",\n\tdescription: \"An ISO 4217 currency code\",\n\texamples: [\"USD\", \"EUR\", \"GBP\"],\n});\n\nexport type Image = Schema.Schema.Type<typeof Image>;\nexport const Image = Schema.Struct({\n\taspect_ratio: Schema.NullOr(Schema.Number),\n\talt: Schema.NullOr(Schema.String),\n\theight: Schema.NullOr(Schema.Number),\n\turl: Schema.NullOr(Schema.String),\n\twidth: Schema.NullOr(Schema.Number),\n}).annotate({\n\ttitle: \"image\",\n\tidentifier: \"Image\",\n\tdescription: \"An object representing an image\",\n\texamples: [\n\t\t{\n\t\t\turl: \"https://example.com/image.jpg\",\n\t\t\talt: \"Example image\",\n\t\t\theight: 100,\n\t\t\twidth: 100,\n\t\t\taspect_ratio: 1,\n\t\t},\n\t\t{\n\t\t\turl: null,\n\t\t\talt: null,\n\t\t\theight: null,\n\t\t\twidth: null,\n\t\t\taspect_ratio: null,\n\t\t},\n\t],\n});\n\nexport type OptionWithValue = Schema.Schema.Type<typeof OptionWithValue>;\nexport const OptionWithValue = Schema.Struct({\n\tname: Schema.String,\n\tvalue: Schema.String,\n}).annotate({\n\ttitle: \"option_with_value\",\n\tidentifier: \"OptionWithValue\",\n\tdescription: \"An object representing an option with a value\",\n\texamples: [{ name: \"Size\", value: \"Large\" }],\n});\n\nexport type QuantityRule = Schema.Schema.Type<typeof QuantityRule>;\nexport const QuantityRule = Schema.Struct({\n\tmin: Schema.Number,\n\tmax: Schema.NullOr(Schema.Number),\n\tincrement: Schema.Number,\n}).annotate({\n\ttitle: \"quantity_rule\",\n\tidentifier: \"QuantityRule\",\n\tdescription: \"An object representing a quantity rule\",\n\texamples: [{ min: 1, max: 5, increment: 1 }],\n});\n\nexport type SellingPlanAllocationPriceAdjustment = Schema.Schema.Type<\n\ttypeof SellingPlanAllocationPriceAdjustment\n>;\nexport const SellingPlanAllocationPriceAdjustment = Schema.Struct({\n\tposition: Schema.Number,\n\tprice: Schema.Number,\n}).annotate({\n\ttitle: \"selling_plan_allocation_price_adjustment\",\n\tidentifier: \"SellingPlanAllocationPriceAdjustment\",\n\tdescription:\n\t\t\"An object representing a selling plan allocation price adjustment\",\n\texamples: [{ position: 1, price: 10.0 }],\n});\n\nexport const SellingPlanPriceAdjustment = Schema.Struct({\n\torder_count: Schema.NullOr(Schema.Number),\n\tposition: Schema.Number,\n\tvalue: Schema.Union([Schema.Number, Schema.String]),\n\tvalue_type: Schema.Literals([\"percentage\", \"fixed_amount\", \"price\"]),\n}).annotate({\n\ttitle: \"selling_plan_price_adjustment\",\n\tidentifier: \"SellingPlanPriceAdjustment\",\n\tdescription: \"An object representing a selling plan price adjustment\",\n\texamples: [\n\t\t{ order_count: null, position: 1, value: 10.0, value_type: \"percentage\" },\n\t],\n});\n\nexport type SellingPlanOption = Schema.Schema.Type<typeof SellingPlanOption>;\nexport const SellingPlanOption = Schema.Struct({\n\tname: Schema.String,\n\tposition: Schema.Number,\n\tvalue: Schema.String,\n}).annotate({\n\ttitle: \"selling_plan_option\",\n\tidentifier: \"SellingPlanOption\",\n\tdescription: \"An object representing a selling plan option\",\n\texamples: [{ name: \"Size\", position: 1, value: \"Large\" }],\n});\n\nexport type SellingPlan = Schema.Schema.Type<typeof SellingPlan>;\nexport const SellingPlan = Schema.Struct({\n\tid: Resource.ID,\n\tname: Schema.String,\n\tdescription: Schema.NullOr(Schema.String),\n\toptions: Schema.Array(SellingPlanOption),\n\trecurring_deliveries: Schema.Boolean.pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed(false)),\n\t),\n\tfixed_selling_plan: Schema.Boolean.pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed(false)),\n\t),\n\tprice_adjustments: Schema.Array(SellingPlanPriceAdjustment),\n}).annotate({\n\ttitle: \"selling_plan\",\n\tidentifier: \"SellingPlan\",\n\tdescription: \"An object representing a selling plan\",\n\texamples: [\n\t\t{\n\t\t\tid: \"sp-123\",\n\t\t\tname: \"Standard Plan\",\n\t\t\tdescription: \"A basic selling plan\",\n\t\t\toptions: [{ name: \"Size\", position: 1, value: \"Large\" }],\n\t\t\trecurring_deliveries: false,\n\t\t\tfixed_selling_plan: false,\n\t\t\tprice_adjustments: [],\n\t\t},\n\t],\n});\n\nexport type SellingPlanAllocation = Schema.Schema.Type<\n\ttypeof SellingPlanAllocation\n>;\nexport const SellingPlanAllocation = Schema.Struct({\n\tprice_adjustments: Schema.Array(SellingPlanAllocationPriceAdjustment),\n\tprice: Schema.Number,\n\tcompare_at_price: Schema.Number,\n\tper_delivery_price: Schema.Number,\n\tselling_plan: SellingPlan,\n}).annotate({\n\ttitle: \"selling_plan_allocation\",\n\tidentifier: \"SellingPlanAllocation\",\n\tdescription: \"An object representing a selling plan allocation\",\n\texamples: [\n\t\t{\n\t\t\tprice_adjustments: [],\n\t\t\tprice: 10.0,\n\t\t\tcompare_at_price: 15.0,\n\t\t\tper_delivery_price: 10.0,\n\t\t\tselling_plan: {\n\t\t\t\tid: \"sp-123\",\n\t\t\t\tname: \"Standard Plan\",\n\t\t\t\tdescription: \"A basic selling plan\",\n\t\t\t\toptions: [{ name: \"Size\", position: 1, value: \"Large\" }],\n\t\t\t\trecurring_deliveries: false,\n\t\t\t\tfixed_selling_plan: false,\n\t\t\t\tprice_adjustments: [],\n\t\t\t},\n\t\t},\n\t],\n});\n\nexport type LineLevelDiscountAllocation = Schema.Schema.Type<\n\ttypeof LineLevelDiscountAllocation\n>;\nexport const LineLevelDiscountAllocation = Schema.Struct({\n\tamount: Schema.Number,\n\tdiscount_application: DiscountApplication,\n}).annotate({\n\ttitle: \"line_level_discount_allocation\",\n\tidentifier: \"LineLevelDiscountAllocation\",\n\tdescription: \"An object representing a line level discount allocation\",\n\texamples: [\n\t\t{\n\t\t\tamount: 10.0,\n\t\t\tdiscount_application: {\n\t\t\t\ttarget_selection: \"all\",\n\t\t\t\ttarget_type: \"line_item\",\n\t\t\t\ttitle: \"10% off all line items\",\n\t\t\t\ttotal_allocated_amount: 10,\n\t\t\t\ttype: \"automatic\",\n\t\t\t\tvalue_type: \"percentage\",\n\t\t\t\tvalue: 10,\n\t\t\t\tdescription: null,\n\t\t\t},\n\t\t},\n\t],\n});\n\nconst CartLevelDiscountApplicationUpdate = Schema.Struct({\n\tdiscount_application: DiscountApplication,\n})\n\t.pipe(\n\t\tSchema.decodeTo(DiscountApplication, {\n\t\t\tdecode: SchemaGetter.transform(\n\t\t\t\t(application) => application.discount_application,\n\t\t\t),\n\t\t\t// v4 surfaced a mismatch v3's looser inference hid: the encode direction\n\t\t\t// receives DiscountApplication's *Encoded* form (its `value` is\n\t\t\t// number | string, via NumberFromString) but must produce the struct's\n\t\t\t// *Type*. These schemas only ever decode responses, so the encode branch\n\t\t\t// is unreachable in practice; the cast keeps the shape v3 had rather than\n\t\t\t// silently changing behaviour.\n\t\t\tencode: SchemaGetter.transform((discountApplication) => ({\n\t\t\t\tdiscount_application: discountApplication,\n\t\t\t})) as never,\n\t\t}),\n\t)\n\t.annotate({\n\t\ttitle: \"cart_level_discount_application\",\n\t\tidentifier: \"CartLevelDiscountApplication\",\n\t\tdescription: \"An object representing a cart level discount application\",\n\t\texamples: [\n\t\t\t{\n\t\t\t\ttarget_selection: \"all\",\n\t\t\t\ttarget_type: \"line_item\",\n\t\t\t\ttitle: \"10% off all line items\",\n\t\t\t\ttotal_allocated_amount: 10,\n\t\t\t\ttype: \"automatic\",\n\t\t\t\tvalue_type: \"percentage\",\n\t\t\t\tvalue: 10,\n\t\t\t\tdescription: null,\n\t\t\t},\n\t\t],\n\t});\n\nexport const CartLevelDiscountApplication = Schema.Union([\n\tDiscountApplication,\n\tCartLevelDiscountApplicationUpdate,\n]).annotate({\n\ttitle: \"cart_level_discount_application\",\n\tidentifier: \"CartLevelDiscountApplication\",\n\tdescription: \"An object representing a cart level discount application\",\n\texamples: [\n\t\t{\n\t\t\ttarget_selection: \"all\",\n\t\t\ttarget_type: \"line_item\",\n\t\t\ttitle: \"10% off all line items\",\n\t\t\ttotal_allocated_amount: 10,\n\t\t\ttype: \"automatic\",\n\t\t\tvalue_type: \"percentage\",\n\t\t\tvalue: 10,\n\t\t\tdescription: null,\n\t\t},\n\t],\n});\n\nexport type UnitPriceMeasurement = Schema.Schema.Type<\n\ttypeof UnitPriceMeasurement\n>;\nexport const UnitPriceMeasurement = Schema.Struct({\n\tmeasured_type: Schema.Literals([\"volume\", \"weight\", \"dimension\"]),\n\tquantity_unit: Schema.String,\n\tquantity_value: Schema.Number,\n\treference_unit: Schema.String,\n\treference_value: Schema.Number,\n}).annotate({\n\ttitle: \"unit_price_measurement\",\n\tidentifier: \"UnitPriceMeasurement\",\n\tdescription: \"An object representing a unit price measurement\",\n\texamples: [\n\t\t{\n\t\t\tmeasured_type: \"volume\",\n\t\t\tquantity_unit: \"gallons\",\n\t\t\tquantity_value: 1,\n\t\t\treference_unit: \"ounces\",\n\t\t\treference_value: 128,\n\t\t},\n\t],\n});\n\nconst VariantOptions = Schema.Array(Schema.String)\n\t.pipe(Schema.withDecodingDefaultType(Effect.succeed([])))\n\t.annotate({\n\t\ttitle: \"variant_options\",\n\t\tidentifier: \"VariantOptions\",\n\t\tdescription: \"An array of strings representing variant options\",\n\t\texamples: [[\"Red\", \"Size 10\"]],\n\t});\n\nexport type BaseLineItem = Schema.Schema.Type<typeof BaseLineItem>;\nconst BaseLineItem = Schema.Struct({\n\tid: Resource.ID,\n\tproperties: BaseAttributes,\n\tquantity: Schema.Number,\n\tvariant_id: Resource.ID,\n\tkey: Schema.String,\n\ttitle: Schema.String,\n\tprice: Schema.Number,\n\toriginal_price: Schema.Number,\n\tdiscounted_price: Schema.Number,\n\tline_price: Schema.Number,\n\toriginal_line_price: Schema.Number,\n\ttotal_discount: Schema.Number,\n\tdiscounts: Schema.Array(Discount).pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t),\n\tsku: Schema.NullOr(Schema.String),\n\tgrams: Schema.Number,\n\tvendor: Schema.String,\n\ttaxable: Schema.Boolean,\n\tproduct_id: Resource.ID,\n\tproduct_has_only_default_variant: Schema.Boolean,\n\tgift_card: Schema.Boolean,\n\tfinal_line_price: Schema.Number,\n\tfinal_price: Schema.Number,\n\turl: Schema.String,\n\tfeatured_image: Image,\n\timage: Schema.NullOr(Schema.String),\n\thandle: Schema.String,\n\trequires_shipping: Schema.Boolean,\n\tproduct_type: Schema.NullOr(Schema.String),\n\tproduct_title: Schema.String,\n\tproduct_description: Schema.NullOr(Schema.String),\n\tvariant_title: Schema.NullOr(Schema.String),\n\tvariant_options: VariantOptions,\n\toptions_with_values: Schema.Array(OptionWithValue),\n\tline_level_discount_allocations: Schema.Array(LineLevelDiscountAllocation),\n\tline_level_total_discount: Schema.Number,\n\tquantity_rule: Schema.optional(QuantityRule),\n\thas_components: Schema.Boolean.pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed(false)),\n\t),\n\tunit_price: Schema.optional(Schema.Number),\n\tunit_price_measurement: Schema.optional(UnitPriceMeasurement),\n\tselling_plan_allocation: Schema.NullOr(SellingPlanAllocation).pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed(null)),\n\t),\n}).annotate({\n\tidentifier: \"BaseLineItem\",\n\ttitle: \"base_line_item\",\n\tdescription: \"An object representing the base cart line item\",\n\texamples: [\n\t\t{\n\t\t\tid: 103424255,\n\t\t\tproperties: {\n\t\t\t\tSize: \"Large\",\n\t\t\t\t_hidden: \"value\",\n\t\t\t},\n\t\t\tquantity: 1,\n\t\t\tvariant_id: 103424256,\n\t\t\tkey: \"2klj234ljlkjsdlf:103424255\",\n\t\t\ttitle: \"Black T-Shirt\",\n\t\t\tprice: 29.99,\n\t\t\toriginal_price: 39.99,\n\t\t\tdiscounted_price: 29.99,\n\t\t\tline_price: 29.99,\n\t\t\toriginal_line_price: 39.99,\n\t\t\ttotal_discount: 0,\n\t\t\tdiscounts: [],\n\t\t\tsku: \"SKU-12345\",\n\t\t\tgrams: 100,\n\t\t\tvendor: \"Vendor Name\",\n\t\t\ttaxable: true,\n\t\t\tproduct_id: 12345,\n\t\t\tproduct_has_only_default_variant: true,\n\t\t\tgift_card: false,\n\t\t\tfinal_line_price: 29.99,\n\t\t\tfinal_price: 29.99,\n\t\t\turl: \"https://example.com/products/black-t-shirt?variant=103424256\",\n\t\t\tfeatured_image: {\n\t\t\t\talt: \"Black T-Shirt\",\n\t\t\t\turl: \"https://example.com/black-t-shirt.jpg\",\n\t\t\t\twidth: 600,\n\t\t\t\theight: 400,\n\t\t\t\taspect_ratio: 1.5,\n\t\t\t},\n\t\t\timage: \"https://example.com/black-t-shirt.jpg\",\n\t\t\thandle: \"black-t-shirt\",\n\t\t\trequires_shipping: true,\n\t\t\tproduct_type: \"t-shirt\",\n\t\t\tproduct_title: \"Black T-Shirt\",\n\t\t\tproduct_description: \"A stylish and comfortable t-shirt.\",\n\t\t\tvariant_title: \"Large\",\n\t\t\tvariant_options: [\"Large\"],\n\t\t\toptions_with_values: [],\n\t\t\tline_level_discount_allocations: [],\n\t\t\tline_level_total_discount: 0,\n\t\t\tquantity_rule: {\n\t\t\t\tmin: 1,\n\t\t\t\tmax: null,\n\t\t\t\tincrement: 1,\n\t\t\t},\n\t\t\thas_components: false,\n\t\t\tunit_price: 29.99,\n\t\t\tunit_price_measurement: {\n\t\t\t\tmeasured_type: \"volume\",\n\t\t\t\tquantity_unit: \"gallons\",\n\t\t\t\tquantity_value: 1,\n\t\t\t\treference_unit: \"ounces\",\n\t\t\t\treference_value: 128,\n\t\t\t},\n\t\t\tselling_plan_allocation: null,\n\t\t},\n\t],\n});\n\nexport type LineItem = Schema.Schema.Type<typeof LineItem>;\nexport const LineItem = BaseLineItem.pipe(\n\tSchema.decodeTo(\n\t\tBaseLineItem.pipe(\n\t\t\tSchema.fieldsAssign({\n\t\t\t\tproperties_array: BaseAttributesArray.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t\t\t),\n\t\t\t\tprivate_properties: BasePrivateAttributes.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed({})),\n\t\t\t\t),\n\t\t\t\tprivate_properties_array: BasePrivateAttributesArray.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t\t\t),\n\t\t\t\tpublic_properties: BasePublicAttributes.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed({})),\n\t\t\t\t),\n\t\t\t\tpublic_properties_array: BasePublicAttributesArray.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t\t\t),\n\t\t\t}),\n\t\t),\n\t\t{\n\t\t\tdecode: SchemaGetter.transform((lineItem) => ({\n\t\t\t\t...lineItem,\n\t\t\t\tproduct: lineItem.handle,\n\t\t\t\tproperties_array: lineItem.properties,\n\t\t\t\tprivate_properties: lineItem.properties,\n\t\t\t\tprivate_properties_array: lineItem.properties,\n\t\t\t\tpublic_properties: lineItem.properties,\n\t\t\t\tpublic_properties_array: lineItem.properties,\n\t\t\t})),\n\t\t\tencode: SchemaGetter.transform(\n\t\t\t\t(lineItem) =>\n\t\t\t\t\tpipe(\n\t\t\t\t\t\tRec.remove(\"properties_array\")(lineItem),\n\t\t\t\t\t\tRec.remove(\"private_properties\"),\n\t\t\t\t\t\tRec.remove(\"private_properties_array\"),\n\t\t\t\t\t\tRec.remove(\"public_properties\"),\n\t\t\t\t\t\tRec.remove(\"public_properties_array\"),\n\t\t\t\t\t) as BaseLineItem,\n\t\t\t),\n\t\t},\n\t),\n).annotate({\n\tidentifier: \"LineItem\",\n\ttitle: \"line_item\",\n\tdescription: \"An object representing a cart line item\",\n\texamples: [\n\t\t{\n\t\t\tid: 103424255,\n\t\t\tproperties: {\n\t\t\t\tSize: \"Large\",\n\t\t\t\t_hidden: \"value\",\n\t\t\t},\n\t\t\tproperties_array: [\n\t\t\t\t{ key: \"Size\", value: \"Large\" },\n\t\t\t\t{ key: \"_hidden\", value: \"value\" },\n\t\t\t],\n\t\t\tprivate_properties: {\n\t\t\t\t_hidden: \"value\",\n\t\t\t},\n\t\t\tprivate_properties_array: [{ key: \"_hidden\", value: \"value\" }],\n\t\t\tpublic_properties: {\n\t\t\t\tSize: \"Large\",\n\t\t\t},\n\t\t\tpublic_properties_array: [{ key: \"Size\", value: \"Large\" }],\n\t\t\tquantity: 1,\n\t\t\tvariant_id: 103424256,\n\t\t\tkey: \"2klj234ljlkjsdlf:103424255\",\n\t\t\ttitle: \"Black T-Shirt\",\n\t\t\tprice: 29.99,\n\t\t\toriginal_price: 39.99,\n\t\t\tdiscounted_price: 29.99,\n\t\t\tline_price: 29.99,\n\t\t\toriginal_line_price: 39.99,\n\t\t\ttotal_discount: 0,\n\t\t\tdiscounts: [],\n\t\t\tsku: \"SKU-12345\",\n\t\t\tgrams: 100,\n\t\t\tvendor: \"Vendor Name\",\n\t\t\ttaxable: true,\n\t\t\tproduct_id: 12345,\n\t\t\tproduct_has_only_default_variant: true,\n\t\t\tgift_card: false,\n\t\t\tfinal_line_price: 29.99,\n\t\t\tfinal_price: 29.99,\n\t\t\turl: \"https://example.com/products/black-t-shirt?variant=103424256\",\n\t\t\tfeatured_image: {\n\t\t\t\talt: \"Black T-Shirt\",\n\t\t\t\turl: \"https://example.com/black-t-shirt.jpg\",\n\t\t\t\twidth: 600,\n\t\t\t\theight: 400,\n\t\t\t\taspect_ratio: 1.5,\n\t\t\t},\n\t\t\timage: \"https://example.com/black-t-shirt.jpg\",\n\t\t\thandle: \"black-t-shirt\",\n\t\t\trequires_shipping: true,\n\t\t\tproduct_type: \"t-shirt\",\n\t\t\tproduct_title: \"Black T-Shirt\",\n\t\t\tproduct_description: \"A stylish and comfortable t-shirt.\",\n\t\t\tvariant_title: \"Large\",\n\t\t\tvariant_options: [\"Large\"],\n\t\t\toptions_with_values: [],\n\t\t\tline_level_discount_allocations: [],\n\t\t\tline_level_total_discount: 0,\n\t\t\tquantity_rule: {\n\t\t\t\tmin: 1,\n\t\t\t\tmax: null,\n\t\t\t\tincrement: 1,\n\t\t\t},\n\t\t\thas_components: false,\n\t\t\tunit_price: 29.99,\n\t\t\tunit_price_measurement: {\n\t\t\t\tmeasured_type: \"volume\",\n\t\t\t\tquantity_unit: \"gallons\",\n\t\t\t\tquantity_value: 1,\n\t\t\t\treference_unit: \"ounces\",\n\t\t\t\treference_value: 128,\n\t\t\t},\n\t\t\tselling_plan_allocation: null,\n\t\t},\n\t],\n});\n\ntype BaseCart = Schema.Schema.Type<typeof BaseCart>;\nexport const BaseCart = Schema.Struct({\n\ttoken: Schema.String,\n\tnote: Schema.NullOr(Schema.String),\n\tattributes: BaseAttributes,\n\tdiscounts: Schema.Array(Discount).pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t),\n\tdiscount_codes: Schema.Array(\n\t\tSchema.Struct({ code: Schema.String, applicable: Schema.Boolean }),\n\t).pipe(Schema.withDecodingDefaultType(Effect.succeed([]))),\n\toriginal_total_price: Schema.Number,\n\ttotal_price: Schema.Number,\n\ttotal_discount: Schema.Number,\n\ttotal_weight: Schema.Number,\n\titem_count: Schema.Number,\n\titems: Schema.Array(LineItem).annotate({ concurrency: \"unbounded\" }),\n\trequires_shipping: Schema.Boolean,\n\tcurrency: CurrencyCode,\n\titems_subtotal_price: Schema.Number,\n\tcart_level_discount_applications: Schema.Array(CartLevelDiscountApplication),\n}).annotate({\n\tidentifier: \"BaseCart\",\n\ttitle: \"base_cart\",\n\tdescription: \"An object representing the base cart\",\n\texamples: [\n\t\t{\n\t\t\ttoken: \"2lk34j2lk34kljl09sdfksldfk\",\n\t\t\tnote: \"This is a note\",\n\t\t\tattributes: {\n\t\t\t\tpublic: \"value\",\n\t\t\t\t_private: \"value2\",\n\t\t\t},\n\t\t\tdiscounts: [],\n\t\t\tdiscount_codes: [],\n\t\t\toriginal_total_price: 99.99,\n\t\t\ttotal_price: 99.99,\n\t\t\ttotal_discount: 0,\n\t\t\ttotal_weight: 100,\n\t\t\titem_count: 1,\n\t\t\titems: [],\n\t\t\trequires_shipping: true,\n\t\t\tcurrency: \"USD\",\n\t\t\titems_subtotal_price: 99.99,\n\t\t\tcart_level_discount_applications: [],\n\t\t},\n\t],\n});\n\ntype Cart = Schema.Schema.Type<typeof Cart>;\nexport const Cart = BaseCart.pipe(\n\tSchema.fieldsAssign({\n\t\tattributes_array: BaseAttributesArray.pipe(\n\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t),\n\t\tprivate_attributes: BasePrivateAttributes.pipe(\n\t\t\tSchema.withDecodingDefaultType(Effect.succeed({})),\n\t\t),\n\t\tprivate_attributes_array: BasePrivateAttributesArray.pipe(\n\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t),\n\t\tpublic_attributes: BasePublicAttributes.pipe(\n\t\t\tSchema.withDecodingDefaultType(Effect.succeed({})),\n\t\t),\n\t\tpublic_attributes_array: BasePublicAttributesArray.pipe(\n\t\t\tSchema.withDecodingDefaultType(Effect.succeed([])),\n\t\t),\n\t}),\n).annotate({\n\tidentifier: \"Cart\",\n\ttitle: \"cart\",\n\tdescription: \"An object representing a cart\",\n\texamples: [\n\t\t{\n\t\t\ttoken: \"2lk34j2lk34kljl09sdfksldfk\",\n\t\t\tnote: \"This is a note\",\n\t\t\tattributes: {\n\t\t\t\tpublic: \"value\",\n\t\t\t\t_private: \"value2\",\n\t\t\t},\n\t\t\tattributes_array: [\n\t\t\t\t{ key: \"public\", value: \"value\" },\n\t\t\t\t{ key: \"_private\", value: \"value2\" },\n\t\t\t],\n\t\t\tprivate_attributes: { _private: \"value2\" },\n\t\t\tprivate_attributes_array: [{ key: \"_private\", value: \"value2\" }],\n\t\t\tpublic_attributes: { public: \"value\" },\n\t\t\tpublic_attributes_array: [{ key: \"public\", value: \"value\" }],\n\t\t\tdiscounts: [],\n\t\t\tdiscount_codes: [],\n\t\t\toriginal_total_price: 99.99,\n\t\t\ttotal_price: 99.99,\n\t\t\ttotal_discount: 0,\n\t\t\ttotal_weight: 100,\n\t\t\titem_count: 1,\n\t\t\titems: [],\n\t\t\trequires_shipping: true,\n\t\t\tcurrency: \"USD\",\n\t\t\titems_subtotal_price: 99.99,\n\t\t\tcart_level_discount_applications: [],\n\t\t},\n\t],\n});\n\nexport const makeCartTransformSchema = <\n\tA extends Schema.Schema.Type<typeof BaseCart>,\n\tI,\n\tR,\n>(\n\tschema: Schema.Codec<A, I, R>,\n) =>\n\tschema.pipe(\n\t\tSchema.decodeTo(Cart, {\n\t\t\tdecode: SchemaGetter.transform((cart) => ({\n\t\t\t\t...cart,\n\t\t\t\tattributes_array: cart.attributes,\n\t\t\t\tprivate_attributes: cart.attributes,\n\t\t\t\tprivate_attributes_array: cart.attributes,\n\t\t\t\tpublic_attributes: cart.attributes,\n\t\t\t\tpublic_attributes_array: cart.attributes,\n\t\t\t})),\n\t\t\tencode: SchemaGetter.transform(\n\t\t\t\t(cart) =>\n\t\t\t\t\tpipe(\n\t\t\t\t\t\tRec.remove(\"attributes_array\")(cart),\n\t\t\t\t\t\tRec.remove(\"private_attributes\"),\n\t\t\t\t\t\tRec.remove(\"private_attributes_array\"),\n\t\t\t\t\t\tRec.remove(\"public_attributes\"),\n\t\t\t\t\t\tRec.remove(\"public_attributes_array\"),\n\t\t\t\t\t) as Schema.Schema.Type<Schema.Codec<A, I, R>>,\n\t\t\t),\n\t\t}),\n\t);\n\nexport const CartOutput = makeCartTransformSchema(BaseCart);\n\nexport const makeCartSchema = (sections?: string) => {\n\tif (sections) {\n\t\treturn makeCartTransformSchema(\n\t\t\tBaseCart.pipe(\n\t\t\t\tSchema.fieldsAssign({\n\t\t\t\t\tsections: Schema.NullOr(\n\t\t\t\t\t\tAjax.Sections.makeResponseSchema(sections),\n\t\t\t\t\t).pipe(Schema.withDecodingDefaultType(Effect.succeed(null))),\n\t\t\t\t}),\n\t\t\t),\n\t\t);\n\t}\n\treturn makeCartTransformSchema(\n\t\tBaseCart.pipe(\n\t\t\tSchema.fieldsAssign({\n\t\t\t\tsections: Schema.Null.pipe(\n\t\t\t\t\tSchema.withDecodingDefaultType(Effect.succeed(null)),\n\t\t\t\t),\n\t\t\t}),\n\t\t),\n\t);\n};\n\nexport type AddItemInput = Schema.Codec.Encoded<typeof AddItemInput>;\nexport const AddItemInput = Schema.Struct({\n\tid: Resource.ID,\n\tquantity: Schema.Number.pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed(1)),\n\t),\n\tproperties: BaseAttributes.pipe(\n\t\tSchema.withDecodingDefaultType(Effect.succeed({})),\n\t),\n\tselling_plan: Schema.optional(Resource.ID),\n}).annotate({\n\tidentifier: \"AddItemInput\",\n\ttitle: \"add_item_input\",\n\tdescription:\n\t\t\"An object representing the input for adding an item to the cart\",\n\texamples: [\n\t\t{\n\t\t\tid: \"1234567890\",\n\t\t\tquantity: 1,\n\t\t\tproperties: {\n\t\t\t\tpublic: \"value\",\n\t\t\t\t_private: \"value2\",\n\t\t\t},\n\t\t\tselling_plan: \"sp1234567890\",\n\t\t},\n\t],\n});\n\n// Not exported: its inferred type references effect's internal `fieldsAssign`\n// type, which dts-bundle-generator cannot name (TS4023). Internal-only anyway.\nconst BaseInput = Schema.fieldsAssign(Ajax.Sections.Input.fields);\n\nexport type CartAddInput = Schema.Codec.Encoded<typeof CartAddInput>;\nexport const CartAddInput = Schema.Struct({\n\titems: Schema.Array(AddItemInput),\n})\n\t.pipe(BaseInput)\n\t.annotate({\n\t\tidentifier: \"CartAddInput\",\n\t\ttitle: \"cart_add_input\",\n\t\tdescription:\n\t\t\t\"An object representing the input for adding items to the cart\",\n\t\texamples: [\n\t\t\t{\n\t\t\t\titems: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: \"1234567890\",\n\t\t\t\t\t\tquantity: 1,\n\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\tpublic: \"value\",\n\t\t\t\t\t\t\t_private: \"value2\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tselling_plan: \"sp1234567890\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t});\n\nexport type CartAddOutput = Schema.Schema.Type<typeof CartAddOutput>;\nexport const CartAddOutput = Schema.Struct({\n\titems: Schema.Array(LineItem),\n}).annotate({\n\tidentifier: \"CartAddOutput\",\n\ttitle: \"cart_add_output\",\n\tdescription: \"An object representing the output for adding items to the cart\",\n});\n\nexport type UpdateItemRecordInput = Schema.Codec.Encoded<\n\ttypeof UpdateItemRecordInput\n>;\nexport const UpdateItemRecordInput = Schema.Record(\n\tSchema.String,\n\tSchema.Number,\n).annotate({\n\tidentifier: \"UpdateItemRecordInput\",\n\ttitle: \"update_item_record_input\",\n\tdescription: \"An object representing the input for updating an item record\",\n\texamples: [\n\t\t{\n\t\t\t11231233132: 2,\n\t\t\t1115235234242: 0,\n\t\t},\n\t],\n});\n\nconst DiscountCodeInput = Schema.Array(Schema.String);\nconst DiscountCodeTransformed = Schema.String;\n\nexport type CartUpdateInput = Schema.Codec.Encoded<typeof CartUpdateInput>;\nexport const CartUpdateInput = Schema.Struct({\n\tupdates: Schema.optional(\n\t\tSchema.Union([UpdateItemRecordInput, Schema.Array(Schema.Number)]),\n\t),\n\tnote: Schema.optional(Schema.NullOr(Schema.String)),\n\tattributes: Schema.optional(BaseAttributes),\n\tdiscount: Schema.optional(\n\t\tDiscountCodeInput.pipe(\n\t\t\tSchema.decodeTo(DiscountCodeTransformed, {\n\t\t\t\tdecode: SchemaGetter.transform((input) => input.join(\",\")),\n\t\t\t\tencode: SchemaGetter.transform((input) => input.split(\",\")),\n\t\t\t}),\n\t\t),\n\t),\n})\n\t.pipe(BaseInput)\n\t.annotate({\n\t\tidentifier: \"CartUpdateInput\",\n\t\ttitle: \"cart_update_input\",\n\t\tdescription: \"An object representing the input for updating the cart\",\n\t\texamples: [\n\t\t\t{\n\t\t\t\tupdates: {\n\t\t\t\t\t11231233132: 2,\n\t\t\t\t\t1115235234242: 0,\n\t\t\t\t},\n\t\t\t\tnote: \"Updated note\",\n\t\t\t\tattributes: {\n\t\t\t\t\tpublic: \"updated\",\n\t\t\t\t\t_private: \"updated2\",\n\t\t\t\t},\n\t\t\t\tdiscount: \"code1,code2\",\n\t\t\t},\n\t\t],\n\t});\n\nexport type ItemAddedChangelog = Schema.Schema.Type<typeof ItemAddedChangelog>;\nexport const ItemAddedChangelog = Schema.Struct({\n\tvariant_id: Schema.Number,\n\tquantity: Schema.Number,\n}).annotate({\n\tidentifier: \"ItemAddedChangelog\",\n\ttitle: \"item_added_changelog\",\n\tdescription: \"An object representing the item added to the cart\",\n\texamples: [\n\t\t{\n\t\t\tvariant_id: 123,\n\t\t\tquantity: 1,\n\t\t},\n\t],\n});\n\nexport type CartUpdateOutput = Schema.Schema.Type<typeof CartUpdateOutput>;\nconst cartUpdateFields = {\n\titems_changelog: Schema.Struct({\n\t\tadded: Schema.Array(ItemAddedChangelog),\n\t}),\n};\n\nexport const CartUpdateOutput = makeCartTransformSchema(\n\tBaseCart.pipe(Schema.fieldsAssign(cartUpdateFields)),\n).annotate({\n\tidentifier: \"CartUpdateOutput\",\n\ttitle: \"cart_update_output\",\n\tdescription: \"An object representing the output for updating the cart\",\n});\n\nexport const CartChangeItemOptionalInput = Schema.Struct({\n\tquantity: Schema.optional(Schema.Number),\n\tproperties: Schema.optional(\n\t\tSchema.Record(Schema.String, Schema.NullOr(Schema.String)),\n\t),\n\tselling_plan: Schema.optional(Schema.NullOr(Resource.ID)),\n})\n\t.pipe(BaseInput)\n\t.annotate({\n\t\tidentifier: \"CartChangeItemOptionalInput\",\n\t\ttitle: \"cart_change_item_optional_input\",\n\t\tdescription:\n\t\t\t\"An object representing optional input for changing an item in the cart\",\n\t\texamples: [\n\t\t\t{\n\t\t\t\tquantity: 1,\n\t\t\t\tproperties: {\n\t\t\t\t\tkey: \"property_key\",\n\t\t\t\t\tvalue: \"property_value\",\n\t\t\t\t},\n\t\t\t\tselling_plan: \"sp1234567890\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tquantity: 1,\n\t\t\t\tproperties: {\n\t\t\t\t\tkey: \"property_key\",\n\t\t\t\t\tvalue: \"property_value\",\n\t\t\t\t},\n\t\t\t\tselling_plan: \"sp1234567890\",\n\t\t\t},\n\t\t],\n\t});\n\nexport const LineItemChange = Schema.Struct({\n\tproduct_id: Schema.Number,\n\tvariant_id: Schema.Number,\n\tid: Schema.String,\n\timage: Schema.NullOr(Schema.String),\n\tprice: Schema.String,\n\tpresentment_price: Schema.Number,\n\tquantity: Schema.Number,\n\ttitle: Schema.String,\n\tproduct_title: Schema.String,\n\tvariant_title: Schema.String,\n\tvendor: Schema.String,\n\tproduct_type: Schema.String,\n\tsku: Schema.NullOr(Schema.String),\n\turl: Schema.String,\n\tuntranslated_product_title: Schema.String,\n\tuntranslated_variant_title: Schema.String,\n\tview_key: Schema.String,\n}).annotate({\n\tidentifier: \"LineItemChange\",\n\ttitle: \"line_item_change\",\n\tdescription: \"An object representing a change in a line item in the cart\",\n});\n\nexport type CartChangeInput = Schema.Codec.Encoded<typeof CartChangeInput>;\nexport const CartChangeInput = Schema.Union([\n\tSchema.Struct({\n\t\tid: Schema.String,\n\t}).pipe(Schema.fieldsAssign(CartChangeItemOptionalInput.fields)),\n\tSchema.Struct({\n\t\tline: Schema.Number,\n\t}).pipe(Schema.fieldsAssign(CartChangeItemOptionalInput.fields)),\n]).annotate({\n\tidentifier: \"CartChangeInput\",\n\ttitle: \"cart_change_input\",\n\tdescription:\n\t\t\"An object representing the input for changing an item in the cart\",\n\texamples: [\n\t\t{\n\t\t\tid: \"1234567890\",\n\t\t\tquantity: 1,\n\t\t\tproperties: {\n\t\t\t\tkey: \"property_key\",\n\t\t\t\tvalue: \"property_value\",\n\t\t\t},\n\t\t\tselling_plan: \"sp1234567890\",\n\t\t},\n\t\t{\n\t\t\tline: 1,\n\t\t\tquantity: 1,\n\t\t\tproperties: {\n\t\t\t\tkey: \"property_key\",\n\t\t\t\tvalue: \"property_value\",\n\t\t\t},\n\t\t\tselling_plan: \"sp1234567890\",\n\t\t},\n\t],\n});\n\nexport type CartChangeOutput = Schema.Schema.Type<typeof CartChangeOutput>;\nconst cartChangeFields = {\n\titems_added: Schema.Array(LineItemChange),\n\titems_removed: Schema.Array(LineItemChange),\n};\n\nexport const CartChangeOutput = makeCartTransformSchema(\n\tBaseCart.pipe(Schema.fieldsAssign(cartChangeFields)),\n).annotate({\n\tidentifier: \"CartChangeOutput\",\n\ttitle: \"cart_change_output\",\n\tdescription:\n\t\t\"An object representing the output for changing an item in the cart\",\n});\n\nexport type CartClearInput = Schema.Codec.Encoded<typeof CartClearInput>;\nexport const CartClearInput = Ajax.Sections.Input.annotate({\n\tidentifier: \"CartClearInput\",\n\ttitle: \"cart_clear_input\",\n\tdescription: \"An object representing the input for clearing the cart\",\n\texamples: [{}, { sections: \"cart_drawer,cart_section\" }],\n});\n\nexport type CartGetInput = Schema.Codec.Encoded<typeof CartClearInput>;\nexport const CartGetInput = Ajax.Sections.Input.annotate({\n\tidentifier: \"CartGetInput\",\n\ttitle: \"cart_get_input\",\n\tdescription: \"An object representing the input for getting the cart\",\n\texamples: [{}, { sections: \"cart_drawer,cart_section\" }],\n});\n\nexport type CartUpdateDiscountsInput = Schema.Codec.Encoded<\n\ttypeof CartUpdateDiscountsInput\n>;\nexport const CartUpdateDiscountsInput = Schema.mutable(\n\tSchema.Array(Schema.NonEmptyString),\n);\n\n/**\n * Per-route output factories for `makeRoute`.\n *\n * v4 can only extend a `Struct`, and these outputs are transforms, so the\n * sections field is composed into the pre-transform `BaseCart` here rather\n * than bolted onto the finished schema inside the ajax client.\n */\nconst sectionsField = (sections: string) => ({\n\tsections: Schema.NullOr(Ajax.Sections.makeResponseSchema(sections)),\n});\n\nexport const makeCartOutput = (sections?: string) =>\n\tsections === undefined ? CartOutput : makeCartSchema(sections);\n\nexport const makeCartUpdateOutput = (sections?: string) =>\n\tsections === undefined\n\t\t? CartUpdateOutput\n\t\t: makeCartTransformSchema(\n\t\t\t\tBaseCart.pipe(\n\t\t\t\t\tSchema.fieldsAssign({\n\t\t\t\t\t\t...cartUpdateFields,\n\t\t\t\t\t\t...sectionsField(sections),\n\t\t\t\t\t}),\n\t\t\t\t),\n\t\t\t);\n\nexport const makeCartChangeOutput = (sections?: string) =>\n\tsections === undefined\n\t\t? CartChangeOutput\n\t\t: makeCartTransformSchema(\n\t\t\t\tBaseCart.pipe(\n\t\t\t\t\tSchema.fieldsAssign({\n\t\t\t\t\t\t...cartChangeFields,\n\t\t\t\t\t\t...sectionsField(sections),\n\t\t\t\t\t}),\n\t\t\t\t),\n\t\t\t);\n\nexport const makeCartAddOutput = (sections?: string) =>\n\tsections === undefined\n\t\t? CartAddOutput\n\t\t: CartAddOutput.pipe(Schema.fieldsAssign(sectionsField(sections)));\n"],"mappings":";;;;;;;;AASA,IAAM,qBAAqB,OAAO,MAAM;CACvC,OAAO;CACP,OAAO;CACP,OAAO;CACP,OAAO;AACR,CAAC,CAAC,CAAC,SAAS;CACX,OAAO;CACP,YAAY;CACZ,aACC;CACD,UAAU;EAAC;EAAM;EAAS;EAAM;CAAM;AACvC,CAAC;AAED,IAAM,kBAAkB,OAAO,MAC9B,OAAO,OAAO;CAAE,KAAK,OAAO;CAAQ,OAAO;AAAmB,CAAC,CAChE,CAAC,CAAC,SAAS;CACV,OAAO;CACP,YAAY;CACZ,aAAa;CACb,UAAU,CACT,CAAC;EAAE,KAAK;EAAQ,OAAO;CAAS,CAAC,GACjC,CAAC;EAAE,KAAK;EAAS,OAAO;CAAM,CAAC,CAChC;AACD,CAAC;AAGD,IAAa,iBAAiB,OAAO,OACpC,OAAO,QACP,kBACD,CAAC,CAAC,SAAS;CACV,OAAO;CACP,YAAY;CACZ,aAAa;CACb,UAAU,CACT;EAAE,KAAK;EAAQ,OAAO;CAAS,GAC/B;EAAE,KAAK;EAAS,OAAO;CAAM,CAC9B;AACD,CAAC;AAED,IAAa,sBAAsB,eAAe,KACjD,OAAO,SAAS,iBAAiB;CAChC,QAAQ,aAAa,WAAW,WAC/B,IAAI,UAAU,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY;EAAE;EAAK;CAAM,EAAE,CAC7D;CACA,QAAQ,aAAa,WAAW,UAC/B,IAAI,YACH,KACC,OACA,IAAI,KAAK,EAAE,KAAK,YAAY,CAAC,KAAK,KAAK,CAAC,CACzC,CACD,CACD;AACD,CAAC,CACF,CAAC,CAAC,S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