@blitznocode/blitz-orm 0.12.5 → 0.12.6
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.d.mts +12 -8
- package/dist/index.mjs +63 -63
- package/dist/index.mjs.map +1 -1
- package/dist/magic-string.es-P5U3U4RG.mjs +17 -0
- package/dist/magic-string.es-P5U3U4RG.mjs.map +1 -0
- package/package.json +2 -2
- package/readme.md +1 -1
- package/dist/magic-string.es-Y46ICLQT.mjs +0 -17
- package/dist/magic-string.es-Y46ICLQT.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -370,6 +370,8 @@ type EnrichedBormSchema = {
|
|
|
370
370
|
type SharedEnrichedProps = {
|
|
371
371
|
name: string;
|
|
372
372
|
computedFields: string[];
|
|
373
|
+
extends?: string;
|
|
374
|
+
idFields: string[];
|
|
373
375
|
virtualFields: string[];
|
|
374
376
|
requiredFields: string[];
|
|
375
377
|
enumFields: string[];
|
|
@@ -383,18 +385,16 @@ type SharedEnrichedProps = {
|
|
|
383
385
|
dbContext: AdapterContext;
|
|
384
386
|
allExtends?: string[];
|
|
385
387
|
subTypes?: string[];
|
|
388
|
+
hooks?: Hooks;
|
|
386
389
|
};
|
|
387
390
|
type EnrichedBormEntity = Omit<BormEntity, 'linkFields' | 'idFields' | 'dataFields'> & {
|
|
388
|
-
extends?: string;
|
|
389
391
|
thingType: 'entity';
|
|
390
|
-
idFields: string[];
|
|
391
392
|
} & SharedEnrichedProps;
|
|
392
393
|
type EnrichedBormRelation = Omit<BormRelation, 'linkFields' | 'dataFields'> & {
|
|
393
394
|
thingType: 'relation';
|
|
394
395
|
roles: {
|
|
395
396
|
[key: string]: EnrichedRoleField;
|
|
396
397
|
};
|
|
397
|
-
idFields: string[];
|
|
398
398
|
} & SharedEnrichedProps;
|
|
399
399
|
type EnrichedRoleField = RoleField & {
|
|
400
400
|
path: string;
|
|
@@ -412,7 +412,9 @@ type EnrichedRoleField = RoleField & {
|
|
|
412
412
|
};
|
|
413
413
|
};
|
|
414
414
|
type EnrichedRefField = RefField & {
|
|
415
|
+
path: string;
|
|
415
416
|
dbPath: string;
|
|
417
|
+
inherited: boolean;
|
|
416
418
|
[SharedMetadata]: {
|
|
417
419
|
inheritanceOrigin?: string;
|
|
418
420
|
fieldType: 'refField';
|
|
@@ -420,6 +422,7 @@ type EnrichedRefField = RefField & {
|
|
|
420
422
|
};
|
|
421
423
|
type EnrichedDataField = DataField & {
|
|
422
424
|
dbPath: string;
|
|
425
|
+
isIdField: boolean;
|
|
423
426
|
inherited: boolean;
|
|
424
427
|
[SharedMetadata]: {
|
|
425
428
|
inheritanceOrigin?: string;
|
|
@@ -430,7 +433,6 @@ type EnrichedDataField = DataField & {
|
|
|
430
433
|
};
|
|
431
434
|
};
|
|
432
435
|
type EnrichedLinkField = LinkField & {
|
|
433
|
-
name: string;
|
|
434
436
|
relation: string;
|
|
435
437
|
plays: string;
|
|
436
438
|
$things: string[];
|
|
@@ -758,14 +760,16 @@ type BormProps = {
|
|
|
758
760
|
config: BormConfig;
|
|
759
761
|
};
|
|
760
762
|
declare class BormClient {
|
|
761
|
-
#private;
|
|
762
763
|
private schema;
|
|
763
764
|
private config;
|
|
764
|
-
private
|
|
765
|
+
private initializing;
|
|
766
|
+
private subscribers;
|
|
767
|
+
private initialized;
|
|
765
768
|
constructor({ schema, config }: BormProps);
|
|
766
769
|
getDbHandles: () => DBHandles | undefined;
|
|
770
|
+
private getInitialized;
|
|
767
771
|
init: () => Promise<void>;
|
|
768
|
-
introspect: () => Promise<
|
|
772
|
+
introspect: () => Promise<EnrichedBormSchema>;
|
|
769
773
|
define: () => Promise<{
|
|
770
774
|
typeDB: any;
|
|
771
775
|
surrealDB: {
|
|
@@ -777,4 +781,4 @@ declare class BormClient {
|
|
|
777
781
|
close: () => Promise<void>;
|
|
778
782
|
}
|
|
779
783
|
|
|
780
|
-
export { type Action, type AllDbHandles, type BQLField, type BQLFieldObj, type BQLMutation, type BQLMutationBlock, type BQLResponse, type BQLResponseMulti, type BQLResponseSingle, type BaseResponse, type BormConfig, type BormEntity, type BormField, type BormMetadata, type BormOperation, type BormRelation, type BormSchema, type BormTrigger, type Cardinality, type CommonProvider, type ContentType, type ContentTypeMapping, type DBConnector, type DBHandleKey, type DBHandles, type DataField, type DiscreteCardinality, type EnrichedAttributeQuery, type EnrichedBQLMutationBlock, type EnrichedBQLQuery, type EnrichedBormEntity, type EnrichedBormRelation, type EnrichedBormSchema, type EnrichedDataField, type EnrichedEntityQuery, type EnrichedFieldQuery, type EnrichedLinkField, type EnrichedLinkQuery, type EnrichedRefField, type EnrichedRefQuery, type EnrichedRelationQuery, type EnrichedRoleField, type EnrichedRoleQuery, type FilledBQLMutationBlock, type Filter, type FilterValue, type Hooks, type LinkField, type LinkedFieldWithThing, type MutationConfig, type NegativeFilter, type NodeFunctionParams, type ParsedBQLMutation, type Pipeline, type PipelineOperation, type PlayedBy, type PositiveFilter, type PreHook, type Provider, type QueryConfig, type RawBQLMutation, type RawBQLQuery, type RefField, type Request, type RightType, type RoleField, type RootBQLMutationBlock, type Sorter, type TQLEntityMutation, type TQLRequest, type ThingType, type TransFormAction, type TypeDBClusterProvider, type TypeDBHandles, type TypeDBProvider, type TypeGen, type ValidateAction, type Validations, type WithBormMetadata, BormClient as default };
|
|
784
|
+
export { type Action, type AllDbHandles, type BQLField, type BQLFieldObj, type BQLMutation, type BQLMutationBlock, type BQLResponse, type BQLResponseMulti, type BQLResponseSingle, type BaseResponse, type BormConfig, type BormEntity, type BormField, type BormMetadata, type BormOperation, type BormRelation, type BormSchema, type BormTrigger, type Cardinality, type CommonProvider, type ContentType, type ContentTypeMapping, type DBConnector, type DBHandleKey, type DBHandles, type DataField, type DiscreteCardinality, type EnrichedAttributeQuery, type EnrichedBQLMutationBlock, type EnrichedBQLQuery, type EnrichedBormEntity, type EnrichedBormRelation, type EnrichedBormSchema, type EnrichedDataField, type EnrichedEntityQuery, type EnrichedFieldQuery, type EnrichedLinkField, type EnrichedLinkQuery, type EnrichedRefField, type EnrichedRefQuery, type EnrichedRelationQuery, type EnrichedRoleField, type EnrichedRoleQuery, type FilledBQLMutationBlock, type Filter, type FilterValue, type Hooks, type LinkField, type LinkedFieldWithThing, type MutationConfig, type NegativeFilter, type NodeFunctionParams, type ParsedBQLMutation, type Pipeline, type PipelineOperation, type PlayedBy, type PositiveFilter, type PreHook, type Provider, type QueryConfig, type RawBQLMutation, type RawBQLQuery, type RefField, type Request, type RightType, type RoleField, type RootBQLMutationBlock, type SharedEnrichedProps, type Sorter, type TQLEntityMutation, type TQLRequest, type ThingType, type TransFormAction, type TypeDBClusterProvider, type TypeDBHandles, type TypeDBProvider, type TypeGen, type ValidateAction, type Validations, type WithBormMetadata, BormClient as default };
|