@m5kdev/backend 0.8.4 → 0.8.5
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/src/modules/ai/ai.repository.d.mts +1 -1
- package/dist/src/modules/ai/ai.repository.mjs +1 -1
- package/dist/src/modules/ai/ai.service.mjs +1 -1
- package/dist/src/modules/auth/auth.dto.d.mts +2 -2
- package/dist/src/modules/auth/auth.lib.d.mts +5 -5
- package/dist/src/modules/auth/auth.middleware.d.mts +1 -1
- package/dist/src/modules/auth/auth.repository.mjs +1 -1
- package/dist/src/modules/auth/auth.trpc.d.mts +7 -7
- package/dist/src/modules/auth/auth.utils.mjs +1 -1
- package/dist/src/modules/base/base.repository.d.mts +1 -1
- package/dist/src/modules/billing/billing.repository.d.mts +1 -1
- package/dist/src/modules/connect/connect.dto.d.mts +2 -2
- package/dist/src/modules/connect/connect.repository.d.mts +2 -2
- package/dist/src/modules/connect/connect.service.d.mts +2 -2
- package/dist/src/modules/file/file.service.mjs +3 -3
- package/dist/src/modules/recurrence/recurrence.repository.d.mts +1 -1
- package/dist/src/modules/recurrence/recurrence.service.d.mts +4 -4
- package/dist/src/modules/recurrence/recurrence.trpc.d.mts +3 -3
- package/dist/src/modules/tag/tag.dto.d.mts +1 -1
- package/dist/src/modules/tag/tag.trpc.d.mts +2 -2
- package/dist/src/modules/video/video.service.mjs +2 -2
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerResultAsync } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
3
|
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
4
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
5
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/ai/ai.repository.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ai_db_exports } from "./ai.db.mjs";
|
|
2
1
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
2
|
+
import { ai_db_exports } from "./ai.db.mjs";
|
|
3
3
|
import { eq, sql } from "drizzle-orm";
|
|
4
4
|
import { ok } from "neverthrow";
|
|
5
5
|
//#region src/modules/ai/ai.repository.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { repairJsonPrompt } from "./ai.prompts.mjs";
|
|
2
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
|
+
import { repairJsonPrompt } from "./ai.prompts.mjs";
|
|
3
3
|
import { err, ok } from "neverthrow";
|
|
4
4
|
import { OPENAI_TEXT_EMBEDDING_3_SMALL } from "@m5kdev/commons/modules/ai/ai.constants";
|
|
5
5
|
import { arrayToPseudoXML } from "@m5kdev/commons/modules/ai/ai.utils";
|
|
@@ -12,8 +12,8 @@ declare const waitlistSchema: z.ZodObject<{
|
|
|
12
12
|
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
declare const waitlistOutputSchema: z.ZodObject<{
|
|
15
|
-
name: z.ZodNullable<z.ZodString>;
|
|
16
15
|
id: z.ZodString;
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
17
|
email: z.ZodNullable<z.ZodString>;
|
|
18
18
|
createdAt: z.ZodDate;
|
|
19
19
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -58,8 +58,8 @@ declare const accountClaimMagicLinkOutputSchema: z.ZodObject<{
|
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
email: z.ZodString;
|
|
60
60
|
createdAt: z.ZodDate;
|
|
61
|
-
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
62
61
|
userId: z.ZodString;
|
|
62
|
+
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
63
63
|
claimId: z.ZodString;
|
|
64
64
|
url: z.ZodString;
|
|
65
65
|
}, z.core.$strip>;
|
|
@@ -2,8 +2,8 @@ import { LiteralUnion } from "../../../node_modules/.pnpm/@better-auth_core@1.4.
|
|
|
2
2
|
import { BillingService } from "../billing/billing.service.mjs";
|
|
3
3
|
import { EmailService } from "../email/email.service.mjs";
|
|
4
4
|
import { sessions, users } from "./auth.db.mjs";
|
|
5
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
6
5
|
import { InferSelectModel } from "drizzle-orm";
|
|
6
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
7
7
|
import * as _$better_auth0 from "better-auth";
|
|
8
8
|
import { BetterAuthOptions, betterAuth } from "better-auth";
|
|
9
9
|
import * as _$better_auth_api0 from "better-auth/api";
|
|
@@ -3279,14 +3279,14 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
|
|
|
3279
3279
|
$Infer: {
|
|
3280
3280
|
body: ({
|
|
3281
3281
|
permission: {
|
|
3282
|
-
readonly user?: ("
|
|
3283
|
-
readonly session?: ("
|
|
3282
|
+
readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
3283
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3284
3284
|
};
|
|
3285
3285
|
permissions?: never | undefined;
|
|
3286
3286
|
} | {
|
|
3287
3287
|
permissions: {
|
|
3288
|
-
readonly user?: ("
|
|
3289
|
-
readonly session?: ("
|
|
3288
|
+
readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
3289
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
3290
3290
|
};
|
|
3291
3291
|
permission?: never | undefined;
|
|
3292
3292
|
}) & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BetterAuth } from "./auth.lib.mjs";
|
|
2
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
3
2
|
import { InferSelectModel } from "drizzle-orm";
|
|
3
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
4
|
import { NextFunction, Request, Response } from "express";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/auth/auth.middleware.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { auth_db_exports } from "./auth.db.mjs";
|
|
2
2
|
import { BaseRepository } from "../base/base.repository.mjs";
|
|
3
|
-
import { v4 } from "uuid";
|
|
4
3
|
import { and, count, desc, eq, gte, ne } from "drizzle-orm";
|
|
5
4
|
import { ok } from "neverthrow";
|
|
5
|
+
import { v4 } from "uuid";
|
|
6
6
|
//#region src/modules/auth/auth.repository.ts
|
|
7
7
|
({ ...auth_db_exports });
|
|
8
8
|
function parseOrganizationMetadata(metadata) {
|
|
@@ -76,8 +76,8 @@ declare function createAuthTRPC({
|
|
|
76
76
|
id: string;
|
|
77
77
|
email: string;
|
|
78
78
|
createdAt: Date;
|
|
79
|
-
expiresAt: Date | null;
|
|
80
79
|
userId: string;
|
|
80
|
+
expiresAt: Date | null;
|
|
81
81
|
claimId: string;
|
|
82
82
|
url: string;
|
|
83
83
|
};
|
|
@@ -91,8 +91,8 @@ declare function createAuthTRPC({
|
|
|
91
91
|
id: string;
|
|
92
92
|
email: string;
|
|
93
93
|
createdAt: Date;
|
|
94
|
-
expiresAt: Date | null;
|
|
95
94
|
userId: string;
|
|
95
|
+
expiresAt: Date | null;
|
|
96
96
|
claimId: string;
|
|
97
97
|
url: string;
|
|
98
98
|
}[];
|
|
@@ -146,8 +146,8 @@ declare function createAuthTRPC({
|
|
|
146
146
|
listAdminWaitlist: _$_trpc_server0.TRPCQueryProcedure<{
|
|
147
147
|
input: void;
|
|
148
148
|
output: {
|
|
149
|
-
name: string | null;
|
|
150
149
|
id: string;
|
|
150
|
+
name: string | null;
|
|
151
151
|
email: string | null;
|
|
152
152
|
createdAt: Date;
|
|
153
153
|
updatedAt: Date | null;
|
|
@@ -160,8 +160,8 @@ declare function createAuthTRPC({
|
|
|
160
160
|
email: string;
|
|
161
161
|
};
|
|
162
162
|
output: {
|
|
163
|
-
name: string | null;
|
|
164
163
|
id: string;
|
|
164
|
+
name: string | null;
|
|
165
165
|
email: string | null;
|
|
166
166
|
createdAt: Date;
|
|
167
167
|
updatedAt: Date | null;
|
|
@@ -191,8 +191,8 @@ declare function createAuthTRPC({
|
|
|
191
191
|
id: string;
|
|
192
192
|
};
|
|
193
193
|
output: {
|
|
194
|
-
name: string | null;
|
|
195
194
|
id: string;
|
|
195
|
+
name: string | null;
|
|
196
196
|
email: string | null;
|
|
197
197
|
createdAt: Date;
|
|
198
198
|
updatedAt: Date | null;
|
|
@@ -205,8 +205,8 @@ declare function createAuthTRPC({
|
|
|
205
205
|
id: string;
|
|
206
206
|
};
|
|
207
207
|
output: {
|
|
208
|
-
name: string | null;
|
|
209
208
|
id: string;
|
|
209
|
+
name: string | null;
|
|
210
210
|
email: string | null;
|
|
211
211
|
createdAt: Date;
|
|
212
212
|
updatedAt: Date | null;
|
|
@@ -219,8 +219,8 @@ declare function createAuthTRPC({
|
|
|
219
219
|
email: string;
|
|
220
220
|
};
|
|
221
221
|
output: {
|
|
222
|
-
name: string | null;
|
|
223
222
|
id: string;
|
|
223
|
+
name: string | null;
|
|
224
224
|
email: string | null;
|
|
225
225
|
createdAt: Date;
|
|
226
226
|
updatedAt: Date | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { auth_db_exports } from "./auth.db.mjs";
|
|
2
|
-
import { v4 } from "uuid";
|
|
3
2
|
import { desc, eq } from "drizzle-orm";
|
|
3
|
+
import { v4 } from "uuid";
|
|
4
4
|
//#region src/modules/auth/auth.utils.ts
|
|
5
5
|
({ ...auth_db_exports });
|
|
6
6
|
async function getActiveOrganizationAndTeam(orm, schema, userId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerResultAsync, pickColumns } from "./base.dto.mjs";
|
|
2
2
|
import { Base } from "./base.abstract.mjs";
|
|
3
|
-
import { SQLiteColumn, SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
4
3
|
import { InferInsertModel, InferSelectModel, SQL, SelectedFields } from "drizzle-orm";
|
|
4
|
+
import { SQLiteColumn, SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
5
5
|
import { QueryFilters, QueryInput } from "@m5kdev/commons/modules/schemas/query.schema";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ServerResult, ServerResultAsync } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
3
|
import { BillingSchema } from "@m5kdev/commons/modules/billing/billing.schema";
|
|
4
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
4
|
import { InferSelectModel } from "drizzle-orm";
|
|
5
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
7
|
import { Stripe } from "stripe";
|
|
8
8
|
import { StripePlan } from "@m5kdev/commons/modules/billing/billing.types";
|
|
@@ -27,9 +27,9 @@ declare const connectSelectOutputSchema: z.ZodObject<{
|
|
|
27
27
|
id: z.ZodString;
|
|
28
28
|
createdAt: z.ZodDate;
|
|
29
29
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
30
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
31
30
|
userId: z.ZodString;
|
|
32
31
|
provider: z.ZodString;
|
|
32
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
33
|
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
accountType: z.ZodString;
|
|
35
35
|
providerAccountId: z.ZodString;
|
|
@@ -51,9 +51,9 @@ declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
51
51
|
id: z.ZodString;
|
|
52
52
|
createdAt: z.ZodDate;
|
|
53
53
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
54
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
55
54
|
userId: z.ZodString;
|
|
56
55
|
provider: z.ZodString;
|
|
56
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
57
|
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
accountType: z.ZodString;
|
|
59
59
|
providerAccountId: z.ZodString;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ServerResult } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
3
|
import { ConnectListInputSchema } from "./connect.dto.mjs";
|
|
4
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
4
|
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
5
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/connect/connect.repository.d.ts
|
|
@@ -396,9 +396,9 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
|
|
|
396
396
|
id: string;
|
|
397
397
|
createdAt: Date;
|
|
398
398
|
updatedAt: Date | null;
|
|
399
|
-
expiresAt: Date | null;
|
|
400
399
|
userId: string;
|
|
401
400
|
provider: string;
|
|
401
|
+
expiresAt: Date | null;
|
|
402
402
|
accessToken: string;
|
|
403
403
|
refreshToken: string | null;
|
|
404
404
|
scope: string | null;
|
|
@@ -22,9 +22,9 @@ declare class ConnectService extends BaseService<{
|
|
|
22
22
|
id: string;
|
|
23
23
|
createdAt: Date;
|
|
24
24
|
updatedAt: Date | null;
|
|
25
|
-
expiresAt: Date | null;
|
|
26
25
|
userId: string;
|
|
27
26
|
provider: string;
|
|
27
|
+
expiresAt: Date | null;
|
|
28
28
|
accessToken: string;
|
|
29
29
|
refreshToken: string | null;
|
|
30
30
|
scope: string | null;
|
|
@@ -43,9 +43,9 @@ declare class ConnectService extends BaseService<{
|
|
|
43
43
|
id: string;
|
|
44
44
|
createdAt: Date;
|
|
45
45
|
updatedAt: Date | null;
|
|
46
|
-
expiresAt: Date | null;
|
|
47
46
|
userId: string;
|
|
48
47
|
provider: string;
|
|
48
|
+
expiresAt: Date | null;
|
|
49
49
|
accessToken: string;
|
|
50
50
|
refreshToken: string | null;
|
|
51
51
|
scope: string | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
|
-
import { v4 } from "uuid";
|
|
3
2
|
import { err, ok } from "neverthrow";
|
|
4
|
-
import
|
|
5
|
-
import { fileTypes } from "@m5kdev/commons/modules/file/file.constants";
|
|
3
|
+
import { v4 } from "uuid";
|
|
6
4
|
import { createWriteStream } from "node:fs";
|
|
7
5
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
6
|
+
import path, { dirname } from "node:path";
|
|
7
|
+
import { fileTypes } from "@m5kdev/commons/modules/file/file.constants";
|
|
8
8
|
import { tmpdir } from "node:os";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
import { pipeline } from "node:stream/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerResultAsync } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
3
|
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
4
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
5
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/recurrence/recurrence.repository.d.ts
|
|
@@ -18,7 +18,7 @@ declare class RecurrenceService extends BaseService<{
|
|
|
18
18
|
filters?: {
|
|
19
19
|
columnId: string;
|
|
20
20
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
21
|
-
method: "
|
|
21
|
+
method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
22
22
|
value: string | number | boolean | string[];
|
|
23
23
|
valueTo?: string | undefined;
|
|
24
24
|
endColumnId?: string | undefined;
|
|
@@ -29,12 +29,12 @@ declare class RecurrenceService extends BaseService<{
|
|
|
29
29
|
actor: UserActor;
|
|
30
30
|
}, {
|
|
31
31
|
rows: {
|
|
32
|
-
name: string | null;
|
|
33
32
|
id: string;
|
|
33
|
+
name: string | null;
|
|
34
34
|
createdAt: Date;
|
|
35
35
|
updatedAt: Date;
|
|
36
|
-
userId: string | null;
|
|
37
36
|
metadata: Record<string, any> | null;
|
|
37
|
+
userId: string | null;
|
|
38
38
|
organizationId: string | null;
|
|
39
39
|
teamId: string | null;
|
|
40
40
|
enabled: boolean;
|
|
@@ -47,8 +47,8 @@ declare class RecurrenceService extends BaseService<{
|
|
|
47
47
|
kind: string;
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
recurrenceRules: {
|
|
50
|
-
interval: number;
|
|
51
50
|
freq: number;
|
|
51
|
+
interval: number;
|
|
52
52
|
bysetpos?: number | number[] | null | undefined;
|
|
53
53
|
bymonth?: number | number[] | null | undefined;
|
|
54
54
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -21,7 +21,7 @@ declare function createRecurrenceTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "
|
|
24
|
+
method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
25
25
|
value: string | number | boolean | string[];
|
|
26
26
|
valueTo?: string | undefined;
|
|
27
27
|
endColumnId?: string | undefined;
|
|
@@ -50,8 +50,8 @@ declare function createRecurrenceTRPC({
|
|
|
50
50
|
kind: string;
|
|
51
51
|
enabled: boolean;
|
|
52
52
|
recurrenceRules: {
|
|
53
|
-
interval: number;
|
|
54
53
|
freq: number;
|
|
54
|
+
interval: number;
|
|
55
55
|
bysetpos?: number | number[] | null | undefined;
|
|
56
56
|
bymonth?: number | number[] | null | undefined;
|
|
57
57
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -150,8 +150,8 @@ declare function createRecurrenceTRPC({
|
|
|
150
150
|
updateRule: _$_trpc_server0.TRPCMutationProcedure<{
|
|
151
151
|
input: {
|
|
152
152
|
id: string;
|
|
153
|
-
interval: number;
|
|
154
153
|
freq: number;
|
|
154
|
+
interval: number;
|
|
155
155
|
bysetpos?: number | number[] | null | undefined;
|
|
156
156
|
bymonth?: number | number[] | null | undefined;
|
|
157
157
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerError } from "../../utils/errors.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
3
|
import { Result } from "neverthrow";
|
|
4
|
+
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
5
|
import * as _$drizzle_zod0 from "drizzle-zod";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/tag/tag.dto.d.ts
|
|
@@ -21,7 +21,7 @@ declare function createTagTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "
|
|
24
|
+
method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
25
25
|
value: string | number | boolean | string[];
|
|
26
26
|
valueTo?: string | undefined;
|
|
27
27
|
endColumnId?: string | undefined;
|
|
@@ -54,7 +54,7 @@ declare function createTagTRPC({
|
|
|
54
54
|
resourceIds?: {
|
|
55
55
|
columnId: string;
|
|
56
56
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
57
|
-
method: "
|
|
57
|
+
method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
58
58
|
value: string | number | boolean | string[];
|
|
59
59
|
valueTo?: string | undefined;
|
|
60
60
|
endColumnId?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
|
-
import { v4 } from "uuid";
|
|
3
2
|
import { err, ok } from "neverthrow";
|
|
4
|
-
import
|
|
3
|
+
import { v4 } from "uuid";
|
|
5
4
|
import { closeSync, existsSync, mkdirSync, openSync } from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
6
|
import ffbin from "ffmpeg-ffprobe-static";
|
|
7
7
|
import ffmpeg from "fluent-ffmpeg";
|
|
8
8
|
//#region src/modules/video/video.service.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/backend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Composable Express server stack with Drizzle ORM and tRPC.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"trpc-to-openapi": "2.3.0",
|
|
60
60
|
"uuid": "11.0.5",
|
|
61
61
|
"zod": "4.2.1",
|
|
62
|
-
"@m5kdev/commons": "0.8.
|
|
63
|
-
"@m5kdev/config": "0.8.
|
|
62
|
+
"@m5kdev/commons": "0.8.5",
|
|
63
|
+
"@m5kdev/config": "0.8.5"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@jest/globals": "30.2.0",
|