orchid-orm 1.68.3 → 1.68.4
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 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface HasOneInfo<T extends RelationConfigSelf, Name extends string, Rel exte
|
|
|
28
28
|
query: Q;
|
|
29
29
|
params: HasOneParams<T, Rel['options']>;
|
|
30
30
|
maybeSingle: T['relations'][Name]['options']['required'] extends true ? QueryManyTake<Q> : QueryManyTakeOptional<Q>;
|
|
31
|
-
|
|
31
|
+
omitForeignKeyInCreate: never;
|
|
32
32
|
optionalDataForCreate: T['relations'][Name]['options'] extends RelationThroughOptions ? EmptyObject : { [P in Name]?: RelationToOneDataForCreate<{
|
|
33
33
|
nestedCreateQuery: CreateData<Q>;
|
|
34
34
|
table: Q;
|
|
@@ -68,7 +68,7 @@ interface HasManyInfo<T extends RelationConfigSelf, Name extends string, Rel ext
|
|
|
68
68
|
query: Q;
|
|
69
69
|
params: HasOneParams<T, Rel['options']>;
|
|
70
70
|
maybeSingle: Q;
|
|
71
|
-
|
|
71
|
+
omitForeignKeyInCreate: never;
|
|
72
72
|
optionalDataForCreate: { [P in Name]?: T['relations'][Name]['options'] extends RelationThroughOptions ? EmptyObject : {
|
|
73
73
|
create?: CreateData<Q>[];
|
|
74
74
|
connect?: WhereArg<Q>[];
|
|
@@ -122,8 +122,11 @@ interface BelongsToInfo<T extends RelationConfigSelf, Name extends string, FK ex
|
|
|
122
122
|
query: Q;
|
|
123
123
|
params: BelongsToParams<T, FK>;
|
|
124
124
|
maybeSingle: Required extends true ? QueryManyTake<Q> : QueryManyTakeOptional<Q>;
|
|
125
|
-
|
|
126
|
-
dataForCreate: {
|
|
125
|
+
omitForeignKeyInCreate: FK;
|
|
126
|
+
dataForCreate: {
|
|
127
|
+
columns: FK;
|
|
128
|
+
nested: Required extends true ? { [Key in Name]: RelationToOneDataForCreateSameQuery<Q> } : { [Key in Name]?: RelationToOneDataForCreateSameQuery<Q> };
|
|
129
|
+
};
|
|
127
130
|
optionalDataForCreate: EmptyObject;
|
|
128
131
|
dataForUpdate: {
|
|
129
132
|
disconnect: boolean;
|
|
@@ -358,7 +361,7 @@ interface HasAndBelongsToManyInfo<T extends RelationConfigSelf, Name extends str
|
|
|
358
361
|
query: Q;
|
|
359
362
|
params: HasAndBelongsToManyParams<T, FK>;
|
|
360
363
|
maybeSingle: Q;
|
|
361
|
-
|
|
364
|
+
omitForeignKeyInCreate: never;
|
|
362
365
|
optionalDataForCreate: { [P in Name]?: {
|
|
363
366
|
create?: CreateData<Q>[];
|
|
364
367
|
connect?: WhereArg<Q>[];
|