@spfn/core 0.1.0-alpha.68 → 0.1.0-alpha.72
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/client/index.d.ts +2 -1
- package/dist/codegen/generators/index.js +59 -57
- package/dist/codegen/generators/index.js.map +1 -1
- package/dist/codegen/index.d.ts +2 -1
- package/dist/codegen/index.js +59 -57
- package/dist/codegen/index.js.map +1 -1
- package/dist/{database-errors-CoPrcOpq.d.ts → database-errors-BNNmLTJE.d.ts} +4 -4
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js.map +1 -1
- package/dist/errors/index.d.ts +20 -3
- package/dist/errors/index.js +15 -3
- package/dist/errors/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +115 -109
- package/dist/index.js.map +1 -1
- package/dist/route/index.d.ts +5 -157
- package/dist/route/index.js +86 -96
- package/dist/route/index.js.map +1 -1
- package/dist/server/index.d.ts +5 -0
- package/dist/server/index.js +115 -109
- package/dist/server/index.js.map +1 -1
- package/dist/types-Dzggq1Yb.d.ts +170 -0
- package/package.json +1 -1
- package/dist/types-CAON3Mmg.d.ts +0 -57
|
@@ -42,11 +42,11 @@ declare class QueryError extends DatabaseError {
|
|
|
42
42
|
constructor(message: string, statusCode?: number, details?: Record<string, any>);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Not Found Error (404 Not Found)
|
|
45
|
+
* Entity Not Found Error (404 Not Found)
|
|
46
46
|
*
|
|
47
|
-
*
|
|
47
|
+
* Database entity does not exist
|
|
48
48
|
*/
|
|
49
|
-
declare class
|
|
49
|
+
declare class EntityNotFoundError extends QueryError {
|
|
50
50
|
constructor(resource: string, id: string | number);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -83,4 +83,4 @@ declare class DuplicateEntryError extends QueryError {
|
|
|
83
83
|
constructor(field: string, value: string | number);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export { ConnectionError as C, DatabaseError as D,
|
|
86
|
+
export { ConnectionError as C, DatabaseError as D, EntityNotFoundError as E, QueryError as Q, TransactionError as T, ConstraintViolationError as a, DeadlockError as b, DuplicateEntryError as c };
|
package/dist/db/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { SQL } from 'drizzle-orm';
|
|
|
5
5
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
6
6
|
import { PgColumn, PgTable } from 'drizzle-orm/pg-core';
|
|
7
7
|
import * as hono from 'hono';
|
|
8
|
-
import { D as DatabaseError } from '../database-errors-
|
|
8
|
+
import { D as DatabaseError } from '../database-errors-BNNmLTJE.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Database Configuration
|