tetrons 2.3.53 → 2.3.55
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/dist/app/api/ai-action/route.cjs +34 -9
- package/dist/app/api/export/route.cjs +29 -4
- package/dist/app/api/register/route.cjs +76 -14
- package/dist/app/api/register/route.mjs +32 -5
- package/dist/app/api/save/route.cjs +48 -13
- package/dist/app/api/transcribe/route.cjs +38 -12
- package/dist/app/api/validate/route.cjs +79 -14
- package/dist/app/api/validate/route.mjs +34 -5
- package/dist/index.node.cjs +17073 -0
- package/dist/{index.cjs → index.node.mjs} +433 -433
- package/package.json +6 -4
- package/dist/app/api/ai-action/route.d.mts +0 -9
- package/dist/app/api/ai-action/route.d.ts +0 -9
- package/dist/app/api/export/route.d.mts +0 -3
- package/dist/app/api/export/route.d.ts +0 -3
- package/dist/app/api/register/route.d.mts +0 -10
- package/dist/app/api/register/route.d.ts +0 -10
- package/dist/app/api/save/route.d.mts +0 -9
- package/dist/app/api/save/route.d.ts +0 -9
- package/dist/app/api/transcribe/route.d.mts +0 -10
- package/dist/app/api/transcribe/route.d.ts +0 -10
- package/dist/app/api/validate/route.d.mts +0 -13
- package/dist/app/api/validate/route.d.ts +0 -13
- package/dist/chunk-37LFEKRW.cjs +0 -36
- package/dist/chunk-M2F2EU6B.mjs +0 -36
- package/dist/index.d.ts +0 -13
- /package/dist/{index.mjs → index.browser.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tetrons",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.55",
|
|
4
4
|
"description": "A Next.js project written in TypeScript",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -75,9 +75,11 @@
|
|
|
75
75
|
"license": "MIT",
|
|
76
76
|
"exports": {
|
|
77
77
|
".": {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
"import": "./dist/index.mjs",
|
|
79
|
+
"require": "./dist/index.cjs",
|
|
80
|
+
"browser": "./dist/index.browser.js",
|
|
81
|
+
"node": "./dist/index.node.js"
|
|
82
|
+
},
|
|
81
83
|
"./style.css": "./dist/styles/tetrons.css",
|
|
82
84
|
"./app/api/ai-action/route": {
|
|
83
85
|
"import": "./dist/app/api/ai-action/route.mjs",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
|
|
3
|
-
declare function OPTIONS(): Promise<Response>;
|
|
4
|
-
declare function POST(req: NextRequest): Promise<NextResponse<{
|
|
5
|
-
error: string;
|
|
6
|
-
}> | NextResponse<{
|
|
7
|
-
valid: boolean;
|
|
8
|
-
version: any;
|
|
9
|
-
email: any;
|
|
10
|
-
organization: any;
|
|
11
|
-
}>>;
|
|
12
|
-
|
|
13
|
-
export { OPTIONS, POST };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
|
|
3
|
-
declare function OPTIONS(): Promise<Response>;
|
|
4
|
-
declare function POST(req: NextRequest): Promise<NextResponse<{
|
|
5
|
-
error: string;
|
|
6
|
-
}> | NextResponse<{
|
|
7
|
-
valid: boolean;
|
|
8
|
-
version: any;
|
|
9
|
-
email: any;
|
|
10
|
-
organization: any;
|
|
11
|
-
}>>;
|
|
12
|
-
|
|
13
|
-
export { OPTIONS, POST };
|
package/dist/chunk-37LFEKRW.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/lib/db.js
|
|
2
|
-
var _mongoose = require('mongoose'); var _mongoose2 = _interopRequireDefault(_mongoose);
|
|
3
|
-
var MONGO_URL = process.env.MONGO_URL;
|
|
4
|
-
var connectDB = async () => {
|
|
5
|
-
if (_mongoose2.default.connection.readyState >= 1) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
try {
|
|
9
|
-
await _mongoose2.default.connect(MONGO_URL);
|
|
10
|
-
console.log("Connected to MongoDB \u{1F44D}");
|
|
11
|
-
} catch (error) {
|
|
12
|
-
console.error("MongoDB connection failed \u274C", error);
|
|
13
|
-
process.exit(1);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// src/models/ApiKey.ts
|
|
18
|
-
|
|
19
|
-
var ApiKeySchema = new _mongoose2.default.Schema({
|
|
20
|
-
email: { type: String, required: true },
|
|
21
|
-
organization: { type: String, required: true },
|
|
22
|
-
version: {
|
|
23
|
-
type: String,
|
|
24
|
-
enum: ["free", "pro", "premium", "platinum"],
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
apiKey: { type: String, required: true, unique: true },
|
|
28
|
-
createdAt: { type: Date, default: Date.now },
|
|
29
|
-
expiresAt: { type: Date }
|
|
30
|
-
});
|
|
31
|
-
var ApiKey = _mongoose2.default.models.ApiKey || _mongoose2.default.model("ApiKey", ApiKeySchema);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.connectDB = connectDB; exports.ApiKey = ApiKey;
|
package/dist/chunk-M2F2EU6B.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// src/lib/db.js
|
|
2
|
-
import mongoose from "mongoose";
|
|
3
|
-
var MONGO_URL = process.env.MONGO_URL;
|
|
4
|
-
var connectDB = async () => {
|
|
5
|
-
if (mongoose.connection.readyState >= 1) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
try {
|
|
9
|
-
await mongoose.connect(MONGO_URL);
|
|
10
|
-
console.log("Connected to MongoDB \u{1F44D}");
|
|
11
|
-
} catch (error) {
|
|
12
|
-
console.error("MongoDB connection failed \u274C", error);
|
|
13
|
-
process.exit(1);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// src/models/ApiKey.ts
|
|
18
|
-
import mongoose2 from "mongoose";
|
|
19
|
-
var ApiKeySchema = new mongoose2.Schema({
|
|
20
|
-
email: { type: String, required: true },
|
|
21
|
-
organization: { type: String, required: true },
|
|
22
|
-
version: {
|
|
23
|
-
type: String,
|
|
24
|
-
enum: ["free", "pro", "premium", "platinum"],
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
apiKey: { type: String, required: true, unique: true },
|
|
28
|
-
createdAt: { type: Date, default: Date.now },
|
|
29
|
-
expiresAt: { type: Date }
|
|
30
|
-
});
|
|
31
|
-
var ApiKey = mongoose2.models.ApiKey || mongoose2.model("ApiKey", ApiKeySchema);
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
connectDB,
|
|
35
|
-
ApiKey
|
|
36
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
type EditorContentProps = {
|
|
4
|
-
apiKey: string;
|
|
5
|
-
};
|
|
6
|
-
declare function EditorContent({ apiKey }: EditorContentProps): React.JSX.Element;
|
|
7
|
-
|
|
8
|
-
declare function initializeTetrons(apiKey: string): Promise<void>;
|
|
9
|
-
declare function getTetronsVersion(): "" | "free" | "pro" | "premium" | "platinum";
|
|
10
|
-
declare function isApiKeyValid(): boolean;
|
|
11
|
-
declare function getTetronsRemainingDays(): Promise<number | null>;
|
|
12
|
-
|
|
13
|
-
export { EditorContent, EditorContent as default, getTetronsRemainingDays, getTetronsVersion, initializeTetrons, isApiKeyValid };
|
|
File without changes
|