@purpleschool/gptbot 0.3.5 → 0.3.6

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.
@@ -1 +1 @@
1
- export const UNREGISTERED_USER_CONTROLLER = 'unregistered-user' as const;
1
+ export const UNREGISTERED_USER_CONTROLLER = 'unregistered-user' as const;
@@ -3,4 +3,5 @@ export const USER_CONTROLLER = 'users' as const;
3
3
  export const USER_ROUTES = {
4
4
  GET: 'me',
5
5
  POST: 'up-balance',
6
+ CHECK_EMAIL: 'check-email',
6
7
  } as const;
package/api/routes.ts CHANGED
@@ -14,6 +14,7 @@ export const REST_API = {
14
14
  USERS: {
15
15
  GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
16
16
  POST: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
17
+ CHECK_EMAIL: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CHECK_EMAIL}`,
17
18
  },
18
19
  PAGE: {
19
20
  GET: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL}`,
@@ -5,4 +5,5 @@ exports.USER_CONTROLLER = 'users';
5
5
  exports.USER_ROUTES = {
6
6
  GET: 'me',
7
7
  POST: 'up-balance',
8
+ CHECK_EMAIL: 'check-email',
8
9
  };
@@ -38,6 +38,7 @@ exports.REST_API = {
38
38
  USERS: {
39
39
  GET: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
40
40
  POST: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
41
+ CHECK_EMAIL: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CHECK_EMAIL}`,
41
42
  },
42
43
  PAGE: {
43
44
  GET: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL}`,
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckEmailCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var CheckEmailCommand;
6
+ (function (CheckEmailCommand) {
7
+ CheckEmailCommand.RequestSchema = zod_1.z.object({
8
+ email: zod_1.z.string().email(),
9
+ });
10
+ })(CheckEmailCommand || (exports.CheckEmailCommand = CheckEmailCommand = {}));
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./find-user.command"), exports);
18
18
  __exportStar(require("./up-token-bonus-balance.command"), exports);
19
+ __exportStar(require("./check-email.command"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace CheckEmailCommand {
4
+ export const RequestSchema = z.object({
5
+ email: z.string().email(),
6
+ })
7
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './find-user.command';
2
2
  export * from './up-token-bonus-balance.command';
3
+ export * from './check-email.command';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {