@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.
- package/build/constants/errors/errors.js +5 -0
- package/build/constants/index.js +1 -0
- package/build/constants/unregistered-user/enums/index.js +17 -0
- package/build/constants/unregistered-user/enums/unregistered-user-status.enum.js +9 -0
- package/build/constants/unregistered-user/index.js +17 -0
- package/build/models/midjourney-job.schema.js +2 -2
- package/constants/errors/errors.ts +5 -0
- package/constants/index.ts +1 -0
- package/constants/unregistered-user/enums/index.ts +1 -0
- package/constants/unregistered-user/enums/unregistered-user-status.enum.ts +5 -0
- package/constants/unregistered-user/index.ts +1 -0
- package/models/midjourney-job.schema.ts +2 -2
- package/package.json +1 -1
package/build/constants/index.js
CHANGED
|
@@ -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
|
});
|
package/constants/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './unregistered-user-status.enum';
|
|
@@ -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
|
});
|