@osdk/api 2.39.0 → 2.39.1-main-010b12661f90af7da692db4ee09ea6b0dcdce3c6

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/browser/OsdkObjectFrom.js +4 -0
  3. package/build/browser/OsdkObjectFrom.js.map +1 -1
  4. package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
  5. package/build/browser/test/EmployeeApiTest.js.map +1 -1
  6. package/build/browser/test/FooInterfaceApiTest.js.map +1 -1
  7. package/build/browser/test/ReducerInterfaceApiTest.js +22 -0
  8. package/build/browser/test/ReducerInterfaceApiTest.js.map +1 -0
  9. package/build/cjs/{ObjectSet-KCDcM_Ik.d.cts → ObjectSet-qWwFZfVK.d.cts} +37 -2
  10. package/build/cjs/{QueryDefinition-DSek4rOt.d.cts → QueryDefinition-CcychsK9.d.cts} +1 -1
  11. package/build/cjs/index.d.cts +4 -4
  12. package/build/cjs/public/shapes-internal.d.cts +2 -2
  13. package/build/cjs/public/unstable.d.cts +5 -5
  14. package/build/cjs/{shapes-internal-r4gKpy2_.d.cts → shapes-internal-Dm_E5o5q.d.cts} +1 -1
  15. package/build/esm/OsdkObjectFrom.js +4 -0
  16. package/build/esm/OsdkObjectFrom.js.map +1 -1
  17. package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
  18. package/build/esm/test/EmployeeApiTest.js.map +1 -1
  19. package/build/esm/test/FooInterfaceApiTest.js.map +1 -1
  20. package/build/esm/test/ReducerInterfaceApiTest.js +22 -0
  21. package/build/esm/test/ReducerInterfaceApiTest.js.map +1 -0
  22. package/build/types/OsdkObjectFrom.d.ts +14 -3
  23. package/build/types/OsdkObjectFrom.d.ts.map +1 -1
  24. package/build/types/ontology/ObjectTypeDefinition.d.ts +26 -0
  25. package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -1
  26. package/build/types/test/EmployeeApiTest.d.ts +41 -1
  27. package/build/types/test/EmployeeApiTest.d.ts.map +1 -1
  28. package/build/types/test/FooInterfaceApiTest.d.ts +6 -1
  29. package/build/types/test/FooInterfaceApiTest.d.ts.map +1 -1
  30. package/build/types/test/ReducerInterfaceApiTest.d.ts +54 -0
  31. package/build/types/test/ReducerInterfaceApiTest.d.ts.map +1 -0
  32. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.39.1-main-010b12661f90af7da692db4ee09ea6b0dcdce3c6
4
+
5
+ ### Patch Changes
6
+
7
+ - 3e915ee: Array Reducers and Struct Main Value support
8
+
3
9
  ## 2.39.0
4
10
 
5
11
  ## 2.38.0
@@ -13,6 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ /**
17
+ * True iff the OT `TO` implements interface `FROM` with at least one
18
+ * non-`localProperty` implementation.
19
+ */
16
20
  /**
17
21
  * Older version of this helper that allows for `$rid` and co in
18
22
  * the properties field.
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.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 {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type {\n NullabilityAdherence,\n ObjectSetArgs,\n} from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { PropertySecurity } from \"./object/PropertySecurity.js\";\nimport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersToProps,\n PropertyModifierValue,\n PropsWithBoth,\n PropsWithOnlyMainValue,\n PropsWithOnlyReducers,\n} from \"./ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = \"$allBaseProperties\" extends OPTIONS\n ? PropertyKeys<FROM> extends P ? PropertyKeys<TO>\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>]\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\ntype NamespaceOf<S extends string> = S extends `${infer Before}.${infer After}`\n ? After extends `${string}.${string}` ? `${Before}.${NamespaceOf<After>}`\n : Before\n : never;\n\ntype MaybeStripNamespaces<S extends string, TO extends InterfaceDefinition> =\n S extends `${NamespaceOf<S>}.${infer Rest}`\n ? NamespaceOf<S> extends NamespaceOf<ApiNameAsString<TO>> ? Rest : S\n : S;\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = MaybeStripNamespaces<\n PropMapToInterface<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>],\n TO\n>;\n/**\n * Older version of this helper that allows for `$rid` and co in\n * the properties field.\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P, OPTIONS>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport type MaybeScore<\n T extends Osdk.Instance<any>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<any>,\n> = ORDER_BY_OPTIONS extends \"relevance\" ? T & { $score: number } : T;\n\ntype ReducedValues<Q extends ObjectOrInterfaceDefinition> =\n | `${PropsWithOnlyMainValue<Q> & string}:applyMainValue`\n | `${PropsWithOnlyReducers<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyMainValue`\n | `${PropsWithBoth<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyReducersAndExtractMainValue`;\n\ntype ExtractPropNameFromP<S> = S extends `${infer Prop}:${string}` ? Prop : S;\n\ntype GetPropNamesFromP<P> = [P] extends [string] ? ExtractPropNameFromP<P>\n : never;\n\ntype HasAnyModifiers<P> = P extends `${string}:${string}` ? true : never;\ntype HasModifiers<P> = IsAny<P> extends true ? false\n : [HasAnyModifiers<P>] extends [never] ? false\n : true;\n\ntype BuildModifiersFromP<P> = {\n [K in P as K extends `${infer Prop}:${string}` ? Prop : never]: K extends\n `${string}:${infer Mod extends PropertyModifierValue}` ? Mod : never;\n};\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n P extends PropertyKeys<Q> | ReducedValues<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n // When P is just property keys (no `:modifier` strings), the deferred\n // `HasModifiers<P>` conditional in the modifier path keeps the resulting\n // Instance symbolic — this blocks structural assignability checks across\n // package boundaries (e.g. `Osdk.Instance<Employee> extends\n // ObjectLocator<Employee>` in `@osdk/functions`' edit-batch inference).\n // Short-circuit to the plain `Pick<Compile, ...>` shape for that case so\n // Instance simplifies eagerly; only fall through to the modifier path when\n // P actually carries modifier strings.\n & ([P] extends [PropertyKeys<Q>] ? Pick<\n CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n : Pick<\n HasModifiers<P> extends true\n ? ApplyModifiersToProps<Q, BuildModifiersFromP<P>>\n : CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, GetPropNamesFromP<P>, [R] extends [{}] ? false : true>\n >)\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <NEW_Q extends ValidToFrom<Q>>(\n type: NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P, OPTIONS>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata: Q extends\n ObjectTypeDefinition ? {\n ObjectMetadata: ObjectMetadata;\n }\n : {\n ObjectMetadata: ObjectMetadata;\n InterfaceMetadata: InterfaceMetadata;\n };\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue: <\n PropertyApiName extends PropertyKeys<Q>,\n >(\n propertyApiName: PropertyApiName,\n options?: { locale?: string; timezoneId?: string },\n ) => string | undefined;\n }\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$propertySecurities\" extends OPTIONS ? {\n readonly $propertySecurities: ObjectPropertySecurities<\n Q,\n GetPropsKeys<\n Q,\n P,\n [R] extends [{}] ? false : true\n >\n >;\n }\n : {})\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\ntype HasKeys<T> = keyof T extends never ? false : true;\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\nexport type ExtractPropertySecurityOption<S extends boolean> = // comment for readability\n IsNever<S> extends true ? never\n : DefaultToFalse<S> extends false ? never\n : \"$propertySecurities\";\n\nexport type ExtractAllPropertiesOption<T extends boolean> = // comment for readability\n IsNever<T> extends true ? never\n : DefaultToFalse<T> extends false ? never\n : \"$allBaseProperties\";\n\n// not exported from package\nexport type ExtractOptions<\n RID extends boolean,\n UNUSED extends NullabilityAdherence = NullabilityAdherence.Default,\n ALL_PROPERTIES extends boolean = false,\n PROPERTY_SECURITIES extends boolean = false,\n> =\n | ExtractRidOption<RID>\n | ExtractAllPropertiesOption<ALL_PROPERTIES>\n | ExtractPropertySecurityOption<PROPERTY_SECURITIES>;\n\ntype ObjectPropertySecurities<\n Q extends ObjectOrInterfaceDefinition,\n T extends PropertyKeys<Q>,\n> = {\n [K in T | \"$primaryKey\" | \"$title\"]: K extends \"$primaryKey\" | \"$title\"\n ? PropertySecurity[]\n : K extends PropertyKeys<Q>\n ? CompileTimeMetadata<Q>[\"properties\"][K][\"multiplicity\"] extends true\n ? PropertySecurity[][]\n : PropertySecurity[]\n : never;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsHA;AACA;AACA;AACA;AACA;AACA;AACA;AA4BA;AA0BA;AACA;AACA;AAFA,WAiDiBA,IAAI;AA6FrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAgBA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.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 {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type {\n NullabilityAdherence,\n ObjectSetArgs,\n} from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { PropertySecurity } from \"./object/PropertySecurity.js\";\nimport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersToProps,\n PropertyModifierValue,\n PropsWithBoth,\n PropsWithOnlyMainValue,\n PropsWithOnlyReducers,\n} from \"./ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = \"$allBaseProperties\" extends OPTIONS\n ? PropertyKeys<FROM> extends P ? PropertyKeys<TO>\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>]\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\ntype NamespaceOf<S extends string> = S extends `${infer Before}.${infer After}`\n ? After extends `${string}.${string}` ? `${Before}.${NamespaceOf<After>}`\n : Before\n : never;\n\ntype MaybeStripNamespaces<S extends string, TO extends InterfaceDefinition> =\n S extends `${NamespaceOf<S>}.${infer Rest}`\n ? NamespaceOf<S> extends NamespaceOf<ApiNameAsString<TO>> ? Rest : S\n : S;\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = MaybeStripNamespaces<\n PropMapToInterface<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>],\n TO\n>;\n\n/**\n * True iff the OT `TO` implements interface `FROM` with at least one\n * non-`localProperty` implementation.\n */\ntype OtHasNonLocalInterfaceImpl<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n Implementations = ApiNameAsString<FROM> extends\n keyof NonNullable<CompileTimeMetadata<TO>[\"interfaceImplementations\"]>\n ? NonNullable<\n CompileTimeMetadata<TO>[\"interfaceImplementations\"]\n >[ApiNameAsString<FROM>]\n : undefined,\n> = Implementations extends undefined ? false\n : {\n [K in keyof Implementations]: Implementations[K] extends\n { type: \"localProperty\" } ? never\n : K;\n }[keyof Implementations] extends never ? false\n : true;\n/**\n * Older version of this helper that allows for `$rid` and co in\n * the properties field.\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P, OPTIONS>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P & PropertyKeys<Q>;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport type MaybeScore<\n T extends Osdk.Instance<any>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<any>,\n> = ORDER_BY_OPTIONS extends \"relevance\" ? T & { $score: number } : T;\n\ntype ReducedValues<Q extends ObjectOrInterfaceDefinition> =\n | `${PropsWithOnlyMainValue<Q> & string}:applyMainValue`\n | `${PropsWithOnlyReducers<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyMainValue`\n | `${PropsWithBoth<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyReducersAndExtractMainValue`;\n\ntype ExtractPropNameFromP<S> = S extends `${infer Prop}:${string}` ? Prop : S;\n\ntype GetPropNamesFromP<P> = [P] extends [string] ? ExtractPropNameFromP<P>\n : never;\n\ntype HasAnyModifiers<P> = P extends `${string}:${string}` ? true : never;\ntype HasModifiers<P> = IsAny<P> extends true ? false\n : [HasAnyModifiers<P>] extends [never] ? false\n : true;\n\ntype BuildModifiersFromP<P> = {\n [K in P as K extends `${infer Prop}:${string}` ? Prop : never]: K extends\n `${string}:${infer Mod extends PropertyModifierValue}` ? Mod : never;\n};\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n P extends PropertyKeys<Q> | ReducedValues<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n // When P is just property keys (no `:modifier` strings), the deferred\n // `HasModifiers<P>` conditional in the modifier path keeps the resulting\n // Instance symbolic — this blocks structural assignability checks across\n // package boundaries (e.g. `Osdk.Instance<Employee> extends\n // ObjectLocator<Employee>` in `@osdk/functions`' edit-batch inference).\n // Short-circuit to the plain `Pick<Compile, ...>` shape for that case so\n // Instance simplifies eagerly; only fall through to the modifier path when\n // P actually carries modifier strings.\n & ([P] extends [PropertyKeys<Q>] ? Pick<\n CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n : Pick<\n HasModifiers<P> extends true\n ? ApplyModifiersToProps<Q, BuildModifiersFromP<P>>\n : CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, GetPropNamesFromP<P>, [R] extends [{}] ? false : true>\n >)\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <\n NEW_Q extends HasModifiers<P> extends true\n ? ValidToFrom<Q> & ObjectTypeDefinition\n : ValidToFrom<Q>,\n >(\n type: Q extends InterfaceDefinition\n ? NEW_Q extends ObjectTypeDefinition\n ? OtHasNonLocalInterfaceImpl<Q, NEW_Q> extends true ? never\n : NEW_Q | string\n : NEW_Q | string\n : NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P, OPTIONS>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata: Q extends\n ObjectTypeDefinition ? {\n ObjectMetadata: ObjectMetadata;\n }\n : {\n ObjectMetadata: ObjectMetadata;\n InterfaceMetadata: InterfaceMetadata;\n };\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue: <\n PropertyApiName extends PropertyKeys<Q>,\n >(\n propertyApiName: PropertyApiName,\n options?: { locale?: string; timezoneId?: string },\n ) => string | undefined;\n }\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$propertySecurities\" extends OPTIONS ? {\n readonly $propertySecurities: ObjectPropertySecurities<\n Q,\n GetPropsKeys<\n Q,\n P,\n [R] extends [{}] ? false : true\n >\n >;\n }\n : {})\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\ntype HasKeys<T> = keyof T extends never ? false : true;\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\nexport type ExtractPropertySecurityOption<S extends boolean> = // comment for readability\n IsNever<S> extends true ? never\n : DefaultToFalse<S> extends false ? never\n : \"$propertySecurities\";\n\nexport type ExtractAllPropertiesOption<T extends boolean> = // comment for readability\n IsNever<T> extends true ? never\n : DefaultToFalse<T> extends false ? never\n : \"$allBaseProperties\";\n\n// not exported from package\nexport type ExtractOptions<\n RID extends boolean,\n UNUSED extends NullabilityAdherence = NullabilityAdherence.Default,\n ALL_PROPERTIES extends boolean = false,\n PROPERTY_SECURITIES extends boolean = false,\n> =\n | ExtractRidOption<RID>\n | ExtractAllPropertiesOption<ALL_PROPERTIES>\n | ExtractPropertySecurityOption<PROPERTY_SECURITIES>;\n\ntype ObjectPropertySecurities<\n Q extends ObjectOrInterfaceDefinition,\n T extends PropertyKeys<Q>,\n> = {\n [K in T | \"$primaryKey\" | \"$title\"]: K extends \"$primaryKey\" | \"$title\"\n ? PropertySecurity[]\n : K extends PropertyKeys<Q>\n ? CompileTimeMetadata<Q>[\"properties\"][K][\"multiplicity\"] extends true\n ? PropertySecurity[][]\n : PropertySecurity[]\n : never;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuHA;AACA;AACA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AA4BA;AA0BA;AACA;AACA;AAFA,WAiDiBA,IAAI;AAsGrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAgBA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type { PropertyValueFormattingRule } from \"./valueFormatting/PropertyValueFormattingRule.js\";\nimport type { VersionString } from \"./VersionString.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\nexport type CompileTimeMetadata<T extends { __DefinitionMetadata?: {} }> =\n NonNullable<\n T[\"__DefinitionMetadata\"]\n >;\n\nexport type ObjectTypePropertyDefinitionFrom2<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n> = CompileTimeMetadata<Q>[\"properties\"][P];\n\nexport type ObjectInterfaceBaseMetadata = {\n type: \"object\" | \"interface\";\n apiName: string;\n displayName: string;\n description: string | undefined;\n properties: Record<any, ObjectMetadata.Property>;\n rid: string;\n /**\n * Represents the \"super interfaces\" of this object.\n *\n * Optional because they may not exist on legacy.\n */\n implements?: ReadonlyArray<string>;\n};\n\nexport interface ObjectInterfaceCompileDefinition {\n type: \"object\" | \"interface\";\n objectSet?: any;\n props?: any;\n strictProps?: any;\n linksType?: any;\n}\n\nexport interface VersionBound<V extends VersionString<any, any, any>> {\n __expectedClientVersion?: V;\n}\n\nexport interface ObjectMetadata extends ObjectInterfaceBaseMetadata {\n type: \"object\";\n primaryKeyApiName: keyof this[\"properties\"];\n titleProperty: keyof this[\"properties\"];\n links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\n primaryKeyType: PrimaryKeyTypes;\n icon: Icon | undefined;\n visibility: ObjectTypeVisibility | undefined;\n pluralDisplayName: string;\n status: ReleaseStatus | undefined;\n interfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n /* ObjectType property api name */ string\n >\n >;\n inverseInterfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* ObjectType property api name */ string,\n /* InterfaceType property api name */ string\n >\n >;\n}\n\nexport namespace ObjectMetadata {\n export interface Property {\n readonly?: boolean;\n displayName?: string;\n description?: string;\n type: WirePropertyTypes;\n multiplicity?: boolean;\n nullable?: boolean;\n valueTypeApiName?: string;\n valueFormatting?: PropertyValueFormattingRule;\n mainValue?: {\n fields: readonly string[];\n };\n hasReducers?: boolean;\n /**\n * Per-`type` metadata, discriminated on the wire property `type`.\n *\n * New per-type fields should be added as variants of {@link PropertyTypeMetadata}\n * rather than as new top-level optionals on `Property`, so that the shape\n * stays narrow and illegal combinations (e.g. a marking subtype on a `double`)\n * are not representable.\n */\n typeMetadata?: PropertyTypeMetadata;\n }\n\n /**\n * Discriminated union of per-`type` property metadata. Narrow on\n * `typeMetadata.type` to access the variant-specific fields.\n */\n export type PropertyTypeMetadata = {\n /**\n * Marking subtype: `\"CBAC\"` for classification-based access control,\n * `\"MANDATORY\"` for mandatory markings. Absent for marking properties\n * whose subtype is not exposed by the platform.\n */\n type: \"marking\";\n markingType?: \"CBAC\" | \"MANDATORY\";\n };\n\n export interface Link<\n Q extends ObjectTypeDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetType: Q[\"apiName\"];\n multiplicity: M;\n }\n}\n\nexport interface ObjectTypeDefinition {\n type: \"object\";\n apiName: string;\n primaryKeyApiName?: string;\n primaryKeyType?: PrimaryKeyTypes;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectOrInterfaceDefinition,\n> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport interface PropertyDef<\n T extends WirePropertyTypes,\n N extends \"nullable\" | \"non-nullable\" = \"nullable\",\n M extends \"array\" | \"single\" = \"single\",\n MAIN_VALUE_FIELDS extends readonly string[] | undefined = undefined,\n HAS_REDUCERS extends boolean = false,\n> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\n mainValue: MAIN_VALUE_FIELDS extends readonly string[]\n ? { fields: MAIN_VALUE_FIELDS }\n : undefined;\n hasReducers: HAS_REDUCERS;\n}\n\nexport type ReleaseStatus =\n | \"ACTIVE\"\n | \"EXPERIMENTAL\"\n | \"DEPRECATED\"\n | \"ENDORSED\";\n\ntype ObjectTypeVisibility = \"NORMAL\" | \"PROMINENT\" | \"HIDDEN\";\n\ntype BlueprintIcon = {\n type: \"blueprint\";\n color: string;\n name: string;\n};\n\ntype Icon = BlueprintIcon;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WA4FiBA,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type { PropertyValueFormattingRule } from \"./valueFormatting/PropertyValueFormattingRule.js\";\nimport type { VersionString } from \"./VersionString.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\nexport type CompileTimeMetadata<T extends { __DefinitionMetadata?: {} }> =\n NonNullable<\n T[\"__DefinitionMetadata\"]\n >;\n\nexport type ObjectTypePropertyDefinitionFrom2<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n> = CompileTimeMetadata<Q>[\"properties\"][P];\n\nexport type ObjectInterfaceBaseMetadata = {\n type: \"object\" | \"interface\";\n apiName: string;\n displayName: string;\n description: string | undefined;\n properties: Record<any, ObjectMetadata.Property>;\n rid: string;\n /**\n * Represents the \"super interfaces\" of this object.\n *\n * Optional because they may not exist on legacy.\n */\n implements?: ReadonlyArray<string>;\n};\n\nexport interface ObjectInterfaceCompileDefinition {\n type: \"object\" | \"interface\";\n objectSet?: any;\n props?: any;\n strictProps?: any;\n linksType?: any;\n}\n\nexport interface VersionBound<V extends VersionString<any, any, any>> {\n __expectedClientVersion?: V;\n}\n\nexport interface ObjectMetadata extends ObjectInterfaceBaseMetadata {\n type: \"object\";\n primaryKeyApiName: keyof this[\"properties\"];\n titleProperty: keyof this[\"properties\"];\n links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\n primaryKeyType: PrimaryKeyTypes;\n icon: Icon | undefined;\n visibility: ObjectTypeVisibility | undefined;\n pluralDisplayName: string;\n status: ReleaseStatus | undefined;\n interfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n /* ObjectType property api name */ string\n >\n >;\n inverseInterfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* ObjectType property api name */ string,\n /* InterfaceType property api name */ string\n >\n >;\n interfaceImplementations?: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n ObjectMetadata.InterfacePropertyImplementation\n >\n >;\n}\n\nexport namespace ObjectMetadata {\n export interface Property {\n readonly?: boolean;\n displayName?: string;\n description?: string;\n type: WirePropertyTypes;\n multiplicity?: boolean;\n nullable?: boolean;\n valueTypeApiName?: string;\n valueFormatting?: PropertyValueFormattingRule;\n mainValue?: {\n fields: readonly string[];\n };\n hasReducers?: boolean;\n /**\n * Per-`type` metadata, discriminated on the wire property `type`.\n *\n * New per-type fields should be added as variants of {@link PropertyTypeMetadata}\n * rather than as new top-level optionals on `Property`, so that the shape\n * stays narrow and illegal combinations (e.g. a marking subtype on a `double`)\n * are not representable.\n */\n typeMetadata?: PropertyTypeMetadata;\n }\n\n /**\n * Discriminated union of per-`type` property metadata. Narrow on\n * `typeMetadata.type` to access the variant-specific fields.\n */\n export type PropertyTypeMetadata = {\n /**\n * Marking subtype: `\"CBAC\"` for classification-based access control,\n * `\"MANDATORY\"` for mandatory markings. Absent for marking properties\n * whose subtype is not exposed by the platform.\n */\n type: \"marking\";\n markingType?: \"CBAC\" | \"MANDATORY\";\n };\n\n export interface Link<\n Q extends ObjectTypeDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetType: Q[\"apiName\"];\n multiplicity: M;\n }\n\n export type InterfacePropertyImplementation =\n | InterfacePropertyLocalImplementation\n | InterfacePropertyStructFieldImplementation\n | InterfacePropertyStructImplementation\n | InterfacePropertyReducedImplementation;\n\n export interface InterfacePropertyLocalImplementation {\n type: \"localProperty\";\n propertyApiName: string;\n }\n\n export interface InterfacePropertyStructFieldImplementation {\n type: \"structField\";\n propertyApiName: string;\n structFieldApiName: string;\n }\n\n export interface InterfacePropertyStructImplementation {\n type: \"struct\";\n mapping: Record<\n /* struct field api name */ string,\n | { type: \"property\"; propertyApiName: string }\n | {\n type: \"structFieldOfProperty\";\n propertyApiName: string;\n structFieldApiName: string;\n }\n >;\n }\n\n export interface InterfacePropertyReducedImplementation {\n type: \"reduced\";\n implementation:\n | InterfacePropertyLocalImplementation\n | InterfacePropertyStructFieldImplementation\n | InterfacePropertyStructImplementation;\n }\n}\n\nexport interface ObjectTypeDefinition {\n type: \"object\";\n apiName: string;\n primaryKeyApiName?: string;\n primaryKeyType?: PrimaryKeyTypes;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectOrInterfaceDefinition,\n> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport interface PropertyDef<\n T extends WirePropertyTypes,\n N extends \"nullable\" | \"non-nullable\" = \"nullable\",\n M extends \"array\" | \"single\" = \"single\",\n MAIN_VALUE_FIELDS extends readonly string[] | undefined = undefined,\n HAS_REDUCERS extends boolean = false,\n> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\n mainValue: MAIN_VALUE_FIELDS extends readonly string[]\n ? { fields: MAIN_VALUE_FIELDS }\n : undefined;\n hasReducers: HAS_REDUCERS;\n}\n\nexport type ReleaseStatus =\n | \"ACTIVE\"\n | \"EXPERIMENTAL\"\n | \"DEPRECATED\"\n | \"ENDORSED\";\n\ntype ObjectTypeVisibility = \"NORMAL\" | \"PROMINENT\" | \"HIDDEN\";\n\ntype BlueprintIcon = {\n type: \"blueprint\";\n color: string;\n name: string;\n};\n\ntype Icon = BlueprintIcon;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WAmGiBA,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"EmployeeApiTest.js","names":["EmployeeApiTest","type","apiName","primaryKeyApiName","primaryKeyType"],"sources":["EmployeeApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ObjectMetadata as $ObjectMetadata,\n ObjectSet as $ObjectSet,\n ObjectTypeDefinition as $ObjectTypeDefinition,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n SingleLinkAccessor as $SingleLinkAccessor,\n} from \"../index.js\";\n\nexport namespace EmployeeApiTest {\n export type PropertyKeys =\n | \"employeeId\"\n | \"fullName\"\n | \"class\"\n | \"attachment\"\n | \"geopoint\"\n | \"timeseries\"\n | \"mediaReference\"\n | \"geotimeSeriesReference\"\n | \"isActive\"\n | \"yearsOfExperience\"\n | \"rank\"\n | \"performanceScore\"\n | \"hourlyRate\"\n | \"dateOfJoining\"\n | \"lastUpdated\"\n | \"skillSet\"\n | \"skillSetEmbedding\"\n | \"addressStruct\"\n | \"salaryHistory\"\n | \"bonusHistory\";\n\n export interface Links {\n readonly lead: $SingleLinkAccessor<EmployeeApiTest>;\n readonly peeps: EmployeeApiTest.ObjectSet;\n }\n\n export interface Props {\n readonly class: $PropType[\"string\"] | undefined;\n readonly fullName: $PropType[\"string\"] | undefined;\n readonly employeeId: $PropType[\"integer\"] | undefined;\n readonly attachment: $PropType[\"attachment\"] | undefined;\n readonly geopoint: $PropType[\"geopoint\"] | undefined;\n readonly timeseries: $PropType[\"numericTimeseries\"] | undefined;\n readonly mediaReference: $PropType[\"mediaReference\"] | undefined;\n readonly geotimeSeriesReference:\n | $PropType[\"geotimeSeriesReference\"]\n | undefined;\n readonly isActive: $PropType[\"boolean\"] | undefined;\n readonly yearsOfExperience: $PropType[\"long\"] | undefined;\n readonly rank: $PropType[\"short\"] | undefined;\n readonly performanceScore: $PropType[\"double\"] | undefined;\n readonly hourlyRate: $PropType[\"float\"] | undefined;\n readonly dateOfJoining: $PropType[\"datetime\"] | undefined;\n readonly lastUpdated: $PropType[\"timestamp\"] | undefined;\n readonly skillSet: $PropType[\"string\"] | undefined;\n readonly skillSetEmbedding: $PropType[\"vector\"] | undefined;\n // Struct with mainValue for modifier tests\n readonly addressStruct:\n | { street: string; city: string; zipCode: string }\n | undefined;\n // Array with reducers for modifier tests\n readonly salaryHistory: number[] | undefined;\n // Array of structs with both mainValue and reducers for modifier tests\n readonly bonusHistory:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<EmployeeApiTest, EmployeeApiTest.ObjectSet>\n {}\n}\n\nexport interface EmployeeApiTest extends $ObjectTypeDefinition {\n type: \"object\";\n apiName: \"Employee\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n __DefinitionMetadata?: {\n objectSet: EmployeeApiTest.ObjectSet;\n props: EmployeeApiTest.Props;\n linksType: EmployeeApiTest.Links;\n strictProps: EmployeeApiTest.StrictProps;\n apiName: \"Employee\";\n description: \"A full-time or part-time \\n\\n employee of our firm\";\n displayName: \"Employee\";\n icon: {\n type: \"blueprint\";\n color: \"blue\";\n name: \"person\";\n };\n implements: [\"FooInterface\"];\n interfaceMap: {\n FooInterface: {\n fooSpt: \"fullName\";\n };\n };\n inverseInterfaceMap: {\n FooInterface: {\n fullName: \"fooSpt\";\n };\n };\n links: {\n lead: $ObjectMetadata.Link<EmployeeApiTest, false>;\n peeps: $ObjectMetadata.Link<EmployeeApiTest, true>;\n };\n pluralDisplayName: \"Employees\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n properties: {\n class: $PropertyDef<\"string\", \"nullable\", \"single\">;\n fullName: $PropertyDef<\"string\", \"nullable\", \"single\">;\n employeeId: $PropertyDef<\"integer\", \"nullable\", \"single\">;\n attachment: $PropertyDef<\"attachment\", \"nullable\", \"single\">;\n geopoint: $PropertyDef<\"geopoint\", \"nullable\", \"single\">;\n timeseries: $PropertyDef<\"numericTimeseries\", \"nullable\", \"single\">;\n mediaReference: $PropertyDef<\"mediaReference\", \"nullable\", \"single\">;\n geotimeSeriesReference: $PropertyDef<\n \"geotimeSeriesReference\",\n \"nullable\",\n \"single\"\n >;\n isActive: $PropertyDef<\"boolean\", \"nullable\", \"single\">;\n yearsOfExperience: $PropertyDef<\"long\", \"nullable\", \"single\">;\n rank: $PropertyDef<\"short\", \"nullable\", \"single\">;\n performanceScore: $PropertyDef<\"double\", \"nullable\", \"single\">;\n hourlyRate: $PropertyDef<\"float\", \"nullable\", \"single\">;\n dateOfJoining: $PropertyDef<\"datetime\", \"nullable\", \"single\">;\n lastUpdated: $PropertyDef<\"timestamp\", \"nullable\", \"single\">;\n skillSet: $PropertyDef<\"string\", \"nullable\", \"single\">;\n skillSetEmbedding: $PropertyDef<\"vector\", \"nullable\", \"single\">;\n // Struct with mainValue - main value fields are city and zipCode\n addressStruct: {\n type: { street: \"string\"; city: \"string\"; zipCode: \"string\" };\n nullable: true;\n multiplicity: false;\n mainValue: { fields: readonly [\"city\", \"zipCode\"] };\n };\n // Array with reducers (e.g., get max salary)\n salaryHistory: {\n type: \"integer\";\n nullable: true;\n multiplicity: true;\n hasReducers: true;\n };\n // Array of structs with both mainValue and reducers\n bonusHistory: {\n type: { year: \"integer\"; amount: \"integer\" };\n nullable: true;\n multiplicity: true;\n mainValue: { fields: readonly [\"amount\"] };\n hasReducers: true;\n };\n };\n rid: \"ri.ontology.main.object-type.401ac022-89eb-4591-8b7e-0a912b9efb44\";\n status: \"ACTIVE\";\n titleProperty: \"fullName\";\n type: \"object\";\n visibility: \"NORMAL\";\n };\n}\n\nexport const EmployeeApiTest: EmployeeApiTest = {\n type: \"object\",\n apiName: \"Employee\",\n primaryKeyApiName: \"employeeId\",\n primaryKeyType: \"integer\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsKA,OAAO,MAAMA,eAAgC,GAAG;EAC9CC,IAAI,EAAE,QAAQ;EACdC,OAAO,EAAE,UAAU;EACnBC,iBAAiB,EAAE,YAAY;EAC/BC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"EmployeeApiTest.js","names":["EmployeeApiTest","type","apiName","primaryKeyApiName","primaryKeyType"],"sources":["EmployeeApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ObjectMetadata as $ObjectMetadata,\n ObjectSet as $ObjectSet,\n ObjectTypeDefinition as $ObjectTypeDefinition,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n SingleLinkAccessor as $SingleLinkAccessor,\n} from \"../index.js\";\n\nexport namespace EmployeeApiTest {\n export type PropertyKeys =\n | \"employeeId\"\n | \"fullName\"\n | \"class\"\n | \"attachment\"\n | \"geopoint\"\n | \"timeseries\"\n | \"mediaReference\"\n | \"geotimeSeriesReference\"\n | \"isActive\"\n | \"yearsOfExperience\"\n | \"rank\"\n | \"performanceScore\"\n | \"hourlyRate\"\n | \"dateOfJoining\"\n | \"lastUpdated\"\n | \"skillSet\"\n | \"skillSetEmbedding\"\n | \"addressStruct\"\n | \"salaryHistory\"\n | \"bonusHistory\";\n\n export interface Links {\n readonly lead: $SingleLinkAccessor<EmployeeApiTest>;\n readonly peeps: EmployeeApiTest.ObjectSet;\n }\n\n export interface Props {\n readonly class: $PropType[\"string\"] | undefined;\n readonly fullName: $PropType[\"string\"] | undefined;\n readonly employeeId: $PropType[\"integer\"] | undefined;\n readonly attachment: $PropType[\"attachment\"] | undefined;\n readonly geopoint: $PropType[\"geopoint\"] | undefined;\n readonly timeseries: $PropType[\"numericTimeseries\"] | undefined;\n readonly mediaReference: $PropType[\"mediaReference\"] | undefined;\n readonly geotimeSeriesReference:\n | $PropType[\"geotimeSeriesReference\"]\n | undefined;\n readonly isActive: $PropType[\"boolean\"] | undefined;\n readonly yearsOfExperience: $PropType[\"long\"] | undefined;\n readonly rank: $PropType[\"short\"] | undefined;\n readonly performanceScore: $PropType[\"double\"] | undefined;\n readonly hourlyRate: $PropType[\"float\"] | undefined;\n readonly dateOfJoining: $PropType[\"datetime\"] | undefined;\n readonly lastUpdated: $PropType[\"timestamp\"] | undefined;\n readonly skillSet: $PropType[\"string\"] | undefined;\n readonly skillSetEmbedding: $PropType[\"vector\"] | undefined;\n // Struct with mainValue for modifier tests\n readonly addressStruct:\n | { street: string; city: string; zipCode: string }\n | undefined;\n // Array with reducers for modifier tests\n readonly salaryHistory: number[] | undefined;\n // Array of structs with both mainValue and reducers for modifier tests\n readonly bonusHistory:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<EmployeeApiTest, EmployeeApiTest.ObjectSet>\n {}\n}\n\nexport interface EmployeeApiTest extends $ObjectTypeDefinition {\n type: \"object\";\n apiName: \"Employee\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n __DefinitionMetadata?: {\n objectSet: EmployeeApiTest.ObjectSet;\n props: EmployeeApiTest.Props;\n linksType: EmployeeApiTest.Links;\n strictProps: EmployeeApiTest.StrictProps;\n apiName: \"Employee\";\n description: \"A full-time or part-time \\n\\n employee of our firm\";\n displayName: \"Employee\";\n icon: {\n type: \"blueprint\";\n color: \"blue\";\n name: \"person\";\n };\n implements: [\"FooInterface\", \"ReducerInterface\"];\n interfaceMap: {\n FooInterface: {\n fooSpt: \"fullName\";\n };\n ReducerInterface: {\n ifaceAddress: \"addressStruct\";\n ifaceSalary: \"salaryHistory\";\n ifaceBonus: \"bonusHistory\";\n };\n };\n inverseInterfaceMap: {\n FooInterface: {\n fullName: \"fooSpt\";\n };\n ReducerInterface: {\n addressStruct: \"ifaceAddress\";\n salaryHistory: \"ifaceSalary\";\n bonusHistory: \"ifaceBonus\";\n };\n };\n interfaceImplementations: {\n FooInterface: {\n fooSpt: { type: \"localProperty\"; propertyApiName: \"fullName\" };\n };\n ReducerInterface: {\n ifaceAddress: {\n type: \"structField\";\n propertyApiName: \"addressStruct\";\n structFieldApiName: \"city\";\n };\n ifaceSalary: {\n type: \"reduced\";\n implementation: {\n type: \"localProperty\";\n propertyApiName: \"salaryHistory\";\n };\n };\n ifaceBonus: {\n type: \"reduced\";\n implementation: {\n type: \"structField\";\n propertyApiName: \"bonusHistory\";\n structFieldApiName: \"amount\";\n };\n };\n };\n };\n links: {\n lead: $ObjectMetadata.Link<EmployeeApiTest, false>;\n peeps: $ObjectMetadata.Link<EmployeeApiTest, true>;\n };\n pluralDisplayName: \"Employees\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n properties: {\n class: $PropertyDef<\"string\", \"nullable\", \"single\">;\n fullName: $PropertyDef<\"string\", \"nullable\", \"single\">;\n employeeId: $PropertyDef<\"integer\", \"nullable\", \"single\">;\n attachment: $PropertyDef<\"attachment\", \"nullable\", \"single\">;\n geopoint: $PropertyDef<\"geopoint\", \"nullable\", \"single\">;\n timeseries: $PropertyDef<\"numericTimeseries\", \"nullable\", \"single\">;\n mediaReference: $PropertyDef<\"mediaReference\", \"nullable\", \"single\">;\n geotimeSeriesReference: $PropertyDef<\n \"geotimeSeriesReference\",\n \"nullable\",\n \"single\"\n >;\n isActive: $PropertyDef<\"boolean\", \"nullable\", \"single\">;\n yearsOfExperience: $PropertyDef<\"long\", \"nullable\", \"single\">;\n rank: $PropertyDef<\"short\", \"nullable\", \"single\">;\n performanceScore: $PropertyDef<\"double\", \"nullable\", \"single\">;\n hourlyRate: $PropertyDef<\"float\", \"nullable\", \"single\">;\n dateOfJoining: $PropertyDef<\"datetime\", \"nullable\", \"single\">;\n lastUpdated: $PropertyDef<\"timestamp\", \"nullable\", \"single\">;\n skillSet: $PropertyDef<\"string\", \"nullable\", \"single\">;\n skillSetEmbedding: $PropertyDef<\"vector\", \"nullable\", \"single\">;\n // Struct with mainValue - main value fields are city and zipCode\n addressStruct: {\n type: { street: \"string\"; city: \"string\"; zipCode: \"string\" };\n nullable: true;\n multiplicity: false;\n mainValue: { fields: readonly [\"city\", \"zipCode\"] };\n };\n // Array with reducers (e.g., get max salary)\n salaryHistory: {\n type: \"integer\";\n nullable: true;\n multiplicity: true;\n hasReducers: true;\n };\n // Array of structs with both mainValue and reducers\n bonusHistory: {\n type: { year: \"integer\"; amount: \"integer\" };\n nullable: true;\n multiplicity: true;\n mainValue: { fields: readonly [\"amount\"] };\n hasReducers: true;\n };\n };\n rid: \"ri.ontology.main.object-type.401ac022-89eb-4591-8b7e-0a912b9efb44\";\n status: \"ACTIVE\";\n titleProperty: \"fullName\";\n type: \"object\";\n visibility: \"NORMAL\";\n };\n}\n\nexport const EmployeeApiTest: EmployeeApiTest = {\n type: \"object\",\n apiName: \"Employee\",\n primaryKeyApiName: \"employeeId\",\n primaryKeyType: \"integer\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2MA,OAAO,MAAMA,eAAgC,GAAG;EAC9CC,IAAI,EAAE,QAAQ;EACdC,OAAO,EAAE,UAAU;EACnBC,iBAAiB,EAAE,YAAY;EAC/BC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"FooInterfaceApiTest.js","names":["FooInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["FooInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$FooInterface = {};\n\nexport namespace FooInterfaceApiTest {\n export type PropertyKeys = \"name\" | \"description\";\n\n export interface Props {\n readonly description: $PropType[\"string\"] | undefined;\n readonly name: $PropType[\"string\"] | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<FooInterfaceApiTest, FooInterfaceApiTest.ObjectSet>\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = $Osdk.Instance<FooInterfaceApiTest, OPTIONS, K>;\n\n /** @deprecated use OsdkInstance */\n export type OsdkObject<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = OsdkInstance<OPTIONS, K>;\n}\n\nexport interface FooInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"FooInterface\";\n __DefinitionMetadata?: {\n objectSet: FooInterfaceApiTest.ObjectSet;\n props: FooInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$FooInterface;\n strictProps: FooInterfaceApiTest.StrictProps;\n apiName: \"FooInterface\";\n description: \"Its a Foo.\";\n displayName: \"Foo interface\";\n links: {};\n properties: {\n /**\n * display name: 'Description',\n * description: Description of Description\n */\n description: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * display name: 'Name',\n * description: Name of Foo\n */\n name: $PropertyDef<\"string\", \"nullable\", \"single\">;\n };\n rid: \"ri.ontology.main.interface-type.1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const FooInterfaceApiTest: FooInterfaceApiTest = {\n type: \"interface\",\n apiName: \"FooInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoEA,OAAO,MAAMA,mBAAwC,GAAG;EACtDC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,cAAc;EACvBC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FooInterfaceApiTest.js","names":["FooInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["FooInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$FooInterface = {};\n\nexport namespace FooInterfaceApiTest {\n export type PropertyKeys = \"name\" | \"description\" | \"fooSpt\";\n\n export interface Props {\n readonly description: $PropType[\"string\"] | undefined;\n readonly name: $PropType[\"string\"] | undefined;\n readonly fooSpt: $PropType[\"string\"] | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<FooInterfaceApiTest, FooInterfaceApiTest.ObjectSet>\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = $Osdk.Instance<FooInterfaceApiTest, OPTIONS, K>;\n\n /** @deprecated use OsdkInstance */\n export type OsdkObject<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = OsdkInstance<OPTIONS, K>;\n}\n\nexport interface FooInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"FooInterface\";\n __DefinitionMetadata?: {\n objectSet: FooInterfaceApiTest.ObjectSet;\n props: FooInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$FooInterface;\n strictProps: FooInterfaceApiTest.StrictProps;\n apiName: \"FooInterface\";\n description: \"Its a Foo.\";\n displayName: \"Foo interface\";\n links: {};\n properties: {\n /**\n * display name: 'Description',\n * description: Description of Description\n */\n description: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * display name: 'Name',\n * description: Name of Foo\n */\n name: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * Shared property type backed by `fullName` on Employee.\n */\n fooSpt: $PropertyDef<\"string\", \"nullable\", \"single\">;\n };\n rid: \"ri.ontology.main.interface-type.1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const FooInterfaceApiTest: FooInterfaceApiTest = {\n type: \"interface\",\n apiName: \"FooInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyEA,OAAO,MAAMA,mBAAwC,GAAG;EACtDC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,cAAc;EACvBC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export const ReducerInterfaceApiTest = {
18
+ type: "interface",
19
+ apiName: "ReducerInterface",
20
+ osdkMetadata: {}
21
+ };
22
+ //# sourceMappingURL=ReducerInterfaceApiTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReducerInterfaceApiTest.js","names":["ReducerInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["ReducerInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$ReducerInterfaceApiTest = {};\n\nexport namespace ReducerInterfaceApiTest {\n export type PropertyKeys =\n | \"ifaceAddress\"\n | \"ifaceSalary\"\n | \"ifaceBonus\";\n\n export interface Props {\n readonly ifaceAddress:\n | { street: string; city: string; zipCode: string }\n | undefined;\n readonly ifaceSalary: number[] | undefined;\n readonly ifaceBonus:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet extends\n $ObjectSet<\n ReducerInterfaceApiTest,\n ReducerInterfaceApiTest.ObjectSet\n >\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof ReducerInterfaceApiTest.Props =\n keyof ReducerInterfaceApiTest.Props,\n > = $Osdk.Instance<ReducerInterfaceApiTest, OPTIONS, K>;\n}\n\nexport interface ReducerInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"ReducerInterface\";\n __DefinitionMetadata?: {\n objectSet: ReducerInterfaceApiTest.ObjectSet;\n props: ReducerInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$ReducerInterfaceApiTest;\n strictProps: ReducerInterfaceApiTest.StrictProps;\n apiName: \"ReducerInterface\";\n description:\n \"Interface whose properties map to modifier-capable object properties\";\n displayName: \"Reducer Interface\";\n links: {};\n properties: {\n ifaceAddress: $PropertyDef<\n { street: \"string\"; city: \"string\"; zipCode: \"string\" },\n \"nullable\",\n \"single\"\n >;\n ifaceSalary: $PropertyDef<\"integer\", \"nullable\", \"array\">;\n ifaceBonus: $PropertyDef<\n { year: \"integer\"; amount: \"integer\" },\n \"nullable\",\n \"array\"\n >;\n };\n rid: \"ri.ontology.main.interface-type.c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const ReducerInterfaceApiTest: ReducerInterfaceApiTest = {\n type: \"interface\",\n apiName: \"ReducerInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2EA,OAAO,MAAMA,uBAAgD,GAAG;EAC9DC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,kBAAkB;EAC3BC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -848,6 +848,7 @@ interface ObjectMetadata extends ObjectInterfaceBaseMetadata {
848
848
  status: ReleaseStatus | undefined;
849
849
  interfaceMap: Record<string, Record<string, string>>;
850
850
  inverseInterfaceMap: Record<string, Record<string, string>>;
851
+ interfaceImplementations?: Record<string, Record<string, ObjectMetadata.InterfacePropertyImplementation>>;
851
852
  }
852
853
  declare namespace ObjectMetadata {
853
854
  interface Property {
@@ -891,6 +892,31 @@ declare namespace ObjectMetadata {
891
892
  targetType: Q["apiName"];
892
893
  multiplicity: M;
893
894
  }
895
+ type InterfacePropertyImplementation = InterfacePropertyLocalImplementation | InterfacePropertyStructFieldImplementation | InterfacePropertyStructImplementation | InterfacePropertyReducedImplementation;
896
+ interface InterfacePropertyLocalImplementation {
897
+ type: "localProperty";
898
+ propertyApiName: string;
899
+ }
900
+ interface InterfacePropertyStructFieldImplementation {
901
+ type: "structField";
902
+ propertyApiName: string;
903
+ structFieldApiName: string;
904
+ }
905
+ interface InterfacePropertyStructImplementation {
906
+ type: "struct";
907
+ mapping: Record<string, {
908
+ type: "property";
909
+ propertyApiName: string;
910
+ } | {
911
+ type: "structFieldOfProperty";
912
+ propertyApiName: string;
913
+ structFieldApiName: string;
914
+ }>;
915
+ }
916
+ interface InterfacePropertyReducedImplementation {
917
+ type: "reduced";
918
+ implementation: InterfacePropertyLocalImplementation | InterfacePropertyStructFieldImplementation | InterfacePropertyStructImplementation;
919
+ }
894
920
  }
895
921
  interface ObjectTypeDefinition {
896
922
  type: "object";
@@ -1412,6 +1438,15 @@ type NamespaceOf<S extends string> = S extends `${infer Before}.${infer After}`
1412
1438
  type MaybeStripNamespaces<S extends string, TO extends InterfaceDefinition> = S extends `${NamespaceOf<S>}.${infer Rest}` ? NamespaceOf<S> extends NamespaceOf<ApiNameAsString<TO>> ? Rest : S : S;
1413
1439
  type PropMapToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition> = NonNullable<CompileTimeMetadata<FROM>["inverseInterfaceMap"]>[ApiNameAsString<TO>];
1414
1440
  type MapPropNamesToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition, P extends ValidOsdkPropParams<FROM>> = MaybeStripNamespaces<PropMapToInterface<FROM, TO>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>], TO>;
1441
+ /**
1442
+ * True iff the OT `TO` implements interface `FROM` with at least one
1443
+ * non-`localProperty` implementation.
1444
+ */
1445
+ type OtHasNonLocalInterfaceImpl<FROM extends ObjectOrInterfaceDefinition, TO extends ObjectTypeDefinition, Implementations = ApiNameAsString<FROM> extends keyof NonNullable<CompileTimeMetadata<TO>["interfaceImplementations"]> ? NonNullable<CompileTimeMetadata<TO>["interfaceImplementations"]>[ApiNameAsString<FROM>] : undefined> = Implementations extends undefined ? false : {
1446
+ [K in keyof Implementations]: Implementations[K] extends {
1447
+ type: "localProperty";
1448
+ } ? never : K;
1449
+ }[keyof Implementations] extends never ? false : true;
1415
1450
  /**
1416
1451
  * Older version of this helper that allows for `$rid` and co in
1417
1452
  * the properties field.
@@ -1425,7 +1460,7 @@ type ValidToFrom<FROM extends ObjectOrInterfaceDefinition> = FROM extends Interf
1425
1460
  type IsNever<T> = [T] extends [never] ? true : false;
1426
1461
  type ExtractPropsKeysFromOldPropsStyle<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$all" ? PropertyKeys<Q> : Exclude<P, "$strict" | "$notStrict" | "$rid">;
1427
1462
  type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
1428
- type GetPropsKeys<Q extends ObjectOrInterfaceDefinition, P extends PropertyKeys<Q>, N extends boolean = false> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q> : IsAny<P> extends true ? PropertyKeys<Q> : P;
1463
+ type GetPropsKeys<Q extends ObjectOrInterfaceDefinition, P, N extends boolean = false> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q> : IsAny<P> extends true ? PropertyKeys<Q> : P & PropertyKeys<Q>;
1429
1464
  type MaybeScore<T extends Osdk.Instance<any>, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<any>> = ORDER_BY_OPTIONS extends "relevance" ? T & {
1430
1465
  $score: number;
1431
1466
  } : T;
@@ -1448,7 +1483,7 @@ declare namespace Osdk {
1448
1483
  readonly $link: Q extends {
1449
1484
  linksType?: any;
1450
1485
  } ? Q["linksType"] : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q> : never;
1451
- readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P, OPTIONS>>;
1486
+ readonly $as: <NEW_Q extends HasModifiers<P> extends true ? ValidToFrom<Q> & ObjectTypeDefinition : ValidToFrom<Q>>(type: Q extends InterfaceDefinition ? NEW_Q extends ObjectTypeDefinition ? OtHasNonLocalInterfaceImpl<Q, NEW_Q> extends true ? never : NEW_Q | string : NEW_Q | string : NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P, OPTIONS>>;
1452
1487
  readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(updatedObject?: Osdk.Instance<Q, any, NEW_PROPS> | {
1453
1488
  [K in NEW_PROPS]?: CompileTimeMetadata<Q>["props"][K];
1454
1489
  }) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;
@@ -1,4 +1,4 @@
1
- import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-KCDcM_Ik.cjs';
1
+ import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-qWwFZfVK.cjs';
2
2
 
3
3
  interface QueryMetadata {
4
4
  type: "query";
@@ -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-KCDcM_Ik.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 ColorInterpretation, H as CommonDicomDataElements, J as ConvertProps, K as CoordinateReferenceSystem, L as DataType, N as DatetimeFormat, Q as DatetimeLocalizedFormat, S as DatetimeLocalizedFormatType, T as DatetimeStringFormat, U as DatetimeTimezone, V as DatetimeTimezoneStatic, W as DatetimeTimezoneUser, X as DerivedProperty, Y as DicomDataElementKey, Z as DicomMediaItemMetadata, _ as DicomMediaType, $ as DicomMetaInformation, a0 as DicomMetaInformationV1, a1 as Dimensions, a2 as DistanceUnitMapping, a3 as DocumentDecodeFormat, a4 as DocumentMediaItemMetadata, a5 as DurationBaseValue, a6 as DurationFormatStyle, a7 as DurationMapping, a8 as DurationPrecision, a9 as EmailAttachment, aa as EmailDecodeFormat, ab as EmailMediaItemMetadata, ac as FetchLinksPageResult, ad as FetchPageArgs, ae as FetchPageResult, af as FlipAxis, ag as GcpList, ah as GeoFilterOptions, ai as GeoFilter_Intersects, aj as GeoFilter_Within, ak as GeoMetadata, al as GeotimeSeriesProperty, am as GpsMetadata, an as GroundControlPoint, ao as Group, ap as GroupByClause, aq as GroupByRange, ar as GroupWrapper, as as HumanReadableFormat, at as ImageAttributeDomain, au as ImageAttributeKey, av as ImageryDecodeFormat, aw as ImageryMediaItemMetadata, ax as InterfaceMetadata, ay as IntervalRule, az as KnownType, aA as LinkNames, aB as LinkTypeApiNamesFor, aC as LinkedType, aD as Mailbox, aE as MailboxOrGroup, aF as MailboxWrapper, aG as MaybeScore, aH as MediaFullMetadata, aI as MediaItemMetadata, aJ as MediaMetadata, aK as MediaPropertyLocation, aL as MinimalDirectedObjectLinkInstance, aM as Modality, aN as Model3dDecodeFormat, aO as Model3dMediaItemMetadata, aP as Model3dType, aQ as NotWhereClause, aR as NullabilityAdherence, aS as NumberFormatAffix, aT as NumberFormatCurrency, aU as NumberFormatCurrencyStyle, aV as NumberFormatCustomUnit, aW as NumberFormatDuration, aX as NumberFormatFixedValues, aY as NumberFormatNotation, aZ as NumberFormatOptions, a_ as NumberFormatRatio, a$ as NumberFormatScale, b0 as NumberFormatStandard, b1 as NumberFormatStandardUnit, b2 as NumberRatioType, b3 as NumberRoundingMode, b4 as NumberScaleType, b5 as ObjectMetadata, b6 as ObjectSetArgs, b7 as ObjectSetSubscription, b8 as ObjectSpecifier, b9 as OrWhereClause, ba as Orientation, bb as Osdk, bc as OsdkObjectCreatePropertyType, bd as OsdkObjectLinksObject, be as OsdkObjectPropertyType, bf as PageResult, bg as PaletteInterpretation, bh as PossibleWhereClauseFilters, bi as PrimaryKeyType, bj as PropertyBooleanFormattingRule, bk as PropertyDateFormattingRule, bl as PropertyDef, bm as PropertyKeys, bn as PropertyKnownTypeFormattingRule, bo as PropertyMarkings, bp as PropertyNumberFormattingRule, bq as PropertyNumberFormattingRuleType, br as PropertySecurity, bs as PropertyTimestampFormattingRule, bt as PropertyTypeReference, bu as PropertyTypeReferenceOrStringConstant, bv as PropertyValueFormattingRule, bw as Result, bx as RotationAngle, by as SelectArg, bz as SelectArgToKeys, bA as SimplePropertyDef, bB as SingleLinkAccessor, bC as SingleOsdkResult, bD as SpreadsheetDecodeFormat, bE as SpreadsheetMediaItemMetadata, bF as StringConstant, bG as TimeCodeFormat, bH as TimeSeriesPoint, bI as TimeSeriesProperty, bJ as TimeSeriesQuery, bK as TimeseriesDurationMapping, bL as UnitInterpretation, bM as UnknownMediaItemMetadata, bN as UntypedMediaItemMetadata, bO as ValidAggregationKeys, bP as VersionBound, bQ as VideoDecodeFormat, bR as VideoMediaItemMetadata, bS as VideoSpecification, bT as WhereClause, bU as WirePropertyTypes, bV as isOk } from './ObjectSet-KCDcM_Ik.cjs';
3
- import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-DSek4rOt.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-DSek4rOt.cjs';
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-qWwFZfVK.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 ColorInterpretation, H as CommonDicomDataElements, J as ConvertProps, K as CoordinateReferenceSystem, L as DataType, N as DatetimeFormat, Q as DatetimeLocalizedFormat, S as DatetimeLocalizedFormatType, T as DatetimeStringFormat, U as DatetimeTimezone, V as DatetimeTimezoneStatic, W as DatetimeTimezoneUser, X as DerivedProperty, Y as DicomDataElementKey, Z as DicomMediaItemMetadata, _ as DicomMediaType, $ as DicomMetaInformation, a0 as DicomMetaInformationV1, a1 as Dimensions, a2 as DistanceUnitMapping, a3 as DocumentDecodeFormat, a4 as DocumentMediaItemMetadata, a5 as DurationBaseValue, a6 as DurationFormatStyle, a7 as DurationMapping, a8 as DurationPrecision, a9 as EmailAttachment, aa as EmailDecodeFormat, ab as EmailMediaItemMetadata, ac as FetchLinksPageResult, ad as FetchPageArgs, ae as FetchPageResult, af as FlipAxis, ag as GcpList, ah as GeoFilterOptions, ai as GeoFilter_Intersects, aj as GeoFilter_Within, ak as GeoMetadata, al as GeotimeSeriesProperty, am as GpsMetadata, an as GroundControlPoint, ao as Group, ap as GroupByClause, aq as GroupByRange, ar as GroupWrapper, as as HumanReadableFormat, at as ImageAttributeDomain, au as ImageAttributeKey, av as ImageryDecodeFormat, aw as ImageryMediaItemMetadata, ax as InterfaceMetadata, ay as IntervalRule, az as KnownType, aA as LinkNames, aB as LinkTypeApiNamesFor, aC as LinkedType, aD as Mailbox, aE as MailboxOrGroup, aF as MailboxWrapper, aG as MaybeScore, aH as MediaFullMetadata, aI as MediaItemMetadata, aJ as MediaMetadata, aK as MediaPropertyLocation, aL as MinimalDirectedObjectLinkInstance, aM as Modality, aN as Model3dDecodeFormat, aO as Model3dMediaItemMetadata, aP as Model3dType, aQ as NotWhereClause, aR as NullabilityAdherence, aS as NumberFormatAffix, aT as NumberFormatCurrency, aU as NumberFormatCurrencyStyle, aV as NumberFormatCustomUnit, aW as NumberFormatDuration, aX as NumberFormatFixedValues, aY as NumberFormatNotation, aZ as NumberFormatOptions, a_ as NumberFormatRatio, a$ as NumberFormatScale, b0 as NumberFormatStandard, b1 as NumberFormatStandardUnit, b2 as NumberRatioType, b3 as NumberRoundingMode, b4 as NumberScaleType, b5 as ObjectMetadata, b6 as ObjectSetArgs, b7 as ObjectSetSubscription, b8 as ObjectSpecifier, b9 as OrWhereClause, ba as Orientation, bb as Osdk, bc as OsdkObjectCreatePropertyType, bd as OsdkObjectLinksObject, be as OsdkObjectPropertyType, bf as PageResult, bg as PaletteInterpretation, bh as PossibleWhereClauseFilters, bi as PrimaryKeyType, bj as PropertyBooleanFormattingRule, bk as PropertyDateFormattingRule, bl as PropertyDef, bm as PropertyKeys, bn as PropertyKnownTypeFormattingRule, bo as PropertyMarkings, bp as PropertyNumberFormattingRule, bq as PropertyNumberFormattingRuleType, br as PropertySecurity, bs as PropertyTimestampFormattingRule, bt as PropertyTypeReference, bu as PropertyTypeReferenceOrStringConstant, bv as PropertyValueFormattingRule, bw as Result, bx as RotationAngle, by as SelectArg, bz as SelectArgToKeys, bA as SimplePropertyDef, bB as SingleLinkAccessor, bC as SingleOsdkResult, bD as SpreadsheetDecodeFormat, bE as SpreadsheetMediaItemMetadata, bF as StringConstant, bG as TimeCodeFormat, bH as TimeSeriesPoint, bI as TimeSeriesProperty, bJ as TimeSeriesQuery, bK as TimeseriesDurationMapping, bL as UnitInterpretation, bM as UnknownMediaItemMetadata, bN as UntypedMediaItemMetadata, bO as ValidAggregationKeys, bP as VersionBound, bQ as VideoDecodeFormat, bR as VideoMediaItemMetadata, bS as VideoSpecification, bT as WhereClause, bU as WirePropertyTypes, bV as isOk } from './ObjectSet-qWwFZfVK.cjs';
3
+ import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-CcychsK9.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-CcychsK9.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-r4gKpy2_.cjs';
2
- import '../ObjectSet-KCDcM_Ik.cjs';
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-Dm_E5o5q.cjs';
2
+ import '../ObjectSet-qWwFZfVK.cjs';
3
3
  import 'type-fest';
4
4
  import 'geojson';
@@ -1,8 +1,8 @@
1
- import { O as ObjectOrInterfaceDefinition, bm as PropertyKeys, M as MediaReference, C as CompileTimeMetadata, aR as NullabilityAdherence, by as SelectArg, bb as Osdk, bW as ExtractOptions, ad as FetchPageArgs, ae as FetchPageResult, j as OsdkBase, bX as Just, b7 as ObjectSetSubscription } from '../ObjectSet-KCDcM_Ik.cjs';
2
- export { bY as MinimalObjectSet } from '../ObjectSet-KCDcM_Ik.cjs';
3
- import { d as QueryDefinition } from '../QueryDefinition-DSek4rOt.cjs';
4
- import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-r4gKpy2_.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-r4gKpy2_.cjs';
1
+ import { O as ObjectOrInterfaceDefinition, bm as PropertyKeys, M as MediaReference, C as CompileTimeMetadata, aR as NullabilityAdherence, by as SelectArg, bb as Osdk, bW as ExtractOptions, ad as FetchPageArgs, ae as FetchPageResult, j as OsdkBase, bX as Just, b7 as ObjectSetSubscription } from '../ObjectSet-qWwFZfVK.cjs';
2
+ export { bY as MinimalObjectSet } from '../ObjectSet-qWwFZfVK.cjs';
3
+ import { d as QueryDefinition } from '../QueryDefinition-CcychsK9.cjs';
4
+ import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-Dm_E5o5q.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-Dm_E5o5q.cjs';
6
6
  import 'type-fest';
7
7
  import 'geojson';
8
8
 
@@ -1,4 +1,4 @@
1
- import { O as ObjectOrInterfaceDefinition, bT as WhereClause, bm as PropertyKeys, C as CompileTimeMetadata, aA as LinkNames, aC as LinkedType, j as OsdkBase } from './ObjectSet-KCDcM_Ik.cjs';
1
+ import { O as ObjectOrInterfaceDefinition, bT as WhereClause, bm as PropertyKeys, C as CompileTimeMetadata, aA as LinkNames, aC as LinkedType, j as OsdkBase } from './ObjectSet-qWwFZfVK.cjs';
2
2
 
3
3
  declare const SourcePrimaryKeySymbol: unique symbol;
4
4
  declare function isSourcePkSymbol(value: unknown): value is symbol;
@@ -13,6 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ /**
17
+ * True iff the OT `TO` implements interface `FROM` with at least one
18
+ * non-`localProperty` implementation.
19
+ */
16
20
  /**
17
21
  * Older version of this helper that allows for `$rid` and co in
18
22
  * the properties field.
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.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 {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type {\n NullabilityAdherence,\n ObjectSetArgs,\n} from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { PropertySecurity } from \"./object/PropertySecurity.js\";\nimport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersToProps,\n PropertyModifierValue,\n PropsWithBoth,\n PropsWithOnlyMainValue,\n PropsWithOnlyReducers,\n} from \"./ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = \"$allBaseProperties\" extends OPTIONS\n ? PropertyKeys<FROM> extends P ? PropertyKeys<TO>\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>]\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\ntype NamespaceOf<S extends string> = S extends `${infer Before}.${infer After}`\n ? After extends `${string}.${string}` ? `${Before}.${NamespaceOf<After>}`\n : Before\n : never;\n\ntype MaybeStripNamespaces<S extends string, TO extends InterfaceDefinition> =\n S extends `${NamespaceOf<S>}.${infer Rest}`\n ? NamespaceOf<S> extends NamespaceOf<ApiNameAsString<TO>> ? Rest : S\n : S;\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = MaybeStripNamespaces<\n PropMapToInterface<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>],\n TO\n>;\n/**\n * Older version of this helper that allows for `$rid` and co in\n * the properties field.\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P, OPTIONS>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport type MaybeScore<\n T extends Osdk.Instance<any>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<any>,\n> = ORDER_BY_OPTIONS extends \"relevance\" ? T & { $score: number } : T;\n\ntype ReducedValues<Q extends ObjectOrInterfaceDefinition> =\n | `${PropsWithOnlyMainValue<Q> & string}:applyMainValue`\n | `${PropsWithOnlyReducers<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyMainValue`\n | `${PropsWithBoth<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyReducersAndExtractMainValue`;\n\ntype ExtractPropNameFromP<S> = S extends `${infer Prop}:${string}` ? Prop : S;\n\ntype GetPropNamesFromP<P> = [P] extends [string] ? ExtractPropNameFromP<P>\n : never;\n\ntype HasAnyModifiers<P> = P extends `${string}:${string}` ? true : never;\ntype HasModifiers<P> = IsAny<P> extends true ? false\n : [HasAnyModifiers<P>] extends [never] ? false\n : true;\n\ntype BuildModifiersFromP<P> = {\n [K in P as K extends `${infer Prop}:${string}` ? Prop : never]: K extends\n `${string}:${infer Mod extends PropertyModifierValue}` ? Mod : never;\n};\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n P extends PropertyKeys<Q> | ReducedValues<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n // When P is just property keys (no `:modifier` strings), the deferred\n // `HasModifiers<P>` conditional in the modifier path keeps the resulting\n // Instance symbolic — this blocks structural assignability checks across\n // package boundaries (e.g. `Osdk.Instance<Employee> extends\n // ObjectLocator<Employee>` in `@osdk/functions`' edit-batch inference).\n // Short-circuit to the plain `Pick<Compile, ...>` shape for that case so\n // Instance simplifies eagerly; only fall through to the modifier path when\n // P actually carries modifier strings.\n & ([P] extends [PropertyKeys<Q>] ? Pick<\n CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n : Pick<\n HasModifiers<P> extends true\n ? ApplyModifiersToProps<Q, BuildModifiersFromP<P>>\n : CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, GetPropNamesFromP<P>, [R] extends [{}] ? false : true>\n >)\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <NEW_Q extends ValidToFrom<Q>>(\n type: NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P, OPTIONS>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata: Q extends\n ObjectTypeDefinition ? {\n ObjectMetadata: ObjectMetadata;\n }\n : {\n ObjectMetadata: ObjectMetadata;\n InterfaceMetadata: InterfaceMetadata;\n };\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue: <\n PropertyApiName extends PropertyKeys<Q>,\n >(\n propertyApiName: PropertyApiName,\n options?: { locale?: string; timezoneId?: string },\n ) => string | undefined;\n }\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$propertySecurities\" extends OPTIONS ? {\n readonly $propertySecurities: ObjectPropertySecurities<\n Q,\n GetPropsKeys<\n Q,\n P,\n [R] extends [{}] ? false : true\n >\n >;\n }\n : {})\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\ntype HasKeys<T> = keyof T extends never ? false : true;\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\nexport type ExtractPropertySecurityOption<S extends boolean> = // comment for readability\n IsNever<S> extends true ? never\n : DefaultToFalse<S> extends false ? never\n : \"$propertySecurities\";\n\nexport type ExtractAllPropertiesOption<T extends boolean> = // comment for readability\n IsNever<T> extends true ? never\n : DefaultToFalse<T> extends false ? never\n : \"$allBaseProperties\";\n\n// not exported from package\nexport type ExtractOptions<\n RID extends boolean,\n UNUSED extends NullabilityAdherence = NullabilityAdherence.Default,\n ALL_PROPERTIES extends boolean = false,\n PROPERTY_SECURITIES extends boolean = false,\n> =\n | ExtractRidOption<RID>\n | ExtractAllPropertiesOption<ALL_PROPERTIES>\n | ExtractPropertySecurityOption<PROPERTY_SECURITIES>;\n\ntype ObjectPropertySecurities<\n Q extends ObjectOrInterfaceDefinition,\n T extends PropertyKeys<Q>,\n> = {\n [K in T | \"$primaryKey\" | \"$title\"]: K extends \"$primaryKey\" | \"$title\"\n ? PropertySecurity[]\n : K extends PropertyKeys<Q>\n ? CompileTimeMetadata<Q>[\"properties\"][K][\"multiplicity\"] extends true\n ? PropertySecurity[][]\n : PropertySecurity[]\n : never;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsHA;AACA;AACA;AACA;AACA;AACA;AACA;AA4BA;AA0BA;AACA;AACA;AAFA,WAiDiBA,IAAI;AA6FrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAgBA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.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 {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type {\n NullabilityAdherence,\n ObjectSetArgs,\n} from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { PropertySecurity } from \"./object/PropertySecurity.js\";\nimport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type {\n ApplyModifiersToProps,\n PropertyModifierValue,\n PropsWithBoth,\n PropsWithOnlyMainValue,\n PropsWithOnlyReducers,\n} from \"./ontology/PropertyModifiers.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = \"$allBaseProperties\" extends OPTIONS\n ? PropertyKeys<FROM> extends P ? PropertyKeys<TO>\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>]\n : PropMapToObject<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\ntype NamespaceOf<S extends string> = S extends `${infer Before}.${infer After}`\n ? After extends `${string}.${string}` ? `${Before}.${NamespaceOf<After>}`\n : Before\n : never;\n\ntype MaybeStripNamespaces<S extends string, TO extends InterfaceDefinition> =\n S extends `${NamespaceOf<S>}.${infer Rest}`\n ? NamespaceOf<S> extends NamespaceOf<ApiNameAsString<TO>> ? Rest : S\n : S;\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = MaybeStripNamespaces<\n PropMapToInterface<\n FROM,\n TO\n >[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>],\n TO\n>;\n\n/**\n * True iff the OT `TO` implements interface `FROM` with at least one\n * non-`localProperty` implementation.\n */\ntype OtHasNonLocalInterfaceImpl<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n Implementations = ApiNameAsString<FROM> extends\n keyof NonNullable<CompileTimeMetadata<TO>[\"interfaceImplementations\"]>\n ? NonNullable<\n CompileTimeMetadata<TO>[\"interfaceImplementations\"]\n >[ApiNameAsString<FROM>]\n : undefined,\n> = Implementations extends undefined ? false\n : {\n [K in keyof Implementations]: Implementations[K] extends\n { type: \"localProperty\" } ? never\n : K;\n }[keyof Implementations] extends never ? false\n : true;\n/**\n * Older version of this helper that allows for `$rid` and co in\n * the properties field.\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P, OPTIONS>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P & PropertyKeys<Q>;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport type MaybeScore<\n T extends Osdk.Instance<any>,\n ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<any>,\n> = ORDER_BY_OPTIONS extends \"relevance\" ? T & { $score: number } : T;\n\ntype ReducedValues<Q extends ObjectOrInterfaceDefinition> =\n | `${PropsWithOnlyMainValue<Q> & string}:applyMainValue`\n | `${PropsWithOnlyReducers<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyMainValue`\n | `${PropsWithBoth<Q> & string}:applyReducers`\n | `${PropsWithBoth<Q> & string}:applyReducersAndExtractMainValue`;\n\ntype ExtractPropNameFromP<S> = S extends `${infer Prop}:${string}` ? Prop : S;\n\ntype GetPropNamesFromP<P> = [P] extends [string] ? ExtractPropNameFromP<P>\n : never;\n\ntype HasAnyModifiers<P> = P extends `${string}:${string}` ? true : never;\ntype HasModifiers<P> = IsAny<P> extends true ? false\n : [HasAnyModifiers<P>] extends [never] ? false\n : true;\n\ntype BuildModifiersFromP<P> = {\n [K in P as K extends `${infer Prop}:${string}` ? Prop : never]: K extends\n `${string}:${infer Mod extends PropertyModifierValue}` ? Mod : never;\n};\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends\n | never\n | \"$rid\"\n | \"$allBaseProperties\"\n | \"$propertySecurities\" = never,\n P extends PropertyKeys<Q> | ReducedValues<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n // When P is just property keys (no `:modifier` strings), the deferred\n // `HasModifiers<P>` conditional in the modifier path keeps the resulting\n // Instance symbolic — this blocks structural assignability checks across\n // package boundaries (e.g. `Osdk.Instance<Employee> extends\n // ObjectLocator<Employee>` in `@osdk/functions`' edit-batch inference).\n // Short-circuit to the plain `Pick<Compile, ...>` shape for that case so\n // Instance simplifies eagerly; only fall through to the modifier path when\n // P actually carries modifier strings.\n & ([P] extends [PropertyKeys<Q>] ? Pick<\n CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n : Pick<\n HasModifiers<P> extends true\n ? ApplyModifiersToProps<Q, BuildModifiersFromP<P>>\n : CompileTimeMetadata<Q>[\"props\"],\n GetPropsKeys<Q, GetPropNamesFromP<P>, [R] extends [{}] ? false : true>\n >)\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <\n NEW_Q extends HasModifiers<P> extends true\n ? ValidToFrom<Q> & ObjectTypeDefinition\n : ValidToFrom<Q>,\n >(\n type: Q extends InterfaceDefinition\n ? NEW_Q extends ObjectTypeDefinition\n ? OtHasNonLocalInterfaceImpl<Q, NEW_Q> extends true ? never\n : NEW_Q | string\n : NEW_Q | string\n : NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P, OPTIONS>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata: Q extends\n ObjectTypeDefinition ? {\n ObjectMetadata: ObjectMetadata;\n }\n : {\n ObjectMetadata: ObjectMetadata;\n InterfaceMetadata: InterfaceMetadata;\n };\n\n readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue: <\n PropertyApiName extends PropertyKeys<Q>,\n >(\n propertyApiName: PropertyApiName,\n options?: { locale?: string; timezoneId?: string },\n ) => string | undefined;\n }\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$propertySecurities\" extends OPTIONS ? {\n readonly $propertySecurities: ObjectPropertySecurities<\n Q,\n GetPropsKeys<\n Q,\n P,\n [R] extends [{}] ? false : true\n >\n >;\n }\n : {})\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\ntype HasKeys<T> = keyof T extends never ? false : true;\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\nexport type ExtractPropertySecurityOption<S extends boolean> = // comment for readability\n IsNever<S> extends true ? never\n : DefaultToFalse<S> extends false ? never\n : \"$propertySecurities\";\n\nexport type ExtractAllPropertiesOption<T extends boolean> = // comment for readability\n IsNever<T> extends true ? never\n : DefaultToFalse<T> extends false ? never\n : \"$allBaseProperties\";\n\n// not exported from package\nexport type ExtractOptions<\n RID extends boolean,\n UNUSED extends NullabilityAdherence = NullabilityAdherence.Default,\n ALL_PROPERTIES extends boolean = false,\n PROPERTY_SECURITIES extends boolean = false,\n> =\n | ExtractRidOption<RID>\n | ExtractAllPropertiesOption<ALL_PROPERTIES>\n | ExtractPropertySecurityOption<PROPERTY_SECURITIES>;\n\ntype ObjectPropertySecurities<\n Q extends ObjectOrInterfaceDefinition,\n T extends PropertyKeys<Q>,\n> = {\n [K in T | \"$primaryKey\" | \"$title\"]: K extends \"$primaryKey\" | \"$title\"\n ? PropertySecurity[]\n : K extends PropertyKeys<Q>\n ? CompileTimeMetadata<Q>[\"properties\"][K][\"multiplicity\"] extends true\n ? PropertySecurity[][]\n : PropertySecurity[]\n : never;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuHA;AACA;AACA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AA4BA;AA0BA;AACA;AACA;AAFA,WAiDiBA,IAAI;AAsGrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAgBA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type { PropertyValueFormattingRule } from \"./valueFormatting/PropertyValueFormattingRule.js\";\nimport type { VersionString } from \"./VersionString.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\nexport type CompileTimeMetadata<T extends { __DefinitionMetadata?: {} }> =\n NonNullable<\n T[\"__DefinitionMetadata\"]\n >;\n\nexport type ObjectTypePropertyDefinitionFrom2<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n> = CompileTimeMetadata<Q>[\"properties\"][P];\n\nexport type ObjectInterfaceBaseMetadata = {\n type: \"object\" | \"interface\";\n apiName: string;\n displayName: string;\n description: string | undefined;\n properties: Record<any, ObjectMetadata.Property>;\n rid: string;\n /**\n * Represents the \"super interfaces\" of this object.\n *\n * Optional because they may not exist on legacy.\n */\n implements?: ReadonlyArray<string>;\n};\n\nexport interface ObjectInterfaceCompileDefinition {\n type: \"object\" | \"interface\";\n objectSet?: any;\n props?: any;\n strictProps?: any;\n linksType?: any;\n}\n\nexport interface VersionBound<V extends VersionString<any, any, any>> {\n __expectedClientVersion?: V;\n}\n\nexport interface ObjectMetadata extends ObjectInterfaceBaseMetadata {\n type: \"object\";\n primaryKeyApiName: keyof this[\"properties\"];\n titleProperty: keyof this[\"properties\"];\n links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\n primaryKeyType: PrimaryKeyTypes;\n icon: Icon | undefined;\n visibility: ObjectTypeVisibility | undefined;\n pluralDisplayName: string;\n status: ReleaseStatus | undefined;\n interfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n /* ObjectType property api name */ string\n >\n >;\n inverseInterfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* ObjectType property api name */ string,\n /* InterfaceType property api name */ string\n >\n >;\n}\n\nexport namespace ObjectMetadata {\n export interface Property {\n readonly?: boolean;\n displayName?: string;\n description?: string;\n type: WirePropertyTypes;\n multiplicity?: boolean;\n nullable?: boolean;\n valueTypeApiName?: string;\n valueFormatting?: PropertyValueFormattingRule;\n mainValue?: {\n fields: readonly string[];\n };\n hasReducers?: boolean;\n /**\n * Per-`type` metadata, discriminated on the wire property `type`.\n *\n * New per-type fields should be added as variants of {@link PropertyTypeMetadata}\n * rather than as new top-level optionals on `Property`, so that the shape\n * stays narrow and illegal combinations (e.g. a marking subtype on a `double`)\n * are not representable.\n */\n typeMetadata?: PropertyTypeMetadata;\n }\n\n /**\n * Discriminated union of per-`type` property metadata. Narrow on\n * `typeMetadata.type` to access the variant-specific fields.\n */\n export type PropertyTypeMetadata = {\n /**\n * Marking subtype: `\"CBAC\"` for classification-based access control,\n * `\"MANDATORY\"` for mandatory markings. Absent for marking properties\n * whose subtype is not exposed by the platform.\n */\n type: \"marking\";\n markingType?: \"CBAC\" | \"MANDATORY\";\n };\n\n export interface Link<\n Q extends ObjectTypeDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetType: Q[\"apiName\"];\n multiplicity: M;\n }\n}\n\nexport interface ObjectTypeDefinition {\n type: \"object\";\n apiName: string;\n primaryKeyApiName?: string;\n primaryKeyType?: PrimaryKeyTypes;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectOrInterfaceDefinition,\n> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport interface PropertyDef<\n T extends WirePropertyTypes,\n N extends \"nullable\" | \"non-nullable\" = \"nullable\",\n M extends \"array\" | \"single\" = \"single\",\n MAIN_VALUE_FIELDS extends readonly string[] | undefined = undefined,\n HAS_REDUCERS extends boolean = false,\n> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\n mainValue: MAIN_VALUE_FIELDS extends readonly string[]\n ? { fields: MAIN_VALUE_FIELDS }\n : undefined;\n hasReducers: HAS_REDUCERS;\n}\n\nexport type ReleaseStatus =\n | \"ACTIVE\"\n | \"EXPERIMENTAL\"\n | \"DEPRECATED\"\n | \"ENDORSED\";\n\ntype ObjectTypeVisibility = \"NORMAL\" | \"PROMINENT\" | \"HIDDEN\";\n\ntype BlueprintIcon = {\n type: \"blueprint\";\n color: string;\n name: string;\n};\n\ntype Icon = BlueprintIcon;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WA4FiBA,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type { PropertyValueFormattingRule } from \"./valueFormatting/PropertyValueFormattingRule.js\";\nimport type { VersionString } from \"./VersionString.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\nexport type CompileTimeMetadata<T extends { __DefinitionMetadata?: {} }> =\n NonNullable<\n T[\"__DefinitionMetadata\"]\n >;\n\nexport type ObjectTypePropertyDefinitionFrom2<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n> = CompileTimeMetadata<Q>[\"properties\"][P];\n\nexport type ObjectInterfaceBaseMetadata = {\n type: \"object\" | \"interface\";\n apiName: string;\n displayName: string;\n description: string | undefined;\n properties: Record<any, ObjectMetadata.Property>;\n rid: string;\n /**\n * Represents the \"super interfaces\" of this object.\n *\n * Optional because they may not exist on legacy.\n */\n implements?: ReadonlyArray<string>;\n};\n\nexport interface ObjectInterfaceCompileDefinition {\n type: \"object\" | \"interface\";\n objectSet?: any;\n props?: any;\n strictProps?: any;\n linksType?: any;\n}\n\nexport interface VersionBound<V extends VersionString<any, any, any>> {\n __expectedClientVersion?: V;\n}\n\nexport interface ObjectMetadata extends ObjectInterfaceBaseMetadata {\n type: \"object\";\n primaryKeyApiName: keyof this[\"properties\"];\n titleProperty: keyof this[\"properties\"];\n links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\n primaryKeyType: PrimaryKeyTypes;\n icon: Icon | undefined;\n visibility: ObjectTypeVisibility | undefined;\n pluralDisplayName: string;\n status: ReleaseStatus | undefined;\n interfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n /* ObjectType property api name */ string\n >\n >;\n inverseInterfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* ObjectType property api name */ string,\n /* InterfaceType property api name */ string\n >\n >;\n interfaceImplementations?: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n ObjectMetadata.InterfacePropertyImplementation\n >\n >;\n}\n\nexport namespace ObjectMetadata {\n export interface Property {\n readonly?: boolean;\n displayName?: string;\n description?: string;\n type: WirePropertyTypes;\n multiplicity?: boolean;\n nullable?: boolean;\n valueTypeApiName?: string;\n valueFormatting?: PropertyValueFormattingRule;\n mainValue?: {\n fields: readonly string[];\n };\n hasReducers?: boolean;\n /**\n * Per-`type` metadata, discriminated on the wire property `type`.\n *\n * New per-type fields should be added as variants of {@link PropertyTypeMetadata}\n * rather than as new top-level optionals on `Property`, so that the shape\n * stays narrow and illegal combinations (e.g. a marking subtype on a `double`)\n * are not representable.\n */\n typeMetadata?: PropertyTypeMetadata;\n }\n\n /**\n * Discriminated union of per-`type` property metadata. Narrow on\n * `typeMetadata.type` to access the variant-specific fields.\n */\n export type PropertyTypeMetadata = {\n /**\n * Marking subtype: `\"CBAC\"` for classification-based access control,\n * `\"MANDATORY\"` for mandatory markings. Absent for marking properties\n * whose subtype is not exposed by the platform.\n */\n type: \"marking\";\n markingType?: \"CBAC\" | \"MANDATORY\";\n };\n\n export interface Link<\n Q extends ObjectTypeDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetType: Q[\"apiName\"];\n multiplicity: M;\n }\n\n export type InterfacePropertyImplementation =\n | InterfacePropertyLocalImplementation\n | InterfacePropertyStructFieldImplementation\n | InterfacePropertyStructImplementation\n | InterfacePropertyReducedImplementation;\n\n export interface InterfacePropertyLocalImplementation {\n type: \"localProperty\";\n propertyApiName: string;\n }\n\n export interface InterfacePropertyStructFieldImplementation {\n type: \"structField\";\n propertyApiName: string;\n structFieldApiName: string;\n }\n\n export interface InterfacePropertyStructImplementation {\n type: \"struct\";\n mapping: Record<\n /* struct field api name */ string,\n | { type: \"property\"; propertyApiName: string }\n | {\n type: \"structFieldOfProperty\";\n propertyApiName: string;\n structFieldApiName: string;\n }\n >;\n }\n\n export interface InterfacePropertyReducedImplementation {\n type: \"reduced\";\n implementation:\n | InterfacePropertyLocalImplementation\n | InterfacePropertyStructFieldImplementation\n | InterfacePropertyStructImplementation;\n }\n}\n\nexport interface ObjectTypeDefinition {\n type: \"object\";\n apiName: string;\n primaryKeyApiName?: string;\n primaryKeyType?: PrimaryKeyTypes;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectOrInterfaceDefinition,\n> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport interface PropertyDef<\n T extends WirePropertyTypes,\n N extends \"nullable\" | \"non-nullable\" = \"nullable\",\n M extends \"array\" | \"single\" = \"single\",\n MAIN_VALUE_FIELDS extends readonly string[] | undefined = undefined,\n HAS_REDUCERS extends boolean = false,\n> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\n mainValue: MAIN_VALUE_FIELDS extends readonly string[]\n ? { fields: MAIN_VALUE_FIELDS }\n : undefined;\n hasReducers: HAS_REDUCERS;\n}\n\nexport type ReleaseStatus =\n | \"ACTIVE\"\n | \"EXPERIMENTAL\"\n | \"DEPRECATED\"\n | \"ENDORSED\";\n\ntype ObjectTypeVisibility = \"NORMAL\" | \"PROMINENT\" | \"HIDDEN\";\n\ntype BlueprintIcon = {\n type: \"blueprint\";\n color: string;\n name: string;\n};\n\ntype Icon = BlueprintIcon;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WAmGiBA,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"EmployeeApiTest.js","names":["EmployeeApiTest","type","apiName","primaryKeyApiName","primaryKeyType"],"sources":["EmployeeApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ObjectMetadata as $ObjectMetadata,\n ObjectSet as $ObjectSet,\n ObjectTypeDefinition as $ObjectTypeDefinition,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n SingleLinkAccessor as $SingleLinkAccessor,\n} from \"../index.js\";\n\nexport namespace EmployeeApiTest {\n export type PropertyKeys =\n | \"employeeId\"\n | \"fullName\"\n | \"class\"\n | \"attachment\"\n | \"geopoint\"\n | \"timeseries\"\n | \"mediaReference\"\n | \"geotimeSeriesReference\"\n | \"isActive\"\n | \"yearsOfExperience\"\n | \"rank\"\n | \"performanceScore\"\n | \"hourlyRate\"\n | \"dateOfJoining\"\n | \"lastUpdated\"\n | \"skillSet\"\n | \"skillSetEmbedding\"\n | \"addressStruct\"\n | \"salaryHistory\"\n | \"bonusHistory\";\n\n export interface Links {\n readonly lead: $SingleLinkAccessor<EmployeeApiTest>;\n readonly peeps: EmployeeApiTest.ObjectSet;\n }\n\n export interface Props {\n readonly class: $PropType[\"string\"] | undefined;\n readonly fullName: $PropType[\"string\"] | undefined;\n readonly employeeId: $PropType[\"integer\"] | undefined;\n readonly attachment: $PropType[\"attachment\"] | undefined;\n readonly geopoint: $PropType[\"geopoint\"] | undefined;\n readonly timeseries: $PropType[\"numericTimeseries\"] | undefined;\n readonly mediaReference: $PropType[\"mediaReference\"] | undefined;\n readonly geotimeSeriesReference:\n | $PropType[\"geotimeSeriesReference\"]\n | undefined;\n readonly isActive: $PropType[\"boolean\"] | undefined;\n readonly yearsOfExperience: $PropType[\"long\"] | undefined;\n readonly rank: $PropType[\"short\"] | undefined;\n readonly performanceScore: $PropType[\"double\"] | undefined;\n readonly hourlyRate: $PropType[\"float\"] | undefined;\n readonly dateOfJoining: $PropType[\"datetime\"] | undefined;\n readonly lastUpdated: $PropType[\"timestamp\"] | undefined;\n readonly skillSet: $PropType[\"string\"] | undefined;\n readonly skillSetEmbedding: $PropType[\"vector\"] | undefined;\n // Struct with mainValue for modifier tests\n readonly addressStruct:\n | { street: string; city: string; zipCode: string }\n | undefined;\n // Array with reducers for modifier tests\n readonly salaryHistory: number[] | undefined;\n // Array of structs with both mainValue and reducers for modifier tests\n readonly bonusHistory:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<EmployeeApiTest, EmployeeApiTest.ObjectSet>\n {}\n}\n\nexport interface EmployeeApiTest extends $ObjectTypeDefinition {\n type: \"object\";\n apiName: \"Employee\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n __DefinitionMetadata?: {\n objectSet: EmployeeApiTest.ObjectSet;\n props: EmployeeApiTest.Props;\n linksType: EmployeeApiTest.Links;\n strictProps: EmployeeApiTest.StrictProps;\n apiName: \"Employee\";\n description: \"A full-time or part-time \\n\\n employee of our firm\";\n displayName: \"Employee\";\n icon: {\n type: \"blueprint\";\n color: \"blue\";\n name: \"person\";\n };\n implements: [\"FooInterface\"];\n interfaceMap: {\n FooInterface: {\n fooSpt: \"fullName\";\n };\n };\n inverseInterfaceMap: {\n FooInterface: {\n fullName: \"fooSpt\";\n };\n };\n links: {\n lead: $ObjectMetadata.Link<EmployeeApiTest, false>;\n peeps: $ObjectMetadata.Link<EmployeeApiTest, true>;\n };\n pluralDisplayName: \"Employees\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n properties: {\n class: $PropertyDef<\"string\", \"nullable\", \"single\">;\n fullName: $PropertyDef<\"string\", \"nullable\", \"single\">;\n employeeId: $PropertyDef<\"integer\", \"nullable\", \"single\">;\n attachment: $PropertyDef<\"attachment\", \"nullable\", \"single\">;\n geopoint: $PropertyDef<\"geopoint\", \"nullable\", \"single\">;\n timeseries: $PropertyDef<\"numericTimeseries\", \"nullable\", \"single\">;\n mediaReference: $PropertyDef<\"mediaReference\", \"nullable\", \"single\">;\n geotimeSeriesReference: $PropertyDef<\n \"geotimeSeriesReference\",\n \"nullable\",\n \"single\"\n >;\n isActive: $PropertyDef<\"boolean\", \"nullable\", \"single\">;\n yearsOfExperience: $PropertyDef<\"long\", \"nullable\", \"single\">;\n rank: $PropertyDef<\"short\", \"nullable\", \"single\">;\n performanceScore: $PropertyDef<\"double\", \"nullable\", \"single\">;\n hourlyRate: $PropertyDef<\"float\", \"nullable\", \"single\">;\n dateOfJoining: $PropertyDef<\"datetime\", \"nullable\", \"single\">;\n lastUpdated: $PropertyDef<\"timestamp\", \"nullable\", \"single\">;\n skillSet: $PropertyDef<\"string\", \"nullable\", \"single\">;\n skillSetEmbedding: $PropertyDef<\"vector\", \"nullable\", \"single\">;\n // Struct with mainValue - main value fields are city and zipCode\n addressStruct: {\n type: { street: \"string\"; city: \"string\"; zipCode: \"string\" };\n nullable: true;\n multiplicity: false;\n mainValue: { fields: readonly [\"city\", \"zipCode\"] };\n };\n // Array with reducers (e.g., get max salary)\n salaryHistory: {\n type: \"integer\";\n nullable: true;\n multiplicity: true;\n hasReducers: true;\n };\n // Array of structs with both mainValue and reducers\n bonusHistory: {\n type: { year: \"integer\"; amount: \"integer\" };\n nullable: true;\n multiplicity: true;\n mainValue: { fields: readonly [\"amount\"] };\n hasReducers: true;\n };\n };\n rid: \"ri.ontology.main.object-type.401ac022-89eb-4591-8b7e-0a912b9efb44\";\n status: \"ACTIVE\";\n titleProperty: \"fullName\";\n type: \"object\";\n visibility: \"NORMAL\";\n };\n}\n\nexport const EmployeeApiTest: EmployeeApiTest = {\n type: \"object\",\n apiName: \"Employee\",\n primaryKeyApiName: \"employeeId\",\n primaryKeyType: \"integer\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsKA,OAAO,MAAMA,eAAgC,GAAG;EAC9CC,IAAI,EAAE,QAAQ;EACdC,OAAO,EAAE,UAAU;EACnBC,iBAAiB,EAAE,YAAY;EAC/BC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"EmployeeApiTest.js","names":["EmployeeApiTest","type","apiName","primaryKeyApiName","primaryKeyType"],"sources":["EmployeeApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ObjectMetadata as $ObjectMetadata,\n ObjectSet as $ObjectSet,\n ObjectTypeDefinition as $ObjectTypeDefinition,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n SingleLinkAccessor as $SingleLinkAccessor,\n} from \"../index.js\";\n\nexport namespace EmployeeApiTest {\n export type PropertyKeys =\n | \"employeeId\"\n | \"fullName\"\n | \"class\"\n | \"attachment\"\n | \"geopoint\"\n | \"timeseries\"\n | \"mediaReference\"\n | \"geotimeSeriesReference\"\n | \"isActive\"\n | \"yearsOfExperience\"\n | \"rank\"\n | \"performanceScore\"\n | \"hourlyRate\"\n | \"dateOfJoining\"\n | \"lastUpdated\"\n | \"skillSet\"\n | \"skillSetEmbedding\"\n | \"addressStruct\"\n | \"salaryHistory\"\n | \"bonusHistory\";\n\n export interface Links {\n readonly lead: $SingleLinkAccessor<EmployeeApiTest>;\n readonly peeps: EmployeeApiTest.ObjectSet;\n }\n\n export interface Props {\n readonly class: $PropType[\"string\"] | undefined;\n readonly fullName: $PropType[\"string\"] | undefined;\n readonly employeeId: $PropType[\"integer\"] | undefined;\n readonly attachment: $PropType[\"attachment\"] | undefined;\n readonly geopoint: $PropType[\"geopoint\"] | undefined;\n readonly timeseries: $PropType[\"numericTimeseries\"] | undefined;\n readonly mediaReference: $PropType[\"mediaReference\"] | undefined;\n readonly geotimeSeriesReference:\n | $PropType[\"geotimeSeriesReference\"]\n | undefined;\n readonly isActive: $PropType[\"boolean\"] | undefined;\n readonly yearsOfExperience: $PropType[\"long\"] | undefined;\n readonly rank: $PropType[\"short\"] | undefined;\n readonly performanceScore: $PropType[\"double\"] | undefined;\n readonly hourlyRate: $PropType[\"float\"] | undefined;\n readonly dateOfJoining: $PropType[\"datetime\"] | undefined;\n readonly lastUpdated: $PropType[\"timestamp\"] | undefined;\n readonly skillSet: $PropType[\"string\"] | undefined;\n readonly skillSetEmbedding: $PropType[\"vector\"] | undefined;\n // Struct with mainValue for modifier tests\n readonly addressStruct:\n | { street: string; city: string; zipCode: string }\n | undefined;\n // Array with reducers for modifier tests\n readonly salaryHistory: number[] | undefined;\n // Array of structs with both mainValue and reducers for modifier tests\n readonly bonusHistory:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<EmployeeApiTest, EmployeeApiTest.ObjectSet>\n {}\n}\n\nexport interface EmployeeApiTest extends $ObjectTypeDefinition {\n type: \"object\";\n apiName: \"Employee\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n __DefinitionMetadata?: {\n objectSet: EmployeeApiTest.ObjectSet;\n props: EmployeeApiTest.Props;\n linksType: EmployeeApiTest.Links;\n strictProps: EmployeeApiTest.StrictProps;\n apiName: \"Employee\";\n description: \"A full-time or part-time \\n\\n employee of our firm\";\n displayName: \"Employee\";\n icon: {\n type: \"blueprint\";\n color: \"blue\";\n name: \"person\";\n };\n implements: [\"FooInterface\", \"ReducerInterface\"];\n interfaceMap: {\n FooInterface: {\n fooSpt: \"fullName\";\n };\n ReducerInterface: {\n ifaceAddress: \"addressStruct\";\n ifaceSalary: \"salaryHistory\";\n ifaceBonus: \"bonusHistory\";\n };\n };\n inverseInterfaceMap: {\n FooInterface: {\n fullName: \"fooSpt\";\n };\n ReducerInterface: {\n addressStruct: \"ifaceAddress\";\n salaryHistory: \"ifaceSalary\";\n bonusHistory: \"ifaceBonus\";\n };\n };\n interfaceImplementations: {\n FooInterface: {\n fooSpt: { type: \"localProperty\"; propertyApiName: \"fullName\" };\n };\n ReducerInterface: {\n ifaceAddress: {\n type: \"structField\";\n propertyApiName: \"addressStruct\";\n structFieldApiName: \"city\";\n };\n ifaceSalary: {\n type: \"reduced\";\n implementation: {\n type: \"localProperty\";\n propertyApiName: \"salaryHistory\";\n };\n };\n ifaceBonus: {\n type: \"reduced\";\n implementation: {\n type: \"structField\";\n propertyApiName: \"bonusHistory\";\n structFieldApiName: \"amount\";\n };\n };\n };\n };\n links: {\n lead: $ObjectMetadata.Link<EmployeeApiTest, false>;\n peeps: $ObjectMetadata.Link<EmployeeApiTest, true>;\n };\n pluralDisplayName: \"Employees\";\n primaryKeyApiName: \"employeeId\";\n primaryKeyType: \"integer\";\n properties: {\n class: $PropertyDef<\"string\", \"nullable\", \"single\">;\n fullName: $PropertyDef<\"string\", \"nullable\", \"single\">;\n employeeId: $PropertyDef<\"integer\", \"nullable\", \"single\">;\n attachment: $PropertyDef<\"attachment\", \"nullable\", \"single\">;\n geopoint: $PropertyDef<\"geopoint\", \"nullable\", \"single\">;\n timeseries: $PropertyDef<\"numericTimeseries\", \"nullable\", \"single\">;\n mediaReference: $PropertyDef<\"mediaReference\", \"nullable\", \"single\">;\n geotimeSeriesReference: $PropertyDef<\n \"geotimeSeriesReference\",\n \"nullable\",\n \"single\"\n >;\n isActive: $PropertyDef<\"boolean\", \"nullable\", \"single\">;\n yearsOfExperience: $PropertyDef<\"long\", \"nullable\", \"single\">;\n rank: $PropertyDef<\"short\", \"nullable\", \"single\">;\n performanceScore: $PropertyDef<\"double\", \"nullable\", \"single\">;\n hourlyRate: $PropertyDef<\"float\", \"nullable\", \"single\">;\n dateOfJoining: $PropertyDef<\"datetime\", \"nullable\", \"single\">;\n lastUpdated: $PropertyDef<\"timestamp\", \"nullable\", \"single\">;\n skillSet: $PropertyDef<\"string\", \"nullable\", \"single\">;\n skillSetEmbedding: $PropertyDef<\"vector\", \"nullable\", \"single\">;\n // Struct with mainValue - main value fields are city and zipCode\n addressStruct: {\n type: { street: \"string\"; city: \"string\"; zipCode: \"string\" };\n nullable: true;\n multiplicity: false;\n mainValue: { fields: readonly [\"city\", \"zipCode\"] };\n };\n // Array with reducers (e.g., get max salary)\n salaryHistory: {\n type: \"integer\";\n nullable: true;\n multiplicity: true;\n hasReducers: true;\n };\n // Array of structs with both mainValue and reducers\n bonusHistory: {\n type: { year: \"integer\"; amount: \"integer\" };\n nullable: true;\n multiplicity: true;\n mainValue: { fields: readonly [\"amount\"] };\n hasReducers: true;\n };\n };\n rid: \"ri.ontology.main.object-type.401ac022-89eb-4591-8b7e-0a912b9efb44\";\n status: \"ACTIVE\";\n titleProperty: \"fullName\";\n type: \"object\";\n visibility: \"NORMAL\";\n };\n}\n\nexport const EmployeeApiTest: EmployeeApiTest = {\n type: \"object\",\n apiName: \"Employee\",\n primaryKeyApiName: \"employeeId\",\n primaryKeyType: \"integer\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2MA,OAAO,MAAMA,eAAgC,GAAG;EAC9CC,IAAI,EAAE,QAAQ;EACdC,OAAO,EAAE,UAAU;EACnBC,iBAAiB,EAAE,YAAY;EAC/BC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"FooInterfaceApiTest.js","names":["FooInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["FooInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$FooInterface = {};\n\nexport namespace FooInterfaceApiTest {\n export type PropertyKeys = \"name\" | \"description\";\n\n export interface Props {\n readonly description: $PropType[\"string\"] | undefined;\n readonly name: $PropType[\"string\"] | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<FooInterfaceApiTest, FooInterfaceApiTest.ObjectSet>\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = $Osdk.Instance<FooInterfaceApiTest, OPTIONS, K>;\n\n /** @deprecated use OsdkInstance */\n export type OsdkObject<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = OsdkInstance<OPTIONS, K>;\n}\n\nexport interface FooInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"FooInterface\";\n __DefinitionMetadata?: {\n objectSet: FooInterfaceApiTest.ObjectSet;\n props: FooInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$FooInterface;\n strictProps: FooInterfaceApiTest.StrictProps;\n apiName: \"FooInterface\";\n description: \"Its a Foo.\";\n displayName: \"Foo interface\";\n links: {};\n properties: {\n /**\n * display name: 'Description',\n * description: Description of Description\n */\n description: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * display name: 'Name',\n * description: Name of Foo\n */\n name: $PropertyDef<\"string\", \"nullable\", \"single\">;\n };\n rid: \"ri.ontology.main.interface-type.1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const FooInterfaceApiTest: FooInterfaceApiTest = {\n type: \"interface\",\n apiName: \"FooInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoEA,OAAO,MAAMA,mBAAwC,GAAG;EACtDC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,cAAc;EACvBC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FooInterfaceApiTest.js","names":["FooInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["FooInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n PropertyValueWireToClient as $PropType,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$FooInterface = {};\n\nexport namespace FooInterfaceApiTest {\n export type PropertyKeys = \"name\" | \"description\" | \"fooSpt\";\n\n export interface Props {\n readonly description: $PropType[\"string\"] | undefined;\n readonly name: $PropType[\"string\"] | undefined;\n readonly fooSpt: $PropType[\"string\"] | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet\n extends $ObjectSet<FooInterfaceApiTest, FooInterfaceApiTest.ObjectSet>\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = $Osdk.Instance<FooInterfaceApiTest, OPTIONS, K>;\n\n /** @deprecated use OsdkInstance */\n export type OsdkObject<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof FooInterfaceApiTest.Props = keyof FooInterfaceApiTest.Props,\n > = OsdkInstance<OPTIONS, K>;\n}\n\nexport interface FooInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"FooInterface\";\n __DefinitionMetadata?: {\n objectSet: FooInterfaceApiTest.ObjectSet;\n props: FooInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$FooInterface;\n strictProps: FooInterfaceApiTest.StrictProps;\n apiName: \"FooInterface\";\n description: \"Its a Foo.\";\n displayName: \"Foo interface\";\n links: {};\n properties: {\n /**\n * display name: 'Description',\n * description: Description of Description\n */\n description: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * display name: 'Name',\n * description: Name of Foo\n */\n name: $PropertyDef<\"string\", \"nullable\", \"single\">;\n /**\n * Shared property type backed by `fullName` on Employee.\n */\n fooSpt: $PropertyDef<\"string\", \"nullable\", \"single\">;\n };\n rid: \"ri.ontology.main.interface-type.1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const FooInterfaceApiTest: FooInterfaceApiTest = {\n type: \"interface\",\n apiName: \"FooInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyEA,OAAO,MAAMA,mBAAwC,GAAG;EACtDC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,cAAc;EACvBC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export const ReducerInterfaceApiTest = {
18
+ type: "interface",
19
+ apiName: "ReducerInterface",
20
+ osdkMetadata: {}
21
+ };
22
+ //# sourceMappingURL=ReducerInterfaceApiTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReducerInterfaceApiTest.js","names":["ReducerInterfaceApiTest","type","apiName","osdkMetadata"],"sources":["ReducerInterfaceApiTest.ts"],"sourcesContent":["/*\n * Copyright 2025 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 InterfaceDefinition as $InterfaceDefinition,\n ObjectSet as $ObjectSet,\n Osdk as $Osdk,\n PropertyDef as $PropertyDef,\n} from \"../index.js\";\n\nexport type OsdkObjectLinks$ReducerInterfaceApiTest = {};\n\nexport namespace ReducerInterfaceApiTest {\n export type PropertyKeys =\n | \"ifaceAddress\"\n | \"ifaceSalary\"\n | \"ifaceBonus\";\n\n export interface Props {\n readonly ifaceAddress:\n | { street: string; city: string; zipCode: string }\n | undefined;\n readonly ifaceSalary: number[] | undefined;\n readonly ifaceBonus:\n | Array<{ year: number; amount: number }>\n | undefined;\n }\n export type StrictProps = Props;\n\n export interface ObjectSet extends\n $ObjectSet<\n ReducerInterfaceApiTest,\n ReducerInterfaceApiTest.ObjectSet\n >\n {}\n\n export type OsdkInstance<\n OPTIONS extends never | \"$rid\" = never,\n K extends keyof ReducerInterfaceApiTest.Props =\n keyof ReducerInterfaceApiTest.Props,\n > = $Osdk.Instance<ReducerInterfaceApiTest, OPTIONS, K>;\n}\n\nexport interface ReducerInterfaceApiTest extends $InterfaceDefinition {\n osdkMetadata: any;\n type: \"interface\";\n apiName: \"ReducerInterface\";\n __DefinitionMetadata?: {\n objectSet: ReducerInterfaceApiTest.ObjectSet;\n props: ReducerInterfaceApiTest.Props;\n linksType: OsdkObjectLinks$ReducerInterfaceApiTest;\n strictProps: ReducerInterfaceApiTest.StrictProps;\n apiName: \"ReducerInterface\";\n description:\n \"Interface whose properties map to modifier-capable object properties\";\n displayName: \"Reducer Interface\";\n links: {};\n properties: {\n ifaceAddress: $PropertyDef<\n { street: \"string\"; city: \"string\"; zipCode: \"string\" },\n \"nullable\",\n \"single\"\n >;\n ifaceSalary: $PropertyDef<\"integer\", \"nullable\", \"array\">;\n ifaceBonus: $PropertyDef<\n { year: \"integer\"; amount: \"integer\" },\n \"nullable\",\n \"array\"\n >;\n };\n rid: \"ri.ontology.main.interface-type.c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1\";\n type: \"interface\";\n implementedBy: [\"Employee\"];\n };\n}\n\nexport const ReducerInterfaceApiTest: ReducerInterfaceApiTest = {\n type: \"interface\",\n apiName: \"ReducerInterface\",\n osdkMetadata: {},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2EA,OAAO,MAAMA,uBAAgD,GAAG;EAC9DC,IAAI,EAAE,WAAW;EACjBC,OAAO,EAAE,kBAAkB;EAC3BC,YAAY,EAAE,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -40,6 +40,17 @@ export type MapPropNamesToInterface<
40
40
  P extends ValidOsdkPropParams<FROM>
41
41
  > = MaybeStripNamespaces<PropMapToInterface<FROM, TO>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>], TO>;
42
42
  /**
43
+ * True iff the OT `TO` implements interface `FROM` with at least one
44
+ * non-`localProperty` implementation.
45
+ */
46
+ type OtHasNonLocalInterfaceImpl<
47
+ FROM extends ObjectOrInterfaceDefinition,
48
+ TO extends ObjectTypeDefinition,
49
+ Implementations = ApiNameAsString<FROM> extends keyof NonNullable<CompileTimeMetadata<TO>["interfaceImplementations"]> ? NonNullable<CompileTimeMetadata<TO>["interfaceImplementations"]>[ApiNameAsString<FROM>] : undefined
50
+ > = Implementations extends undefined ? false : { [K in keyof Implementations] : Implementations[K] extends {
51
+ type: "localProperty"
52
+ } ? never : K }[keyof Implementations] extends never ? false : true;
53
+ /**
43
54
  * Older version of this helper that allows for `$rid` and co in
44
55
  * the properties field.
45
56
  * @param FROM - the interface or object type to convert from
@@ -62,9 +73,9 @@ type ExtractPropsKeysFromOldPropsStyle<
62
73
  export type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
63
74
  export type GetPropsKeys<
64
75
  Q extends ObjectOrInterfaceDefinition,
65
- P extends PropertyKeys<Q>,
76
+ P,
66
77
  N extends boolean = false
67
- > = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q> : IsAny<P> extends true ? PropertyKeys<Q> : P;
78
+ > = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q> : IsAny<P> extends true ? PropertyKeys<Q> : P & PropertyKeys<Q>;
68
79
  /**
69
80
  * Use `Osdk.Instance` or `YourType.OsdkInstance`
70
81
  */
@@ -95,7 +106,7 @@ export declare namespace Osdk {
95
106
  readonly $link: Q extends {
96
107
  linksType?: any
97
108
  } ? Q["linksType"] : Q extends ObjectOrInterfaceDefinition ? OsdkObjectLinksObject<Q> : never
98
- readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P, OPTIONS>>
109
+ readonly $as: <NEW_Q extends HasModifiers<P> extends true ? ValidToFrom<Q> & ObjectTypeDefinition : ValidToFrom<Q>>(type: Q extends InterfaceDefinition ? NEW_Q extends ObjectTypeDefinition ? OtHasNonLocalInterfaceImpl<Q, NEW_Q> extends true ? never : NEW_Q | string : NEW_Q | string : NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P, OPTIONS>>
99
110
  readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(updatedObject?: Osdk.Instance<Q, any, NEW_PROPS> | { [K in NEW_PROPS]? : CompileTimeMetadata<Q>["props"][K] }) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>
100
111
  readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata: Q extends ObjectTypeDefinition ? {
101
112
  ObjectMetadata: ObjectMetadata
@@ -1 +1 @@
1
- {"mappings":"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","names":["type: NEW_Q | string","updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n }","propertyApiName: PropertyApiName","options?: { locale?: string; timezoneId?: string }"],"sources":["../../src/OsdkObjectFrom.ts"],"version":3,"file":"OsdkObjectFrom.d.ts"}
1
+ {"mappings":"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","names":["type: Q extends InterfaceDefinition\n ? NEW_Q extends ObjectTypeDefinition\n ? OtHasNonLocalInterfaceImpl<Q, NEW_Q> extends true ? never\n : NEW_Q | string\n : NEW_Q | string\n : NEW_Q | string","updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n }","propertyApiName: PropertyApiName","options?: { locale?: string; timezoneId?: string }"],"sources":["../../src/OsdkObjectFrom.ts"],"version":3,"file":"OsdkObjectFrom.d.ts"}
@@ -47,6 +47,7 @@ export interface ObjectMetadata extends ObjectInterfaceBaseMetadata {
47
47
  status: ReleaseStatus | undefined;
48
48
  interfaceMap: Record<string, Record<string, string>>;
49
49
  inverseInterfaceMap: Record<string, Record<string, string>>;
50
+ interfaceImplementations?: Record<string, Record<string, ObjectMetadata.InterfacePropertyImplementation>>;
50
51
  }
51
52
  export declare namespace ObjectMetadata {
52
53
  interface Property {
@@ -89,6 +90,31 @@ export declare namespace ObjectMetadata {
89
90
  targetType: Q["apiName"];
90
91
  multiplicity: M;
91
92
  }
93
+ type InterfacePropertyImplementation = InterfacePropertyLocalImplementation | InterfacePropertyStructFieldImplementation | InterfacePropertyStructImplementation | InterfacePropertyReducedImplementation;
94
+ interface InterfacePropertyLocalImplementation {
95
+ type: "localProperty";
96
+ propertyApiName: string;
97
+ }
98
+ interface InterfacePropertyStructFieldImplementation {
99
+ type: "structField";
100
+ propertyApiName: string;
101
+ structFieldApiName: string;
102
+ }
103
+ interface InterfacePropertyStructImplementation {
104
+ type: "struct";
105
+ mapping: Record<string, {
106
+ type: "property"
107
+ propertyApiName: string
108
+ } | {
109
+ type: "structFieldOfProperty"
110
+ propertyApiName: string
111
+ structFieldApiName: string
112
+ }>;
113
+ }
114
+ interface InterfacePropertyReducedImplementation {
115
+ type: "reduced";
116
+ implementation: InterfacePropertyLocalImplementation | InterfacePropertyStructFieldImplementation | InterfacePropertyStructImplementation;
117
+ }
92
118
  }
93
119
  export interface ObjectTypeDefinition {
94
120
  type: "object";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,cAAc,mCAAmC,kDAAmD;AACpG,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,yBAAyB,wBAAyB;AAEhE,YAAY,oBAAoB,UAAU;CAAE,uBAAuB,CAAE;AAAE,KACrE,YACE,EAAE;AAGN,YAAY;CACV,UAAU;CACV,UAAU,aAAa;IACrB,oBAAoB,GAAG,cAAc;AAEzC,YAAY,8BAA8B;CACxC,MAAM,WAAW;CACjB;CACA;CACA;CACA,YAAY,YAAY,eAAe;CACvC;;;;;;CAMA,aAAa;AACd;AAED,iBAAiB,iCAAiC;CAChD,MAAM,WAAW;CACjB;CACA;CACA;CACA;AACD;AAED,iBAAiB,aAAa,UAAU,8BAA8B;CACpE,0BAA0B;AAC3B;AAED,iBAAiB,uBAAuB,4BAA4B;CAClE,MAAM;CACN,8BAA8B;CAC9B,0BAA0B;CAC1B,OAAO,eAEL,eAAe;CAEjB,gBAAgB;CAChB,MAAM;CACN,YAAY;CACZ;CACA,QAAQ;CACR,cAAc,eAEZ;CAKF,qBAAqB,eAEnB;AAKH;AAED,yBAAiB;WACE,SAAS;EACxB;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;EACA,kBAAkB;EAClB,YAAY;GACV;EACD;EACD;;;;;;;;;EASA,eAAe;CAChB;MAMW,uBAAuB;;;;;;EAMjC,MAAM;EACN,cAAc,SAAS;CACxB;WAEgB;EACf,UAAU;EACV;GACA;EACA,uBAAuB;EACvB,YAAY,EAAE;EACd,cAAc;CACf;;AAGH,iBAAiB,qBAAqB;CACpC,MAAM;CACN;CACA;CACA,iBAAiB;CACjB,eAAe;CACf,uBACI,iBACA;AACL;AAED,YAAY,wBACV,UAAU,qCAEF,oBAAoB,GAAG;AAGjC,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,iBAAiB;CACxC,UAAU,UAAU,WAAW;CAC/B;CACA,+BAA+B;UACvB,eAAe,SAAS;CAChC,MAAM;CACN,cAAc,UAAU,UAAU,OAAO;CACzC,UAAU,UAAU,aAAa,OAAO;CACxC,WAAW,8CACP;EAAE,QAAQ;CAAmB;CAEjC,aAAa;AACd;AAED,YAAY,gBACR,WACA,iBACA,eACA;KAEC,uBAAuB,WAAW,cAAc;KAEhD,gBAAgB;CACnB,MAAM;CACN;CACA;AACD;KAEI,OAAO","names":[],"sources":["../../../src/ontology/ObjectTypeDefinition.ts"],"version":3,"file":"ObjectTypeDefinition.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,cAAc,mCAAmC,kDAAmD;AACpG,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,yBAAyB,wBAAyB;AAEhE,YAAY,oBAAoB,UAAU;CAAE,uBAAuB,CAAE;AAAE,KACrE,YACE,EAAE;AAGN,YAAY;CACV,UAAU;CACV,UAAU,aAAa;IACrB,oBAAoB,GAAG,cAAc;AAEzC,YAAY,8BAA8B;CACxC,MAAM,WAAW;CACjB;CACA;CACA;CACA,YAAY,YAAY,eAAe;CACvC;;;;;;CAMA,aAAa;AACd;AAED,iBAAiB,iCAAiC;CAChD,MAAM,WAAW;CACjB;CACA;CACA;CACA;AACD;AAED,iBAAiB,aAAa,UAAU,8BAA8B;CACpE,0BAA0B;AAC3B;AAED,iBAAiB,uBAAuB,4BAA4B;CAClE,MAAM;CACN,8BAA8B;CAC9B,0BAA0B;CAC1B,OAAO,eAEL,eAAe;CAEjB,gBAAgB;CAChB,MAAM;CACN,YAAY;CACZ;CACA,QAAQ;CACR,cAAc,eAEZ;CAKF,qBAAqB,eAEnB;CAKF,2BAA2B,eAEzB,eAEE,eAAe;AAGpB;AAED,yBAAiB;WACE,SAAS;EACxB;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;EACA,kBAAkB;EAClB,YAAY;GACV;EACD;EACD;;;;;;;;;EASA,eAAe;CAChB;MAMW,uBAAuB;;;;;;EAMjC,MAAM;EACN,cAAc,SAAS;CACxB;WAEgB;EACf,UAAU;EACV;GACA;EACA,uBAAuB;EACvB,YAAY,EAAE;EACd,cAAc;CACf;MAEW,kCACR,uCACA,6CACA,wCACA;WAEa,qCAAqC;EACpD,MAAM;EACN;CACD;WAEgB,2CAA2C;EAC1D,MAAM;EACN;EACA;CACD;WAEgB,sCAAsC;EACrD,MAAM;EACN,SAAS,eAEL;GAAE,MAAM;GAAY;EAAyB,IAC7C;GACA,MAAM;GACN;GACA;EACD;CAEJ;WAEgB,uCAAuC;EACtD,MAAM;EACN,gBACI,uCACA,6CACA;CACL;;AAGH,iBAAiB,qBAAqB;CACpC,MAAM;CACN;CACA;CACA,iBAAiB;CACjB,eAAe;CACf,uBACI,iBACA;AACL;AAED,YAAY,wBACV,UAAU,qCAEF,oBAAoB,GAAG;AAGjC,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,iBAAiB;CACxC,UAAU,UAAU,WAAW;CAC/B;CACA,+BAA+B;UACvB,eAAe,SAAS;CAChC,MAAM;CACN,cAAc,UAAU,UAAU,OAAO;CACzC,UAAU,UAAU,aAAa,OAAO;CACxC,WAAW,8CACP;EAAE,QAAQ;CAAmB;CAEjC,aAAa;AACd;AAED,YAAY,gBACR,WACA,iBACA,eACA;KAEC,uBAAuB,WAAW,cAAc;KAEhD,gBAAgB;CACnB,MAAM;CACN;CACA;AACD;KAEI,OAAO","names":[],"sources":["../../../src/ontology/ObjectTypeDefinition.ts"],"version":3,"file":"ObjectTypeDefinition.d.ts"}
@@ -55,16 +55,56 @@ export interface EmployeeApiTest extends $ObjectTypeDefinition {
55
55
  color: "blue"
56
56
  name: "person"
57
57
  }
58
- implements: ["FooInterface"]
58
+ implements: ["FooInterface", "ReducerInterface"]
59
59
  interfaceMap: {
60
60
  FooInterface: {
61
61
  fooSpt: "fullName"
62
62
  }
63
+ ReducerInterface: {
64
+ ifaceAddress: "addressStruct"
65
+ ifaceSalary: "salaryHistory"
66
+ ifaceBonus: "bonusHistory"
67
+ }
63
68
  }
64
69
  inverseInterfaceMap: {
65
70
  FooInterface: {
66
71
  fullName: "fooSpt"
67
72
  }
73
+ ReducerInterface: {
74
+ addressStruct: "ifaceAddress"
75
+ salaryHistory: "ifaceSalary"
76
+ bonusHistory: "ifaceBonus"
77
+ }
78
+ }
79
+ interfaceImplementations: {
80
+ FooInterface: {
81
+ fooSpt: {
82
+ type: "localProperty"
83
+ propertyApiName: "fullName"
84
+ }
85
+ }
86
+ ReducerInterface: {
87
+ ifaceAddress: {
88
+ type: "structField"
89
+ propertyApiName: "addressStruct"
90
+ structFieldApiName: "city"
91
+ }
92
+ ifaceSalary: {
93
+ type: "reduced"
94
+ implementation: {
95
+ type: "localProperty"
96
+ propertyApiName: "salaryHistory"
97
+ }
98
+ }
99
+ ifaceBonus: {
100
+ type: "reduced"
101
+ implementation: {
102
+ type: "structField"
103
+ propertyApiName: "bonusHistory"
104
+ structFieldApiName: "amount"
105
+ }
106
+ }
107
+ }
68
108
  }
69
109
  links: {
70
110
  lead: $ObjectMetadata.Link<EmployeeApiTest, false>
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,kBAAkB,iBAClB,aAAa,YACb,wBAAwB,uBACxB,eAAe,cACf,6BAA6B,WAC7B,sBAAsB,2BACjB,aAAc;AAErB,yBAAiB;MACH,eACR,eACA,aACA,UACA,eACA,aACA,eACA,mBACA,2BACA,aACA,sBACA,SACA,qBACA,eACA,kBACA,gBACA,aACA,sBACA,kBACA,kBACA;WAEa,MAAM;WACZ,MAAM,oBAAoB;WAC1B,OAAO,gBAAgB;CACjC;WAEgB,MAAM;WACZ,OAAO,UAAU;WACjB,UAAU,UAAU;WACpB,YAAY,UAAU;WACtB,YAAY,UAAU;WACtB,UAAU,UAAU;WACpB,YAAY,UAAU;WACtB,gBAAgB,UAAU;WAC1B,wBACL,UAAU;WAEL,UAAU,UAAU;WACpB,mBAAmB,UAAU;WAC7B,MAAM,UAAU;WAChB,kBAAkB,UAAU;WAC5B,YAAY,UAAU;WACtB,eAAe,UAAU;WACzB,aAAa,UAAU;WACvB,UAAU,UAAU;WACpB,mBAAmB,UAAU;WAE7B,eACL;GAAE;GAAgB;GAAc;EAAiB;WAG5C;WAEA,cACL,MAAM;GAAE;GAAc;EAAgB;CAE3C;MACW,cAAc;WAET,kBACP,WAAW,iBAAiB,gBAAgB,WACtD,CAAE;;AAGJ,iBAAiB,wBAAwB,sBAAsB;CAC7D,MAAM;CACN,SAAS;CACT,mBAAmB;CACnB,gBAAgB;CAChB,uBAAuB;EACrB,WAAW,gBAAgB;EAC3B,OAAO,gBAAgB;EACvB,WAAW,gBAAgB;EAC3B,aAAa,gBAAgB;EAC7B,SAAS;EACT,aAAa;EACb,aAAa;EACb,MAAM;GACJ,MAAM;GACN,OAAO;GACP,MAAM;EACP;EACD,aAAa;EACb,cAAc;GACZ,cAAc;IACZ,QAAQ;GACT;EACF;EACD,qBAAqB;GACnB,cAAc;IACZ,UAAU;GACX;EACF;EACD,OAAO;GACL,MAAM,gBAAgB,KAAK,iBAAiB;GAC5C,OAAO,gBAAgB,KAAK,iBAAiB;EAC9C;EACD,mBAAmB;EACnB,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;GACV,OAAO,aAAa,UAAU,YAAY;GAC1C,UAAU,aAAa,UAAU,YAAY;GAC7C,YAAY,aAAa,WAAW,YAAY;GAChD,YAAY,aAAa,cAAc,YAAY;GACnD,UAAU,aAAa,YAAY,YAAY;GAC/C,YAAY,aAAa,qBAAqB,YAAY;GAC1D,gBAAgB,aAAa,kBAAkB,YAAY;GAC3D,wBAAwB,aACtB,0BACA,YACA;GAEF,UAAU,aAAa,WAAW,YAAY;GAC9C,mBAAmB,aAAa,QAAQ,YAAY;GACpD,MAAM,aAAa,SAAS,YAAY;GACxC,kBAAkB,aAAa,UAAU,YAAY;GACrD,YAAY,aAAa,SAAS,YAAY;GAC9C,eAAe,aAAa,YAAY,YAAY;GACpD,aAAa,aAAa,aAAa,YAAY;GACnD,UAAU,aAAa,UAAU,YAAY;GAC7C,mBAAmB,aAAa,UAAU,YAAY;GAEtD,eAAe;IACb,MAAM;KAAE,QAAQ;KAAU,MAAM;KAAU,SAAS;IAAU;IAC7D,UAAU;IACV,cAAc;IACd,WAAW;KAAE,kBAAkB,QAAQ;IAAY;GACpD;GAED,eAAe;IACb,MAAM;IACN,UAAU;IACV,cAAc;IACd,aAAa;GACd;GAED,cAAc;IACZ,MAAM;KAAE,MAAM;KAAW,QAAQ;IAAW;IAC5C,UAAU;IACV,cAAc;IACd,WAAW;KAAE,kBAAkB;IAAW;IAC1C,aAAa;GACd;EACF;EACD,KAAK;EACL,QAAQ;EACR,eAAe;EACf,MAAM;EACN,YAAY;CACb;AACF;AAED,OAAO,cAAMA,iBAAiB","names":["EmployeeApiTest: EmployeeApiTest"],"sources":["../../../src/test/EmployeeApiTest.ts"],"version":3,"file":"EmployeeApiTest.d.ts"}
1
+ {"mappings":"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","names":["EmployeeApiTest: EmployeeApiTest"],"sources":["../../../src/test/EmployeeApiTest.ts"],"version":3,"file":"EmployeeApiTest.d.ts"}
@@ -1,10 +1,11 @@
1
1
  import type { InterfaceDefinition as $InterfaceDefinition, ObjectSet as $ObjectSet, Osdk as $Osdk, PropertyDef as $PropertyDef, PropertyValueWireToClient as $PropType } from "../index.js";
2
2
  export type OsdkObjectLinks$FooInterface = {};
3
3
  export declare namespace FooInterfaceApiTest {
4
- type PropertyKeys = "name" | "description";
4
+ type PropertyKeys = "name" | "description" | "fooSpt";
5
5
  interface Props {
6
6
  readonly description: $PropType["string"] | undefined;
7
7
  readonly name: $PropType["string"] | undefined;
8
+ readonly fooSpt: $PropType["string"] | undefined;
8
9
  }
9
10
  type StrictProps = Props;
10
11
  interface ObjectSet extends $ObjectSet<FooInterfaceApiTest, FooInterfaceApiTest.ObjectSet> {}
@@ -41,6 +42,10 @@ export interface FooInterfaceApiTest extends $InterfaceDefinition {
41
42
  * description: Name of Foo
42
43
  */
43
44
  name: $PropertyDef<"string", "nullable", "single">
45
+ /**
46
+ * Shared property type backed by `fullName` on Employee.
47
+ */
48
+ fooSpt: $PropertyDef<"string", "nullable", "single">
44
49
  }
45
50
  rid: "ri.ontology.main.interface-type.1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b"
46
51
  type: "interface"
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,uBAAuB,sBACvB,aAAa,YACb,QAAQ,OACR,eAAe,cACf,6BAA6B,iBACxB,aAAc;AAErB,YAAY,+BAA+B,CAAE;AAE7C,yBAAiB;MACH,eAAe,SAAS;WAEnB,MAAM;WACZ,aAAa,UAAU;WACvB,MAAM,UAAU;CAC1B;MACW,cAAc;WAET,kBACP,WAAW,qBAAqB,oBAAoB,WAC9D,CAAE;MAEU;EACV,wBAAwB;EACxB,gBAAgB,oBAAoB,cAAc,oBAAoB;KACpE,MAAM,SAAS,qBAAqB,SAAS;MAGrC;EACV,wBAAwB;EACxB,gBAAgB,oBAAoB,cAAc,oBAAoB;KACpE,aAAa,SAAS;;AAG5B,iBAAiB,4BAA4B,qBAAqB;CAChE;CACA,MAAM;CACN,SAAS;CACT,uBAAuB;EACrB,WAAW,oBAAoB;EAC/B,OAAO,oBAAoB;EAC3B,WAAW;EACX,aAAa,oBAAoB;EACjC,SAAS;EACT,aAAa;EACb,aAAa;EACb,OAAO,CAAE;EACT,YAAY;;;;;GAKV,aAAa,aAAa,UAAU,YAAY;;;;;GAKhD,MAAM,aAAa,UAAU,YAAY;EAC1C;EACD,KAAK;EACL,MAAM;EACN,gBAAgB;CACjB;AACF;AAED,OAAO,cAAMA,qBAAqB","names":["FooInterfaceApiTest: FooInterfaceApiTest"],"sources":["../../../src/test/FooInterfaceApiTest.ts"],"version":3,"file":"FooInterfaceApiTest.d.ts"}
1
+ {"mappings":"AAgBA,cACE,uBAAuB,sBACvB,aAAa,YACb,QAAQ,OACR,eAAe,cACf,6BAA6B,iBACxB,aAAc;AAErB,YAAY,+BAA+B,CAAE;AAE7C,yBAAiB;MACH,eAAe,SAAS,gBAAgB;WAEnC,MAAM;WACZ,aAAa,UAAU;WACvB,MAAM,UAAU;WAChB,QAAQ,UAAU;CAC5B;MACW,cAAc;WAET,kBACP,WAAW,qBAAqB,oBAAoB,WAC9D,CAAE;MAEU;EACV,wBAAwB;EACxB,gBAAgB,oBAAoB,cAAc,oBAAoB;KACpE,MAAM,SAAS,qBAAqB,SAAS;MAGrC;EACV,wBAAwB;EACxB,gBAAgB,oBAAoB,cAAc,oBAAoB;KACpE,aAAa,SAAS;;AAG5B,iBAAiB,4BAA4B,qBAAqB;CAChE;CACA,MAAM;CACN,SAAS;CACT,uBAAuB;EACrB,WAAW,oBAAoB;EAC/B,OAAO,oBAAoB;EAC3B,WAAW;EACX,aAAa,oBAAoB;EACjC,SAAS;EACT,aAAa;EACb,aAAa;EACb,OAAO,CAAE;EACT,YAAY;;;;;GAKV,aAAa,aAAa,UAAU,YAAY;;;;;GAKhD,MAAM,aAAa,UAAU,YAAY;;;;GAIzC,QAAQ,aAAa,UAAU,YAAY;EAC5C;EACD,KAAK;EACL,MAAM;EACN,gBAAgB;CACjB;AACF;AAED,OAAO,cAAMA,qBAAqB","names":["FooInterfaceApiTest: FooInterfaceApiTest"],"sources":["../../../src/test/FooInterfaceApiTest.ts"],"version":3,"file":"FooInterfaceApiTest.d.ts"}
@@ -0,0 +1,54 @@
1
+ import type { InterfaceDefinition as $InterfaceDefinition, ObjectSet as $ObjectSet, Osdk as $Osdk, PropertyDef as $PropertyDef } from "../index.js";
2
+ export type OsdkObjectLinks$ReducerInterfaceApiTest = {};
3
+ export declare namespace ReducerInterfaceApiTest {
4
+ type PropertyKeys = "ifaceAddress" | "ifaceSalary" | "ifaceBonus";
5
+ interface Props {
6
+ readonly ifaceAddress: {
7
+ street: string
8
+ city: string
9
+ zipCode: string
10
+ } | undefined;
11
+ readonly ifaceSalary: number[] | undefined;
12
+ readonly ifaceBonus: Array<{
13
+ year: number
14
+ amount: number
15
+ }> | undefined;
16
+ }
17
+ type StrictProps = Props;
18
+ interface ObjectSet extends $ObjectSet<ReducerInterfaceApiTest, ReducerInterfaceApiTest.ObjectSet> {}
19
+ type OsdkInstance<
20
+ OPTIONS extends never | "$rid" = never,
21
+ K extends keyof ReducerInterfaceApiTest.Props = keyof ReducerInterfaceApiTest.Props
22
+ > = $Osdk.Instance<ReducerInterfaceApiTest, OPTIONS, K>;
23
+ }
24
+ export interface ReducerInterfaceApiTest extends $InterfaceDefinition {
25
+ osdkMetadata: any;
26
+ type: "interface";
27
+ apiName: "ReducerInterface";
28
+ __DefinitionMetadata?: {
29
+ objectSet: ReducerInterfaceApiTest.ObjectSet
30
+ props: ReducerInterfaceApiTest.Props
31
+ linksType: OsdkObjectLinks$ReducerInterfaceApiTest
32
+ strictProps: ReducerInterfaceApiTest.StrictProps
33
+ apiName: "ReducerInterface"
34
+ description: "Interface whose properties map to modifier-capable object properties"
35
+ displayName: "Reducer Interface"
36
+ links: {}
37
+ properties: {
38
+ ifaceAddress: $PropertyDef<{
39
+ street: "string"
40
+ city: "string"
41
+ zipCode: "string"
42
+ }, "nullable", "single">
43
+ ifaceSalary: $PropertyDef<"integer", "nullable", "array">
44
+ ifaceBonus: $PropertyDef<{
45
+ year: "integer"
46
+ amount: "integer"
47
+ }, "nullable", "array">
48
+ }
49
+ rid: "ri.ontology.main.interface-type.c1c1c1c1-c1c1-c1c1-c1c1-c1c1c1c1c1c1"
50
+ type: "interface"
51
+ implementedBy: ["Employee"]
52
+ };
53
+ }
54
+ export declare const ReducerInterfaceApiTest: ReducerInterfaceApiTest;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,uBAAuB,sBACvB,aAAa,YACb,QAAQ,OACR,eAAe,oBACV,aAAc;AAErB,YAAY,0CAA0C,CAAE;AAExD,yBAAiB;MACH,eACR,iBACA,gBACA;WAEa,MAAM;WACZ,cACL;GAAE;GAAgB;GAAc;EAAiB;WAE5C;WACA,YACL,MAAM;GAAE;GAAc;EAAgB;CAE3C;MACW,cAAc;WAET,kBACf,WACE,yBACA,wBAAwB,WAE5B,CAAE;MAEU;EACV,wBAAwB;EACxB,gBAAgB,wBAAwB,cAChC,wBAAwB;KAC9B,MAAM,SAAS,yBAAyB,SAAS;;AAGvD,iBAAiB,gCAAgC,qBAAqB;CACpE;CACA,MAAM;CACN,SAAS;CACT,uBAAuB;EACrB,WAAW,wBAAwB;EACnC,OAAO,wBAAwB;EAC/B,WAAW;EACX,aAAa,wBAAwB;EACrC,SAAS;EACT,aACE;EACF,aAAa;EACb,OAAO,CAAE;EACT,YAAY;GACV,cAAc,aACZ;IAAE,QAAQ;IAAU,MAAM;IAAU,SAAS;GAAU,GACvD,YACA;GAEF,aAAa,aAAa,WAAW,YAAY;GACjD,YAAY,aACV;IAAE,MAAM;IAAW,QAAQ;GAAW,GACtC,YACA;EAEH;EACD,KAAK;EACL,MAAM;EACN,gBAAgB;CACjB;AACF;AAED,OAAO,cAAMA,yBAAyB","names":["ReducerInterfaceApiTest: ReducerInterfaceApiTest"],"sources":["../../../src/test/ReducerInterfaceApiTest.ts"],"version":3,"file":"ReducerInterfaceApiTest.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/api",
3
- "version": "2.39.0",
3
+ "version": "2.39.1-main-010b12661f90af7da692db4ee09ea6b0dcdce3c6",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",