ce-storefront 0.4.0 → 0.4.1

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.
Files changed (77) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/components/index.d.ts +3 -5
  4. package/esm/models/components/index.d.ts.map +1 -1
  5. package/esm/models/components/index.js +3 -5
  6. package/esm/models/components/index.js.map +1 -1
  7. package/esm/models/components/{singleproduct.d.ts → product.d.ts} +17 -14
  8. package/esm/models/components/product.d.ts.map +1 -0
  9. package/esm/models/components/{singleproduct.js → product.js} +19 -14
  10. package/esm/models/components/product.js.map +1 -0
  11. package/esm/models/components/productbundleitem.d.ts +142 -0
  12. package/esm/models/components/productbundleitem.d.ts.map +1 -0
  13. package/esm/models/components/productbundleitem.js +171 -0
  14. package/esm/models/components/productbundleitem.js.map +1 -0
  15. package/esm/models/components/productdetail.d.ts +139 -4
  16. package/esm/models/components/productdetail.d.ts.map +1 -1
  17. package/esm/models/components/productdetail.js +136 -10
  18. package/esm/models/components/productdetail.js.map +1 -1
  19. package/esm/models/components/productlist.d.ts +36 -0
  20. package/esm/models/components/productlist.d.ts.map +1 -0
  21. package/esm/models/components/productlist.js +35 -0
  22. package/esm/models/components/productlist.js.map +1 -0
  23. package/esm/models/operations/getcrosssell.d.ts +2 -2
  24. package/esm/models/operations/getcrosssell.d.ts.map +1 -1
  25. package/esm/models/operations/getcrosssell.js +2 -2
  26. package/esm/models/operations/getcrosssell.js.map +1 -1
  27. package/esm/models/operations/getproducts.d.ts +32 -2
  28. package/esm/models/operations/getproducts.d.ts.map +1 -1
  29. package/esm/models/operations/getproducts.js +29 -2
  30. package/esm/models/operations/getproducts.js.map +1 -1
  31. package/esm/models/operations/getsimilar.d.ts +2 -2
  32. package/esm/models/operations/getsimilar.d.ts.map +1 -1
  33. package/esm/models/operations/getsimilar.js +2 -2
  34. package/esm/models/operations/getsimilar.js.map +1 -1
  35. package/esm/models/operations/getskus.d.ts +15 -15
  36. package/esm/models/operations/getskus.d.ts.map +1 -1
  37. package/esm/models/operations/getskus.js +15 -15
  38. package/esm/models/operations/getskus.js.map +1 -1
  39. package/esm/models/operations/getupsell.d.ts +2 -2
  40. package/esm/models/operations/getupsell.d.ts.map +1 -1
  41. package/esm/models/operations/getupsell.js +2 -2
  42. package/esm/models/operations/getupsell.js.map +1 -1
  43. package/jsr.json +1 -1
  44. package/package.json +1 -1
  45. package/src/lib/config.ts +2 -2
  46. package/src/models/components/index.ts +3 -5
  47. package/src/models/components/{singleproduct.ts → product.ts} +69 -60
  48. package/src/models/components/productbundleitem.ts +329 -0
  49. package/src/models/components/productdetail.ts +295 -22
  50. package/src/models/components/productlist.ts +81 -0
  51. package/src/models/operations/getcrosssell.ts +4 -4
  52. package/src/models/operations/getproducts.ts +62 -4
  53. package/src/models/operations/getsimilar.ts +4 -4
  54. package/src/models/operations/getskus.ts +30 -27
  55. package/src/models/operations/getupsell.ts +4 -4
  56. package/esm/models/components/bundleproduct.d.ts +0 -236
  57. package/esm/models/components/bundleproduct.d.ts.map +0 -1
  58. package/esm/models/components/bundleproduct.js +0 -258
  59. package/esm/models/components/bundleproduct.js.map +0 -1
  60. package/esm/models/components/bundleproductdetail.d.ts +0 -265
  61. package/esm/models/components/bundleproductdetail.d.ts.map +0 -1
  62. package/esm/models/components/bundleproductdetail.js +0 -284
  63. package/esm/models/components/bundleproductdetail.js.map +0 -1
  64. package/esm/models/components/productlistresponse.d.ts +0 -58
  65. package/esm/models/components/productlistresponse.d.ts.map +0 -1
  66. package/esm/models/components/productlistresponse.js +0 -57
  67. package/esm/models/components/productlistresponse.js.map +0 -1
  68. package/esm/models/components/singleproduct.d.ts.map +0 -1
  69. package/esm/models/components/singleproduct.js.map +0 -1
  70. package/esm/models/components/singleproductdetail.d.ts +0 -159
  71. package/esm/models/components/singleproductdetail.d.ts.map +0 -1
  72. package/esm/models/components/singleproductdetail.js +0 -156
  73. package/esm/models/components/singleproductdetail.js.map +0 -1
  74. package/src/models/components/bundleproduct.ts +0 -494
  75. package/src/models/components/bundleproductdetail.ts +0 -560
  76. package/src/models/components/productlistresponse.ts +0 -141
  77. package/src/models/components/singleproductdetail.ts +0 -339
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.0";
34
- readonly sdkVersion: "0.4.0";
34
+ readonly sdkVersion: "0.4.1";
35
35
  readonly genVersion: "2.495.1";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.4.0 2.495.1 1.0 ce-storefront";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.4.1 2.495.1 1.0 ce-storefront";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -40,8 +40,8 @@ export function serverURLFromOptions(options) {
40
40
  export const SDK_METADATA = {
41
41
  language: "typescript",
42
42
  openapiDocVersion: "1.0",
43
- sdkVersion: "0.4.0",
43
+ sdkVersion: "0.4.1",
44
44
  genVersion: "2.495.1",
45
- userAgent: "speakeasy-sdk/typescript 0.4.0 2.495.1 1.0 ce-storefront",
45
+ userAgent: "speakeasy-sdk/typescript 0.4.1 2.495.1 1.0 ce-storefront",
46
46
  };
47
47
  //# sourceMappingURL=config.js.map
@@ -2,8 +2,6 @@ export * from "./analyticsevent.js";
2
2
  export * from "./anonymoususer.js";
3
3
  export * from "./associatedoption.js";
4
4
  export * from "./banktransfer.js";
5
- export * from "./bundleproduct.js";
6
- export * from "./bundleproductdetail.js";
7
5
  export * from "./business.js";
8
6
  export * from "./cardpayment.js";
9
7
  export * from "./cart.js";
@@ -51,11 +49,13 @@ export * from "./payupaymentinfo.js";
51
49
  export * from "./payupaymentmethod.js";
52
50
  export * from "./payusavedcard.js";
53
51
  export * from "./pincode.js";
52
+ export * from "./product.js";
54
53
  export * from "./productattribute.js";
54
+ export * from "./productbundleitem.js";
55
55
  export * from "./productcategory.js";
56
56
  export * from "./productdetail.js";
57
57
  export * from "./productimage.js";
58
- export * from "./productlistresponse.js";
58
+ export * from "./productlist.js";
59
59
  export * from "./productpricing.js";
60
60
  export * from "./productpromotion.js";
61
61
  export * from "./productreview.js";
@@ -66,8 +66,6 @@ export * from "./promotiondetail.js";
66
66
  export * from "./security.js";
67
67
  export * from "./seo.js";
68
68
  export * from "./shipmentitem.js";
69
- export * from "./singleproduct.js";
70
- export * from "./singleproductdetail.js";
71
69
  export * from "./singleselectoption.js";
72
70
  export * from "./sku.js";
73
71
  export * from "./updatecartitem.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C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BAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
@@ -5,8 +5,6 @@ export * from "./analyticsevent.js";
5
5
  export * from "./anonymoususer.js";
6
6
  export * from "./associatedoption.js";
7
7
  export * from "./banktransfer.js";
8
- export * from "./bundleproduct.js";
9
- export * from "./bundleproductdetail.js";
10
8
  export * from "./business.js";
11
9
  export * from "./cardpayment.js";
12
10
  export * from "./cart.js";
@@ -54,11 +52,13 @@ export * from "./payupaymentinfo.js";
54
52
  export * from "./payupaymentmethod.js";
55
53
  export * from "./payusavedcard.js";
56
54
  export * from "./pincode.js";
55
+ export * from "./product.js";
57
56
  export * from "./productattribute.js";
57
+ export * from "./productbundleitem.js";
58
58
  export * from "./productcategory.js";
59
59
  export * from "./productdetail.js";
60
60
  export * from "./productimage.js";
61
- export * from "./productlistresponse.js";
61
+ export * from "./productlist.js";
62
62
  export * from "./productpricing.js";
63
63
  export * from "./productpromotion.js";
64
64
  export * from "./productreview.js";
@@ -69,8 +69,6 @@ export * from "./promotiondetail.js";
69
69
  export * from "./security.js";
70
70
  export * from "./seo.js";
71
71
  export * from "./shipmentitem.js";
72
- export * from "./singleproduct.js";
73
- export * from "./singleproductdetail.js";
74
72
  export * from "./singleselectoption.js";
75
73
  export * from "./sku.js";
76
74
  export * from "./updatecartitem.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6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ACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
@@ -3,6 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  import { ProductAttribute, ProductAttribute$Outbound } from "./productattribute.js";
6
+ import { ProductBundleItem, ProductBundleItem$Outbound } from "./productbundleitem.js";
6
7
  import { ProductImage, ProductImage$Outbound } from "./productimage.js";
7
8
  import { ProductPricing, ProductPricing$Outbound } from "./productpricing.js";
8
9
  import { ProductPromotion, ProductPromotion$Outbound } from "./productpromotion.js";
@@ -15,7 +16,7 @@ export declare const ProductType: {
15
16
  readonly Bundle: "bundle";
16
17
  };
17
18
  export type ProductType = ClosedEnum<typeof ProductType>;
18
- export type SingleProduct = {
19
+ export type Product = {
19
20
  /**
20
21
  * The ULID of the product
21
22
  */
@@ -60,6 +61,7 @@ export type SingleProduct = {
60
61
  images: Array<ProductImage>;
61
62
  subscription: Array<ProductSubscription>;
62
63
  variants: Array<Variant>;
64
+ bundleItems: ProductBundleItem;
63
65
  };
64
66
  /** @internal */
65
67
  export declare const ProductType$inboundSchema: z.ZodNativeEnum<typeof ProductType>;
@@ -84,9 +86,9 @@ export declare namespace ProductType$ {
84
86
  }>;
85
87
  }
86
88
  /** @internal */
87
- export declare const SingleProduct$inboundSchema: z.ZodType<SingleProduct, z.ZodTypeDef, unknown>;
89
+ export declare const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
88
90
  /** @internal */
89
- export type SingleProduct$Outbound = {
91
+ export type Product$Outbound = {
90
92
  id: string;
91
93
  sku: string | null;
92
94
  name: string;
@@ -110,21 +112,22 @@ export type SingleProduct$Outbound = {
110
112
  images: Array<ProductImage$Outbound>;
111
113
  subscription: Array<ProductSubscription$Outbound>;
112
114
  variants: Array<Variant$Outbound>;
115
+ bundle_items: ProductBundleItem$Outbound;
113
116
  };
114
117
  /** @internal */
115
- export declare const SingleProduct$outboundSchema: z.ZodType<SingleProduct$Outbound, z.ZodTypeDef, SingleProduct>;
118
+ export declare const Product$outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
116
119
  /**
117
120
  * @internal
118
121
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
119
122
  */
120
- export declare namespace SingleProduct$ {
121
- /** @deprecated use `SingleProduct$inboundSchema` instead. */
122
- const inboundSchema: z.ZodType<SingleProduct, z.ZodTypeDef, unknown>;
123
- /** @deprecated use `SingleProduct$outboundSchema` instead. */
124
- const outboundSchema: z.ZodType<SingleProduct$Outbound, z.ZodTypeDef, SingleProduct>;
125
- /** @deprecated use `SingleProduct$Outbound` instead. */
126
- type Outbound = SingleProduct$Outbound;
123
+ export declare namespace Product$ {
124
+ /** @deprecated use `Product$inboundSchema` instead. */
125
+ const inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
126
+ /** @deprecated use `Product$outboundSchema` instead. */
127
+ const outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
128
+ /** @deprecated use `Product$Outbound` instead. */
129
+ type Outbound = Product$Outbound;
127
130
  }
128
- export declare function singleProductToJSON(singleProduct: SingleProduct): string;
129
- export declare function singleProductFromJSON(jsonString: string): SafeParseResult<SingleProduct, SDKValidationError>;
130
- //# sourceMappingURL=singleproduct.d.ts.map
131
+ export declare function productToJSON(product: Product): string;
132
+ export declare function productFromJSON(jsonString: string): SafeParseResult<Product, SDKValidationError>;
133
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/models/components/product.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAm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,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
@@ -5,6 +5,7 @@ import * as z from "zod";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ProductAttribute$inboundSchema, ProductAttribute$outboundSchema, } from "./productattribute.js";
8
+ import { ProductBundleItem$inboundSchema, ProductBundleItem$outboundSchema, } from "./productbundleitem.js";
8
9
  import { ProductImage$inboundSchema, ProductImage$outboundSchema, } from "./productimage.js";
9
10
  import { ProductPricing$inboundSchema, ProductPricing$outboundSchema, } from "./productpricing.js";
10
11
  import { ProductPromotion$inboundSchema, ProductPromotion$outboundSchema, } from "./productpromotion.js";
@@ -33,7 +34,7 @@ export var ProductType$;
33
34
  ProductType$.outboundSchema = ProductType$outboundSchema;
34
35
  })(ProductType$ || (ProductType$ = {}));
35
36
  /** @internal */
36
- export const SingleProduct$inboundSchema = z.object({
37
+ export const Product$inboundSchema = z.object({
37
38
  id: z.string(),
38
39
  sku: z.nullable(z.string()),
39
40
  name: z.string(),
@@ -57,6 +58,7 @@ export const SingleProduct$inboundSchema = z.object({
57
58
  images: z.array(ProductImage$inboundSchema),
58
59
  subscription: z.array(ProductSubscription$inboundSchema),
59
60
  variants: z.array(Variant$inboundSchema),
61
+ bundle_items: ProductBundleItem$inboundSchema,
60
62
  }).transform((v) => {
61
63
  return remap$(v, {
62
64
  "short_description": "shortDescription",
@@ -70,10 +72,11 @@ export const SingleProduct$inboundSchema = z.object({
70
72
  "reviews_rating_sum": "reviewsRatingSum",
71
73
  "reviews_count": "reviewsCount",
72
74
  "variant_options": "variantOptions",
75
+ "bundle_items": "bundleItems",
73
76
  });
74
77
  });
75
78
  /** @internal */
76
- export const SingleProduct$outboundSchema = z.object({
79
+ export const Product$outboundSchema = z.object({
77
80
  id: z.string(),
78
81
  sku: z.nullable(z.string()),
79
82
  name: z.string(),
@@ -97,6 +100,7 @@ export const SingleProduct$outboundSchema = z.object({
97
100
  images: z.array(ProductImage$outboundSchema),
98
101
  subscription: z.array(ProductSubscription$outboundSchema),
99
102
  variants: z.array(Variant$outboundSchema),
103
+ bundleItems: ProductBundleItem$outboundSchema,
100
104
  }).transform((v) => {
101
105
  return remap$(v, {
102
106
  shortDescription: "short_description",
@@ -110,23 +114,24 @@ export const SingleProduct$outboundSchema = z.object({
110
114
  reviewsRatingSum: "reviews_rating_sum",
111
115
  reviewsCount: "reviews_count",
112
116
  variantOptions: "variant_options",
117
+ bundleItems: "bundle_items",
113
118
  });
114
119
  });
115
120
  /**
116
121
  * @internal
117
122
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
123
  */
119
- export var SingleProduct$;
120
- (function (SingleProduct$) {
121
- /** @deprecated use `SingleProduct$inboundSchema` instead. */
122
- SingleProduct$.inboundSchema = SingleProduct$inboundSchema;
123
- /** @deprecated use `SingleProduct$outboundSchema` instead. */
124
- SingleProduct$.outboundSchema = SingleProduct$outboundSchema;
125
- })(SingleProduct$ || (SingleProduct$ = {}));
126
- export function singleProductToJSON(singleProduct) {
127
- return JSON.stringify(SingleProduct$outboundSchema.parse(singleProduct));
124
+ export var Product$;
125
+ (function (Product$) {
126
+ /** @deprecated use `Product$inboundSchema` instead. */
127
+ Product$.inboundSchema = Product$inboundSchema;
128
+ /** @deprecated use `Product$outboundSchema` instead. */
129
+ Product$.outboundSchema = Product$outboundSchema;
130
+ })(Product$ || (Product$ = {}));
131
+ export function productToJSON(product) {
132
+ return JSON.stringify(Product$outboundSchema.parse(product));
128
133
  }
129
- export function singleProductFromJSON(jsonString) {
130
- return safeParse(jsonString, (x) => SingleProduct$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SingleProduct' from JSON`);
134
+ export function productFromJSON(jsonString) {
135
+ return safeParse(jsonString, (x) => Product$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Product' from JSON`);
131
136
  }
132
- //# sourceMappingURL=singleproduct.js.map
137
+ //# sourceMappingURL=product.js.map
@@ -0,0 +1 @@
1
+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CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,qBAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,sBAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,KAAR,QAAQ,QAOxB;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,142 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { AssociatedOption, AssociatedOption$Outbound } from "./associatedoption.js";
6
+ import { ProductAttribute, ProductAttribute$Outbound } from "./productattribute.js";
7
+ import { ProductImage, ProductImage$Outbound } from "./productimage.js";
8
+ import { ProductPricing, ProductPricing$Outbound } from "./productpricing.js";
9
+ import { ProductPromotion, ProductPromotion$Outbound } from "./productpromotion.js";
10
+ import { ProductSubscription, ProductSubscription$Outbound } from "./productsubscription.js";
11
+ export declare const ProductBundleItemProductType: {
12
+ readonly Physical: "physical";
13
+ readonly Digital: "digital";
14
+ readonly Bundle: "bundle";
15
+ };
16
+ export type ProductBundleItemProductType = ClosedEnum<typeof ProductBundleItemProductType>;
17
+ export type ProductBundleItemSKU = {
18
+ quantity: number;
19
+ productId: string;
20
+ variantId: string | null;
21
+ sku: string;
22
+ slug: string | null;
23
+ productName: string;
24
+ variantName: string | null;
25
+ productType: ProductBundleItemProductType;
26
+ shortDescription: string | null;
27
+ active: boolean;
28
+ stockAvailable: boolean;
29
+ /**
30
+ * Indicates whether this item is associated with any active (product-specific) coupons
31
+ */
32
+ onOffer: boolean;
33
+ onSubscription: boolean;
34
+ onPromotion: boolean;
35
+ categoryIds: Array<string>;
36
+ tags: Array<string> | null;
37
+ reviewsCount: number;
38
+ reviewsRatingSum: number | null;
39
+ attributes: Array<ProductAttribute>;
40
+ images: Array<ProductImage>;
41
+ pricing: ProductPricing;
42
+ promotion: ProductPromotion | null;
43
+ subscription: Array<ProductSubscription>;
44
+ associatedOptions: {
45
+ [k: string]: AssociatedOption;
46
+ } | null;
47
+ };
48
+ export type ProductBundleItem = {
49
+ bundleItems: Array<ProductBundleItemSKU>;
50
+ };
51
+ /** @internal */
52
+ export declare const ProductBundleItemProductType$inboundSchema: z.ZodNativeEnum<typeof ProductBundleItemProductType>;
53
+ /** @internal */
54
+ export declare const ProductBundleItemProductType$outboundSchema: z.ZodNativeEnum<typeof ProductBundleItemProductType>;
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ export declare namespace ProductBundleItemProductType$ {
60
+ /** @deprecated use `ProductBundleItemProductType$inboundSchema` instead. */
61
+ const inboundSchema: z.ZodNativeEnum<{
62
+ readonly Physical: "physical";
63
+ readonly Digital: "digital";
64
+ readonly Bundle: "bundle";
65
+ }>;
66
+ /** @deprecated use `ProductBundleItemProductType$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodNativeEnum<{
68
+ readonly Physical: "physical";
69
+ readonly Digital: "digital";
70
+ readonly Bundle: "bundle";
71
+ }>;
72
+ }
73
+ /** @internal */
74
+ export declare const ProductBundleItemSKU$inboundSchema: z.ZodType<ProductBundleItemSKU, z.ZodTypeDef, unknown>;
75
+ /** @internal */
76
+ export type ProductBundleItemSKU$Outbound = {
77
+ quantity: number;
78
+ product_id: string;
79
+ variant_id: string | null;
80
+ sku: string;
81
+ slug: string | null;
82
+ product_name: string;
83
+ variant_name: string | null;
84
+ product_type: string;
85
+ short_description: string | null;
86
+ active: boolean;
87
+ stock_available: boolean;
88
+ on_offer: boolean;
89
+ on_subscription: boolean;
90
+ on_promotion: boolean;
91
+ category_ids: Array<string>;
92
+ tags: Array<string> | null;
93
+ reviews_count: number;
94
+ reviews_rating_sum: number | null;
95
+ attributes: Array<ProductAttribute$Outbound>;
96
+ images: Array<ProductImage$Outbound>;
97
+ pricing: ProductPricing$Outbound;
98
+ promotion: ProductPromotion$Outbound | null;
99
+ subscription: Array<ProductSubscription$Outbound>;
100
+ associated_options: {
101
+ [k: string]: AssociatedOption$Outbound;
102
+ } | null;
103
+ };
104
+ /** @internal */
105
+ export declare const ProductBundleItemSKU$outboundSchema: z.ZodType<ProductBundleItemSKU$Outbound, z.ZodTypeDef, ProductBundleItemSKU>;
106
+ /**
107
+ * @internal
108
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
+ */
110
+ export declare namespace ProductBundleItemSKU$ {
111
+ /** @deprecated use `ProductBundleItemSKU$inboundSchema` instead. */
112
+ const inboundSchema: z.ZodType<ProductBundleItemSKU, z.ZodTypeDef, unknown>;
113
+ /** @deprecated use `ProductBundleItemSKU$outboundSchema` instead. */
114
+ const outboundSchema: z.ZodType<ProductBundleItemSKU$Outbound, z.ZodTypeDef, ProductBundleItemSKU>;
115
+ /** @deprecated use `ProductBundleItemSKU$Outbound` instead. */
116
+ type Outbound = ProductBundleItemSKU$Outbound;
117
+ }
118
+ export declare function productBundleItemSKUToJSON(productBundleItemSKU: ProductBundleItemSKU): string;
119
+ export declare function productBundleItemSKUFromJSON(jsonString: string): SafeParseResult<ProductBundleItemSKU, SDKValidationError>;
120
+ /** @internal */
121
+ export declare const ProductBundleItem$inboundSchema: z.ZodType<ProductBundleItem, z.ZodTypeDef, unknown>;
122
+ /** @internal */
123
+ export type ProductBundleItem$Outbound = {
124
+ bundle_items: Array<ProductBundleItemSKU$Outbound>;
125
+ };
126
+ /** @internal */
127
+ export declare const ProductBundleItem$outboundSchema: z.ZodType<ProductBundleItem$Outbound, z.ZodTypeDef, ProductBundleItem>;
128
+ /**
129
+ * @internal
130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
131
+ */
132
+ export declare namespace ProductBundleItem$ {
133
+ /** @deprecated use `ProductBundleItem$inboundSchema` instead. */
134
+ const inboundSchema: z.ZodType<ProductBundleItem, z.ZodTypeDef, unknown>;
135
+ /** @deprecated use `ProductBundleItem$outboundSchema` instead. */
136
+ const outboundSchema: z.ZodType<ProductBundleItem$Outbound, z.ZodTypeDef, ProductBundleItem>;
137
+ /** @deprecated use `ProductBundleItem$Outbound` instead. */
138
+ type Outbound = ProductBundleItem$Outbound;
139
+ }
140
+ export declare function productBundleItemToJSON(productBundleItem: ProductBundleItem): string;
141
+ export declare function productBundleItemFromJSON(jsonString: string): SafeParseResult<ProductBundleItem, SDKValidationError>;
142
+ //# sourceMappingURL=productbundleitem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productbundleitem.d.ts","sourceRoot":"","sources":["../../../src/models/components/productbundleitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CA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AE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAOjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -0,0 +1,171 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { AssociatedOption$inboundSchema, AssociatedOption$outboundSchema, } from "./associatedoption.js";
8
+ import { ProductAttribute$inboundSchema, ProductAttribute$outboundSchema, } from "./productattribute.js";
9
+ import { ProductImage$inboundSchema, ProductImage$outboundSchema, } from "./productimage.js";
10
+ import { ProductPricing$inboundSchema, ProductPricing$outboundSchema, } from "./productpricing.js";
11
+ import { ProductPromotion$inboundSchema, ProductPromotion$outboundSchema, } from "./productpromotion.js";
12
+ import { ProductSubscription$inboundSchema, ProductSubscription$outboundSchema, } from "./productsubscription.js";
13
+ export const ProductBundleItemProductType = {
14
+ Physical: "physical",
15
+ Digital: "digital",
16
+ Bundle: "bundle",
17
+ };
18
+ /** @internal */
19
+ export const ProductBundleItemProductType$inboundSchema = z.nativeEnum(ProductBundleItemProductType);
20
+ /** @internal */
21
+ export const ProductBundleItemProductType$outboundSchema = ProductBundleItemProductType$inboundSchema;
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export var ProductBundleItemProductType$;
27
+ (function (ProductBundleItemProductType$) {
28
+ /** @deprecated use `ProductBundleItemProductType$inboundSchema` instead. */
29
+ ProductBundleItemProductType$.inboundSchema = ProductBundleItemProductType$inboundSchema;
30
+ /** @deprecated use `ProductBundleItemProductType$outboundSchema` instead. */
31
+ ProductBundleItemProductType$.outboundSchema = ProductBundleItemProductType$outboundSchema;
32
+ })(ProductBundleItemProductType$ || (ProductBundleItemProductType$ = {}));
33
+ /** @internal */
34
+ export const ProductBundleItemSKU$inboundSchema = z.object({
35
+ quantity: z.number().int(),
36
+ product_id: z.string(),
37
+ variant_id: z.nullable(z.string()),
38
+ sku: z.string(),
39
+ slug: z.nullable(z.string()),
40
+ product_name: z.string(),
41
+ variant_name: z.nullable(z.string()),
42
+ product_type: ProductBundleItemProductType$inboundSchema,
43
+ short_description: z.nullable(z.string()),
44
+ active: z.boolean(),
45
+ stock_available: z.boolean(),
46
+ on_offer: z.boolean(),
47
+ on_subscription: z.boolean(),
48
+ on_promotion: z.boolean(),
49
+ category_ids: z.array(z.string()),
50
+ tags: z.nullable(z.array(z.string())),
51
+ reviews_count: z.number().int(),
52
+ reviews_rating_sum: z.nullable(z.number()),
53
+ attributes: z.array(ProductAttribute$inboundSchema),
54
+ images: z.array(ProductImage$inboundSchema),
55
+ pricing: ProductPricing$inboundSchema,
56
+ promotion: z.nullable(ProductPromotion$inboundSchema),
57
+ subscription: z.array(ProductSubscription$inboundSchema),
58
+ associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ "product_id": "productId",
62
+ "variant_id": "variantId",
63
+ "product_name": "productName",
64
+ "variant_name": "variantName",
65
+ "product_type": "productType",
66
+ "short_description": "shortDescription",
67
+ "stock_available": "stockAvailable",
68
+ "on_offer": "onOffer",
69
+ "on_subscription": "onSubscription",
70
+ "on_promotion": "onPromotion",
71
+ "category_ids": "categoryIds",
72
+ "reviews_count": "reviewsCount",
73
+ "reviews_rating_sum": "reviewsRatingSum",
74
+ "associated_options": "associatedOptions",
75
+ });
76
+ });
77
+ /** @internal */
78
+ export const ProductBundleItemSKU$outboundSchema = z.object({
79
+ quantity: z.number().int(),
80
+ productId: z.string(),
81
+ variantId: z.nullable(z.string()),
82
+ sku: z.string(),
83
+ slug: z.nullable(z.string()),
84
+ productName: z.string(),
85
+ variantName: z.nullable(z.string()),
86
+ productType: ProductBundleItemProductType$outboundSchema,
87
+ shortDescription: z.nullable(z.string()),
88
+ active: z.boolean(),
89
+ stockAvailable: z.boolean(),
90
+ onOffer: z.boolean(),
91
+ onSubscription: z.boolean(),
92
+ onPromotion: z.boolean(),
93
+ categoryIds: z.array(z.string()),
94
+ tags: z.nullable(z.array(z.string())),
95
+ reviewsCount: z.number().int(),
96
+ reviewsRatingSum: z.nullable(z.number()),
97
+ attributes: z.array(ProductAttribute$outboundSchema),
98
+ images: z.array(ProductImage$outboundSchema),
99
+ pricing: ProductPricing$outboundSchema,
100
+ promotion: z.nullable(ProductPromotion$outboundSchema),
101
+ subscription: z.array(ProductSubscription$outboundSchema),
102
+ associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ productId: "product_id",
106
+ variantId: "variant_id",
107
+ productName: "product_name",
108
+ variantName: "variant_name",
109
+ productType: "product_type",
110
+ shortDescription: "short_description",
111
+ stockAvailable: "stock_available",
112
+ onOffer: "on_offer",
113
+ onSubscription: "on_subscription",
114
+ onPromotion: "on_promotion",
115
+ categoryIds: "category_ids",
116
+ reviewsCount: "reviews_count",
117
+ reviewsRatingSum: "reviews_rating_sum",
118
+ associatedOptions: "associated_options",
119
+ });
120
+ });
121
+ /**
122
+ * @internal
123
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
+ */
125
+ export var ProductBundleItemSKU$;
126
+ (function (ProductBundleItemSKU$) {
127
+ /** @deprecated use `ProductBundleItemSKU$inboundSchema` instead. */
128
+ ProductBundleItemSKU$.inboundSchema = ProductBundleItemSKU$inboundSchema;
129
+ /** @deprecated use `ProductBundleItemSKU$outboundSchema` instead. */
130
+ ProductBundleItemSKU$.outboundSchema = ProductBundleItemSKU$outboundSchema;
131
+ })(ProductBundleItemSKU$ || (ProductBundleItemSKU$ = {}));
132
+ export function productBundleItemSKUToJSON(productBundleItemSKU) {
133
+ return JSON.stringify(ProductBundleItemSKU$outboundSchema.parse(productBundleItemSKU));
134
+ }
135
+ export function productBundleItemSKUFromJSON(jsonString) {
136
+ return safeParse(jsonString, (x) => ProductBundleItemSKU$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductBundleItemSKU' from JSON`);
137
+ }
138
+ /** @internal */
139
+ export const ProductBundleItem$inboundSchema = z.object({
140
+ bundle_items: z.array(z.lazy(() => ProductBundleItemSKU$inboundSchema)),
141
+ }).transform((v) => {
142
+ return remap$(v, {
143
+ "bundle_items": "bundleItems",
144
+ });
145
+ });
146
+ /** @internal */
147
+ export const ProductBundleItem$outboundSchema = z.object({
148
+ bundleItems: z.array(z.lazy(() => ProductBundleItemSKU$outboundSchema)),
149
+ }).transform((v) => {
150
+ return remap$(v, {
151
+ bundleItems: "bundle_items",
152
+ });
153
+ });
154
+ /**
155
+ * @internal
156
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
157
+ */
158
+ export var ProductBundleItem$;
159
+ (function (ProductBundleItem$) {
160
+ /** @deprecated use `ProductBundleItem$inboundSchema` instead. */
161
+ ProductBundleItem$.inboundSchema = ProductBundleItem$inboundSchema;
162
+ /** @deprecated use `ProductBundleItem$outboundSchema` instead. */
163
+ ProductBundleItem$.outboundSchema = ProductBundleItem$outboundSchema;
164
+ })(ProductBundleItem$ || (ProductBundleItem$ = {}));
165
+ export function productBundleItemToJSON(productBundleItem) {
166
+ return JSON.stringify(ProductBundleItem$outboundSchema.parse(productBundleItem));
167
+ }
168
+ export function productBundleItemFromJSON(jsonString) {
169
+ return safeParse(jsonString, (x) => ProductBundleItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductBundleItem' from JSON`);
170
+ }
171
+ //# sourceMappingURL=productbundleitem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productbundleitem.js","sourceRoot":"","sources":["../../../src/models/components/productbundleitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,0BAA0B,EAE1B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAuCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAEnD,CAAC,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE/C,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAEpD,0CAA0C,CAAC;AAE/C;;;GAGG;AACH,MAAM,KAAW,6BAA6B,CAK7C;AALD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,0CAA0C,CAAC;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