From 16ede85bc2f00a63cd04092c71de9df3e4a622c9 Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Sun, 14 Dec 2025 20:35:19 -0300 Subject: [PATCH 1/3] chore: add empty lines to improve code readability in error handling components and fichaPontoPDF --- apps/web/src/lib/utils/fichaPontoPDF.ts | 3 +++ apps/web/src/routes/(dashboard)/+error.svelte | 3 +++ apps/web/src/routes/+error.svelte | 3 +++ 3 files changed, 9 insertions(+) diff --git a/apps/web/src/lib/utils/fichaPontoPDF.ts b/apps/web/src/lib/utils/fichaPontoPDF.ts index 9f98f87..7a62941 100644 --- a/apps/web/src/lib/utils/fichaPontoPDF.ts +++ b/apps/web/src/lib/utils/fichaPontoPDF.ts @@ -446,3 +446,6 @@ export function adicionarRodape(doc: jsPDF): void { + + + diff --git a/apps/web/src/routes/(dashboard)/+error.svelte b/apps/web/src/routes/(dashboard)/+error.svelte index 1c780c7..056e2fb 100644 --- a/apps/web/src/routes/(dashboard)/+error.svelte +++ b/apps/web/src/routes/(dashboard)/+error.svelte @@ -85,3 +85,6 @@ + + + diff --git a/apps/web/src/routes/+error.svelte b/apps/web/src/routes/+error.svelte index ae3a9ab..d3cdba5 100644 --- a/apps/web/src/routes/+error.svelte +++ b/apps/web/src/routes/+error.svelte @@ -85,3 +85,6 @@ + + + -- 2.49.1 From 1b1d2fb97ee2b017b5e4050c47c898d21a8d6569 Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Sun, 14 Dec 2025 20:39:50 -0300 Subject: [PATCH 2/3] chore: add empty lines to enhance code readability in error handling components --- apps/web/src/lib/utils/fichaPontoPDF.ts | 1 + apps/web/src/routes/(dashboard)/+error.svelte | 1 + apps/web/src/routes/+error.svelte | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/web/src/lib/utils/fichaPontoPDF.ts b/apps/web/src/lib/utils/fichaPontoPDF.ts index 7a62941..2c413d9 100644 --- a/apps/web/src/lib/utils/fichaPontoPDF.ts +++ b/apps/web/src/lib/utils/fichaPontoPDF.ts @@ -449,3 +449,4 @@ export function adicionarRodape(doc: jsPDF): void { + diff --git a/apps/web/src/routes/(dashboard)/+error.svelte b/apps/web/src/routes/(dashboard)/+error.svelte index 056e2fb..ea21971 100644 --- a/apps/web/src/routes/(dashboard)/+error.svelte +++ b/apps/web/src/routes/(dashboard)/+error.svelte @@ -87,4 +87,5 @@ + diff --git a/apps/web/src/routes/+error.svelte b/apps/web/src/routes/+error.svelte index d3cdba5..f9f766d 100644 --- a/apps/web/src/routes/+error.svelte +++ b/apps/web/src/routes/+error.svelte @@ -87,4 +87,5 @@ + -- 2.49.1 From b76c308aabf9a7edcdebfb671ecf9e71815fb4fe Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Sun, 14 Dec 2025 20:56:27 -0300 Subject: [PATCH 3/3] feat: add ratelimit model support in API and data model definitions, enhancing rate limiting functionality --- packages/backend/convex/_generated/api.d.ts | 116 +++++++++++++++++- .../backend/convex/_generated/dataModel.d.ts | 2 +- 2 files changed, 115 insertions(+), 3 deletions(-) diff --git a/packages/backend/convex/_generated/api.d.ts b/packages/backend/convex/_generated/api.d.ts index 1b5ac8d..255192f 100644 --- a/packages/backend/convex/_generated/api.d.ts +++ b/packages/backend/convex/_generated/api.d.ts @@ -352,6 +352,10 @@ export declare const components: { lastRequest?: null | number; }; model: "rateLimit"; + } + | { + data: { count: number; key: string; lastRequest: number }; + model: "ratelimit"; }; onCreateHandle?: string; select?: Array; @@ -729,6 +733,32 @@ export declare const components: { | Array | null; }>; + } + | { + model: "ratelimit"; + where?: Array<{ + connector?: "AND" | "OR"; + field: "key" | "count" | "lastRequest" | "_id"; + operator?: + | "lt" + | "lte" + | "gt" + | "gte" + | "eq" + | "in" + | "not_in" + | "ne" + | "contains" + | "starts_with" + | "ends_with"; + value: + | string + | number + | boolean + | Array + | Array + | null; + }>; }; onDeleteHandle?: string; paginationOpts: { @@ -1113,6 +1143,32 @@ export declare const components: { | Array | null; }>; + } + | { + model: "ratelimit"; + where?: Array<{ + connector?: "AND" | "OR"; + field: "key" | "count" | "lastRequest" | "_id"; + operator?: + | "lt" + | "lte" + | "gt" + | "gte" + | "eq" + | "in" + | "not_in" + | "ne" + | "contains" + | "starts_with" + | "ends_with"; + value: + | string + | number + | boolean + | Array + | Array + | null; + }>; }; onDeleteHandle?: string; }, @@ -1134,7 +1190,8 @@ export declare const components: { | "oauthAccessToken" | "oauthConsent" | "jwks" - | "rateLimit"; + | "rateLimit" + | "ratelimit"; offset?: number; paginationOpts: { cursor: string | null; @@ -1186,7 +1243,8 @@ export declare const components: { | "oauthAccessToken" | "oauthConsent" | "jwks" - | "rateLimit"; + | "rateLimit" + | "ratelimit"; select?: Array; where?: Array<{ connector?: "AND" | "OR"; @@ -1695,6 +1753,33 @@ export declare const components: { | Array | null; }>; + } + | { + model: "ratelimit"; + update: { count?: number; key?: string; lastRequest?: number }; + where?: Array<{ + connector?: "AND" | "OR"; + field: "key" | "count" | "lastRequest" | "_id"; + operator?: + | "lt" + | "lte" + | "gt" + | "gte" + | "eq" + | "in" + | "not_in" + | "ne" + | "contains" + | "starts_with" + | "ends_with"; + value: + | string + | number + | boolean + | Array + | Array + | null; + }>; }; onUpdateHandle?: string; paginationOpts: { @@ -2183,6 +2268,33 @@ export declare const components: { | Array | null; }>; + } + | { + model: "ratelimit"; + update: { count?: number; key?: string; lastRequest?: number }; + where?: Array<{ + connector?: "AND" | "OR"; + field: "key" | "count" | "lastRequest" | "_id"; + operator?: + | "lt" + | "lte" + | "gt" + | "gte" + | "eq" + | "in" + | "not_in" + | "ne" + | "contains" + | "starts_with" + | "ends_with"; + value: + | string + | number + | boolean + | Array + | Array + | null; + }>; }; onUpdateHandle?: string; }, diff --git a/packages/backend/convex/_generated/dataModel.d.ts b/packages/backend/convex/_generated/dataModel.d.ts index f97fd19..8541f31 100644 --- a/packages/backend/convex/_generated/dataModel.d.ts +++ b/packages/backend/convex/_generated/dataModel.d.ts @@ -38,7 +38,7 @@ export type Doc = DocumentByName< * Convex documents are uniquely identified by their `Id`, which is accessible * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids). * - * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions. + * Documents can be loaded using `db.get(id)` in query and mutation functions. * * IDs are just strings at runtime, but this type can be used to distinguish them from other * strings when type checking. -- 2.49.1