@blitznocode/blitz-orm 0.5.0 → 0.5.1

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 CHANGED
@@ -94,11 +94,15 @@ type BQLMutationBlock = {
94
94
  $relation: string;
95
95
  });
96
96
  type FilledBQLMutationBlock = WithRequired<BQLMutationBlock, '$tempId' | '$op'>;
97
- type RawBQLMutation = ({
97
+ type RawBQLMutation<T extends Record<string, any> = Record<string, any>> = ({
98
+ $id?: string;
99
+ $op?: 'create' | 'delete' | 'update';
100
+ $tempId?: string;
101
+ } | {
98
102
  $entity: string;
99
103
  } | {
100
104
  $relation: string;
101
- }) & Record<string, any>;
105
+ }) & T;
102
106
  type ParsedBQLMutation = {
103
107
  things: BQLMutationBlock[];
104
108
  edges: BQLMutationBlock[];
package/dist/index.d.ts CHANGED
@@ -94,11 +94,15 @@ type BQLMutationBlock = {
94
94
  $relation: string;
95
95
  });
96
96
  type FilledBQLMutationBlock = WithRequired<BQLMutationBlock, '$tempId' | '$op'>;
97
- type RawBQLMutation = ({
97
+ type RawBQLMutation<T extends Record<string, any> = Record<string, any>> = ({
98
+ $id?: string;
99
+ $op?: 'create' | 'delete' | 'update';
100
+ $tempId?: string;
101
+ } | {
98
102
  $entity: string;
99
103
  } | {
100
104
  $relation: string;
101
- }) & Record<string, any>;
105
+ }) & T;
102
106
  type ParsedBQLMutation = {
103
107
  things: BQLMutationBlock[];
104
108
  edges: BQLMutationBlock[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blitznocode/blitz-orm",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "dist/index.d.ts",