@m5kdev/backend 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/modules/ai/ai.repository.d.mts +1 -1
- package/dist/src/modules/ai/ai.repository.mjs +1 -1
- package/dist/src/modules/ai/ai.service.mjs +1 -1
- package/dist/src/modules/auth/auth.lib.d.mts +6 -6
- package/dist/src/modules/auth/auth.middleware.d.mts +1 -1
- package/dist/src/modules/auth/auth.repository.mjs +1 -1
- package/dist/src/modules/auth/auth.utils.mjs +1 -1
- package/dist/src/modules/base/base.repository.d.mts +1 -1
- package/dist/src/modules/billing/billing.repository.d.mts +12 -12
- package/dist/src/modules/billing/billing.service.d.mts +7 -7
- package/dist/src/modules/connect/connect.dto.d.mts +2 -2
- package/dist/src/modules/connect/connect.repository.d.mts +2 -2
- package/dist/src/modules/connect/connect.service.d.mts +2 -2
- package/dist/src/modules/file/file.service.mjs +1 -1
- package/dist/src/modules/recurrence/recurrence.repository.d.mts +1 -1
- package/dist/src/modules/recurrence/recurrence.service.d.mts +2 -2
- package/dist/src/modules/recurrence/recurrence.trpc.d.mts +3 -3
- package/dist/src/modules/tag/tag.dto.d.mts +1 -1
- package/dist/src/modules/tag/tag.trpc.d.mts +2 -2
- package/dist/src/modules/video/video.service.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerResultAsync } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
|
-
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
4
3
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
|
+
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
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 { BaseTableRepository } from "../base/base.repository.mjs";
|
|
2
1
|
import { ai_db_exports } from "./ai.db.mjs";
|
|
2
|
+
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
3
|
import { eq, sql } from "drizzle-orm";
|
|
4
4
|
import { ok } from "neverthrow";
|
|
5
5
|
//#region src/modules/ai/ai.repository.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseService } from "../base/base.service.mjs";
|
|
2
1
|
import { repairJsonPrompt } from "./ai.prompts.mjs";
|
|
2
|
+
import { BaseService } from "../base/base.service.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";
|
|
@@ -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 { InferSelectModel } from "drizzle-orm";
|
|
6
5
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
6
|
+
import { InferSelectModel } from "drizzle-orm";
|
|
7
7
|
import * as _$better_auth0 from "better-auth";
|
|
8
8
|
import { BetterAuthOptions, betterAuth } from "better-auth";
|
|
9
9
|
import * as _$better_auth_api0 from "better-auth/api";
|
|
@@ -3279,14 +3279,14 @@ declare function createBetterAuth<O extends Orm, S extends Schema, E extends Ema
|
|
|
3279
3279
|
$Infer: {
|
|
3280
3280
|
body: ({
|
|
3281
3281
|
permission: {
|
|
3282
|
-
readonly user?: ("update" | "
|
|
3283
|
-
readonly session?: ("
|
|
3282
|
+
readonly user?: ("update" | "list" | "delete" | "get" | "set-role" | "create" | "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?: ("update" | "
|
|
3289
|
-
readonly session?: ("
|
|
3288
|
+
readonly user?: ("update" | "list" | "delete" | "get" | "set-role" | "create" | "ban" | "impersonate" | "set-password")[] | undefined;
|
|
3289
|
+
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
3290
3290
|
};
|
|
3291
3291
|
permission?: never | undefined;
|
|
3292
3292
|
}) & {
|
|
@@ -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" | "
|
|
4833
|
+
fields?: Partial<Record<"createdAt" | "updatedAt" | "expiresAt" | "identifier" | "value", string>>;
|
|
4834
4834
|
additionalFields?: {
|
|
4835
4835
|
[key: string]: _$better_auth0.DBFieldAttribute;
|
|
4836
4836
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BetterAuth } from "./auth.lib.mjs";
|
|
2
|
-
import { InferSelectModel } from "drizzle-orm";
|
|
3
2
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
3
|
+
import { InferSelectModel } from "drizzle-orm";
|
|
4
4
|
import { NextFunction, Request, Response } from "express";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/auth/auth.middleware.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { auth_db_exports } from "./auth.db.mjs";
|
|
2
2
|
import { BaseRepository } from "../base/base.repository.mjs";
|
|
3
|
+
import { v4 } from "uuid";
|
|
3
4
|
import { and, count, desc, eq, gte, ne } from "drizzle-orm";
|
|
4
5
|
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) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { auth_db_exports } from "./auth.db.mjs";
|
|
2
|
-
import { desc, eq } from "drizzle-orm";
|
|
3
2
|
import { v4 } from "uuid";
|
|
3
|
+
import { desc, eq } from "drizzle-orm";
|
|
4
4
|
//#region src/modules/auth/auth.utils.ts
|
|
5
5
|
({ ...auth_db_exports });
|
|
6
6
|
async function getActiveOrganizationAndTeam(orm, schema, userId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerResultAsync, pickColumns } from "./base.dto.mjs";
|
|
2
2
|
import { Base } from "./base.abstract.mjs";
|
|
3
|
-
import { InferInsertModel, InferSelectModel, SQL, SelectedFields } from "drizzle-orm";
|
|
4
3
|
import { SQLiteColumn, SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
4
|
+
import { InferInsertModel, InferSelectModel, SQL, SelectedFields } from "drizzle-orm";
|
|
5
5
|
import { QueryFilters, QueryInput } from "@m5kdev/commons/modules/schemas/query.schema";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { InferSelectModel } from "drizzle-orm";
|
|
5
4
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
|
+
import { InferSelectModel } from "drizzle-orm";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
|
-
import { Stripe
|
|
7
|
+
import { Stripe } 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;
|
|
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;
|
|
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
|
|
2733
|
+
getCustomerByEmail(email: string): ServerResultAsync<Stripe.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
|
|
2744
|
-
createTrialSubscription(customerId: string): ServerResultAsync<Stripe
|
|
2743
|
+
}): ServerResultAsync<Stripe.Customer>;
|
|
2744
|
+
createTrialSubscription(customerId: string): ServerResultAsync<Stripe.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
|
|
2755
|
+
}): ServerResultAsync<Stripe.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
|
|
2765
|
+
listInvoices(customerId: string): ServerResultAsync<Stripe.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
|
|
2775
|
-
createBillingPortalSession(customerId: string): ServerResultAsync<Stripe
|
|
2774
|
+
}): ServerResultAsync<Stripe.Checkout.Session>;
|
|
2775
|
+
createBillingPortalSession(customerId: string): ServerResultAsync<Stripe.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
|
|
2783
|
+
constructEvent(body: Buffer | string, signature: string, secret: string): ServerResult<Stripe.Event>;
|
|
2784
2784
|
}
|
|
2785
2785
|
//#endregion
|
|
2786
2786
|
export { BillingRepository };
|
|
@@ -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 from "stripe";
|
|
7
|
+
import Stripe$1 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.Customer>;
|
|
21
|
+
}): ServerResultAsync<Stripe$1.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.Invoice[]>;
|
|
32
|
+
listInvoices(ctx: Context): ServerResultAsync<Stripe$1.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.Checkout.Session>;
|
|
41
|
+
}): ServerResultAsync<Stripe$1.Checkout.Session>;
|
|
42
42
|
createBillingPortalSession({
|
|
43
43
|
user
|
|
44
44
|
}: {
|
|
45
45
|
user: User;
|
|
46
|
-
}): ServerResultAsync<Stripe.BillingPortal.Session>;
|
|
47
|
-
constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe.Event>;
|
|
46
|
+
}): ServerResultAsync<Stripe$1.BillingPortal.Session>;
|
|
47
|
+
constructEvent(body: Buffer | string, signature: string): ServerResult<Stripe$1.Event>;
|
|
48
48
|
syncStripeData(customerId: string, eventType?: string): ServerResultAsync<boolean>;
|
|
49
|
-
processEvent(event: Stripe.Event): ServerResultAsync<boolean>;
|
|
49
|
+
processEvent(event: Stripe$1.Event): ServerResultAsync<boolean>;
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
52
|
export { BillingService };
|
|
@@ -29,8 +29,8 @@ 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
32
|
provider: z.ZodString;
|
|
33
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
accountType: z.ZodString;
|
|
35
35
|
providerAccountId: z.ZodString;
|
|
36
36
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -53,8 +53,8 @@ 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
56
|
provider: z.ZodString;
|
|
57
|
+
scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
accountType: z.ZodString;
|
|
59
59
|
providerAccountId: z.ZodString;
|
|
60
60
|
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ServerResult } from "../base/base.dto.mjs";
|
|
2
2
|
import { BaseTableRepository } from "../base/base.repository.mjs";
|
|
3
3
|
import { ConnectListInputSchema } from "./connect.dto.mjs";
|
|
4
|
-
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
5
4
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
5
|
+
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
6
6
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/connect/connect.repository.d.ts
|
|
@@ -398,10 +398,10 @@ declare class ConnectRepository extends BaseTableRepository<Orm, Schema, Record<
|
|
|
398
398
|
updatedAt: Date | null;
|
|
399
399
|
expiresAt: Date | null;
|
|
400
400
|
userId: string;
|
|
401
|
+
provider: string;
|
|
401
402
|
accessToken: string;
|
|
402
403
|
refreshToken: string | null;
|
|
403
404
|
scope: string | null;
|
|
404
|
-
provider: string;
|
|
405
405
|
accountType: string;
|
|
406
406
|
providerAccountId: string;
|
|
407
407
|
handle: string | null;
|
|
@@ -24,10 +24,10 @@ declare class ConnectService extends BaseService<{
|
|
|
24
24
|
updatedAt: Date | null;
|
|
25
25
|
expiresAt: Date | null;
|
|
26
26
|
userId: string;
|
|
27
|
+
provider: string;
|
|
27
28
|
accessToken: string;
|
|
28
29
|
refreshToken: string | null;
|
|
29
30
|
scope: string | null;
|
|
30
|
-
provider: string;
|
|
31
31
|
accountType: string;
|
|
32
32
|
providerAccountId: string;
|
|
33
33
|
handle: string | null;
|
|
@@ -45,10 +45,10 @@ declare class ConnectService extends BaseService<{
|
|
|
45
45
|
updatedAt: Date | null;
|
|
46
46
|
expiresAt: Date | null;
|
|
47
47
|
userId: string;
|
|
48
|
+
provider: string;
|
|
48
49
|
accessToken: string;
|
|
49
50
|
refreshToken: string | null;
|
|
50
51
|
scope: string | null;
|
|
51
|
-
provider: string;
|
|
52
52
|
accountType: string;
|
|
53
53
|
providerAccountId: string;
|
|
54
54
|
handle: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
|
-
import { err, ok } from "neverthrow";
|
|
3
2
|
import { v4 } from "uuid";
|
|
3
|
+
import { err, ok } from "neverthrow";
|
|
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 { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
4
3
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
|
+
import { InferInsertModel, InferSelectModel } from "drizzle-orm";
|
|
5
5
|
import { LibSQLDatabase } from "drizzle-orm/libsql";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/recurrence/recurrence.repository.d.ts
|
|
@@ -18,7 +18,7 @@ declare class RecurrenceService extends BaseService<{
|
|
|
18
18
|
filters?: {
|
|
19
19
|
columnId: string;
|
|
20
20
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
21
|
-
method: "
|
|
21
|
+
method: "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;
|
|
@@ -47,8 +47,8 @@ declare class RecurrenceService extends BaseService<{
|
|
|
47
47
|
kind: string;
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
recurrenceRules: {
|
|
50
|
-
freq: number;
|
|
51
50
|
interval: number;
|
|
51
|
+
freq: number;
|
|
52
52
|
bysetpos?: number | number[] | null | undefined;
|
|
53
53
|
bymonth?: number | number[] | null | undefined;
|
|
54
54
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -21,7 +21,7 @@ declare function createRecurrenceTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "
|
|
24
|
+
method: "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;
|
|
@@ -50,8 +50,8 @@ declare function createRecurrenceTRPC({
|
|
|
50
50
|
kind: string;
|
|
51
51
|
enabled: boolean;
|
|
52
52
|
recurrenceRules: {
|
|
53
|
-
freq: number;
|
|
54
53
|
interval: number;
|
|
54
|
+
freq: number;
|
|
55
55
|
bysetpos?: number | number[] | null | undefined;
|
|
56
56
|
bymonth?: number | number[] | null | undefined;
|
|
57
57
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -150,8 +150,8 @@ declare function createRecurrenceTRPC({
|
|
|
150
150
|
updateRule: _$_trpc_server0.TRPCMutationProcedure<{
|
|
151
151
|
input: {
|
|
152
152
|
id: string;
|
|
153
|
-
freq: number;
|
|
154
153
|
interval: number;
|
|
154
|
+
freq: number;
|
|
155
155
|
bysetpos?: number | number[] | null | undefined;
|
|
156
156
|
bymonth?: number | number[] | null | undefined;
|
|
157
157
|
bymonthday?: number | number[] | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerError } from "../../utils/errors.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { Result } from "neverthrow";
|
|
4
3
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
4
|
+
import { Result } from "neverthrow";
|
|
5
5
|
import * as _$drizzle_zod0 from "drizzle-zod";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/tag/tag.dto.d.ts
|
|
@@ -21,7 +21,7 @@ declare function createTagTRPC({
|
|
|
21
21
|
filters?: {
|
|
22
22
|
columnId: string;
|
|
23
23
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
24
|
-
method: "
|
|
24
|
+
method: "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;
|
|
@@ -54,7 +54,7 @@ declare function createTagTRPC({
|
|
|
54
54
|
resourceIds?: {
|
|
55
55
|
columnId: string;
|
|
56
56
|
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
57
|
-
method: "
|
|
57
|
+
method: "intersect" | "on" | "contains" | "starts_with" | "ends_with" | "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,6 +1,6 @@
|
|
|
1
1
|
import { BaseService } from "../base/base.service.mjs";
|
|
2
|
-
import { err, ok } from "neverthrow";
|
|
3
2
|
import { v4 } from "uuid";
|
|
3
|
+
import { err, ok } from "neverthrow";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { closeSync, existsSync, mkdirSync, openSync } from "node:fs";
|
|
6
6
|
import ffbin from "ffmpeg-ffprobe-static";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/backend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
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/
|
|
63
|
-
"@m5kdev/
|
|
62
|
+
"@m5kdev/commons": "0.8.4",
|
|
63
|
+
"@m5kdev/config": "0.8.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@jest/globals": "30.2.0",
|