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.
- package/README.md +19 -0
- package/changelog.md +154 -1
- package/dist/attribute-sets/attributeSetsApi.js +4 -4
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +1 -1
- package/dist/auth-provider/authProviderSchemas.d.ts +2 -0
- package/dist/auth-provider/authProviderSchemas.js +2 -0
- package/dist/auth-provider/authProvidersInterfaces.d.ts +4 -0
- package/dist/base/asyncModules.d.ts +18 -2
- package/dist/base/asyncModules.js +32 -8
- package/dist/base/syncModules.d.ts +41 -144
- package/dist/base/syncModules.js +67 -359
- package/dist/base/timeIntervals.d.ts +95 -0
- package/dist/base/timeIntervals.js +321 -0
- package/dist/base/utils.d.ts +65 -7
- package/dist/base/validation.js +0 -1
- package/dist/forms/formsApi.js +2 -2
- package/dist/forms/formsInterfaces.d.ts +3 -3
- package/dist/forms-data/formsDataApi.js +2 -2
- package/dist/forms-data/formsDataInterfaces.d.ts +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -0
- package/dist/integration-collections/integrationCollectionsApi.js +6 -6
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +4 -0
- package/dist/integration-collections/integrationCollectionsSchemas.d.ts +4 -0
- package/dist/integration-collections/integrationCollectionsSchemas.js +2 -0
- package/dist/menus/menusApi.js +1 -1
- package/dist/orders/ordersInterfaces.d.ts +10 -0
- package/dist/orders/ordersSchemas.d.ts +10 -0
- package/dist/orders/ordersSchemas.js +12 -0
- package/dist/pages/pagesApi.d.ts +4 -4
- package/dist/pages/pagesApi.js +10 -9
- package/dist/pages/pagesInterfaces.d.ts +14 -4
- package/dist/pages/pagesSchemas.d.ts +15 -0
- package/dist/pages/pagesSchemas.js +13 -1
- package/dist/products/productsApi.d.ts +4 -4
- package/dist/products/productsApi.js +12 -10
- package/dist/products/productsInterfaces.d.ts +16 -4
- package/dist/products/productsSchemas.d.ts +17 -0
- package/dist/products/productsSchemas.js +14 -1
- package/dist/subscriptions/subscriptionsApi.d.ts +4 -4
- package/dist/subscriptions/subscriptionsApi.js +3 -3
- package/dist/subscriptions/subscriptionsInterfaces.d.ts +26 -5
- package/dist/subscriptions/subscriptionsSchemas.d.ts +27 -1
- package/dist/subscriptions/subscriptionsSchemas.js +20 -2
- 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
|
|
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
|
|
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());
|