@osdk/api 2.58.0 → 2.58.1-main-4ae6d8b05943ad4e16388c8c6649d0abcf1185f6
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/CHANGELOG.md +7 -0
- package/build/browser/aggregate/WhereClause.js.map +1 -1
- package/build/browser/experimental/fetchPageByRid.js.map +1 -1
- package/build/browser/object/FetchPageArgs.js.map +1 -1
- package/build/browser/object/FetchPageResult.js.map +1 -1
- package/build/browser/ontology/PropertyModifiers.js.map +1 -1
- package/build/cjs/{ObjectSet-DP3FUIj4.d.cts → ObjectSet-Bx6q2zLk.d.cts} +37 -5
- package/build/cjs/{QueryDefinition-BRRv_fNp.d.cts → QueryDefinition-Cz4Vz0sb.d.cts} +1 -1
- package/build/cjs/index.d.cts +4 -4
- package/build/cjs/public/shapes-internal.d.cts +2 -2
- package/build/cjs/public/unstable.d.cts +6 -6
- package/build/cjs/{shapes-internal-BWbZ-YqJ.d.cts → shapes-internal-C-MIzX6H.d.cts} +1 -1
- package/build/esm/aggregate/WhereClause.js.map +1 -1
- package/build/esm/experimental/fetchPageByRid.js.map +1 -1
- package/build/esm/object/FetchPageArgs.js.map +1 -1
- package/build/esm/object/FetchPageResult.js.map +1 -1
- package/build/esm/ontology/PropertyModifiers.js.map +1 -1
- package/build/types/aggregate/WhereClause.d.ts +1 -5
- package/build/types/aggregate/WhereClause.d.ts.map +1 -1
- package/build/types/experimental/fetchPageByRid.d.ts +5 -2
- package/build/types/experimental/fetchPageByRid.d.ts.map +1 -1
- package/build/types/object/FetchPageArgs.d.ts +11 -2
- package/build/types/object/FetchPageArgs.d.ts.map +1 -1
- package/build/types/object/FetchPageResult.d.ts +19 -3
- package/build/types/object/FetchPageResult.d.ts.map +1 -1
- package/build/types/ontology/PropertyModifiers.d.ts +23 -0
- package/build/types/ontology/PropertyModifiers.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @osdk/api
|
|
2
2
|
|
|
3
|
+
## 2.58.1-main-4ae6d8b05943ad4e16388c8c6649d0abcf1185f6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4ae6d8b: Add experimental `$EXPERIMENTAL_defaultLoadLevel` fetch arg that applies reducers and struct main values to every property without listing property IDs. Wired through the object and static-rid load paths.
|
|
8
|
+
- 1aff7f4: Allow interfaces w/ no properties to filter on pk+title
|
|
9
|
+
|
|
3
10
|
## 2.58.0
|
|
4
11
|
|
|
5
12
|
## 2.57.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhereClause.js","names":["DistanceUnitMapping","centimeter","centimeters","cm","meter","meters","m","kilometer","kilometers","km","inch","inches","foot","feet","yard","yards","mile","miles","nautical_mile","nauticalMile"],"sources":["WhereClause.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { BBox, Point, Polygon } from \"geojson\";\n\nimport type {\n DerivedObjectOrInterfaceDefinition,\n ObjectOrInterfaceDefinition,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type { BaseWirePropertyTypes } from \"../ontology/WirePropertyTypes.js\";\nimport type { IsNever } from \"../OsdkObjectFrom.js\";\nimport type { ArrayFilter } from \"./ArrayFilter.js\";\nimport type { BaseFilter } from \"./BaseFilter.js\";\nimport type { BooleanFilter } from \"./BooleanFilter.js\";\nimport type { DatetimeFilter } from \"./DatetimeFilter.js\";\nimport type { GeoFilter } from \"./GeoFilter.js\";\nimport type { Just } from \"./Just.js\";\nimport type { NumberFilter } from \"./NumberFilter.js\";\nimport type { StringFilter } from \"./StringFilter.js\";\n\nexport type PossibleWhereClauseFilters =\n | \"$gt\"\n | \"$eq\"\n | \"$ne\"\n | \"$isNull\"\n | \"$contains\"\n | \"$gte\"\n | \"$lt\"\n | \"$lte\"\n | \"$within\"\n | \"$in\"\n | \"$intersects\"\n | \"$startsWith\"\n | \"$containsAllTermsInOrder\"\n | \"$containsAnyTerm\"\n | \"$containsAllTerms\"\n | \"$interval\"\n | \"$matchesRegex\";\n\n// the value side of this needs to match DistanceUnit from @osdk/foundry but we don't\n// want the dependency\nexport const DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n} = {\n centimeter: \"CENTIMETERS\",\n centimeters: \"CENTIMETERS\",\n cm: \"CENTIMETERS\",\n meter: \"METERS\",\n meters: \"METERS\",\n m: \"METERS\",\n kilometer: \"KILOMETERS\",\n kilometers: \"KILOMETERS\",\n km: \"KILOMETERS\",\n inch: \"INCHES\",\n inches: \"INCHES\",\n foot: \"FEET\",\n feet: \"FEET\",\n yard: \"YARDS\",\n yards: \"YARDS\",\n mile: \"MILES\",\n miles: \"MILES\",\n nautical_mile: \"NAUTICAL_MILES\",\n nauticalMile: \"NAUTICAL_MILES\",\n \"nautical miles\": \"NAUTICAL_MILES\",\n} satisfies Record<\n string,\n | \"CENTIMETERS\"\n | \"METERS\"\n | \"KILOMETERS\"\n | \"INCHES\"\n | \"FEET\"\n | \"YARDS\"\n | \"MILES\"\n | \"NAUTICAL_MILES\"\n>;\n\nexport type GeoFilter_Within = {\n $within:\n | {\n $distance: [number, keyof typeof DistanceUnitMapping];\n $of: [number, number] | Readonly<Point>;\n $bbox?: never;\n $polygon?: never;\n }\n | {\n $bbox: BBox;\n $distance?: never;\n $of?: never;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n $distance?: never;\n $of?: never;\n }\n | Polygon;\n};\n\nexport type GeoFilter_Intersects = {\n $intersects:\n | {\n $bbox: BBox;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n }\n | Polygon;\n};\n\ntype BaseFilterFor<T> =\n T extends Record<string, BaseWirePropertyTypes>\n ? StructFilterOpts<T>\n : T extends \"string\"\n ? StringFilter\n : T extends \"geopoint\" | \"geoshape\"\n ? GeoFilter\n : T extends \"datetime\" | \"timestamp\"\n ? DatetimeFilter\n : T extends \"boolean\"\n ? BooleanFilter\n : T extends WhereClauseNumberPropertyTypes\n ? NumberFilter\n : BaseFilter<string>; // Fallback for unknown types\n\ntype FilterFor<PD extends ObjectMetadata.Property> =\n PD[\"multiplicity\"] extends true\n ? ArrayFilter<BaseFilterFor<PD[\"type\"]>>\n : PD[\"type\"] extends Record<string, BaseWirePropertyTypes>\n ? StructFilter<PD[\"type\"]> | BaseFilter.$isNull<string>\n : BaseFilterFor<PD[\"type\"]>;\n\ntype StructFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]?: FilterFor<{ type: ST[K] }>;\n};\ntype StructFilter<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]: Just<K, StructFilterOpts<ST>>;\n}[keyof ST];\n\ntype WhereClauseNumberPropertyTypes =\n | \"double\"\n | \"integer\"\n | \"long\"\n | \"float\"\n | \"decimal\"\n | \"byte\";\n\ntype SpecialPropertyFilter = StringFilter | NumberFilter | DatetimeFilter;\n\ntype PrimaryKeyFilterFor<T extends ObjectOrInterfaceDefinition> =\n CompileTimeMetadata<T> extends { primaryKeyType: infer PKT extends string }\n ? BaseFilterFor<PKT>\n : SpecialPropertyFilter;\n\nexport type SpecialPropertyWhereClause<T extends ObjectOrInterfaceDefinition> =\n {\n $title?: SpecialPropertyFilter;\n $primaryKey?: PrimaryKeyFilterFor<T>;\n };\n\nexport type AndWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $and: WhereClause<T, RDPs>[];\n};\n\nexport type OrWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $or: WhereClause<T, RDPs>[];\n};\n\nexport type NotWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $not: WhereClause<T, RDPs>;\n};\n\nexport type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {\n [P in keyof CompileTimeMetadata<T>[\"properties\"]]?: FilterFor<\n CompileTimeMetadata<T>[\"properties\"][P]\n >;\n};\n\
|
|
1
|
+
{"version":3,"file":"WhereClause.js","names":["DistanceUnitMapping","centimeter","centimeters","cm","meter","meters","m","kilometer","kilometers","km","inch","inches","foot","feet","yard","yards","mile","miles","nautical_mile","nauticalMile"],"sources":["WhereClause.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { BBox, Point, Polygon } from \"geojson\";\n\nimport type {\n DerivedObjectOrInterfaceDefinition,\n ObjectOrInterfaceDefinition,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type { BaseWirePropertyTypes } from \"../ontology/WirePropertyTypes.js\";\nimport type { IsNever } from \"../OsdkObjectFrom.js\";\nimport type { ArrayFilter } from \"./ArrayFilter.js\";\nimport type { BaseFilter } from \"./BaseFilter.js\";\nimport type { BooleanFilter } from \"./BooleanFilter.js\";\nimport type { DatetimeFilter } from \"./DatetimeFilter.js\";\nimport type { GeoFilter } from \"./GeoFilter.js\";\nimport type { Just } from \"./Just.js\";\nimport type { NumberFilter } from \"./NumberFilter.js\";\nimport type { StringFilter } from \"./StringFilter.js\";\n\nexport type PossibleWhereClauseFilters =\n | \"$gt\"\n | \"$eq\"\n | \"$ne\"\n | \"$isNull\"\n | \"$contains\"\n | \"$gte\"\n | \"$lt\"\n | \"$lte\"\n | \"$within\"\n | \"$in\"\n | \"$intersects\"\n | \"$startsWith\"\n | \"$containsAllTermsInOrder\"\n | \"$containsAnyTerm\"\n | \"$containsAllTerms\"\n | \"$interval\"\n | \"$matchesRegex\";\n\n// the value side of this needs to match DistanceUnit from @osdk/foundry but we don't\n// want the dependency\nexport const DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n} = {\n centimeter: \"CENTIMETERS\",\n centimeters: \"CENTIMETERS\",\n cm: \"CENTIMETERS\",\n meter: \"METERS\",\n meters: \"METERS\",\n m: \"METERS\",\n kilometer: \"KILOMETERS\",\n kilometers: \"KILOMETERS\",\n km: \"KILOMETERS\",\n inch: \"INCHES\",\n inches: \"INCHES\",\n foot: \"FEET\",\n feet: \"FEET\",\n yard: \"YARDS\",\n yards: \"YARDS\",\n mile: \"MILES\",\n miles: \"MILES\",\n nautical_mile: \"NAUTICAL_MILES\",\n nauticalMile: \"NAUTICAL_MILES\",\n \"nautical miles\": \"NAUTICAL_MILES\",\n} satisfies Record<\n string,\n | \"CENTIMETERS\"\n | \"METERS\"\n | \"KILOMETERS\"\n | \"INCHES\"\n | \"FEET\"\n | \"YARDS\"\n | \"MILES\"\n | \"NAUTICAL_MILES\"\n>;\n\nexport type GeoFilter_Within = {\n $within:\n | {\n $distance: [number, keyof typeof DistanceUnitMapping];\n $of: [number, number] | Readonly<Point>;\n $bbox?: never;\n $polygon?: never;\n }\n | {\n $bbox: BBox;\n $distance?: never;\n $of?: never;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n $distance?: never;\n $of?: never;\n }\n | Polygon;\n};\n\nexport type GeoFilter_Intersects = {\n $intersects:\n | {\n $bbox: BBox;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n }\n | Polygon;\n};\n\ntype BaseFilterFor<T> =\n T extends Record<string, BaseWirePropertyTypes>\n ? StructFilterOpts<T>\n : T extends \"string\"\n ? StringFilter\n : T extends \"geopoint\" | \"geoshape\"\n ? GeoFilter\n : T extends \"datetime\" | \"timestamp\"\n ? DatetimeFilter\n : T extends \"boolean\"\n ? BooleanFilter\n : T extends WhereClauseNumberPropertyTypes\n ? NumberFilter\n : BaseFilter<string>; // Fallback for unknown types\n\ntype FilterFor<PD extends ObjectMetadata.Property> =\n PD[\"multiplicity\"] extends true\n ? ArrayFilter<BaseFilterFor<PD[\"type\"]>>\n : PD[\"type\"] extends Record<string, BaseWirePropertyTypes>\n ? StructFilter<PD[\"type\"]> | BaseFilter.$isNull<string>\n : BaseFilterFor<PD[\"type\"]>;\n\ntype StructFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]?: FilterFor<{ type: ST[K] }>;\n};\ntype StructFilter<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]: Just<K, StructFilterOpts<ST>>;\n}[keyof ST];\n\ntype WhereClauseNumberPropertyTypes =\n | \"double\"\n | \"integer\"\n | \"long\"\n | \"float\"\n | \"decimal\"\n | \"byte\";\n\ntype SpecialPropertyFilter = StringFilter | NumberFilter | DatetimeFilter;\n\ntype PrimaryKeyFilterFor<T extends ObjectOrInterfaceDefinition> =\n CompileTimeMetadata<T> extends { primaryKeyType: infer PKT extends string }\n ? BaseFilterFor<PKT>\n : SpecialPropertyFilter;\n\nexport type SpecialPropertyWhereClause<T extends ObjectOrInterfaceDefinition> =\n {\n $title?: SpecialPropertyFilter;\n $primaryKey?: PrimaryKeyFilterFor<T>;\n };\n\nexport type AndWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $and: WhereClause<T, RDPs>[];\n};\n\nexport type OrWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $or: WhereClause<T, RDPs>[];\n};\n\nexport type NotWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $not: WhereClause<T, RDPs>;\n};\n\nexport type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {\n [P in keyof CompileTimeMetadata<T>[\"properties\"]]?: FilterFor<\n CompileTimeMetadata<T>[\"properties\"][P]\n >;\n};\n\nexport type WhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> =\n | OrWhereClause<T, RDPs>\n | AndWhereClause<T, RDPs>\n | NotWhereClause<T, RDPs>\n | SpecialPropertyWhereClause<T>\n | (IsNever<keyof CompileTimeMetadata<T>[\"properties\"]> extends true\n ? Record<string, never>\n : PropertyWhereClause<\n DerivedObjectOrInterfaceDefinition.WithDerivedProperties<T, RDPs>\n >);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2CA;AACA;AACA,OAAO,MAAMA,mBAqBZ,GAAG;EACFC,UAAU,EAAE,aAAa;EACzBC,WAAW,EAAE,aAAa;EAC1BC,EAAE,EAAE,aAAa;EACjBC,KAAK,EAAE,QAAQ;EACfC,MAAM,EAAE,QAAQ;EAChBC,CAAC,EAAE,QAAQ;EACXC,SAAS,EAAE,YAAY;EACvBC,UAAU,EAAE,YAAY;EACxBC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,QAAQ;EACdC,MAAM,EAAE,QAAQ;EAChBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE,OAAO;EACdC,aAAa,EAAE,gBAAgB;EAC/BC,YAAY,EAAE,gBAAgB;EAC9B,gBAAgB,EAAE;AACpB,CAUC;;AAqDmC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchPageByRid.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","name","type","version"],"sources":["fetchPageByRid.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n FetchPageArgs,\n NullabilityAdherence,\n} from \"../object/FetchPageArgs.js\";\nimport type { FetchPageResult } from \"../object/FetchPageResult.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype fetchPageByRidFn = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys<Q>,\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n>(\n objectType: Q,\n rids: string[],\n options?: FetchPageArgs
|
|
1
|
+
{"version":3,"file":"fetchPageByRid.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","name","type","version"],"sources":["fetchPageByRid.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n FetchPageArgs,\n NullabilityAdherence,\n} from \"../object/FetchPageArgs.js\";\nimport type { FetchPageResult } from \"../object/FetchPageResult.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype fetchPageByRidFn = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys<Q>,\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n const MODIFIERS extends ApplyModifiersArg<Q> = {},\n const DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined =\n undefined,\n>(\n objectType: Q,\n rids: string[],\n options?: FetchPageArgs<\n Q,\n L,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL\n >,\n) => Promise<\n FetchPageResult<\n Q,\n L,\n R,\n S,\n T,\n {},\n PROPERTY_SECURITIES,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL\n >\n>;\n\nexport type FetchPageByRidPayload = {\n fetchPageByRid: fetchPageByRidFn;\n fetchPageByRidNoType: fetchPageByRidNoTypeFn;\n};\n\ntype fetchPageByRidNoTypeFn = <\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n>(\n rids: readonly string[],\n options?: FetchPageArgs<\n ObjectOrInterfaceDefinition,\n any,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES\n >,\n) => Promise<\n FetchPageResult<\n ObjectOrInterfaceDefinition,\n any,\n R,\n S,\n T,\n {},\n PROPERTY_SECURITIES\n >\n>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<\n \"2.2.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n FetchPageByRidPayload\n> = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n type: \"experiment\",\n version: \"2.2.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4FA,OAAO,MAAMA,iDAIZ,GAAG;EACFC,IAAI,EAAE,mDAAmD;EACzDC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchPageArgs.js","names":["NullabilityAdherence","ObjectSetArgs"],"sources":["FetchPageArgs.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"FetchPageArgs.js","names":["NullabilityAdherence","ObjectSetArgs"],"sources":["FetchPageArgs.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\n\nexport type NullabilityAdherence = false | \"throw\" | \"drop\";\nexport namespace NullabilityAdherence {\n export type Default = \"throw\";\n}\n\nexport namespace ObjectSetArgs {\n export interface Select<\n OBJECT_KEYS extends string = never,\n RDP_KEYS extends string = never,\n > {\n $select?: readonly (OBJECT_KEYS | RDP_KEYS)[];\n $includeRid?: boolean;\n }\n\n export type OrderByOptions<L extends string> =\n | {\n [K in L]?: \"asc\" | \"desc\";\n }\n | \"relevance\";\n\n export interface OrderBy<\n ORDER_BY_OPTIONS extends OrderByOptions<L>,\n L extends string = never,\n > {\n $orderBy?: ORDER_BY_OPTIONS;\n }\n\n export interface AsyncIter<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q> = never,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n >\n extends Select<K, RDP_KEYS>, OrderBy<ORDER_BY_OPTIONS, K> {\n $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;\n }\n\n export interface FetchPage<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q> = never,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n > extends AsyncIter<Q, K, T, RDP_KEYS, ORDER_BY_OPTIONS> {\n $nextPageToken?: string;\n $pageSize?: number;\n }\n}\n\nexport interface SelectArg<\n Q extends ObjectOrInterfaceDefinition,\n L extends string = PropertyKeys<Q>,\n R extends boolean = false,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n RDP_KEYS extends string = never,\n PROPERTY_SECURITIES extends boolean = false,\n> {\n $select?: readonly L[];\n $includeRid?: R;\n $loadPropertySecurityMetadata?: PROPERTY_SECURITIES;\n}\n\nexport interface OrderByArg<\n Q extends ObjectOrInterfaceDefinition,\n L extends string = PropertyKeys<Q>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = never,\n> extends ObjectSetArgs.OrderBy<ORDER_BY_OPTIONS, L> {}\n\nexport type SelectArgToKeys<\n Q extends ObjectOrInterfaceDefinition,\n A extends SelectArg<Q, any, any>,\n> =\n A extends SelectArg<Q, never>\n ? PropertyKeys<Q>\n : A[\"$select\"] extends readonly string[]\n ? A[\"$select\"][number]\n : PropertyKeys<Q>;\n\nexport interface FetchPageArgs<\n Q extends ObjectOrInterfaceDefinition,\n K extends string = PropertyKeys<Q>,\n R extends boolean = false,\n A extends Augments = never,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined =\n PropertyModifierValue,\n> extends AsyncIterArgs<\n Q,\n K,\n R,\n A,\n S,\n T,\n RDP_KEYS,\n ORDER_BY_OPTIONS,\n PROPERTY_SECURITIES,\n MODIFIERS\n> {\n $nextPageToken?: string;\n $pageSize?: number;\n $applyModifiers?: ApplyModifiersArg<Q> &\n MODIFIERS & { [P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>]: never };\n /**\n * Best-effort load level applied to every property without listing them:\n * reducers and struct main values where defined, other properties unchanged.\n * A per-property `$applyModifiers` entry wins.\n *\n * @experimental\n */\n $EXPERIMENTAL_defaultLoadLevel?: DEFAULT_LOAD_LEVEL;\n /**\n * Ensures paging consistency by freezing the view at the time of query to prevent duplicate or missing items. Setting $snapshot to false ensures that you will always get the latest results.\n * @default false\n */\n $snapshot?: boolean;\n}\n\nexport interface AsyncIterArgs<\n Q extends ObjectOrInterfaceDefinition,\n K extends string = PropertyKeys<Q>,\n R extends boolean = false,\n A extends Augments = never,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n>\n extends\n SelectArg<Q, K, R, S, RDP_KEYS, PROPERTY_SECURITIES>,\n OrderByArg<Q, PropertyKeys<Q> | RDP_KEYS, ORDER_BY_OPTIONS> {\n $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;\n $applyModifiers?: ApplyModifiersArg<Q> &\n MODIFIERS & { [P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>]: never };\n}\n\nexport type Augment<X extends ObjectOrInterfaceDefinition, T extends string> = {\n [K in CompileTimeMetadata<X>[\"apiName\"]]: T[];\n};\n\nexport type Augments = Record<string, string[]>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WA2BiBA,oBAAoB;AAAA,WAIpBC,aAAa","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchPageResult.js","names":[],"sources":["FetchPageResult.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type {\n ExtractOptions,\n IsNever,\n MaybeScore,\n Osdk,\n} from \"../OsdkObjectFrom.js\";\nimport type { PageResult } from \"../PageResult.js\";\nimport type { NullabilityAdherence, ObjectSetArgs } from \"./FetchPageArgs.js\";\n\n/** exposed for a test */\nexport type RespectNullability<S extends NullabilityAdherence> = S extends false\n ? false\n : true;\n\n/** exposed for a test */\nexport type UnionIfFalse<S extends string, JUST_S_IF_TRUE extends boolean, E> =\n IsNever<S> extends true ? never : JUST_S_IF_TRUE extends true ? S : S | E;\n\n/** exposed for a test */\nexport type UnionIfTrue<\n S extends string,\n UNION_IF_TRUE extends boolean,\n E extends string,\n> = IsNever<S> extends true ? never : UNION_IF_TRUE extends true ? S | E : S;\n\ntype ModifiersToSelectStrings<M> = {\n [K in keyof M]: K extends string\n ? M[K] extends PropertyModifierValue\n ? `${K}:${M[K]}`\n : never\n : never;\n}[keyof M];\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type FetchPageResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n R extends boolean,\n S extends NullabilityAdherence,\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n> = PageResult<\n MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T, PROPERTY_SECURITIES>,\n |
|
|
1
|
+
{"version":3,"file":"FetchPageResult.js","names":[],"sources":["FetchPageResult.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyDefaultLoadLevelToKeys,\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type {\n ExtractOptions,\n IsNever,\n MaybeScore,\n Osdk,\n} from \"../OsdkObjectFrom.js\";\nimport type { PageResult } from \"../PageResult.js\";\nimport type { NullabilityAdherence, ObjectSetArgs } from \"./FetchPageArgs.js\";\n\n/** exposed for a test */\nexport type RespectNullability<S extends NullabilityAdherence> = S extends false\n ? false\n : true;\n\n/** exposed for a test */\nexport type UnionIfFalse<S extends string, JUST_S_IF_TRUE extends boolean, E> =\n IsNever<S> extends true ? never : JUST_S_IF_TRUE extends true ? S : S | E;\n\n/** exposed for a test */\nexport type UnionIfTrue<\n S extends string,\n UNION_IF_TRUE extends boolean,\n E extends string,\n> = IsNever<S> extends true ? never : UNION_IF_TRUE extends true ? S | E : S;\n\ntype ModifiersToSelectStrings<M> = {\n [K in keyof M]: K extends string\n ? M[K] extends PropertyModifierValue\n ? `${K}:${M[K]}`\n : never\n : never;\n}[keyof M];\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type FetchPageResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n R extends boolean,\n S extends NullabilityAdherence,\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined,\n> = PageResult<\n MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T, PROPERTY_SECURITIES>,\n | SelectedKeysWithDefaultLoadLevel<Q, L, MODIFIERS, DEFAULT_LOAD_LEVEL>\n | ModifiersToSelectStrings<MODIFIERS>,\n {}\n >,\n ORDER_BY_OPTIONS\n >\n>;\n\n/**\n * The selected keys of a fetch, as `prop:modifier` select strings where a\n * default load level applies to them. Keys carrying a per-property\n * `$applyModifiers` entry are dropped here; they come back through\n * `ModifiersToSelectStrings`.\n *\n * Without a default load level this stays `never` when everything is selected,\n * which is how `Osdk.Instance` spells \"all properties\".\n */\ntype SelectedKeysWithDefaultLoadLevel<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined,\n> = [DEFAULT_LOAD_LEVEL] extends [PropertyModifierValue]\n ? ApplyDefaultLoadLevelToKeys<\n Q,\n Exclude<PropertyKeys<Q> extends L ? PropertyKeys<Q> : L, keyof MODIFIERS>,\n DEFAULT_LOAD_LEVEL\n >\n : Exclude<PropertyKeys<Q> extends L ? never : L, keyof MODIFIERS>;\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type SingleOsdkResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q> | (keyof RDPs & string),\n R extends boolean,\n S extends NullabilityAdherence,\n RDPs extends Record<string, SimplePropertyDef> = {},\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n> = MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T>,\n PropertyKeys<Q> extends L ? PropertyKeys<Q> : PropertyKeys<Q> & L,\n { [K in Extract<keyof RDPs, L>]: RDPs[K] }\n >,\n ORDER_BY_OPTIONS\n>;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never]\n ? false\n : true\n : false;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyModifiers.js","names":[],"sources":["PropertyModifiers.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { GetClientPropertyValueFromWire } from \"../mapping/PropertyValueMapping.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"./ObjectTypeDefinition.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\n/** Modifier values users can specify */\nexport type PropertyModifierValue =\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n\nexport type MainValueTypeOf<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\n/**\n * Extract the reduced type from an array property.\n * The reduced type is the element type (non-array).\n */\nexport type ReducedTypeOf<P extends ObjectMetadata.Property> =\n P[\"hasReducers\"] extends true\n ? P[\"type\"] extends WirePropertyTypes\n ? GetClientPropertyValueFromWire<P[\"type\"]>\n : never\n : never;\n\n/** Get keys of properties that have mainValue defined */\nexport type PropsWithMainValue<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n mainValue: { fields: readonly string[] };\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/** Get keys of properties that have reducers defined */\nexport type PropsWithReducers<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n hasReducers: true;\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/**\n * Apply a single modifier to a property type.\n * - \"applyMainValue\" -> returns struct with only main value fields\n * - \"applyReducers\" -> returns single element type (not array)\n * - \"applyReducersAndExtractMainValue\" -> returns single element with only main value fields\n */\nexport type ApplyModifierToProperty<\n P extends ObjectMetadata.Property,\n M extends PropertyModifierValue,\n> = M extends \"applyMainValue\"\n ? MainValueTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducers\"\n ? ReducedTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducersAndExtractMainValue\"\n ? MainValueOfReduced<P> | (P[\"nullable\"] extends true ? undefined : never)\n : never;\n\ntype MainValueOfReduced<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\nexport type PropsWithBoth<Q extends ObjectOrInterfaceDefinition> =\n PropsWithMainValue<Q> & PropsWithReducers<Q>;\n\nexport type PropsWithOnlyMainValue<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithMainValue<Q>, PropsWithReducers<Q>>;\n\nexport type PropsWithOnlyReducers<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithReducers<Q>, PropsWithMainValue<Q>>;\n\nexport type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = {\n [P in PropsWithOnlyMainValue<Q>]?: \"applyMainValue\";\n} & {\n [P in PropsWithOnlyReducers<Q>]?: \"applyReducers\";\n} & {\n [P in PropsWithBoth<Q>]?:\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n};\n\nexport type ApplyModifiersToProps<\n Q extends ObjectOrInterfaceDefinition,\n MODIFIERS extends Record<string, PropertyModifierValue>,\n> = {\n [K in PropertyKeys<Q>]: K extends keyof MODIFIERS\n ? MODIFIERS[K] extends PropertyModifierValue\n ? ApplyModifierToProperty<\n CompileTimeMetadata<Q>[\"properties\"][K],\n MODIFIERS[K]\n >\n : CompileTimeMetadata<Q>[\"props\"][K]\n : CompileTimeMetadata<Q>[\"props\"][K];\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyModifiers.js","names":[],"sources":["PropertyModifiers.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { GetClientPropertyValueFromWire } from \"../mapping/PropertyValueMapping.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"./ObjectTypeDefinition.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\n/** Modifier values users can specify */\nexport type PropertyModifierValue =\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n\nexport type MainValueTypeOf<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\n/**\n * Extract the reduced type from an array property.\n * The reduced type is the element type (non-array).\n */\nexport type ReducedTypeOf<P extends ObjectMetadata.Property> =\n P[\"hasReducers\"] extends true\n ? P[\"type\"] extends WirePropertyTypes\n ? GetClientPropertyValueFromWire<P[\"type\"]>\n : never\n : never;\n\n/** Get keys of properties that have mainValue defined */\nexport type PropsWithMainValue<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n mainValue: { fields: readonly string[] };\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/** Get keys of properties that have reducers defined */\nexport type PropsWithReducers<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n hasReducers: true;\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/**\n * Apply a single modifier to a property type.\n * - \"applyMainValue\" -> returns struct with only main value fields\n * - \"applyReducers\" -> returns single element type (not array)\n * - \"applyReducersAndExtractMainValue\" -> returns single element with only main value fields\n */\nexport type ApplyModifierToProperty<\n P extends ObjectMetadata.Property,\n M extends PropertyModifierValue,\n> = M extends \"applyMainValue\"\n ? MainValueTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducers\"\n ? ReducedTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducersAndExtractMainValue\"\n ? MainValueOfReduced<P> | (P[\"nullable\"] extends true ? undefined : never)\n : never;\n\ntype MainValueOfReduced<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\nexport type PropsWithBoth<Q extends ObjectOrInterfaceDefinition> =\n PropsWithMainValue<Q> & PropsWithReducers<Q>;\n\nexport type PropsWithOnlyMainValue<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithMainValue<Q>, PropsWithReducers<Q>>;\n\nexport type PropsWithOnlyReducers<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithReducers<Q>, PropsWithMainValue<Q>>;\n\nexport type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = {\n [P in PropsWithOnlyMainValue<Q>]?: \"applyMainValue\";\n} & {\n [P in PropsWithOnlyReducers<Q>]?: \"applyReducers\";\n} & {\n [P in PropsWithBoth<Q>]?:\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n};\n\n/**\n * The modifier a default load level resolves to for a single property.\n *\n * A default load level is best-effort: it only applies to properties that\n * actually support it, and `applyReducersAndExtractMainValue` degrades to the\n * half of itself that a property supports. Properties that support neither\n * resolve to `never`.\n */\nexport type ResolveDefaultLoadLevelForProp<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q>,\n D extends PropertyModifierValue,\n> = D extends \"applyMainValue\"\n ? K extends PropsWithMainValue<Q>\n ? \"applyMainValue\"\n : never\n : D extends \"applyReducers\"\n ? K extends PropsWithReducers<Q>\n ? \"applyReducers\"\n : never\n : K extends PropsWithBoth<Q>\n ? \"applyReducersAndExtractMainValue\"\n : K extends PropsWithMainValue<Q>\n ? \"applyMainValue\"\n : K extends PropsWithReducers<Q>\n ? \"applyReducers\"\n : never;\n\n/**\n * Turns a union of property keys into the `prop:modifier` select strings that\n * `Osdk.Instance` understands, given a default load level. Keys the load level\n * does not apply to are passed through unchanged.\n */\nexport type ApplyDefaultLoadLevelToKeys<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q>,\n D extends PropertyModifierValue | undefined,\n> = [D] extends [PropertyModifierValue]\n ? K extends unknown\n ? [ResolveDefaultLoadLevelForProp<Q, K, D>] extends [never]\n ? K\n : `${K & string}:${ResolveDefaultLoadLevelForProp<Q, K, D>}`\n : never\n : K;\n\nexport type ApplyModifiersToProps<\n Q extends ObjectOrInterfaceDefinition,\n MODIFIERS extends Record<string, PropertyModifierValue>,\n> = {\n [K in PropertyKeys<Q>]: K extends keyof MODIFIERS\n ? MODIFIERS[K] extends PropertyModifierValue\n ? ApplyModifierToProperty<\n CompileTimeMetadata<Q>[\"properties\"][K],\n MODIFIERS[K]\n >\n : CompileTimeMetadata<Q>[\"props\"][K]\n : CompileTimeMetadata<Q>[\"props\"][K];\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1270,6 +1270,21 @@ type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = {
|
|
|
1270
1270
|
} & {
|
|
1271
1271
|
[P in PropsWithBoth<Q>]?: "applyMainValue" | "applyReducers" | "applyReducersAndExtractMainValue";
|
|
1272
1272
|
};
|
|
1273
|
+
/**
|
|
1274
|
+
* The modifier a default load level resolves to for a single property.
|
|
1275
|
+
*
|
|
1276
|
+
* A default load level is best-effort: it only applies to properties that
|
|
1277
|
+
* actually support it, and `applyReducersAndExtractMainValue` degrades to the
|
|
1278
|
+
* half of itself that a property supports. Properties that support neither
|
|
1279
|
+
* resolve to `never`.
|
|
1280
|
+
*/
|
|
1281
|
+
type ResolveDefaultLoadLevelForProp<Q extends ObjectOrInterfaceDefinition, K extends PropertyKeys<Q>, D extends PropertyModifierValue> = D extends "applyMainValue" ? K extends PropsWithMainValue<Q> ? "applyMainValue" : never : D extends "applyReducers" ? K extends PropsWithReducers<Q> ? "applyReducers" : never : K extends PropsWithBoth<Q> ? "applyReducersAndExtractMainValue" : K extends PropsWithMainValue<Q> ? "applyMainValue" : K extends PropsWithReducers<Q> ? "applyReducers" : never;
|
|
1282
|
+
/**
|
|
1283
|
+
* Turns a union of property keys into the `prop:modifier` select strings that
|
|
1284
|
+
* `Osdk.Instance` understands, given a default load level. Keys the load level
|
|
1285
|
+
* does not apply to are passed through unchanged.
|
|
1286
|
+
*/
|
|
1287
|
+
type ApplyDefaultLoadLevelToKeys<Q extends ObjectOrInterfaceDefinition, K extends PropertyKeys<Q>, D extends PropertyModifierValue | undefined> = [D] extends [PropertyModifierValue] ? K extends unknown ? [ResolveDefaultLoadLevelForProp<Q, K, D>] extends [never] ? K : `${K & string}:${ResolveDefaultLoadLevelForProp<Q, K, D>}` : never : K;
|
|
1273
1288
|
type ApplyModifiersToProps<Q extends ObjectOrInterfaceDefinition, MODIFIERS extends Record<string, PropertyModifierValue>> = {
|
|
1274
1289
|
[K in PropertyKeys<Q>]: K extends keyof MODIFIERS ? MODIFIERS[K] extends PropertyModifierValue ? ApplyModifierToProperty<CompileTimeMetadata<Q>["properties"][K], MODIFIERS[K]> : CompileTimeMetadata<Q>["props"][K] : CompileTimeMetadata<Q>["props"][K];
|
|
1275
1290
|
};
|
|
@@ -1305,12 +1320,20 @@ interface SelectArg<Q extends ObjectOrInterfaceDefinition, L extends string = Pr
|
|
|
1305
1320
|
interface OrderByArg<Q extends ObjectOrInterfaceDefinition, L extends string = PropertyKeys<Q>, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = never> extends ObjectSetArgs.OrderBy<ORDER_BY_OPTIONS, L> {
|
|
1306
1321
|
}
|
|
1307
1322
|
type SelectArgToKeys<Q extends ObjectOrInterfaceDefinition, A extends SelectArg<Q, any, any>> = A extends SelectArg<Q, never> ? PropertyKeys<Q> : A["$select"] extends readonly string[] ? A["$select"][number] : PropertyKeys<Q>;
|
|
1308
|
-
interface FetchPageArgs<Q extends ObjectOrInterfaceDefinition, K extends string = PropertyKeys<Q>, R extends boolean = false, A extends Augments = never, S extends NullabilityAdherence = NullabilityAdherence.Default, T extends boolean = false, RDP_KEYS extends string = never, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = {}, PROPERTY_SECURITIES extends boolean = false, MODIFIERS extends ApplyModifiersArg<Q> = {}> extends AsyncIterArgs<Q, K, R, A, S, T, RDP_KEYS, ORDER_BY_OPTIONS, PROPERTY_SECURITIES, MODIFIERS> {
|
|
1323
|
+
interface FetchPageArgs<Q extends ObjectOrInterfaceDefinition, K extends string = PropertyKeys<Q>, R extends boolean = false, A extends Augments = never, S extends NullabilityAdherence = NullabilityAdherence.Default, T extends boolean = false, RDP_KEYS extends string = never, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = {}, PROPERTY_SECURITIES extends boolean = false, MODIFIERS extends ApplyModifiersArg<Q> = {}, DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = PropertyModifierValue> extends AsyncIterArgs<Q, K, R, A, S, T, RDP_KEYS, ORDER_BY_OPTIONS, PROPERTY_SECURITIES, MODIFIERS> {
|
|
1309
1324
|
$nextPageToken?: string;
|
|
1310
1325
|
$pageSize?: number;
|
|
1311
1326
|
$applyModifiers?: ApplyModifiersArg<Q> & MODIFIERS & {
|
|
1312
1327
|
[P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>]: never;
|
|
1313
1328
|
};
|
|
1329
|
+
/**
|
|
1330
|
+
* Best-effort load level applied to every property without listing them:
|
|
1331
|
+
* reducers and struct main values where defined, other properties unchanged.
|
|
1332
|
+
* A per-property `$applyModifiers` entry wins.
|
|
1333
|
+
*
|
|
1334
|
+
* @experimental
|
|
1335
|
+
*/
|
|
1336
|
+
$EXPERIMENTAL_defaultLoadLevel?: DEFAULT_LOAD_LEVEL;
|
|
1314
1337
|
/**
|
|
1315
1338
|
* Ensures paging consistency by freezing the view at the time of query to prevent duplicate or missing items. Setting $snapshot to false ensures that you will always get the latest results.
|
|
1316
1339
|
* @default false
|
|
@@ -1373,7 +1396,17 @@ type ModifiersToSelectStrings$1<M> = {
|
|
|
1373
1396
|
/**
|
|
1374
1397
|
* Helper type for converting fetch options into an Osdk object
|
|
1375
1398
|
*/
|
|
1376
|
-
type FetchPageResult<Q extends ObjectOrInterfaceDefinition, L extends PropertyKeys<Q>, R extends boolean, S extends NullabilityAdherence, T extends boolean = false, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {}, PROPERTY_SECURITIES extends boolean = false, MODIFIERS extends ApplyModifiersArg<Q> = {}> = PageResult<MaybeScore<Osdk.Instance<Q, ExtractOptions<R, S, T, PROPERTY_SECURITIES>,
|
|
1399
|
+
type FetchPageResult<Q extends ObjectOrInterfaceDefinition, L extends PropertyKeys<Q>, R extends boolean, S extends NullabilityAdherence, T extends boolean = false, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {}, PROPERTY_SECURITIES extends boolean = false, MODIFIERS extends ApplyModifiersArg<Q> = {}, DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined> = PageResult<MaybeScore<Osdk.Instance<Q, ExtractOptions<R, S, T, PROPERTY_SECURITIES>, SelectedKeysWithDefaultLoadLevel<Q, L, MODIFIERS, DEFAULT_LOAD_LEVEL> | ModifiersToSelectStrings$1<MODIFIERS>, {}>, ORDER_BY_OPTIONS>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* The selected keys of a fetch, as `prop:modifier` select strings where a
|
|
1402
|
+
* default load level applies to them. Keys carrying a per-property
|
|
1403
|
+
* `$applyModifiers` entry are dropped here; they come back through
|
|
1404
|
+
* `ModifiersToSelectStrings`.
|
|
1405
|
+
*
|
|
1406
|
+
* Without a default load level this stays `never` when everything is selected,
|
|
1407
|
+
* which is how `Osdk.Instance` spells "all properties".
|
|
1408
|
+
*/
|
|
1409
|
+
type SelectedKeysWithDefaultLoadLevel<Q extends ObjectOrInterfaceDefinition, L extends PropertyKeys<Q>, MODIFIERS, DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined> = [DEFAULT_LOAD_LEVEL] extends [PropertyModifierValue] ? ApplyDefaultLoadLevelToKeys<Q, Exclude<PropertyKeys<Q> extends L ? PropertyKeys<Q> : L, keyof MODIFIERS>, DEFAULT_LOAD_LEVEL> : Exclude<PropertyKeys<Q> extends L ? never : L, keyof MODIFIERS>;
|
|
1377
1410
|
/**
|
|
1378
1411
|
* Helper type for converting fetch options into an Osdk object
|
|
1379
1412
|
*/
|
|
@@ -1903,8 +1936,7 @@ type NotWhereClause<T extends ObjectOrInterfaceDefinition, RDPs extends Record<s
|
|
|
1903
1936
|
type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {
|
|
1904
1937
|
[P in keyof CompileTimeMetadata<T>["properties"]]?: FilterFor<CompileTimeMetadata<T>["properties"][P]>;
|
|
1905
1938
|
};
|
|
1906
|
-
type
|
|
1907
|
-
type WhereClause<T extends ObjectOrInterfaceDefinition, RDPs extends Record<string, SimplePropertyDef> = {}> = OrWhereClause<T, RDPs> | AndWhereClause<T, RDPs> | NotWhereClause<T, RDPs> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> : MergedPropertyWhereClause<T, RDPs>);
|
|
1939
|
+
type WhereClause<T extends ObjectOrInterfaceDefinition, RDPs extends Record<string, SimplePropertyDef> = {}> = OrWhereClause<T, RDPs> | AndWhereClause<T, RDPs> | NotWhereClause<T, RDPs> | SpecialPropertyWhereClause<T> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> : PropertyWhereClause<DerivedObjectOrInterfaceDefinition.WithDerivedProperties<T, RDPs>>);
|
|
1908
1940
|
|
|
1909
1941
|
type LinkNames<Q extends ObjectOrInterfaceDefinition> = Q extends InterfaceDefinition ? keyof CompileTimeMetadata<Q>["links"] : keyof CompileTimeMetadata<Q>["links"] & string;
|
|
1910
1942
|
type LinkedType<Q extends ObjectOrInterfaceDefinition, L extends LinkNames<Q>> = NonNullable<CompileTimeMetadata<Q>["links"][L]["__OsdkLinkTargetType"]>;
|
|
@@ -2503,4 +2535,4 @@ interface AsyncIterLinks<Q extends ObjectOrInterfaceDefinition> {
|
|
|
2503
2535
|
interface ObjectSetCleanedTypes<Q extends ObjectOrInterfaceDefinition, D extends Record<string, SimplePropertyDef>, MERGED extends ObjectOrInterfaceDefinition & Q, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, NearestNeighbors<Q>, NarrowToType<Q> {
|
|
2504
2536
|
}
|
|
2505
2537
|
|
|
2506
|
-
export { type DicomMediaType as $, type AttachmentUpload as A, type Augments as B, type CompileTimeMetadata as C, type BandInfo as D, type BaseObjectSet as E, type BaseWirePropertyTypes as F, type CipherText as G, type ColorInterpretation as H, type InterfaceDefinition as I, type CommonDicomDataElements as J, type ConvertProps as K, type CoordinateReferenceSystem as L, type MediaReference as M, type DataType as N, type ObjectOrInterfaceDefinition as O, type PropertyValueWireToClient as P, type DatetimeFormat as Q, type ReleaseStatus as R, type DatetimeLocalizedFormat as S, type DatetimeLocalizedFormatType as T, type DatetimeStringFormat as U, type DatetimeTimezone as V, type DatetimeTimezoneStatic as W, type DatetimeTimezoneUser as X, DerivedProperty as Y, type DicomDataElementKey as Z, type DicomMediaItemMetadata as _, type OsdkMetadata as a, type NumberFormatRatio as a$, type DicomMetaInformation as a0, type DicomMetaInformationV1 as a1, type Dimensions as a2, DistanceUnitMapping as a3, type DocumentDecodeFormat as a4, type DocumentMediaItemMetadata as a5, type DurationBaseValue as a6, type DurationFormatStyle as a7, DurationMapping as a8, type DurationPrecision as a9, type KnownType as aA, type LinkNames as aB, type LinkTypeApiNamesFor as aC, type LinkedType as aD, type Mailbox as aE, type MailboxOrGroup as aF, type MailboxWrapper as aG, type MaybeScore as aH, type MediaFullMetadata as aI, type MediaItemMetadata as aJ, type MediaMetadata as aK, type MediaPropertyLocation as aL, type MinimalDirectedObjectLinkInstance as aM, type Modality as aN, type Model3dDecodeFormat as aO, type Model3dMediaItemMetadata as aP, type Model3dType as aQ, type NotWhereClause as aR, NullabilityAdherence as aS, type NumberFormatAffix as aT, type NumberFormatCurrency as aU, type NumberFormatCurrencyStyle as aV, type NumberFormatCustomUnit as aW, type NumberFormatDuration as aX, type NumberFormatFixedValues as aY, type NumberFormatNotation as aZ, type NumberFormatOptions as a_, type EmailAttachment as aa, type EmailDecodeFormat as ab, type EmailMediaItemMetadata as ac, type FetchLinksPageResult as ad, type FetchPageArgs as ae, type FetchPageResult as af, type FlipAxis as ag, type GcpList as ah, type GeoFilterOptions as ai, type GeoFilter_Intersects as aj, type GeoFilter_Within as ak, type GeoMetadata as al, type GeotimeSeriesProperty as am, type GpsMetadata as an, type GroundControlPoint as ao, type Group as ap, type GroupByClause as aq, type GroupByRange as ar, type GroupWrapper as as, type HumanReadableFormat as at, type ImageAttributeDomain as au, type ImageAttributeKey as av, type ImageryDecodeFormat as aw, type ImageryMediaItemMetadata as ax, InterfaceMetadata as ay, type IntervalRule as az, type ObjectTypeDefinition as b, type NumberFormatScale as b0, type NumberFormatStandard as b1, type NumberFormatStandardUnit as b2, type NumberRatioType as b3, type NumberRoundingMode as b4, type NumberScaleType as b5, ObjectMetadata as b6, ObjectSetArgs as b7, ObjectSetSubscription as b8, type ObjectSpecifier as b9, type SelectArgToKeys as bA, SimplePropertyDef as bB, type SingleLinkAccessor as bC, type SingleOsdkResult as bD, type SpreadsheetDecodeFormat as bE, type SpreadsheetMediaItemMetadata as bF, type StringConstant as bG, type TimeCodeFormat as bH, type TimeSeriesPoint as bI, type TimeSeriesProperty as bJ, type TimeSeriesQuery as bK, TimeseriesDurationMapping as bL, type UnitInterpretation as bM, type UnknownMediaItemMetadata as bN, type UntypedMediaItemMetadata as bO, type ValidAggregationKeys as bP, type VersionBound as bQ, type VideoDecodeFormat as bR, type VideoMediaItemMetadata as bS, type VideoSpecification as bT, type WhereClause as bU, type WirePropertyTypes as bV, isOk as bW, type ExtractOptions as bX, type
|
|
2538
|
+
export { type DicomMediaType as $, type AttachmentUpload as A, type Augments as B, type CompileTimeMetadata as C, type BandInfo as D, type BaseObjectSet as E, type BaseWirePropertyTypes as F, type CipherText as G, type ColorInterpretation as H, type InterfaceDefinition as I, type CommonDicomDataElements as J, type ConvertProps as K, type CoordinateReferenceSystem as L, type MediaReference as M, type DataType as N, type ObjectOrInterfaceDefinition as O, type PropertyValueWireToClient as P, type DatetimeFormat as Q, type ReleaseStatus as R, type DatetimeLocalizedFormat as S, type DatetimeLocalizedFormatType as T, type DatetimeStringFormat as U, type DatetimeTimezone as V, type DatetimeTimezoneStatic as W, type DatetimeTimezoneUser as X, DerivedProperty as Y, type DicomDataElementKey as Z, type DicomMediaItemMetadata as _, type OsdkMetadata as a, type NumberFormatRatio as a$, type DicomMetaInformation as a0, type DicomMetaInformationV1 as a1, type Dimensions as a2, DistanceUnitMapping as a3, type DocumentDecodeFormat as a4, type DocumentMediaItemMetadata as a5, type DurationBaseValue as a6, type DurationFormatStyle as a7, DurationMapping as a8, type DurationPrecision as a9, type KnownType as aA, type LinkNames as aB, type LinkTypeApiNamesFor as aC, type LinkedType as aD, type Mailbox as aE, type MailboxOrGroup as aF, type MailboxWrapper as aG, type MaybeScore as aH, type MediaFullMetadata as aI, type MediaItemMetadata as aJ, type MediaMetadata as aK, type MediaPropertyLocation as aL, type MinimalDirectedObjectLinkInstance as aM, type Modality as aN, type Model3dDecodeFormat as aO, type Model3dMediaItemMetadata as aP, type Model3dType as aQ, type NotWhereClause as aR, NullabilityAdherence as aS, type NumberFormatAffix as aT, type NumberFormatCurrency as aU, type NumberFormatCurrencyStyle as aV, type NumberFormatCustomUnit as aW, type NumberFormatDuration as aX, type NumberFormatFixedValues as aY, type NumberFormatNotation as aZ, type NumberFormatOptions as a_, type EmailAttachment as aa, type EmailDecodeFormat as ab, type EmailMediaItemMetadata as ac, type FetchLinksPageResult as ad, type FetchPageArgs as ae, type FetchPageResult as af, type FlipAxis as ag, type GcpList as ah, type GeoFilterOptions as ai, type GeoFilter_Intersects as aj, type GeoFilter_Within as ak, type GeoMetadata as al, type GeotimeSeriesProperty as am, type GpsMetadata as an, type GroundControlPoint as ao, type Group as ap, type GroupByClause as aq, type GroupByRange as ar, type GroupWrapper as as, type HumanReadableFormat as at, type ImageAttributeDomain as au, type ImageAttributeKey as av, type ImageryDecodeFormat as aw, type ImageryMediaItemMetadata as ax, InterfaceMetadata as ay, type IntervalRule as az, type ObjectTypeDefinition as b, type MinimalObjectSet as b$, type NumberFormatScale as b0, type NumberFormatStandard as b1, type NumberFormatStandardUnit as b2, type NumberRatioType as b3, type NumberRoundingMode as b4, type NumberScaleType as b5, ObjectMetadata as b6, ObjectSetArgs as b7, ObjectSetSubscription as b8, type ObjectSpecifier as b9, type SelectArgToKeys as bA, SimplePropertyDef as bB, type SingleLinkAccessor as bC, type SingleOsdkResult as bD, type SpreadsheetDecodeFormat as bE, type SpreadsheetMediaItemMetadata as bF, type StringConstant as bG, type TimeCodeFormat as bH, type TimeSeriesPoint as bI, type TimeSeriesProperty as bJ, type TimeSeriesQuery as bK, TimeseriesDurationMapping as bL, type UnitInterpretation as bM, type UnknownMediaItemMetadata as bN, type UntypedMediaItemMetadata as bO, type ValidAggregationKeys as bP, type VersionBound as bQ, type VideoDecodeFormat as bR, type VideoMediaItemMetadata as bS, type VideoSpecification as bT, type WhereClause as bU, type WirePropertyTypes as bV, isOk as bW, type ExtractOptions as bX, type ApplyModifiersArg as bY, type PropertyModifierValue as bZ, type Just as b_, type OrWhereClause as ba, type Orientation as bb, Osdk as bc, type OsdkObjectCreatePropertyType as bd, type OsdkObjectLinksObject as be, type OsdkObjectPropertyType as bf, type PageResult as bg, type PaletteInterpretation as bh, type PossibleWhereClauseFilters as bi, type PrimaryKeyType as bj, type PropertyBooleanFormattingRule as bk, type PropertyDateFormattingRule as bl, type PropertyDef as bm, PropertyKeys as bn, type PropertyKnownTypeFormattingRule as bo, type PropertyMarkings as bp, type PropertyNumberFormattingRule as bq, type PropertyNumberFormattingRuleType as br, type PropertySecurity as bs, type PropertyTimestampFormattingRule as bt, type PropertyTypeReference as bu, type PropertyTypeReferenceOrStringConstant as bv, type PropertyValueFormattingRule as bw, type Result as bx, type RotationAngle as by, type SelectArg as bz, type MediaUpload as c, type Media as d, type Attachment as e, type ObjectIdentifiers as f, type OsdkObjectPrimaryKeyType as g, type ObjectSet as h, type PrimaryKeyTypes as i, type OsdkBase as j, type AffineTransform as k, type Affix as l, type AggregateOpts as m, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as n, type AggregationClause as o, type AggregationResultsWithGroups as p, type AggregationResultsWithoutGroups as q, type AggregationsResults as r, type AllGroupByValues as s, type AndWhereClause as t, type AsyncIterArgs as u, type AttachmentMetadata as v, type AudioDecodeFormat as w, type AudioMediaItemMetadata as x, type AudioSpecification as y, type Augment as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-
|
|
1
|
+
import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-Bx6q2zLk.cjs';
|
|
2
2
|
|
|
3
3
|
interface QueryMetadata {
|
|
4
4
|
type: "query";
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AttachmentUpload, M as MediaReference, c as MediaUpload, d as Media, e as Attachment, b as ObjectTypeDefinition, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, h as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, a as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, i as PrimaryKeyTypes, O as ObjectOrInterfaceDefinition, j as OsdkBase } from './ObjectSet-
|
|
2
|
-
export { k as AffineTransform, l as Affix, m as AggregateOpts, n as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, o as AggregationClause, p as AggregationResultsWithGroups, q as AggregationResultsWithoutGroups, r as AggregationsResults, s as AllGroupByValues, t as AndWhereClause, u as AsyncIterArgs, v as AttachmentMetadata, w as AudioDecodeFormat, x as AudioMediaItemMetadata, y as AudioSpecification, z as Augment, B as Augments, D as BandInfo, E as BaseObjectSet, F as BaseWirePropertyTypes, G as CipherText, H as ColorInterpretation, J as CommonDicomDataElements, K as ConvertProps, L as CoordinateReferenceSystem, N as DataType, Q as DatetimeFormat, S as DatetimeLocalizedFormat, T as DatetimeLocalizedFormatType, U as DatetimeStringFormat, V as DatetimeTimezone, W as DatetimeTimezoneStatic, X as DatetimeTimezoneUser, Y as DerivedProperty, Z as DicomDataElementKey, _ as DicomMediaItemMetadata, $ as DicomMediaType, a0 as DicomMetaInformation, a1 as DicomMetaInformationV1, a2 as Dimensions, a3 as DistanceUnitMapping, a4 as DocumentDecodeFormat, a5 as DocumentMediaItemMetadata, a6 as DurationBaseValue, a7 as DurationFormatStyle, a8 as DurationMapping, a9 as DurationPrecision, aa as EmailAttachment, ab as EmailDecodeFormat, ac as EmailMediaItemMetadata, ad as FetchLinksPageResult, ae as FetchPageArgs, af as FetchPageResult, ag as FlipAxis, ah as GcpList, ai as GeoFilterOptions, aj as GeoFilter_Intersects, ak as GeoFilter_Within, al as GeoMetadata, am as GeotimeSeriesProperty, an as GpsMetadata, ao as GroundControlPoint, ap as Group, aq as GroupByClause, ar as GroupByRange, as as GroupWrapper, at as HumanReadableFormat, au as ImageAttributeDomain, av as ImageAttributeKey, aw as ImageryDecodeFormat, ax as ImageryMediaItemMetadata, ay as InterfaceMetadata, az as IntervalRule, aA as KnownType, aB as LinkNames, aC as LinkTypeApiNamesFor, aD as LinkedType, aE as Mailbox, aF as MailboxOrGroup, aG as MailboxWrapper, aH as MaybeScore, aI as MediaFullMetadata, aJ as MediaItemMetadata, aK as MediaMetadata, aL as MediaPropertyLocation, aM as MinimalDirectedObjectLinkInstance, aN as Modality, aO as Model3dDecodeFormat, aP as Model3dMediaItemMetadata, aQ as Model3dType, aR as NotWhereClause, aS as NullabilityAdherence, aT as NumberFormatAffix, aU as NumberFormatCurrency, aV as NumberFormatCurrencyStyle, aW as NumberFormatCustomUnit, aX as NumberFormatDuration, aY as NumberFormatFixedValues, aZ as NumberFormatNotation, a_ as NumberFormatOptions, a$ as NumberFormatRatio, b0 as NumberFormatScale, b1 as NumberFormatStandard, b2 as NumberFormatStandardUnit, b3 as NumberRatioType, b4 as NumberRoundingMode, b5 as NumberScaleType, b6 as ObjectMetadata, b7 as ObjectSetArgs, b8 as ObjectSetSubscription, b9 as ObjectSpecifier, ba as OrWhereClause, bb as Orientation, bc as Osdk, bd as OsdkObjectCreatePropertyType, be as OsdkObjectLinksObject, bf as OsdkObjectPropertyType, bg as PageResult, bh as PaletteInterpretation, bi as PossibleWhereClauseFilters, bj as PrimaryKeyType, bk as PropertyBooleanFormattingRule, bl as PropertyDateFormattingRule, bm as PropertyDef, bn as PropertyKeys, bo as PropertyKnownTypeFormattingRule, bp as PropertyMarkings, bq as PropertyNumberFormattingRule, br as PropertyNumberFormattingRuleType, bs as PropertySecurity, bt as PropertyTimestampFormattingRule, bu as PropertyTypeReference, bv as PropertyTypeReferenceOrStringConstant, bw as PropertyValueFormattingRule, bx as Result, by as RotationAngle, bz as SelectArg, bA as SelectArgToKeys, bB as SimplePropertyDef, bC as SingleLinkAccessor, bD as SingleOsdkResult, bE as SpreadsheetDecodeFormat, bF as SpreadsheetMediaItemMetadata, bG as StringConstant, bH as TimeCodeFormat, bI as TimeSeriesPoint, bJ as TimeSeriesProperty, bK as TimeSeriesQuery, bL as TimeseriesDurationMapping, bM as UnitInterpretation, bN as UnknownMediaItemMetadata, bO as UntypedMediaItemMetadata, bP as ValidAggregationKeys, bQ as VersionBound, bR as VideoDecodeFormat, bS as VideoMediaItemMetadata, bT as VideoSpecification, bU as WhereClause, bV as WirePropertyTypes, bW as isOk } from './ObjectSet-
|
|
3
|
-
import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-
|
|
4
|
-
export { I as InterfaceQueryDataType, O as ObjectQueryDataType, c as ObjectSetQueryDataType, Q as QueryDataTypeDefinition, d as QueryDefinition, e as QueryMetadata, f as QueryParameterDefinition, T as ThreeDimensionalQueryAggregationDefinition, g as TwoDimensionalQueryAggregationDefinition } from './QueryDefinition-
|
|
1
|
+
import { A as AttachmentUpload, M as MediaReference, c as MediaUpload, d as Media, e as Attachment, b as ObjectTypeDefinition, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, h as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, a as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, i as PrimaryKeyTypes, O as ObjectOrInterfaceDefinition, j as OsdkBase } from './ObjectSet-Bx6q2zLk.cjs';
|
|
2
|
+
export { k as AffineTransform, l as Affix, m as AggregateOpts, n as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, o as AggregationClause, p as AggregationResultsWithGroups, q as AggregationResultsWithoutGroups, r as AggregationsResults, s as AllGroupByValues, t as AndWhereClause, u as AsyncIterArgs, v as AttachmentMetadata, w as AudioDecodeFormat, x as AudioMediaItemMetadata, y as AudioSpecification, z as Augment, B as Augments, D as BandInfo, E as BaseObjectSet, F as BaseWirePropertyTypes, G as CipherText, H as ColorInterpretation, J as CommonDicomDataElements, K as ConvertProps, L as CoordinateReferenceSystem, N as DataType, Q as DatetimeFormat, S as DatetimeLocalizedFormat, T as DatetimeLocalizedFormatType, U as DatetimeStringFormat, V as DatetimeTimezone, W as DatetimeTimezoneStatic, X as DatetimeTimezoneUser, Y as DerivedProperty, Z as DicomDataElementKey, _ as DicomMediaItemMetadata, $ as DicomMediaType, a0 as DicomMetaInformation, a1 as DicomMetaInformationV1, a2 as Dimensions, a3 as DistanceUnitMapping, a4 as DocumentDecodeFormat, a5 as DocumentMediaItemMetadata, a6 as DurationBaseValue, a7 as DurationFormatStyle, a8 as DurationMapping, a9 as DurationPrecision, aa as EmailAttachment, ab as EmailDecodeFormat, ac as EmailMediaItemMetadata, ad as FetchLinksPageResult, ae as FetchPageArgs, af as FetchPageResult, ag as FlipAxis, ah as GcpList, ai as GeoFilterOptions, aj as GeoFilter_Intersects, ak as GeoFilter_Within, al as GeoMetadata, am as GeotimeSeriesProperty, an as GpsMetadata, ao as GroundControlPoint, ap as Group, aq as GroupByClause, ar as GroupByRange, as as GroupWrapper, at as HumanReadableFormat, au as ImageAttributeDomain, av as ImageAttributeKey, aw as ImageryDecodeFormat, ax as ImageryMediaItemMetadata, ay as InterfaceMetadata, az as IntervalRule, aA as KnownType, aB as LinkNames, aC as LinkTypeApiNamesFor, aD as LinkedType, aE as Mailbox, aF as MailboxOrGroup, aG as MailboxWrapper, aH as MaybeScore, aI as MediaFullMetadata, aJ as MediaItemMetadata, aK as MediaMetadata, aL as MediaPropertyLocation, aM as MinimalDirectedObjectLinkInstance, aN as Modality, aO as Model3dDecodeFormat, aP as Model3dMediaItemMetadata, aQ as Model3dType, aR as NotWhereClause, aS as NullabilityAdherence, aT as NumberFormatAffix, aU as NumberFormatCurrency, aV as NumberFormatCurrencyStyle, aW as NumberFormatCustomUnit, aX as NumberFormatDuration, aY as NumberFormatFixedValues, aZ as NumberFormatNotation, a_ as NumberFormatOptions, a$ as NumberFormatRatio, b0 as NumberFormatScale, b1 as NumberFormatStandard, b2 as NumberFormatStandardUnit, b3 as NumberRatioType, b4 as NumberRoundingMode, b5 as NumberScaleType, b6 as ObjectMetadata, b7 as ObjectSetArgs, b8 as ObjectSetSubscription, b9 as ObjectSpecifier, ba as OrWhereClause, bb as Orientation, bc as Osdk, bd as OsdkObjectCreatePropertyType, be as OsdkObjectLinksObject, bf as OsdkObjectPropertyType, bg as PageResult, bh as PaletteInterpretation, bi as PossibleWhereClauseFilters, bj as PrimaryKeyType, bk as PropertyBooleanFormattingRule, bl as PropertyDateFormattingRule, bm as PropertyDef, bn as PropertyKeys, bo as PropertyKnownTypeFormattingRule, bp as PropertyMarkings, bq as PropertyNumberFormattingRule, br as PropertyNumberFormattingRuleType, bs as PropertySecurity, bt as PropertyTimestampFormattingRule, bu as PropertyTypeReference, bv as PropertyTypeReferenceOrStringConstant, bw as PropertyValueFormattingRule, bx as Result, by as RotationAngle, bz as SelectArg, bA as SelectArgToKeys, bB as SimplePropertyDef, bC as SingleLinkAccessor, bD as SingleOsdkResult, bE as SpreadsheetDecodeFormat, bF as SpreadsheetMediaItemMetadata, bG as StringConstant, bH as TimeCodeFormat, bI as TimeSeriesPoint, bJ as TimeSeriesProperty, bK as TimeSeriesQuery, bL as TimeseriesDurationMapping, bM as UnitInterpretation, bN as UnknownMediaItemMetadata, bO as UntypedMediaItemMetadata, bP as ValidAggregationKeys, bQ as VersionBound, bR as VideoDecodeFormat, bS as VideoMediaItemMetadata, bT as VideoSpecification, bU as WhereClause, bV as WirePropertyTypes, bW as isOk } from './ObjectSet-Bx6q2zLk.cjs';
|
|
3
|
+
import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-Cz4Vz0sb.cjs';
|
|
4
|
+
export { I as InterfaceQueryDataType, O as ObjectQueryDataType, c as ObjectSetQueryDataType, Q as QueryDataTypeDefinition, d as QueryDefinition, e as QueryMetadata, f as QueryParameterDefinition, T as ThreeDimensionalQueryAggregationDefinition, g as TwoDimensionalQueryAggregationDefinition } from './QueryDefinition-Cz4Vz0sb.cjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import 'geojson';
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-
|
|
2
|
-
import '../ObjectSet-
|
|
1
|
+
export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-C-MIzX6H.cjs';
|
|
2
|
+
import '../ObjectSet-Bx6q2zLk.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import 'geojson';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CompileTimeMetadata, O as ObjectOrInterfaceDefinition, bn as PropertyKeys, aS as NullabilityAdherence, bz as SelectArg, bc as Osdk, bX as ExtractOptions, ae as FetchPageArgs, af as FetchPageResult, j as OsdkBase,
|
|
2
|
-
export {
|
|
3
|
-
import { d as QueryDefinition } from '../QueryDefinition-
|
|
4
|
-
import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-
|
|
5
|
-
export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-
|
|
1
|
+
import { C as CompileTimeMetadata, O as ObjectOrInterfaceDefinition, bn as PropertyKeys, aS as NullabilityAdherence, bz as SelectArg, bc as Osdk, bX as ExtractOptions, bY as ApplyModifiersArg, bZ as PropertyModifierValue, ae as FetchPageArgs, af as FetchPageResult, j as OsdkBase, b_ as Just, b8 as ObjectSetSubscription, d as Media } from '../ObjectSet-Bx6q2zLk.cjs';
|
|
2
|
+
export { b$ as MinimalObjectSet } from '../ObjectSet-Bx6q2zLk.cjs';
|
|
3
|
+
import { d as QueryDefinition } from '../QueryDefinition-Cz4Vz0sb.cjs';
|
|
4
|
+
import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-C-MIzX6H.cjs';
|
|
5
|
+
export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-C-MIzX6H.cjs';
|
|
6
6
|
import 'type-fest';
|
|
7
7
|
import 'geojson';
|
|
8
8
|
|
|
@@ -33,7 +33,7 @@ declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid: Experiment<"2.1.
|
|
|
33
33
|
fetchOneByRid: fetchOneByRidFn;
|
|
34
34
|
}>;
|
|
35
35
|
|
|
36
|
-
type fetchPageByRidFn = <Q extends ObjectOrInterfaceDefinition, const L extends PropertyKeys<Q>, const R extends boolean, const S extends NullabilityAdherence, const T extends boolean, const PROPERTY_SECURITIES extends boolean = false>(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S, T, never, {}, PROPERTY_SECURITIES>) => Promise<FetchPageResult<Q, L, R, S, T, {}, PROPERTY_SECURITIES>>;
|
|
36
|
+
type fetchPageByRidFn = <Q extends ObjectOrInterfaceDefinition, const L extends PropertyKeys<Q>, const R extends boolean, const S extends NullabilityAdherence, const T extends boolean, const PROPERTY_SECURITIES extends boolean = false, const MODIFIERS extends ApplyModifiersArg<Q> = {}, const DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined>(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S, T, never, {}, PROPERTY_SECURITIES, MODIFIERS, DEFAULT_LOAD_LEVEL>) => Promise<FetchPageResult<Q, L, R, S, T, {}, PROPERTY_SECURITIES, MODIFIERS, DEFAULT_LOAD_LEVEL>>;
|
|
37
37
|
type FetchPageByRidPayload = {
|
|
38
38
|
fetchPageByRid: fetchPageByRidFn;
|
|
39
39
|
fetchPageByRidNoType: fetchPageByRidNoTypeFn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ObjectOrInterfaceDefinition, bU as WhereClause, bn as PropertyKeys, C as CompileTimeMetadata, aB as LinkNames, aD as LinkedType, j as OsdkBase } from './ObjectSet-
|
|
1
|
+
import { O as ObjectOrInterfaceDefinition, bU as WhereClause, bn as PropertyKeys, C as CompileTimeMetadata, aB as LinkNames, aD as LinkedType, j as OsdkBase } from './ObjectSet-Bx6q2zLk.cjs';
|
|
2
2
|
|
|
3
3
|
declare const SourcePrimaryKeySymbol: unique symbol;
|
|
4
4
|
declare function isSourcePkSymbol(value: unknown): value is symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhereClause.js","names":["DistanceUnitMapping","centimeter","centimeters","cm","meter","meters","m","kilometer","kilometers","km","inch","inches","foot","feet","yard","yards","mile","miles","nautical_mile","nauticalMile"],"sources":["WhereClause.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { BBox, Point, Polygon } from \"geojson\";\n\nimport type {\n DerivedObjectOrInterfaceDefinition,\n ObjectOrInterfaceDefinition,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type { BaseWirePropertyTypes } from \"../ontology/WirePropertyTypes.js\";\nimport type { IsNever } from \"../OsdkObjectFrom.js\";\nimport type { ArrayFilter } from \"./ArrayFilter.js\";\nimport type { BaseFilter } from \"./BaseFilter.js\";\nimport type { BooleanFilter } from \"./BooleanFilter.js\";\nimport type { DatetimeFilter } from \"./DatetimeFilter.js\";\nimport type { GeoFilter } from \"./GeoFilter.js\";\nimport type { Just } from \"./Just.js\";\nimport type { NumberFilter } from \"./NumberFilter.js\";\nimport type { StringFilter } from \"./StringFilter.js\";\n\nexport type PossibleWhereClauseFilters =\n | \"$gt\"\n | \"$eq\"\n | \"$ne\"\n | \"$isNull\"\n | \"$contains\"\n | \"$gte\"\n | \"$lt\"\n | \"$lte\"\n | \"$within\"\n | \"$in\"\n | \"$intersects\"\n | \"$startsWith\"\n | \"$containsAllTermsInOrder\"\n | \"$containsAnyTerm\"\n | \"$containsAllTerms\"\n | \"$interval\"\n | \"$matchesRegex\";\n\n// the value side of this needs to match DistanceUnit from @osdk/foundry but we don't\n// want the dependency\nexport const DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n} = {\n centimeter: \"CENTIMETERS\",\n centimeters: \"CENTIMETERS\",\n cm: \"CENTIMETERS\",\n meter: \"METERS\",\n meters: \"METERS\",\n m: \"METERS\",\n kilometer: \"KILOMETERS\",\n kilometers: \"KILOMETERS\",\n km: \"KILOMETERS\",\n inch: \"INCHES\",\n inches: \"INCHES\",\n foot: \"FEET\",\n feet: \"FEET\",\n yard: \"YARDS\",\n yards: \"YARDS\",\n mile: \"MILES\",\n miles: \"MILES\",\n nautical_mile: \"NAUTICAL_MILES\",\n nauticalMile: \"NAUTICAL_MILES\",\n \"nautical miles\": \"NAUTICAL_MILES\",\n} satisfies Record<\n string,\n | \"CENTIMETERS\"\n | \"METERS\"\n | \"KILOMETERS\"\n | \"INCHES\"\n | \"FEET\"\n | \"YARDS\"\n | \"MILES\"\n | \"NAUTICAL_MILES\"\n>;\n\nexport type GeoFilter_Within = {\n $within:\n | {\n $distance: [number, keyof typeof DistanceUnitMapping];\n $of: [number, number] | Readonly<Point>;\n $bbox?: never;\n $polygon?: never;\n }\n | {\n $bbox: BBox;\n $distance?: never;\n $of?: never;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n $distance?: never;\n $of?: never;\n }\n | Polygon;\n};\n\nexport type GeoFilter_Intersects = {\n $intersects:\n | {\n $bbox: BBox;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n }\n | Polygon;\n};\n\ntype BaseFilterFor<T> =\n T extends Record<string, BaseWirePropertyTypes>\n ? StructFilterOpts<T>\n : T extends \"string\"\n ? StringFilter\n : T extends \"geopoint\" | \"geoshape\"\n ? GeoFilter\n : T extends \"datetime\" | \"timestamp\"\n ? DatetimeFilter\n : T extends \"boolean\"\n ? BooleanFilter\n : T extends WhereClauseNumberPropertyTypes\n ? NumberFilter\n : BaseFilter<string>; // Fallback for unknown types\n\ntype FilterFor<PD extends ObjectMetadata.Property> =\n PD[\"multiplicity\"] extends true\n ? ArrayFilter<BaseFilterFor<PD[\"type\"]>>\n : PD[\"type\"] extends Record<string, BaseWirePropertyTypes>\n ? StructFilter<PD[\"type\"]> | BaseFilter.$isNull<string>\n : BaseFilterFor<PD[\"type\"]>;\n\ntype StructFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]?: FilterFor<{ type: ST[K] }>;\n};\ntype StructFilter<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]: Just<K, StructFilterOpts<ST>>;\n}[keyof ST];\n\ntype WhereClauseNumberPropertyTypes =\n | \"double\"\n | \"integer\"\n | \"long\"\n | \"float\"\n | \"decimal\"\n | \"byte\";\n\ntype SpecialPropertyFilter = StringFilter | NumberFilter | DatetimeFilter;\n\ntype PrimaryKeyFilterFor<T extends ObjectOrInterfaceDefinition> =\n CompileTimeMetadata<T> extends { primaryKeyType: infer PKT extends string }\n ? BaseFilterFor<PKT>\n : SpecialPropertyFilter;\n\nexport type SpecialPropertyWhereClause<T extends ObjectOrInterfaceDefinition> =\n {\n $title?: SpecialPropertyFilter;\n $primaryKey?: PrimaryKeyFilterFor<T>;\n };\n\nexport type AndWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $and: WhereClause<T, RDPs>[];\n};\n\nexport type OrWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $or: WhereClause<T, RDPs>[];\n};\n\nexport type NotWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $not: WhereClause<T, RDPs>;\n};\n\nexport type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {\n [P in keyof CompileTimeMetadata<T>[\"properties\"]]?: FilterFor<\n CompileTimeMetadata<T>[\"properties\"][P]\n >;\n};\n\
|
|
1
|
+
{"version":3,"file":"WhereClause.js","names":["DistanceUnitMapping","centimeter","centimeters","cm","meter","meters","m","kilometer","kilometers","km","inch","inches","foot","feet","yard","yards","mile","miles","nautical_mile","nauticalMile"],"sources":["WhereClause.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { BBox, Point, Polygon } from \"geojson\";\n\nimport type {\n DerivedObjectOrInterfaceDefinition,\n ObjectOrInterfaceDefinition,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type { BaseWirePropertyTypes } from \"../ontology/WirePropertyTypes.js\";\nimport type { IsNever } from \"../OsdkObjectFrom.js\";\nimport type { ArrayFilter } from \"./ArrayFilter.js\";\nimport type { BaseFilter } from \"./BaseFilter.js\";\nimport type { BooleanFilter } from \"./BooleanFilter.js\";\nimport type { DatetimeFilter } from \"./DatetimeFilter.js\";\nimport type { GeoFilter } from \"./GeoFilter.js\";\nimport type { Just } from \"./Just.js\";\nimport type { NumberFilter } from \"./NumberFilter.js\";\nimport type { StringFilter } from \"./StringFilter.js\";\n\nexport type PossibleWhereClauseFilters =\n | \"$gt\"\n | \"$eq\"\n | \"$ne\"\n | \"$isNull\"\n | \"$contains\"\n | \"$gte\"\n | \"$lt\"\n | \"$lte\"\n | \"$within\"\n | \"$in\"\n | \"$intersects\"\n | \"$startsWith\"\n | \"$containsAllTermsInOrder\"\n | \"$containsAnyTerm\"\n | \"$containsAllTerms\"\n | \"$interval\"\n | \"$matchesRegex\";\n\n// the value side of this needs to match DistanceUnit from @osdk/foundry but we don't\n// want the dependency\nexport const DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n} = {\n centimeter: \"CENTIMETERS\",\n centimeters: \"CENTIMETERS\",\n cm: \"CENTIMETERS\",\n meter: \"METERS\",\n meters: \"METERS\",\n m: \"METERS\",\n kilometer: \"KILOMETERS\",\n kilometers: \"KILOMETERS\",\n km: \"KILOMETERS\",\n inch: \"INCHES\",\n inches: \"INCHES\",\n foot: \"FEET\",\n feet: \"FEET\",\n yard: \"YARDS\",\n yards: \"YARDS\",\n mile: \"MILES\",\n miles: \"MILES\",\n nautical_mile: \"NAUTICAL_MILES\",\n nauticalMile: \"NAUTICAL_MILES\",\n \"nautical miles\": \"NAUTICAL_MILES\",\n} satisfies Record<\n string,\n | \"CENTIMETERS\"\n | \"METERS\"\n | \"KILOMETERS\"\n | \"INCHES\"\n | \"FEET\"\n | \"YARDS\"\n | \"MILES\"\n | \"NAUTICAL_MILES\"\n>;\n\nexport type GeoFilter_Within = {\n $within:\n | {\n $distance: [number, keyof typeof DistanceUnitMapping];\n $of: [number, number] | Readonly<Point>;\n $bbox?: never;\n $polygon?: never;\n }\n | {\n $bbox: BBox;\n $distance?: never;\n $of?: never;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n $distance?: never;\n $of?: never;\n }\n | Polygon;\n};\n\nexport type GeoFilter_Intersects = {\n $intersects:\n | {\n $bbox: BBox;\n $polygon?: never;\n }\n | BBox\n | {\n $polygon: Polygon[\"coordinates\"];\n $bbox?: never;\n }\n | Polygon;\n};\n\ntype BaseFilterFor<T> =\n T extends Record<string, BaseWirePropertyTypes>\n ? StructFilterOpts<T>\n : T extends \"string\"\n ? StringFilter\n : T extends \"geopoint\" | \"geoshape\"\n ? GeoFilter\n : T extends \"datetime\" | \"timestamp\"\n ? DatetimeFilter\n : T extends \"boolean\"\n ? BooleanFilter\n : T extends WhereClauseNumberPropertyTypes\n ? NumberFilter\n : BaseFilter<string>; // Fallback for unknown types\n\ntype FilterFor<PD extends ObjectMetadata.Property> =\n PD[\"multiplicity\"] extends true\n ? ArrayFilter<BaseFilterFor<PD[\"type\"]>>\n : PD[\"type\"] extends Record<string, BaseWirePropertyTypes>\n ? StructFilter<PD[\"type\"]> | BaseFilter.$isNull<string>\n : BaseFilterFor<PD[\"type\"]>;\n\ntype StructFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]?: FilterFor<{ type: ST[K] }>;\n};\ntype StructFilter<ST extends Record<string, BaseWirePropertyTypes>> = {\n [K in keyof ST]: Just<K, StructFilterOpts<ST>>;\n}[keyof ST];\n\ntype WhereClauseNumberPropertyTypes =\n | \"double\"\n | \"integer\"\n | \"long\"\n | \"float\"\n | \"decimal\"\n | \"byte\";\n\ntype SpecialPropertyFilter = StringFilter | NumberFilter | DatetimeFilter;\n\ntype PrimaryKeyFilterFor<T extends ObjectOrInterfaceDefinition> =\n CompileTimeMetadata<T> extends { primaryKeyType: infer PKT extends string }\n ? BaseFilterFor<PKT>\n : SpecialPropertyFilter;\n\nexport type SpecialPropertyWhereClause<T extends ObjectOrInterfaceDefinition> =\n {\n $title?: SpecialPropertyFilter;\n $primaryKey?: PrimaryKeyFilterFor<T>;\n };\n\nexport type AndWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $and: WhereClause<T, RDPs>[];\n};\n\nexport type OrWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $or: WhereClause<T, RDPs>[];\n};\n\nexport type NotWhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> = {\n $not: WhereClause<T, RDPs>;\n};\n\nexport type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {\n [P in keyof CompileTimeMetadata<T>[\"properties\"]]?: FilterFor<\n CompileTimeMetadata<T>[\"properties\"][P]\n >;\n};\n\nexport type WhereClause<\n T extends ObjectOrInterfaceDefinition,\n RDPs extends Record<string, SimplePropertyDef> = {},\n> =\n | OrWhereClause<T, RDPs>\n | AndWhereClause<T, RDPs>\n | NotWhereClause<T, RDPs>\n | SpecialPropertyWhereClause<T>\n | (IsNever<keyof CompileTimeMetadata<T>[\"properties\"]> extends true\n ? Record<string, never>\n : PropertyWhereClause<\n DerivedObjectOrInterfaceDefinition.WithDerivedProperties<T, RDPs>\n >);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2CA;AACA;AACA,OAAO,MAAMA,mBAqBZ,GAAG;EACFC,UAAU,EAAE,aAAa;EACzBC,WAAW,EAAE,aAAa;EAC1BC,EAAE,EAAE,aAAa;EACjBC,KAAK,EAAE,QAAQ;EACfC,MAAM,EAAE,QAAQ;EAChBC,CAAC,EAAE,QAAQ;EACXC,SAAS,EAAE,YAAY;EACvBC,UAAU,EAAE,YAAY;EACxBC,EAAE,EAAE,YAAY;EAChBC,IAAI,EAAE,QAAQ;EACdC,MAAM,EAAE,QAAQ;EAChBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE,OAAO;EACdC,aAAa,EAAE,gBAAgB;EAC/BC,YAAY,EAAE,gBAAgB;EAC9B,gBAAgB,EAAE;AACpB,CAUC;;AAqDmC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchPageByRid.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","name","type","version"],"sources":["fetchPageByRid.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n FetchPageArgs,\n NullabilityAdherence,\n} from \"../object/FetchPageArgs.js\";\nimport type { FetchPageResult } from \"../object/FetchPageResult.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype fetchPageByRidFn = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys<Q>,\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n>(\n objectType: Q,\n rids: string[],\n options?: FetchPageArgs
|
|
1
|
+
{"version":3,"file":"fetchPageByRid.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","name","type","version"],"sources":["fetchPageByRid.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n FetchPageArgs,\n NullabilityAdherence,\n} from \"../object/FetchPageArgs.js\";\nimport type { FetchPageResult } from \"../object/FetchPageResult.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { Experiment } from \"./Experiment.js\";\n\ntype fetchPageByRidFn = <\n Q extends ObjectOrInterfaceDefinition,\n const L extends PropertyKeys<Q>,\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n const MODIFIERS extends ApplyModifiersArg<Q> = {},\n const DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined =\n undefined,\n>(\n objectType: Q,\n rids: string[],\n options?: FetchPageArgs<\n Q,\n L,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL\n >,\n) => Promise<\n FetchPageResult<\n Q,\n L,\n R,\n S,\n T,\n {},\n PROPERTY_SECURITIES,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL\n >\n>;\n\nexport type FetchPageByRidPayload = {\n fetchPageByRid: fetchPageByRidFn;\n fetchPageByRidNoType: fetchPageByRidNoTypeFn;\n};\n\ntype fetchPageByRidNoTypeFn = <\n const R extends boolean,\n const S extends NullabilityAdherence,\n const T extends boolean,\n const PROPERTY_SECURITIES extends boolean = false,\n>(\n rids: readonly string[],\n options?: FetchPageArgs<\n ObjectOrInterfaceDefinition,\n any,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES\n >,\n) => Promise<\n FetchPageResult<\n ObjectOrInterfaceDefinition,\n any,\n R,\n S,\n T,\n {},\n PROPERTY_SECURITIES\n >\n>;\n\nexport const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<\n \"2.2.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n FetchPageByRidPayload\n> = {\n name: \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n type: \"experiment\",\n version: \"2.2.0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4FA,OAAO,MAAMA,iDAIZ,GAAG;EACFC,IAAI,EAAE,mDAAmD;EACzDC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchPageArgs.js","names":["NullabilityAdherence","ObjectSetArgs"],"sources":["FetchPageArgs.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"FetchPageArgs.js","names":["NullabilityAdherence","ObjectSetArgs"],"sources":["FetchPageArgs.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\n\nexport type NullabilityAdherence = false | \"throw\" | \"drop\";\nexport namespace NullabilityAdherence {\n export type Default = \"throw\";\n}\n\nexport namespace ObjectSetArgs {\n export interface Select<\n OBJECT_KEYS extends string = never,\n RDP_KEYS extends string = never,\n > {\n $select?: readonly (OBJECT_KEYS | RDP_KEYS)[];\n $includeRid?: boolean;\n }\n\n export type OrderByOptions<L extends string> =\n | {\n [K in L]?: \"asc\" | \"desc\";\n }\n | \"relevance\";\n\n export interface OrderBy<\n ORDER_BY_OPTIONS extends OrderByOptions<L>,\n L extends string = never,\n > {\n $orderBy?: ORDER_BY_OPTIONS;\n }\n\n export interface AsyncIter<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q> = never,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n >\n extends Select<K, RDP_KEYS>, OrderBy<ORDER_BY_OPTIONS, K> {\n $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;\n }\n\n export interface FetchPage<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q> = never,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n > extends AsyncIter<Q, K, T, RDP_KEYS, ORDER_BY_OPTIONS> {\n $nextPageToken?: string;\n $pageSize?: number;\n }\n}\n\nexport interface SelectArg<\n Q extends ObjectOrInterfaceDefinition,\n L extends string = PropertyKeys<Q>,\n R extends boolean = false,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n RDP_KEYS extends string = never,\n PROPERTY_SECURITIES extends boolean = false,\n> {\n $select?: readonly L[];\n $includeRid?: R;\n $loadPropertySecurityMetadata?: PROPERTY_SECURITIES;\n}\n\nexport interface OrderByArg<\n Q extends ObjectOrInterfaceDefinition,\n L extends string = PropertyKeys<Q>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = never,\n> extends ObjectSetArgs.OrderBy<ORDER_BY_OPTIONS, L> {}\n\nexport type SelectArgToKeys<\n Q extends ObjectOrInterfaceDefinition,\n A extends SelectArg<Q, any, any>,\n> =\n A extends SelectArg<Q, never>\n ? PropertyKeys<Q>\n : A[\"$select\"] extends readonly string[]\n ? A[\"$select\"][number]\n : PropertyKeys<Q>;\n\nexport interface FetchPageArgs<\n Q extends ObjectOrInterfaceDefinition,\n K extends string = PropertyKeys<Q>,\n R extends boolean = false,\n A extends Augments = never,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined =\n PropertyModifierValue,\n> extends AsyncIterArgs<\n Q,\n K,\n R,\n A,\n S,\n T,\n RDP_KEYS,\n ORDER_BY_OPTIONS,\n PROPERTY_SECURITIES,\n MODIFIERS\n> {\n $nextPageToken?: string;\n $pageSize?: number;\n $applyModifiers?: ApplyModifiersArg<Q> &\n MODIFIERS & { [P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>]: never };\n /**\n * Best-effort load level applied to every property without listing them:\n * reducers and struct main values where defined, other properties unchanged.\n * A per-property `$applyModifiers` entry wins.\n *\n * @experimental\n */\n $EXPERIMENTAL_defaultLoadLevel?: DEFAULT_LOAD_LEVEL;\n /**\n * Ensures paging consistency by freezing the view at the time of query to prevent duplicate or missing items. Setting $snapshot to false ensures that you will always get the latest results.\n * @default false\n */\n $snapshot?: boolean;\n}\n\nexport interface AsyncIterArgs<\n Q extends ObjectOrInterfaceDefinition,\n K extends string = PropertyKeys<Q>,\n R extends boolean = false,\n A extends Augments = never,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n T extends boolean = false,\n RDP_KEYS extends string = never,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = never,\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n>\n extends\n SelectArg<Q, K, R, S, RDP_KEYS, PROPERTY_SECURITIES>,\n OrderByArg<Q, PropertyKeys<Q> | RDP_KEYS, ORDER_BY_OPTIONS> {\n $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;\n $applyModifiers?: ApplyModifiersArg<Q> &\n MODIFIERS & { [P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>]: never };\n}\n\nexport type Augment<X extends ObjectOrInterfaceDefinition, T extends string> = {\n [K in CompileTimeMetadata<X>[\"apiName\"]]: T[];\n};\n\nexport type Augments = Record<string, string[]>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WA2BiBA,oBAAoB;AAAA,WAIpBC,aAAa","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchPageResult.js","names":[],"sources":["FetchPageResult.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type {\n ExtractOptions,\n IsNever,\n MaybeScore,\n Osdk,\n} from \"../OsdkObjectFrom.js\";\nimport type { PageResult } from \"../PageResult.js\";\nimport type { NullabilityAdherence, ObjectSetArgs } from \"./FetchPageArgs.js\";\n\n/** exposed for a test */\nexport type RespectNullability<S extends NullabilityAdherence> = S extends false\n ? false\n : true;\n\n/** exposed for a test */\nexport type UnionIfFalse<S extends string, JUST_S_IF_TRUE extends boolean, E> =\n IsNever<S> extends true ? never : JUST_S_IF_TRUE extends true ? S : S | E;\n\n/** exposed for a test */\nexport type UnionIfTrue<\n S extends string,\n UNION_IF_TRUE extends boolean,\n E extends string,\n> = IsNever<S> extends true ? never : UNION_IF_TRUE extends true ? S | E : S;\n\ntype ModifiersToSelectStrings<M> = {\n [K in keyof M]: K extends string\n ? M[K] extends PropertyModifierValue\n ? `${K}:${M[K]}`\n : never\n : never;\n}[keyof M];\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type FetchPageResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n R extends boolean,\n S extends NullabilityAdherence,\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n> = PageResult<\n MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T, PROPERTY_SECURITIES>,\n |
|
|
1
|
+
{"version":3,"file":"FetchPageResult.js","names":[],"sources":["FetchPageResult.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"../ontology/ObjectOrInterface.js\";\nimport type {\n ApplyDefaultLoadLevelToKeys,\n ApplyModifiersArg,\n PropertyModifierValue,\n} from \"../ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"../ontology/SimplePropertyDef.js\";\nimport type {\n ExtractOptions,\n IsNever,\n MaybeScore,\n Osdk,\n} from \"../OsdkObjectFrom.js\";\nimport type { PageResult } from \"../PageResult.js\";\nimport type { NullabilityAdherence, ObjectSetArgs } from \"./FetchPageArgs.js\";\n\n/** exposed for a test */\nexport type RespectNullability<S extends NullabilityAdherence> = S extends false\n ? false\n : true;\n\n/** exposed for a test */\nexport type UnionIfFalse<S extends string, JUST_S_IF_TRUE extends boolean, E> =\n IsNever<S> extends true ? never : JUST_S_IF_TRUE extends true ? S : S | E;\n\n/** exposed for a test */\nexport type UnionIfTrue<\n S extends string,\n UNION_IF_TRUE extends boolean,\n E extends string,\n> = IsNever<S> extends true ? never : UNION_IF_TRUE extends true ? S | E : S;\n\ntype ModifiersToSelectStrings<M> = {\n [K in keyof M]: K extends string\n ? M[K] extends PropertyModifierValue\n ? `${K}:${M[K]}`\n : never\n : never;\n}[keyof M];\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type FetchPageResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n R extends boolean,\n S extends NullabilityAdherence,\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n PROPERTY_SECURITIES extends boolean = false,\n MODIFIERS extends ApplyModifiersArg<Q> = {},\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined,\n> = PageResult<\n MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T, PROPERTY_SECURITIES>,\n | SelectedKeysWithDefaultLoadLevel<Q, L, MODIFIERS, DEFAULT_LOAD_LEVEL>\n | ModifiersToSelectStrings<MODIFIERS>,\n {}\n >,\n ORDER_BY_OPTIONS\n >\n>;\n\n/**\n * The selected keys of a fetch, as `prop:modifier` select strings where a\n * default load level applies to them. Keys carrying a per-property\n * `$applyModifiers` entry are dropped here; they come back through\n * `ModifiersToSelectStrings`.\n *\n * Without a default load level this stays `never` when everything is selected,\n * which is how `Osdk.Instance` spells \"all properties\".\n */\ntype SelectedKeysWithDefaultLoadLevel<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q>,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined,\n> = [DEFAULT_LOAD_LEVEL] extends [PropertyModifierValue]\n ? ApplyDefaultLoadLevelToKeys<\n Q,\n Exclude<PropertyKeys<Q> extends L ? PropertyKeys<Q> : L, keyof MODIFIERS>,\n DEFAULT_LOAD_LEVEL\n >\n : Exclude<PropertyKeys<Q> extends L ? never : L, keyof MODIFIERS>;\n\n/**\n * Helper type for converting fetch options into an Osdk object\n */\nexport type SingleOsdkResult<\n Q extends ObjectOrInterfaceDefinition,\n L extends PropertyKeys<Q> | (keyof RDPs & string),\n R extends boolean,\n S extends NullabilityAdherence,\n RDPs extends Record<string, SimplePropertyDef> = {},\n T extends boolean = false,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},\n> = MaybeScore<\n Osdk.Instance<\n Q,\n ExtractOptions<R, S, T>,\n PropertyKeys<Q> extends L ? PropertyKeys<Q> : PropertyKeys<Q> & L,\n { [K in Extract<keyof RDPs, L>]: RDPs[K] }\n >,\n ORDER_BY_OPTIONS\n>;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never]\n ? false\n : true\n : false;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyModifiers.js","names":[],"sources":["PropertyModifiers.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { GetClientPropertyValueFromWire } from \"../mapping/PropertyValueMapping.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"./ObjectTypeDefinition.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\n/** Modifier values users can specify */\nexport type PropertyModifierValue =\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n\nexport type MainValueTypeOf<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\n/**\n * Extract the reduced type from an array property.\n * The reduced type is the element type (non-array).\n */\nexport type ReducedTypeOf<P extends ObjectMetadata.Property> =\n P[\"hasReducers\"] extends true\n ? P[\"type\"] extends WirePropertyTypes\n ? GetClientPropertyValueFromWire<P[\"type\"]>\n : never\n : never;\n\n/** Get keys of properties that have mainValue defined */\nexport type PropsWithMainValue<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n mainValue: { fields: readonly string[] };\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/** Get keys of properties that have reducers defined */\nexport type PropsWithReducers<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n hasReducers: true;\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/**\n * Apply a single modifier to a property type.\n * - \"applyMainValue\" -> returns struct with only main value fields\n * - \"applyReducers\" -> returns single element type (not array)\n * - \"applyReducersAndExtractMainValue\" -> returns single element with only main value fields\n */\nexport type ApplyModifierToProperty<\n P extends ObjectMetadata.Property,\n M extends PropertyModifierValue,\n> = M extends \"applyMainValue\"\n ? MainValueTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducers\"\n ? ReducedTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducersAndExtractMainValue\"\n ? MainValueOfReduced<P> | (P[\"nullable\"] extends true ? undefined : never)\n : never;\n\ntype MainValueOfReduced<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\nexport type PropsWithBoth<Q extends ObjectOrInterfaceDefinition> =\n PropsWithMainValue<Q> & PropsWithReducers<Q>;\n\nexport type PropsWithOnlyMainValue<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithMainValue<Q>, PropsWithReducers<Q>>;\n\nexport type PropsWithOnlyReducers<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithReducers<Q>, PropsWithMainValue<Q>>;\n\nexport type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = {\n [P in PropsWithOnlyMainValue<Q>]?: \"applyMainValue\";\n} & {\n [P in PropsWithOnlyReducers<Q>]?: \"applyReducers\";\n} & {\n [P in PropsWithBoth<Q>]?:\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n};\n\nexport type ApplyModifiersToProps<\n Q extends ObjectOrInterfaceDefinition,\n MODIFIERS extends Record<string, PropertyModifierValue>,\n> = {\n [K in PropertyKeys<Q>]: K extends keyof MODIFIERS\n ? MODIFIERS[K] extends PropertyModifierValue\n ? ApplyModifierToProperty<\n CompileTimeMetadata<Q>[\"properties\"][K],\n MODIFIERS[K]\n >\n : CompileTimeMetadata<Q>[\"props\"][K]\n : CompileTimeMetadata<Q>[\"props\"][K];\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PropertyModifiers.js","names":[],"sources":["PropertyModifiers.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { GetClientPropertyValueFromWire } from \"../mapping/PropertyValueMapping.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n} from \"./ObjectTypeDefinition.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\n/** Modifier values users can specify */\nexport type PropertyModifierValue =\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n\nexport type MainValueTypeOf<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\n/**\n * Extract the reduced type from an array property.\n * The reduced type is the element type (non-array).\n */\nexport type ReducedTypeOf<P extends ObjectMetadata.Property> =\n P[\"hasReducers\"] extends true\n ? P[\"type\"] extends WirePropertyTypes\n ? GetClientPropertyValueFromWire<P[\"type\"]>\n : never\n : never;\n\n/** Get keys of properties that have mainValue defined */\nexport type PropsWithMainValue<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n mainValue: { fields: readonly string[] };\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/** Get keys of properties that have reducers defined */\nexport type PropsWithReducers<Q extends ObjectOrInterfaceDefinition> = {\n [K in PropertyKeys<Q>]: CompileTimeMetadata<Q>[\"properties\"][K] extends {\n hasReducers: true;\n }\n ? K\n : never;\n}[PropertyKeys<Q>];\n\n/**\n * Apply a single modifier to a property type.\n * - \"applyMainValue\" -> returns struct with only main value fields\n * - \"applyReducers\" -> returns single element type (not array)\n * - \"applyReducersAndExtractMainValue\" -> returns single element with only main value fields\n */\nexport type ApplyModifierToProperty<\n P extends ObjectMetadata.Property,\n M extends PropertyModifierValue,\n> = M extends \"applyMainValue\"\n ? MainValueTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducers\"\n ? ReducedTypeOf<P> | (P[\"nullable\"] extends true ? undefined : never)\n : M extends \"applyReducersAndExtractMainValue\"\n ? MainValueOfReduced<P> | (P[\"nullable\"] extends true ? undefined : never)\n : never;\n\ntype MainValueOfReduced<P extends ObjectMetadata.Property> =\n P[\"mainValue\"] extends { fields: readonly [infer Single extends string] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? Single extends keyof P[\"type\"]\n ? GetClientPropertyValueFromWire<P[\"type\"][Single]>\n : never\n : never\n : P[\"mainValue\"] extends { fields: readonly (infer F extends string)[] }\n ? P[\"type\"] extends Record<string, WirePropertyTypes>\n ? {\n [K in F & keyof P[\"type\"]]: GetClientPropertyValueFromWire<\n P[\"type\"][K]\n >;\n }\n : never\n : never;\n\nexport type PropsWithBoth<Q extends ObjectOrInterfaceDefinition> =\n PropsWithMainValue<Q> & PropsWithReducers<Q>;\n\nexport type PropsWithOnlyMainValue<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithMainValue<Q>, PropsWithReducers<Q>>;\n\nexport type PropsWithOnlyReducers<Q extends ObjectOrInterfaceDefinition> =\n Exclude<PropsWithReducers<Q>, PropsWithMainValue<Q>>;\n\nexport type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = {\n [P in PropsWithOnlyMainValue<Q>]?: \"applyMainValue\";\n} & {\n [P in PropsWithOnlyReducers<Q>]?: \"applyReducers\";\n} & {\n [P in PropsWithBoth<Q>]?:\n | \"applyMainValue\"\n | \"applyReducers\"\n | \"applyReducersAndExtractMainValue\";\n};\n\n/**\n * The modifier a default load level resolves to for a single property.\n *\n * A default load level is best-effort: it only applies to properties that\n * actually support it, and `applyReducersAndExtractMainValue` degrades to the\n * half of itself that a property supports. Properties that support neither\n * resolve to `never`.\n */\nexport type ResolveDefaultLoadLevelForProp<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q>,\n D extends PropertyModifierValue,\n> = D extends \"applyMainValue\"\n ? K extends PropsWithMainValue<Q>\n ? \"applyMainValue\"\n : never\n : D extends \"applyReducers\"\n ? K extends PropsWithReducers<Q>\n ? \"applyReducers\"\n : never\n : K extends PropsWithBoth<Q>\n ? \"applyReducersAndExtractMainValue\"\n : K extends PropsWithMainValue<Q>\n ? \"applyMainValue\"\n : K extends PropsWithReducers<Q>\n ? \"applyReducers\"\n : never;\n\n/**\n * Turns a union of property keys into the `prop:modifier` select strings that\n * `Osdk.Instance` understands, given a default load level. Keys the load level\n * does not apply to are passed through unchanged.\n */\nexport type ApplyDefaultLoadLevelToKeys<\n Q extends ObjectOrInterfaceDefinition,\n K extends PropertyKeys<Q>,\n D extends PropertyModifierValue | undefined,\n> = [D] extends [PropertyModifierValue]\n ? K extends unknown\n ? [ResolveDefaultLoadLevelForProp<Q, K, D>] extends [never]\n ? K\n : `${K & string}:${ResolveDefaultLoadLevelForProp<Q, K, D>}`\n : never\n : K;\n\nexport type ApplyModifiersToProps<\n Q extends ObjectOrInterfaceDefinition,\n MODIFIERS extends Record<string, PropertyModifierValue>,\n> = {\n [K in PropertyKeys<Q>]: K extends keyof MODIFIERS\n ? MODIFIERS[K] extends PropertyModifierValue\n ? ApplyModifierToProperty<\n CompileTimeMetadata<Q>[\"properties\"][K],\n MODIFIERS[K]\n >\n : CompileTimeMetadata<Q>[\"props\"][K]\n : CompileTimeMetadata<Q>[\"props\"][K];\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -96,12 +96,8 @@ export type NotWhereClause<
|
|
|
96
96
|
$not: WhereClause<T, RDPs>
|
|
97
97
|
};
|
|
98
98
|
export type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = { [P in keyof CompileTimeMetadata<T>["properties"]]? : FilterFor<CompileTimeMetadata<T>["properties"][P]> };
|
|
99
|
-
type MergedPropertyWhereClause<
|
|
100
|
-
T extends ObjectOrInterfaceDefinition,
|
|
101
|
-
RDPs extends Record<string, SimplePropertyDef> = {}
|
|
102
|
-
> = PropertyWhereClause<DerivedObjectOrInterfaceDefinition.WithDerivedProperties<T, RDPs>> | SpecialPropertyWhereClause<T>;
|
|
103
99
|
export type WhereClause<
|
|
104
100
|
T extends ObjectOrInterfaceDefinition,
|
|
105
101
|
RDPs extends Record<string, SimplePropertyDef> = {}
|
|
106
|
-
> = OrWhereClause<T, RDPs> | AndWhereClause<T, RDPs> | NotWhereClause<T, RDPs> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> :
|
|
102
|
+
> = OrWhereClause<T, RDPs> | AndWhereClause<T, RDPs> | NotWhereClause<T, RDPs> | SpecialPropertyWhereClause<T> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> : PropertyWhereClause<DerivedObjectOrInterfaceDefinition.WithDerivedProperties<T, RDPs>>);
|
|
107
103
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,MAAM,OAAO,eAAe,SAAU;AAEpD,cACE,oCACA,mCACK,kCAAmC;AAC1C,cACE,qBACA,sBACK,qCAAsC;AAC7C,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,6BAA6B,kCAAmC;AAC9E,cAAc,eAAe,sBAAuB;AACpD,cAAc,mBAAmB,kBAAmB;AACpD,cAAc,kBAAkB,iBAAkB;AAClD,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,sBAAsB,qBAAsB;AAC1D,cAAc,iBAAiB,gBAAiB;AAChD,cAAc,YAAY,WAAY;AACtC,cAAc,oBAAoB,mBAAoB;AACtD,cAAc,oBAAoB,mBAAoB;AAEtD,YAAY,6BACR,QACA,QACA,QACA,YACA,cACA,SACA,QACA,SACA,YACA,QACA,gBACA,gBACA,6BACA,qBACA,sBACA,cACA;AAIJ,OAAO,cAAMA,qBAAqB;CAChC,YAAY;CACZ,aAAa;CACb,IAAI;CACJ,OAAO;CACP,QAAQ;CACR,GAAG;CACH,WAAW;CACX,YAAY;CACZ,IAAI;CACJ,MAAM;CACN,QAAQ;CACR,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;CACP,MAAM;CACN,OAAO;CACP,eAAe;CACf,cAAc;CACd,kBAAkB;AACnB;AAiCD,YAAY,mBAAmB;CAC7B,SACI;EACE,iCAAiC;EACjC,wBAAwB,SAAS;EACjC;EACA;CACD,IACD;EACE,OAAO;EACP;EACA;EACA;CACD,IACD,OACA;EACE,UAAU,QAAQ;EAClB;EACA;EACA;CACD,IACD;AACL;AAED,YAAY,uBAAuB;CACjC,aACI;EACE,OAAO;EACP;CACD,IACD,OACA;EACE,UAAU,QAAQ;EAClB;CACD,IACD;AACL;KAEI,cAAc,KACjB,UAAU,eAAe,yBACrB,iBAAiB,KACjB,UAAU,WACR,eACA,UAAU,aAAa,aACrB,YACA,UAAU,aAAa,cACrB,iBACA,UAAU,YACR,gBACA,UAAU,iCACR,eACA;KAEX,UAAU,WAAW,eAAe,YACvC,GAAG,wBAAwB,OACvB,YAAY,cAAc,GAAG,YAC7B,GAAG,gBAAgB,eAAe,yBAChC,aAAa,GAAG,WAAW,WAAW,kBACtC,cAAc,GAAG;KAEpB,iBAAiB,WAAW,eAAe,6BAC7C,WAAW,OAAM,UAAU;CAAE,MAAM,GAAG;AAAI;KAExC,aAAa,WAAW,eAAe,6BACzC,WAAW,MAAK,KAAK,GAAG,iBAAiB,aACpC;KAEH,iCACD,WACA,YACA,SACA,UACA,YACA;KAEC,wBAAwB,eAAe,eAAe;KAEtD,oBAAoB,UAAU,+BACjC,oBAAoB,WAAW;CAAE,sBAAsB;AAAoB,IACvE,cAAc,OACd;AAEN,YAAY,2BAA2B,UAAU,+BAC/C;CACE,SAAS;CACT,cAAc,oBAAoB;AACnC;AAEH,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,MAAM,YAAY,GAAG;AACtB;AAED,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,KAAK,YAAY,GAAG;AACrB;AAED,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,MAAM,YAAY,GAAG;AACtB;AAED,YAAY,oBAAoB,UAAU,kCACvC,WAAW,oBAAoB,GAAG,kBAAiB,UAClD,oBAAoB,GAAG,cAAc;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,MAAM,OAAO,eAAe,SAAU;AAEpD,cACE,oCACA,mCACK,kCAAmC;AAC1C,cACE,qBACA,sBACK,qCAAsC;AAC7C,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,6BAA6B,kCAAmC;AAC9E,cAAc,eAAe,sBAAuB;AACpD,cAAc,mBAAmB,kBAAmB;AACpD,cAAc,kBAAkB,iBAAkB;AAClD,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,sBAAsB,qBAAsB;AAC1D,cAAc,iBAAiB,gBAAiB;AAChD,cAAc,YAAY,WAAY;AACtC,cAAc,oBAAoB,mBAAoB;AACtD,cAAc,oBAAoB,mBAAoB;AAEtD,YAAY,6BACR,QACA,QACA,QACA,YACA,cACA,SACA,QACA,SACA,YACA,QACA,gBACA,gBACA,6BACA,qBACA,sBACA,cACA;AAIJ,OAAO,cAAMA,qBAAqB;CAChC,YAAY;CACZ,aAAa;CACb,IAAI;CACJ,OAAO;CACP,QAAQ;CACR,GAAG;CACH,WAAW;CACX,YAAY;CACZ,IAAI;CACJ,MAAM;CACN,QAAQ;CACR,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;CACP,MAAM;CACN,OAAO;CACP,eAAe;CACf,cAAc;CACd,kBAAkB;AACnB;AAiCD,YAAY,mBAAmB;CAC7B,SACI;EACE,iCAAiC;EACjC,wBAAwB,SAAS;EACjC;EACA;CACD,IACD;EACE,OAAO;EACP;EACA;EACA;CACD,IACD,OACA;EACE,UAAU,QAAQ;EAClB;EACA;EACA;CACD,IACD;AACL;AAED,YAAY,uBAAuB;CACjC,aACI;EACE,OAAO;EACP;CACD,IACD,OACA;EACE,UAAU,QAAQ;EAClB;CACD,IACD;AACL;KAEI,cAAc,KACjB,UAAU,eAAe,yBACrB,iBAAiB,KACjB,UAAU,WACR,eACA,UAAU,aAAa,aACrB,YACA,UAAU,aAAa,cACrB,iBACA,UAAU,YACR,gBACA,UAAU,iCACR,eACA;KAEX,UAAU,WAAW,eAAe,YACvC,GAAG,wBAAwB,OACvB,YAAY,cAAc,GAAG,YAC7B,GAAG,gBAAgB,eAAe,yBAChC,aAAa,GAAG,WAAW,WAAW,kBACtC,cAAc,GAAG;KAEpB,iBAAiB,WAAW,eAAe,6BAC7C,WAAW,OAAM,UAAU;CAAE,MAAM,GAAG;AAAI;KAExC,aAAa,WAAW,eAAe,6BACzC,WAAW,MAAK,KAAK,GAAG,iBAAiB,aACpC;KAEH,iCACD,WACA,YACA,SACA,UACA,YACA;KAEC,wBAAwB,eAAe,eAAe;KAEtD,oBAAoB,UAAU,+BACjC,oBAAoB,WAAW;CAAE,sBAAsB;AAAoB,IACvE,cAAc,OACd;AAEN,YAAY,2BAA2B,UAAU,+BAC/C;CACE,SAAS;CACT,cAAc,oBAAoB;AACnC;AAEH,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,MAAM,YAAY,GAAG;AACtB;AAED,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,KAAK,YAAY,GAAG;AACrB;AAED,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IACjD;CACF,MAAM,YAAY,GAAG;AACtB;AAED,YAAY,oBAAoB,UAAU,kCACvC,WAAW,oBAAoB,GAAG,kBAAiB,UAClD,oBAAoB,GAAG,cAAc;AAIzC,YAAY;CACV,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;IAEjD,cAAc,GAAG,QACjB,eAAe,GAAG,QAClB,eAAe,GAAG,QAClB,2BAA2B,MAC1B,cAAc,oBAAoB,GAAG,uBAAuB,OACzD,wBACA,oBACE,mCAAmC,sBAAsB,GAAG","names":["DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n}"],"sources":["../../../src/aggregate/WhereClause.ts"],"version":3,"file":"WhereClause.d.ts"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FetchPageArgs, NullabilityAdherence } from "../object/FetchPageArgs.js";
|
|
2
2
|
import type { FetchPageResult } from "../object/FetchPageResult.js";
|
|
3
3
|
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
4
|
+
import type { ApplyModifiersArg, PropertyModifierValue } from "../ontology/PropertyModifiers.js";
|
|
4
5
|
import type { Experiment } from "./Experiment.js";
|
|
5
6
|
type fetchPageByRidFn = <
|
|
6
7
|
Q extends ObjectOrInterfaceDefinition,
|
|
@@ -8,8 +9,10 @@ type fetchPageByRidFn = <
|
|
|
8
9
|
const R extends boolean,
|
|
9
10
|
const S extends NullabilityAdherence,
|
|
10
11
|
const T extends boolean,
|
|
11
|
-
const PROPERTY_SECURITIES extends boolean = false
|
|
12
|
-
|
|
12
|
+
const PROPERTY_SECURITIES extends boolean = false,
|
|
13
|
+
const MODIFIERS extends ApplyModifiersArg<Q> = {},
|
|
14
|
+
const DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined
|
|
15
|
+
>(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S, T, never, {}, PROPERTY_SECURITIES, MODIFIERS, DEFAULT_LOAD_LEVEL>) => Promise<FetchPageResult<Q, L, R, S, T, {}, PROPERTY_SECURITIES, MODIFIERS, DEFAULT_LOAD_LEVEL>>;
|
|
13
16
|
export type FetchPageByRidPayload = {
|
|
14
17
|
fetchPageByRid: fetchPageByRidFn
|
|
15
18
|
fetchPageByRidNoType: fetchPageByRidNoTypeFn
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,eACA,4BACK,4BAA6B;AACpC,cAAc,uBAAuB,8BAA+B;AACpE,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;KAE7C;CACH,UAAU;OACJ,UAAU,aAAa;OACvB;OACA,UAAU;OACV;OACA,sCAAsC;
|
|
1
|
+
{"mappings":"AAgBA,cACE,eACA,4BACK,4BAA6B;AACpC,cAAc,uBAAuB,8BAA+B;AACpE,cACE,6BACA,oBACK,kCAAmC;AAC1C,cACE,mBACA,6BACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;KAE7C;CACH,UAAU;OACJ,UAAU,aAAa;OACvB;OACA,UAAU;OACV;OACA,sCAAsC;OACtC,kBAAkB,kBAAkB,KAAK,CAAE;OAC3C,2BAA2B;EAGjCA,YAAY,GACZC,gBACAC,UAAU,cACR,GACA,GACA,QAEA,GACA,UAEA,CAAE,GACF,qBACA,WACA,wBAEC,QACH,gBACE,GACA,GACA,GACA,GACA,GACA,CAAE,GACF,qBACA,WACA;AAIJ,YAAY,wBAAwB;CAClC,gBAAgB;CAChB,sBAAsB;AACvB;KAEI;OACG;OACA,UAAU;OACV;OACA,sCAAsC;EAE5CC,yBACAC,UAAU,cACR,kCAEA,QAEA,GACA,UAEA,CAAE,GACF,yBAEC,QACH,gBACE,kCAEA,GACA,GACA,GACA,CAAE,GACF;AAIJ,OAAO,cAAMC,mDAAmD,WAC9D,SACA,qDACA","names":["objectType: Q","rids: string[]","options?: FetchPageArgs<\n Q,\n L,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES,\n MODIFIERS,\n DEFAULT_LOAD_LEVEL\n >","rids: readonly string[]","options?: FetchPageArgs<\n ObjectOrInterfaceDefinition,\n any,\n R,\n any,\n S,\n T,\n never,\n {},\n PROPERTY_SECURITIES\n >","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<\n \"2.2.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n FetchPageByRidPayload\n>"],"sources":["../../../src/experimental/fetchPageByRid.ts"],"version":3,"file":"fetchPageByRid.d.ts"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
2
2
|
import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
|
|
3
|
-
import type { ApplyModifiersArg } from "../ontology/PropertyModifiers.js";
|
|
3
|
+
import type { ApplyModifiersArg, PropertyModifierValue } from "../ontology/PropertyModifiers.js";
|
|
4
4
|
export type NullabilityAdherence = false | "throw" | "drop";
|
|
5
5
|
export declare namespace NullabilityAdherence {
|
|
6
6
|
type Default = "throw";
|
|
@@ -71,12 +71,21 @@ export interface FetchPageArgs<
|
|
|
71
71
|
RDP_KEYS extends string = never,
|
|
72
72
|
ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<K> = {},
|
|
73
73
|
PROPERTY_SECURITIES extends boolean = false,
|
|
74
|
-
MODIFIERS extends ApplyModifiersArg<Q> = {}
|
|
74
|
+
MODIFIERS extends ApplyModifiersArg<Q> = {},
|
|
75
|
+
DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = PropertyModifierValue
|
|
75
76
|
> extends AsyncIterArgs<Q, K, R, A, S, T, RDP_KEYS, ORDER_BY_OPTIONS, PROPERTY_SECURITIES, MODIFIERS> {
|
|
76
77
|
$nextPageToken?: string;
|
|
77
78
|
$pageSize?: number;
|
|
78
79
|
$applyModifiers?: ApplyModifiersArg<Q> & MODIFIERS & { [P in Exclude<keyof MODIFIERS, PropertyKeys<Q>>] : never };
|
|
79
80
|
/**
|
|
81
|
+
* Best-effort load level applied to every property without listing them:
|
|
82
|
+
* reducers and struct main values where defined, other properties unchanged.
|
|
83
|
+
* A per-property `$applyModifiers` entry wins.
|
|
84
|
+
*
|
|
85
|
+
* @experimental
|
|
86
|
+
*/
|
|
87
|
+
$EXPERIMENTAL_defaultLoadLevel?: DEFAULT_LOAD_LEVEL;
|
|
88
|
+
/**
|
|
80
89
|
* Ensures paging consistency by freezing the view at the time of query to prevent duplicate or missing items. Setting $snapshot to false ensures that you will always get the latest results.
|
|
81
90
|
* @default false
|
|
82
91
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAC/E,
|
|
1
|
+
{"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAC/E,cACE,mBACA,6BACK,kCAAmC;AAE1C,YAAY,uBAAuB,QAAQ,UAAU;AACrD,yBAAiB;MACH,UAAU;;AAGxB,yBAAiB;WACE;EACf;EACA;GACA;EACA,oBAAoB,cAAc;EAClC;CACD;MAEW,eAAe,uBAEpB,KAAK,MAAK,QAAQ,WAErB;WAEa;EACf,yBAAyB,eAAe;EACxC;GACA;EACA,WAAW;CACZ;WAEgB;EACf,UAAU;EACV,UAAU,aAAa;EACvB,oBAAoB;EACpB;EACA,yBAAyB,cAAc,eAAe;WAE9C,OAAO,GAAG,WAAW,QAAQ,kBAAkB,GAAG;EAC1D,kCAAkC,aAAa,WAAW,IAAI;CAC/D;WAEgB;EACf,UAAU;EACV,UAAU,aAAa;EACvB,oBAAoB;EACpB;EACA,yBAAyB,cAAc,eAAe;WAC9C,UAAU,GAAG,GAAG,GAAG,UAAU,kBAAkB;EACvD;EACA;CACD;;AAGH,iBAAiB;CACf,UAAU;CACV,mBAAmB,aAAa;CAChC,oBAAoB;CACpB,UAAU,uBAAuB,qBAAqB;CACtD;CACA,sCAAsC;EACtC;CACA,mBAAmB;CACnB,cAAc;CACd,gCAAgC;AACjC;AAED,iBAAiB;CACf,UAAU;CACV,mBAAmB,aAAa;CAChC,yBAAyB,cAAc,eAAe;UAC9C,cAAc,QAAQ,kBAAkB,GAAG,CAAE;AAEvD,YAAY;CACV,UAAU;CACV,UAAU,UAAU;IAEpB,UAAU,UAAU,YAChB,aAAa,KACb,EAAE,uCACA,EAAE,qBACF,aAAa;AAErB,iBAAiB;CACf,UAAU;CACV,mBAAmB,aAAa;CAChC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;CACpB;CACA,yBAAyB,cAAc,eAAe,KAAK,CAAE;CAC7D,sCAAsC;CACtC,kBAAkB,kBAAkB,KAAK,CAAE;CAC3C,2BAA2B,oCACzB;UACM,cACR,GACA,GACA,GACA,GACA,GACA,GACA,UACA,kBACA,qBACA,WACA;CACA;CACA;CACA,kBAAkB,kBAAkB,KAClC,eAAe,KAAK,cAAc,WAAW,aAAa;;;;;;;;CAQ5D,iCAAiC;;;;;CAKjC;AACD;AAED,iBAAiB;CACf,UAAU;CACV,mBAAmB,aAAa;CAChC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;CACpB;CACA,yBAAyB,cAAc,eAAe;CACtD,sCAAsC;CACtC,kBAAkB,kBAAkB,KAAK,CAAE;UAGzC,UAAU,GAAG,GAAG,GAAG,GAAG,UAAU,sBAChC,WAAW,GAAG,aAAa,KAAK,UAAU,kBAAkB;CAC9D,kCAAkC,aAAa,WAAW,IAAI;CAC9D,kBAAkB,kBAAkB,KAClC,eAAe,KAAK,cAAc,WAAW,aAAa;AAC7D;AAED,YAAY;CAAQ,UAAU;CAA6B;OACxD,KAAK,oBAAoB,GAAG,cAAa;AAG5C,YAAY,WAAW","names":[],"sources":["../../../src/object/FetchPageArgs.ts"],"version":3,"file":"FetchPageArgs.d.ts"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
2
|
-
import type { ApplyModifiersArg, PropertyModifierValue } from "../ontology/PropertyModifiers.js";
|
|
2
|
+
import type { ApplyDefaultLoadLevelToKeys, ApplyModifiersArg, PropertyModifierValue } from "../ontology/PropertyModifiers.js";
|
|
3
3
|
import type { SimplePropertyDef } from "../ontology/SimplePropertyDef.js";
|
|
4
4
|
import type { ExtractOptions, IsNever, MaybeScore, Osdk } from "../OsdkObjectFrom.js";
|
|
5
5
|
import type { PageResult } from "../PageResult.js";
|
|
@@ -30,8 +30,24 @@ export type FetchPageResult<
|
|
|
30
30
|
T extends boolean = false,
|
|
31
31
|
ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<L> = {},
|
|
32
32
|
PROPERTY_SECURITIES extends boolean = false,
|
|
33
|
-
MODIFIERS extends ApplyModifiersArg<Q> = {}
|
|
34
|
-
|
|
33
|
+
MODIFIERS extends ApplyModifiersArg<Q> = {},
|
|
34
|
+
DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined = undefined
|
|
35
|
+
> = PageResult<MaybeScore<Osdk.Instance<Q, ExtractOptions<R, S, T, PROPERTY_SECURITIES>, SelectedKeysWithDefaultLoadLevel<Q, L, MODIFIERS, DEFAULT_LOAD_LEVEL> | ModifiersToSelectStrings<MODIFIERS>, {}>, ORDER_BY_OPTIONS>>;
|
|
36
|
+
/**
|
|
37
|
+
* The selected keys of a fetch, as `prop:modifier` select strings where a
|
|
38
|
+
* default load level applies to them. Keys carrying a per-property
|
|
39
|
+
* `$applyModifiers` entry are dropped here; they come back through
|
|
40
|
+
* `ModifiersToSelectStrings`.
|
|
41
|
+
*
|
|
42
|
+
* Without a default load level this stays `never` when everything is selected,
|
|
43
|
+
* which is how `Osdk.Instance` spells "all properties".
|
|
44
|
+
*/
|
|
45
|
+
type SelectedKeysWithDefaultLoadLevel<
|
|
46
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
47
|
+
L extends PropertyKeys<Q>,
|
|
48
|
+
MODIFIERS,
|
|
49
|
+
DEFAULT_LOAD_LEVEL extends PropertyModifierValue | undefined
|
|
50
|
+
> = [DEFAULT_LOAD_LEVEL] extends [PropertyModifierValue] ? ApplyDefaultLoadLevelToKeys<Q, Exclude<PropertyKeys<Q> extends L ? PropertyKeys<Q> : L, keyof MODIFIERS>, DEFAULT_LOAD_LEVEL> : Exclude<PropertyKeys<Q> extends L ? never : L, keyof MODIFIERS>;
|
|
35
51
|
/**
|
|
36
52
|
* Helper type for converting fetch options into an Osdk object
|
|
37
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cACE,mBACA,6BACK,kCAAmC;AAC1C,cAAc,yBAAyB,kCAAmC;AAC1E,cACE,gBACA,SACA,YACA,YACK,sBAAuB;AAC9B,cAAc,kBAAkB,kBAAmB;AACnD,cAAc,sBAAsB,qBAAqB,oBAAqB;;AAG9E,YAAY,mBAAmB,UAAU,wBAAwB,UAAU,QACvE,QACA;;AAGJ,YAAY;CAAa;CAAkB;CAAgC;IACzE,QAAQ,WAAW,eAAe,uBAAuB,OAAO,IAAI,IAAI;;AAG1E,YAAY;CACV;CACA;CACA;IACE,QAAQ,WAAW,eAAe,sBAAsB,OAAO,IAAI,IAAI;KAEtE,yBAAyB,QAC3B,WAAW,KAAI,mBACZ,EAAE,WAAW,2BACR,KAAK,EAAE,6BAGV;;;;AAKR,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB;CACA,UAAU;CACV,oBAAoB;CACpB,yBAAyB,cAAc,eAAe,KAAK,CAAE;CAC7D,sCAAsC;CACtC,kBAAkB,kBAAkB,KAAK,CAAE;
|
|
1
|
+
{"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cACE,6BACA,mBACA,6BACK,kCAAmC;AAC1C,cAAc,yBAAyB,kCAAmC;AAC1E,cACE,gBACA,SACA,YACA,YACK,sBAAuB;AAC9B,cAAc,kBAAkB,kBAAmB;AACnD,cAAc,sBAAsB,qBAAqB,oBAAqB;;AAG9E,YAAY,mBAAmB,UAAU,wBAAwB,UAAU,QACvE,QACA;;AAGJ,YAAY;CAAa;CAAkB;CAAgC;IACzE,QAAQ,WAAW,eAAe,uBAAuB,OAAO,IAAI,IAAI;;AAG1E,YAAY;CACV;CACA;CACA;IACE,QAAQ,WAAW,eAAe,sBAAsB,OAAO,IAAI,IAAI;KAEtE,yBAAyB,QAC3B,WAAW,KAAI,mBACZ,EAAE,WAAW,2BACR,KAAK,EAAE,6BAGV;;;;AAKR,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB;CACA,UAAU;CACV,oBAAoB;CACpB,yBAAyB,cAAc,eAAe,KAAK,CAAE;CAC7D,sCAAsC;CACtC,kBAAkB,kBAAkB,KAAK,CAAE;CAC3C,2BAA2B;IACzB,WACF,WACE,KAAK,SACH,GACA,eAAe,GAAG,GAAG,GAAG,sBACtB,iCAAiC,GAAG,GAAG,WAAW,sBAClD,yBAAyB,YAC3B,CAAE,IAEJ;;;;;;;;;;KAaC;CACH,UAAU;CACV,UAAU,aAAa;CACvB;CACA,2BAA2B;KACxB,6BAA6B,yBAC9B,4BACE,GACA,QAAQ,aAAa,WAAW,IAAI,aAAa,KAAK,SAAS,YAC/D,sBAEF,QAAQ,aAAa,WAAW,YAAY,SAAS;;;;AAKzD,YAAY;CACV,UAAU;CACV,UAAU,aAAa,YAAY;CACnC;CACA,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;CACnD,oBAAoB;CACpB,yBAAyB,cAAc,eAAe,KAAK,CAAE;IAC3D,WACF,KAAK,SACH,GACA,eAAe,GAAG,GAAG,IACrB,aAAa,WAAW,IAAI,aAAa,KAAK,aAAa,KAAK,MAC7D,KAAK,cAAc,MAAM,MAAK,KAAK,OAExC;AAGF,YAAY,MAAM,qBAAqB,WAC5B,qBACL,QACA,OACF","names":[],"sources":["../../../src/object/FetchPageResult.ts"],"version":3,"file":"FetchPageResult.d.ts"}
|
|
@@ -43,6 +43,29 @@ export type PropsWithBoth<Q extends ObjectOrInterfaceDefinition> = PropsWithMain
|
|
|
43
43
|
export type PropsWithOnlyMainValue<Q extends ObjectOrInterfaceDefinition> = Exclude<PropsWithMainValue<Q>, PropsWithReducers<Q>>;
|
|
44
44
|
export type PropsWithOnlyReducers<Q extends ObjectOrInterfaceDefinition> = Exclude<PropsWithReducers<Q>, PropsWithMainValue<Q>>;
|
|
45
45
|
export type ApplyModifiersArg<Q extends ObjectOrInterfaceDefinition> = { [P in PropsWithOnlyMainValue<Q>]? : "applyMainValue" } & { [P in PropsWithOnlyReducers<Q>]? : "applyReducers" } & { [P in PropsWithBoth<Q>]? : "applyMainValue" | "applyReducers" | "applyReducersAndExtractMainValue" };
|
|
46
|
+
/**
|
|
47
|
+
* The modifier a default load level resolves to for a single property.
|
|
48
|
+
*
|
|
49
|
+
* A default load level is best-effort: it only applies to properties that
|
|
50
|
+
* actually support it, and `applyReducersAndExtractMainValue` degrades to the
|
|
51
|
+
* half of itself that a property supports. Properties that support neither
|
|
52
|
+
* resolve to `never`.
|
|
53
|
+
*/
|
|
54
|
+
export type ResolveDefaultLoadLevelForProp<
|
|
55
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
56
|
+
K extends PropertyKeys<Q>,
|
|
57
|
+
D extends PropertyModifierValue
|
|
58
|
+
> = D extends "applyMainValue" ? K extends PropsWithMainValue<Q> ? "applyMainValue" : never : D extends "applyReducers" ? K extends PropsWithReducers<Q> ? "applyReducers" : never : K extends PropsWithBoth<Q> ? "applyReducersAndExtractMainValue" : K extends PropsWithMainValue<Q> ? "applyMainValue" : K extends PropsWithReducers<Q> ? "applyReducers" : never;
|
|
59
|
+
/**
|
|
60
|
+
* Turns a union of property keys into the `prop:modifier` select strings that
|
|
61
|
+
* `Osdk.Instance` understands, given a default load level. Keys the load level
|
|
62
|
+
* does not apply to are passed through unchanged.
|
|
63
|
+
*/
|
|
64
|
+
export type ApplyDefaultLoadLevelToKeys<
|
|
65
|
+
Q extends ObjectOrInterfaceDefinition,
|
|
66
|
+
K extends PropertyKeys<Q>,
|
|
67
|
+
D extends PropertyModifierValue | undefined
|
|
68
|
+
> = [D] extends [PropertyModifierValue] ? K extends unknown ? [ResolveDefaultLoadLevelForProp<Q, K, D>] extends [never] ? K : `${K & string}:${ResolveDefaultLoadLevelForProp<Q, K, D>}` : never : K;
|
|
46
69
|
export type ApplyModifiersToProps<
|
|
47
70
|
Q extends ObjectOrInterfaceDefinition,
|
|
48
71
|
MODIFIERS extends Record<string, PropertyModifierValue>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,sCAAsC,oCAAqC;AACzF,cACE,6BACA,oBACK,wBAAyB;AAChC,cACE,qBACA,sBACK,2BAA4B;AACnC,cAAc,yBAAyB,wBAAyB;;AAGhE,YAAY,wBACR,mBACA,kBACA;AAEJ,YAAY,gBAAgB,UAAU,eAAe,YACnD,EAAE,qBAAqB;CAAE,wBAAwB;AAAwB,IACrE,EAAE,gBAAgB,eAAe,qBAC/B,qBAAqB,EAAE,UACrB,+BAA+B,EAAE,QAAQ,2BAG7C,EAAE,qBAAqB;CAAE,wBAAwB;AAAqB,IACpE,EAAE,gBAAgB,eAAe,wBAE5B,KAAK,UAAU,EAAE,WAAU,+BAC1B,EAAE,QAAQ;;;;;AAUxB,YAAY,cAAc,UAAU,eAAe,YACjD,EAAE,uBAAuB,OACrB,EAAE,gBAAgB,oBAChB,+BAA+B,EAAE;;AAKzC,YAAY,mBAAmB,UAAU,kCACtC,KAAK,aAAa,MAAK,oBAAoB,GAAG,cAAc,WAAW;CACtE,WAAW;EAAE;CAA2B;AACzC,IACG,YAEJ,aAAa;;AAGf,YAAY,kBAAkB,UAAU,kCACrC,KAAK,aAAa,MAAK,oBAAoB,GAAG,cAAc,WAAW;CACtE,aAAa;AACd,IACG,YAEJ,aAAa;;;;;;;AAQf,YAAY;CACV,UAAU,eAAe;CACzB,UAAU;IACR,UAAU,mBACV,gBAAgB,MAAM,EAAE,oBAAoB,4BAC5C,UAAU,kBACR,cAAc,MAAM,EAAE,oBAAoB,4BAC1C,UAAU,qCACR,mBAAmB,MAAM,EAAE,oBAAoB;KAGlD,mBAAmB,UAAU,eAAe,YAC/C,EAAE,qBAAqB;CAAE,wBAAwB;AAAwB,IACrE,EAAE,gBAAgB,eAAe,qBAC/B,qBAAqB,EAAE,UACrB,+BAA+B,EAAE,QAAQ,2BAG7C,EAAE,qBAAqB;CAAE,wBAAwB;AAAqB,IACpE,EAAE,gBAAgB,eAAe,wBAE5B,KAAK,UAAU,EAAE,WAAU,+BAC1B,EAAE,QAAQ;AAMxB,YAAY,cAAc,UAAU,+BAClC,mBAAmB,KAAK,kBAAkB;AAE5C,YAAY,uBAAuB,UAAU,+BAC3C,QAAQ,mBAAmB,IAAI,kBAAkB;AAEnD,YAAY,sBAAsB,UAAU,+BAC1C,QAAQ,kBAAkB,IAAI,mBAAmB;AAEnD,YAAY,kBAAkB,UAAU,kCACrC,KAAK,uBAAuB,OAAM,wBAElC,KAAK,sBAAsB,OAAM,uBAEjC,KAAK,cAAc,OAChB,mBACA,kBACA;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,sCAAsC,oCAAqC;AACzF,cACE,6BACA,oBACK,wBAAyB;AAChC,cACE,qBACA,sBACK,2BAA4B;AACnC,cAAc,yBAAyB,wBAAyB;;AAGhE,YAAY,wBACR,mBACA,kBACA;AAEJ,YAAY,gBAAgB,UAAU,eAAe,YACnD,EAAE,qBAAqB;CAAE,wBAAwB;AAAwB,IACrE,EAAE,gBAAgB,eAAe,qBAC/B,qBAAqB,EAAE,UACrB,+BAA+B,EAAE,QAAQ,2BAG7C,EAAE,qBAAqB;CAAE,wBAAwB;AAAqB,IACpE,EAAE,gBAAgB,eAAe,wBAE5B,KAAK,UAAU,EAAE,WAAU,+BAC1B,EAAE,QAAQ;;;;;AAUxB,YAAY,cAAc,UAAU,eAAe,YACjD,EAAE,uBAAuB,OACrB,EAAE,gBAAgB,oBAChB,+BAA+B,EAAE;;AAKzC,YAAY,mBAAmB,UAAU,kCACtC,KAAK,aAAa,MAAK,oBAAoB,GAAG,cAAc,WAAW;CACtE,WAAW;EAAE;CAA2B;AACzC,IACG,YAEJ,aAAa;;AAGf,YAAY,kBAAkB,UAAU,kCACrC,KAAK,aAAa,MAAK,oBAAoB,GAAG,cAAc,WAAW;CACtE,aAAa;AACd,IACG,YAEJ,aAAa;;;;;;;AAQf,YAAY;CACV,UAAU,eAAe;CACzB,UAAU;IACR,UAAU,mBACV,gBAAgB,MAAM,EAAE,oBAAoB,4BAC5C,UAAU,kBACR,cAAc,MAAM,EAAE,oBAAoB,4BAC1C,UAAU,qCACR,mBAAmB,MAAM,EAAE,oBAAoB;KAGlD,mBAAmB,UAAU,eAAe,YAC/C,EAAE,qBAAqB;CAAE,wBAAwB;AAAwB,IACrE,EAAE,gBAAgB,eAAe,qBAC/B,qBAAqB,EAAE,UACrB,+BAA+B,EAAE,QAAQ,2BAG7C,EAAE,qBAAqB;CAAE,wBAAwB;AAAqB,IACpE,EAAE,gBAAgB,eAAe,wBAE5B,KAAK,UAAU,EAAE,WAAU,+BAC1B,EAAE,QAAQ;AAMxB,YAAY,cAAc,UAAU,+BAClC,mBAAmB,KAAK,kBAAkB;AAE5C,YAAY,uBAAuB,UAAU,+BAC3C,QAAQ,mBAAmB,IAAI,kBAAkB;AAEnD,YAAY,sBAAsB,UAAU,+BAC1C,QAAQ,kBAAkB,IAAI,mBAAmB;AAEnD,YAAY,kBAAkB,UAAU,kCACrC,KAAK,uBAAuB,OAAM,wBAElC,KAAK,sBAAsB,OAAM,uBAEjC,KAAK,cAAc,OAChB,mBACA,kBACA;;;;;;;;;AAWN,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB,UAAU;IACR,UAAU,mBACV,UAAU,mBAAmB,KAC3B,2BAEF,UAAU,kBACR,UAAU,kBAAkB,KAC1B,0BAEF,UAAU,cAAc,KACtB,qCACA,UAAU,mBAAmB,KAC3B,mBACA,UAAU,kBAAkB,KAC1B;;;;;;AAQZ,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB,UAAU;KACP,YAAY,yBACb,qBACG,+BAA+B,GAAG,GAAG,sBACpC,OACG,cAAc,+BAA+B,GAAG,GAAG,eAE1D;AAEJ,YAAY;CACV,UAAU;CACV,kBAAkB,eAAe;OAEhC,KAAK,aAAa,MAAK,gBAAgB,YACpC,UAAU,WAAW,wBACnB,wBACE,oBAAoB,GAAG,cAAc,IACrC,UAAU,MAEZ,oBAAoB,GAAG,SAAS,KAClC,oBAAoB,GAAG,SAAS","names":[],"sources":["../../../src/ontology/PropertyModifiers.ts"],"version":3,"file":"PropertyModifiers.d.ts"}
|