@ai-grator/api 0.1.37 → 0.1.38
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/admin/endpoints/admin.ts +18 -0
- package/admin/endpoints/commands/create-admin-model-family.command.ts +28 -0
- package/admin/endpoints/commands/create-admin-page.command.ts +56 -0
- package/admin/endpoints/commands/delete-admin-model-family.command.ts +29 -0
- package/admin/endpoints/commands/delete-admin-page.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +8 -0
- package/admin/endpoints/commands/update-admin-model-family.command.ts +38 -0
- package/admin/endpoints/commands/update-admin-organization.command.ts +28 -0
- package/admin/endpoints/commands/update-admin-page-status.command.ts +37 -0
- package/admin/endpoints/commands/update-admin-page.command.ts +55 -0
- package/admin/endpoints/queries/get-admin-model-families.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-organization.query.ts +21 -0
- package/admin/endpoints/queries/get-admin-page.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-pages.query.ts +38 -0
- package/admin/endpoints/queries/index.ts +4 -0
- package/admin/models/admin-page-list-item.schema.ts +19 -0
- package/admin/models/admin-page-response.schema.ts +33 -0
- package/admin/models/index.ts +2 -0
- package/build/admin/endpoints/admin.d.ts +12 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +15 -0
- package/build/admin/endpoints/commands/create-admin-model-family.command.d.ts +41 -0
- package/build/admin/endpoints/commands/create-admin-model-family.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-model-family.command.js +24 -0
- package/build/admin/endpoints/commands/create-admin-page.command.d.ts +753 -0
- package/build/admin/endpoints/commands/create-admin-page.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-page.command.js +44 -0
- package/build/admin/endpoints/commands/delete-admin-model-family.command.d.ts +27 -0
- package/build/admin/endpoints/commands/delete-admin-model-family.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-model-family.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-page.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-page.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-page.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +8 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +8 -0
- package/build/admin/endpoints/commands/update-admin-model-family.command.d.ts +49 -0
- package/build/admin/endpoints/commands/update-admin-model-family.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-model-family.command.js +30 -0
- package/build/admin/endpoints/commands/update-admin-organization.command.d.ts +71 -0
- package/build/admin/endpoints/commands/update-admin-organization.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-organization.command.js +24 -0
- package/build/admin/endpoints/commands/update-admin-page-status.command.d.ts +409 -0
- package/build/admin/endpoints/commands/update-admin-page-status.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-page-status.command.js +32 -0
- package/build/admin/endpoints/commands/update-admin-page.command.d.ts +753 -0
- package/build/admin/endpoints/commands/update-admin-page.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-page.command.js +50 -0
- package/build/admin/endpoints/queries/get-admin-model-families.query.d.ts +30 -0
- package/build/admin/endpoints/queries/get-admin-model-families.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-model-families.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-organization.query.d.ts +41 -0
- package/build/admin/endpoints/queries/get-admin-organization.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-organization.query.js +19 -0
- package/build/admin/endpoints/queries/get-admin-page.query.d.ts +400 -0
- package/build/admin/endpoints/queries/get-admin-page.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-page.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-pages.query.d.ts +74 -0
- package/build/admin/endpoints/queries/get-admin-pages.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-pages.query.js +35 -0
- package/build/admin/endpoints/queries/index.d.ts +4 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +4 -0
- package/build/admin/models/admin-page-list-item.schema.d.ts +18 -0
- package/build/admin/models/admin-page-list-item.schema.d.ts.map +1 -0
- package/build/admin/models/admin-page-list-item.schema.js +19 -0
- package/build/admin/models/admin-page-response.schema.d.ts +192 -0
- package/build/admin/models/admin-page-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-page-response.schema.js +24 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/errors/errors.d.ts +94 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +94 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts +60 -6
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts.map +1 -1
- package/build/model-page/enums/index.d.ts +6 -0
- package/build/model-page/enums/index.d.ts.map +1 -0
- package/build/model-page/enums/index.js +21 -0
- package/build/model-page/enums/page-locale.enum.d.ts +4 -0
- package/build/model-page/enums/page-locale.enum.d.ts.map +1 -0
- package/build/model-page/enums/page-locale.enum.js +7 -0
- package/build/model-page/enums/page-status.enum.d.ts +7 -0
- package/build/model-page/enums/page-status.enum.d.ts.map +1 -0
- package/build/model-page/enums/page-status.enum.js +10 -0
- package/build/model-page/enums/page-type.enum.d.ts +8 -0
- package/build/model-page/enums/page-type.enum.d.ts.map +1 -0
- package/build/model-page/enums/page-type.enum.js +11 -0
- package/build/model-page/enums/robots.enum.d.ts +9 -0
- package/build/model-page/enums/robots.enum.d.ts.map +1 -0
- package/build/model-page/enums/robots.enum.js +13 -0
- package/build/model-page/enums/twitter-card.enum.d.ts +5 -0
- package/build/model-page/enums/twitter-card.enum.d.ts.map +1 -0
- package/build/model-page/enums/twitter-card.enum.js +8 -0
- package/build/model-page/index.d.ts +1 -0
- package/build/model-page/index.d.ts.map +1 -1
- package/build/model-page/index.js +1 -0
- package/build/model-page/models/index.d.ts +3 -0
- package/build/model-page/models/index.d.ts.map +1 -1
- package/build/model-page/models/index.js +3 -0
- package/build/model-page/models/model-family.schema.d.ts +16 -0
- package/build/model-page/models/model-family.schema.d.ts.map +1 -0
- package/build/model-page/models/model-family.schema.js +16 -0
- package/build/model-page/models/public-model-detail.schema.d.ts +30 -3
- package/build/model-page/models/public-model-detail.schema.d.ts.map +1 -1
- package/build/model-page/models/public-model-detail.schema.js +7 -3
- package/build/model-page/models/schema-toggles.schema.d.ts +22 -0
- package/build/model-page/models/schema-toggles.schema.d.ts.map +1 -0
- package/build/model-page/models/schema-toggles.schema.js +22 -0
- package/build/model-page/models/seo-meta.schema.d.ts +84 -0
- package/build/model-page/models/seo-meta.schema.d.ts.map +1 -0
- package/build/model-page/models/seo-meta.schema.js +53 -0
- package/build/organization/endpoints/index.d.ts +3 -0
- package/build/organization/endpoints/index.d.ts.map +1 -0
- package/build/organization/endpoints/index.js +18 -0
- package/build/organization/endpoints/organization.d.ts +5 -0
- package/build/organization/endpoints/organization.d.ts.map +1 -0
- package/build/organization/endpoints/organization.js +7 -0
- package/build/organization/endpoints/queries/get-organization.query.d.ts +37 -0
- package/build/organization/endpoints/queries/get-organization.query.d.ts.map +1 -0
- package/build/organization/endpoints/queries/get-organization.query.js +17 -0
- package/build/organization/endpoints/queries/index.d.ts +2 -0
- package/build/organization/endpoints/queries/index.d.ts.map +1 -0
- package/build/organization/endpoints/queries/index.js +17 -0
- package/build/organization/index.d.ts +3 -0
- package/build/organization/index.d.ts.map +1 -0
- package/build/organization/index.js +18 -0
- package/build/organization/models/index.d.ts +2 -0
- package/build/organization/models/index.d.ts.map +1 -0
- package/build/organization/models/index.js +17 -0
- package/build/organization/models/organization.schema.d.ts +30 -0
- package/build/organization/models/organization.schema.d.ts.map +1 -0
- package/build/organization/models/organization.schema.js +20 -0
- package/build/scripts/generate-openapi.js +82 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +94 -0
- package/index.ts +1 -0
- package/model-page/enums/index.ts +5 -0
- package/model-page/enums/page-locale.enum.ts +3 -0
- package/model-page/enums/page-status.enum.ts +6 -0
- package/model-page/enums/page-type.enum.ts +7 -0
- package/model-page/enums/robots.enum.ts +9 -0
- package/model-page/enums/twitter-card.enum.ts +4 -0
- package/model-page/index.ts +1 -0
- package/model-page/models/index.ts +3 -0
- package/model-page/models/model-family.schema.ts +18 -0
- package/model-page/models/public-model-detail.schema.ts +7 -3
- package/model-page/models/schema-toggles.schema.ts +25 -0
- package/model-page/models/seo-meta.schema.ts +64 -0
- package/organization/endpoints/index.ts +2 -0
- package/organization/endpoints/organization.ts +5 -0
- package/organization/endpoints/queries/get-organization.query.ts +16 -0
- package/organization/endpoints/queries/index.ts +1 -0
- package/organization/index.ts +2 -0
- package/organization/models/index.ts +1 -0
- package/organization/models/organization.schema.ts +22 -0
- package/package.json +1 -1
- package/scripts/generate-openapi.ts +136 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { PAGE_LOCALE, PAGE_STATUS, PAGE_TYPE } from '../../../model-page';
|
|
4
|
+
export declare const GetAdminPagesQueryQuery: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
type: z.ZodOptional<z.ZodEnum<typeof PAGE_TYPE>>;
|
|
9
|
+
status: z.ZodOptional<z.ZodEnum<typeof PAGE_STATUS>>;
|
|
10
|
+
locale: z.ZodOptional<z.ZodEnum<typeof PAGE_LOCALE>>;
|
|
11
|
+
familyId: z.ZodOptional<z.ZodUUID>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const GetAdminPagesQueryResponse: z.ZodObject<{
|
|
14
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
15
|
+
uuid: z.ZodUUID;
|
|
16
|
+
type: z.ZodEnum<typeof PAGE_TYPE>;
|
|
17
|
+
slug: z.ZodString;
|
|
18
|
+
locale: z.ZodEnum<typeof PAGE_LOCALE>;
|
|
19
|
+
status: z.ZodEnum<typeof PAGE_STATUS>;
|
|
20
|
+
title: z.ZodNullable<z.ZodString>;
|
|
21
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
22
|
+
familyId: z.ZodNullable<z.ZodUUID>;
|
|
23
|
+
familyName: z.ZodNullable<z.ZodString>;
|
|
24
|
+
publishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
25
|
+
updatedAt: z.ZodISODateTime;
|
|
26
|
+
authorId: z.ZodNullable<z.ZodUUID>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
total: z.ZodNumber;
|
|
29
|
+
page: z.ZodNumber;
|
|
30
|
+
limit: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const GetAdminPagesQuery: {
|
|
33
|
+
method: HTTP_METHODS.GET;
|
|
34
|
+
path: "pages";
|
|
35
|
+
summary: string;
|
|
36
|
+
request: {
|
|
37
|
+
query: z.ZodObject<{
|
|
38
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
39
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
40
|
+
search: z.ZodOptional<z.ZodString>;
|
|
41
|
+
type: z.ZodOptional<z.ZodEnum<typeof PAGE_TYPE>>;
|
|
42
|
+
status: z.ZodOptional<z.ZodEnum<typeof PAGE_STATUS>>;
|
|
43
|
+
locale: z.ZodOptional<z.ZodEnum<typeof PAGE_LOCALE>>;
|
|
44
|
+
familyId: z.ZodOptional<z.ZodUUID>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
};
|
|
47
|
+
responses: {
|
|
48
|
+
200: z.ZodObject<{
|
|
49
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
type: z.ZodEnum<typeof PAGE_TYPE>;
|
|
52
|
+
slug: z.ZodString;
|
|
53
|
+
locale: z.ZodEnum<typeof PAGE_LOCALE>;
|
|
54
|
+
status: z.ZodEnum<typeof PAGE_STATUS>;
|
|
55
|
+
title: z.ZodNullable<z.ZodString>;
|
|
56
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
57
|
+
familyId: z.ZodNullable<z.ZodUUID>;
|
|
58
|
+
familyName: z.ZodNullable<z.ZodString>;
|
|
59
|
+
publishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
60
|
+
updatedAt: z.ZodISODateTime;
|
|
61
|
+
authorId: z.ZodNullable<z.ZodUUID>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
total: z.ZodNumber;
|
|
64
|
+
page: z.ZodNumber;
|
|
65
|
+
limit: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
68
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
69
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type GetAdminPagesQueryQueryType = z.infer<typeof GetAdminPagesQueryQuery>;
|
|
73
|
+
export type GetAdminPagesQueryResponseType = z.infer<typeof GetAdminPagesQueryResponse>;
|
|
74
|
+
//# sourceMappingURL=get-admin-pages.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-pages.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-pages.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACtH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAI1E,eAAO,MAAM,uBAAuB;;;;;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminPagesQuery = exports.GetAdminPagesQueryResponse = exports.GetAdminPagesQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const model_page_1 = require("../../../model-page");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.GetAdminPagesQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
|
|
10
|
+
search: zod_1.z.string().trim().max(255).optional(),
|
|
11
|
+
type: zod_1.z.enum(model_page_1.PAGE_TYPE).optional(),
|
|
12
|
+
status: zod_1.z.enum(model_page_1.PAGE_STATUS).optional(),
|
|
13
|
+
locale: zod_1.z.enum(model_page_1.PAGE_LOCALE).optional(),
|
|
14
|
+
familyId: zod_1.z.uuid().optional(),
|
|
15
|
+
});
|
|
16
|
+
exports.GetAdminPagesQueryResponse = zod_1.z.object({
|
|
17
|
+
pages: zod_1.z.array(models_1.AdminPageListItemSchema),
|
|
18
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
19
|
+
page: zod_1.z.number().int().positive(),
|
|
20
|
+
limit: zod_1.z.number().int().positive(),
|
|
21
|
+
});
|
|
22
|
+
exports.GetAdminPagesQuery = (0, _common_1.defineContract)({
|
|
23
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
24
|
+
path: admin_1.ADMIN_ROUTES.GET_PAGES,
|
|
25
|
+
summary: 'Get content pages list with pagination and filters',
|
|
26
|
+
request: {
|
|
27
|
+
query: exports.GetAdminPagesQueryQuery,
|
|
28
|
+
},
|
|
29
|
+
responses: {
|
|
30
|
+
200: exports.GetAdminPagesQueryResponse,
|
|
31
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
32
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
33
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
@@ -11,4 +11,8 @@ export * from './get-admin-referral-config.query';
|
|
|
11
11
|
export * from './get-admin-users.query';
|
|
12
12
|
export * from './get-admin-support-chats.query';
|
|
13
13
|
export * from './get-admin-support-chat-messages.query';
|
|
14
|
+
export * from './get-admin-pages.query';
|
|
15
|
+
export * from './get-admin-page.query';
|
|
16
|
+
export * from './get-admin-model-families.query';
|
|
17
|
+
export * from './get-admin-organization.query';
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
@@ -27,3 +27,7 @@ __exportStar(require("./get-admin-referral-config.query"), exports);
|
|
|
27
27
|
__exportStar(require("./get-admin-users.query"), exports);
|
|
28
28
|
__exportStar(require("./get-admin-support-chats.query"), exports);
|
|
29
29
|
__exportStar(require("./get-admin-support-chat-messages.query"), exports);
|
|
30
|
+
__exportStar(require("./get-admin-pages.query"), exports);
|
|
31
|
+
__exportStar(require("./get-admin-page.query"), exports);
|
|
32
|
+
__exportStar(require("./get-admin-model-families.query"), exports);
|
|
33
|
+
__exportStar(require("./get-admin-organization.query"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PAGE_LOCALE, PAGE_STATUS, PAGE_TYPE } from '../../model-page';
|
|
3
|
+
export declare const AdminPageListItemSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
type: z.ZodEnum<typeof PAGE_TYPE>;
|
|
6
|
+
slug: z.ZodString;
|
|
7
|
+
locale: z.ZodEnum<typeof PAGE_LOCALE>;
|
|
8
|
+
status: z.ZodEnum<typeof PAGE_STATUS>;
|
|
9
|
+
title: z.ZodNullable<z.ZodString>;
|
|
10
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
11
|
+
familyId: z.ZodNullable<z.ZodUUID>;
|
|
12
|
+
familyName: z.ZodNullable<z.ZodString>;
|
|
13
|
+
publishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
14
|
+
updatedAt: z.ZodISODateTime;
|
|
15
|
+
authorId: z.ZodNullable<z.ZodUUID>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type AdminPageListItemSchemaType = z.infer<typeof AdminPageListItemSchema>;
|
|
18
|
+
//# sourceMappingURL=admin-page-list-item.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-page-list-item.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-page-list-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAalC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminPageListItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const model_page_1 = require("../../model-page");
|
|
6
|
+
exports.AdminPageListItemSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
type: zod_1.z.enum(model_page_1.PAGE_TYPE),
|
|
9
|
+
slug: zod_1.z.string().min(1),
|
|
10
|
+
locale: zod_1.z.enum(model_page_1.PAGE_LOCALE),
|
|
11
|
+
status: zod_1.z.enum(model_page_1.PAGE_STATUS),
|
|
12
|
+
title: zod_1.z.string().min(1).nullable(),
|
|
13
|
+
versionName: zod_1.z.string().min(1).nullable(),
|
|
14
|
+
familyId: zod_1.z.uuid().nullable(),
|
|
15
|
+
familyName: zod_1.z.string().min(1).nullable(),
|
|
16
|
+
publishedAt: zod_1.z.iso.datetime().nullable(),
|
|
17
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
18
|
+
authorId: zod_1.z.uuid().nullable(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PAGE_LOCALE, PAGE_STATUS, PAGE_TYPE } from '../../model-page';
|
|
3
|
+
export declare const AdminPageResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
type: z.ZodEnum<typeof PAGE_TYPE>;
|
|
6
|
+
slug: z.ZodString;
|
|
7
|
+
locale: z.ZodEnum<typeof PAGE_LOCALE>;
|
|
8
|
+
status: z.ZodEnum<typeof PAGE_STATUS>;
|
|
9
|
+
seo: z.ZodObject<{
|
|
10
|
+
focusKeyword: z.ZodNullable<z.ZodString>;
|
|
11
|
+
canonicalUrl: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodURL]>;
|
|
12
|
+
robotsIndex: z.ZodEnum<typeof import("../../model-page").ROBOTS_INDEX>;
|
|
13
|
+
robotsFollow: z.ZodEnum<typeof import("../../model-page").ROBOTS_FOLLOW>;
|
|
14
|
+
ogTitle: z.ZodNullable<z.ZodString>;
|
|
15
|
+
ogDescription: z.ZodNullable<z.ZodString>;
|
|
16
|
+
twitterCard: z.ZodEnum<typeof import("../../model-page").TWITTER_CARD>;
|
|
17
|
+
hreflangAlternates: z.ZodArray<z.ZodObject<{
|
|
18
|
+
locale: z.ZodString;
|
|
19
|
+
url: z.ZodURL;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
title: z.ZodNullable<z.ZodString>;
|
|
22
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
23
|
+
h1: z.ZodNullable<z.ZodString>;
|
|
24
|
+
ogImage: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
schemaToggles: z.ZodObject<{
|
|
27
|
+
enableProductSchema: z.ZodBoolean;
|
|
28
|
+
enableFAQSchema: z.ZodBoolean;
|
|
29
|
+
enableBreadcrumbSchema: z.ZodBoolean;
|
|
30
|
+
enableOrganizationSchema: z.ZodBoolean;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
card: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
subtitle: z.ZodString;
|
|
34
|
+
ctaLabel: z.ZodString;
|
|
35
|
+
badges: z.ZodArray<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
41
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
42
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
43
|
+
type: z.ZodLiteral<"richText">;
|
|
44
|
+
body: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
48
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
49
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
50
|
+
type: z.ZodLiteral<"featureList">;
|
|
51
|
+
items: z.ZodArray<z.ZodObject<{
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
body: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
58
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
59
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
60
|
+
type: z.ZodLiteral<"specs">;
|
|
61
|
+
items: z.ZodArray<z.ZodObject<{
|
|
62
|
+
label: z.ZodString;
|
|
63
|
+
value: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
68
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
69
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
70
|
+
type: z.ZodLiteral<"examples">;
|
|
71
|
+
items: z.ZodArray<z.ZodObject<{
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
alt: z.ZodString;
|
|
74
|
+
prompt: z.ZodString;
|
|
75
|
+
settings: z.ZodString;
|
|
76
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
77
|
+
images: z.ZodArray<z.ZodObject<{
|
|
78
|
+
url: z.ZodURL;
|
|
79
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
80
|
+
readonly image: "image";
|
|
81
|
+
readonly video: "video";
|
|
82
|
+
}>>;
|
|
83
|
+
alt: z.ZodString;
|
|
84
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
90
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
91
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
92
|
+
type: z.ZodLiteral<"comparison">;
|
|
93
|
+
columns: z.ZodArray<z.ZodString>;
|
|
94
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
95
|
+
label: z.ZodString;
|
|
96
|
+
values: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
101
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
102
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
103
|
+
type: z.ZodLiteral<"prosCons">;
|
|
104
|
+
items: z.ZodArray<z.ZodObject<{
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
pros: z.ZodArray<z.ZodString>;
|
|
107
|
+
cons: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
112
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
113
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
114
|
+
type: z.ZodLiteral<"steps">;
|
|
115
|
+
items: z.ZodArray<z.ZodObject<{
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
body: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
122
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
123
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
124
|
+
type: z.ZodLiteral<"faq">;
|
|
125
|
+
items: z.ZodArray<z.ZodObject<{
|
|
126
|
+
question: z.ZodString;
|
|
127
|
+
answer: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
132
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
133
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
134
|
+
type: z.ZodLiteral<"relatedLinks">;
|
|
135
|
+
items: z.ZodArray<z.ZodObject<{
|
|
136
|
+
kind: z.ZodEnum<{
|
|
137
|
+
readonly model: "model";
|
|
138
|
+
readonly task: "task";
|
|
139
|
+
}>;
|
|
140
|
+
slug: z.ZodString;
|
|
141
|
+
title: z.ZodString;
|
|
142
|
+
note: z.ZodNullable<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
147
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
148
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
149
|
+
type: z.ZodLiteral<"demo">;
|
|
150
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
151
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
label: z.ZodString;
|
|
154
|
+
prompt: z.ZodString;
|
|
155
|
+
settings: z.ZodNullable<z.ZodString>;
|
|
156
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
157
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
158
|
+
url: z.ZodURL;
|
|
159
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
160
|
+
readonly image: "image";
|
|
161
|
+
readonly video: "video";
|
|
162
|
+
}>>;
|
|
163
|
+
alt: z.ZodString;
|
|
164
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
170
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
171
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
172
|
+
type: z.ZodLiteral<"pricingWidget">;
|
|
173
|
+
ctaLabel: z.ZodString;
|
|
174
|
+
ctaSlug: z.ZodString;
|
|
175
|
+
}, z.core.$strip>], "type">>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
family: z.ZodNullable<z.ZodObject<{
|
|
178
|
+
uuid: z.ZodUUID;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
developer: z.ZodString;
|
|
181
|
+
category: z.ZodEnum<typeof import("../..").MODEL_CATEGORY>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
184
|
+
aiModelId: z.ZodNullable<z.ZodUUID>;
|
|
185
|
+
generationModelId: z.ZodNullable<z.ZodUUID>;
|
|
186
|
+
publishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
187
|
+
createdAt: z.ZodISODateTime;
|
|
188
|
+
updatedAt: z.ZodISODateTime;
|
|
189
|
+
authorId: z.ZodNullable<z.ZodUUID>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type AdminPageResponseSchemaType = z.infer<typeof AdminPageResponseSchema>;
|
|
192
|
+
//# sourceMappingURL=admin-page-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-page-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-page-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKH,WAAW,EACX,WAAW,EACX,SAAS,EAEZ,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBlC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminPageResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const model_page_1 = require("../../model-page");
|
|
6
|
+
exports.AdminPageResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
type: zod_1.z.enum(model_page_1.PAGE_TYPE),
|
|
9
|
+
slug: zod_1.z.string().min(1),
|
|
10
|
+
locale: zod_1.z.enum(model_page_1.PAGE_LOCALE),
|
|
11
|
+
status: zod_1.z.enum(model_page_1.PAGE_STATUS),
|
|
12
|
+
seo: model_page_1.DraftSeoMetaSchema,
|
|
13
|
+
schemaToggles: model_page_1.SchemaTogglesSchema,
|
|
14
|
+
card: model_page_1.PageCardSchema.nullable(),
|
|
15
|
+
content: model_page_1.PageContentSchema.nullable(),
|
|
16
|
+
family: model_page_1.ModelFamilySchema.nullable(),
|
|
17
|
+
versionName: zod_1.z.string().min(1).nullable(),
|
|
18
|
+
aiModelId: zod_1.z.uuid().nullable(),
|
|
19
|
+
generationModelId: zod_1.z.uuid().nullable(),
|
|
20
|
+
publishedAt: zod_1.z.iso.datetime().nullable(),
|
|
21
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
22
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
23
|
+
authorId: zod_1.z.uuid().nullable(),
|
|
24
|
+
});
|
|
@@ -11,4 +11,6 @@ export * from './admin-user-list-item.schema';
|
|
|
11
11
|
export * from './admin-user-details-response.schema';
|
|
12
12
|
export * from './admin-kie-balance-response.schema';
|
|
13
13
|
export * from './admin-support-chat-list-item.schema';
|
|
14
|
+
export * from './admin-page-list-item.schema';
|
|
15
|
+
export * from './admin-page-response.schema';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
|
|
@@ -27,3 +27,5 @@ __exportStar(require("./admin-user-list-item.schema"), exports);
|
|
|
27
27
|
__exportStar(require("./admin-user-details-response.schema"), exports);
|
|
28
28
|
__exportStar(require("./admin-kie-balance-response.schema"), exports);
|
|
29
29
|
__exportStar(require("./admin-support-chat-list-item.schema"), exports);
|
|
30
|
+
__exportStar(require("./admin-page-list-item.schema"), exports);
|
|
31
|
+
__exportStar(require("./admin-page-response.schema"), exports);
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -872,6 +872,100 @@ export declare const ERRORS: {
|
|
|
872
872
|
readonly code: "MODEL_PAGE.PRICE_UNAVAILABLE";
|
|
873
873
|
readonly message: "Не удалось рассчитать цены для страницы модели";
|
|
874
874
|
};
|
|
875
|
+
readonly NOT_FOUND: {
|
|
876
|
+
readonly httpCode: 404;
|
|
877
|
+
readonly code: "MODEL_PAGE.NOT_FOUND";
|
|
878
|
+
readonly message: "Страница не найдена";
|
|
879
|
+
};
|
|
880
|
+
readonly FIND_ERROR: {
|
|
881
|
+
readonly httpCode: 500;
|
|
882
|
+
readonly code: "MODEL_PAGE.FIND_ERROR";
|
|
883
|
+
readonly message: "Не удалось получить страницы";
|
|
884
|
+
};
|
|
885
|
+
readonly SLUG_ALREADY_EXISTS: {
|
|
886
|
+
readonly httpCode: 409;
|
|
887
|
+
readonly code: "MODEL_PAGE.SLUG_ALREADY_EXISTS";
|
|
888
|
+
readonly message: "Страница с таким slug уже существует";
|
|
889
|
+
};
|
|
890
|
+
readonly MODEL_ALREADY_LINKED: {
|
|
891
|
+
readonly httpCode: 409;
|
|
892
|
+
readonly code: "MODEL_PAGE.MODEL_ALREADY_LINKED";
|
|
893
|
+
readonly message: "К этой модели уже привязана другая страница";
|
|
894
|
+
};
|
|
895
|
+
readonly CREATE_ERROR: {
|
|
896
|
+
readonly httpCode: 500;
|
|
897
|
+
readonly code: "MODEL_PAGE.CREATE_ERROR";
|
|
898
|
+
readonly message: "Не удалось создать страницу";
|
|
899
|
+
};
|
|
900
|
+
readonly UPDATE_ERROR: {
|
|
901
|
+
readonly httpCode: 500;
|
|
902
|
+
readonly code: "MODEL_PAGE.UPDATE_ERROR";
|
|
903
|
+
readonly message: "Не удалось обновить страницу";
|
|
904
|
+
};
|
|
905
|
+
readonly DELETE_ERROR: {
|
|
906
|
+
readonly httpCode: 500;
|
|
907
|
+
readonly code: "MODEL_PAGE.DELETE_ERROR";
|
|
908
|
+
readonly message: "Не удалось удалить страницу";
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
readonly MODEL_FAMILY: {
|
|
912
|
+
readonly NOT_FOUND: {
|
|
913
|
+
readonly httpCode: 404;
|
|
914
|
+
readonly code: "MODEL_FAMILY.NOT_FOUND";
|
|
915
|
+
readonly message: "Семейство моделей не найдено";
|
|
916
|
+
};
|
|
917
|
+
readonly FIND_ERROR: {
|
|
918
|
+
readonly httpCode: 500;
|
|
919
|
+
readonly code: "MODEL_FAMILY.FIND_ERROR";
|
|
920
|
+
readonly message: "Не удалось получить семейства моделей";
|
|
921
|
+
};
|
|
922
|
+
readonly NAME_ALREADY_EXISTS: {
|
|
923
|
+
readonly httpCode: 409;
|
|
924
|
+
readonly code: "MODEL_FAMILY.NAME_ALREADY_EXISTS";
|
|
925
|
+
readonly message: "Семейство моделей с таким названием уже существует";
|
|
926
|
+
};
|
|
927
|
+
readonly HAS_LINKED_PAGES: {
|
|
928
|
+
readonly httpCode: 409;
|
|
929
|
+
readonly code: "MODEL_FAMILY.HAS_LINKED_PAGES";
|
|
930
|
+
readonly message: "Нельзя удалить семейство, к которому привязаны страницы";
|
|
931
|
+
};
|
|
932
|
+
readonly CREATE_ERROR: {
|
|
933
|
+
readonly httpCode: 500;
|
|
934
|
+
readonly code: "MODEL_FAMILY.CREATE_ERROR";
|
|
935
|
+
readonly message: "Не удалось создать семейство моделей";
|
|
936
|
+
};
|
|
937
|
+
readonly UPDATE_ERROR: {
|
|
938
|
+
readonly httpCode: 500;
|
|
939
|
+
readonly code: "MODEL_FAMILY.UPDATE_ERROR";
|
|
940
|
+
readonly message: "Не удалось обновить семейство моделей";
|
|
941
|
+
};
|
|
942
|
+
readonly DELETE_ERROR: {
|
|
943
|
+
readonly httpCode: 500;
|
|
944
|
+
readonly code: "MODEL_FAMILY.DELETE_ERROR";
|
|
945
|
+
readonly message: "Не удалось удалить семейство моделей";
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly ORGANIZATION: {
|
|
949
|
+
readonly NOT_FOUND: {
|
|
950
|
+
readonly httpCode: 404;
|
|
951
|
+
readonly code: "ORGANIZATION.NOT_FOUND";
|
|
952
|
+
readonly message: "Реквизиты организации не заполнены";
|
|
953
|
+
};
|
|
954
|
+
readonly INCOMPLETE_DETAILS: {
|
|
955
|
+
readonly httpCode: 400;
|
|
956
|
+
readonly code: "ORGANIZATION.INCOMPLETE_DETAILS";
|
|
957
|
+
readonly message: "Реквизиты организации ещё не заведены: заполните все поля целиком";
|
|
958
|
+
};
|
|
959
|
+
readonly FIND_ERROR: {
|
|
960
|
+
readonly httpCode: 500;
|
|
961
|
+
readonly code: "ORGANIZATION.FIND_ERROR";
|
|
962
|
+
readonly message: "Не удалось получить реквизиты организации";
|
|
963
|
+
};
|
|
964
|
+
readonly UPDATE_ERROR: {
|
|
965
|
+
readonly httpCode: 500;
|
|
966
|
+
readonly code: "ORGANIZATION.UPDATE_ERROR";
|
|
967
|
+
readonly message: "Не удалось обновить реквизиты организации";
|
|
968
|
+
};
|
|
875
969
|
};
|
|
876
970
|
readonly USER_CONTEXT: {
|
|
877
971
|
readonly FIND_ERROR: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAs9BT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -875,6 +875,100 @@ exports.ERRORS = {
|
|
|
875
875
|
code: 'MODEL_PAGE.PRICE_UNAVAILABLE',
|
|
876
876
|
message: 'Не удалось рассчитать цены для страницы модели',
|
|
877
877
|
},
|
|
878
|
+
NOT_FOUND: {
|
|
879
|
+
httpCode: 404,
|
|
880
|
+
code: 'MODEL_PAGE.NOT_FOUND',
|
|
881
|
+
message: 'Страница не найдена',
|
|
882
|
+
},
|
|
883
|
+
FIND_ERROR: {
|
|
884
|
+
httpCode: 500,
|
|
885
|
+
code: 'MODEL_PAGE.FIND_ERROR',
|
|
886
|
+
message: 'Не удалось получить страницы',
|
|
887
|
+
},
|
|
888
|
+
SLUG_ALREADY_EXISTS: {
|
|
889
|
+
httpCode: 409,
|
|
890
|
+
code: 'MODEL_PAGE.SLUG_ALREADY_EXISTS',
|
|
891
|
+
message: 'Страница с таким slug уже существует',
|
|
892
|
+
},
|
|
893
|
+
MODEL_ALREADY_LINKED: {
|
|
894
|
+
httpCode: 409,
|
|
895
|
+
code: 'MODEL_PAGE.MODEL_ALREADY_LINKED',
|
|
896
|
+
message: 'К этой модели уже привязана другая страница',
|
|
897
|
+
},
|
|
898
|
+
CREATE_ERROR: {
|
|
899
|
+
httpCode: 500,
|
|
900
|
+
code: 'MODEL_PAGE.CREATE_ERROR',
|
|
901
|
+
message: 'Не удалось создать страницу',
|
|
902
|
+
},
|
|
903
|
+
UPDATE_ERROR: {
|
|
904
|
+
httpCode: 500,
|
|
905
|
+
code: 'MODEL_PAGE.UPDATE_ERROR',
|
|
906
|
+
message: 'Не удалось обновить страницу',
|
|
907
|
+
},
|
|
908
|
+
DELETE_ERROR: {
|
|
909
|
+
httpCode: 500,
|
|
910
|
+
code: 'MODEL_PAGE.DELETE_ERROR',
|
|
911
|
+
message: 'Не удалось удалить страницу',
|
|
912
|
+
},
|
|
913
|
+
},
|
|
914
|
+
MODEL_FAMILY: {
|
|
915
|
+
NOT_FOUND: {
|
|
916
|
+
httpCode: 404,
|
|
917
|
+
code: 'MODEL_FAMILY.NOT_FOUND',
|
|
918
|
+
message: 'Семейство моделей не найдено',
|
|
919
|
+
},
|
|
920
|
+
FIND_ERROR: {
|
|
921
|
+
httpCode: 500,
|
|
922
|
+
code: 'MODEL_FAMILY.FIND_ERROR',
|
|
923
|
+
message: 'Не удалось получить семейства моделей',
|
|
924
|
+
},
|
|
925
|
+
NAME_ALREADY_EXISTS: {
|
|
926
|
+
httpCode: 409,
|
|
927
|
+
code: 'MODEL_FAMILY.NAME_ALREADY_EXISTS',
|
|
928
|
+
message: 'Семейство моделей с таким названием уже существует',
|
|
929
|
+
},
|
|
930
|
+
HAS_LINKED_PAGES: {
|
|
931
|
+
httpCode: 409,
|
|
932
|
+
code: 'MODEL_FAMILY.HAS_LINKED_PAGES',
|
|
933
|
+
message: 'Нельзя удалить семейство, к которому привязаны страницы',
|
|
934
|
+
},
|
|
935
|
+
CREATE_ERROR: {
|
|
936
|
+
httpCode: 500,
|
|
937
|
+
code: 'MODEL_FAMILY.CREATE_ERROR',
|
|
938
|
+
message: 'Не удалось создать семейство моделей',
|
|
939
|
+
},
|
|
940
|
+
UPDATE_ERROR: {
|
|
941
|
+
httpCode: 500,
|
|
942
|
+
code: 'MODEL_FAMILY.UPDATE_ERROR',
|
|
943
|
+
message: 'Не удалось обновить семейство моделей',
|
|
944
|
+
},
|
|
945
|
+
DELETE_ERROR: {
|
|
946
|
+
httpCode: 500,
|
|
947
|
+
code: 'MODEL_FAMILY.DELETE_ERROR',
|
|
948
|
+
message: 'Не удалось удалить семейство моделей',
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
ORGANIZATION: {
|
|
952
|
+
NOT_FOUND: {
|
|
953
|
+
httpCode: 404,
|
|
954
|
+
code: 'ORGANIZATION.NOT_FOUND',
|
|
955
|
+
message: 'Реквизиты организации не заполнены',
|
|
956
|
+
},
|
|
957
|
+
INCOMPLETE_DETAILS: {
|
|
958
|
+
httpCode: 400,
|
|
959
|
+
code: 'ORGANIZATION.INCOMPLETE_DETAILS',
|
|
960
|
+
message: 'Реквизиты организации ещё не заведены: заполните все поля целиком',
|
|
961
|
+
},
|
|
962
|
+
FIND_ERROR: {
|
|
963
|
+
httpCode: 500,
|
|
964
|
+
code: 'ORGANIZATION.FIND_ERROR',
|
|
965
|
+
message: 'Не удалось получить реквизиты организации',
|
|
966
|
+
},
|
|
967
|
+
UPDATE_ERROR: {
|
|
968
|
+
httpCode: 500,
|
|
969
|
+
code: 'ORGANIZATION.UPDATE_ERROR',
|
|
970
|
+
message: 'Не удалось обновить реквизиты организации',
|
|
971
|
+
},
|
|
878
972
|
},
|
|
879
973
|
USER_CONTEXT: {
|
|
880
974
|
FIND_ERROR: {
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/build/index.js
CHANGED