@blitznocode/blitz-orm 0.0.43 → 0.0.45
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.ts +8 -3
- package/dist/index.js +3 -1775
- package/package.json +5 -9
package/dist/index.d.ts
CHANGED
|
@@ -66,19 +66,21 @@ type BormRelation = BormEntity & {
|
|
|
66
66
|
[key: string]: RoleField;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
type EnrichedBormEntity = Omit<BormEntity, 'linkFields' | 'idFields'> & {
|
|
69
|
+
type EnrichedBormEntity = Omit<BormEntity, 'linkFields' | 'idFields' | 'dataFields'> & {
|
|
70
70
|
extends?: string;
|
|
71
71
|
idFields: string[];
|
|
72
72
|
thingType: 'entity';
|
|
73
73
|
name: string;
|
|
74
74
|
computedFields: string[];
|
|
75
75
|
linkFields?: EnrichedLinkField[];
|
|
76
|
+
dataFields?: EnrichedDataField[];
|
|
76
77
|
};
|
|
77
|
-
type EnrichedBormRelation = Omit<BormRelation, 'linkFields'> & {
|
|
78
|
+
type EnrichedBormRelation = Omit<BormRelation, 'linkFields' | 'dataFields'> & {
|
|
78
79
|
thingType: 'relation';
|
|
79
80
|
name: string;
|
|
80
81
|
computedFields: string[];
|
|
81
82
|
linkFields?: EnrichedLinkField[];
|
|
83
|
+
dataFields?: EnrichedDataField[];
|
|
82
84
|
roles: {
|
|
83
85
|
[key: string]: EnrichedRoleField;
|
|
84
86
|
};
|
|
@@ -147,6 +149,9 @@ type DataField = BormField & {
|
|
|
147
149
|
validations?: any;
|
|
148
150
|
dbConnectors?: [DBConnector, ...DBConnector[]];
|
|
149
151
|
};
|
|
152
|
+
type EnrichedDataField = DataField & {
|
|
153
|
+
dbPath: string;
|
|
154
|
+
};
|
|
150
155
|
type ThingType = 'entity' | 'relation' | 'attribute';
|
|
151
156
|
type RightType = 'CREATE' | 'DELETE' | 'UPDATE' | 'LINK' | 'UNLINK';
|
|
152
157
|
type ContentType = 'ID' | 'JSON' | 'COLOR' | 'BOOLEAN' | 'POINT' | 'FILE' | 'EMAIL' | 'PHONE' | 'WEEK_DAY' | 'DURATION' | 'HOUR' | 'TIME' | 'DATE' | 'RATING' | 'CURRENCY' | 'PERCENTAGE' | 'NUMBER_DECIMAL' | 'NUMBER' | 'URL' | 'PASSWORD' | 'LANGUAGE_TEXT' | 'RICH_TEXT' | 'TEXT';
|
|
@@ -247,4 +252,4 @@ declare class BormClient {
|
|
|
247
252
|
close: () => Promise<void>;
|
|
248
253
|
}
|
|
249
254
|
|
|
250
|
-
export { BQLField, BQLFieldObj, BQLMutationBlock, BQLResponse, BQLResponseMulti, BQLResponseSingle, BormConfig, BormEntity, BormField, BormRelation, BormSchema, CardinalityType, ContentType, DBConnector, DBHandles, DataField, DataFilter, EnrichedBormEntity, EnrichedBormRelation, EnrichedBormSchema, EnrichedLinkField, EnrichedRoleField, FilledBQLMutationBlock, Filter, LinkField, LinkFilter, LinkedFieldWithThing, MiddleFilter, ParsedBQLMutation, ParsedBQLQuery, ProviderObject, RawBQLMutation, RawBQLQuery, RelationClassType, RightType, RoleField, TQLEntityMutation, TQLRequest, ThingType, BormClient as default };
|
|
255
|
+
export { BQLField, BQLFieldObj, BQLMutationBlock, BQLResponse, BQLResponseMulti, BQLResponseSingle, BormConfig, BormEntity, BormField, BormRelation, BormSchema, CardinalityType, ContentType, DBConnector, DBHandles, DataField, DataFilter, EnrichedBormEntity, EnrichedBormRelation, EnrichedBormSchema, EnrichedDataField, EnrichedLinkField, EnrichedRoleField, FilledBQLMutationBlock, Filter, LinkField, LinkFilter, LinkedFieldWithThing, MiddleFilter, ParsedBQLMutation, ParsedBQLQuery, ProviderObject, RawBQLMutation, RawBQLQuery, RelationClassType, RightType, RoleField, TQLEntityMutation, TQLRequest, ThingType, BormClient as default };
|