@typewoo/sdk 3.7.3 → 3.7.4

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.
@@ -1,4 +1,9 @@
1
1
  import { z } from 'zod';
2
+ export declare const ProductPriceRangeResponseSchema: z.ZodObject<{
3
+ min_amount: z.ZodString;
4
+ max_amount: z.ZodString;
5
+ }, z.core.$loose>;
6
+ export type ProductPriceRangeResponse = z.infer<typeof ProductPriceRangeResponseSchema>;
2
7
  export declare const ProductPriceResponseSchema: z.ZodObject<{
3
8
  currency_code: z.ZodString;
4
9
  currency_symbol: z.ZodString;
@@ -10,7 +15,10 @@ export declare const ProductPriceResponseSchema: z.ZodObject<{
10
15
  price: z.ZodString;
11
16
  regular_price: z.ZodString;
12
17
  sale_price: z.ZodString;
13
- price_range: z.ZodUnknown;
18
+ price_range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
19
+ min_amount: z.ZodString;
20
+ max_amount: z.ZodString;
21
+ }, z.core.$loose>>>;
14
22
  }, z.core.$loose>;
15
23
  export type ProductPriceResponse = z.infer<typeof ProductPriceResponseSchema>;
16
24
  //# sourceMappingURL=product.price.response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.price.response.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.price.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAYrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"product.price.response.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.price.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAYrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { z } from 'zod';
2
+ export const ProductPriceRangeResponseSchema = z.looseObject({
3
+ min_amount: z.string(),
4
+ max_amount: z.string(),
5
+ });
2
6
  export const ProductPriceResponseSchema = z.looseObject({
3
7
  currency_code: z.string(),
4
8
  currency_symbol: z.string(),
@@ -10,6 +14,6 @@ export const ProductPriceResponseSchema = z.looseObject({
10
14
  price: z.string(),
11
15
  regular_price: z.string(),
12
16
  sale_price: z.string(),
13
- price_range: z.unknown(),
17
+ price_range: ProductPriceRangeResponseSchema.nullish(),
14
18
  });
15
19
  //# sourceMappingURL=product.price.response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.price.response.js","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.price.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;CACzB,CAAC,CAAC"}
1
+ {"version":3,"file":"product.price.response.js","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.price.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,WAAW,CAAC;IAC3D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC;IACtD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,+BAA+B,CAAC,OAAO,EAAE;CACvD,CAAC,CAAC"}
@@ -42,7 +42,10 @@ export declare const ProductResponseSchema: z.ZodObject<{
42
42
  price: z.ZodString;
43
43
  regular_price: z.ZodString;
44
44
  sale_price: z.ZodString;
45
- price_range: z.ZodUnknown;
45
+ price_range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46
+ min_amount: z.ZodString;
47
+ max_amount: z.ZodString;
48
+ }, z.core.$loose>>>;
46
49
  }, z.core.$loose>;
47
50
  price_html: z.ZodString;
48
51
  average_rating: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"product.response.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sCAAsC;;;;;;;;;;iBAYjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;iBAQjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"product.response.d.ts","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sCAAsC;;;;;;;;;;iBAYjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;iBAQjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typewoo/sdk",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "repository": {
5
5
  "url": "https://github.com/typewoo/sdk",
6
6
  "directory": ""