@purpleschool/gptbot 0.5.38 → 0.5.40

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.
@@ -875,4 +875,9 @@ exports.ERRORS = {
875
875
  message: 'У пользователя нет доступа к премиум моделям',
876
876
  httpCode: 400,
877
877
  },
878
+ CHAT_TRANSFER_ERROR: {
879
+ code: 'A200',
880
+ message: 'Произошла ошибка при переносе чата',
881
+ httpCode: 500,
882
+ },
878
883
  };
@@ -35,4 +35,5 @@ __exportStar(require("./subscription"), exports);
35
35
  __exportStar(require("./task"), exports);
36
36
  __exportStar(require("./telegram"), exports);
37
37
  __exportStar(require("./transaction"), exports);
38
+ __exportStar(require("./unregistered-user"), exports);
38
39
  __exportStar(require("./user"), exports);
@@ -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("./unregistered-user-status.enum"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UNREGISTERED_USER_STATUS = void 0;
4
+ var UNREGISTERED_USER_STATUS;
5
+ (function (UNREGISTERED_USER_STATUS) {
6
+ UNREGISTERED_USER_STATUS["ACTIVE"] = "active";
7
+ UNREGISTERED_USER_STATUS["FRAUD"] = "fraud";
8
+ UNREGISTERED_USER_STATUS["TRANSFERRED"] = "transferred";
9
+ })(UNREGISTERED_USER_STATUS || (exports.UNREGISTERED_USER_STATUS = UNREGISTERED_USER_STATUS = {}));
@@ -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("./enums"), exports);
@@ -6,14 +6,14 @@ const constants_1 = require("../constants");
6
6
  exports.MidjourneyJobSchema = zod_1.z.object({
7
7
  id: zod_1.z.string(),
8
8
  prompt: zod_1.z.string(),
9
- results: zod_1.z.string().nullable(),
9
+ results: zod_1.z.string().nullable().optional(),
10
10
  user_created: zod_1.z.string(),
11
11
  date_created: zod_1.z.string(),
12
12
  status: zod_1.z.nativeEnum(constants_1.MIDJOURNEY_JOB_STATUS),
13
13
  progress: zod_1.z.number().nullable(),
14
14
  error: zod_1.z.string().nullable(),
15
15
  upscaled_urls: zod_1.z.array(zod_1.z.string()).nullable(),
16
- upscaled: zod_1.z.array(zod_1.z.string()),
16
+ upscaled: zod_1.z.array(zod_1.z.string()).optional(),
17
17
  url: zod_1.z.string().nullable().optional(),
18
18
  ref: zod_1.z.string().nullable().optional(),
19
19
  });
@@ -877,4 +877,9 @@ export const ERRORS = {
877
877
  message: 'У пользователя нет доступа к премиум моделям',
878
878
  httpCode: 400,
879
879
  },
880
+ CHAT_TRANSFER_ERROR: {
881
+ code: 'A200',
882
+ message: 'Произошла ошибка при переносе чата',
883
+ httpCode: 500,
884
+ },
880
885
  };
@@ -19,4 +19,5 @@ export * from './subscription';
19
19
  export * from './task';
20
20
  export * from './telegram';
21
21
  export * from './transaction';
22
+ export * from './unregistered-user';
22
23
  export * from './user';
@@ -0,0 +1 @@
1
+ export * from './unregistered-user-status.enum';
@@ -0,0 +1,5 @@
1
+ export enum UNREGISTERED_USER_STATUS {
2
+ ACTIVE = 'active',
3
+ FRAUD = 'fraud',
4
+ TRANSFERRED = 'transferred',
5
+ }
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -4,14 +4,14 @@ import { MIDJOURNEY_JOB_STATUS } from '../constants';
4
4
  export const MidjourneyJobSchema = z.object({
5
5
  id: z.string(),
6
6
  prompt: z.string(),
7
- results: z.string().nullable(),
7
+ results: z.string().nullable().optional(),
8
8
  user_created: z.string(),
9
9
  date_created: z.string(),
10
10
  status: z.nativeEnum(MIDJOURNEY_JOB_STATUS),
11
11
  progress: z.number().nullable(),
12
12
  error: z.string().nullable(),
13
13
  upscaled_urls: z.array(z.string()).nullable(),
14
- upscaled: z.array(z.string()),
14
+ upscaled: z.array(z.string()).optional(),
15
15
  url: z.string().nullable().optional(),
16
16
  ref: z.string().nullable().optional(),
17
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.38",
3
+ "version": "0.5.40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {