ce-storefront 0.15.27 → 0.15.28

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 (102) hide show
  1. package/README.md +1 -1
  2. package/esm/funcs/catalogGetProductDetail.js +5 -1
  3. package/esm/funcs/catalogGetProductDetail.js.map +1 -1
  4. package/esm/funcs/catalogGetVariantDetail.js +5 -1
  5. package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
  6. package/esm/funcs/catalogListProductVariants.js +5 -1
  7. package/esm/funcs/catalogListProductVariants.js.map +1 -1
  8. package/esm/funcs/catalogListProducts.js +1 -0
  9. package/esm/funcs/catalogListProducts.js.map +1 -1
  10. package/esm/funcs/catalogListSkus.js +1 -0
  11. package/esm/funcs/catalogListSkus.js.map +1 -1
  12. package/esm/lib/config.d.ts +3 -3
  13. package/esm/lib/config.js +3 -3
  14. package/esm/models/components/index.d.ts +2 -0
  15. package/esm/models/components/index.d.ts.map +1 -1
  16. package/esm/models/components/index.js +2 -0
  17. package/esm/models/components/index.js.map +1 -1
  18. package/esm/models/components/item.d.ts +3 -0
  19. package/esm/models/components/item.d.ts.map +1 -1
  20. package/esm/models/components/item.js +3 -0
  21. package/esm/models/components/item.js.map +1 -1
  22. package/esm/models/components/lotbatchdetail.d.ts +41 -0
  23. package/esm/models/components/lotbatchdetail.d.ts.map +1 -0
  24. package/esm/models/components/lotbatchdetail.js +55 -0
  25. package/esm/models/components/lotbatchdetail.js.map +1 -0
  26. package/esm/models/components/partialcollectanddelivery.d.ts +122 -0
  27. package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -0
  28. package/esm/models/components/partialcollectanddelivery.js +159 -0
  29. package/esm/models/components/partialcollectanddelivery.js.map +1 -0
  30. package/esm/models/components/product.d.ts +3 -0
  31. package/esm/models/components/product.d.ts.map +1 -1
  32. package/esm/models/components/product.js +3 -0
  33. package/esm/models/components/product.js.map +1 -1
  34. package/esm/models/components/productbundleitem.d.ts +3 -0
  35. package/esm/models/components/productbundleitem.d.ts.map +1 -1
  36. package/esm/models/components/productbundleitem.js +3 -0
  37. package/esm/models/components/productbundleitem.js.map +1 -1
  38. package/esm/models/components/productdetail.d.ts +3 -0
  39. package/esm/models/components/productdetail.d.ts.map +1 -1
  40. package/esm/models/components/productdetail.js +3 -0
  41. package/esm/models/components/productdetail.js.map +1 -1
  42. package/esm/models/components/variant.d.ts +3 -0
  43. package/esm/models/components/variant.d.ts.map +1 -1
  44. package/esm/models/components/variant.js +3 -0
  45. package/esm/models/components/variant.js.map +1 -1
  46. package/esm/models/components/variantdetail.d.ts +3 -0
  47. package/esm/models/components/variantdetail.d.ts.map +1 -1
  48. package/esm/models/components/variantdetail.js +3 -0
  49. package/esm/models/components/variantdetail.js.map +1 -1
  50. package/esm/models/errors/index.d.ts +1 -0
  51. package/esm/models/errors/index.d.ts.map +1 -1
  52. package/esm/models/errors/index.js +1 -0
  53. package/esm/models/errors/index.js.map +1 -1
  54. package/esm/models/operations/getproductdetail.d.ts +5 -0
  55. package/esm/models/operations/getproductdetail.d.ts.map +1 -1
  56. package/esm/models/operations/getproductdetail.js +2 -0
  57. package/esm/models/operations/getproductdetail.js.map +1 -1
  58. package/esm/models/operations/getvariantdetail.d.ts +5 -0
  59. package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
  60. package/esm/models/operations/getvariantdetail.js +2 -0
  61. package/esm/models/operations/getvariantdetail.js.map +1 -1
  62. package/esm/models/operations/listproducts.d.ts +5 -0
  63. package/esm/models/operations/listproducts.d.ts.map +1 -1
  64. package/esm/models/operations/listproducts.js +2 -0
  65. package/esm/models/operations/listproducts.js.map +1 -1
  66. package/esm/models/operations/listproductvariants.d.ts +5 -0
  67. package/esm/models/operations/listproductvariants.d.ts.map +1 -1
  68. package/esm/models/operations/listproductvariants.js +2 -0
  69. package/esm/models/operations/listproductvariants.js.map +1 -1
  70. package/esm/models/operations/listskus.d.ts +5 -0
  71. package/esm/models/operations/listskus.d.ts.map +1 -1
  72. package/esm/models/operations/listskus.js +2 -0
  73. package/esm/models/operations/listskus.js.map +1 -1
  74. package/esm/models/operations/updatefulfillmentpreference.d.ts +4 -4
  75. package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
  76. package/esm/models/operations/updatefulfillmentpreference.js +4 -0
  77. package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
  78. package/examples/package-lock.json +1 -1
  79. package/jsr.json +1 -1
  80. package/package.json +1 -1
  81. package/src/funcs/catalogGetProductDetail.ts +6 -1
  82. package/src/funcs/catalogGetVariantDetail.ts +6 -1
  83. package/src/funcs/catalogListProductVariants.ts +6 -1
  84. package/src/funcs/catalogListProducts.ts +1 -0
  85. package/src/funcs/catalogListSkus.ts +1 -0
  86. package/src/lib/config.ts +3 -3
  87. package/src/models/components/index.ts +2 -0
  88. package/src/models/components/item.ts +10 -0
  89. package/src/models/components/lotbatchdetail.ts +97 -0
  90. package/src/models/components/partialcollectanddelivery.ts +303 -0
  91. package/src/models/components/product.ts +10 -0
  92. package/src/models/components/productbundleitem.ts +10 -0
  93. package/src/models/components/productdetail.ts +10 -0
  94. package/src/models/components/variant.ts +10 -0
  95. package/src/models/components/variantdetail.ts +10 -0
  96. package/src/models/errors/index.ts +1 -0
  97. package/src/models/operations/getproductdetail.ts +7 -0
  98. package/src/models/operations/getvariantdetail.ts +7 -0
  99. package/src/models/operations/listproducts.ts +7 -0
  100. package/src/models/operations/listproductvariants.ts +7 -0
  101. package/src/models/operations/listskus.ts +7 -0
  102. package/src/models/operations/updatefulfillmentpreference.ts +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"updatefulfillmentpreference.d.ts","sourceRoot":"","sources":["../../../src/models/operations/updatefulfillmentpreference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO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QAAQ,GAAG,gDAAgD,CAAC;CACzE;AAED,wBAAgB,6CAA6C,CAC3D,uCAAuC,EACrC,uCAAuC,GACxC,MAAM,CAMR;AAED,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA"}
1
+ {"version":3,"file":"updatefulfillmentpreference.d.ts","sourceRoot":"","sources":["../../../src/models/operations/updatefulfillmentpreference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sCAAsC,GAC9C,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,mBAAmB,CAAC;AAEnC,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EACP,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,mBAAmB,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+CAA+C,GACvD,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,kCAAkC,GAC7C,UAAU,CAAC,4BAA4B,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,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kC,EAAE,kBAAkB,CAAC,CAOzE;AAED,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gDAAgD,GAAG;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EAAE,CAAC,CAAC,OAAO,CAC5E,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,uCAAuC,CAIvC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wCAAwC,CAAC;IACxD,uFAAuF;IAChF,MAAM,aAAa,2EAC6B,CAAC;IACxD,wFAAwF;IACjF,MAAM,cAAc,oHAC6B,CAAC;IACzD,kFAAkF;IAClF,KAAY,QAAQ,GAAG,gDAAgD,CAAC;CACzE;AAED,wBAAgB,6CAA6C,CAC3D,uCAAuC,EACrC,uCAAuC,GACxC,MAAM,CAMR;AAED,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA"}
@@ -8,11 +8,13 @@ import * as components from "../components/index.js";
8
8
  /** @internal */
9
9
  export const UpdateFulfillmentPreferenceRequestBody$inboundSchema = z.union([
10
10
  components.CollectInStoreFulfillment$inboundSchema,
11
+ components.PartialCollectAndDelivery$inboundSchema,
11
12
  components.DeliveryFulfillment$inboundSchema,
12
13
  ]);
13
14
  /** @internal */
14
15
  export const UpdateFulfillmentPreferenceRequestBody$outboundSchema = z.union([
15
16
  components.CollectInStoreFulfillment$outboundSchema,
17
+ components.PartialCollectAndDelivery$outboundSchema,
16
18
  components.DeliveryFulfillment$outboundSchema,
17
19
  ]);
18
20
  /**
@@ -37,6 +39,7 @@ export const UpdateFulfillmentPreferenceRequest$inboundSchema = z.object({
37
39
  id: z.string(),
38
40
  RequestBody: z.union([
39
41
  components.CollectInStoreFulfillment$inboundSchema,
42
+ components.PartialCollectAndDelivery$inboundSchema,
40
43
  components.DeliveryFulfillment$inboundSchema,
41
44
  ]),
42
45
  }).transform((v) => {
@@ -49,6 +52,7 @@ export const UpdateFulfillmentPreferenceRequest$outboundSchema = z.object({
49
52
  id: z.string(),
50
53
  requestBody: z.union([
51
54
  components.CollectInStoreFulfillment$outboundSchema,
55
+ components.PartialCollectAndDelivery$outboundSchema,
52
56
  components.DeliveryFulfillment$outboundSchema,
53
57
  ]),
54
58
  }).transform((v) => {
@@ -1 +1 @@
1
- {"version":3,"file":"updatefulfillmentpreference.js","sourceRoot":"","sources":["../../../src/models/operations/updatefulfillmentpreference.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;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAyBrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI7D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,iCAAiC;CAC7C,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,qDAAqD,GAI9D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,wCAAwC;IACnD,UAAU,CAAC,kCAAkC;CAC9C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,uCAAuC,CASvD;AATD,WAAiB,uCAAuC;IACtD,sFAAsF;IACzE,qDAAa,GACxB,oDAAoD,CAAC;IACvD,uFAAuF;IAC1E,sDAAc,GACzB,qDAAqD,CAAC;AAG1D,CAAC,EATgB,uCAAuC,KAAvC,uCAAuC,QASvD;AAED,MAAM,UAAU,4CAA4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,CACJ,qDAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"updatefulfillmentpreference.js","sourceRoot":"","sources":["../../../src/models/operations/updatefulfillmentpreference.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;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA2BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI7D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,iCAAiC;CAC7C,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,qDAAqD,GAI9D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,wCAAwC;IACnD,UAAU,CAAC,wCAAwC;IACnD,UAAU,CAAC,kCAAkC;CAC9C,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,uCAAuC,CASvD;AATD,WAAiB,uCAAuC;IACtD,sFAAsF;IACzE,qDAAa,GACxB,oDAAoD,CAAC;IACvD,uFAAuF;IAC1E,sDAAc,GACzB,qDAAqD,CAAC;AAG1D,CAAC,EATgB,uCAAuC,KAAvC,uCAAuC,QASvD;AAED,MAAM,UAAU,4CAA4C,CAC1D,sCACwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,qDAAqD,CAAC,KAAK,CACzD,sCAAsC,CACvC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8CAA8C,CAC5D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ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ce-storefront",
21
- "version": "0.15.27",
21
+ "version": "0.15.28",
22
22
  "dependencies": {
23
23
  "zod": "^3.20.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "ce-storefront",
5
- "version": "0.15.27",
5
+ "version": "0.15.28",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ce-storefront",
3
- "version": "0.15.27",
3
+ "version": "0.15.28",
4
4
  "author": "TarkAI",
5
5
  "type": "module",
6
6
  "main": "./esm/index.js",
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { CeStorefrontCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -102,6 +102,10 @@ async function $do(
102
102
 
103
103
  const path = pathToFunc("/catalog/products/{product_id_or_slug}")(pathParams);
104
104
 
105
+ const query = encodeFormQuery({
106
+ "inventory": payload.inventory,
107
+ });
108
+
105
109
  const headers = new Headers(compactMap({
106
110
  Accept: "application/json",
107
111
  "x-customer-group-id": encodeSimple(
@@ -136,6 +140,7 @@ async function $do(
136
140
  baseURL: options?.serverURL,
137
141
  path: path,
138
142
  headers: headers,
143
+ query: query,
139
144
  body: body,
140
145
  userAgent: client._options.userAgent,
141
146
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { CeStorefrontCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -107,6 +107,10 @@ async function $do(
107
107
  "/catalog/products/{product_id}/variants/{variant_id}",
108
108
  )(pathParams);
109
109
 
110
+ const query = encodeFormQuery({
111
+ "inventory": payload.inventory,
112
+ });
113
+
110
114
  const headers = new Headers(compactMap({
111
115
  Accept: "application/json",
112
116
  "x-customer-group-id": encodeSimple(
@@ -141,6 +145,7 @@ async function $do(
141
145
  baseURL: options?.serverURL,
142
146
  path: path,
143
147
  headers: headers,
148
+ query: query,
144
149
  body: body,
145
150
  userAgent: client._options.userAgent,
146
151
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { CeStorefrontCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
9
9
  import { safeParse } from "../lib/schemas.js";
@@ -104,6 +104,10 @@ async function $do(
104
104
  pathParams,
105
105
  );
106
106
 
107
+ const query = encodeFormQuery({
108
+ "inventory": payload.inventory,
109
+ });
110
+
107
111
  const headers = new Headers(compactMap({
108
112
  Accept: "application/json",
109
113
  "x-customer-group-id": encodeSimple(
@@ -138,6 +142,7 @@ async function $do(
138
142
  baseURL: options?.serverURL,
139
143
  path: path,
140
144
  headers: headers,
145
+ query: query,
141
146
  body: body,
142
147
  userAgent: client._options.userAgent,
143
148
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -97,6 +97,7 @@ async function $do(
97
97
  const query = encodeFormQuery({
98
98
  "category_id": payload.category_id,
99
99
  "category_slug": payload.category_slug,
100
+ "inventory": payload.inventory,
100
101
  "limit": payload.limit,
101
102
  "page": payload.page,
102
103
  "sort_by": payload.sort_by,
@@ -96,6 +96,7 @@ async function $do(
96
96
 
97
97
  const query = encodeFormQuery({
98
98
  "category_id": payload.category_id,
99
+ "inventory": payload.inventory,
99
100
  "limit": payload.limit,
100
101
  "page": payload.page,
101
102
  "sku": payload.sku,
package/src/lib/config.ts CHANGED
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "1.0",
83
- sdkVersion: "0.15.27",
84
- genVersion: "2.707.0",
85
- userAgent: "speakeasy-sdk/typescript 0.15.27 2.707.0 1.0 ce-storefront",
83
+ sdkVersion: "0.15.28",
84
+ genVersion: "2.708.2",
85
+ userAgent: "speakeasy-sdk/typescript 0.15.28 2.708.2 1.0 ce-storefront",
86
86
  } as const;
@@ -34,6 +34,7 @@ export * from "./generateotpwithphone.js";
34
34
  export * from "./item.js";
35
35
  export * from "./juspaypaymentgatewayparams.js";
36
36
  export * from "./juspaypaymentinfo.js";
37
+ export * from "./lotbatchdetail.js";
37
38
  export * from "./multiselectattribute.js";
38
39
  export * from "./netbankingpayment.js";
39
40
  export * from "./notificationchannelpreferences.js";
@@ -46,6 +47,7 @@ export * from "./orderlist.js";
46
47
  export * from "./orderpayment.js";
47
48
  export * from "./ordershipment.js";
48
49
  export * from "./pagination.js";
50
+ export * from "./partialcollectanddelivery.js";
49
51
  export * from "./paymentgateway.js";
50
52
  export * from "./paymentgatewayparams.js";
51
53
  export * from "./payupaymentgatewayparams.js";
@@ -14,6 +14,12 @@ import {
14
14
  AssociatedOption$Outbound,
15
15
  AssociatedOption$outboundSchema,
16
16
  } from "./associatedoption.js";
17
+ import {
18
+ LotBatchDetail,
19
+ LotBatchDetail$inboundSchema,
20
+ LotBatchDetail$Outbound,
21
+ LotBatchDetail$outboundSchema,
22
+ } from "./lotbatchdetail.js";
17
23
  import {
18
24
  ProductAttribute,
19
25
  ProductAttribute$inboundSchema,
@@ -93,6 +99,7 @@ export type Item = {
93
99
  subscription: Array<ProductSubscription>;
94
100
  associatedOptions: { [k: string]: AssociatedOption } | null;
95
101
  shipping?: ProductShipping | null | undefined;
102
+ inventory?: Array<LotBatchDetail> | undefined;
96
103
  };
97
104
 
98
105
  /** @internal */
@@ -144,6 +151,7 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
144
151
  subscription: z.array(ProductSubscription$inboundSchema),
145
152
  associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
146
153
  shipping: z.nullable(ProductShipping$inboundSchema).optional(),
154
+ inventory: z.array(LotBatchDetail$inboundSchema).optional(),
147
155
  }).transform((v) => {
148
156
  return remap$(v, {
149
157
  "product_id": "productId",
@@ -190,6 +198,7 @@ export type Item$Outbound = {
190
198
  subscription: Array<ProductSubscription$Outbound>;
191
199
  associated_options: { [k: string]: AssociatedOption$Outbound } | null;
192
200
  shipping?: ProductShipping$Outbound | null | undefined;
201
+ inventory?: Array<LotBatchDetail$Outbound> | undefined;
193
202
  };
194
203
 
195
204
  /** @internal */
@@ -220,6 +229,7 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
220
229
  subscription: z.array(ProductSubscription$outboundSchema),
221
230
  associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
222
231
  shipping: z.nullable(ProductShipping$outboundSchema).optional(),
232
+ inventory: z.array(LotBatchDetail$outboundSchema).optional(),
223
233
  }).transform((v) => {
224
234
  return remap$(v, {
225
235
  productId: "product_id",
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { RFCDate } from "../../types/rfcdate.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * @see {@link https://llm-docs.commercengine.io/schemas/LotBatchDetail} - API reference for the LotBatchDetail schema
14
+ */
15
+ export type LotBatchDetail = {
16
+ lotBatch: string;
17
+ mfgDate: RFCDate | null;
18
+ expDate: RFCDate | null;
19
+ manufacturer: string | null;
20
+ stockQuantity: number;
21
+ };
22
+
23
+ /** @internal */
24
+ export const LotBatchDetail$inboundSchema: z.ZodType<
25
+ LotBatchDetail,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ lot_batch: z.string(),
30
+ mfg_date: z.nullable(z.string().transform(v => new RFCDate(v))),
31
+ exp_date: z.nullable(z.string().transform(v => new RFCDate(v))),
32
+ manufacturer: z.nullable(z.string()),
33
+ stock_quantity: z.number().int(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "lot_batch": "lotBatch",
37
+ "mfg_date": "mfgDate",
38
+ "exp_date": "expDate",
39
+ "stock_quantity": "stockQuantity",
40
+ });
41
+ });
42
+
43
+ /** @internal */
44
+ export type LotBatchDetail$Outbound = {
45
+ lot_batch: string;
46
+ mfg_date: string | null;
47
+ exp_date: string | null;
48
+ manufacturer: string | null;
49
+ stock_quantity: number;
50
+ };
51
+
52
+ /** @internal */
53
+ export const LotBatchDetail$outboundSchema: z.ZodType<
54
+ LotBatchDetail$Outbound,
55
+ z.ZodTypeDef,
56
+ LotBatchDetail
57
+ > = z.object({
58
+ lotBatch: z.string(),
59
+ mfgDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
60
+ expDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
61
+ manufacturer: z.nullable(z.string()),
62
+ stockQuantity: z.number().int(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ lotBatch: "lot_batch",
66
+ mfgDate: "mfg_date",
67
+ expDate: "exp_date",
68
+ stockQuantity: "stock_quantity",
69
+ });
70
+ });
71
+
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export namespace LotBatchDetail$ {
77
+ /** @deprecated use `LotBatchDetail$inboundSchema` instead. */
78
+ export const inboundSchema = LotBatchDetail$inboundSchema;
79
+ /** @deprecated use `LotBatchDetail$outboundSchema` instead. */
80
+ export const outboundSchema = LotBatchDetail$outboundSchema;
81
+ /** @deprecated use `LotBatchDetail$Outbound` instead. */
82
+ export type Outbound = LotBatchDetail$Outbound;
83
+ }
84
+
85
+ export function lotBatchDetailToJSON(lotBatchDetail: LotBatchDetail): string {
86
+ return JSON.stringify(LotBatchDetail$outboundSchema.parse(lotBatchDetail));
87
+ }
88
+
89
+ export function lotBatchDetailFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<LotBatchDetail, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) => LotBatchDetail$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'LotBatchDetail' from JSON`,
96
+ );
97
+ }
@@ -0,0 +1,303 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CustomerAddressInput,
12
+ CustomerAddressInput$inboundSchema,
13
+ CustomerAddressInput$Outbound,
14
+ CustomerAddressInput$outboundSchema,
15
+ } from "./customeraddressinput.js";
16
+
17
+ export type Pickup = {
18
+ productId: string;
19
+ variantId: string | null;
20
+ quantity: number;
21
+ };
22
+
23
+ export type Delivery = {
24
+ productId: string;
25
+ variantId: string | null;
26
+ quantity: number;
27
+ };
28
+
29
+ export type Preferences = {
30
+ pickup: Array<Pickup>;
31
+ delivery: Array<Delivery>;
32
+ shippingAddress: CustomerAddressInput | null;
33
+ };
34
+
35
+ /**
36
+ * @see {@link https://llm-docs.commercengine.io/schemas/PartialCollectAndDelivery} - API reference for the PartialCollectAndDelivery schema
37
+ */
38
+ export type PartialCollectAndDelivery = {
39
+ fulfillmentType?: "partial-collect-and-delivery" | undefined;
40
+ preferences: Preferences;
41
+ };
42
+
43
+ /** @internal */
44
+ export const Pickup$inboundSchema: z.ZodType<Pickup, z.ZodTypeDef, unknown> = z
45
+ .object({
46
+ product_id: z.string(),
47
+ variant_id: z.nullable(z.string()),
48
+ quantity: z.number().int(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ "product_id": "productId",
52
+ "variant_id": "variantId",
53
+ });
54
+ });
55
+
56
+ /** @internal */
57
+ export type Pickup$Outbound = {
58
+ product_id: string;
59
+ variant_id: string | null;
60
+ quantity: number;
61
+ };
62
+
63
+ /** @internal */
64
+ export const Pickup$outboundSchema: z.ZodType<
65
+ Pickup$Outbound,
66
+ z.ZodTypeDef,
67
+ Pickup
68
+ > = z.object({
69
+ productId: z.string(),
70
+ variantId: z.nullable(z.string()),
71
+ quantity: z.number().int(),
72
+ }).transform((v) => {
73
+ return remap$(v, {
74
+ productId: "product_id",
75
+ variantId: "variant_id",
76
+ });
77
+ });
78
+
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export namespace Pickup$ {
84
+ /** @deprecated use `Pickup$inboundSchema` instead. */
85
+ export const inboundSchema = Pickup$inboundSchema;
86
+ /** @deprecated use `Pickup$outboundSchema` instead. */
87
+ export const outboundSchema = Pickup$outboundSchema;
88
+ /** @deprecated use `Pickup$Outbound` instead. */
89
+ export type Outbound = Pickup$Outbound;
90
+ }
91
+
92
+ export function pickupToJSON(pickup: Pickup): string {
93
+ return JSON.stringify(Pickup$outboundSchema.parse(pickup));
94
+ }
95
+
96
+ export function pickupFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<Pickup, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => Pickup$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'Pickup' from JSON`,
103
+ );
104
+ }
105
+
106
+ /** @internal */
107
+ export const Delivery$inboundSchema: z.ZodType<
108
+ Delivery,
109
+ z.ZodTypeDef,
110
+ unknown
111
+ > = z.object({
112
+ product_id: z.string(),
113
+ variant_id: z.nullable(z.string()),
114
+ quantity: z.number().int(),
115
+ }).transform((v) => {
116
+ return remap$(v, {
117
+ "product_id": "productId",
118
+ "variant_id": "variantId",
119
+ });
120
+ });
121
+
122
+ /** @internal */
123
+ export type Delivery$Outbound = {
124
+ product_id: string;
125
+ variant_id: string | null;
126
+ quantity: number;
127
+ };
128
+
129
+ /** @internal */
130
+ export const Delivery$outboundSchema: z.ZodType<
131
+ Delivery$Outbound,
132
+ z.ZodTypeDef,
133
+ Delivery
134
+ > = z.object({
135
+ productId: z.string(),
136
+ variantId: z.nullable(z.string()),
137
+ quantity: z.number().int(),
138
+ }).transform((v) => {
139
+ return remap$(v, {
140
+ productId: "product_id",
141
+ variantId: "variant_id",
142
+ });
143
+ });
144
+
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export namespace Delivery$ {
150
+ /** @deprecated use `Delivery$inboundSchema` instead. */
151
+ export const inboundSchema = Delivery$inboundSchema;
152
+ /** @deprecated use `Delivery$outboundSchema` instead. */
153
+ export const outboundSchema = Delivery$outboundSchema;
154
+ /** @deprecated use `Delivery$Outbound` instead. */
155
+ export type Outbound = Delivery$Outbound;
156
+ }
157
+
158
+ export function deliveryToJSON(delivery: Delivery): string {
159
+ return JSON.stringify(Delivery$outboundSchema.parse(delivery));
160
+ }
161
+
162
+ export function deliveryFromJSON(
163
+ jsonString: string,
164
+ ): SafeParseResult<Delivery, SDKValidationError> {
165
+ return safeParse(
166
+ jsonString,
167
+ (x) => Delivery$inboundSchema.parse(JSON.parse(x)),
168
+ `Failed to parse 'Delivery' from JSON`,
169
+ );
170
+ }
171
+
172
+ /** @internal */
173
+ export const Preferences$inboundSchema: z.ZodType<
174
+ Preferences,
175
+ z.ZodTypeDef,
176
+ unknown
177
+ > = z.object({
178
+ pickup: z.array(z.lazy(() => Pickup$inboundSchema)),
179
+ delivery: z.array(z.lazy(() => Delivery$inboundSchema)),
180
+ shipping_address: z.nullable(CustomerAddressInput$inboundSchema),
181
+ }).transform((v) => {
182
+ return remap$(v, {
183
+ "shipping_address": "shippingAddress",
184
+ });
185
+ });
186
+
187
+ /** @internal */
188
+ export type Preferences$Outbound = {
189
+ pickup: Array<Pickup$Outbound>;
190
+ delivery: Array<Delivery$Outbound>;
191
+ shipping_address: CustomerAddressInput$Outbound | null;
192
+ };
193
+
194
+ /** @internal */
195
+ export const Preferences$outboundSchema: z.ZodType<
196
+ Preferences$Outbound,
197
+ z.ZodTypeDef,
198
+ Preferences
199
+ > = z.object({
200
+ pickup: z.array(z.lazy(() => Pickup$outboundSchema)),
201
+ delivery: z.array(z.lazy(() => Delivery$outboundSchema)),
202
+ shippingAddress: z.nullable(CustomerAddressInput$outboundSchema),
203
+ }).transform((v) => {
204
+ return remap$(v, {
205
+ shippingAddress: "shipping_address",
206
+ });
207
+ });
208
+
209
+ /**
210
+ * @internal
211
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
212
+ */
213
+ export namespace Preferences$ {
214
+ /** @deprecated use `Preferences$inboundSchema` instead. */
215
+ export const inboundSchema = Preferences$inboundSchema;
216
+ /** @deprecated use `Preferences$outboundSchema` instead. */
217
+ export const outboundSchema = Preferences$outboundSchema;
218
+ /** @deprecated use `Preferences$Outbound` instead. */
219
+ export type Outbound = Preferences$Outbound;
220
+ }
221
+
222
+ export function preferencesToJSON(preferences: Preferences): string {
223
+ return JSON.stringify(Preferences$outboundSchema.parse(preferences));
224
+ }
225
+
226
+ export function preferencesFromJSON(
227
+ jsonString: string,
228
+ ): SafeParseResult<Preferences, SDKValidationError> {
229
+ return safeParse(
230
+ jsonString,
231
+ (x) => Preferences$inboundSchema.parse(JSON.parse(x)),
232
+ `Failed to parse 'Preferences' from JSON`,
233
+ );
234
+ }
235
+
236
+ /** @internal */
237
+ export const PartialCollectAndDelivery$inboundSchema: z.ZodType<
238
+ PartialCollectAndDelivery,
239
+ z.ZodTypeDef,
240
+ unknown
241
+ > = z.object({
242
+ fulfillment_type: z.literal("partial-collect-and-delivery").default(
243
+ "partial-collect-and-delivery",
244
+ ).optional(),
245
+ preferences: z.lazy(() => Preferences$inboundSchema),
246
+ }).transform((v) => {
247
+ return remap$(v, {
248
+ "fulfillment_type": "fulfillmentType",
249
+ });
250
+ });
251
+
252
+ /** @internal */
253
+ export type PartialCollectAndDelivery$Outbound = {
254
+ fulfillment_type: "partial-collect-and-delivery";
255
+ preferences: Preferences$Outbound;
256
+ };
257
+
258
+ /** @internal */
259
+ export const PartialCollectAndDelivery$outboundSchema: z.ZodType<
260
+ PartialCollectAndDelivery$Outbound,
261
+ z.ZodTypeDef,
262
+ PartialCollectAndDelivery
263
+ > = z.object({
264
+ fulfillmentType: z.literal("partial-collect-and-delivery").default(
265
+ "partial-collect-and-delivery" as const,
266
+ ),
267
+ preferences: z.lazy(() => Preferences$outboundSchema),
268
+ }).transform((v) => {
269
+ return remap$(v, {
270
+ fulfillmentType: "fulfillment_type",
271
+ });
272
+ });
273
+
274
+ /**
275
+ * @internal
276
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
277
+ */
278
+ export namespace PartialCollectAndDelivery$ {
279
+ /** @deprecated use `PartialCollectAndDelivery$inboundSchema` instead. */
280
+ export const inboundSchema = PartialCollectAndDelivery$inboundSchema;
281
+ /** @deprecated use `PartialCollectAndDelivery$outboundSchema` instead. */
282
+ export const outboundSchema = PartialCollectAndDelivery$outboundSchema;
283
+ /** @deprecated use `PartialCollectAndDelivery$Outbound` instead. */
284
+ export type Outbound = PartialCollectAndDelivery$Outbound;
285
+ }
286
+
287
+ export function partialCollectAndDeliveryToJSON(
288
+ partialCollectAndDelivery: PartialCollectAndDelivery,
289
+ ): string {
290
+ return JSON.stringify(
291
+ PartialCollectAndDelivery$outboundSchema.parse(partialCollectAndDelivery),
292
+ );
293
+ }
294
+
295
+ export function partialCollectAndDeliveryFromJSON(
296
+ jsonString: string,
297
+ ): SafeParseResult<PartialCollectAndDelivery, SDKValidationError> {
298
+ return safeParse(
299
+ jsonString,
300
+ (x) => PartialCollectAndDelivery$inboundSchema.parse(JSON.parse(x)),
301
+ `Failed to parse 'PartialCollectAndDelivery' from JSON`,
302
+ );
303
+ }