@@ -230,7 +230,7 @@ export interface AsyncIterArgs<
230230 R extends boolean = false ,
231231 A extends Augments = never ,
232232 S extends NullabilityAdherence = NullabilityAdherence .Default ,
233- Z extends OrderByType <Q , K > = {}
233+ Z extends OrderByOptions <Q , K > = {}
234234> extends SelectArg <Q , K , R , S >, OrderByArg <Q , Z , PropertyKeys <Q >> {
235235 // (undocumented)
236236 $__UNSTABLE_useOldInterfaceApis? : boolean ;
@@ -501,7 +501,7 @@ export interface FetchPageArgs<
501501 R extends boolean = false ,
502502 A extends Augments = never ,
503503 S extends NullabilityAdherence = NullabilityAdherence .Default ,
504- Z extends OrderByType <Q , K > = {}
504+ Z extends OrderByOptions <Q , K > = {}
505505> extends AsyncIterArgs <Q , K , R , A , S , Z > {
506506 // (undocumented)
507507 $nextPageToken? : string ;
@@ -510,15 +510,16 @@ export interface FetchPageArgs<
510510}
511511
512512// Warning: (ae-forgotten-export) The symbol "ExtractOptions" needs to be exported by the entry point index.d.ts
513+ // Warning: (ae-forgotten-export) The symbol "ExtractOrderByOptions" needs to be exported by the entry point index.d.ts
513514//
514515// @public
515516export type FetchPageResult <
516517 Q extends ObjectOrInterfaceDefinition ,
517518 L extends PropertyKeys <Q >,
518519 R extends boolean ,
519520 S extends NullabilityAdherence ,
520- Z extends OrderByType <Q , L > = {}
521- > = PageResult <PropertyKeys <Q > extends L ? Osdk .Instance <Q , ExtractOptions <R , S >, PropertyKeys <Q >, {}, Z > : Osdk .Instance <Q , ExtractOptions <R , S >, L , {}, Z >>;
521+ Z extends OrderByOptions <Q , L > = {}
522+ > = PageResult <PropertyKeys <Q > extends L ? Osdk .Instance <Q , ExtractOptions <R , S >, PropertyKeys <Q >, {}, ExtractOrderByOptions < Z extends " relevance " ? true : false >> : Osdk .Instance <Q , ExtractOptions <R , S >, L , {}, ExtractOrderByOptions < Z extends " relevance " ? true : false > >>;
522523
523524// @public (undocumented)
524525export type FilteredPropertyKeys <
@@ -830,7 +831,7 @@ export interface OntologyMetadata<_NEVER_USED_KEPT_FOR_BACKCOMPAT = any> {
830831}
831832
832833// @public (undocumented)
833- export type OrderByType <
834+ export type OrderByOptions <
834835 Q extends ObjectOrInterfaceDefinition ,
835836 L extends PropertyKeys <Q > = PropertyKeys <Q >
836837> = { [K in L ]? : " asc" | " desc" } | " relevance" ;
@@ -856,14 +857,14 @@ export namespace Osdk {
856857 OPTIONS extends never | " $rid" = never ,
857858 P extends PropertyKeys <Q > = PropertyKeys <Q >,
858859 R extends Record <string , SimplePropertyDef > = {},
859- Z extends OrderByType < Q , P > = {}
860+ ORDER_BY_OPTIONS extends never | " $score " = never
860861 > = OsdkBase <Q > & Pick <CompileTimeMetadata <Q >[" props" ], GetPropsKeys <Q , P , [R ] extends [{}] ? false : true >> & ([R ] extends [never ] ? {} : { [A in keyof R ] : SimplePropertyDef .ToRuntimeProperty <R [A ]> }) & {
861862 readonly $link: Q extends {
862863 linksType? : any
863864 } ? Q [" linksType" ] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject <Q > : never
864865 readonly $as: <NEW_Q extends ValidToFrom <Q >>(type : NEW_Q | string ) => Osdk .Instance <NEW_Q , OPTIONS , ConvertProps <Q , NEW_Q , P >>
865866 readonly $clone: <NEW_PROPS extends PropertyKeys <Q >>(updatedObject ? : Osdk .Instance <Q , any , NEW_PROPS > | { [K in NEW_PROPS ]? : CompileTimeMetadata <Q >[" props" ][K ] }) => Osdk .Instance <Q , OPTIONS , P | NEW_PROPS >
866- } & (Z extends " relevance " ? {
867+ } & (IsNever < ORDER_BY_OPTIONS > extends true ? {} : IsAny < ORDER_BY_OPTIONS > extends true ? {} : " $score " extends ORDER_BY_OPTIONS ? {
867868 readonly $score: number
868869 } : {}) & (IsNever <OPTIONS > extends true ? {} : IsAny <OPTIONS > extends true ? {} : " $rid" extends OPTIONS ? {
869870 readonly $rid: string
@@ -1139,8 +1140,8 @@ export type SingleOsdkResult<
11391140 R extends boolean ,
11401141 S extends NullabilityAdherence ,
11411142 RDPs extends Record <string , SimplePropertyDef > = {},
1142- Z extends OrderByType <Q , L > = {}
1143- > = Osdk .Instance <Q , ExtractOptions <R , S >, PropertyKeys <Q > extends L ? PropertyKeys <Q > : PropertyKeys <Q > & L , { [K in Extract <keyof RDPs , L >] : RDPs [K ] }, Z >;
1143+ Z extends OrderByOptions <Q , L > = {}
1144+ > = Osdk .Instance <Q , ExtractOptions <R , S >, PropertyKeys <Q > extends L ? PropertyKeys <Q > : PropertyKeys <Q > & L , { [K in Extract <keyof RDPs , L >] : RDPs [K ] }, ExtractOrderByOptions < Z extends " relevance " ? true : false > >;
11441145
11451146// Warning: (ae-forgotten-export) The symbol "AggregationKeyDataType" needs to be exported by the entry point index.d.ts
11461147//
0 commit comments