@m5kdev/backend 0.8.11 → 0.9.0

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 (27) hide show
  1. package/dist/src/modules/auth/auth.lib.d.cts +6 -6
  2. package/dist/src/modules/auth/auth.lib.d.mts +6 -6
  3. package/dist/src/modules/billing/billing.repository.d.cts +11 -11
  4. package/dist/src/modules/billing/billing.repository.d.mts +11 -11
  5. package/dist/src/modules/billing/billing.service.d.cts +7 -7
  6. package/dist/src/modules/billing/billing.service.d.mts +7 -7
  7. package/dist/src/modules/connect/connect.dto.d.cts +4 -4
  8. package/dist/src/modules/connect/connect.dto.d.mts +4 -4
  9. package/dist/src/modules/connect/connect.repository.d.cts +4 -4
  10. package/dist/src/modules/connect/connect.repository.d.mts +4 -4
  11. package/dist/src/modules/connect/connect.service.d.cts +8 -8
  12. package/dist/src/modules/connect/connect.service.d.mts +8 -8
  13. package/dist/src/modules/connect/connect.trpc.d.cts +2 -2
  14. package/dist/src/modules/connect/connect.trpc.d.mts +2 -2
  15. package/dist/src/modules/docx/docx.service.cjs +21 -0
  16. package/dist/src/modules/docx/docx.service.cjs.map +1 -0
  17. package/dist/src/modules/docx/docx.service.d.cts +10 -0
  18. package/dist/src/modules/docx/docx.service.d.mts +10 -0
  19. package/dist/src/modules/docx/docx.service.mjs +17 -0
  20. package/dist/src/modules/docx/docx.service.mjs.map +1 -0
  21. package/dist/src/modules/recurrence/recurrence.service.d.cts +2 -2
  22. package/dist/src/modules/recurrence/recurrence.service.d.mts +2 -2
  23. package/dist/src/modules/recurrence/recurrence.trpc.d.cts +3 -3
  24. package/dist/src/modules/recurrence/recurrence.trpc.d.mts +3 -3
  25. package/dist/src/modules/tag/tag.trpc.d.cts +2 -2
  26. package/dist/src/modules/tag/tag.trpc.d.mts +2 -2
  27. package/package.json +7 -5
@@ -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?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
- readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3282
+ readonly user?: ("get" | "list" | "delete" | "set-role" | "create" | "update" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3284
3284
  };
3285
3285
  permissions?: never | undefined;
3286
3286
  } | {
3287
3287
  permissions: {
3288
- readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
- readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3288
+ readonly user?: ("get" | "list" | "delete" | "set-role" | "create" | "update" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3290
3290
  };
3291
3291
  permission?: never | undefined;
3292
3292
  }) & {
@@ -4810,7 +4810,7 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
4810
4810
  socialProviders?: _$better_auth0.SocialProviders | undefined;
4811
4811
  account?: {
4812
4812
  modelName?: string;
4813
- fields?: Partial<Record<"createdAt" | "updatedAt" | "userId" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password", string>>;
4813
+ fields?: Partial<Record<"createdAt" | "updatedAt" | "userId" | "accessToken" | "refreshToken" | "scope" | "accountId" | "providerId" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>>;
4814
4814
  additionalFields?: {
4815
4815
  [key: string]: _$better_auth0.DBFieldAttribute;
4816
4816
  };
@@ -4830,7 +4830,7 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
4830
4830
  } | undefined;
4831
4831
  verification?: {
4832
4832
  modelName?: string;
4833
- fields?: Partial<Record<"createdAt" | "updatedAt" | "expiresAt" | "identifier" | "value", string>>;
4833
+ fields?: Partial<Record<"createdAt" | "updatedAt" | "expiresAt" | "value" | "identifier", string>>;
4834
4834
  additionalFields?: {
4835
4835
  [key: string]: _$better_auth0.DBFieldAttribute;
4836
4836
  };
@@ -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?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
- readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3282
+ readonly user?: ("get" | "list" | "delete" | "set-role" | "create" | "update" | "ban" | "impersonate" | "set-password")[] | undefined;
3283
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3284
3284
  };
3285
3285
  permissions?: never | undefined;
3286
3286
  } | {
3287
3287
  permissions: {
3288
- readonly user?: ("set-role" | "create" | "update" | "delete" | "list" | "get" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
- readonly session?: ("delete" | "list" | "revoke")[] | undefined;
3288
+ readonly user?: ("get" | "list" | "delete" | "set-role" | "create" | "update" | "ban" | "impersonate" | "set-password")[] | undefined;
3289
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3290
3290
  };
3291
3291
  permission?: never | undefined;
3292
3292
  }) & {
@@ -4810,7 +4810,7 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
4810
4810
  socialProviders?: _$better_auth0.SocialProviders | undefined;
4811
4811
  account?: {
4812
4812
  modelName?: string;
4813
- fields?: Partial<Record<"createdAt" | "updatedAt" | "userId" | "accountId" | "providerId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password", string>>;
4813
+ fields?: Partial<Record<"createdAt" | "updatedAt" | "userId" | "accessToken" | "refreshToken" | "scope" | "accountId" | "providerId" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "password", string>>;
4814
4814
  additionalFields?: {
4815
4815
  [key: string]: _$better_auth0.DBFieldAttribute;
4816
4816
  };
@@ -4830,7 +4830,7 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
4830
4830
  } | undefined;
4831
4831
  verification?: {
4832
4832
  modelName?: string;
4833
- fields?: Partial<Record<"createdAt" | "updatedAt" | "expiresAt" | "identifier" | "value", string>>;
4833
+ fields?: Partial<Record<"createdAt" | "updatedAt" | "expiresAt" | "value" | "identifier", string>>;
4834
4834
  additionalFields?: {
4835
4835
  [key: string]: _$better_auth0.DBFieldAttribute;
4836
4836
  };
@@ -4,7 +4,7 @@ import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
4
4
  import { LibSQLDatabase } from "drizzle-orm/libsql";
5
5
  import { InferSelectModel } from "drizzle-orm";
6
6
  import { BillingSchema } from "@m5kdev/commons/modules/billing/billing.schema";
7
- import { Stripe } from "stripe";
7
+ import { Stripe as Stripe$1 } from "stripe";
8
8
  import { StripePlan } from "@m5kdev/commons/modules/billing/billing.types";
9
9
 
10
10
  //#region src/modules/billing/billing.repository.d.ts
@@ -2713,7 +2713,7 @@ declare const schema: {
2713
2713
  type Schema = typeof schema;
2714
2714
  type Orm = LibSQLDatabase<Schema>;
2715
2715
  declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<string, never>, Schema["subscriptions"]> {
2716
- stripe: Stripe;
2716
+ stripe: Stripe$1;
2717
2717
  plans: StripePlan[];
2718
2718
  trial?: StripePlan;
2719
2719
  constructor(options: {
@@ -2721,7 +2721,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2721
2721
  schema: Schema;
2722
2722
  table: Schema["subscriptions"];
2723
2723
  libs: {
2724
- stripe: Stripe;
2724
+ stripe: Stripe$1;
2725
2725
  };
2726
2726
  config: {
2727
2727
  trial?: StripePlan;
@@ -2730,7 +2730,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2730
2730
  });
2731
2731
  hasTrial(): boolean;
2732
2732
  getPlanByPriceId(priceId: string): StripePlan | undefined;
2733
- getCustomerByEmail(email: string): ServerResultAsync<Stripe.Customer | null>;
2733
+ getCustomerByEmail(email: string): ServerResultAsync<Stripe$1.Customer | null>;
2734
2734
  getUserByCustomerId(customerId: string): ServerResultAsync<InferSelectModel<Schema["users"]> | null>;
2735
2735
  createCustomer({
2736
2736
  email,
@@ -2740,8 +2740,8 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2740
2740
  email: string;
2741
2741
  name?: string;
2742
2742
  userId: string;
2743
- }): ServerResultAsync<Stripe.Customer>;
2744
- createTrialSubscription(customerId: string): ServerResultAsync<Stripe.Subscription>;
2743
+ }): ServerResultAsync<Stripe$1.Customer>;
2744
+ createTrialSubscription(customerId: string): ServerResultAsync<Stripe$1.Subscription>;
2745
2745
  createSubscription({
2746
2746
  customerId,
2747
2747
  priceId,
@@ -2752,7 +2752,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2752
2752
  priceId: string;
2753
2753
  quantity?: number;
2754
2754
  trialDays?: number;
2755
- }): ServerResultAsync<Stripe.Subscription>;
2755
+ }): ServerResultAsync<Stripe$1.Subscription>;
2756
2756
  updateUserCustomerId({
2757
2757
  userId,
2758
2758
  customerId
@@ -2762,7 +2762,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2762
2762
  }): ServerResultAsync<InferSelectModel<Schema["users"]>>;
2763
2763
  getLatestSubscription(referenceId: string): ServerResultAsync<BillingSchema | null>;
2764
2764
  getActiveSubscription(referenceId: string): ServerResultAsync<BillingSchema | null>;
2765
- listInvoices(customerId: string): ServerResultAsync<Stripe.Invoice[]>;
2765
+ listInvoices(customerId: string): ServerResultAsync<Stripe$1.Invoice[]>;
2766
2766
  createCheckoutSession({
2767
2767
  customerId,
2768
2768
  priceId,
@@ -2771,8 +2771,8 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2771
2771
  customerId: string;
2772
2772
  priceId: string;
2773
2773
  userId: string;
2774
- }): ServerResultAsync<Stripe.Checkout.Session>;
2775
- createBillingPortalSession(customerId: string): ServerResultAsync<Stripe.BillingPortal.Session>;
2774
+ }): ServerResultAsync<Stripe$1.Checkout.Session>;
2775
+ createBillingPortalSession(customerId: string): ServerResultAsync<Stripe$1.BillingPortal.Session>;
2776
2776
  syncStripeData({
2777
2777
  customerId,
2778
2778
  userId
@@ -2780,7 +2780,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2780
2780
  customerId: string;
2781
2781
  userId: string;
2782
2782
  }): ServerResultAsync<boolean>;
2783
- constructEvent(body: Buffer | string, signature: string, secret: string): ServerResult<Stripe.Event>;
2783
+ constructEvent(body: Buffer | string, signature: string, secret: string): ServerResult<Stripe$1.Event>;
2784
2784
  }
2785
2785
  //#endregion
2786
2786
  export { BillingRepository };
@@ -4,7 +4,7 @@ import { BillingSchema } from "@m5kdev/commons/modules/billing/billing.schema";
4
4
  import { InferSelectModel } from "drizzle-orm";
5
5
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
6
6
  import { LibSQLDatabase } from "drizzle-orm/libsql";
7
- import { Stripe } from "stripe";
7
+ import { Stripe as Stripe$1 } from "stripe";
8
8
  import { StripePlan } from "@m5kdev/commons/modules/billing/billing.types";
9
9
 
10
10
  //#region src/modules/billing/billing.repository.d.ts
@@ -2713,7 +2713,7 @@ declare const schema: {
2713
2713
  type Schema = typeof schema;
2714
2714
  type Orm = LibSQLDatabase<Schema>;
2715
2715
  declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<string, never>, Schema["subscriptions"]> {
2716
- stripe: Stripe;
2716
+ stripe: Stripe$1;
2717
2717
  plans: StripePlan[];
2718
2718
  trial?: StripePlan;
2719
2719
  constructor(options: {
@@ -2721,7 +2721,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2721
2721
  schema: Schema;
2722
2722
  table: Schema["subscriptions"];
2723
2723
  libs: {
2724
- stripe: Stripe;
2724
+ stripe: Stripe$1;
2725
2725
  };
2726
2726
  config: {
2727
2727
  trial?: StripePlan;
@@ -2730,7 +2730,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2730
2730
  });
2731
2731
  hasTrial(): boolean;
2732
2732
  getPlanByPriceId(priceId: string): StripePlan | undefined;
2733
- getCustomerByEmail(email: string): ServerResultAsync<Stripe.Customer | null>;
2733
+ getCustomerByEmail(email: string): ServerResultAsync<Stripe$1.Customer | null>;
2734
2734
  getUserByCustomerId(customerId: string): ServerResultAsync<InferSelectModel<Schema["users"]> | null>;
2735
2735
  createCustomer({
2736
2736
  email,
@@ -2740,8 +2740,8 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2740
2740
  email: string;
2741
2741
  name?: string;
2742
2742
  userId: string;
2743
- }): ServerResultAsync<Stripe.Customer>;
2744
- createTrialSubscription(customerId: string): ServerResultAsync<Stripe.Subscription>;
2743
+ }): ServerResultAsync<Stripe$1.Customer>;
2744
+ createTrialSubscription(customerId: string): ServerResultAsync<Stripe$1.Subscription>;
2745
2745
  createSubscription({
2746
2746
  customerId,
2747
2747
  priceId,
@@ -2752,7 +2752,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2752
2752
  priceId: string;
2753
2753
  quantity?: number;
2754
2754
  trialDays?: number;
2755
- }): ServerResultAsync<Stripe.Subscription>;
2755
+ }): ServerResultAsync<Stripe$1.Subscription>;
2756
2756
  updateUserCustomerId({
2757
2757
  userId,
2758
2758
  customerId
@@ -2762,7 +2762,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2762
2762
  }): ServerResultAsync<InferSelectModel<Schema["users"]>>;
2763
2763
  getLatestSubscription(referenceId: string): ServerResultAsync<BillingSchema | null>;
2764
2764
  getActiveSubscription(referenceId: string): ServerResultAsync<BillingSchema | null>;
2765
- listInvoices(customerId: string): ServerResultAsync<Stripe.Invoice[]>;
2765
+ listInvoices(customerId: string): ServerResultAsync<Stripe$1.Invoice[]>;
2766
2766
  createCheckoutSession({
2767
2767
  customerId,
2768
2768
  priceId,
@@ -2771,8 +2771,8 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2771
2771
  customerId: string;
2772
2772
  priceId: string;
2773
2773
  userId: string;
2774
- }): ServerResultAsync<Stripe.Checkout.Session>;
2775
- createBillingPortalSession(customerId: string): ServerResultAsync<Stripe.BillingPortal.Session>;
2774
+ }): ServerResultAsync<Stripe$1.Checkout.Session>;
2775
+ createBillingPortalSession(customerId: string): ServerResultAsync<Stripe$1.BillingPortal.Session>;
2776
2776
  syncStripeData({
2777
2777
  customerId,
2778
2778
  userId
@@ -2780,7 +2780,7 @@ declare class BillingRepository extends BaseTableRepository<Orm, Schema, Record<
2780
2780
  customerId: string;
2781
2781
  userId: string;
2782
2782
  }): ServerResultAsync<boolean>;
2783
- constructEvent(body: Buffer | string, signature: string, secret: string): ServerResult<Stripe.Event>;
2783
+ constructEvent(body: Buffer | string, signature: string, secret: string): ServerResult<Stripe$1.Event>;
2784
2784
  }
2785
2785
  //#endregion
2786
2786
  export { BillingRepository };
@@ -4,7 +4,7 @@ import { BillingRepository } from "./billing.repository.cjs";
4
4
  import { User } from "../auth/auth.lib.cjs";
5
5
  import { BaseService } from "../base/base.service.cjs";
6
6
  import { BillingSchema } from "@m5kdev/commons/modules/billing/billing.schema";
7
- import Stripe$1 from "stripe";
7
+ import Stripe from "stripe";
8
8
 
9
9
  //#region src/modules/billing/billing.service.d.ts
10
10
  declare class BillingService extends BaseService<{
@@ -18,7 +18,7 @@ declare class BillingService extends BaseService<{
18
18
  email: string;
19
19
  name?: string;
20
20
  };
21
- }): ServerResultAsync<Stripe$1.Customer>;
21
+ }): ServerResultAsync<Stripe.Customer>;
22
22
  createUserHook({
23
23
  user
24
24
  }: {
@@ -29,7 +29,7 @@ declare class BillingService extends BaseService<{
29
29
  };
30
30
  }): ServerResultAsync<boolean>;
31
31
  getActiveSubscription(ctx: Context): ServerResultAsync<BillingSchema | null>;
32
- listInvoices(ctx: Context): ServerResultAsync<Stripe$1.Invoice[]>;
32
+ listInvoices(ctx: Context): ServerResultAsync<Stripe.Invoice[]>;
33
33
  createCheckoutSession({
34
34
  priceId
35
35
  }: {
@@ -38,15 +38,15 @@ declare class BillingService extends BaseService<{
38
38
  user
39
39
  }: {
40
40
  user: User;
41
- }): ServerResultAsync<Stripe$1.Checkout.Session>;
41
+ }): ServerResultAsync<Stripe.Checkout.Session>;
42
42
  createBillingPortalSession({
43
43
  user
44
44
  }: {
45
45
  user: User;
46
- }): ServerResultAsync<Stripe$1.BillingPortal.Session>;
47
- constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe$1.Event>;
46
+ }): ServerResultAsync<Stripe.BillingPortal.Session>;
47
+ constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe.Event>;
48
48
  syncStripeData(customerId: string, eventType?: string): ServerResultAsync<boolean>;
49
- processEvent(event: Stripe$1.Event): ServerResultAsync<boolean>;
49
+ processEvent(event: Stripe.Event): ServerResultAsync<boolean>;
50
50
  }
51
51
  //#endregion
52
52
  export { BillingService };
@@ -4,7 +4,7 @@ import { BillingRepository } from "./billing.repository.mjs";
4
4
  import { User } from "../auth/auth.lib.mjs";
5
5
  import { BaseService } from "../base/base.service.mjs";
6
6
  import { BillingSchema } from "@m5kdev/commons/modules/billing/billing.schema";
7
- import Stripe$1 from "stripe";
7
+ import Stripe from "stripe";
8
8
 
9
9
  //#region src/modules/billing/billing.service.d.ts
10
10
  declare class BillingService extends BaseService<{
@@ -18,7 +18,7 @@ declare class BillingService extends BaseService<{
18
18
  email: string;
19
19
  name?: string;
20
20
  };
21
- }): ServerResultAsync<Stripe$1.Customer>;
21
+ }): ServerResultAsync<Stripe.Customer>;
22
22
  createUserHook({
23
23
  user
24
24
  }: {
@@ -29,7 +29,7 @@ declare class BillingService extends BaseService<{
29
29
  };
30
30
  }): ServerResultAsync<boolean>;
31
31
  getActiveSubscription(ctx: Context): ServerResultAsync<BillingSchema | null>;
32
- listInvoices(ctx: Context): ServerResultAsync<Stripe$1.Invoice[]>;
32
+ listInvoices(ctx: Context): ServerResultAsync<Stripe.Invoice[]>;
33
33
  createCheckoutSession({
34
34
  priceId
35
35
  }: {
@@ -38,15 +38,15 @@ declare class BillingService extends BaseService<{
38
38
  user
39
39
  }: {
40
40
  user: User;
41
- }): ServerResultAsync<Stripe$1.Checkout.Session>;
41
+ }): ServerResultAsync<Stripe.Checkout.Session>;
42
42
  createBillingPortalSession({
43
43
  user
44
44
  }: {
45
45
  user: User;
46
- }): ServerResultAsync<Stripe$1.BillingPortal.Session>;
47
- constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe$1.Event>;
46
+ }): ServerResultAsync<Stripe.BillingPortal.Session>;
47
+ constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe.Event>;
48
48
  syncStripeData(customerId: string, eventType?: string): ServerResultAsync<boolean>;
49
- processEvent(event: Stripe$1.Event): ServerResultAsync<boolean>;
49
+ processEvent(event: Stripe.Event): ServerResultAsync<boolean>;
50
50
  }
51
51
  //#endregion
52
52
  export { BillingService };
@@ -29,8 +29,6 @@ declare const connectSelectOutputSchema: z.ZodObject<{
29
29
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
30
30
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
31
31
  userId: z.ZodString;
32
- scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
32
  provider: z.ZodString;
35
33
  accountType: z.ZodString;
36
34
  providerAccountId: z.ZodString;
@@ -38,6 +36,8 @@ declare const connectSelectOutputSchema: z.ZodObject<{
38
36
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
37
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
38
  tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ scope: 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>>;
@@ -53,8 +53,6 @@ declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
53
53
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
54
54
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
55
55
  userId: z.ZodString;
56
- scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
56
  provider: z.ZodString;
59
57
  accountType: z.ZodString;
60
58
  providerAccountId: z.ZodString;
@@ -62,6 +60,8 @@ declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
62
60
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
61
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
62
  tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ scope: 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>>;
@@ -29,8 +29,6 @@ declare const connectSelectOutputSchema: z.ZodObject<{
29
29
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
30
30
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
31
31
  userId: z.ZodString;
32
- scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
32
  provider: z.ZodString;
35
33
  accountType: z.ZodString;
36
34
  providerAccountId: z.ZodString;
@@ -38,6 +36,8 @@ declare const connectSelectOutputSchema: z.ZodObject<{
38
36
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
37
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
38
  tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ scope: 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>>;
@@ -53,8 +53,6 @@ declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
53
53
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
54
54
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
55
55
  userId: z.ZodString;
56
- scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
56
  provider: z.ZodString;
59
57
  accountType: z.ZodString;
60
58
  providerAccountId: z.ZodString;
@@ -62,6 +60,8 @@ declare const connectListOutputSchema: z.ZodArray<z.ZodObject<{
62
60
  displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
61
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
62
  tokenType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ scope: 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>>;
@@ -398,17 +398,17 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
398
398
  updatedAt: Date | null;
399
399
  expiresAt: Date | null;
400
400
  userId: string;
401
- accessToken: string;
402
- refreshToken: string | null;
403
- scope: string | null;
404
- parentId: string | null;
405
401
  provider: string;
406
402
  accountType: string;
407
403
  providerAccountId: string;
408
404
  handle: string | null;
409
405
  displayName: string | null;
410
406
  avatarUrl: string | null;
407
+ accessToken: string;
408
+ refreshToken: string | null;
411
409
  tokenType: string | null;
410
+ scope: string | null;
411
+ parentId: string | null;
412
412
  metadataJson: unknown;
413
413
  revokedAt: Date | null;
414
414
  lastRefreshedAt: Date | null;
@@ -398,17 +398,17 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
398
398
  updatedAt: Date | null;
399
399
  expiresAt: Date | null;
400
400
  userId: string;
401
- accessToken: string;
402
- refreshToken: string | null;
403
- scope: string | null;
404
- parentId: string | null;
405
401
  provider: string;
406
402
  accountType: string;
407
403
  providerAccountId: string;
408
404
  handle: string | null;
409
405
  displayName: string | null;
410
406
  avatarUrl: string | null;
407
+ accessToken: string;
408
+ refreshToken: string | null;
411
409
  tokenType: string | null;
410
+ scope: string | null;
411
+ parentId: string | null;
412
412
  metadataJson: unknown;
413
413
  revokedAt: Date | null;
414
414
  lastRefreshedAt: Date | null;
@@ -24,17 +24,17 @@ declare class ConnectService extends BaseService<{
24
24
  updatedAt: Date | null;
25
25
  expiresAt: Date | null;
26
26
  userId: string;
27
- accessToken: string;
28
- refreshToken: string | null;
29
- scope: string | null;
30
- parentId: string | null;
31
27
  provider: string;
32
28
  accountType: string;
33
29
  providerAccountId: string;
34
30
  handle: string | null;
35
31
  displayName: string | null;
36
32
  avatarUrl: string | null;
33
+ accessToken: string;
34
+ refreshToken: string | null;
37
35
  tokenType: string | null;
36
+ scope: string | null;
37
+ parentId: string | null;
38
38
  metadataJson: unknown;
39
39
  revokedAt: Date | null;
40
40
  lastRefreshedAt: Date | null;
@@ -45,17 +45,17 @@ declare class ConnectService extends BaseService<{
45
45
  updatedAt: Date | null;
46
46
  expiresAt: Date | null;
47
47
  userId: string;
48
- accessToken: string;
49
- refreshToken: string | null;
50
- scope: string | null;
51
- parentId: string | null;
52
48
  provider: string;
53
49
  accountType: string;
54
50
  providerAccountId: string;
55
51
  handle: string | null;
56
52
  displayName: string | null;
57
53
  avatarUrl: string | null;
54
+ accessToken: string;
55
+ refreshToken: string | null;
58
56
  tokenType: string | null;
57
+ scope: string | null;
58
+ parentId: string | null;
59
59
  metadataJson: unknown;
60
60
  revokedAt: Date | null;
61
61
  lastRefreshedAt: Date | null;
@@ -24,17 +24,17 @@ declare class ConnectService extends BaseService<{
24
24
  updatedAt: Date | null;
25
25
  expiresAt: Date | null;
26
26
  userId: string;
27
- accessToken: string;
28
- refreshToken: string | null;
29
- scope: string | null;
30
- parentId: string | null;
31
27
  provider: string;
32
28
  accountType: string;
33
29
  providerAccountId: string;
34
30
  handle: string | null;
35
31
  displayName: string | null;
36
32
  avatarUrl: string | null;
33
+ accessToken: string;
34
+ refreshToken: string | null;
37
35
  tokenType: string | null;
36
+ scope: string | null;
37
+ parentId: string | null;
38
38
  metadataJson: unknown;
39
39
  revokedAt: Date | null;
40
40
  lastRefreshedAt: Date | null;
@@ -45,17 +45,17 @@ declare class ConnectService extends BaseService<{
45
45
  updatedAt: Date | null;
46
46
  expiresAt: Date | null;
47
47
  userId: string;
48
- accessToken: string;
49
- refreshToken: string | null;
50
- scope: string | null;
51
- parentId: string | null;
52
48
  provider: string;
53
49
  accountType: string;
54
50
  providerAccountId: string;
55
51
  handle: string | null;
56
52
  displayName: string | null;
57
53
  avatarUrl: string | null;
54
+ accessToken: string;
55
+ refreshToken: string | null;
58
56
  tokenType: string | null;
57
+ scope: string | null;
58
+ parentId: string | null;
59
59
  metadataJson: unknown;
60
60
  revokedAt: Date | null;
61
61
  lastRefreshedAt: Date | null;
@@ -26,12 +26,12 @@ declare function createConnectTRPC({
26
26
  providerAccountId: string;
27
27
  updatedAt?: Date | null | undefined;
28
28
  expiresAt?: Date | null | undefined;
29
- scope?: string | null | undefined;
30
- parentId?: string | null | undefined;
31
29
  handle?: string | null | undefined;
32
30
  displayName?: string | null | undefined;
33
31
  avatarUrl?: string | null | undefined;
34
32
  tokenType?: string | null | undefined;
33
+ scope?: string | null | undefined;
34
+ parentId?: string | null | undefined;
35
35
  metadataJson?: unknown;
36
36
  revokedAt?: Date | null | undefined;
37
37
  lastRefreshedAt?: Date | null | undefined;
@@ -26,12 +26,12 @@ declare function createConnectTRPC({
26
26
  providerAccountId: string;
27
27
  updatedAt?: Date | null | undefined;
28
28
  expiresAt?: Date | null | undefined;
29
- scope?: string | null | undefined;
30
- parentId?: string | null | undefined;
31
29
  handle?: string | null | undefined;
32
30
  displayName?: string | null | undefined;
33
31
  avatarUrl?: string | null | undefined;
34
32
  tokenType?: string | null | undefined;
33
+ scope?: string | null | undefined;
34
+ parentId?: string | null | undefined;
35
35
  metadataJson?: unknown;
36
36
  revokedAt?: Date | null | undefined;
37
37
  lastRefreshedAt?: Date | null | undefined;
@@ -0,0 +1,21 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
3
+ const require_src_modules_base_base_service = require("../base/base.service.cjs");
4
+ let mammoth = require("mammoth");
5
+ mammoth = require_runtime.__toESM(mammoth);
6
+ let turndown = require("turndown");
7
+ turndown = require_runtime.__toESM(turndown);
8
+ //#region src/modules/docx/docx.service.ts
9
+ var DocxService = class extends require_src_modules_base_base_service.BaseService {
10
+ async convertToMarkdown(buffer) {
11
+ return this.throwableAsync(async () => {
12
+ const turndown$1 = new turndown.default();
13
+ const { value: html } = await mammoth.default.convertToHtml({ buffer });
14
+ return turndown$1.turndown(html);
15
+ });
16
+ }
17
+ };
18
+ //#endregion
19
+ exports.DocxService = DocxService;
20
+
21
+ //# sourceMappingURL=docx.service.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docx.service.cjs","names":["BaseService","turndown","TurndownService"],"sources":["../../../../src/modules/docx/docx.service.ts"],"sourcesContent":["import mammoth from \"mammoth\";\r\nimport TurndownService from \"turndown\";\r\nimport type { ServerResultAsync } from \"../base/base.dto\";\r\nimport { BaseService } from \"../base/base.service\";\r\n\r\nexport class DocxService extends BaseService<never, never> {\r\n async convertToMarkdown(buffer: Buffer): ServerResultAsync<string> {\r\n return this.throwableAsync(async () => {\r\n const turndown = new TurndownService();\r\n const { value: html } = await mammoth.convertToHtml({ buffer });\r\n const markdown = turndown.turndown(html);\r\n return markdown;\r\n });\r\n }\r\n}\r\n"],"mappings":";;;;;;;;AAKA,IAAa,cAAb,cAAiCA,sCAAAA,YAA0B;CACzD,MAAM,kBAAkB,QAA2C;AACjE,SAAO,KAAK,eAAe,YAAY;GACrC,MAAMC,aAAW,IAAIC,SAAAA,SAAiB;GACtC,MAAM,EAAE,OAAO,SAAS,MAAM,QAAA,QAAQ,cAAc,EAAE,QAAQ,CAAC;AAE/D,UADiBD,WAAS,SAAS,KAAK;IAExC"}
@@ -0,0 +1,10 @@
1
+ import { ServerResultAsync } from "../base/base.dto.cjs";
2
+ import { BaseService } from "../base/base.service.cjs";
3
+
4
+ //#region src/modules/docx/docx.service.d.ts
5
+ declare class DocxService extends BaseService<never, never> {
6
+ convertToMarkdown(buffer: Buffer): ServerResultAsync<string>;
7
+ }
8
+ //#endregion
9
+ export { DocxService };
10
+ //# sourceMappingURL=docx.service.d.cts.map
@@ -0,0 +1,10 @@
1
+ import { ServerResultAsync } from "../base/base.dto.mjs";
2
+ import { BaseService } from "../base/base.service.mjs";
3
+
4
+ //#region src/modules/docx/docx.service.d.ts
5
+ declare class DocxService extends BaseService<never, never> {
6
+ convertToMarkdown(buffer: Buffer): ServerResultAsync<string>;
7
+ }
8
+ //#endregion
9
+ export { DocxService };
10
+ //# sourceMappingURL=docx.service.d.mts.map
@@ -0,0 +1,17 @@
1
+ import { BaseService } from "../base/base.service.mjs";
2
+ import mammoth from "mammoth";
3
+ import TurndownService from "turndown";
4
+ //#region src/modules/docx/docx.service.ts
5
+ var DocxService = class extends BaseService {
6
+ async convertToMarkdown(buffer) {
7
+ return this.throwableAsync(async () => {
8
+ const turndown = new TurndownService();
9
+ const { value: html } = await mammoth.convertToHtml({ buffer });
10
+ return turndown.turndown(html);
11
+ });
12
+ }
13
+ };
14
+ //#endregion
15
+ export { DocxService };
16
+
17
+ //# sourceMappingURL=docx.service.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docx.service.mjs","names":[],"sources":["../../../../src/modules/docx/docx.service.ts"],"sourcesContent":["import mammoth from \"mammoth\";\r\nimport TurndownService from \"turndown\";\r\nimport type { ServerResultAsync } from \"../base/base.dto\";\r\nimport { BaseService } from \"../base/base.service\";\r\n\r\nexport class DocxService extends BaseService<never, never> {\r\n async convertToMarkdown(buffer: Buffer): ServerResultAsync<string> {\r\n return this.throwableAsync(async () => {\r\n const turndown = new TurndownService();\r\n const { value: html } = await mammoth.convertToHtml({ buffer });\r\n const markdown = turndown.turndown(html);\r\n return markdown;\r\n });\r\n }\r\n}\r\n"],"mappings":";;;;AAKA,IAAa,cAAb,cAAiC,YAA0B;CACzD,MAAM,kBAAkB,QAA2C;AACjE,SAAO,KAAK,eAAe,YAAY;GACrC,MAAM,WAAW,IAAI,iBAAiB;GACtC,MAAM,EAAE,OAAO,SAAS,MAAM,QAAQ,cAAc,EAAE,QAAQ,CAAC;AAE/D,UADiB,SAAS,SAAS,KAAK;IAExC"}
@@ -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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
21
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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;
@@ -48,8 +48,8 @@ declare class RecurrenceService extends BaseService<{
48
48
  kind: string;
49
49
  enabled: boolean;
50
50
  recurrenceRules: {
51
- freq: number;
52
51
  interval: number;
52
+ freq: number;
53
53
  bysetpos?: number | number[] | null | undefined;
54
54
  bymonth?: number | number[] | null | undefined;
55
55
  bymonthday?: number | number[] | null | undefined;
@@ -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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
21
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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;
@@ -48,8 +48,8 @@ declare class RecurrenceService extends BaseService<{
48
48
  kind: string;
49
49
  enabled: boolean;
50
50
  recurrenceRules: {
51
- freq: number;
52
51
  interval: number;
52
+ freq: number;
53
53
  bysetpos?: number | number[] | null | undefined;
54
54
  bymonth?: number | number[] | null | undefined;
55
55
  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" | "jsonArray";
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";
24
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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;
@@ -51,8 +51,8 @@ declare function createRecurrenceTRPC({
51
51
  kind: string;
52
52
  enabled: boolean;
53
53
  recurrenceRules: {
54
- freq: number;
55
54
  interval: number;
55
+ freq: number;
56
56
  bysetpos?: number | number[] | null | undefined;
57
57
  bymonth?: number | number[] | null | undefined;
58
58
  bymonthday?: number | number[] | null | undefined;
@@ -151,8 +151,8 @@ declare function createRecurrenceTRPC({
151
151
  updateRule: _$_trpc_server0.TRPCMutationProcedure<{
152
152
  input: {
153
153
  id: string;
154
- freq: number;
155
154
  interval: number;
155
+ freq: number;
156
156
  bysetpos?: number | number[] | null | undefined;
157
157
  bymonth?: number | number[] | null | undefined;
158
158
  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" | "jsonArray";
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";
24
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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;
@@ -51,8 +51,8 @@ declare function createRecurrenceTRPC({
51
51
  kind: string;
52
52
  enabled: boolean;
53
53
  recurrenceRules: {
54
- freq: number;
55
54
  interval: number;
55
+ freq: number;
56
56
  bysetpos?: number | number[] | null | undefined;
57
57
  bymonth?: number | number[] | null | undefined;
58
58
  bymonthday?: number | number[] | null | undefined;
@@ -151,8 +151,8 @@ declare function createRecurrenceTRPC({
151
151
  updateRule: _$_trpc_server0.TRPCMutationProcedure<{
152
152
  input: {
153
153
  id: string;
154
- freq: number;
155
154
  interval: number;
155
+ freq: number;
156
156
  bysetpos?: number | number[] | null | undefined;
157
157
  bymonth?: number | number[] | null | undefined;
158
158
  bymonthday?: number | number[] | null | 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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
24
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
58
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
24
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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" | "intersect" | "on" | "equals" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
58
+ method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/backend",
3
- "version": "0.8.11",
3
+ "version": "0.9.0",
4
4
  "description": "Composable Express server stack with Drizzle ORM and tRPC.",
5
5
  "license": "GPL-3.0-only",
6
6
  "repository": {
@@ -38,8 +38,9 @@
38
38
  "express": "4.21.2",
39
39
  "ffmpeg-ffprobe-static": "6.1.2-rc.1",
40
40
  "ioredis": "5.7.0",
41
- "jsonrepair": "^3.13.3",
41
+ "jsonrepair": "3.13.3",
42
42
  "luxon": "3.7.1",
43
+ "mammoth": "1.12.0",
43
44
  "multer": "1.4.5-lts.1",
44
45
  "mustache": "4.2.0",
45
46
  "neverthrow": "8.2.0",
@@ -56,10 +57,11 @@
56
57
  "stripe": "20.1.0",
57
58
  "tiny-secp256k1": "2.2.3",
58
59
  "trpc-to-openapi": "2.3.0",
60
+ "turndown": "7.2.2",
59
61
  "uuid": "11.0.5",
60
62
  "zod": "4.2.1",
61
- "@m5kdev/commons": "0.8.11",
62
- "@m5kdev/config": "0.8.11"
63
+ "@m5kdev/config": "0.9.0",
64
+ "@m5kdev/commons": "0.9.0"
63
65
  },
64
66
  "devDependencies": {
65
67
  "@jest/globals": "30.2.0",
@@ -75,8 +77,8 @@
75
77
  "drizzle-kit": "0.31.4",
76
78
  "jest": "30.1.3",
77
79
  "ts-jest": "29.4.4",
78
- "tslib": "2.8.1",
79
80
  "tsdown": "0.21.7",
81
+ "tslib": "2.8.1",
80
82
  "tsup": "8.4.0",
81
83
  "tsx": "4.19.2",
82
84
  "typescript": "5.9.2"