@typewoo/sdk 3.7.2 → 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.
- package/dist/lib/types/store/product/product.price.response.d.ts +9 -1
- package/dist/lib/types/store/product/product.price.response.d.ts.map +1 -1
- package/dist/lib/types/store/product/product.price.response.js +5 -1
- package/dist/lib/types/store/product/product.price.response.js.map +1 -1
- package/dist/lib/types/store/product/product.response.d.ts +24 -1
- package/dist/lib/types/store/product/product.response.d.ts.map +1 -1
- package/dist/lib/types/store/product/product.response.js +20 -18
- package/dist/lib/types/store/product/product.response.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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
|
|
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:
|
|
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,
|
|
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"}
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ProductEmbeddedAttributeResponseSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
taxonomy: z.ZodString;
|
|
6
|
+
has_variations: z.ZodBoolean;
|
|
7
|
+
terms: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodNumber;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
slug: z.ZodString;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
export type ProductEmbeddedAttributeResponse = z.infer<typeof ProductEmbeddedAttributeResponseSchema>;
|
|
14
|
+
export declare const ProductEmbeddedVariationResponseSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodNumber;
|
|
16
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
export type ProductEmbeddedVariationResponse = z.infer<typeof ProductEmbeddedVariationResponseSchema>;
|
|
2
22
|
export declare const ProductResponseSchema: z.ZodObject<{
|
|
3
23
|
id: z.ZodNumber;
|
|
4
24
|
name: z.ZodString;
|
|
@@ -22,7 +42,10 @@ export declare const ProductResponseSchema: z.ZodObject<{
|
|
|
22
42
|
price: z.ZodString;
|
|
23
43
|
regular_price: z.ZodString;
|
|
24
44
|
sale_price: z.ZodString;
|
|
25
|
-
price_range: z.
|
|
45
|
+
price_range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
min_amount: z.ZodString;
|
|
47
|
+
max_amount: z.ZodString;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
26
49
|
}, z.core.$loose>;
|
|
27
50
|
price_html: z.ZodString;
|
|
28
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,qBAAqB
|
|
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,6 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ImageResponseSchema } from '../image.response.js';
|
|
3
3
|
import { ProductPriceResponseSchema } from './product.price.response.js';
|
|
4
|
+
export const ProductEmbeddedAttributeResponseSchema = z.looseObject({
|
|
5
|
+
id: z.number(),
|
|
6
|
+
name: z.string(),
|
|
7
|
+
taxonomy: z.string(),
|
|
8
|
+
has_variations: z.boolean(),
|
|
9
|
+
terms: z.array(z.looseObject({
|
|
10
|
+
id: z.number(),
|
|
11
|
+
name: z.string(),
|
|
12
|
+
slug: z.string(),
|
|
13
|
+
})),
|
|
14
|
+
});
|
|
15
|
+
export const ProductEmbeddedVariationResponseSchema = z.looseObject({
|
|
16
|
+
id: z.number(),
|
|
17
|
+
attributes: z.array(z.looseObject({
|
|
18
|
+
name: z.string(),
|
|
19
|
+
value: z.string(),
|
|
20
|
+
})),
|
|
21
|
+
});
|
|
4
22
|
export const ProductResponseSchema = z.looseObject({
|
|
5
23
|
id: z.number(),
|
|
6
24
|
name: z.string(),
|
|
@@ -36,24 +54,8 @@ export const ProductResponseSchema = z.looseObject({
|
|
|
36
54
|
slug: z.string(),
|
|
37
55
|
link: z.string(),
|
|
38
56
|
})),
|
|
39
|
-
attributes: z.array(
|
|
40
|
-
|
|
41
|
-
name: z.string(),
|
|
42
|
-
taxonomy: z.string(),
|
|
43
|
-
has_variations: z.boolean(),
|
|
44
|
-
terms: z.array(z.looseObject({
|
|
45
|
-
id: z.number(),
|
|
46
|
-
name: z.string(),
|
|
47
|
-
slug: z.string(),
|
|
48
|
-
})),
|
|
49
|
-
})),
|
|
50
|
-
variations: z.array(z.looseObject({
|
|
51
|
-
id: z.number(),
|
|
52
|
-
attributes: z.array(z.looseObject({
|
|
53
|
-
name: z.string(),
|
|
54
|
-
value: z.string(),
|
|
55
|
-
})),
|
|
56
|
-
})),
|
|
57
|
+
attributes: z.array(ProductEmbeddedAttributeResponseSchema),
|
|
58
|
+
variations: z.array(ProductEmbeddedVariationResponseSchema),
|
|
57
59
|
grouped_products: z.array(z.unknown()),
|
|
58
60
|
has_options: z.boolean(),
|
|
59
61
|
is_purchasable: z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.response.js","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"product.response.js","sourceRoot":"","sources":["../../../../../src/lib/types/store/product/product.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,WAAW,CAAC;IAClE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,KAAK,CACZ,CAAC,CAAC,WAAW,CAAC;QACZ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CACH;CACF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,WAAW,CAAC;IAClE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,KAAK,CACjB,CAAC,CAAC,WAAW,CAAC;QACZ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC,CACH;CACF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC;IACjD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CA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