orchid-orm 1.17.21 → 1.17.23
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 +10 -10
- 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
|
@@ -36,13 +36,16 @@ type BelongsToInfo<T extends Table, Relation extends BelongsTo, K extends string
|
|
|
36
36
|
one: true;
|
|
37
37
|
required: Required;
|
|
38
38
|
omitForeignKeyInCreate: FK;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
dataForCreate: {
|
|
40
|
+
columns: {
|
|
41
|
+
[L in FK]: T['columns'][L]['inputType'];
|
|
42
|
+
};
|
|
43
|
+
nested: Required extends true ? {
|
|
44
|
+
[Key in K]: DataForCreate;
|
|
45
|
+
} : {
|
|
46
|
+
[Key in K]?: DataForCreate;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
46
49
|
optionalDataForCreate: EmptyObject;
|
|
47
50
|
dataForUpdate: {
|
|
48
51
|
disconnect: boolean;
|
|
@@ -85,7 +88,6 @@ type HasManyInfo<T extends Table, Relations extends RelationThunks, Relation ext
|
|
|
85
88
|
one: false;
|
|
86
89
|
required: Relation['options']['required'] extends true ? true : false;
|
|
87
90
|
omitForeignKeyInCreate: never;
|
|
88
|
-
requiredDataForCreate: EmptyObject;
|
|
89
91
|
optionalDataForCreate: {
|
|
90
92
|
[P in K]?: Relation['options'] extends RelationThroughOptions ? EmptyObject : RelationToManyDataForCreate<{
|
|
91
93
|
nestedCreateQuery: NestedCreateQuery;
|
|
@@ -128,7 +130,6 @@ type HasOneInfo<T extends Table, Relations extends RelationThunks, Relation exte
|
|
|
128
130
|
one: true;
|
|
129
131
|
required: Relation['options']['required'] extends true ? true : false;
|
|
130
132
|
omitForeignKeyInCreate: never;
|
|
131
|
-
requiredDataForCreate: EmptyObject;
|
|
132
133
|
optionalDataForCreate: Relation['options'] extends RelationThroughOptions ? EmptyObject : {
|
|
133
134
|
[P in K]?: RelationToOneDataForCreate<{
|
|
134
135
|
nestedCreateQuery: NestedCreateQuery;
|
|
@@ -268,7 +269,6 @@ type HasAndBelongsToManyInfo<T extends Table, Relation extends HasAndBelongsToMa
|
|
|
268
269
|
one: false;
|
|
269
270
|
required: Relation['options']['required'] extends true ? true : false;
|
|
270
271
|
omitForeignKeyInCreate: never;
|
|
271
|
-
requiredDataForCreate: EmptyObject;
|
|
272
272
|
optionalDataForCreate: {
|
|
273
273
|
[P in K]?: RelationToManyDataForCreate<{
|
|
274
274
|
nestedCreateQuery: Q;
|