@ai-grator/api 0.3.82 → 0.3.84
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 +1 -0
- package/admin/endpoints/commands/create-admin-model-family.command.ts +2 -2
- package/admin/endpoints/commands/update-admin-model-family.command.ts +2 -2
- package/admin/endpoints/queries/get-admin-model-families.query.ts +2 -2
- package/admin/endpoints/queries/get-admin-model-vendors.query.ts +22 -0
- package/admin/endpoints/queries/index.ts +1 -0
- package/ai-model/models/index.ts +1 -0
- package/ai-model/models/model-vendor.schema.ts +9 -0
- package/build/admin/endpoints/admin.d.ts +1 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +1 -0
- package/build/admin/endpoints/commands/create-admin-model-family.command.d.ts +4 -0
- package/build/admin/endpoints/commands/create-admin-model-family.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/create-admin-model-family.command.js +1 -1
- package/build/admin/endpoints/commands/update-admin-model-family.command.d.ts +4 -0
- package/build/admin/endpoints/commands/update-admin-model-family.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/update-admin-model-family.command.js +1 -1
- package/build/admin/endpoints/queries/get-admin-model-families.query.d.ts +2 -0
- package/build/admin/endpoints/queries/get-admin-model-families.query.d.ts.map +1 -1
- package/build/admin/endpoints/queries/get-admin-model-families.query.js +1 -1
- package/build/admin/endpoints/queries/get-admin-model-vendors.query.d.ts +34 -0
- package/build/admin/endpoints/queries/get-admin-model-vendors.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-model-vendors.query.js +21 -0
- package/build/admin/endpoints/queries/index.d.ts +1 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +1 -0
- package/build/ai-model/models/index.d.ts +1 -0
- package/build/ai-model/models/index.d.ts.map +1 -1
- package/build/ai-model/models/index.js +1 -0
- package/build/ai-model/models/model-vendor.schema.d.ts +11 -0
- package/build/ai-model/models/model-vendor.schema.d.ts.map +1 -0
- package/build/ai-model/models/model-vendor.schema.js +9 -0
- package/build/errors/errors.d.ts +15 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +15 -0
- package/build/model-page/models/model-family.schema.d.ts +9 -0
- package/build/model-page/models/model-family.schema.d.ts.map +1 -1
- package/build/model-page/models/model-family.schema.js +5 -1
- package/build/referral/models/referral-advertising-stats.schema.d.ts +29 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts.map +1 -1
- package/build/referral/models/referral-advertising-stats.schema.js +4 -0
- package/build/referral/models/referral-link-response.schema.d.ts +1 -0
- package/build/referral/models/referral-link-response.schema.d.ts.map +1 -1
- package/build/referral/models/referral-link-response.schema.js +2 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +15 -0
- package/model-page/models/model-family.schema.ts +6 -0
- package/package.json +1 -1
- package/referral/models/referral-advertising-stats.schema.ts +4 -0
- package/referral/models/referral-link-response.schema.ts +2 -0
package/admin/endpoints/admin.ts
CHANGED
|
@@ -66,6 +66,7 @@ export const ADMIN_ROUTES = {
|
|
|
66
66
|
|
|
67
67
|
// MODEL FAMILIES
|
|
68
68
|
GET_MODEL_FAMILIES: 'model-families',
|
|
69
|
+
GET_MODEL_VENDORS: 'model-vendors',
|
|
69
70
|
CREATE_MODEL_FAMILY: 'model-families',
|
|
70
71
|
UPDATE_MODEL_FAMILY: (familyId: string) => `model-families/${familyId}`,
|
|
71
72
|
DELETE_MODEL_FAMILY: (familyId: string) => `model-families/${familyId}`,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
-
import { ModelFamilyInputSchema,
|
|
3
|
+
import { ModelFamilyInputSchema, AdminModelFamilySchema } from '../../../model-page';
|
|
4
4
|
import { ADMIN_ROUTES } from '../admin';
|
|
5
5
|
|
|
6
6
|
export const CreateAdminModelFamilyCommandBody = ModelFamilyInputSchema;
|
|
7
7
|
|
|
8
|
-
export const CreateAdminModelFamilyCommandResponse =
|
|
8
|
+
export const CreateAdminModelFamilyCommandResponse = AdminModelFamilySchema;
|
|
9
9
|
|
|
10
10
|
export const CreateAdminModelFamilyCommand = defineContract({
|
|
11
11
|
method: HTTP_METHODS.POST,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
-
import { ModelFamilyInputSchema,
|
|
3
|
+
import { ModelFamilyInputSchema, AdminModelFamilySchema } from '../../../model-page';
|
|
4
4
|
import { ADMIN_ROUTES } from '../admin';
|
|
5
5
|
|
|
6
6
|
export const UpdateAdminModelFamilyCommandParams = z.object({
|
|
@@ -12,7 +12,7 @@ export const UpdateAdminModelFamilyCommandBody = ModelFamilyInputSchema.partial(
|
|
|
12
12
|
{ message: 'At least one field is required' },
|
|
13
13
|
);
|
|
14
14
|
|
|
15
|
-
export const UpdateAdminModelFamilyCommandResponse =
|
|
15
|
+
export const UpdateAdminModelFamilyCommandResponse = AdminModelFamilySchema;
|
|
16
16
|
|
|
17
17
|
export const UpdateAdminModelFamilyCommand = defineContract({
|
|
18
18
|
method: HTTP_METHODS.PATCH,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
-
import {
|
|
3
|
+
import { AdminModelFamilySchema } from '../../../model-page';
|
|
4
4
|
import { ADMIN_ROUTES } from '../admin';
|
|
5
5
|
|
|
6
6
|
export const GetAdminModelFamiliesQueryResponse = z.object({
|
|
7
|
-
families: z.array(
|
|
7
|
+
families: z.array(AdminModelFamilySchema),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
export const GetAdminModelFamiliesQuery = defineContract({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ModelVendorSchema } from '../../../ai-model';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminModelVendorsQueryResponse = z.object({
|
|
7
|
+
vendors: z.array(ModelVendorSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminModelVendorsQuery = defineContract({
|
|
11
|
+
method: HTTP_METHODS.GET,
|
|
12
|
+
path: ADMIN_ROUTES.GET_MODEL_VENDORS,
|
|
13
|
+
summary: 'Get model vendors (developers) list',
|
|
14
|
+
responses: {
|
|
15
|
+
200: GetAdminModelVendorsQueryResponse,
|
|
16
|
+
401: HttpErrorResponseSchema,
|
|
17
|
+
403: HttpErrorResponseSchema,
|
|
18
|
+
500: HttpErrorResponseSchema,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export type GetAdminModelVendorsQueryResponseType = z.infer<typeof GetAdminModelVendorsQueryResponse>;
|
|
@@ -15,6 +15,7 @@ export * from './get-admin-support-chat-messages.query';
|
|
|
15
15
|
export * from './get-admin-pages.query';
|
|
16
16
|
export * from './get-admin-page.query';
|
|
17
17
|
export * from './get-admin-model-families.query';
|
|
18
|
+
export * from './get-admin-model-vendors.query';
|
|
18
19
|
export * from './get-admin-organization.query';
|
|
19
20
|
export * from './get-admin-partner-links-stats.query';
|
|
20
21
|
export * from './get-admin-partner-referrals-deposits-stats.query';
|
package/ai-model/models/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const ModelVendorSchema = z.object({
|
|
4
|
+
name: z.string().min(1),
|
|
5
|
+
order: z.number().int(),
|
|
6
|
+
icons: z.object({ light: z.string(), dark: z.string() }),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export type ModelVendorSchemaType = z.infer<typeof ModelVendorSchema>;
|
|
@@ -43,6 +43,7 @@ export declare const ADMIN_ROUTES: {
|
|
|
43
43
|
readonly DELETE_PAGE: (pageId: string) => string;
|
|
44
44
|
readonly UPDATE_PAGE_STATUS: (pageId: string) => string;
|
|
45
45
|
readonly GET_MODEL_FAMILIES: "model-families";
|
|
46
|
+
readonly GET_MODEL_VENDORS: "model-vendors";
|
|
46
47
|
readonly CREATE_MODEL_FAMILY: "model-families";
|
|
47
48
|
readonly UPDATE_MODEL_FAMILY: (familyId: string) => string;
|
|
48
49
|
readonly DELETE_MODEL_FAMILY: (familyId: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;;;;gCAmB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;kDAIH,MAAM;;iDAIP,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAGI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;kDACb,MAAM;+DACO,MAAM;wDACb,MAAM,aAAa,MAAM;uDAE1B,MAAM;yDACJ,MAAM;;;;;;;;;;;gCAmB/B,MAAM;6CACO,MAAM;gCACnB,MAAM;;kCAEJ,MAAM;;;;+CAQO,MAAM;;kDAIH,MAAM;;iDAIP,MAAM;0CACb,MAAM;8CACF,MAAM;;;gCAKpB,MAAM;mCACH,MAAM;mCACN,MAAM;0CACC,MAAM;;;;6CAMH,MAAM;6CACN,MAAM;;;;;kCAOjB,MAAM;qCACH,MAAM;qCACN,MAAM;4CACC,MAAM;;;iDAKD,MAAM;iDACN,MAAM;;;;oCAMnB,MAAM;uCACH,MAAM;uCACN,MAAM;8CACC,MAAM;;;;kDAMF,MAAM;kDACN,MAAM;;;;;;;CAarC,CAAC"}
|
|
@@ -57,6 +57,7 @@ exports.ADMIN_ROUTES = {
|
|
|
57
57
|
UPDATE_PAGE_STATUS: (pageId) => `pages/${pageId}/status`,
|
|
58
58
|
// MODEL FAMILIES
|
|
59
59
|
GET_MODEL_FAMILIES: 'model-families',
|
|
60
|
+
GET_MODEL_VENDORS: 'model-vendors',
|
|
60
61
|
CREATE_MODEL_FAMILY: 'model-families',
|
|
61
62
|
UPDATE_MODEL_FAMILY: (familyId) => `model-families/${familyId}`,
|
|
62
63
|
DELETE_MODEL_FAMILY: (familyId) => `model-families/${familyId}`,
|
|
@@ -4,12 +4,14 @@ export declare const CreateAdminModelFamilyCommandBody: z.ZodObject<{
|
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
developer: z.ZodString;
|
|
6
6
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
7
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
export declare const CreateAdminModelFamilyCommandResponse: z.ZodObject<{
|
|
9
10
|
uuid: z.ZodUUID;
|
|
10
11
|
name: z.ZodString;
|
|
11
12
|
developer: z.ZodString;
|
|
12
13
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
14
|
+
isActive: z.ZodBoolean;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
export declare const CreateAdminModelFamilyCommand: {
|
|
15
17
|
method: HTTP_METHODS.POST;
|
|
@@ -20,6 +22,7 @@ export declare const CreateAdminModelFamilyCommand: {
|
|
|
20
22
|
name: z.ZodString;
|
|
21
23
|
developer: z.ZodString;
|
|
22
24
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
25
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
23
26
|
}, z.core.$strip>;
|
|
24
27
|
};
|
|
25
28
|
responses: {
|
|
@@ -28,6 +31,7 @@ export declare const CreateAdminModelFamilyCommand: {
|
|
|
28
31
|
name: z.ZodString;
|
|
29
32
|
developer: z.ZodString;
|
|
30
33
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
34
|
+
isActive: z.ZodBoolean;
|
|
31
35
|
}, z.core.$strip>;
|
|
32
36
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
33
37
|
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-admin-model-family.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-model-family.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"create-admin-model-family.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-model-family.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,iCAAiC;;;;;iBAAyB,CAAC;AAExE,eAAO,MAAM,qCAAqC;;;;;;iBAAyB,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;CAexC,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@ const _common_1 = require("../../../_common");
|
|
|
5
5
|
const model_page_1 = require("../../../model-page");
|
|
6
6
|
const admin_1 = require("../admin");
|
|
7
7
|
exports.CreateAdminModelFamilyCommandBody = model_page_1.ModelFamilyInputSchema;
|
|
8
|
-
exports.CreateAdminModelFamilyCommandResponse = model_page_1.
|
|
8
|
+
exports.CreateAdminModelFamilyCommandResponse = model_page_1.AdminModelFamilySchema;
|
|
9
9
|
exports.CreateAdminModelFamilyCommand = (0, _common_1.defineContract)({
|
|
10
10
|
method: _common_1.HTTP_METHODS.POST,
|
|
11
11
|
path: admin_1.ADMIN_ROUTES.CREATE_MODEL_FAMILY,
|
|
@@ -7,12 +7,14 @@ export declare const UpdateAdminModelFamilyCommandBody: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
8
8
|
developer: z.ZodOptional<z.ZodString>;
|
|
9
9
|
category: z.ZodOptional<z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>>;
|
|
10
|
+
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const UpdateAdminModelFamilyCommandResponse: z.ZodObject<{
|
|
12
13
|
uuid: z.ZodUUID;
|
|
13
14
|
name: z.ZodString;
|
|
14
15
|
developer: z.ZodString;
|
|
15
16
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
17
|
+
isActive: z.ZodBoolean;
|
|
16
18
|
}, z.core.$strip>;
|
|
17
19
|
export declare const UpdateAdminModelFamilyCommand: {
|
|
18
20
|
method: HTTP_METHODS.PATCH;
|
|
@@ -26,6 +28,7 @@ export declare const UpdateAdminModelFamilyCommand: {
|
|
|
26
28
|
name: z.ZodOptional<z.ZodString>;
|
|
27
29
|
developer: z.ZodOptional<z.ZodString>;
|
|
28
30
|
category: z.ZodOptional<z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>>;
|
|
31
|
+
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
29
32
|
}, z.core.$strip>;
|
|
30
33
|
};
|
|
31
34
|
responses: {
|
|
@@ -34,6 +37,7 @@ export declare const UpdateAdminModelFamilyCommand: {
|
|
|
34
37
|
name: z.ZodString;
|
|
35
38
|
developer: z.ZodString;
|
|
36
39
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
40
|
+
isActive: z.ZodBoolean;
|
|
37
41
|
}, z.core.$strip>;
|
|
38
42
|
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
39
43
|
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-admin-model-family.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-model-family.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"update-admin-model-family.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-model-family.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;iBAG7C,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;;iBAAyB,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBxC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@ exports.UpdateAdminModelFamilyCommandParams = zod_1.z.object({
|
|
|
9
9
|
familyId: zod_1.z.uuid(),
|
|
10
10
|
});
|
|
11
11
|
exports.UpdateAdminModelFamilyCommandBody = model_page_1.ModelFamilyInputSchema.partial().refine((value) => Object.keys(value).length > 0, { message: 'At least one field is required' });
|
|
12
|
-
exports.UpdateAdminModelFamilyCommandResponse = model_page_1.
|
|
12
|
+
exports.UpdateAdminModelFamilyCommandResponse = model_page_1.AdminModelFamilySchema;
|
|
13
13
|
exports.UpdateAdminModelFamilyCommand = (0, _common_1.defineContract)({
|
|
14
14
|
method: _common_1.HTTP_METHODS.PATCH,
|
|
15
15
|
path: admin_1.ADMIN_ROUTES.UPDATE_MODEL_FAMILY(':familyId'),
|
|
@@ -6,6 +6,7 @@ export declare const GetAdminModelFamiliesQueryResponse: z.ZodObject<{
|
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
developer: z.ZodString;
|
|
8
8
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
9
10
|
}, z.core.$strip>>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const GetAdminModelFamiliesQuery: {
|
|
@@ -19,6 +20,7 @@ export declare const GetAdminModelFamiliesQuery: {
|
|
|
19
20
|
name: z.ZodString;
|
|
20
21
|
developer: z.ZodString;
|
|
21
22
|
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
23
|
+
isActive: z.ZodBoolean;
|
|
22
24
|
}, z.core.$strip>>;
|
|
23
25
|
}, z.core.$strip>;
|
|
24
26
|
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-admin-model-families.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-model-families.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"get-admin-model-families.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-model-families.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,kCAAkC;;;;;;;;iBAE7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;CAUrC,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ const _common_1 = require("../../../_common");
|
|
|
6
6
|
const model_page_1 = require("../../../model-page");
|
|
7
7
|
const admin_1 = require("../admin");
|
|
8
8
|
exports.GetAdminModelFamiliesQueryResponse = zod_1.z.object({
|
|
9
|
-
families: zod_1.z.array(model_page_1.
|
|
9
|
+
families: zod_1.z.array(model_page_1.AdminModelFamilySchema),
|
|
10
10
|
});
|
|
11
11
|
exports.GetAdminModelFamiliesQuery = (0, _common_1.defineContract)({
|
|
12
12
|
method: _common_1.HTTP_METHODS.GET,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetAdminModelVendorsQueryResponse: z.ZodObject<{
|
|
4
|
+
vendors: z.ZodArray<z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
icons: z.ZodObject<{
|
|
8
|
+
light: z.ZodString;
|
|
9
|
+
dark: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const GetAdminModelVendorsQuery: {
|
|
14
|
+
method: HTTP_METHODS.GET;
|
|
15
|
+
path: "model-vendors";
|
|
16
|
+
summary: string;
|
|
17
|
+
responses: {
|
|
18
|
+
200: z.ZodObject<{
|
|
19
|
+
vendors: z.ZodArray<z.ZodObject<{
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
order: z.ZodNumber;
|
|
22
|
+
icons: z.ZodObject<{
|
|
23
|
+
light: z.ZodString;
|
|
24
|
+
dark: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
29
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
30
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type GetAdminModelVendorsQueryResponseType = z.infer<typeof GetAdminModelVendorsQueryResponse>;
|
|
34
|
+
//# sourceMappingURL=get-admin-model-vendors.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-model-vendors.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-model-vendors.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,iCAAiC;;;;;;;;;iBAE5C,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;CAUpC,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminModelVendorsQuery = exports.GetAdminModelVendorsQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const ai_model_1 = require("../../../ai-model");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.GetAdminModelVendorsQueryResponse = zod_1.z.object({
|
|
9
|
+
vendors: zod_1.z.array(ai_model_1.ModelVendorSchema),
|
|
10
|
+
});
|
|
11
|
+
exports.GetAdminModelVendorsQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.GET_MODEL_VENDORS,
|
|
14
|
+
summary: 'Get model vendors (developers) list',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.GetAdminModelVendorsQueryResponse,
|
|
17
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
19
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -15,6 +15,7 @@ export * from './get-admin-support-chat-messages.query';
|
|
|
15
15
|
export * from './get-admin-pages.query';
|
|
16
16
|
export * from './get-admin-page.query';
|
|
17
17
|
export * from './get-admin-model-families.query';
|
|
18
|
+
export * from './get-admin-model-vendors.query';
|
|
18
19
|
export * from './get-admin-organization.query';
|
|
19
20
|
export * from './get-admin-partner-links-stats.query';
|
|
20
21
|
export * from './get-admin-partner-referrals-deposits-stats.query';
|
|
@@ -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,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,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,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC"}
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./get-admin-support-chat-messages.query"), exports);
|
|
|
31
31
|
__exportStar(require("./get-admin-pages.query"), exports);
|
|
32
32
|
__exportStar(require("./get-admin-page.query"), exports);
|
|
33
33
|
__exportStar(require("./get-admin-model-families.query"), exports);
|
|
34
|
+
__exportStar(require("./get-admin-model-vendors.query"), exports);
|
|
34
35
|
__exportStar(require("./get-admin-organization.query"), exports);
|
|
35
36
|
__exportStar(require("./get-admin-partner-links-stats.query"), exports);
|
|
36
37
|
__exportStar(require("./get-admin-partner-referrals-deposits-stats.query"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ai-model/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../ai-model/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC"}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ai-model-response.schema"), exports);
|
|
18
18
|
__exportStar(require("./chat-price-scenarios.schema"), exports);
|
|
19
|
+
__exportStar(require("./model-vendor.schema"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ModelVendorSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
order: z.ZodNumber;
|
|
5
|
+
icons: z.ZodObject<{
|
|
6
|
+
light: z.ZodString;
|
|
7
|
+
dark: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ModelVendorSchemaType = z.infer<typeof ModelVendorSchema>;
|
|
11
|
+
//# sourceMappingURL=model-vendor.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-vendor.schema.d.ts","sourceRoot":"","sources":["../../../ai-model/models/model-vendor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelVendorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ModelVendorSchema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string().min(1),
|
|
7
|
+
order: zod_1.z.number().int(),
|
|
8
|
+
icons: zod_1.z.object({ light: zod_1.z.string(), dark: zod_1.z.string() }),
|
|
9
|
+
});
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -104,6 +104,11 @@ export declare const ERRORS: {
|
|
|
104
104
|
readonly code: "AI_MODEL.FIND_ERROR";
|
|
105
105
|
readonly message: "Не удалось найти AI модель";
|
|
106
106
|
};
|
|
107
|
+
readonly VENDORS_FIND_ERROR: {
|
|
108
|
+
readonly httpCode: 500;
|
|
109
|
+
readonly code: "AI_MODEL.VENDORS_FIND_ERROR";
|
|
110
|
+
readonly message: "Не удалось получить список разработчиков моделей";
|
|
111
|
+
};
|
|
107
112
|
};
|
|
108
113
|
readonly CATEGORY: {
|
|
109
114
|
readonly NOT_FOUND: {
|
|
@@ -1284,6 +1289,16 @@ export declare const ERRORS: {
|
|
|
1284
1289
|
readonly code: "MODEL_FAMILY.HAS_LINKED_PAGES";
|
|
1285
1290
|
readonly message: "Нельзя удалить семейство, к которому привязаны страницы";
|
|
1286
1291
|
};
|
|
1292
|
+
readonly MANAGED_BY_MODELS: {
|
|
1293
|
+
readonly httpCode: 409;
|
|
1294
|
+
readonly code: "MODEL_FAMILY.MANAGED_BY_MODELS";
|
|
1295
|
+
readonly message: "Семейство собирается из моделей: менять название, разработчика, категорию и удалять его нельзя";
|
|
1296
|
+
};
|
|
1297
|
+
readonly DEVELOPER_NOT_FOUND: {
|
|
1298
|
+
readonly httpCode: 400;
|
|
1299
|
+
readonly code: "MODEL_FAMILY.DEVELOPER_NOT_FOUND";
|
|
1300
|
+
readonly message: "Разработчик не найден в списке вендоров";
|
|
1301
|
+
};
|
|
1287
1302
|
readonly CREATE_ERROR: {
|
|
1288
1303
|
readonly httpCode: 500;
|
|
1289
1304
|
readonly code: "MODEL_FAMILY.CREATE_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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8uDT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -107,6 +107,11 @@ exports.ERRORS = {
|
|
|
107
107
|
code: 'AI_MODEL.FIND_ERROR',
|
|
108
108
|
message: 'Не удалось найти AI модель',
|
|
109
109
|
},
|
|
110
|
+
VENDORS_FIND_ERROR: {
|
|
111
|
+
httpCode: 500,
|
|
112
|
+
code: 'AI_MODEL.VENDORS_FIND_ERROR',
|
|
113
|
+
message: 'Не удалось получить список разработчиков моделей',
|
|
114
|
+
},
|
|
110
115
|
},
|
|
111
116
|
CATEGORY: {
|
|
112
117
|
NOT_FOUND: {
|
|
@@ -1287,6 +1292,16 @@ exports.ERRORS = {
|
|
|
1287
1292
|
code: 'MODEL_FAMILY.HAS_LINKED_PAGES',
|
|
1288
1293
|
message: 'Нельзя удалить семейство, к которому привязаны страницы',
|
|
1289
1294
|
},
|
|
1295
|
+
MANAGED_BY_MODELS: {
|
|
1296
|
+
httpCode: 409,
|
|
1297
|
+
code: 'MODEL_FAMILY.MANAGED_BY_MODELS',
|
|
1298
|
+
message: 'Семейство собирается из моделей: менять название, разработчика, категорию и удалять его нельзя',
|
|
1299
|
+
},
|
|
1300
|
+
DEVELOPER_NOT_FOUND: {
|
|
1301
|
+
httpCode: 400,
|
|
1302
|
+
code: 'MODEL_FAMILY.DEVELOPER_NOT_FOUND',
|
|
1303
|
+
message: 'Разработчик не найден в списке вендоров',
|
|
1304
|
+
},
|
|
1290
1305
|
CREATE_ERROR: {
|
|
1291
1306
|
httpCode: 500,
|
|
1292
1307
|
code: 'MODEL_FAMILY.CREATE_ERROR',
|
|
@@ -6,11 +6,20 @@ export declare const ModelFamilySchema: z.ZodObject<{
|
|
|
6
6
|
developer: z.ZodString;
|
|
7
7
|
category: z.ZodEnum<typeof MODEL_CATEGORY>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
+
export declare const AdminModelFamilySchema: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
developer: z.ZodString;
|
|
13
|
+
category: z.ZodEnum<typeof MODEL_CATEGORY>;
|
|
14
|
+
isActive: z.ZodBoolean;
|
|
15
|
+
}, z.core.$strip>;
|
|
9
16
|
export declare const ModelFamilyInputSchema: z.ZodObject<{
|
|
10
17
|
name: z.ZodString;
|
|
11
18
|
developer: z.ZodString;
|
|
12
19
|
category: z.ZodEnum<typeof MODEL_CATEGORY>;
|
|
20
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
13
21
|
}, z.core.$strip>;
|
|
14
22
|
export type ModelFamilySchemaType = z.infer<typeof ModelFamilySchema>;
|
|
23
|
+
export type AdminModelFamilySchemaType = z.infer<typeof AdminModelFamilySchema>;
|
|
15
24
|
export type ModelFamilyInputSchemaType = z.infer<typeof ModelFamilyInputSchema>;
|
|
16
25
|
//# sourceMappingURL=model-family.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-family.schema.d.ts","sourceRoot":"","sources":["../../../model-page/models/model-family.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"model-family.schema.d.ts","sourceRoot":"","sources":["../../../model-page/models/model-family.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAEjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACtE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelFamilyInputSchema = exports.ModelFamilySchema = void 0;
|
|
3
|
+
exports.ModelFamilyInputSchema = exports.AdminModelFamilySchema = exports.ModelFamilySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const model_catalog_1 = require("../../model-catalog");
|
|
6
6
|
exports.ModelFamilySchema = zod_1.z.object({
|
|
@@ -9,8 +9,12 @@ exports.ModelFamilySchema = zod_1.z.object({
|
|
|
9
9
|
developer: zod_1.z.string().min(1),
|
|
10
10
|
category: zod_1.z.enum(model_catalog_1.MODEL_CATEGORY),
|
|
11
11
|
});
|
|
12
|
+
exports.AdminModelFamilySchema = exports.ModelFamilySchema.extend({
|
|
13
|
+
isActive: zod_1.z.boolean(),
|
|
14
|
+
});
|
|
12
15
|
exports.ModelFamilyInputSchema = zod_1.z.object({
|
|
13
16
|
name: zod_1.z.string().min(1).max(255),
|
|
14
17
|
developer: zod_1.z.string().min(1).max(255),
|
|
15
18
|
category: zod_1.z.enum(model_catalog_1.MODEL_CATEGORY),
|
|
19
|
+
isActive: zod_1.z.boolean().optional(),
|
|
16
20
|
});
|
|
@@ -15,6 +15,8 @@ export declare const ReferralAdvertisingMetricsSchema: z.ZodObject<{
|
|
|
15
15
|
registrations: z.ZodNumber;
|
|
16
16
|
purchases: z.ZodNumber;
|
|
17
17
|
conversionRate: z.ZodNumber;
|
|
18
|
+
depositsAmount: z.ZodNumber;
|
|
19
|
+
bonusesAmount: z.ZodNumber;
|
|
18
20
|
}, z.core.$strip>;
|
|
19
21
|
export type ReferralAdvertisingMetricsSchemaType = z.infer<typeof ReferralAdvertisingMetricsSchema>;
|
|
20
22
|
export declare const ReferralAdvertisingPeriodStatsSchema: z.ZodObject<{
|
|
@@ -25,6 +27,8 @@ export declare const ReferralAdvertisingPeriodStatsSchema: z.ZodObject<{
|
|
|
25
27
|
registrations: z.ZodNumber;
|
|
26
28
|
purchases: z.ZodNumber;
|
|
27
29
|
conversionRate: z.ZodNumber;
|
|
30
|
+
depositsAmount: z.ZodNumber;
|
|
31
|
+
bonusesAmount: z.ZodNumber;
|
|
28
32
|
}, z.core.$strip>;
|
|
29
33
|
}, z.core.$strip>;
|
|
30
34
|
export type ReferralAdvertisingPeriodStatsSchemaType = z.infer<typeof ReferralAdvertisingPeriodStatsSchema>;
|
|
@@ -37,8 +41,18 @@ export declare const GetReferralAdvertisingStatsResponseSchema: z.ZodObject<{
|
|
|
37
41
|
registrations: z.ZodNumber;
|
|
38
42
|
purchases: z.ZodNumber;
|
|
39
43
|
conversionRate: z.ZodNumber;
|
|
44
|
+
depositsAmount: z.ZodNumber;
|
|
45
|
+
bonusesAmount: z.ZodNumber;
|
|
40
46
|
}, z.core.$strip>;
|
|
41
47
|
}, z.core.$strip>>;
|
|
48
|
+
totals: z.ZodObject<{
|
|
49
|
+
clicks: z.ZodNumber;
|
|
50
|
+
registrations: z.ZodNumber;
|
|
51
|
+
purchases: z.ZodNumber;
|
|
52
|
+
conversionRate: z.ZodNumber;
|
|
53
|
+
depositsAmount: z.ZodNumber;
|
|
54
|
+
bonusesAmount: z.ZodNumber;
|
|
55
|
+
}, z.core.$strip>;
|
|
42
56
|
}, z.core.$strip>;
|
|
43
57
|
export type GetReferralAdvertisingStatsResponseSchemaType = z.infer<typeof GetReferralAdvertisingStatsResponseSchema>;
|
|
44
58
|
export declare const ReferralAdvertisingLinkStatsSchema: z.ZodObject<{
|
|
@@ -54,6 +68,8 @@ export declare const ReferralAdvertisingLinkStatsSchema: z.ZodObject<{
|
|
|
54
68
|
registrations: z.ZodNumber;
|
|
55
69
|
purchases: z.ZodNumber;
|
|
56
70
|
conversionRate: z.ZodNumber;
|
|
71
|
+
depositsAmount: z.ZodNumber;
|
|
72
|
+
bonusesAmount: z.ZodNumber;
|
|
57
73
|
}, z.core.$strip>;
|
|
58
74
|
}, z.core.$strip>;
|
|
59
75
|
export type ReferralAdvertisingLinkStatsSchemaType = z.infer<typeof ReferralAdvertisingLinkStatsSchema>;
|
|
@@ -71,8 +87,11 @@ export declare const GetReferralAdvertisingLinksResponseSchema: z.ZodObject<{
|
|
|
71
87
|
registrations: z.ZodNumber;
|
|
72
88
|
purchases: z.ZodNumber;
|
|
73
89
|
conversionRate: z.ZodNumber;
|
|
90
|
+
depositsAmount: z.ZodNumber;
|
|
91
|
+
bonusesAmount: z.ZodNumber;
|
|
74
92
|
}, z.core.$strip>;
|
|
75
93
|
}, z.core.$strip>>;
|
|
94
|
+
maxLinks: z.ZodNumber;
|
|
76
95
|
}, z.core.$strip>;
|
|
77
96
|
export type GetReferralAdvertisingLinksResponseSchemaType = z.infer<typeof GetReferralAdvertisingLinksResponseSchema>;
|
|
78
97
|
export declare const GetReferralAdvertisingLinkStatsParamsSchema: z.ZodObject<{
|
|
@@ -95,7 +114,17 @@ export declare const GetReferralAdvertisingLinkStatsResponseSchema: z.ZodObject<
|
|
|
95
114
|
registrations: z.ZodNumber;
|
|
96
115
|
purchases: z.ZodNumber;
|
|
97
116
|
conversionRate: z.ZodNumber;
|
|
117
|
+
depositsAmount: z.ZodNumber;
|
|
118
|
+
bonusesAmount: z.ZodNumber;
|
|
98
119
|
}, z.core.$strip>;
|
|
99
120
|
}, z.core.$strip>>;
|
|
121
|
+
totals: z.ZodObject<{
|
|
122
|
+
clicks: z.ZodNumber;
|
|
123
|
+
registrations: z.ZodNumber;
|
|
124
|
+
purchases: z.ZodNumber;
|
|
125
|
+
conversionRate: z.ZodNumber;
|
|
126
|
+
depositsAmount: z.ZodNumber;
|
|
127
|
+
bonusesAmount: z.ZodNumber;
|
|
128
|
+
}, z.core.$strip>;
|
|
100
129
|
}, z.core.$strip>;
|
|
101
130
|
//# sourceMappingURL=referral-advertising-stats.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referral-advertising-stats.schema.d.ts","sourceRoot":"","sources":["../../../referral/models/referral-advertising-stats.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAMjD,qDAAqD;AACrD,eAAO,MAAM,sCAAsC;;;;;;;iBA8B7C,CAAC;AAEP,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEhH,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"referral-advertising-stats.schema.d.ts","sourceRoot":"","sources":["../../../referral/models/referral-advertising-stats.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAMjD,qDAAqD;AACrD,eAAO,MAAM,sCAAsC;;;;;;;iBA8B7C,CAAC;AAEP,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEhH,eAAO,MAAM,gCAAgC;;;;;;;iBAO3C,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAEpG,eAAO,MAAM,oCAAoC;;;;;;;;;;;iBAK/C,CAAC;AACH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAE5G,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;iBAGpD,CAAC;AACH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAEtH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;iBAE7C,CAAC;AACH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAExG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;iBAGpD,CAAC;AACH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAEtH,eAAO,MAAM,2CAA2C;;iBAAkC,CAAC;AAC3F,eAAO,MAAM,0CAA0C;;;;;;;iBAAyC,CAAC;AACjG,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;iBAA4C,CAAC"}
|
|
@@ -41,6 +41,8 @@ exports.ReferralAdvertisingMetricsSchema = zod_1.z.object({
|
|
|
41
41
|
registrations: zod_1.z.number().int().nonnegative(),
|
|
42
42
|
purchases: zod_1.z.number().int().nonnegative(),
|
|
43
43
|
conversionRate: zod_1.z.number().nonnegative(),
|
|
44
|
+
depositsAmount: zod_1.z.number().nonnegative(),
|
|
45
|
+
bonusesAmount: zod_1.z.number().nonnegative(),
|
|
44
46
|
});
|
|
45
47
|
exports.ReferralAdvertisingPeriodStatsSchema = zod_1.z.object({
|
|
46
48
|
periodStart: zod_1.z.iso.datetime(),
|
|
@@ -50,12 +52,14 @@ exports.ReferralAdvertisingPeriodStatsSchema = zod_1.z.object({
|
|
|
50
52
|
});
|
|
51
53
|
exports.GetReferralAdvertisingStatsResponseSchema = zod_1.z.object({
|
|
52
54
|
periods: zod_1.z.array(exports.ReferralAdvertisingPeriodStatsSchema),
|
|
55
|
+
totals: exports.ReferralAdvertisingMetricsSchema,
|
|
53
56
|
});
|
|
54
57
|
exports.ReferralAdvertisingLinkStatsSchema = referral_link_response_schema_1.ReferralLinkListItemSchema.omit({ referralsCount: true }).extend({
|
|
55
58
|
metrics: exports.ReferralAdvertisingMetricsSchema,
|
|
56
59
|
});
|
|
57
60
|
exports.GetReferralAdvertisingLinksResponseSchema = zod_1.z.object({
|
|
58
61
|
links: zod_1.z.array(exports.ReferralAdvertisingLinkStatsSchema),
|
|
62
|
+
maxLinks: zod_1.z.number().int().positive(),
|
|
59
63
|
});
|
|
60
64
|
exports.GetReferralAdvertisingLinkStatsParamsSchema = referral_link_response_schema_1.ResolveReferralLinkParamsSchema;
|
|
61
65
|
exports.GetReferralAdvertisingLinkStatsQuerySchema = exports.GetReferralAdvertisingStatsQuerySchema;
|