@m5kdev/backend 0.9.2 → 0.9.3

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.
Files changed (41) hide show
  1. package/dist/src/modules/ai/ai.repository.cjs +1 -1
  2. package/dist/src/modules/ai/ai.repository.d.mts +1 -1
  3. package/dist/src/modules/ai/ai.repository.mjs +1 -1
  4. package/dist/src/modules/ai/ai.service.cjs +1 -1
  5. package/dist/src/modules/ai/ai.service.mjs +1 -1
  6. package/dist/src/modules/auth/auth.dto.d.cts +2 -2
  7. package/dist/src/modules/auth/auth.dto.d.mts +2 -2
  8. package/dist/src/modules/auth/auth.lib.d.cts +2 -2
  9. package/dist/src/modules/auth/auth.lib.d.mts +3 -3
  10. package/dist/src/modules/auth/auth.middleware.d.mts +1 -1
  11. package/dist/src/modules/auth/auth.repository.cjs +1 -1
  12. package/dist/src/modules/auth/auth.repository.mjs +1 -1
  13. package/dist/src/modules/auth/auth.trpc.d.cts +7 -7
  14. package/dist/src/modules/auth/auth.trpc.d.mts +7 -7
  15. package/dist/src/modules/auth/auth.utils.cjs +1 -1
  16. package/dist/src/modules/auth/auth.utils.mjs +1 -1
  17. package/dist/src/modules/base/base.db.d.mts +1 -1
  18. package/dist/src/modules/base/base.repository.d.mts +1 -1
  19. package/dist/src/modules/billing/billing.repository.d.mts +1 -1
  20. package/dist/src/modules/connect/connect.dto.d.cts +4 -4
  21. package/dist/src/modules/connect/connect.dto.d.mts +4 -4
  22. package/dist/src/modules/connect/connect.repository.d.cts +2 -2
  23. package/dist/src/modules/connect/connect.repository.d.mts +3 -3
  24. package/dist/src/modules/connect/connect.service.d.cts +4 -4
  25. package/dist/src/modules/connect/connect.service.d.mts +4 -4
  26. package/dist/src/modules/file/file.service.cjs +1 -1
  27. package/dist/src/modules/file/file.service.mjs +1 -1
  28. package/dist/src/modules/recurrence/recurrence.repository.d.mts +1 -1
  29. package/dist/src/modules/recurrence/recurrence.service.d.cts +3 -3
  30. package/dist/src/modules/recurrence/recurrence.service.d.mts +3 -3
  31. package/dist/src/modules/recurrence/recurrence.trpc.d.cts +1 -1
  32. package/dist/src/modules/recurrence/recurrence.trpc.d.mts +1 -1
  33. package/dist/src/modules/tag/tag.dto.d.mts +1 -1
  34. package/dist/src/modules/tag/tag.trpc.d.cts +2 -2
  35. package/dist/src/modules/tag/tag.trpc.d.mts +2 -2
  36. package/dist/src/modules/utils/getGlobalSearchCondition.d.mts +1 -1
  37. package/dist/src/modules/video/video.service.cjs +1 -1
  38. package/dist/src/modules/video/video.service.mjs +1 -1
  39. package/dist/src/types.d.cts +7 -7
  40. package/dist/src/types.d.mts +7 -7
  41. package/package.json +23 -3
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../_virtual/_rolldown/runtime.cjs");
3
- const require_src_modules_ai_ai_db = require("./ai.db.cjs");
4
3
  const require_src_modules_base_base_repository = require("../base/base.repository.cjs");
4
+ const require_src_modules_ai_ai_db = require("./ai.db.cjs");
5
5
  let drizzle_orm = require("drizzle-orm");
6
6
  let neverthrow = require("neverthrow");
7
7
  //#region src/modules/ai/ai.repository.ts
@@ -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,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../_virtual/_rolldown/runtime.cjs");
3
- const require_src_modules_ai_ai_prompts = require("./ai.prompts.cjs");
4
3
  const require_src_modules_base_base_service = require("../base/base.service.cjs");
4
+ const require_src_modules_ai_ai_prompts = require("./ai.prompts.cjs");
5
5
  let neverthrow = require("neverthrow");
6
6
  let _m5kdev_commons_modules_ai_ai_constants = require("@m5kdev/commons/modules/ai/ai.constants");
7
7
  let _m5kdev_commons_modules_ai_ai_utils = require("@m5kdev/commons/modules/ai/ai.utils");
@@ -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
- id: z.ZodString;
16
15
  name: z.ZodNullable<z.ZodString>;
16
+ id: 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
- userId: z.ZodString;
62
61
  expiresAt: z.ZodNullable<z.ZodDate>;
62
+ userId: z.ZodString;
63
63
  claimId: z.ZodString;
64
64
  url: z.ZodString;
65
65
  }, z.core.$strip>;
@@ -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
- id: z.ZodString;
16
15
  name: z.ZodNullable<z.ZodString>;
16
+ id: 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
- userId: z.ZodString;
62
61
  expiresAt: z.ZodNullable<z.ZodDate>;
62
+ userId: z.ZodString;
63
63
  claimId: z.ZodString;
64
64
  url: z.ZodString;
65
65
  }, z.core.$strip>;
@@ -3279,13 +3279,13 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
3279
3279
  $Infer: {
3280
3280
  body: ({
3281
3281
  permission: {
3282
- readonly user?: ("update" | "set-role" | "create" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3282
+ readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
3283
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3284
3284
  };
3285
3285
  permissions?: never | undefined;
3286
3286
  } | {
3287
3287
  permissions: {
3288
- readonly user?: ("update" | "set-role" | "create" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3288
+ readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
3289
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3290
3290
  };
3291
3291
  permission?: never | undefined;
@@ -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,13 +3279,13 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
3279
3279
  $Infer: {
3280
3280
  body: ({
3281
3281
  permission: {
3282
- readonly user?: ("update" | "set-role" | "create" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3282
+ readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
3283
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3284
3284
  };
3285
3285
  permissions?: never | undefined;
3286
3286
  } | {
3287
3287
  permissions: {
3288
- readonly user?: ("update" | "set-role" | "create" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3288
+ readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
3289
  readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3290
3290
  };
3291
3291
  permission?: never | undefined;
@@ -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
@@ -2,9 +2,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require_src_modules_auth_auth_db = require("./auth.db.cjs");
4
4
  const require_src_modules_base_base_repository = require("../base/base.repository.cjs");
5
- let uuid = require("uuid");
6
5
  let drizzle_orm = require("drizzle-orm");
7
6
  let neverthrow = require("neverthrow");
7
+ let uuid = require("uuid");
8
8
  //#region src/modules/auth/auth.repository.ts
9
9
  ({ ...require_src_modules_auth_auth_db.auth_db_exports });
10
10
  function parseOrganizationMetadata(metadata) {
@@ -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
- userId: string;
80
79
  expiresAt: Date | null;
80
+ userId: string;
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
- userId: string;
95
94
  expiresAt: Date | null;
95
+ userId: string;
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
- id: string;
150
149
  name: string | null;
150
+ id: string;
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
- id: string;
164
163
  name: string | null;
164
+ id: string;
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
- id: string;
195
194
  name: string | null;
195
+ id: string;
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
- id: string;
209
208
  name: string | null;
209
+ id: string;
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
- id: string;
223
222
  name: string | null;
223
+ id: string;
224
224
  email: string | null;
225
225
  createdAt: Date;
226
226
  updatedAt: Date | null;
@@ -76,8 +76,8 @@ declare function createAuthTRPC({
76
76
  id: string;
77
77
  email: string;
78
78
  createdAt: Date;
79
- userId: string;
80
79
  expiresAt: Date | null;
80
+ userId: string;
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
- userId: string;
95
94
  expiresAt: Date | null;
95
+ userId: string;
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
- id: string;
150
149
  name: string | null;
150
+ id: string;
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
- id: string;
164
163
  name: string | null;
164
+ id: string;
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
- id: string;
195
194
  name: string | null;
195
+ id: string;
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
- id: string;
209
208
  name: string | null;
209
+ id: string;
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
- id: string;
223
222
  name: string | null;
223
+ id: string;
224
224
  email: string | null;
225
225
  createdAt: Date;
226
226
  updatedAt: Date | null;
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require_src_modules_auth_auth_db = require("./auth.db.cjs");
4
- let uuid = require("uuid");
5
4
  let drizzle_orm = require("drizzle-orm");
5
+ let uuid = require("uuid");
6
6
  //#region src/modules/auth/auth.utils.ts
7
7
  ({ ...require_src_modules_auth_auth_db.auth_db_exports });
8
8
  async function getActiveOrganizationAndTeam(orm, schema, userId) {
@@ -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,5 +1,5 @@
1
- import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
2
1
  import * as _$drizzle_orm0 from "drizzle-orm";
2
+ import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
3
3
 
4
4
  //#region src/modules/base/base.db.d.ts
5
5
  declare function createDbId(): _$drizzle_orm0.HasRuntimeDefault<_$drizzle_orm0.HasDefault<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>>>;
@@ -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,10 +27,10 @@ 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
- userId: z.ZodString;
31
- provider: z.ZodString;
32
30
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
31
+ userId: z.ZodString;
33
32
  scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ provider: z.ZodString;
34
34
  accountType: z.ZodString;
35
35
  providerAccountId: z.ZodString;
36
36
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -51,10 +51,10 @@ 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
- userId: z.ZodString;
55
- provider: z.ZodString;
56
54
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
55
+ userId: z.ZodString;
57
56
  scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ provider: z.ZodString;
58
58
  accountType: z.ZodString;
59
59
  providerAccountId: z.ZodString;
60
60
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -27,10 +27,10 @@ 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
- userId: z.ZodString;
31
- provider: z.ZodString;
32
30
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
31
+ userId: z.ZodString;
33
32
  scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ provider: z.ZodString;
34
34
  accountType: z.ZodString;
35
35
  providerAccountId: z.ZodString;
36
36
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -51,10 +51,10 @@ 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
- userId: z.ZodString;
55
- provider: z.ZodString;
56
54
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
55
+ userId: z.ZodString;
57
56
  scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ provider: z.ZodString;
58
58
  accountType: z.ZodString;
59
59
  providerAccountId: z.ZodString;
60
60
  handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -396,12 +396,12 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
396
396
  id: string;
397
397
  createdAt: Date;
398
398
  updatedAt: Date | null;
399
- userId: string;
400
- provider: string;
401
399
  expiresAt: Date | null;
400
+ userId: string;
402
401
  accessToken: string;
403
402
  refreshToken: string | null;
404
403
  scope: string | null;
404
+ provider: string;
405
405
  accountType: string;
406
406
  providerAccountId: string;
407
407
  handle: string | null;
@@ -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,12 +396,12 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
396
396
  id: string;
397
397
  createdAt: Date;
398
398
  updatedAt: Date | null;
399
- userId: string;
400
- provider: string;
401
399
  expiresAt: Date | null;
400
+ userId: string;
402
401
  accessToken: string;
403
402
  refreshToken: string | null;
404
403
  scope: string | null;
404
+ provider: string;
405
405
  accountType: string;
406
406
  providerAccountId: string;
407
407
  handle: string | null;
@@ -22,12 +22,12 @@ declare class ConnectService extends BaseService<{
22
22
  id: string;
23
23
  createdAt: Date;
24
24
  updatedAt: Date | null;
25
- userId: string;
26
- provider: string;
27
25
  expiresAt: Date | null;
26
+ userId: string;
28
27
  accessToken: string;
29
28
  refreshToken: string | null;
30
29
  scope: string | null;
30
+ provider: string;
31
31
  accountType: string;
32
32
  providerAccountId: string;
33
33
  handle: string | null;
@@ -43,12 +43,12 @@ declare class ConnectService extends BaseService<{
43
43
  id: string;
44
44
  createdAt: Date;
45
45
  updatedAt: Date | null;
46
- userId: string;
47
- provider: string;
48
46
  expiresAt: Date | null;
47
+ userId: string;
49
48
  accessToken: string;
50
49
  refreshToken: string | null;
51
50
  scope: string | null;
51
+ provider: string;
52
52
  accountType: string;
53
53
  providerAccountId: string;
54
54
  handle: string | null;
@@ -22,12 +22,12 @@ declare class ConnectService extends BaseService<{
22
22
  id: string;
23
23
  createdAt: Date;
24
24
  updatedAt: Date | null;
25
- userId: string;
26
- provider: string;
27
25
  expiresAt: Date | null;
26
+ userId: string;
28
27
  accessToken: string;
29
28
  refreshToken: string | null;
30
29
  scope: string | null;
30
+ provider: string;
31
31
  accountType: string;
32
32
  providerAccountId: string;
33
33
  handle: string | null;
@@ -43,12 +43,12 @@ declare class ConnectService extends BaseService<{
43
43
  id: string;
44
44
  createdAt: Date;
45
45
  updatedAt: Date | null;
46
- userId: string;
47
- provider: string;
48
46
  expiresAt: Date | null;
47
+ userId: string;
49
48
  accessToken: string;
50
49
  refreshToken: string | null;
51
50
  scope: string | null;
51
+ provider: string;
52
52
  accountType: string;
53
53
  providerAccountId: string;
54
54
  handle: string | null;
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require_src_modules_base_base_service = require("../base/base.service.cjs");
4
- let uuid = require("uuid");
5
4
  let neverthrow = require("neverthrow");
5
+ let uuid = require("uuid");
6
6
  let node_path = require("node:path");
7
7
  node_path = require_runtime.__toESM(node_path);
8
8
  let _m5kdev_commons_modules_file_file_constants = require("@m5kdev/commons/modules/file/file.constants");
@@ -1,6 +1,6 @@
1
1
  import { BaseService } from "../base/base.service.mjs";
2
- import { v4 } from "uuid";
3
2
  import { err, ok } from "neverthrow";
3
+ import { v4 } from "uuid";
4
4
  import path, { dirname } from "node:path";
5
5
  import { fileTypes } from "@m5kdev/commons/modules/file/file.constants";
6
6
  import { createWriteStream } from "node:fs";
@@ -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" | "jsonArray";
21
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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;
@@ -30,12 +30,12 @@ declare class RecurrenceService extends BaseService<{
30
30
  actor: UserActor;
31
31
  }, {
32
32
  rows: {
33
- id: string;
34
33
  name: string | null;
34
+ id: string;
35
35
  createdAt: Date;
36
36
  updatedAt: Date;
37
- metadata: Record<string, any> | null;
38
37
  userId: string | null;
38
+ metadata: Record<string, any> | null;
39
39
  organizationId: string | null;
40
40
  teamId: string | null;
41
41
  enabled: boolean;
@@ -18,7 +18,7 @@ declare class RecurrenceService extends BaseService<{
18
18
  filters?: {
19
19
  columnId: string;
20
20
  type: "string" | "number" | "boolean" | "date" | "enum" | "jsonArray";
21
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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;
@@ -30,12 +30,12 @@ declare class RecurrenceService extends BaseService<{
30
30
  actor: UserActor;
31
31
  }, {
32
32
  rows: {
33
- id: string;
34
33
  name: string | null;
34
+ id: string;
35
35
  createdAt: Date;
36
36
  updatedAt: Date;
37
- metadata: Record<string, any> | null;
38
37
  userId: string | null;
38
+ metadata: Record<string, any> | null;
39
39
  organizationId: string | null;
40
40
  teamId: string | null;
41
41
  enabled: boolean;
@@ -21,7 +21,7 @@ declare function createRecurrenceTRPC({
21
21
  filters?: {
22
22
  columnId: string;
23
23
  type: "string" | "number" | "boolean" | "date" | "enum" | "jsonArray";
24
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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 createRecurrenceTRPC({
21
21
  filters?: {
22
22
  columnId: string;
23
23
  type: "string" | "number" | "boolean" | "date" | "enum" | "jsonArray";
24
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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;
@@ -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" | "jsonArray";
24
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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;
@@ -55,7 +55,7 @@ declare function createTagTRPC({
55
55
  resourceIds?: {
56
56
  columnId: string;
57
57
  type: "string" | "number" | "boolean" | "date" | "enum" | "jsonArray";
58
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
58
+ method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
59
59
  value: string | number | boolean | string[];
60
60
  valueTo?: string | undefined;
61
61
  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" | "jsonArray";
24
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
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;
@@ -55,7 +55,7 @@ declare function createTagTRPC({
55
55
  resourceIds?: {
56
56
  columnId: string;
57
57
  type: "string" | "number" | "boolean" | "date" | "enum" | "jsonArray";
58
- method: "contains" | "starts_with" | "ends_with" | "equals" | "greater_than" | "less_than" | "on" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
58
+ method: "contains" | "starts_with" | "ends_with" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
59
59
  value: string | number | boolean | string[];
60
60
  valueTo?: string | undefined;
61
61
  endColumnId?: string | undefined;
@@ -1,5 +1,5 @@
1
- import { SQLiteColumn } from "drizzle-orm/sqlite-core";
2
1
  import { SQL } from "drizzle-orm";
2
+ import { SQLiteColumn } from "drizzle-orm/sqlite-core";
3
3
 
4
4
  //#region src/modules/utils/getGlobalSearchCondition.d.ts
5
5
  interface SqlConditionSink {
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
3
3
  const require_src_modules_base_base_service = require("../base/base.service.cjs");
4
- let uuid = require("uuid");
5
4
  let neverthrow = require("neverthrow");
5
+ let uuid = require("uuid");
6
6
  let node_path = require("node:path");
7
7
  node_path = require_runtime.__toESM(node_path);
8
8
  let node_fs = require("node:fs");
@@ -1,6 +1,6 @@
1
1
  import { BaseService } from "../base/base.service.mjs";
2
- import { v4 } from "uuid";
3
2
  import { ok } from "neverthrow";
3
+ import { v4 } from "uuid";
4
4
  import path from "node:path";
5
5
  import { closeSync, existsSync, mkdirSync, openSync } from "node:fs";
6
6
  import { spawn } from "node:child_process";
@@ -79,8 +79,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
79
79
  id: string;
80
80
  email: string;
81
81
  createdAt: Date;
82
- userId: string;
83
82
  expiresAt: Date | null;
83
+ userId: string;
84
84
  claimId: string;
85
85
  url: string;
86
86
  };
@@ -94,8 +94,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
94
94
  id: string;
95
95
  email: string;
96
96
  createdAt: Date;
97
- userId: string;
98
97
  expiresAt: Date | null;
98
+ userId: string;
99
99
  claimId: string;
100
100
  url: string;
101
101
  }[];
@@ -149,8 +149,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
149
149
  listAdminWaitlist: _$_trpc_server0.TRPCQueryProcedure<{
150
150
  input: void;
151
151
  output: {
152
- id: string;
153
152
  name: string | null;
153
+ id: string;
154
154
  email: string | null;
155
155
  createdAt: Date;
156
156
  updatedAt: Date | null;
@@ -163,8 +163,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
163
163
  email: string;
164
164
  };
165
165
  output: {
166
- id: string;
167
166
  name: string | null;
167
+ id: string;
168
168
  email: string | null;
169
169
  createdAt: Date;
170
170
  updatedAt: Date | null;
@@ -194,8 +194,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
194
194
  id: string;
195
195
  };
196
196
  output: {
197
- id: string;
198
197
  name: string | null;
198
+ id: string;
199
199
  email: string | null;
200
200
  createdAt: Date;
201
201
  updatedAt: Date | null;
@@ -208,8 +208,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
208
208
  id: string;
209
209
  };
210
210
  output: {
211
- id: string;
212
211
  name: string | null;
212
+ id: string;
213
213
  email: string | null;
214
214
  createdAt: Date;
215
215
  updatedAt: Date | null;
@@ -222,8 +222,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
222
222
  email: string;
223
223
  };
224
224
  output: {
225
- id: string;
226
225
  name: string | null;
226
+ id: string;
227
227
  email: string | null;
228
228
  createdAt: Date;
229
229
  updatedAt: Date | null;
@@ -79,8 +79,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
79
79
  id: string;
80
80
  email: string;
81
81
  createdAt: Date;
82
- userId: string;
83
82
  expiresAt: Date | null;
83
+ userId: string;
84
84
  claimId: string;
85
85
  url: string;
86
86
  };
@@ -94,8 +94,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
94
94
  id: string;
95
95
  email: string;
96
96
  createdAt: Date;
97
- userId: string;
98
97
  expiresAt: Date | null;
98
+ userId: string;
99
99
  claimId: string;
100
100
  url: string;
101
101
  }[];
@@ -149,8 +149,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
149
149
  listAdminWaitlist: _$_trpc_server0.TRPCQueryProcedure<{
150
150
  input: void;
151
151
  output: {
152
- id: string;
153
152
  name: string | null;
153
+ id: string;
154
154
  email: string | null;
155
155
  createdAt: Date;
156
156
  updatedAt: Date | null;
@@ -163,8 +163,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
163
163
  email: string;
164
164
  };
165
165
  output: {
166
- id: string;
167
166
  name: string | null;
167
+ id: string;
168
168
  email: string | null;
169
169
  createdAt: Date;
170
170
  updatedAt: Date | null;
@@ -194,8 +194,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
194
194
  id: string;
195
195
  };
196
196
  output: {
197
- id: string;
198
197
  name: string | null;
198
+ id: string;
199
199
  email: string | null;
200
200
  createdAt: Date;
201
201
  updatedAt: Date | null;
@@ -208,8 +208,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
208
208
  id: string;
209
209
  };
210
210
  output: {
211
- id: string;
212
211
  name: string | null;
212
+ id: string;
213
213
  email: string | null;
214
214
  createdAt: Date;
215
215
  updatedAt: Date | null;
@@ -222,8 +222,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
222
222
  email: string;
223
223
  };
224
224
  output: {
225
- id: string;
226
225
  name: string | null;
226
+ id: string;
227
227
  email: string | null;
228
228
  createdAt: Date;
229
229
  updatedAt: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/backend",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Composable Express server stack with Drizzle ORM and tRPC.",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {
@@ -61,8 +61,8 @@
61
61
  "turndown": "7.2.2",
62
62
  "uuid": "11.0.5",
63
63
  "zod": "4.2.1",
64
- "@m5kdev/commons": "0.9.2",
65
- "@m5kdev/config": "0.9.2"
64
+ "@m5kdev/config": "0.9.3",
65
+ "@m5kdev/commons": "0.9.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@jest/globals": "30.2.0",
@@ -266,6 +266,26 @@
266
266
  "default": "./dist/src/modules/email/*.cjs"
267
267
  }
268
268
  },
269
+ "./modules/pdf/*": {
270
+ "import": {
271
+ "types": "./dist/src/modules/pdf/*.d.mts",
272
+ "default": "./dist/src/modules/pdf/*.mjs"
273
+ },
274
+ "require": {
275
+ "types": "./dist/src/modules/pdf/*.d.cts",
276
+ "default": "./dist/src/modules/pdf/*.cjs"
277
+ }
278
+ },
279
+ "./modules/docx/*": {
280
+ "import": {
281
+ "types": "./dist/src/modules/docx/*.d.mts",
282
+ "default": "./dist/src/modules/docx/*.mjs"
283
+ },
284
+ "require": {
285
+ "types": "./dist/src/modules/docx/*.d.cts",
286
+ "default": "./dist/src/modules/docx/*.cjs"
287
+ }
288
+ },
269
289
  "./lib/*": {
270
290
  "import": {
271
291
  "types": "./dist/src/lib/*.d.mts",