@veruna/api-contracts 1.0.13 → 1.0.15
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/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +4 -1
- package/build/controllers/seo-pages.controllers.d.ts +5 -0
- package/build/controllers/seo-pages.controllers.js +8 -0
- package/build/index.d.ts +3 -1
- package/build/index.js +3 -1
- package/build/locales/en.d.ts +5 -0
- package/build/locales/en.js +6 -0
- package/build/locales/index.d.ts +10 -0
- package/build/locales/ru.d.ts +5 -0
- package/build/locales/ru.js +6 -0
- package/build/rest-api.d.ts +12 -0
- package/build/rest-api.js +13 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +5 -1
- package/build/routes/seo-pages-admin.routes.d.ts +10 -0
- package/build/routes/seo-pages-admin.routes.js +13 -0
- package/build/routes/seo-pages-public.routes.d.ts +6 -0
- package/build/routes/seo-pages-public.routes.js +9 -0
- package/build/shared/common.errors.d.ts +8 -0
- package/build/shared/common.errors.js +28 -0
- package/build/shared/device-type.enum.d.ts +11 -0
- package/build/shared/device-type.enum.js +15 -0
- package/build/shared/error-metadata.d.ts +9 -0
- package/build/shared/index.d.ts +4 -0
- package/build/shared/index.js +4 -0
- package/build/v1/auth/auth.errors.d.ts +4 -1
- package/build/v1/auth/auth.errors.js +30 -1
- package/build/v1/auth/commands/signin.command.d.ts +2 -0
- package/build/v1/auth/commands/signup.command.d.ts +2 -0
- package/build/v1/auth/commands/signup.command.js +4 -4
- package/build/v1/auth/index.d.ts +0 -2
- package/build/v1/auth/index.js +0 -2
- package/build/v1/auth/queries/get-sessions.query.d.ts +2 -0
- package/build/v1/auth/schemas/auth-response.schema.d.ts +4 -0
- package/build/v1/auth/schemas/session-response.schema.d.ts +3 -0
- package/build/v1/auth/schemas/session-response.schema.js +6 -4
- package/build/v1/blog/blog.errors.d.ts +18 -0
- package/build/v1/blog/blog.errors.js +84 -0
- package/build/v1/blog/index.d.ts +1 -2
- package/build/v1/blog/index.js +1 -2
- package/build/v1/blog/schemas/create-category-request.schema.js +3 -3
- package/build/v1/blog/schemas/create-post-request.schema.js +4 -4
- package/build/v1/email/email.errors.d.ts +15 -0
- package/build/v1/email/email.errors.js +63 -0
- package/build/v1/email/index.d.ts +1 -0
- package/build/v1/email/index.js +17 -0
- package/build/v1/index.d.ts +3 -0
- package/build/v1/index.js +3 -0
- package/build/v1/notifications/index.d.ts +2 -0
- package/build/v1/notifications/index.js +18 -0
- package/build/v1/notifications/notifications.errors.d.ts +26 -0
- package/build/v1/notifications/notifications.errors.js +101 -0
- package/build/v1/notifications/schemas/email-template.enum.d.ts +12 -0
- package/build/v1/notifications/schemas/email-template.enum.js +20 -0
- package/build/v1/notifications/schemas/index.d.ts +3 -0
- package/build/v1/notifications/schemas/index.js +19 -0
- package/build/v1/notifications/schemas/notification-status.enum.d.ts +11 -0
- package/build/v1/notifications/schemas/notification-status.enum.js +15 -0
- package/build/v1/notifications/schemas/notification-type.enum.d.ts +8 -0
- package/build/v1/notifications/schemas/notification-type.enum.js +14 -0
- package/build/v1/seo-pages/admin/commands/create-page.command.d.ts +29 -0
- package/build/v1/seo-pages/admin/commands/create-page.command.js +13 -0
- package/build/v1/seo-pages/admin/commands/delete-page.command.d.ts +12 -0
- package/build/v1/seo-pages/admin/commands/delete-page.command.js +13 -0
- package/build/v1/seo-pages/admin/commands/index.d.ts +6 -0
- package/build/v1/seo-pages/admin/commands/index.js +12 -0
- package/build/v1/seo-pages/admin/commands/update-page.command.d.ts +29 -0
- package/build/v1/seo-pages/admin/commands/update-page.command.js +13 -0
- package/build/v1/seo-pages/admin/queries/get-page.query.d.ts +21 -0
- package/build/v1/seo-pages/admin/queries/get-page.query.js +14 -0
- package/build/v1/seo-pages/admin/queries/get-pages.query.d.ts +34 -0
- package/build/v1/seo-pages/admin/queries/get-pages.query.js +19 -0
- package/build/v1/seo-pages/admin/queries/index.d.ts +5 -0
- package/build/v1/seo-pages/admin/queries/index.js +10 -0
- package/build/v1/seo-pages/index.d.ts +8 -0
- package/build/v1/seo-pages/index.js +32 -0
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.d.ts +21 -0
- package/build/v1/seo-pages/public/queries/get-page-by-alias.query.js +14 -0
- package/build/v1/seo-pages/public/queries/index.d.ts +4 -0
- package/build/v1/seo-pages/public/queries/index.js +8 -0
- package/build/v1/seo-pages/schemas/create-page-request.schema.d.ts +14 -0
- package/build/v1/seo-pages/schemas/create-page-request.schema.js +18 -0
- package/build/v1/seo-pages/schemas/index.d.ts +7 -0
- package/build/v1/seo-pages/schemas/index.js +14 -0
- package/build/v1/seo-pages/schemas/page-response.schema.d.ts +17 -0
- package/build/v1/seo-pages/schemas/page-response.schema.js +21 -0
- package/build/v1/seo-pages/schemas/page-type.enum.d.ts +8 -0
- package/build/v1/seo-pages/schemas/page-type.enum.js +12 -0
- package/build/v1/seo-pages/schemas/update-page-request.schema.d.ts +14 -0
- package/build/v1/seo-pages/schemas/update-page-request.schema.js +18 -0
- package/build/v1/seo-pages/seo-pages.errors.d.ts +11 -0
- package/build/v1/seo-pages/seo-pages.errors.js +43 -0
- package/build/v1/unregistered-users/index.d.ts +1 -5
- package/build/v1/unregistered-users/index.js +1 -9
- package/build/v1/unregistered-users/unregistered-users.errors.d.ts +8 -9
- package/build/v1/unregistered-users/unregistered-users.errors.js +18 -9
- package/build/v1/users/index.d.ts +1 -2
- package/build/v1/users/index.js +1 -2
- package/build/v1/users/users.errors.d.ts +18 -0
- package/build/v1/users/users.errors.js +51 -0
- package/package.json +1 -1
- package/build/v1/auth/auth.paths.d.ts +0 -17
- package/build/v1/auth/auth.paths.js +0 -20
- package/build/v1/auth/auth.types.d.ts +0 -8
- package/build/v1/auth/auth.types.js +0 -6
- package/build/v1/blog/blog.paths.d.ts +0 -36
- package/build/v1/blog/blog.paths.js +0 -47
- package/build/v1/blog/blog.types.d.ts +0 -12
- package/build/v1/blog/blog.types.js +0 -7
- package/build/v1/unregistered-users/unregistered-users.paths.d.ts +0 -15
- package/build/v1/unregistered-users/unregistered-users.paths.js +0 -18
- package/build/v1/unregistered-users/unregistered-users.types.d.ts +0 -9
- package/build/v1/unregistered-users/unregistered-users.types.js +0 -8
- package/build/v1/users/users.paths.d.ts +0 -11
- package/build/v1/users/users.paths.js +0 -14
- package/build/v1/users/users.types.d.ts +0 -11
- /package/build/{v1/users/users.types.js → shared/error-metadata.js} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminSeoPageUpdatePageCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
metaTitle: z.ZodOptional<z.ZodString>;
|
|
6
|
+
metaDescription: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
content: z.ZodOptional<z.ZodString>;
|
|
10
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
11
|
+
type: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").PageType>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
const Response: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
metaTitle: z.ZodString;
|
|
16
|
+
metaDescription: z.ZodString;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
description: z.ZodString;
|
|
19
|
+
content: z.ZodString;
|
|
20
|
+
alias: z.ZodString;
|
|
21
|
+
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
22
|
+
createdAt: z.ZodString;
|
|
23
|
+
updatedAt: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
const URL: (uuid: string) => string;
|
|
26
|
+
const METHOD = HttpMethod.PATCH;
|
|
27
|
+
type RequestType = z.infer<typeof Request>;
|
|
28
|
+
type ResponseType = z.infer<typeof Response>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSeoPageUpdatePageCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
6
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
7
|
+
var AdminSeoPageUpdatePageCommand;
|
|
8
|
+
(function (AdminSeoPageUpdatePageCommand) {
|
|
9
|
+
AdminSeoPageUpdatePageCommand.Request = schemas_1.UpdatePageRequestSchema;
|
|
10
|
+
AdminSeoPageUpdatePageCommand.Response = schemas_1.PageResponseSchema;
|
|
11
|
+
AdminSeoPageUpdatePageCommand.URL = (uuid) => rest_api_1.REST_API.V1.SEO_PAGES.ADMIN.UPDATE(uuid);
|
|
12
|
+
AdminSeoPageUpdatePageCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
13
|
+
})(AdminSeoPageUpdatePageCommand || (exports.AdminSeoPageUpdatePageCommand = AdminSeoPageUpdatePageCommand = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminSeoPageGetPageQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
metaTitle: z.ZodString;
|
|
8
|
+
metaDescription: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
alias: z.ZodString;
|
|
13
|
+
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
14
|
+
createdAt: z.ZodString;
|
|
15
|
+
updatedAt: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
const URL: (uuid: string) => string;
|
|
18
|
+
const METHOD = HttpMethod.GET;
|
|
19
|
+
type RequestType = z.infer<typeof Request>;
|
|
20
|
+
type ResponseType = z.infer<typeof Response>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSeoPageGetPageQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var AdminSeoPageGetPageQuery;
|
|
9
|
+
(function (AdminSeoPageGetPageQuery) {
|
|
10
|
+
AdminSeoPageGetPageQuery.Request = zod_1.z.object({});
|
|
11
|
+
AdminSeoPageGetPageQuery.Response = schemas_1.PageResponseSchema;
|
|
12
|
+
AdminSeoPageGetPageQuery.URL = (uuid) => rest_api_1.REST_API.V1.SEO_PAGES.ADMIN.GET_BY_UUID(uuid);
|
|
13
|
+
AdminSeoPageGetPageQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(AdminSeoPageGetPageQuery || (exports.AdminSeoPageGetPageQuery = AdminSeoPageGetPageQuery = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace AdminSeoPageGetPagesQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const Response: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
metaTitle: z.ZodString;
|
|
12
|
+
metaDescription: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
description: z.ZodString;
|
|
15
|
+
content: z.ZodString;
|
|
16
|
+
alias: z.ZodString;
|
|
17
|
+
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
updatedAt: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
meta: z.ZodObject<{
|
|
22
|
+
page: z.ZodNumber;
|
|
23
|
+
limit: z.ZodNumber;
|
|
24
|
+
total: z.ZodNumber;
|
|
25
|
+
totalPages: z.ZodNumber;
|
|
26
|
+
hasNext: z.ZodBoolean;
|
|
27
|
+
hasPrev: z.ZodBoolean;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
const URL: "/api/v1/admin/seo-pages/";
|
|
31
|
+
const METHOD = HttpMethod.GET;
|
|
32
|
+
type RequestType = z.infer<typeof Request>;
|
|
33
|
+
type ResponseType = z.infer<typeof Response>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSeoPageGetPagesQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const pagination_schema_1 = require("../../../../shared/pagination.schema");
|
|
7
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
8
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
9
|
+
const PagesListAdminResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.array(schemas_1.PageResponseSchema),
|
|
11
|
+
meta: pagination_schema_1.PaginationMetaSchema,
|
|
12
|
+
});
|
|
13
|
+
var AdminSeoPageGetPagesQuery;
|
|
14
|
+
(function (AdminSeoPageGetPagesQuery) {
|
|
15
|
+
AdminSeoPageGetPagesQuery.Request = pagination_schema_1.PaginationQuerySchema;
|
|
16
|
+
AdminSeoPageGetPagesQuery.Response = PagesListAdminResponseSchema;
|
|
17
|
+
AdminSeoPageGetPagesQuery.URL = rest_api_1.REST_API.V1.SEO_PAGES.ADMIN.GET_ALL;
|
|
18
|
+
AdminSeoPageGetPagesQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
19
|
+
})(AdminSeoPageGetPagesQuery || (exports.AdminSeoPageGetPagesQuery = AdminSeoPageGetPagesQuery = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSeoPageGetPageQuery = exports.AdminSeoPageGetPagesQuery = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized exports for SEO Pages admin queries
|
|
6
|
+
*/
|
|
7
|
+
var get_pages_query_1 = require("./get-pages.query");
|
|
8
|
+
Object.defineProperty(exports, "AdminSeoPageGetPagesQuery", { enumerable: true, get: function () { return get_pages_query_1.AdminSeoPageGetPagesQuery; } });
|
|
9
|
+
var get_page_query_1 = require("./get-page.query");
|
|
10
|
+
Object.defineProperty(exports, "AdminSeoPageGetPageQuery", { enumerable: true, get: function () { return get_page_query_1.AdminSeoPageGetPageQuery; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized exports for SEO Pages contracts
|
|
3
|
+
*/
|
|
4
|
+
export { SeoPageErrorCode, SEO_PAGE_ERRORS } from './seo-pages.errors';
|
|
5
|
+
export * from './schemas';
|
|
6
|
+
export * from './admin/commands';
|
|
7
|
+
export * from './admin/queries';
|
|
8
|
+
export * from './public/queries';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Centralized exports for SEO Pages contracts
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.SEO_PAGE_ERRORS = exports.SeoPageErrorCode = void 0;
|
|
21
|
+
// Errors
|
|
22
|
+
var seo_pages_errors_1 = require("./seo-pages.errors");
|
|
23
|
+
Object.defineProperty(exports, "SeoPageErrorCode", { enumerable: true, get: function () { return seo_pages_errors_1.SeoPageErrorCode; } });
|
|
24
|
+
Object.defineProperty(exports, "SEO_PAGE_ERRORS", { enumerable: true, get: function () { return seo_pages_errors_1.SEO_PAGE_ERRORS; } });
|
|
25
|
+
// Schemas
|
|
26
|
+
__exportStar(require("./schemas"), exports);
|
|
27
|
+
// Admin Commands
|
|
28
|
+
__exportStar(require("./admin/commands"), exports);
|
|
29
|
+
// Admin Queries
|
|
30
|
+
__exportStar(require("./admin/queries"), exports);
|
|
31
|
+
// Public Queries
|
|
32
|
+
__exportStar(require("./public/queries"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
|
+
export declare namespace SeoPageGetPageByAliasQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
metaTitle: z.ZodString;
|
|
8
|
+
metaDescription: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
alias: z.ZodString;
|
|
13
|
+
type: z.ZodEnum<typeof import("../../schemas").PageType>;
|
|
14
|
+
createdAt: z.ZodString;
|
|
15
|
+
updatedAt: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
const URL: (alias: string) => string;
|
|
18
|
+
const METHOD = HttpMethod.GET;
|
|
19
|
+
type RequestType = z.infer<typeof Request>;
|
|
20
|
+
type ResponseType = z.infer<typeof Response>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SeoPageGetPageByAliasQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../../shared/http-method");
|
|
8
|
+
var SeoPageGetPageByAliasQuery;
|
|
9
|
+
(function (SeoPageGetPageByAliasQuery) {
|
|
10
|
+
SeoPageGetPageByAliasQuery.Request = zod_1.z.object({});
|
|
11
|
+
SeoPageGetPageByAliasQuery.Response = schemas_1.PageResponseSchema;
|
|
12
|
+
SeoPageGetPageByAliasQuery.URL = (alias) => rest_api_1.REST_API.V1.SEO_PAGES.PUBLIC.GET_BY_ALIAS(alias);
|
|
13
|
+
SeoPageGetPageByAliasQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(SeoPageGetPageByAliasQuery || (exports.SeoPageGetPageByAliasQuery = SeoPageGetPageByAliasQuery = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SeoPageGetPageByAliasQuery = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized exports for SEO Pages public queries
|
|
6
|
+
*/
|
|
7
|
+
var get_page_by_alias_query_1 = require("./get-page-by-alias.query");
|
|
8
|
+
Object.defineProperty(exports, "SeoPageGetPageByAliasQuery", { enumerable: true, get: function () { return get_page_by_alias_query_1.SeoPageGetPageByAliasQuery; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PageType } from './page-type.enum';
|
|
3
|
+
/**
|
|
4
|
+
* Create SEO Page Request Schema
|
|
5
|
+
*/
|
|
6
|
+
export declare const CreatePageRequestSchema: z.ZodObject<{
|
|
7
|
+
metaTitle: z.ZodString;
|
|
8
|
+
metaDescription: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
description: z.ZodString;
|
|
11
|
+
content: z.ZodString;
|
|
12
|
+
alias: z.ZodString;
|
|
13
|
+
type: z.ZodEnum<typeof PageType>;
|
|
14
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePageRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const page_type_enum_1 = require("./page-type.enum");
|
|
7
|
+
/**
|
|
8
|
+
* Create SEO Page Request Schema
|
|
9
|
+
*/
|
|
10
|
+
exports.CreatePageRequestSchema = zod_1.z.object({
|
|
11
|
+
metaTitle: zod_1.z.string().min(1).max(100),
|
|
12
|
+
metaDescription: zod_1.z.string().min(1).max(200),
|
|
13
|
+
title: zod_1.z.string().min(1).max(300),
|
|
14
|
+
description: zod_1.z.string().min(1),
|
|
15
|
+
content: zod_1.z.string().min(1),
|
|
16
|
+
alias: zod_1.z.string().min(1).max(200).regex(shared_1.SLUG_REGEX),
|
|
17
|
+
type: zod_1.z.nativeEnum(page_type_enum_1.PageType),
|
|
18
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized exports for SEO Pages schemas
|
|
3
|
+
*/
|
|
4
|
+
export { PageType } from './page-type.enum';
|
|
5
|
+
export { PageResponseSchema } from './page-response.schema';
|
|
6
|
+
export { CreatePageRequestSchema } from './create-page-request.schema';
|
|
7
|
+
export { UpdatePageRequestSchema } from './update-page-request.schema';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePageRequestSchema = exports.CreatePageRequestSchema = exports.PageResponseSchema = exports.PageType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized exports for SEO Pages schemas
|
|
6
|
+
*/
|
|
7
|
+
var page_type_enum_1 = require("./page-type.enum");
|
|
8
|
+
Object.defineProperty(exports, "PageType", { enumerable: true, get: function () { return page_type_enum_1.PageType; } });
|
|
9
|
+
var page_response_schema_1 = require("./page-response.schema");
|
|
10
|
+
Object.defineProperty(exports, "PageResponseSchema", { enumerable: true, get: function () { return page_response_schema_1.PageResponseSchema; } });
|
|
11
|
+
var create_page_request_schema_1 = require("./create-page-request.schema");
|
|
12
|
+
Object.defineProperty(exports, "CreatePageRequestSchema", { enumerable: true, get: function () { return create_page_request_schema_1.CreatePageRequestSchema; } });
|
|
13
|
+
var update_page_request_schema_1 = require("./update-page-request.schema");
|
|
14
|
+
Object.defineProperty(exports, "UpdatePageRequestSchema", { enumerable: true, get: function () { return update_page_request_schema_1.UpdatePageRequestSchema; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PageType } from './page-type.enum';
|
|
3
|
+
/**
|
|
4
|
+
* SEO Page Response Schema
|
|
5
|
+
*/
|
|
6
|
+
export declare const PageResponseSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
metaTitle: z.ZodString;
|
|
9
|
+
metaDescription: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
content: z.ZodString;
|
|
13
|
+
alias: z.ZodString;
|
|
14
|
+
type: z.ZodEnum<typeof PageType>;
|
|
15
|
+
createdAt: z.ZodString;
|
|
16
|
+
updatedAt: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const regex_1 = require("../../../shared/regex");
|
|
6
|
+
const page_type_enum_1 = require("./page-type.enum");
|
|
7
|
+
/**
|
|
8
|
+
* SEO Page Response Schema
|
|
9
|
+
*/
|
|
10
|
+
exports.PageResponseSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
12
|
+
metaTitle: zod_1.z.string(),
|
|
13
|
+
metaDescription: zod_1.z.string(),
|
|
14
|
+
title: zod_1.z.string(),
|
|
15
|
+
description: zod_1.z.string(),
|
|
16
|
+
content: zod_1.z.string(),
|
|
17
|
+
alias: zod_1.z.string(),
|
|
18
|
+
type: zod_1.z.nativeEnum(page_type_enum_1.PageType),
|
|
19
|
+
createdAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
|
|
20
|
+
updatedAt: zod_1.z.string().regex(regex_1.DATETIME_REGEX),
|
|
21
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* SEO Page Type
|
|
6
|
+
*/
|
|
7
|
+
var PageType;
|
|
8
|
+
(function (PageType) {
|
|
9
|
+
PageType["CATEGORY"] = "category";
|
|
10
|
+
PageType["AI_MODEL"] = "ai_model";
|
|
11
|
+
PageType["META"] = "meta";
|
|
12
|
+
})(PageType || (exports.PageType = PageType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PageType } from './page-type.enum';
|
|
3
|
+
/**
|
|
4
|
+
* Update SEO Page Request Schema
|
|
5
|
+
*/
|
|
6
|
+
export declare const UpdatePageRequestSchema: z.ZodObject<{
|
|
7
|
+
metaTitle: z.ZodOptional<z.ZodString>;
|
|
8
|
+
metaDescription: z.ZodOptional<z.ZodString>;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
content: z.ZodOptional<z.ZodString>;
|
|
12
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
13
|
+
type: z.ZodOptional<z.ZodEnum<typeof PageType>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePageRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
const page_type_enum_1 = require("./page-type.enum");
|
|
7
|
+
/**
|
|
8
|
+
* Update SEO Page Request Schema
|
|
9
|
+
*/
|
|
10
|
+
exports.UpdatePageRequestSchema = zod_1.z.object({
|
|
11
|
+
metaTitle: zod_1.z.string().min(1).max(100).optional(),
|
|
12
|
+
metaDescription: zod_1.z.string().min(1).max(200).optional(),
|
|
13
|
+
title: zod_1.z.string().min(1).max(300).optional(),
|
|
14
|
+
description: zod_1.z.string().min(1).optional(),
|
|
15
|
+
content: zod_1.z.string().min(1).optional(),
|
|
16
|
+
alias: zod_1.z.string().min(1).max(200).regex(shared_1.SLUG_REGEX).optional(),
|
|
17
|
+
type: zod_1.z.nativeEnum(page_type_enum_1.PageType).optional(),
|
|
18
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum SeoPageErrorCode {
|
|
3
|
+
PAGE_NOT_FOUND = "PAGE_NOT_FOUND",
|
|
4
|
+
PAGE_ALIAS_ALREADY_EXISTS = "PAGE_ALIAS_ALREADY_EXISTS",
|
|
5
|
+
INVALID_PAGE_TYPE = "INVALID_PAGE_TYPE",
|
|
6
|
+
PAGE_CREATION_FAILED = "PAGE_CREATION_FAILED",
|
|
7
|
+
PAGE_UPDATE_FAILED = "PAGE_UPDATE_FAILED",
|
|
8
|
+
PAGE_DELETE_FAILED = "PAGE_DELETE_FAILED",
|
|
9
|
+
INVALID_ALIAS_FORMAT = "INVALID_ALIAS_FORMAT"
|
|
10
|
+
}
|
|
11
|
+
export declare const SEO_PAGE_ERRORS: Record<SeoPageErrorCode, ErrorMetadata>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEO_PAGE_ERRORS = exports.SeoPageErrorCode = void 0;
|
|
4
|
+
var SeoPageErrorCode;
|
|
5
|
+
(function (SeoPageErrorCode) {
|
|
6
|
+
SeoPageErrorCode["PAGE_NOT_FOUND"] = "PAGE_NOT_FOUND";
|
|
7
|
+
SeoPageErrorCode["PAGE_ALIAS_ALREADY_EXISTS"] = "PAGE_ALIAS_ALREADY_EXISTS";
|
|
8
|
+
SeoPageErrorCode["INVALID_PAGE_TYPE"] = "INVALID_PAGE_TYPE";
|
|
9
|
+
SeoPageErrorCode["PAGE_CREATION_FAILED"] = "PAGE_CREATION_FAILED";
|
|
10
|
+
SeoPageErrorCode["PAGE_UPDATE_FAILED"] = "PAGE_UPDATE_FAILED";
|
|
11
|
+
SeoPageErrorCode["PAGE_DELETE_FAILED"] = "PAGE_DELETE_FAILED";
|
|
12
|
+
SeoPageErrorCode["INVALID_ALIAS_FORMAT"] = "INVALID_ALIAS_FORMAT";
|
|
13
|
+
})(SeoPageErrorCode || (exports.SeoPageErrorCode = SeoPageErrorCode = {}));
|
|
14
|
+
exports.SEO_PAGE_ERRORS = {
|
|
15
|
+
[SeoPageErrorCode.PAGE_NOT_FOUND]: {
|
|
16
|
+
code: SeoPageErrorCode.PAGE_NOT_FOUND,
|
|
17
|
+
statusCode: 404,
|
|
18
|
+
},
|
|
19
|
+
[SeoPageErrorCode.PAGE_ALIAS_ALREADY_EXISTS]: {
|
|
20
|
+
code: SeoPageErrorCode.PAGE_ALIAS_ALREADY_EXISTS,
|
|
21
|
+
statusCode: 409,
|
|
22
|
+
},
|
|
23
|
+
[SeoPageErrorCode.INVALID_PAGE_TYPE]: {
|
|
24
|
+
code: SeoPageErrorCode.INVALID_PAGE_TYPE,
|
|
25
|
+
statusCode: 400,
|
|
26
|
+
},
|
|
27
|
+
[SeoPageErrorCode.PAGE_CREATION_FAILED]: {
|
|
28
|
+
code: SeoPageErrorCode.PAGE_CREATION_FAILED,
|
|
29
|
+
statusCode: 500,
|
|
30
|
+
},
|
|
31
|
+
[SeoPageErrorCode.PAGE_UPDATE_FAILED]: {
|
|
32
|
+
code: SeoPageErrorCode.PAGE_UPDATE_FAILED,
|
|
33
|
+
statusCode: 500,
|
|
34
|
+
},
|
|
35
|
+
[SeoPageErrorCode.PAGE_DELETE_FAILED]: {
|
|
36
|
+
code: SeoPageErrorCode.PAGE_DELETE_FAILED,
|
|
37
|
+
statusCode: 500,
|
|
38
|
+
},
|
|
39
|
+
[SeoPageErrorCode.INVALID_ALIAS_FORMAT]: {
|
|
40
|
+
code: SeoPageErrorCode.INVALID_ALIAS_FORMAT,
|
|
41
|
+
statusCode: 400,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
+
export * from './commands';
|
|
1
2
|
export * from './schemas';
|
|
2
|
-
export * from './unregistered-users.types';
|
|
3
|
-
export * from './unregistered-users.paths';
|
|
4
3
|
export * from './unregistered-users.errors';
|
|
5
|
-
export * from './commands';
|
|
6
|
-
export { UNREG_USERS_CONTROLLER } from '../../controllers';
|
|
7
|
-
export { UNREG_USERS_ROUTES } from '../../routes';
|
|
@@ -14,14 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
__exportStar(require("./commands"), exports);
|
|
18
18
|
__exportStar(require("./schemas"), exports);
|
|
19
|
-
__exportStar(require("./unregistered-users.types"), exports);
|
|
20
|
-
__exportStar(require("./unregistered-users.paths"), exports);
|
|
21
19
|
__exportStar(require("./unregistered-users.errors"), exports);
|
|
22
|
-
__exportStar(require("./commands"), exports);
|
|
23
|
-
// Re-export from centralized locations
|
|
24
|
-
var controllers_1 = require("../../controllers");
|
|
25
|
-
Object.defineProperty(exports, "UNREG_USERS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.UNREG_USERS_CONTROLLER; } });
|
|
26
|
-
var routes_1 = require("../../routes");
|
|
27
|
-
Object.defineProperty(exports, "UNREG_USERS_ROUTES", { enumerable: true, get: function () { return routes_1.UNREG_USERS_ROUTES; } });
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* Unregistered User error codes
|
|
3
|
-
*/
|
|
1
|
+
import { ErrorMetadata } from '../../shared/error-metadata';
|
|
4
2
|
export declare enum UnregUserErrorCode {
|
|
5
|
-
/** Invalid JWT token */
|
|
6
3
|
INVALID_TOKEN = "INVALID_TOKEN",
|
|
7
|
-
/** Token expired or invalidated */
|
|
8
4
|
TOKEN_EXPIRED = "TOKEN_EXPIRED",
|
|
9
|
-
/** IP mismatch - token bound to different IP */
|
|
10
5
|
IP_MISMATCH = "IP_MISMATCH",
|
|
11
|
-
/** User marked as fraud */
|
|
12
6
|
FRAUD_DETECTED = "FRAUD_DETECTED",
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
TOKEN_VERSION_MISMATCH = "TOKEN_VERSION_MISMATCH",
|
|
8
|
+
CANNOT_RESET_FRAUD_USER = "CANNOT_RESET_FRAUD_USER",
|
|
9
|
+
USER_ALREADY_FRAUD = "USER_ALREADY_FRAUD",
|
|
10
|
+
USER_ALREADY_MIGRATED = "USER_ALREADY_MIGRATED",
|
|
11
|
+
CANNOT_MIGRATE_FRAUD_USER = "CANNOT_MIGRATE_FRAUD_USER",
|
|
12
|
+
INVALID_USER_DATA = "INVALID_USER_DATA"
|
|
15
13
|
}
|
|
14
|
+
export declare const UNREG_USER_ERRORS: Record<UnregUserErrorCode, ErrorMetadata>;
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnregUserErrorCode = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Unregistered User error codes
|
|
6
|
-
*/
|
|
3
|
+
exports.UNREG_USER_ERRORS = exports.UnregUserErrorCode = void 0;
|
|
7
4
|
var UnregUserErrorCode;
|
|
8
5
|
(function (UnregUserErrorCode) {
|
|
9
|
-
/** Invalid JWT token */
|
|
10
6
|
UnregUserErrorCode["INVALID_TOKEN"] = "INVALID_TOKEN";
|
|
11
|
-
/** Token expired or invalidated */
|
|
12
7
|
UnregUserErrorCode["TOKEN_EXPIRED"] = "TOKEN_EXPIRED";
|
|
13
|
-
/** IP mismatch - token bound to different IP */
|
|
14
8
|
UnregUserErrorCode["IP_MISMATCH"] = "IP_MISMATCH";
|
|
15
|
-
/** User marked as fraud */
|
|
16
9
|
UnregUserErrorCode["FRAUD_DETECTED"] = "FRAUD_DETECTED";
|
|
17
|
-
/** Token version mismatch */
|
|
18
10
|
UnregUserErrorCode["TOKEN_VERSION_MISMATCH"] = "TOKEN_VERSION_MISMATCH";
|
|
11
|
+
UnregUserErrorCode["CANNOT_RESET_FRAUD_USER"] = "CANNOT_RESET_FRAUD_USER";
|
|
12
|
+
UnregUserErrorCode["USER_ALREADY_FRAUD"] = "USER_ALREADY_FRAUD";
|
|
13
|
+
UnregUserErrorCode["USER_ALREADY_MIGRATED"] = "USER_ALREADY_MIGRATED";
|
|
14
|
+
UnregUserErrorCode["CANNOT_MIGRATE_FRAUD_USER"] = "CANNOT_MIGRATE_FRAUD_USER";
|
|
15
|
+
UnregUserErrorCode["INVALID_USER_DATA"] = "INVALID_USER_DATA";
|
|
19
16
|
})(UnregUserErrorCode || (exports.UnregUserErrorCode = UnregUserErrorCode = {}));
|
|
17
|
+
exports.UNREG_USER_ERRORS = {
|
|
18
|
+
[UnregUserErrorCode.INVALID_TOKEN]: { code: UnregUserErrorCode.INVALID_TOKEN, statusCode: 401 },
|
|
19
|
+
[UnregUserErrorCode.TOKEN_EXPIRED]: { code: UnregUserErrorCode.TOKEN_EXPIRED, statusCode: 401 },
|
|
20
|
+
[UnregUserErrorCode.IP_MISMATCH]: { code: UnregUserErrorCode.IP_MISMATCH, statusCode: 403 },
|
|
21
|
+
[UnregUserErrorCode.FRAUD_DETECTED]: { code: UnregUserErrorCode.FRAUD_DETECTED, statusCode: 403 },
|
|
22
|
+
[UnregUserErrorCode.TOKEN_VERSION_MISMATCH]: { code: UnregUserErrorCode.TOKEN_VERSION_MISMATCH, statusCode: 401 },
|
|
23
|
+
[UnregUserErrorCode.CANNOT_RESET_FRAUD_USER]: { code: UnregUserErrorCode.CANNOT_RESET_FRAUD_USER, statusCode: 400 },
|
|
24
|
+
[UnregUserErrorCode.USER_ALREADY_FRAUD]: { code: UnregUserErrorCode.USER_ALREADY_FRAUD, statusCode: 400 },
|
|
25
|
+
[UnregUserErrorCode.USER_ALREADY_MIGRATED]: { code: UnregUserErrorCode.USER_ALREADY_MIGRATED, statusCode: 400 },
|
|
26
|
+
[UnregUserErrorCode.CANNOT_MIGRATE_FRAUD_USER]: { code: UnregUserErrorCode.CANNOT_MIGRATE_FRAUD_USER, statusCode: 400 },
|
|
27
|
+
[UnregUserErrorCode.INVALID_USER_DATA]: { code: UnregUserErrorCode.INVALID_USER_DATA, statusCode: 400 },
|
|
28
|
+
};
|
package/build/v1/users/index.js
CHANGED
|
@@ -16,8 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.USERS_ROUTES = exports.USERS_CONTROLLER = void 0;
|
|
18
18
|
__exportStar(require("./schemas"), exports);
|
|
19
|
-
__exportStar(require("./users.
|
|
20
|
-
__exportStar(require("./users.paths"), exports);
|
|
19
|
+
__exportStar(require("./users.errors"), exports);
|
|
21
20
|
__exportStar(require("./commands"), exports);
|
|
22
21
|
__exportStar(require("./queries"), exports);
|
|
23
22
|
// Re-export from centralized locations
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum UserErrorCode {
|
|
3
|
+
USER_NOT_FOUND = "USER_NOT_FOUND",
|
|
4
|
+
INCORRECT_PASSWORD = "INCORRECT_PASSWORD",
|
|
5
|
+
USER_DELETED = "USER_DELETED",
|
|
6
|
+
EMAIL_ALREADY_EXISTS = "EMAIL_ALREADY_EXISTS",
|
|
7
|
+
INVALID_EMAIL_FORMAT = "INVALID_EMAIL_FORMAT",
|
|
8
|
+
INVALID_PASSWORD_FORMAT = "INVALID_PASSWORD_FORMAT",
|
|
9
|
+
WEAK_PASSWORD = "WEAK_PASSWORD",
|
|
10
|
+
INVALID_USER_ROLE = "INVALID_USER_ROLE",
|
|
11
|
+
PASSWORD_MISMATCH = "PASSWORD_MISMATCH",
|
|
12
|
+
SAME_PASSWORD = "SAME_PASSWORD",
|
|
13
|
+
INVALID_USER_DATA = "INVALID_USER_DATA",
|
|
14
|
+
USER_CREATION_FAILED = "USER_CREATION_FAILED",
|
|
15
|
+
USER_UPDATE_FAILED = "USER_UPDATE_FAILED",
|
|
16
|
+
PASSWORD_CHANGE_FAILED = "PASSWORD_CHANGE_FAILED"
|
|
17
|
+
}
|
|
18
|
+
export declare const USER_ERRORS: Record<UserErrorCode, ErrorMetadata>;
|