oneentry 1.0.144 → 1.0.146
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/admins/adminsInterfaces.d.ts +3 -0
- package/dist/admins/adminsSchemas.d.ts +2 -0
- package/dist/admins/adminsSchemas.js +2 -1
- package/dist/attribute-sets/attributeSetsSchemas.d.ts +0 -2
- package/dist/attribute-sets/attributeSetsSchemas.js +0 -3
- package/dist/auth-provider/authProviderSchemas.d.ts +27 -36
- package/dist/auth-provider/authProviderSchemas.js +17 -6
- package/dist/auth-provider/authProvidersInterfaces.d.ts +15 -10
- package/dist/base/syncModules.js +17 -5
- package/dist/base/utils.d.ts +15 -1
- package/dist/base/validation.d.ts +10 -30
- package/dist/base/validation.js +10 -17
- package/dist/blocks/blocksSchemas.d.ts +68 -100
- package/dist/discounts/discountsApi.d.ts +7 -7
- package/dist/discounts/discountsApi.js +3 -3
- package/dist/discounts/discountsInterfaces.d.ts +31 -15
- package/dist/forms/formsInterfaces.d.ts +19 -3
- package/dist/forms/formsSchemas.d.ts +3 -0
- package/dist/forms/formsSchemas.js +1 -0
- package/dist/forms-data/formsDataInterfaces.d.ts +3 -3
- package/dist/forms-data/formsDataSchemas.d.ts +4 -12
- package/dist/forms-data/formsDataSchemas.js +3 -3
- package/dist/orders/ordersApi.d.ts +4 -4
- package/dist/orders/ordersApi.js +2 -2
- package/dist/orders/ordersInterfaces.d.ts +21 -8
- package/dist/orders/ordersSchemas.d.ts +49 -34
- package/dist/orders/ordersSchemas.js +38 -29
- package/dist/pages/pagesSchemas.d.ts +7 -1
- package/dist/pages/pagesSchemas.js +5 -1
- package/dist/payments/paymentsApi.d.ts +3 -3
- package/dist/payments/paymentsApi.js +2 -2
- package/dist/payments/paymentsInterfaces.d.ts +5 -41
- package/dist/payments/paymentsSchemas.d.ts +8 -14
- package/dist/payments/paymentsSchemas.js +3 -12
- package/dist/products/productsSchemas.d.ts +68 -100
- package/dist/products/productsSchemas.js +17 -19
- package/dist/sitemap/sitemapApi.d.ts +4 -4
- package/dist/sitemap/sitemapApi.js +1 -1
- package/dist/sitemap/sitemapInterfaces.d.ts +30 -21
- package/dist/users/usersInterfaces.d.ts +3 -3
- package/dist/users/usersSchemas.d.ts +8 -14
- package/dist/users/usersSchemas.js +1 -4
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AsyncModules from '../base/asyncModules';
|
|
2
2
|
import type StateModule from '../base/stateModule';
|
|
3
3
|
import type { IError } from '../base/utils';
|
|
4
|
-
import type { ISitemapApi, ISitemapEntity
|
|
4
|
+
import type { ISitemapApi, ISitemapEntity } from './sitemapInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with sitemaps.
|
|
7
7
|
* @handle /api/content/sitemap
|
|
@@ -23,13 +23,13 @@ export default class SitemapApi extends AsyncModules implements ISitemapApi {
|
|
|
23
23
|
* @returns {Promise<string[] | IError>} Returns an array of sitemap URLs.
|
|
24
24
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
25
25
|
*/
|
|
26
|
-
getSitemap(): Promise<
|
|
26
|
+
getSitemap(): Promise<string[] | IError>;
|
|
27
27
|
/**
|
|
28
28
|
* Generates a new set of sitemaps.
|
|
29
29
|
* @handleName updateSitemap
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {Array<ISitemapEntity>} body - Sitemap body params.
|
|
31
31
|
* @returns {Promise<string[] | IError>} Returns an array of sitemap URLs.
|
|
32
32
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
33
33
|
*/
|
|
34
|
-
updateSitemap(body:
|
|
34
|
+
updateSitemap(body: Array<ISitemapEntity>): Promise<Array<ISitemapEntity> | IError>;
|
|
35
35
|
}
|
|
@@ -33,7 +33,7 @@ class SitemapApi extends asyncModules_1.default {
|
|
|
33
33
|
/**
|
|
34
34
|
* Generates a new set of sitemaps.
|
|
35
35
|
* @handleName updateSitemap
|
|
36
|
-
* @param {
|
|
36
|
+
* @param {Array<ISitemapEntity>} body - Sitemap body params.
|
|
37
37
|
* @returns {Promise<string[] | IError>} Returns an array of sitemap URLs.
|
|
38
38
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
39
39
|
*/
|
|
@@ -1,40 +1,49 @@
|
|
|
1
1
|
import type { IError } from '../base/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for the Sitemap API module.
|
|
4
|
+
* @interface ISitemapApi
|
|
5
|
+
*/
|
|
6
|
+
interface ISitemapApi {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the set of sitemaps.
|
|
9
|
+
* @handleName getSitemap
|
|
10
|
+
* @returns {Promise<Array<string> | IError>}
|
|
11
|
+
*/
|
|
12
|
+
getSitemap(): Promise<Array<string> | IError>;
|
|
13
|
+
/**
|
|
14
|
+
* Generates a new set of sitemaps.
|
|
15
|
+
* @handleName updateSitemap
|
|
16
|
+
* @param {Array<ISitemapQuery>} body - Sitemap body params.
|
|
17
|
+
* @returns {Promise<Array<ISitemapEntity> | IError>}
|
|
18
|
+
*/
|
|
19
|
+
updateSitemap(body: Array<ISitemapQuery>): Promise<Array<ISitemapEntity> | IError>;
|
|
20
|
+
}
|
|
2
21
|
/**
|
|
3
22
|
* Query parameters for sitemap requests.
|
|
4
23
|
* @interface ISitemapQuery
|
|
24
|
+
* @property {string} url - URL of the sitemap entry.
|
|
25
|
+
* @property {string} lastmod - Last modification date.
|
|
26
|
+
* @property {string} changefreq - Frequency of changes.
|
|
27
|
+
* @property {number} priority - Priority of the entry.
|
|
5
28
|
*/
|
|
6
29
|
interface ISitemapQuery {
|
|
7
|
-
|
|
30
|
+
url: string;
|
|
31
|
+
lastmod: string;
|
|
32
|
+
changefreq: string;
|
|
33
|
+
priority: number;
|
|
8
34
|
}
|
|
9
35
|
/**
|
|
10
36
|
* Entity interface for sitemap.
|
|
37
|
+
* @interface ISitemapEntity
|
|
11
38
|
* @property {string} url - URL of the sitemap.
|
|
12
39
|
* @property {string} lastmod - Last modification date of the sitemap.
|
|
13
40
|
* @property {string} changefreq - Frequency of changes for the sitemap.
|
|
14
|
-
* @property {
|
|
15
|
-
* @interface ISitemapEntity
|
|
41
|
+
* @property {number} priority - Priority of the sitemap.
|
|
16
42
|
*/
|
|
17
43
|
interface ISitemapEntity {
|
|
18
44
|
url: string;
|
|
19
45
|
lastmod: string;
|
|
20
46
|
changefreq: string;
|
|
21
|
-
priority:
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Interface for the Sitemap API module.
|
|
25
|
-
* @interface ISitemapApi
|
|
26
|
-
*/
|
|
27
|
-
interface ISitemapApi {
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves the set of sitemaps.
|
|
30
|
-
* @returns {Promise<ISitemapEntity[] | IError>}
|
|
31
|
-
*/
|
|
32
|
-
getSitemap(): Promise<ISitemapEntity[] | IError>;
|
|
33
|
-
/**
|
|
34
|
-
* Generates a new set of sitemaps.
|
|
35
|
-
* @param {ISitemapQuery} body - Sitemap body params.
|
|
36
|
-
* @returns {Promise<ISitemapEntity[] | IError>}
|
|
37
|
-
*/
|
|
38
|
-
updateSitemap(body: ISitemapQuery): Promise<ISitemapEntity[] | IError>;
|
|
47
|
+
priority: number;
|
|
39
48
|
}
|
|
40
49
|
export type { ISitemapApi, ISitemapEntity, ISitemapQuery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAuthData, IAuthFormData } from '../auth-provider/authProvidersInterfaces';
|
|
2
|
-
import type { IError } from '../base/utils';
|
|
2
|
+
import type { IError, IRating } from '../base/utils';
|
|
3
3
|
import type { IFormConfig } from '../forms/formsInterfaces';
|
|
4
4
|
import type { FormDataType } from '../forms-data/formsDataInterfaces';
|
|
5
5
|
/**
|
|
@@ -161,7 +161,7 @@ interface IUsersApi {
|
|
|
161
161
|
"key": "value"
|
|
162
162
|
}
|
|
163
163
|
* @property {Array<IFormConfig>} [moduleFormConfigs] - Optional array of form configuration objects associated with the user.
|
|
164
|
-
* @property {
|
|
164
|
+
* @property {IRating} [rating] - Rating data.
|
|
165
165
|
* @description Represents a user entity with various properties, including identifiers, form data, and user groups.
|
|
166
166
|
*/
|
|
167
167
|
interface IUserEntity {
|
|
@@ -174,7 +174,7 @@ interface IUserEntity {
|
|
|
174
174
|
groups: Array<string | number>;
|
|
175
175
|
state: Record<string, any>;
|
|
176
176
|
moduleFormConfigs?: Array<IFormConfig>;
|
|
177
|
-
rating?:
|
|
177
|
+
rating?: IRating;
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
180
|
* @interface IUserBody
|
|
@@ -9,21 +9,15 @@ import { z } from 'zod';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const UserResponseSchema: z.ZodObject<{
|
|
11
11
|
id: z.ZodNumber;
|
|
12
|
-
identifier: z.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
total: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
20
|
-
authProviderIdentifier: z.ZodOptional<z.ZodString>;
|
|
21
|
-
formIdentifier: z.ZodOptional<z.ZodString>;
|
|
22
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
23
|
-
state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
12
|
+
identifier: z.ZodString;
|
|
13
|
+
authProviderIdentifier: z.ZodString;
|
|
14
|
+
formData: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
15
|
+
formIdentifier: z.ZodString;
|
|
16
|
+
total: z.ZodString;
|
|
17
|
+
groups: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
18
|
+
state: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
24
19
|
moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
25
|
-
|
|
26
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
20
|
+
rating: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
21
|
}, z.core.$strip>;
|
|
28
22
|
/**
|
|
29
23
|
* Update user response schema (returns true on success)
|
|
@@ -11,10 +11,7 @@ const validation_1 = require("../base/validation");
|
|
|
11
11
|
* User response schema (extends base UserEntitySchema)
|
|
12
12
|
* formData can be array or object (inherited from UserEntitySchema)
|
|
13
13
|
*/
|
|
14
|
-
exports.UserResponseSchema = validation_1.UserEntitySchema
|
|
15
|
-
createdAt: zod_1.z.string().optional(),
|
|
16
|
-
updatedAt: zod_1.z.string().optional(),
|
|
17
|
-
});
|
|
14
|
+
exports.UserResponseSchema = validation_1.UserEntitySchema;
|
|
18
15
|
/**
|
|
19
16
|
* Update user response schema (returns true on success)
|
|
20
17
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneentry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.146",
|
|
4
4
|
"description": "OneEntry NPM package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bin": {
|
|
11
11
|
"oneentry": "./configure.js"
|
|
12
12
|
},
|
|
13
|
-
"author": "ONEENTRY PORTAL
|
|
13
|
+
"author": "ONEENTRY PORTAL LLC",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"socket.io-client": "^4.8.3",
|