@purpleschool/gptbot 0.5.25 → 0.5.27
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/index.ts +1 -0
- package/api/controllers/task.ts +5 -0
- package/build/api/controllers/index.js +1 -0
- package/build/api/controllers/task.js +7 -0
- package/build/commands/index.js +1 -0
- package/build/commands/task/find-all-active-tasks.command.js +11 -0
- package/build/commands/task/index.js +17 -0
- package/build/constants/task/enums/user-to-task-status.enum.js +1 -0
- package/commands/index.ts +1 -0
- package/commands/task/find-all-active-tasks.command.ts +10 -0
- package/commands/task/index.ts +1 -0
- package/constants/task/enums/user-to-task-status.enum.ts +1 -0
- package/package.json +1 -1
package/api/controllers/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./payment"), exports);
|
|
|
31
31
|
__exportStar(require("./product"), exports);
|
|
32
32
|
__exportStar(require("./question"), exports);
|
|
33
33
|
__exportStar(require("./subscription"), exports);
|
|
34
|
+
__exportStar(require("./task"), exports);
|
|
34
35
|
__exportStar(require("./unregistered-user"), exports);
|
|
35
36
|
__exportStar(require("./user-to-task"), exports);
|
|
36
37
|
__exportStar(require("./user"), exports);
|
package/build/commands/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./product"), exports);
|
|
|
28
28
|
__exportStar(require("./question"), exports);
|
|
29
29
|
__exportStar(require("./referral"), exports);
|
|
30
30
|
__exportStar(require("./subscription"), exports);
|
|
31
|
+
__exportStar(require("./task"), exports);
|
|
31
32
|
__exportStar(require("./unregistered-user"), exports);
|
|
32
33
|
__exportStar(require("./user"), exports);
|
|
33
34
|
__exportStar(require("./user-to-subscription"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindAllActiveTasksCommand = void 0;
|
|
4
|
+
const models_1 = require("../../models");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
var FindAllActiveTasksCommand;
|
|
7
|
+
(function (FindAllActiveTasksCommand) {
|
|
8
|
+
FindAllActiveTasksCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.UserTaskSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindAllActiveTasksCommand || (exports.FindAllActiveTasksCommand = FindAllActiveTasksCommand = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./find-all-active-tasks.command"), exports);
|
|
@@ -5,5 +5,6 @@ var USER_TO_TASK_STATUS;
|
|
|
5
5
|
(function (USER_TO_TASK_STATUS) {
|
|
6
6
|
USER_TO_TASK_STATUS["IDLE"] = "idle";
|
|
7
7
|
USER_TO_TASK_STATUS["READY_FOR_CHECK"] = "ready_for_check";
|
|
8
|
+
USER_TO_TASK_STATUS["BLOCK"] = "block";
|
|
8
9
|
USER_TO_TASK_STATUS["COMPLETED"] = "completed";
|
|
9
10
|
})(USER_TO_TASK_STATUS || (exports.USER_TO_TASK_STATUS = USER_TO_TASK_STATUS = {}));
|
package/commands/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserTaskSchema } from '../../models';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
export namespace FindAllActiveTasksCommand {
|
|
5
|
+
export const ResponseSchema = z.object({
|
|
6
|
+
data: z.array(UserTaskSchema),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './find-all-active-tasks.command';
|