@@ -231,7 +231,7 @@ export interface AsyncIterArgs<
231231 A extends Augments = never ,
232232 S extends NullabilityAdherence = NullabilityAdherence .Default ,
233233 T extends boolean = false ,
234- Z extends OrderByType <Q , K > = {}
234+ Z extends OrderByOptions <Q , K > = {}
235235> extends SelectArg <Q , K , R , S >, OrderByArg <Q , Z , PropertyKeys <Q >> {
236236 // (undocumented)
237237 $__UNSTABLE_useOldInterfaceApis? : boolean ;
@@ -506,7 +506,7 @@ export interface FetchPageArgs<
506506 A extends Augments = never ,
507507 S extends NullabilityAdherence = NullabilityAdherence .Default ,
508508 T extends boolean = false ,
509- Z extends OrderByType <Q , K > = {}
509+ Z extends OrderByOptions <Q , K > = {}
510510> extends AsyncIterArgs <Q , K , R , A , S , T , Z > {
511511 // (undocumented)
512512 $nextPageToken? : string ;
@@ -515,6 +515,7 @@ export interface FetchPageArgs<
515515}
516516
517517// Warning: (ae-forgotten-export) The symbol "ExtractOptions" needs to be exported by the entry point index.d.ts
518+ // Warning: (ae-forgotten-export) The symbol "ExtractOrderByOptions" needs to be exported by the entry point index.d.ts
518519//
519520// @public
520521export type FetchPageResult <
@@ -523,8 +524,8 @@ export type FetchPageResult<
523524 R extends boolean ,
524525 S extends NullabilityAdherence ,
525526 T extends boolean ,
526- Z extends OrderByType <Q , L > = {}
527- > = PageResult <PropertyKeys <Q > extends L ? Osdk .Instance <Q , ExtractOptions <R , S , T >, PropertyKeys <Q >, {}, Z > : Osdk .Instance <Q , ExtractOptions <R , S , T >, L , {}, Z >>;
527+ Z extends OrderByOptions <Q , L > = {}
528+ > = PageResult <PropertyKeys <Q > extends L ? Osdk .Instance <Q , ExtractOptions <R , S , T >, PropertyKeys <Q >, {}, ExtractOrderByOptions < Z extends " relevance " ? true : false >> : Osdk .Instance <Q , ExtractOptions <R , S , T >, L , {}, ExtractOrderByOptions < Z extends " relevance " ? true : false > >>;
528529
529530// @public (undocumented)
530531export type FilteredPropertyKeys <
@@ -841,7 +842,7 @@ export interface OntologyMetadata<_NEVER_USED_KEPT_FOR_BACKCOMPAT = any> {
841842}
842843
843844// @public (undocumented)
844- export type OrderByType <
845+ export type OrderByOptions <
845846 Q extends ObjectOrInterfaceDefinition ,
846847 L extends PropertyKeys <Q > = PropertyKeys <Q >
847848> = { [K in L ]? : " asc" | " desc" } | " relevance" ;
@@ -867,14 +868,14 @@ export namespace Osdk {
867868 OPTIONS extends never | " $rid" | " $allBaseProperties" = never ,
868869 P extends PropertyKeys <Q > = PropertyKeys <Q >,
869870 R extends Record <string , SimplePropertyDef > = {},
870- Z extends OrderByType < Q , P > = {}
871+ ORDER_BY_OPTIONS extends never | " $score " = never
871872 > = OsdkBase <Q > & Pick <CompileTimeMetadata <Q >[" props" ], GetPropsKeys <Q , P , [R ] extends [{}] ? false : true >> & ([R ] extends [never ] ? {} : { [A in keyof R ] : SimplePropertyDef .ToRuntimeProperty <R [A ]> }) & {
872873 readonly $link: Q extends {
873874 linksType? : any
874875 } ? Q [" linksType" ] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject <Q > : never
875876 readonly $as: <NEW_Q extends ValidToFrom <Q >>(type : NEW_Q | string ) => Osdk .Instance <NEW_Q , OPTIONS , ConvertProps <Q , NEW_Q , P , OPTIONS >>
876877 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 >
877- } & (Z extends " relevance " ? {
878+ } & (IsNever < ORDER_BY_OPTIONS > extends true ? {} : IsAny < ORDER_BY_OPTIONS > extends true ? {} : " $score " extends ORDER_BY_OPTIONS ? {
878879 readonly $score: number
879880 } : {}) & (IsNever <OPTIONS > extends true ? {} : IsAny <OPTIONS > extends true ? {} : " $rid" extends OPTIONS ? {
880881 readonly $rid: string
@@ -1162,8 +1163,8 @@ export type SingleOsdkResult<
11621163 S extends NullabilityAdherence ,
11631164 RDPs extends Record <string , SimplePropertyDef > = {},
11641165 T extends boolean = false ,
1165- Z extends OrderByType <Q , L > = {}
1166- > = Osdk .Instance <Q , ExtractOptions <R , S , T >, PropertyKeys <Q > extends L ? PropertyKeys <Q > : PropertyKeys <Q > & L , { [K in Extract <keyof RDPs , L >] : RDPs [K ] }, Z >;
1166+ Z extends OrderByOptions <Q , L > = {}
1167+ > = Osdk .Instance <Q , ExtractOptions <R , S , T >, PropertyKeys <Q > extends L ? PropertyKeys <Q > : PropertyKeys <Q > & L , { [K in Extract <keyof RDPs , L >] : RDPs [K ] }, ExtractOrderByOptions < Z extends " relevance " ? true : false > >;
11671168
11681169// Warning: (ae-forgotten-export) The symbol "AllowedBucketKeyTypes_2" needs to be exported by the entry point index.d.ts
11691170//
0 commit comments