bun-query-builder 0.1.45 → 0.1.47
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/bin/cli.js +1 -1
- package/dist/browser.d.ts +2 -2
- package/dist/dynamodb-single-table.d.ts +2 -8
- package/dist/orm.d.ts +1 -1
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -30901,7 +30901,7 @@ function getPrefix() {
|
|
|
30901
30901
|
}
|
|
30902
30902
|
var prefix = getPrefix();
|
|
30903
30903
|
// package.json
|
|
30904
|
-
var version2 = "0.1.
|
|
30904
|
+
var version2 = "0.1.47";
|
|
30905
30905
|
|
|
30906
30906
|
// bin/cli.ts
|
|
30907
30907
|
init_actions();
|
package/dist/browser.d.ts
CHANGED
|
@@ -73,11 +73,11 @@ export declare const browserAuth: {
|
|
|
73
73
|
/**
|
|
74
74
|
* Login and store token
|
|
75
75
|
*/
|
|
76
|
-
login: (credentials: { email: string, password: string }) => Promise
|
|
76
|
+
login: (credentials: { email: string, password: string }) => Promise<{ user: Record<string, unknown>, token: string }>;
|
|
77
77
|
/**
|
|
78
78
|
* Register a new user
|
|
79
79
|
*/
|
|
80
|
-
register: (data: { name: string, email: string, password: string }) => Promise
|
|
80
|
+
register: (data: { name: string, email: string, password: string }) => Promise<{ user: Record<string, unknown>, token: string }>;
|
|
81
81
|
/**
|
|
82
82
|
* Logout and clear token
|
|
83
83
|
*/
|
|
@@ -38,20 +38,14 @@ export declare const SingleTablePatterns: {
|
|
|
38
38
|
* Parent: PK=PARENT#<parentId>, SK=METADATA
|
|
39
39
|
* Child: PK=PARENT#<parentId>, SK=CHILD#<childId>
|
|
40
40
|
*/
|
|
41
|
-
oneToMany: (parentEntity: string,
|
|
42
|
-
childEntity: string,
|
|
43
|
-
parentIdField?: string,
|
|
44
|
-
childIdField?: string,) => ;
|
|
41
|
+
oneToMany: (parentEntity: string, childEntity: string, parentIdField?: string, childIdField?: string,) => { parent: SingleTableEntity, child: SingleTableEntity };
|
|
45
42
|
/**
|
|
46
43
|
* Many-to-many relationship pattern using adjacency list
|
|
47
44
|
* Entity: PK=ENTITY#<entityId>, SK=METADATA
|
|
48
45
|
* Relationship: PK=ENTITY#<entityId>, SK=RELATED#<relatedId>
|
|
49
46
|
* Inverse: PK=ENTITY#<relatedId>, SK=RELATED#<entityId> (via GSI)
|
|
50
47
|
*/
|
|
51
|
-
manyToMany: (entityName: string,
|
|
52
|
-
relationName: string,
|
|
53
|
-
idField?: string,
|
|
54
|
-
relatedIdField?: string,) => ;
|
|
48
|
+
manyToMany: (entityName: string, relationName: string, idField?: string, relatedIdField?: string,) => { entity: SingleTableEntity, relation: SingleTableEntity };
|
|
55
49
|
/**
|
|
56
50
|
* Hierarchical data pattern (e.g., org chart, file system)
|
|
57
51
|
* PK: ROOT#<rootId>
|
package/dist/orm.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ export type ModelStatic<TDef extends ModelDefinition> = StaticWhereOverloads<TDe
|
|
|
402
402
|
[K in AttributeKeys<TDef> as `where${Capitalize<K>}`]: (value: K extends keyof ModelAttributes<TDef> ? ModelAttributes<TDef>[K] : unknown) => ModelQueryBuilder<TDef>
|
|
403
403
|
}
|
|
404
404
|
declare class SqliteExecutor implements OrmExecutor {
|
|
405
|
-
readonly dialect:
|
|
405
|
+
readonly dialect: 'sqlite';
|
|
406
406
|
public readonly sqliteDb: Database;
|
|
407
407
|
constructor(sqliteDb: Database);
|
|
408
408
|
all(sql: string, params: unknown[]): Promise<Record<string, unknown>[]>;
|
package/dist/types.d.ts
CHANGED
|
@@ -184,11 +184,11 @@ export declare interface PoolConfig {
|
|
|
184
184
|
}
|
|
185
185
|
export declare interface DatabaseConfig {
|
|
186
186
|
database: string
|
|
187
|
-
username
|
|
188
|
-
password
|
|
189
|
-
host
|
|
187
|
+
username?: string
|
|
188
|
+
password?: string
|
|
189
|
+
host?: string
|
|
190
190
|
url?: string
|
|
191
|
-
port
|
|
191
|
+
port?: number
|
|
192
192
|
ssl?: boolean
|
|
193
193
|
pool?: PoolConfig
|
|
194
194
|
}
|
package/package.json
CHANGED