@m5kdev/backend 0.8.3 → 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/auth/auth.dto.d.mts +2 -2
- package/dist/src/modules/auth/auth.trpc.d.mts +7 -7
- package/dist/src/modules/connect/connect.dto.d.mts +6 -6
- package/dist/src/modules/connect/connect.repository.d.mts +3 -3
- package/dist/src/modules/connect/connect.service.d.mts +6 -6
- package/dist/src/modules/connect/connect.trpc.d.mts +1 -1
- package/dist/src/modules/file/file.service.mjs +2 -2
- package/dist/src/modules/recurrence/recurrence.service.d.mts +3 -3
- package/dist/src/modules/recurrence/recurrence.trpc.d.mts +1 -1
- package/dist/src/modules/tag/tag.trpc.d.mts +2 -2
- package/dist/src/modules/video/video.service.mjs +1 -1
- package/package.json +3 -3
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -27,17 +27,17 @@ 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
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
31
|
provider: z.ZodString;
|
|
34
|
-
|
|
32
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
34
|
accountType: z.ZodString;
|
|
36
35
|
providerAccountId: z.ZodString;
|
|
37
36
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
37
|
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
38
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
39
|
tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
metadataJson: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
42
42
|
revokedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
43
43
|
lastRefreshedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -51,17 +51,17 @@ 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
|
-
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
55
|
provider: z.ZodString;
|
|
58
|
-
|
|
56
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
58
|
accountType: z.ZodString;
|
|
60
59
|
providerAccountId: z.ZodString;
|
|
61
60
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
61
|
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
62
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
63
|
tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
metadataJson: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
66
66
|
revokedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
67
67
|
lastRefreshedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
@@ -396,19 +396,19 @@ 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;
|
|
400
|
+
provider: string;
|
|
401
|
+
expiresAt: Date | null;
|
|
401
402
|
accessToken: string;
|
|
402
403
|
refreshToken: string | null;
|
|
403
404
|
scope: string | null;
|
|
404
|
-
provider: string;
|
|
405
|
-
parentId: string | null;
|
|
406
405
|
accountType: string;
|
|
407
406
|
providerAccountId: string;
|
|
408
407
|
handle: string | null;
|
|
409
408
|
displayName: string | null;
|
|
410
409
|
avatarUrl: string | null;
|
|
411
410
|
tokenType: string | null;
|
|
411
|
+
parentId: string | null;
|
|
412
412
|
metadataJson: unknown;
|
|
413
413
|
revokedAt: Date | null;
|
|
414
414
|
lastRefreshedAt: Date | null;
|
|
@@ -22,19 +22,19 @@ 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;
|
|
26
|
+
provider: string;
|
|
27
|
+
expiresAt: Date | null;
|
|
27
28
|
accessToken: string;
|
|
28
29
|
refreshToken: string | null;
|
|
29
30
|
scope: string | null;
|
|
30
|
-
provider: string;
|
|
31
|
-
parentId: string | null;
|
|
32
31
|
accountType: string;
|
|
33
32
|
providerAccountId: string;
|
|
34
33
|
handle: string | null;
|
|
35
34
|
displayName: string | null;
|
|
36
35
|
avatarUrl: string | null;
|
|
37
36
|
tokenType: string | null;
|
|
37
|
+
parentId: string | null;
|
|
38
38
|
metadataJson: unknown;
|
|
39
39
|
revokedAt: Date | null;
|
|
40
40
|
lastRefreshedAt: Date | null;
|
|
@@ -43,19 +43,19 @@ 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;
|
|
47
|
+
provider: string;
|
|
48
|
+
expiresAt: Date | null;
|
|
48
49
|
accessToken: string;
|
|
49
50
|
refreshToken: string | null;
|
|
50
51
|
scope: string | null;
|
|
51
|
-
provider: string;
|
|
52
|
-
parentId: string | null;
|
|
53
52
|
accountType: string;
|
|
54
53
|
providerAccountId: string;
|
|
55
54
|
handle: string | null;
|
|
56
55
|
displayName: string | null;
|
|
57
56
|
avatarUrl: string | null;
|
|
58
57
|
tokenType: string | null;
|
|
58
|
+
parentId: string | null;
|
|
59
59
|
metadataJson: unknown;
|
|
60
60
|
revokedAt: Date | null;
|
|
61
61
|
lastRefreshedAt: Date | null;
|
|
@@ -27,11 +27,11 @@ declare function createConnectTRPC({
|
|
|
27
27
|
updatedAt?: Date | null | undefined;
|
|
28
28
|
expiresAt?: Date | null | undefined;
|
|
29
29
|
scope?: string | null | undefined;
|
|
30
|
-
parentId?: string | null | undefined;
|
|
31
30
|
handle?: string | null | undefined;
|
|
32
31
|
displayName?: string | null | undefined;
|
|
33
32
|
avatarUrl?: string | null | undefined;
|
|
34
33
|
tokenType?: string | null | undefined;
|
|
34
|
+
parentId?: string | null | undefined;
|
|
35
35
|
metadataJson?: unknown;
|
|
36
36
|
revokedAt?: Date | null | undefined;
|
|
37
37
|
lastRefreshedAt?: Date | null | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
2
|
import { err, ok } from "neverthrow";
|
|
3
3
|
import { v4 } from "uuid";
|
|
4
|
-
import path, { dirname } from "node:path";
|
|
5
|
-
import { fileTypes } from "@m5kdev/commons/modules/file/file.constants";
|
|
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";
|
|
@@ -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: "contains" | "starts_with" | "ends_with" | "
|
|
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;
|
|
@@ -21,7 +21,7 @@ declare function createRecurrenceTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "contains" | "starts_with" | "ends_with" | "
|
|
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;
|
|
@@ -21,7 +21,7 @@ declare function createTagTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "contains" | "starts_with" | "ends_with" | "
|
|
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: "contains" | "starts_with" | "ends_with" | "
|
|
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
2
|
import { err, ok } from "neverthrow";
|
|
3
3
|
import { v4 } from "uuid";
|
|
4
|
-
import path from "node:path";
|
|
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",
|