@purpleschool/gptbot 0.5.26 → 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.
@@ -6,6 +6,6 @@ const zod_1 = require("zod");
6
6
  var FindAllActiveTasksCommand;
7
7
  (function (FindAllActiveTasksCommand) {
8
8
  FindAllActiveTasksCommand.ResponseSchema = zod_1.z.object({
9
- data: zod_1.z.array(models_1.TaskSchema),
9
+ data: zod_1.z.array(models_1.UserTaskSchema),
10
10
  });
11
11
  })(FindAllActiveTasksCommand || (exports.FindAllActiveTasksCommand = FindAllActiveTasksCommand = {}));
@@ -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 = {}));
@@ -34,7 +34,6 @@ __exportStar(require("./referral-bonus.schema"), exports);
34
34
  __exportStar(require("./section.schema"), exports);
35
35
  __exportStar(require("./subscription-upgrade-schema"), exports);
36
36
  __exportStar(require("./subscription.schema"), exports);
37
- __exportStar(require("./task.schema"), exports);
38
37
  __exportStar(require("./unregistered-user.schema"), exports);
39
38
  __exportStar(require("./user-task.schema"), exports);
40
39
  __exportStar(require("./user-to-subscription.schema"), exports);
@@ -1,9 +1,9 @@
1
- import { TaskSchema } from '../../models';
1
+ import { UserTaskSchema } from '../../models';
2
2
  import { z } from 'zod';
3
3
 
4
4
  export namespace FindAllActiveTasksCommand {
5
5
  export const ResponseSchema = z.object({
6
- data: z.array(TaskSchema),
6
+ data: z.array(UserTaskSchema),
7
7
  });
8
8
 
9
9
  export type Response = z.infer<typeof ResponseSchema>;
@@ -1,5 +1,6 @@
1
1
  export enum USER_TO_TASK_STATUS {
2
2
  IDLE = 'idle',
3
3
  READY_FOR_CHECK = 'ready_for_check',
4
+ BLOCK = 'block',
4
5
  COMPLETED = 'completed',
5
6
  }
package/models/index.ts CHANGED
@@ -18,7 +18,6 @@ export * from './referral-bonus.schema';
18
18
  export * from './section.schema';
19
19
  export * from './subscription-upgrade-schema';
20
20
  export * from './subscription.schema';
21
- export * from './task.schema';
22
21
  export * from './unregistered-user.schema';
23
22
  export * from './user-task.schema';
24
23
  export * from './user-to-subscription.schema';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.26",
3
+ "version": "0.5.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskSchema = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../constants");
6
- exports.TaskSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
8
- title: zod_1.z.string(),
9
- icon: zod_1.z.string(),
10
- reward: zod_1.z.number(),
11
- type: zod_1.z.nativeEnum(constants_1.TASK_TYPE),
12
- status: zod_1.z.nativeEnum(constants_1.TASK_STATUS),
13
- description: zod_1.z.string(),
14
- startAt: zod_1.z.date(),
15
- endAt: zod_1.z.date().nullable().optional(),
16
- });
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import { TASK_STATUS, TASK_TYPE } from '../constants';
3
-
4
- export const TaskSchema = z.object({
5
- uuid: z.string().uuid(),
6
- title: z.string(),
7
- icon: z.string(),
8
- reward: z.number(),
9
- type: z.nativeEnum(TASK_TYPE),
10
- status: z.nativeEnum(TASK_STATUS),
11
- description: z.string(),
12
- startAt: z.date(),
13
- endAt: z.date().nullable().optional(),
14
- });