orchid-orm 1.68.1 → 1.68.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.ts +5 -8
- 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
|
+
columnsForCreate: 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
|
+
columnsForCreate: 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,11 +122,8 @@ 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: {
|
|
127
|
-
columns: FK;
|
|
128
|
-
nested: Required extends true ? { [Key in Name]: RelationToOneDataForCreateSameQuery<Q> } : { [Key in Name]?: RelationToOneDataForCreateSameQuery<Q> };
|
|
129
|
-
};
|
|
125
|
+
columnsForCreate: FK;
|
|
126
|
+
dataForCreate: { [Key in Name]?: RelationToOneDataForCreateSameQuery<Q> };
|
|
130
127
|
optionalDataForCreate: EmptyObject;
|
|
131
128
|
dataForUpdate: {
|
|
132
129
|
disconnect: boolean;
|
|
@@ -356,7 +353,7 @@ interface HasAndBelongsToManyInfo<T extends RelationConfigSelf, Name extends str
|
|
|
356
353
|
query: Q;
|
|
357
354
|
params: HasAndBelongsToManyParams<T, FK>;
|
|
358
355
|
maybeSingle: Q;
|
|
359
|
-
|
|
356
|
+
columnsForCreate: never;
|
|
360
357
|
optionalDataForCreate: { [P in Name]?: {
|
|
361
358
|
create?: CreateData<Q>[];
|
|
362
359
|
connect?: WhereArg<Q>[];
|