oneentry 1.0.149 → 1.0.150

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 (49) hide show
  1. package/README.md +8 -0
  2. package/changelog.md +431 -0
  3. package/dist/base/asyncModules.js +13 -0
  4. package/dist/base/stateModule.d.ts +1 -0
  5. package/dist/base/stateModule.js +3 -0
  6. package/dist/base/syncModules.d.ts +30 -1
  7. package/dist/base/syncModules.js +102 -30
  8. package/dist/base/utils.d.ts +4 -1
  9. package/dist/blocks/blocksApi.d.ts +108 -2
  10. package/dist/blocks/blocksApi.js +148 -1
  11. package/dist/blocks/blocksInterfaces.d.ts +160 -2
  12. package/dist/blocks/blocksSchemas.d.ts +4 -0
  13. package/dist/events/eventsApi.d.ts +42 -1
  14. package/dist/events/eventsApi.js +67 -0
  15. package/dist/events/eventsInterfaces.d.ts +79 -1
  16. package/dist/filters/filtersApi.d.ts +31 -0
  17. package/dist/filters/filtersApi.js +40 -0
  18. package/dist/filters/filtersInterfaces.d.ts +56 -0
  19. package/dist/filters/filtersInterfaces.js +2 -0
  20. package/dist/filters/filtersSchemas.d.ts +32 -0
  21. package/dist/filters/filtersSchemas.js +29 -0
  22. package/dist/general-types/generalTypesSchemas.d.ts +16 -0
  23. package/dist/general-types/generalTypesSchemas.js +10 -1
  24. package/dist/index.d.ts +13 -0
  25. package/dist/index.js +10 -0
  26. package/dist/pages/pagesInterfaces.d.ts +2 -2
  27. package/dist/pages/pagesSchemas.d.ts +3 -3
  28. package/dist/pages/pagesSchemas.js +1 -1
  29. package/dist/products/productsApi.d.ts +19 -1
  30. package/dist/products/productsApi.js +29 -7
  31. package/dist/products/productsInterfaces.d.ts +30 -1
  32. package/dist/products/productsSchemas.d.ts +4 -0
  33. package/dist/products/productsSchemas.js +1 -0
  34. package/dist/subscriptions/subscriptionsApi.d.ts +69 -0
  35. package/dist/subscriptions/subscriptionsApi.js +102 -0
  36. package/dist/subscriptions/subscriptionsInterfaces.d.ts +90 -0
  37. package/dist/subscriptions/subscriptionsInterfaces.js +2 -0
  38. package/dist/subscriptions/subscriptionsSchemas.d.ts +20 -0
  39. package/dist/subscriptions/subscriptionsSchemas.js +23 -0
  40. package/dist/user-activity/userActivityApi.d.ts +30 -0
  41. package/dist/user-activity/userActivityApi.js +42 -0
  42. package/dist/user-activity/userActivityInterfaces.d.ts +42 -0
  43. package/dist/user-activity/userActivityInterfaces.js +2 -0
  44. package/dist/users/usersApi.d.ts +79 -1
  45. package/dist/users/usersApi.js +110 -0
  46. package/dist/users/usersInterfaces.d.ts +155 -1
  47. package/dist/users/usersSchemas.d.ts +40 -0
  48. package/dist/users/usersSchemas.js +34 -1
  49. package/package.json +3 -2
@@ -30,3 +30,43 @@ export declare const DeleteUserResponseSchema: z.ZodObject<{
30
30
  success: z.ZodBoolean;
31
31
  message: z.ZodOptional<z.ZodString>;
32
32
  }, z.core.$strip>;
33
+ /**
34
+ * Cart item schema
35
+ * @description Schema for a single cart item
36
+ */
37
+ export declare const CartItemSchema: z.ZodObject<{
38
+ productId: z.ZodNumber;
39
+ qty: z.ZodNumber;
40
+ addedAt: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>;
42
+ /**
43
+ * Cart response schema
44
+ * @description Schema for the user's or guest's cart
45
+ */
46
+ export declare const CartResponseSchema: z.ZodObject<{
47
+ items: z.ZodArray<z.ZodObject<{
48
+ productId: z.ZodNumber;
49
+ qty: z.ZodNumber;
50
+ addedAt: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>>;
52
+ total: z.ZodNumber;
53
+ }, z.core.$strip>;
54
+ /**
55
+ * Wishlist item schema
56
+ * @description Schema for a single wishlist item
57
+ */
58
+ export declare const WishlistItemSchema: z.ZodObject<{
59
+ productId: z.ZodNumber;
60
+ addedAt: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>;
62
+ /**
63
+ * Wishlist response schema
64
+ * @description Schema for the user's or guest's wishlist
65
+ */
66
+ export declare const WishlistResponseSchema: z.ZodObject<{
67
+ items: z.ZodArray<z.ZodObject<{
68
+ productId: z.ZodNumber;
69
+ addedAt: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>>;
71
+ total: z.ZodNumber;
72
+ }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteUserResponseSchema = exports.UpdateUserResponseSchema = exports.UserResponseSchema = void 0;
3
+ exports.WishlistResponseSchema = exports.WishlistItemSchema = exports.CartResponseSchema = exports.CartItemSchema = exports.DeleteUserResponseSchema = exports.UpdateUserResponseSchema = exports.UserResponseSchema = void 0;
4
4
  /**
5
5
  * Validation schemas for Users module
6
6
  * @description Zod schemas for validating users-related API responses
@@ -23,3 +23,36 @@ exports.DeleteUserResponseSchema = zod_1.z.object({
23
23
  success: zod_1.z.boolean(),
24
24
  message: zod_1.z.string().optional(),
25
25
  });
26
+ /**
27
+ * Cart item schema
28
+ * @description Schema for a single cart item
29
+ */
30
+ exports.CartItemSchema = zod_1.z.object({
31
+ productId: zod_1.z.number(),
32
+ qty: zod_1.z.number(),
33
+ addedAt: zod_1.z.string().optional(),
34
+ });
35
+ /**
36
+ * Cart response schema
37
+ * @description Schema for the user's or guest's cart
38
+ */
39
+ exports.CartResponseSchema = zod_1.z.object({
40
+ items: zod_1.z.array(exports.CartItemSchema),
41
+ total: zod_1.z.number(),
42
+ });
43
+ /**
44
+ * Wishlist item schema
45
+ * @description Schema for a single wishlist item
46
+ */
47
+ exports.WishlistItemSchema = zod_1.z.object({
48
+ productId: zod_1.z.number(),
49
+ addedAt: zod_1.z.string().optional(),
50
+ });
51
+ /**
52
+ * Wishlist response schema
53
+ * @description Schema for the user's or guest's wishlist
54
+ */
55
+ exports.WishlistResponseSchema = zod_1.z.object({
56
+ items: zod_1.z.array(exports.WishlistItemSchema),
57
+ total: zod_1.z.number(),
58
+ });
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.149",
3
+ "version": "1.0.150",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "/dist"
8
+ "/dist",
9
+ "/changelog.md"
9
10
  ],
10
11
  "bin": {
11
12
  "oneentry": "./configure.js"