@purpleschool/gptbot 0.7.63 → 0.7.66
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/api/controllers/http/index.ts +2 -0
- package/api/controllers/http/promocode.ts +1 -0
- package/api/controllers/http/video-editor.ts +14 -0
- package/api/controllers/http/webmaster.ts +10 -0
- package/api/controllers/http/writer.ts +1 -0
- package/api/routes.ts +6 -0
- package/build/api/controllers/http/index.js +2 -0
- package/build/api/controllers/http/promocode.js +1 -0
- package/build/api/controllers/http/video-editor.js +16 -0
- package/build/api/controllers/http/webmaster.js +12 -0
- package/build/api/controllers/http/writer.js +1 -0
- package/build/api/routes.js +5 -0
- package/build/commands/index.js +1 -0
- package/build/commands/promocode/get-webmaster-promocode.command.js +17 -0
- package/build/commands/promocode/index.js +1 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/video-editor/delete-all-video-editor-jobs.command.js +11 -0
- package/build/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.js +14 -0
- package/build/commands/tools/video-editor/edit-video.command.js +16 -0
- package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.js +14 -0
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +18 -0
- package/build/commands/tools/video-editor/get-video-editor-config.command.js +14 -0
- package/build/commands/tools/video-editor/index.js +25 -0
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +14 -0
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +18 -0
- package/build/commands/tools/video-editor/update-video-editor-job-title.command.js +17 -0
- package/build/commands/tools/writer/index.js +1 -0
- package/build/commands/tools/writer/set-reaction.writer-document.command.js +18 -0
- package/build/commands/webmaster/confirm-withdrawal.command.js +14 -0
- package/build/commands/webmaster/create-webmaster.command.js +16 -0
- package/build/commands/webmaster/create-withdrawal-request.command.js +16 -0
- package/build/commands/webmaster/get-my-webmaster.command.js +11 -0
- package/build/commands/webmaster/get-webmaster-balance-overview.command.js +26 -0
- package/build/commands/webmaster/index.js +22 -0
- package/build/commands/webmaster/update-webmaster.command.js +13 -0
- package/build/constants/errors/errors.js +160 -0
- package/build/constants/file/enums/file-type.enum.js +1 -0
- package/build/constants/file/file.constants.js +4 -1
- package/build/constants/index.js +3 -0
- package/build/constants/promocode/enums/promocode-promotion.enum.js +1 -0
- package/build/constants/tool-video-editor/enums/index.js +17 -0
- package/build/constants/tool-video-editor/enums/video-editor-model-strategy.enum.js +7 -0
- package/build/constants/tool-video-editor/index.js +17 -0
- package/build/constants/webmaster/enums/index.js +17 -0
- package/build/constants/webmaster/enums/organization-type.enum.js +9 -0
- package/build/constants/webmaster/index.js +17 -0
- package/build/constants/webmaster-balance/enums/index.js +18 -0
- package/build/constants/webmaster-balance/enums/webmaster-balance-status.enum.js +10 -0
- package/build/constants/webmaster-balance/enums/webmaster-balance-type.enum.js +8 -0
- package/build/constants/webmaster-balance/index.js +17 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/video-editor/calculate-video-editing-price.helper.js +6 -0
- package/build/helpers/video-editor/index.js +17 -0
- package/build/models/index.js +2 -0
- package/build/models/promocode.schema.js +1 -0
- package/build/models/tools/index.js +1 -0
- package/build/models/tools/video-editor/index.js +19 -0
- package/build/models/tools/video-editor/video-editor-config.schema.js +8 -0
- package/build/models/tools/video-editor/video-editor-job.schema.js +14 -0
- package/build/models/tools/video-editor/video-editor-model.schema.js +25 -0
- package/build/models/tools/writer/writer-document.schema.js +1 -0
- package/build/models/webmaster-balance.schema.js +20 -0
- package/build/models/webmaster.schema.js +21 -0
- package/commands/index.ts +1 -0
- package/commands/promocode/get-webmaster-promocode.command.ts +19 -0
- package/commands/promocode/index.ts +1 -0
- package/commands/tools/index.ts +1 -0
- package/commands/tools/video-editor/delete-all-video-editor-jobs.command.ts +13 -0
- package/commands/tools/video-editor/delete-video-editor-job-by-uuid.command.ts +16 -0
- package/commands/tools/video-editor/edit-video.command.ts +18 -0
- package/commands/tools/video-editor/find-video-editor-job-by-id.command.ts +16 -0
- package/commands/tools/video-editor/find-video-editor-jobs.command.ts +18 -0
- package/commands/tools/video-editor/get-video-editor-config.command.ts +16 -0
- package/commands/tools/video-editor/index.ts +9 -0
- package/commands/tools/video-editor/retry-video-editor-job.command.ts +16 -0
- package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +21 -0
- package/commands/tools/video-editor/update-video-editor-job-title.command.ts +20 -0
- package/commands/tools/writer/index.ts +1 -0
- package/commands/tools/writer/set-reaction.writer-document.command.ts +21 -0
- package/commands/webmaster/confirm-withdrawal.command.ts +16 -0
- package/commands/webmaster/create-webmaster.command.ts +18 -0
- package/commands/webmaster/create-withdrawal-request.command.ts +18 -0
- package/commands/webmaster/get-my-webmaster.command.ts +12 -0
- package/commands/webmaster/get-webmaster-balance-overview.command.ts +29 -0
- package/commands/webmaster/index.ts +6 -0
- package/commands/webmaster/update-webmaster.command.ts +18 -0
- package/constants/errors/errors.ts +160 -0
- package/constants/file/enums/file-type.enum.ts +1 -0
- package/constants/file/file.constants.ts +4 -0
- package/constants/index.ts +3 -0
- package/constants/promocode/enums/promocode-promotion.enum.ts +1 -0
- package/constants/tool-video-editor/enums/index.ts +1 -0
- package/constants/tool-video-editor/enums/video-editor-model-strategy.enum.ts +3 -0
- package/constants/tool-video-editor/index.ts +1 -0
- package/constants/webmaster/enums/index.ts +1 -0
- package/constants/webmaster/enums/organization-type.enum.ts +5 -0
- package/constants/webmaster/index.ts +1 -0
- package/constants/webmaster-balance/enums/index.ts +2 -0
- package/constants/webmaster-balance/enums/webmaster-balance-status.enum.ts +6 -0
- package/constants/webmaster-balance/enums/webmaster-balance-type.enum.ts +4 -0
- package/constants/webmaster-balance/index.ts +1 -0
- package/helpers/index.ts +1 -0
- package/helpers/video-editor/calculate-video-editing-price.helper.ts +9 -0
- package/helpers/video-editor/index.ts +1 -0
- package/models/index.ts +2 -0
- package/models/promocode.schema.ts +1 -0
- package/models/tools/index.ts +1 -0
- package/models/tools/video-editor/index.ts +3 -0
- package/models/tools/video-editor/video-editor-config.schema.ts +6 -0
- package/models/tools/video-editor/video-editor-job.schema.ts +14 -0
- package/models/tools/video-editor/video-editor-model.schema.ts +24 -0
- package/models/tools/writer/writer-document.schema.ts +2 -1
- package/models/webmaster-balance.schema.ts +16 -0
- package/models/webmaster.schema.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { WEBMASTER_BALANCE_STATUS, WEBMASTER_BALANCE_TYPE } from '../constants';
|
|
3
|
+
|
|
4
|
+
export const WebmasterBalanceSchema = z.object({
|
|
5
|
+
uuid: z.string().uuid(),
|
|
6
|
+
webmasterId: z.string().uuid(),
|
|
7
|
+
orderId: z.string().uuid().nullable(),
|
|
8
|
+
promocodeId: z.string().uuid().nullable(),
|
|
9
|
+
sourceUserId: z.string().uuid().nullable(),
|
|
10
|
+
amount: z.number(),
|
|
11
|
+
type: z.nativeEnum(WEBMASTER_BALANCE_TYPE),
|
|
12
|
+
status: z.nativeEnum(WEBMASTER_BALANCE_STATUS),
|
|
13
|
+
|
|
14
|
+
createdAt: z.date(),
|
|
15
|
+
updatedAt: z.date(),
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { ORGANIZATION_TYPE } from '../constants/webmaster';
|
|
3
|
+
|
|
4
|
+
export const WebmasterSchema = z.object({
|
|
5
|
+
uuid: z.string().uuid(),
|
|
6
|
+
userId: z.string().uuid(),
|
|
7
|
+
organization: z.string(),
|
|
8
|
+
organizationType: z.nativeEnum(ORGANIZATION_TYPE),
|
|
9
|
+
tin: z.string().regex(/^\d{10}$|^\d{12}$/, 'ИНН должен быть длинной в 10 или 12 цифр'),
|
|
10
|
+
alias: z.string(),
|
|
11
|
+
|
|
12
|
+
createdAt: z.date(),
|
|
13
|
+
updatedAt: z.date(),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const WebmasterWithBalanceSchema = WebmasterSchema.extend({
|
|
17
|
+
balance: z.number(),
|
|
18
|
+
});
|