@@ -127,7 +127,7 @@ export class BaseDomain<TC extends {
127127 */
128128 deleteByParams : ( options : {
129129 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
130- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
130+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
131131 } ) : Types . TCompareQueryResult => this . model . compareQuery . deleteByParams ( { $and : options . params , $or : options . paramsOr } ) ,
132132
133133 /**
@@ -153,7 +153,7 @@ export class BaseDomain<TC extends {
153153 */
154154 getArrByParams : < T extends keyof TC [ "TableFields" ] > ( options : {
155155 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
156- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
156+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
157157 selected ?: [ T , ...T [ ] ] ;
158158 pagination ?: SharedTypes . TPagination ;
159159 order ?: {
@@ -173,7 +173,7 @@ export class BaseDomain<TC extends {
173173 */
174174 getCountByParams : ( options : {
175175 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
176- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
176+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
177177 } ) : Types . TCompareQueryResult => this . model . compareQuery . getCountByParams ( { $and : options . params , $or : options . paramsOr } ) ,
178178
179179 /**
@@ -199,7 +199,7 @@ export class BaseDomain<TC extends {
199199 pks : T [ ] ,
200200 options : {
201201 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
202- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
202+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
203203 } ,
204204 ) : Types . TCompareQueryResult => this . model . compareQuery . getCountByPksAndParams ( pks , { $and : options . params , $or : options . paramsOr } ) ,
205205
@@ -215,7 +215,7 @@ export class BaseDomain<TC extends {
215215 */
216216 getOneByParams : < T extends keyof TC [ "TableFields" ] > ( options : {
217217 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
218- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
218+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
219219 selected ?: [ T , ...T [ ] ] ;
220220 } ) : Types . TCompareQueryResult => this . model . compareQuery . getOneByParams ( { $and : options . params , $or : options . paramsOr } , options . selected as string [ ] ) ,
221221
@@ -242,7 +242,7 @@ export class BaseDomain<TC extends {
242242 updateByParams : < T extends Extract < keyof TC [ "TableFields" ] , string > [ ] = Extract < keyof TC [ "TableFields" ] , string > [ ] > (
243243 queryConditions : {
244244 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
245- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
245+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
246246 returningFields ?: T ;
247247 } ,
248248 updateFields : Types . TConditionalRawParamsType < TC [ "UpdateFields" ] , TC [ "TableFields" ] > ,
@@ -307,7 +307,7 @@ export class BaseDomain<TC extends {
307307 */
308308 async deleteByParams ( options : {
309309 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
310- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
310+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
311311 } ) : Promise < null > {
312312 return this . model . deleteByParams (
313313 { $and : options . params , $or : options . paramsOr } ,
@@ -341,7 +341,7 @@ export class BaseDomain<TC extends {
341341 */
342342 async getArrByParams < T extends keyof TC [ "TableFields" ] > ( options : {
343343 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
344- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
344+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
345345 selected ?: [ T , ...T [ ] ] ;
346346 pagination ?: SharedTypes . TPagination ;
347347 order ?: {
@@ -382,7 +382,7 @@ export class BaseDomain<TC extends {
382382 pks : T [ ] ,
383383 options : {
384384 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
385- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
385+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
386386 } ,
387387 ) : Promise < number > {
388388 return this . model . getCountByPksAndParams (
@@ -402,7 +402,7 @@ export class BaseDomain<TC extends {
402402 */
403403 async getCountByParams ( options : {
404404 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
405- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
405+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
406406 } ) : Promise < number > {
407407 return this . model . getCountByParams ( { $and : options . params , $or : options . paramsOr } ) ;
408408 }
@@ -412,7 +412,7 @@ export class BaseDomain<TC extends {
412412 */
413413 async getGuaranteedOneByParams < T extends keyof TC [ "TableFields" ] > ( options : {
414414 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
415- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
415+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
416416 selected ?: [ T , ...T [ ] ] ;
417417 } ) : Promise < Pick < TC [ "TableFields" ] , T > > {
418418 const one = await this . model . getOneByParams < Pick < TC [ "TableFields" ] , T > > (
@@ -437,7 +437,7 @@ export class BaseDomain<TC extends {
437437 */
438438 async getOneByParams < T extends keyof TC [ "TableFields" ] > ( options : {
439439 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
440- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
440+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
441441 selected ?: [ T , ...T [ ] ] ;
442442 } ) : Promise < { message ?: string ; one ?: Pick < TC [ "TableFields" ] , T > ; } > {
443443 const one = await this . model . getOneByParams < Pick < TC [ "TableFields" ] , T > > (
@@ -482,7 +482,7 @@ export class BaseDomain<TC extends {
482482 async updateByParams < T extends Extract < keyof TC [ "TableFields" ] , string > [ ] = Extract < keyof TC [ "TableFields" ] , string > [ ] > (
483483 queryConditions : {
484484 params : Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > ;
485- paramsOr ?: Types . TArray2OrMore < Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > > ;
485+ paramsOr ?: Types . TSearchParams < Types . TConditionalDomainFieldsType < TC [ "SearchFields" ] , TC [ "TableFields" ] > > [ ] ;
486486 returningFields ?: T ;
487487 } ,
488488 updateFields : Types . TConditionalRawParamsType < TC [ "UpdateFields" ] , TC [ "TableFields" ] > ,
0 commit comments