Compare commits

...

4 Commits

5 changed files with 127 additions and 3 deletions

View File

@@ -446,3 +446,7 @@ export function adicionarRodape(doc: jsPDF): void {

View File

@@ -84,4 +84,8 @@

View File

@@ -84,4 +84,8 @@

View File

@@ -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<string>;
@@ -729,6 +733,32 @@ export declare const components: {
| Array<number>
| 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<string>
| Array<number>
| null;
}>;
};
onDeleteHandle?: string;
paginationOpts: {
@@ -1113,6 +1143,32 @@ export declare const components: {
| Array<number>
| 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<string>
| Array<number>
| 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<string>;
where?: Array<{
connector?: "AND" | "OR";
@@ -1695,6 +1753,33 @@ export declare const components: {
| Array<number>
| 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<string>
| Array<number>
| null;
}>;
};
onUpdateHandle?: string;
paginationOpts: {
@@ -2183,6 +2268,33 @@ export declare const components: {
| Array<number>
| 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<string>
| Array<number>
| null;
}>;
};
onUpdateHandle?: string;
},

View File

@@ -38,7 +38,7 @@ export type Doc<TableName extends TableNames> = 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.