bun-query-builder 0.1.11 → 0.1.13
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/browser.d.ts +2 -4
- package/dist/browser.js +797 -0
- package/dist/client.d.ts +10 -2
- package/dist/dynamodb/index.js +2274 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19051 -16881
- package/dist/orm.d.ts +82 -10
- package/dist/schema.d.ts +2 -1
- package/package.json +1 -5
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BrowserConfig } from './types';
|
|
2
|
+
import type { Faker } from 'ts-mocker';
|
|
2
3
|
export type { BrowserModelInstance, BrowserModelQueryBuilder };
|
|
3
4
|
/**
|
|
4
5
|
* Configure the browser query client
|
|
@@ -95,7 +96,7 @@ export declare interface BrowserTypedAttribute<T = unknown> {
|
|
|
95
96
|
rule: unknown
|
|
96
97
|
message?: Record<string, string>
|
|
97
98
|
}
|
|
98
|
-
factory?: (faker:
|
|
99
|
+
factory?: (faker: Faker) => InferType<T>
|
|
99
100
|
}
|
|
100
101
|
// Base model definition for browser
|
|
101
102
|
export declare interface BrowserModelDefinition {
|
|
@@ -124,9 +125,6 @@ declare interface QueryState {
|
|
|
124
125
|
selectColumns: string[]
|
|
125
126
|
withRelations: string[]
|
|
126
127
|
}
|
|
127
|
-
// ============================================================================
|
|
128
|
-
// Type inference system (mirrors orm.ts)
|
|
129
|
-
// ============================================================================
|
|
130
128
|
// Primitive type mappings
|
|
131
129
|
declare type PrimitiveTypeMap = {
|
|
132
130
|
string: string
|