@andrewcaires/api 5.7.0 → 5.7.2
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/index.cjs.js +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.esm.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @andrewcaires/api v5.7.
|
|
2
|
+
* @andrewcaires/api v5.7.2
|
|
3
3
|
* Simple api for small applications using express, jsonwebtoken, sequelize and websocket
|
|
4
4
|
* (c) 2026 Andrew Caires
|
|
5
5
|
* @license: MIT
|
|
@@ -619,8 +619,8 @@ declare class AuditsController extends ModelController<AuditModel> {
|
|
|
619
619
|
protected readonly model: typeof AuditModel;
|
|
620
620
|
protected readonly permissions: string[];
|
|
621
621
|
protected all(ctx: Context): Promise<void>;
|
|
622
|
-
protected record(ctx: Context,
|
|
623
|
-
protected get(ctx: Context): Promise<void>;
|
|
622
|
+
protected record(ctx: Context, record: string): Promise<void>;
|
|
623
|
+
protected get(ctx: Context, id: string, read: boolean): Promise<void>;
|
|
624
624
|
private ensurePermission;
|
|
625
625
|
}
|
|
626
626
|
|
|
@@ -1242,6 +1242,7 @@ declare class Env extends Env$1 {
|
|
|
1242
1242
|
static readonly TOKEN_HEADER: string;
|
|
1243
1243
|
static readonly TOKEN_PEPPER: string;
|
|
1244
1244
|
static readonly TOKEN_PREFIX: string;
|
|
1245
|
+
static readonly TOKEN_QUERY: string;
|
|
1245
1246
|
static readonly TOKEN_SECRET: string;
|
|
1246
1247
|
static readonly TOKEN_TTL: number;
|
|
1247
1248
|
static readonly TOKEN_TTL_FORGOT: number;
|