@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
|
@@ -45,7 +45,9 @@ export * from './folder';
|
|
|
45
45
|
export * from './user-to-product';
|
|
46
46
|
export * from './user-to-subscription';
|
|
47
47
|
export * from './video';
|
|
48
|
+
export * from './video-editor';
|
|
48
49
|
export * from './writer';
|
|
49
50
|
export * from './image-editor';
|
|
50
51
|
export * from './daily-streak';
|
|
51
52
|
export * from './cabinet';
|
|
53
|
+
export * from './webmaster';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const VIDEO_EDITOR_CONTROLLER_PRIVATE = 'private/tools/video-editor' as const;
|
|
2
|
+
export const VIDEO_EDITOR_CONTROLLER_PUBLIC = 'public/tools/video-editor' as const;
|
|
3
|
+
|
|
4
|
+
export const VIDEO_EDITOR_ROUTES = {
|
|
5
|
+
CONFIG: 'config',
|
|
6
|
+
EXECUTE: 'execute',
|
|
7
|
+
GET_JOBS: 'jobs',
|
|
8
|
+
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
9
|
+
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
10
|
+
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
11
|
+
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
12
|
+
DELETE_ALL: 'jobs',
|
|
13
|
+
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
14
|
+
} as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const WEBMASTER_CONTROLLER_PRIVATE = 'private/referral' as const;
|
|
2
|
+
|
|
3
|
+
export const WEBMASTER_ROUTES = {
|
|
4
|
+
GET_MY: 'my',
|
|
5
|
+
GET_BALANCE_OVERVIEW: 'overview',
|
|
6
|
+
CREATE: '',
|
|
7
|
+
CREATE_WITHDRAWAL_REQUEST: 'withdraw',
|
|
8
|
+
CONFIRM_WITHDRAWAL: (uuid: string) => `withdraw/${uuid}`,
|
|
9
|
+
UPDATE: (uuid: string) => `${uuid}`,
|
|
10
|
+
} as const;
|
|
@@ -17,4 +17,5 @@ export const WRITER_ROUTES = {
|
|
|
17
17
|
FIX_ERRORS: (uuid: string) => `documents/${uuid}/actions/fix-errors`,
|
|
18
18
|
GENERATE_TEXT: (uuid: string) => `documents/${uuid}/actions/generate-text`,
|
|
19
19
|
EXPORT_AS_DOCX: (uuid: string) => `documents/${uuid}/export/docx`,
|
|
20
|
+
SET_REACTION: (uuid: string) => `documents/${uuid}/reaction`,
|
|
20
21
|
} as const;
|
package/api/routes.ts
CHANGED
|
@@ -305,4 +305,10 @@ export const REST_API = {
|
|
|
305
305
|
GET_USER_STATISTICS_OVERVIEW: `${ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_OVERVIEW}`,
|
|
306
306
|
GET_USER_STATISTICS_BY_MONTH: `${ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_BY_MONTH}`,
|
|
307
307
|
},
|
|
308
|
+
WEBMASTER_PRIVATE: {
|
|
309
|
+
GET_MY: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_MY}`,
|
|
310
|
+
CREATE: `${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE}`,
|
|
311
|
+
UPDATE: (uuid: string) =>
|
|
312
|
+
`${ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.UPDATE(uuid)}`,
|
|
313
|
+
},
|
|
308
314
|
} as const;
|
|
@@ -61,7 +61,9 @@ __exportStar(require("./folder"), exports);
|
|
|
61
61
|
__exportStar(require("./user-to-product"), exports);
|
|
62
62
|
__exportStar(require("./user-to-subscription"), exports);
|
|
63
63
|
__exportStar(require("./video"), exports);
|
|
64
|
+
__exportStar(require("./video-editor"), exports);
|
|
64
65
|
__exportStar(require("./writer"), exports);
|
|
65
66
|
__exportStar(require("./image-editor"), exports);
|
|
66
67
|
__exportStar(require("./daily-streak"), exports);
|
|
67
68
|
__exportStar(require("./cabinet"), exports);
|
|
69
|
+
__exportStar(require("./webmaster"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VIDEO_EDITOR_ROUTES = exports.VIDEO_EDITOR_CONTROLLER_PUBLIC = exports.VIDEO_EDITOR_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.VIDEO_EDITOR_CONTROLLER_PRIVATE = 'private/tools/video-editor';
|
|
5
|
+
exports.VIDEO_EDITOR_CONTROLLER_PUBLIC = 'public/tools/video-editor';
|
|
6
|
+
exports.VIDEO_EDITOR_ROUTES = {
|
|
7
|
+
CONFIG: 'config',
|
|
8
|
+
EXECUTE: 'execute',
|
|
9
|
+
GET_JOBS: 'jobs',
|
|
10
|
+
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
|
+
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
|
+
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
13
|
+
DELETE: (uuid) => `jobs/${uuid}`,
|
|
14
|
+
DELETE_ALL: 'jobs',
|
|
15
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WEBMASTER_ROUTES = exports.WEBMASTER_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.WEBMASTER_CONTROLLER_PRIVATE = 'private/referral';
|
|
5
|
+
exports.WEBMASTER_ROUTES = {
|
|
6
|
+
GET_MY: 'my',
|
|
7
|
+
GET_BALANCE_OVERVIEW: 'overview',
|
|
8
|
+
CREATE: '',
|
|
9
|
+
CREATE_WITHDRAWAL_REQUEST: 'withdraw',
|
|
10
|
+
CONFIRM_WITHDRAWAL: (uuid) => `withdraw/${uuid}`,
|
|
11
|
+
UPDATE: (uuid) => `${uuid}`,
|
|
12
|
+
};
|
|
@@ -19,4 +19,5 @@ exports.WRITER_ROUTES = {
|
|
|
19
19
|
FIX_ERRORS: (uuid) => `documents/${uuid}/actions/fix-errors`,
|
|
20
20
|
GENERATE_TEXT: (uuid) => `documents/${uuid}/actions/generate-text`,
|
|
21
21
|
EXPORT_AS_DOCX: (uuid) => `documents/${uuid}/export/docx`,
|
|
22
|
+
SET_REACTION: (uuid) => `documents/${uuid}/reaction`,
|
|
22
23
|
};
|
package/build/api/routes.js
CHANGED
|
@@ -274,4 +274,9 @@ exports.REST_API = {
|
|
|
274
274
|
GET_USER_STATISTICS_OVERVIEW: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_OVERVIEW}`,
|
|
275
275
|
GET_USER_STATISTICS_BY_MONTH: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_BY_MONTH}`,
|
|
276
276
|
},
|
|
277
|
+
WEBMASTER_PRIVATE: {
|
|
278
|
+
GET_MY: `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.GET_MY}`,
|
|
279
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.CREATE}`,
|
|
280
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WEBMASTER_CONTROLLER_PRIVATE}/${CONTROLLERS.WEBMASTER_ROUTES.UPDATE(uuid)}`,
|
|
281
|
+
},
|
|
277
282
|
};
|
package/build/commands/index.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWebmasterPromocodeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetWebmasterPromocodeCommand;
|
|
7
|
+
(function (GetWebmasterPromocodeCommand) {
|
|
8
|
+
GetWebmasterPromocodeCommand.RequestSchema = models_1.WebmasterSchema.pick({ alias: true });
|
|
9
|
+
GetWebmasterPromocodeCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
isEligible: zod_1.z.boolean(),
|
|
12
|
+
promocode: zod_1.z.string().nullable(),
|
|
13
|
+
amount: zod_1.z.number().nullable(),
|
|
14
|
+
endDate: zod_1.z.date().nullable(),
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
17
|
+
})(GetWebmasterPromocodeCommand || (exports.GetWebmasterPromocodeCommand = GetWebmasterPromocodeCommand = {}));
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./find-promocode.command"), exports);
|
|
|
20
20
|
__exportStar(require("./get-upsell-offer.command"), exports);
|
|
21
21
|
__exportStar(require("./update-promocode.command"), exports);
|
|
22
22
|
__exportStar(require("./validate-promocode.command"), exports);
|
|
23
|
+
__exportStar(require("./get-webmaster-promocode.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllVideoEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var DeleteAllVideoEditorJobsCommand;
|
|
6
|
+
(function (DeleteAllVideoEditorJobsCommand) {
|
|
7
|
+
DeleteAllVideoEditorJobsCommand.RequestSchema = zod_1.z.object({});
|
|
8
|
+
DeleteAllVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
})(DeleteAllVideoEditorJobsCommand || (exports.DeleteAllVideoEditorJobsCommand = DeleteAllVideoEditorJobsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVideoEditorJobByUUIDCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var DeleteVideoEditorJobByUUIDCommand;
|
|
7
|
+
(function (DeleteVideoEditorJobByUUIDCommand) {
|
|
8
|
+
DeleteVideoEditorJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
DeleteVideoEditorJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
})(DeleteVideoEditorJobByUUIDCommand || (exports.DeleteVideoEditorJobByUUIDCommand = DeleteVideoEditorJobByUUIDCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EditVideoCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var EditVideoCommand;
|
|
7
|
+
(function (EditVideoCommand) {
|
|
8
|
+
EditVideoCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
prompt: zod_1.z.string(),
|
|
11
|
+
fileId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
EditVideoCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.VideoEditorJobSchema,
|
|
15
|
+
});
|
|
16
|
+
})(EditVideoCommand || (exports.EditVideoCommand = EditVideoCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVideoEditorJobByIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindVideoEditorJobByIdCommand;
|
|
7
|
+
(function (FindVideoEditorJobByIdCommand) {
|
|
8
|
+
FindVideoEditorJobByIdCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
FindVideoEditorJobByIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.VideoEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(FindVideoEditorJobByIdCommand || (exports.FindVideoEditorJobByIdCommand = FindVideoEditorJobByIdCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindVideoEditorJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var FindVideoEditorJobsCommand;
|
|
7
|
+
(function (FindVideoEditorJobsCommand) {
|
|
8
|
+
FindVideoEditorJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
+
title: zod_1.z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
FindVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.VideoEditorJobSchema),
|
|
15
|
+
totalPages: zod_1.z.number(),
|
|
16
|
+
page: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindVideoEditorJobsCommand || (exports.FindVideoEditorJobsCommand = FindVideoEditorJobsCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVideoEditorConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetVideoEditorConfigCommand;
|
|
7
|
+
(function (GetVideoEditorConfigCommand) {
|
|
8
|
+
GetVideoEditorConfigCommand.RequestSchema = zod_1.z.object({});
|
|
9
|
+
GetVideoEditorConfigCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
models: zod_1.z.array(models_1.VideoEditorModelSchema),
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
14
|
+
})(GetVideoEditorConfigCommand || (exports.GetVideoEditorConfigCommand = GetVideoEditorConfigCommand = {}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./delete-all-video-editor-jobs.command"), exports);
|
|
18
|
+
__exportStar(require("./delete-video-editor-job-by-uuid.command"), exports);
|
|
19
|
+
__exportStar(require("./edit-video.command"), exports);
|
|
20
|
+
__exportStar(require("./find-video-editor-job-by-id.command"), exports);
|
|
21
|
+
__exportStar(require("./find-video-editor-jobs.command"), exports);
|
|
22
|
+
__exportStar(require("./get-video-editor-config.command"), exports);
|
|
23
|
+
__exportStar(require("./retry-video-editor-job.command"), exports);
|
|
24
|
+
__exportStar(require("./set-reaction-to-video-editor-job.command"), exports);
|
|
25
|
+
__exportStar(require("./update-video-editor-job-title.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryVideoEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var RetryVideoEditorJobCommand;
|
|
7
|
+
(function (RetryVideoEditorJobCommand) {
|
|
8
|
+
RetryVideoEditorJobCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
RetryVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.VideoEditorJobSchema,
|
|
13
|
+
});
|
|
14
|
+
})(RetryVideoEditorJobCommand || (exports.RetryVideoEditorJobCommand = RetryVideoEditorJobCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToVideoEditorJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SetReactionToVideoEditorJobCommand;
|
|
8
|
+
(function (SetReactionToVideoEditorJobCommand) {
|
|
9
|
+
SetReactionToVideoEditorJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionToVideoEditorJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
SetReactionToVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.VideoEditorJobSchema,
|
|
17
|
+
});
|
|
18
|
+
})(SetReactionToVideoEditorJobCommand || (exports.SetReactionToVideoEditorJobCommand = SetReactionToVideoEditorJobCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVideoEditorJobTitleCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateVideoEditorJobTitleCommand;
|
|
7
|
+
(function (UpdateVideoEditorJobTitleCommand) {
|
|
8
|
+
UpdateVideoEditorJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
UpdateVideoEditorJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateVideoEditorJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VideoEditorJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateVideoEditorJobTitleCommand || (exports.UpdateVideoEditorJobTitleCommand = UpdateVideoEditorJobTitleCommand = {}));
|
|
@@ -29,3 +29,4 @@ __exportStar(require("./writer-shorten-text.command"), exports);
|
|
|
29
29
|
__exportStar(require("./writer-fix-errors.command"), exports);
|
|
30
30
|
__exportStar(require("./writer-generate-text.command"), exports);
|
|
31
31
|
__exportStar(require("./export-writer-document-as-docx.command"), exports);
|
|
32
|
+
__exportStar(require("./set-reaction.writer-document.command"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionWriterDocumentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
var SetReactionWriterDocumentCommand;
|
|
8
|
+
(function (SetReactionWriterDocumentCommand) {
|
|
9
|
+
SetReactionWriterDocumentCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionWriterDocumentCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION),
|
|
14
|
+
});
|
|
15
|
+
SetReactionWriterDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.WriterDocumentSchema,
|
|
17
|
+
});
|
|
18
|
+
})(SetReactionWriterDocumentCommand || (exports.SetReactionWriterDocumentCommand = SetReactionWriterDocumentCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmWithdrawalCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var ConfirmWithdrawalCommand;
|
|
7
|
+
(function (ConfirmWithdrawalCommand) {
|
|
8
|
+
ConfirmWithdrawalCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
ConfirmWithdrawalCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.WebmasterBalanceSchema,
|
|
13
|
+
});
|
|
14
|
+
})(ConfirmWithdrawalCommand || (exports.ConfirmWithdrawalCommand = ConfirmWithdrawalCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateWebmasterCommand;
|
|
7
|
+
(function (CreateWebmasterCommand) {
|
|
8
|
+
CreateWebmasterCommand.RequestSchema = models_1.WebmasterSchema.pick({
|
|
9
|
+
organization: true,
|
|
10
|
+
organizationType: true,
|
|
11
|
+
tin: true,
|
|
12
|
+
});
|
|
13
|
+
CreateWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.WebmasterSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateWebmasterCommand || (exports.CreateWebmasterCommand = CreateWebmasterCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWithdrawalRequestCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var CreateWithdrawalRequestCommand;
|
|
6
|
+
(function (CreateWithdrawalRequestCommand) {
|
|
7
|
+
CreateWithdrawalRequestCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
amount: zod_1.z.number().positive(),
|
|
9
|
+
tgProfile: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
CreateWithdrawalRequestCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
isSuccess: zod_1.z.boolean(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(CreateWithdrawalRequestCommand || (exports.CreateWithdrawalRequestCommand = CreateWithdrawalRequestCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMyWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetMyWebmasterCommand;
|
|
7
|
+
(function (GetMyWebmasterCommand) {
|
|
8
|
+
GetMyWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.WebmasterWithBalanceSchema,
|
|
10
|
+
});
|
|
11
|
+
})(GetMyWebmasterCommand || (exports.GetMyWebmasterCommand = GetMyWebmasterCommand = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWebmasterBalanceOverviewCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
var GetWebmasterBalanceOverviewCommand;
|
|
7
|
+
(function (GetWebmasterBalanceOverviewCommand) {
|
|
8
|
+
GetWebmasterBalanceOverviewCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
startDate: zod_1.z.string().refine((v) => !isNaN(Date.parse(v)), {
|
|
10
|
+
message: 'from must be a valid date string',
|
|
11
|
+
}),
|
|
12
|
+
endDate: zod_1.z.string().refine((v) => !isNaN(Date.parse(v)), {
|
|
13
|
+
message: 'to must be a valid date string',
|
|
14
|
+
}),
|
|
15
|
+
groupBy: zod_1.z.nativeEnum(constants_1.GROUP_BY).default(constants_1.GROUP_BY.DAY),
|
|
16
|
+
});
|
|
17
|
+
GetWebmasterBalanceOverviewCommand.WebmasterBalanceOverviewResponseSchema = zod_1.z.object({
|
|
18
|
+
startDate: zod_1.z.string(),
|
|
19
|
+
endDate: zod_1.z.string(),
|
|
20
|
+
total_deposited: zod_1.z.number(),
|
|
21
|
+
total_withdrawn: zod_1.z.number(),
|
|
22
|
+
});
|
|
23
|
+
GetWebmasterBalanceOverviewCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
+
data: zod_1.z.array(GetWebmasterBalanceOverviewCommand.WebmasterBalanceOverviewResponseSchema),
|
|
25
|
+
});
|
|
26
|
+
})(GetWebmasterBalanceOverviewCommand || (exports.GetWebmasterBalanceOverviewCommand = GetWebmasterBalanceOverviewCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-webmaster.command"), exports);
|
|
18
|
+
__exportStar(require("./update-webmaster.command"), exports);
|
|
19
|
+
__exportStar(require("./get-my-webmaster.command"), exports);
|
|
20
|
+
__exportStar(require("./get-webmaster-balance-overview.command"), exports);
|
|
21
|
+
__exportStar(require("./create-withdrawal-request.command"), exports);
|
|
22
|
+
__exportStar(require("./confirm-withdrawal.command"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWebmasterCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateWebmasterCommand;
|
|
7
|
+
(function (UpdateWebmasterCommand) {
|
|
8
|
+
UpdateWebmasterCommand.RequestParamSchema = models_1.WebmasterSchema.pick({ uuid: true });
|
|
9
|
+
UpdateWebmasterCommand.RequestSchema = models_1.WebmasterSchema.partial();
|
|
10
|
+
UpdateWebmasterCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: models_1.WebmasterSchema,
|
|
12
|
+
});
|
|
13
|
+
})(UpdateWebmasterCommand || (exports.UpdateWebmasterCommand = UpdateWebmasterCommand = {}));
|