@blitznocode/blitz-orm 0.5.0 → 0.5.2
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 +7 -2
- package/dist/index.d.ts +7 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -47,6 +47,7 @@ type DBHandles = {
|
|
|
47
47
|
type ThingType = 'entity' | 'relation' | 'attribute';
|
|
48
48
|
type BormMetadata = {
|
|
49
49
|
$id: string;
|
|
50
|
+
$op?: string;
|
|
50
51
|
$entity?: string;
|
|
51
52
|
$relation?: string;
|
|
52
53
|
$tempId?: string;
|
|
@@ -94,11 +95,15 @@ type BQLMutationBlock = {
|
|
|
94
95
|
$relation: string;
|
|
95
96
|
});
|
|
96
97
|
type FilledBQLMutationBlock = WithRequired<BQLMutationBlock, '$tempId' | '$op'>;
|
|
97
|
-
type RawBQLMutation = ({
|
|
98
|
+
type RawBQLMutation<T extends Record<string, any> = Record<string, any>> = ({
|
|
99
|
+
$id?: string;
|
|
100
|
+
$op?: 'create' | 'delete' | 'update';
|
|
101
|
+
$tempId?: string;
|
|
102
|
+
} | {
|
|
98
103
|
$entity: string;
|
|
99
104
|
} | {
|
|
100
105
|
$relation: string;
|
|
101
|
-
}) &
|
|
106
|
+
}) & T;
|
|
102
107
|
type ParsedBQLMutation = {
|
|
103
108
|
things: BQLMutationBlock[];
|
|
104
109
|
edges: BQLMutationBlock[];
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ type DBHandles = {
|
|
|
47
47
|
type ThingType = 'entity' | 'relation' | 'attribute';
|
|
48
48
|
type BormMetadata = {
|
|
49
49
|
$id: string;
|
|
50
|
+
$op?: string;
|
|
50
51
|
$entity?: string;
|
|
51
52
|
$relation?: string;
|
|
52
53
|
$tempId?: string;
|
|
@@ -94,11 +95,15 @@ type BQLMutationBlock = {
|
|
|
94
95
|
$relation: string;
|
|
95
96
|
});
|
|
96
97
|
type FilledBQLMutationBlock = WithRequired<BQLMutationBlock, '$tempId' | '$op'>;
|
|
97
|
-
type RawBQLMutation = ({
|
|
98
|
+
type RawBQLMutation<T extends Record<string, any> = Record<string, any>> = ({
|
|
99
|
+
$id?: string;
|
|
100
|
+
$op?: 'create' | 'delete' | 'update';
|
|
101
|
+
$tempId?: string;
|
|
102
|
+
} | {
|
|
98
103
|
$entity: string;
|
|
99
104
|
} | {
|
|
100
105
|
$relation: string;
|
|
101
|
-
}) &
|
|
106
|
+
}) & T;
|
|
102
107
|
type ParsedBQLMutation = {
|
|
103
108
|
things: BQLMutationBlock[];
|
|
104
109
|
edges: BQLMutationBlock[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blitznocode/blitz-orm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"tsup": "^7.2.0",
|
|
52
52
|
"typescript": "^5.2.2"
|
|
53
53
|
},
|
|
54
|
-
"description": "Blitz-orm is
|
|
54
|
+
"description": "Blitz-orm is an Object Relational Mapper (ORM) for graph databases that uses a JSON query language called Blitz Query Language (BQL). BQL is similar to GraphQL but uses JSON instead of strings. This makes it easier to build dynamic queries.",
|
|
55
55
|
"bugs": {
|
|
56
56
|
"url": "https://github.com/Blitzapps/blitz-orm/issues"
|
|
57
57
|
},
|