@ecomiq/core 0.1.3 → 0.1.6

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 (57) hide show
  1. package/dist/api.cjs +19 -5
  2. package/dist/api.cjs.map +1 -1
  3. package/dist/api.js +19 -5
  4. package/dist/api.js.map +1 -1
  5. package/dist/client-4ZTG2RZ3.d.ts +195 -0
  6. package/dist/client-BpX4yR6S.d.cts +195 -0
  7. package/dist/client.cjs +331 -12
  8. package/dist/client.cjs.map +1 -1
  9. package/dist/client.d.cts +13 -84
  10. package/dist/client.d.ts +13 -84
  11. package/dist/client.js +331 -12
  12. package/dist/client.js.map +1 -1
  13. package/dist/index.cjs +484 -12
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +327 -324
  16. package/dist/index.d.ts +327 -324
  17. package/dist/index.js +451 -13
  18. package/dist/index.js.map +1 -1
  19. package/dist/models/collections.d.cts +4 -4
  20. package/dist/models/collections.d.ts +4 -4
  21. package/dist/models/customer-address.cjs +41 -0
  22. package/dist/models/customer-address.cjs.map +1 -0
  23. package/dist/models/customer-address.d.cts +160 -0
  24. package/dist/models/customer-address.d.ts +160 -0
  25. package/dist/models/customer-address.js +36 -0
  26. package/dist/models/customer-address.js.map +1 -0
  27. package/dist/models/customer-order.cjs +161 -0
  28. package/dist/models/customer-order.cjs.map +1 -0
  29. package/dist/models/customer-order.d.cts +896 -0
  30. package/dist/models/customer-order.d.ts +896 -0
  31. package/dist/models/customer-order.js +149 -0
  32. package/dist/models/customer-order.js.map +1 -0
  33. package/dist/models/customer-profile.cjs +126 -0
  34. package/dist/models/customer-profile.cjs.map +1 -0
  35. package/dist/models/customer-profile.d.cts +178 -0
  36. package/dist/models/customer-profile.d.ts +178 -0
  37. package/dist/models/customer-profile.js +118 -0
  38. package/dist/models/customer-profile.js.map +1 -0
  39. package/dist/models/geo.d.cts +14 -14
  40. package/dist/models/geo.d.ts +14 -14
  41. package/dist/models/products.d.cts +130 -130
  42. package/dist/models/products.d.ts +130 -130
  43. package/dist/models/search.d.cts +4 -4
  44. package/dist/models/search.d.ts +4 -4
  45. package/dist/models/settings.cjs +13 -6
  46. package/dist/models/settings.cjs.map +1 -1
  47. package/dist/models/settings.d.cts +844 -841
  48. package/dist/models/settings.d.ts +844 -841
  49. package/dist/models/settings.js +12 -7
  50. package/dist/models/settings.js.map +1 -1
  51. package/dist/models/storefront-cart.d.cts +80 -80
  52. package/dist/models/storefront-cart.d.ts +80 -80
  53. package/dist/models/storefront-checkout.d.cts +400 -400
  54. package/dist/models/storefront-checkout.d.ts +400 -400
  55. package/dist/models/storefront-reviews.d.cts +8 -8
  56. package/dist/models/storefront-reviews.d.ts +8 -8
  57. package/package.json +16 -1
@@ -11,22 +11,22 @@ declare const StorefrontReviewSchema: z.ZodObject<{
11
11
  createdOn: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  id: string;
14
- createdOn: string;
15
14
  productId: string;
16
15
  isVerifiedPurchase: boolean;
17
16
  rating: number;
18
17
  title: string | null;
19
18
  content: string;
20
19
  reviewerName: string | null;
20
+ createdOn: string;
21
21
  }, {
22
22
  id: string | number;
23
- createdOn: string;
24
23
  productId: string | number;
25
24
  isVerifiedPurchase: boolean;
26
25
  rating: number;
27
26
  title: string | null;
28
27
  content: string;
29
28
  reviewerName: string | null;
29
+ createdOn: string;
30
30
  }>;
31
31
  declare const StorefrontReviewsSchema: z.ZodObject<{
32
32
  data: z.ZodArray<z.ZodObject<{
@@ -40,22 +40,22 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
40
40
  createdOn: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
- createdOn: string;
44
43
  productId: string;
45
44
  isVerifiedPurchase: boolean;
46
45
  rating: number;
47
46
  title: string | null;
48
47
  content: string;
49
48
  reviewerName: string | null;
49
+ createdOn: string;
50
50
  }, {
51
51
  id: string | number;
52
- createdOn: string;
53
52
  productId: string | number;
54
53
  isVerifiedPurchase: boolean;
55
54
  rating: number;
56
55
  title: string | null;
57
56
  content: string;
58
57
  reviewerName: string | null;
58
+ createdOn: string;
59
59
  }>, "many">;
60
60
  hasNextPage: z.ZodBoolean;
61
61
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -64,13 +64,13 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
64
64
  totalCount: number | null;
65
65
  data: {
66
66
  id: string;
67
- createdOn: string;
68
67
  productId: string;
69
68
  isVerifiedPurchase: boolean;
70
69
  rating: number;
71
70
  title: string | null;
72
71
  content: string;
73
72
  reviewerName: string | null;
73
+ createdOn: string;
74
74
  }[];
75
75
  hasNextPage: boolean;
76
76
  nextCursor: string | null;
@@ -78,13 +78,13 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
78
78
  totalCount: number | null;
79
79
  data: {
80
80
  id: string | number;
81
- createdOn: string;
82
81
  productId: string | number;
83
82
  isVerifiedPurchase: boolean;
84
83
  rating: number;
85
84
  title: string | null;
86
85
  content: string;
87
86
  reviewerName: string | null;
87
+ createdOn: string;
88
88
  }[];
89
89
  hasNextPage: boolean;
90
90
  nextCursor: string | null;
@@ -103,7 +103,7 @@ declare const ListProductReviewsParamsSchema: z.ZodObject<{
103
103
  limit?: number | undefined;
104
104
  rating?: number | undefined;
105
105
  cursor?: string | undefined;
106
- sortBy?: "createdOn" | "rating" | undefined;
106
+ sortBy?: "rating" | "createdOn" | undefined;
107
107
  sortDirection?: "asc" | "desc" | undefined;
108
108
  }, {
109
109
  productId: string | number;
@@ -111,7 +111,7 @@ declare const ListProductReviewsParamsSchema: z.ZodObject<{
111
111
  limit?: number | undefined;
112
112
  rating?: number | undefined;
113
113
  cursor?: string | undefined;
114
- sortBy?: "createdOn" | "rating" | undefined;
114
+ sortBy?: "rating" | "createdOn" | undefined;
115
115
  sortDirection?: "asc" | "desc" | undefined;
116
116
  }>;
117
117
  declare const CreateProductReviewParamsSchema: z.ZodObject<{
@@ -11,22 +11,22 @@ declare const StorefrontReviewSchema: z.ZodObject<{
11
11
  createdOn: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  id: string;
14
- createdOn: string;
15
14
  productId: string;
16
15
  isVerifiedPurchase: boolean;
17
16
  rating: number;
18
17
  title: string | null;
19
18
  content: string;
20
19
  reviewerName: string | null;
20
+ createdOn: string;
21
21
  }, {
22
22
  id: string | number;
23
- createdOn: string;
24
23
  productId: string | number;
25
24
  isVerifiedPurchase: boolean;
26
25
  rating: number;
27
26
  title: string | null;
28
27
  content: string;
29
28
  reviewerName: string | null;
29
+ createdOn: string;
30
30
  }>;
31
31
  declare const StorefrontReviewsSchema: z.ZodObject<{
32
32
  data: z.ZodArray<z.ZodObject<{
@@ -40,22 +40,22 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
40
40
  createdOn: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  id: string;
43
- createdOn: string;
44
43
  productId: string;
45
44
  isVerifiedPurchase: boolean;
46
45
  rating: number;
47
46
  title: string | null;
48
47
  content: string;
49
48
  reviewerName: string | null;
49
+ createdOn: string;
50
50
  }, {
51
51
  id: string | number;
52
- createdOn: string;
53
52
  productId: string | number;
54
53
  isVerifiedPurchase: boolean;
55
54
  rating: number;
56
55
  title: string | null;
57
56
  content: string;
58
57
  reviewerName: string | null;
58
+ createdOn: string;
59
59
  }>, "many">;
60
60
  hasNextPage: z.ZodBoolean;
61
61
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -64,13 +64,13 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
64
64
  totalCount: number | null;
65
65
  data: {
66
66
  id: string;
67
- createdOn: string;
68
67
  productId: string;
69
68
  isVerifiedPurchase: boolean;
70
69
  rating: number;
71
70
  title: string | null;
72
71
  content: string;
73
72
  reviewerName: string | null;
73
+ createdOn: string;
74
74
  }[];
75
75
  hasNextPage: boolean;
76
76
  nextCursor: string | null;
@@ -78,13 +78,13 @@ declare const StorefrontReviewsSchema: z.ZodObject<{
78
78
  totalCount: number | null;
79
79
  data: {
80
80
  id: string | number;
81
- createdOn: string;
82
81
  productId: string | number;
83
82
  isVerifiedPurchase: boolean;
84
83
  rating: number;
85
84
  title: string | null;
86
85
  content: string;
87
86
  reviewerName: string | null;
87
+ createdOn: string;
88
88
  }[];
89
89
  hasNextPage: boolean;
90
90
  nextCursor: string | null;
@@ -103,7 +103,7 @@ declare const ListProductReviewsParamsSchema: z.ZodObject<{
103
103
  limit?: number | undefined;
104
104
  rating?: number | undefined;
105
105
  cursor?: string | undefined;
106
- sortBy?: "createdOn" | "rating" | undefined;
106
+ sortBy?: "rating" | "createdOn" | undefined;
107
107
  sortDirection?: "asc" | "desc" | undefined;
108
108
  }, {
109
109
  productId: string | number;
@@ -111,7 +111,7 @@ declare const ListProductReviewsParamsSchema: z.ZodObject<{
111
111
  limit?: number | undefined;
112
112
  rating?: number | undefined;
113
113
  cursor?: string | undefined;
114
- sortBy?: "createdOn" | "rating" | undefined;
114
+ sortBy?: "rating" | "createdOn" | undefined;
115
115
  sortDirection?: "asc" | "desc" | undefined;
116
116
  }>;
117
117
  declare const CreateProductReviewParamsSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomiq/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Modelos, API client y schemas compartidos de Ecomiq",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -81,6 +81,21 @@
81
81
  "import": "./dist/models/geo.js",
82
82
  "require": "./dist/models/geo.cjs"
83
83
  },
84
+ "./models/customer-address": {
85
+ "types": "./dist/models/customer-address.d.ts",
86
+ "import": "./dist/models/customer-address.js",
87
+ "require": "./dist/models/customer-address.cjs"
88
+ },
89
+ "./models/customer-profile": {
90
+ "types": "./dist/models/customer-profile.d.ts",
91
+ "import": "./dist/models/customer-profile.js",
92
+ "require": "./dist/models/customer-profile.cjs"
93
+ },
94
+ "./models/customer-order": {
95
+ "types": "./dist/models/customer-order.d.ts",
96
+ "import": "./dist/models/customer-order.js",
97
+ "require": "./dist/models/customer-order.cjs"
98
+ },
84
99
  "./package.json": "./package.json"
85
100
  },
86
101
  "files": [