oneentry 1.0.155 → 1.0.157

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 (45) hide show
  1. package/README.md +19 -0
  2. package/changelog.md +154 -1
  3. package/dist/attribute-sets/attributeSetsApi.js +4 -4
  4. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +1 -1
  5. package/dist/auth-provider/authProviderSchemas.d.ts +2 -0
  6. package/dist/auth-provider/authProviderSchemas.js +2 -0
  7. package/dist/auth-provider/authProvidersInterfaces.d.ts +4 -0
  8. package/dist/base/asyncModules.d.ts +18 -2
  9. package/dist/base/asyncModules.js +32 -8
  10. package/dist/base/syncModules.d.ts +41 -144
  11. package/dist/base/syncModules.js +67 -359
  12. package/dist/base/timeIntervals.d.ts +95 -0
  13. package/dist/base/timeIntervals.js +321 -0
  14. package/dist/base/utils.d.ts +65 -7
  15. package/dist/base/validation.js +0 -1
  16. package/dist/forms/formsApi.js +2 -2
  17. package/dist/forms/formsInterfaces.d.ts +3 -3
  18. package/dist/forms-data/formsDataApi.js +2 -2
  19. package/dist/forms-data/formsDataInterfaces.d.ts +4 -4
  20. package/dist/index.d.ts +3 -2
  21. package/dist/index.js +5 -0
  22. package/dist/integration-collections/integrationCollectionsApi.js +6 -6
  23. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +4 -0
  24. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +4 -0
  25. package/dist/integration-collections/integrationCollectionsSchemas.js +2 -0
  26. package/dist/menus/menusApi.js +1 -1
  27. package/dist/orders/ordersInterfaces.d.ts +10 -0
  28. package/dist/orders/ordersSchemas.d.ts +10 -0
  29. package/dist/orders/ordersSchemas.js +12 -0
  30. package/dist/pages/pagesApi.d.ts +4 -4
  31. package/dist/pages/pagesApi.js +10 -9
  32. package/dist/pages/pagesInterfaces.d.ts +14 -4
  33. package/dist/pages/pagesSchemas.d.ts +15 -0
  34. package/dist/pages/pagesSchemas.js +13 -1
  35. package/dist/products/productsApi.d.ts +4 -4
  36. package/dist/products/productsApi.js +12 -10
  37. package/dist/products/productsInterfaces.d.ts +16 -4
  38. package/dist/products/productsSchemas.d.ts +17 -0
  39. package/dist/products/productsSchemas.js +14 -1
  40. package/dist/subscriptions/subscriptionsApi.d.ts +4 -4
  41. package/dist/subscriptions/subscriptionsApi.js +3 -3
  42. package/dist/subscriptions/subscriptionsInterfaces.d.ts +26 -5
  43. package/dist/subscriptions/subscriptionsSchemas.d.ts +27 -1
  44. package/dist/subscriptions/subscriptionsSchemas.js +20 -2
  45. package/package.json +1 -1
@@ -13,8 +13,34 @@ export declare const CreatedSubscriptionSchema: z.ZodObject<{
13
13
  paymentUrl: z.ZodString;
14
14
  status: z.ZodString;
15
15
  }, z.core.$strip>;
16
+ /**
17
+ * Subscription entity schema
18
+ * @description Schema for an available subscription as returned by the API (localizeInfos kept as a locale map)
19
+ */
20
+ export declare const SubscriptionEntitySchema: z.ZodObject<{
21
+ id: z.ZodNumber;
22
+ identifier: z.ZodString;
23
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
24
+ productIds: z.ZodArray<z.ZodNumber>;
25
+ periodInDays: z.ZodNumber;
26
+ paymentAccountId: z.ZodNumber;
27
+ isUsed: z.ZodBoolean;
28
+ }, z.core.$strip>;
29
+ /**
30
+ * Subscriptions list schema
31
+ * @description Schema for the array of available subscriptions returned by getAllSubscriptions
32
+ */
33
+ export declare const SubscriptionsListSchema: z.ZodArray<z.ZodObject<{
34
+ id: z.ZodNumber;
35
+ identifier: z.ZodString;
36
+ localizeInfos: z.ZodRecord<z.ZodString, z.ZodAny>;
37
+ productIds: z.ZodArray<z.ZodNumber>;
38
+ periodInDays: z.ZodNumber;
39
+ paymentAccountId: z.ZodNumber;
40
+ isUsed: z.ZodBoolean;
41
+ }, z.core.$strip>>;
16
42
  /**
17
43
  * Subscription markers schema
18
- * @description Schema for arrays of subscription markers (available and active subscriptions)
44
+ * @description Schema for the array of active subscription markers returned by getActiveSubscriptions
19
45
  */
20
46
  export declare const SubscriptionMarkersSchema: z.ZodArray<z.ZodString>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionMarkersSchema = exports.CreatedSubscriptionSchema = void 0;
3
+ exports.SubscriptionMarkersSchema = exports.SubscriptionsListSchema = exports.SubscriptionEntitySchema = exports.CreatedSubscriptionSchema = void 0;
4
4
  /**
5
5
  * Validation schemas for Subscriptions module
6
6
  * @description Zod schemas for validating subscriptions-related API responses
@@ -16,8 +16,26 @@ exports.CreatedSubscriptionSchema = zod_1.z.object({
16
16
  paymentUrl: zod_1.z.string(),
17
17
  status: zod_1.z.string(),
18
18
  });
19
+ /**
20
+ * Subscription entity schema
21
+ * @description Schema for an available subscription as returned by the API (localizeInfos kept as a locale map)
22
+ */
23
+ exports.SubscriptionEntitySchema = zod_1.z.object({
24
+ id: zod_1.z.number(),
25
+ identifier: zod_1.z.string(),
26
+ localizeInfos: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
27
+ productIds: zod_1.z.array(zod_1.z.number()),
28
+ periodInDays: zod_1.z.number(),
29
+ paymentAccountId: zod_1.z.number(),
30
+ isUsed: zod_1.z.boolean(),
31
+ });
32
+ /**
33
+ * Subscriptions list schema
34
+ * @description Schema for the array of available subscriptions returned by getAllSubscriptions
35
+ */
36
+ exports.SubscriptionsListSchema = zod_1.z.array(exports.SubscriptionEntitySchema);
19
37
  /**
20
38
  * Subscription markers schema
21
- * @description Schema for arrays of subscription markers (available and active subscriptions)
39
+ * @description Schema for the array of active subscription markers returned by getActiveSubscriptions
22
40
  */
23
41
  exports.SubscriptionMarkersSchema = zod_1.z.array(zod_1.z.string());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",