orchid-orm 1.17.29 → 1.17.31
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ type BelongsToInfo<T extends Table, Relation extends BelongsTo, K extends string
|
|
|
67
67
|
params: {
|
|
68
68
|
[K in FK]: T['columns'][FK]['type'];
|
|
69
69
|
};
|
|
70
|
-
populate:
|
|
70
|
+
populate: EmptyObject;
|
|
71
71
|
chainedCreate: false;
|
|
72
72
|
chainedDelete: false;
|
|
73
73
|
};
|
|
@@ -77,7 +77,7 @@ type HasMany = RelationThunkBase & {
|
|
|
77
77
|
options: HasManyOptions;
|
|
78
78
|
};
|
|
79
79
|
type HasManyOptions<Self extends Table = Table, Related extends TableClass = TableClass, Scope extends Query = Query, Through extends string = string, Source extends string = string> = HasOneOptions<Self, Related, Scope, Through, Source>;
|
|
80
|
-
type HasManyInfo<T extends Table, Relations extends RelationThunks, Relation extends HasMany, K extends string, Populate extends string = Relation['options'] extends RelationRefsOptions ? Relation['options']['references'][number] : Relation['options'] extends RelationKeysOptions ? Relation['options']['foreignKey'] : never, TC extends TableClass = ReturnType<Relation['fn']>, Q extends QueryWithTable = SetQueryTableAlias<DbTable<TC>, K>, NestedCreateQuery extends Query = Relation['options'] extends RelationThroughOptions ? Q : AddQueryDefaults<Q, Populate>> = {
|
|
80
|
+
type HasManyInfo<T extends Table, Relations extends RelationThunks, Relation extends HasMany, K extends string, Populate extends Record<string, true> = Relation['options'] extends RelationRefsOptions ? Record<Relation['options']['references'][number], true> : Relation['options'] extends RelationKeysOptions ? Record<Relation['options']['foreignKey'], true> : never, TC extends TableClass = ReturnType<Relation['fn']>, Q extends QueryWithTable = SetQueryTableAlias<DbTable<TC>, K>, NestedCreateQuery extends Query = Relation['options'] extends RelationThroughOptions ? Q : AddQueryDefaults<Q, Populate>> = {
|
|
81
81
|
table: Q;
|
|
82
82
|
query: Q;
|
|
83
83
|
joinQuery(fromQuery: Query, toQuery: Query): Query;
|
|
@@ -115,7 +115,7 @@ type HasOne = RelationThunkBase & {
|
|
|
115
115
|
options: HasOneOptions;
|
|
116
116
|
};
|
|
117
117
|
type HasOneOptions<Self extends Table = Table, Related extends TableClass = TableClass, Scope extends Query = Query, Through extends string = string, Source extends string = string> = RelationCommonOptions<Related, Scope> & (RelationHasOptions<keyof Self['columns'], keyof InstanceType<Related>['columns']> | RelationThroughOptions<Through, Source>);
|
|
118
|
-
type HasOneInfo<T extends Table, Relations extends RelationThunks, Relation extends HasOne, K extends string, Populate extends string = Relation['options'] extends RelationRefsOptions ? Relation['options']['references'][number] : Relation['options'] extends RelationKeysOptions ? Relation['options']['foreignKey'] : never, TC extends TableClass = ReturnType<Relation['fn']>, Q extends QueryWithTable = SetQueryTableAlias<DbTable<TC>, K>, NestedCreateQuery extends Query = Relation['options'] extends RelationThroughOptions ? Q : AddQueryDefaults<Q, Populate>> = {
|
|
118
|
+
type HasOneInfo<T extends Table, Relations extends RelationThunks, Relation extends HasOne, K extends string, Populate extends Record<string, true> = Relation['options'] extends RelationRefsOptions ? Record<Relation['options']['references'][number], true> : Relation['options'] extends RelationKeysOptions ? Record<Relation['options']['foreignKey'], true> : never, TC extends TableClass = ReturnType<Relation['fn']>, Q extends QueryWithTable = SetQueryTableAlias<DbTable<TC>, K>, NestedCreateQuery extends Query = Relation['options'] extends RelationThroughOptions ? Q : AddQueryDefaults<Q, Populate>> = {
|
|
119
119
|
table: Q;
|
|
120
120
|
query: Q;
|
|
121
121
|
joinQuery(fromQuery: Query, toQuery: Query): Query;
|
|
@@ -285,7 +285,7 @@ type HasAndBelongsToManyInfo<T extends Table, Relation extends HasAndBelongsToMa
|
|
|
285
285
|
} : Relation['options'] extends {
|
|
286
286
|
primaryKey: string;
|
|
287
287
|
} ? Record<Relation['options']['primaryKey'], T['columns'][Relation['options']['primaryKey']]['type']> : never;
|
|
288
|
-
populate:
|
|
288
|
+
populate: EmptyObject;
|
|
289
289
|
chainedCreate: true;
|
|
290
290
|
chainedDelete: true;
|
|
291
291
|
};
|