@osdk/api 2.4.0-beta.12 → 2.4.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.4.0-beta.14
4
+
5
+ ## 2.4.0-beta.13
6
+
7
+ ### Minor Changes
8
+
9
+ - 4bc848b: Add interface link support.
10
+
3
11
  ## 2.4.0-beta.12
4
12
 
5
13
  ## 2.4.0-beta.11
@@ -1,2 +1,17 @@
1
- export {};
1
+ /*
2
+ * Copyright 2023 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
+ export let InterfaceMetadata;
2
17
  //# sourceMappingURL=InterfaceDefinition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceDefinition.js","names":[],"sources":["InterfaceDefinition.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 ObjectInterfaceBaseMetadata,\n ObjectInterfaceCompileDefinition,\n} from \"./ObjectTypeDefinition.js\";\n\nexport interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {\n type: \"interface\";\n implementedBy?: ReadonlyArray<string>;\n}\n\nexport interface InterfaceDefinition {\n type: \"interface\";\n apiName: string;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & InterfaceMetadata\n & ObjectInterfaceCompileDefinition;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"InterfaceDefinition.js","names":["InterfaceMetadata"],"sources":["InterfaceDefinition.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 ObjectInterfaceBaseMetadata,\n ObjectInterfaceCompileDefinition,\n ObjectTypeDefinition,\n} from \"./ObjectTypeDefinition.js\";\n\nexport interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {\n type: \"interface\";\n implementedBy?: ReadonlyArray<string>;\n links: Record<\n string,\n InterfaceMetadata.Link<any, any>\n >;\n}\n\nexport interface InterfaceDefinition {\n type: \"interface\";\n apiName: string;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & InterfaceMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport namespace InterfaceMetadata {\n export interface Link<\n Q extends ObjectTypeDefinition | InterfaceDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetTypeApiName: Q[\"apiName\"];\n multiplicity: M;\n targetType: Q[\"type\"];\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WAyCiBA,iBAAiB","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 { 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 links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\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 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 }\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 osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectTypeDefinition,\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> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\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,WA2FiBA,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 { 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 }\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 osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectTypeDefinition,\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> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\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,WA2FiBA,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkUtils.js","names":[],"sources":["LinkUtils.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 { ObjectOrInterfaceDefinition } from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\n\nexport type LinkNames<Q extends ObjectOrInterfaceDefinition> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport type LinkedType<\n Q extends ObjectOrInterfaceDefinition,\n L extends LinkNames<Q>,\n> = NonNullable<CompileTimeMetadata<Q>[\"links\"][L][\"__OsdkLinkTargetType\"]>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"LinkUtils.js","names":[],"sources":["LinkUtils.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 { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type { ObjectOrInterfaceDefinition } from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\n\nexport type LinkNames<Q extends ObjectOrInterfaceDefinition> = Q extends\n InterfaceDefinition ? keyof CompileTimeMetadata<Q>[\"links\"]\n :\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport type LinkedType<\n Q extends ObjectOrInterfaceDefinition,\n L extends LinkNames<Q>,\n> = NonNullable<CompileTimeMetadata<Q>[\"links\"][L][\"__OsdkLinkTargetType\"]>;\n"],"mappings":"","ignoreList":[]}
@@ -311,7 +311,6 @@ type ObjectInterfaceBaseMetadata = {
311
311
  displayName: string;
312
312
  description: string | undefined;
313
313
  properties: Record<any, ObjectMetadata.Property>;
314
- links: Record<string, ObjectMetadata.Link<any, any>>;
315
314
  rid: string;
316
315
  /**
317
316
  * Represents the "super interfaces" of this object.
@@ -334,6 +333,7 @@ interface ObjectMetadata extends ObjectInterfaceBaseMetadata {
334
333
  type: "object";
335
334
  primaryKeyApiName: keyof this["properties"];
336
335
  titleProperty: keyof this["properties"];
336
+ links: Record<string, ObjectMetadata.Link<any, any>>;
337
337
  primaryKeyType: PrimaryKeyTypes;
338
338
  icon: Icon | undefined;
339
339
  visibility: ObjectTypeVisibility | undefined;
@@ -378,16 +378,25 @@ type BlueprintIcon = {
378
378
  };
379
379
  type Icon = BlueprintIcon;
380
380
 
381
- interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {
382
- type: "interface";
383
- implementedBy?: ReadonlyArray<string>;
384
- }
385
381
  interface InterfaceDefinition {
386
382
  type: "interface";
387
383
  apiName: string;
388
384
  osdkMetadata?: OsdkMetadata;
389
385
  __DefinitionMetadata?: InterfaceMetadata & ObjectInterfaceCompileDefinition;
390
386
  }
387
+ interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {
388
+ type: "interface";
389
+ implementedBy?: ReadonlyArray<string>;
390
+ links: Record<string, InterfaceMetadata.Link<any, any>>;
391
+ }
392
+ declare namespace InterfaceMetadata {
393
+ interface Link<Q extends ObjectTypeDefinition | InterfaceDefinition, M extends boolean> {
394
+ __OsdkLinkTargetType?: Q;
395
+ targetTypeApiName: Q["apiName"];
396
+ multiplicity: M;
397
+ targetType: Q["type"];
398
+ }
399
+ }
391
400
 
392
401
  type SimplePropertyDef = WirePropertyTypes | undefined | Array<WirePropertyTypes>;
393
402
  declare namespace SimplePropertyDef {
@@ -1017,7 +1026,7 @@ type PropertyWhereClause<T extends ObjectOrInterfaceDefinition> = {
1017
1026
  };
1018
1027
  type WhereClause<T extends ObjectOrInterfaceDefinition> = OrWhereClause<T> | AndWhereClause<T> | NotWhereClause<T> | (IsNever<keyof CompileTimeMetadata<T>["properties"]> extends true ? Record<string, never> : PropertyWhereClause<T>);
1019
1028
 
1020
- type LinkNames<Q extends ObjectOrInterfaceDefinition> = keyof CompileTimeMetadata<Q>["links"] & string;
1029
+ type LinkNames<Q extends ObjectOrInterfaceDefinition> = Q extends InterfaceDefinition ? keyof CompileTimeMetadata<Q>["links"] : keyof CompileTimeMetadata<Q>["links"] & string;
1021
1030
  type LinkedType<Q extends ObjectOrInterfaceDefinition, L extends LinkNames<Q>> = NonNullable<CompileTimeMetadata<Q>["links"][L]["__OsdkLinkTargetType"]>;
1022
1031
 
1023
1032
  type WithPropertiesNumerics = "integer" | "double" | "float" | "short" | "long";
@@ -1357,4 +1366,4 @@ interface Subscribe<Q extends ObjectOrInterfaceDefinition> {
1357
1366
  interface ObjectSetCleanedTypes<Q extends ObjectOrInterfaceDefinition, D extends Record<string, SimplePropertyDef>, MERGED extends ObjectOrInterfaceDefinition & Q> extends MinimalObjectSet<Q, D>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, Subscribe<MERGED>, NearestNeighbors<Q> {
1358
1367
  }
1359
1368
 
1360
- export { type InterfaceMetadata as $, type AttachmentUpload as A, type Augment as B, type CompileTimeMetadata as C, DistanceUnitMapping as D, type Augments as E, type FetchPageArgs as F, type GeoFilterOptions as G, ObjectSetArgs as H, type InterfaceDefinition as I, type SelectArg as J, type SelectArgToKeys as K, type FetchPageResult as L, type MediaReference as M, NullabilityAdherence as N, type ObjectTypeDefinition as O, type PropertyValueWireToClient as P, type SingleOsdkResult as Q, type ReleaseStatus as R, type SingleLinkAccessor as S, type Media as T, type MediaMetadata as U, type ValidAggregationKeys as V, type WhereClause as W, isOk as X, type Result as Y, type BaseObjectSet as Z, ObjectSetSubscription as _, type MediaUpload as a, type ObjectOrInterfaceDefinition as a0, PropertyKeys as a1, type ObjectSpecifier as a2, ObjectMetadata as a3, type PropertyDef as a4, type VersionBound as a5, type BaseWirePropertyTypes as a6, type WirePropertyTypes as a7, type PrimaryKeyType as a8, type ConvertProps as a9, Osdk as aa, type PageResult as ab, TimeseriesDurationMapping as ac, type GeotimeSeriesProperty as ad, type TimeSeriesPoint as ae, type TimeSeriesProperty as af, type TimeSeriesQuery as ag, type LinkedType as ah, type LinkNames as ai, type ExtractOptions as aj, type MinimalObjectSet as ak, type Attachment as b, type ObjectIdentifiers as c, type OsdkObjectPrimaryKeyType as d, type ObjectSet as e, type OsdkMetadata as f, type PrimaryKeyTypes as g, type OsdkBase as h, type AggregateOpts as i, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as j, type AggregationResultsWithGroups as k, type AggregationResultsWithoutGroups as l, type AggregationClause as m, type AggregationsResults as n, type GeoFilter_Intersects as o, type GeoFilter_Within as p, type PossibleWhereClauseFilters as q, type OsdkObjectCreatePropertyType as r, type OsdkObjectPropertyType as s, type OsdkObjectLinksObject as t, DerivedProperty as u, DurationMapping as v, type AllGroupByValues as w, type GroupByClause as x, type GroupByRange as y, type AsyncIterArgs as z };
1369
+ export { InterfaceMetadata as $, type AttachmentUpload as A, type Augment as B, type CompileTimeMetadata as C, DistanceUnitMapping as D, type Augments as E, type FetchPageArgs as F, type GeoFilterOptions as G, ObjectSetArgs as H, type InterfaceDefinition as I, type SelectArg as J, type SelectArgToKeys as K, type FetchPageResult as L, type MediaReference as M, NullabilityAdherence as N, type ObjectTypeDefinition as O, type PropertyValueWireToClient as P, type SingleOsdkResult as Q, type ReleaseStatus as R, type SingleLinkAccessor as S, type Media as T, type MediaMetadata as U, type ValidAggregationKeys as V, type WhereClause as W, isOk as X, type Result as Y, type BaseObjectSet as Z, ObjectSetSubscription as _, type MediaUpload as a, type ObjectOrInterfaceDefinition as a0, PropertyKeys as a1, type ObjectSpecifier as a2, ObjectMetadata as a3, type PropertyDef as a4, type VersionBound as a5, type BaseWirePropertyTypes as a6, type WirePropertyTypes as a7, type PrimaryKeyType as a8, type ConvertProps as a9, Osdk as aa, type PageResult as ab, TimeseriesDurationMapping as ac, type GeotimeSeriesProperty as ad, type TimeSeriesPoint as ae, type TimeSeriesProperty as af, type TimeSeriesQuery as ag, type LinkedType as ah, type LinkNames as ai, type ExtractOptions as aj, type MinimalObjectSet as ak, type Attachment as b, type ObjectIdentifiers as c, type OsdkObjectPrimaryKeyType as d, type ObjectSet as e, type OsdkMetadata as f, type PrimaryKeyTypes as g, type OsdkBase as h, type AggregateOpts as i, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as j, type AggregationResultsWithGroups as k, type AggregationResultsWithoutGroups as l, type AggregationClause as m, type AggregationsResults as n, type GeoFilter_Intersects as o, type GeoFilter_Within as p, type PossibleWhereClauseFilters as q, type OsdkObjectCreatePropertyType as r, type OsdkObjectPropertyType as s, type OsdkObjectLinksObject as t, DerivedProperty as u, DurationMapping as v, type AllGroupByValues as w, type GroupByClause as x, type GroupByRange as y, type AsyncIterArgs as z };
@@ -1,5 +1,5 @@
1
- import { A as AttachmentUpload, M as MediaReference, a as MediaUpload, b as Attachment, O as ObjectTypeDefinition, c as ObjectIdentifiers, d as OsdkObjectPrimaryKeyType, e as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, f as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, g as PrimaryKeyTypes, h as OsdkBase } from './ObjectSet-DmnkezS6.cjs';
2
- export { i as AggregateOpts, j as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, m as AggregationClause, k as AggregationResultsWithGroups, l as AggregationResultsWithoutGroups, n as AggregationsResults, w as AllGroupByValues, z as AsyncIterArgs, B as Augment, E as Augments, Z as BaseObjectSet, a6 as BaseWirePropertyTypes, a9 as ConvertProps, u as DerivedProperty, D as DistanceUnitMapping, v as DurationMapping, F as FetchPageArgs, L as FetchPageResult, G as GeoFilterOptions, o as GeoFilter_Intersects, p as GeoFilter_Within, ad as GeotimeSeriesProperty, x as GroupByClause, y as GroupByRange, $ as InterfaceMetadata, ai as LinkNames, ah as LinkedType, T as Media, U as MediaMetadata, N as NullabilityAdherence, a3 as ObjectMetadata, a0 as ObjectOrInterfaceDefinition, H as ObjectSetArgs, _ as ObjectSetSubscription, a2 as ObjectSpecifier, aa as Osdk, r as OsdkObjectCreatePropertyType, t as OsdkObjectLinksObject, s as OsdkObjectPropertyType, ab as PageResult, q as PossibleWhereClauseFilters, a8 as PrimaryKeyType, a4 as PropertyDef, a1 as PropertyKeys, Y as Result, J as SelectArg, K as SelectArgToKeys, S as SingleLinkAccessor, Q as SingleOsdkResult, ae as TimeSeriesPoint, af as TimeSeriesProperty, ag as TimeSeriesQuery, ac as TimeseriesDurationMapping, V as ValidAggregationKeys, a5 as VersionBound, W as WhereClause, a7 as WirePropertyTypes, X as isOk } from './ObjectSet-DmnkezS6.cjs';
1
+ import { A as AttachmentUpload, M as MediaReference, a as MediaUpload, b as Attachment, O as ObjectTypeDefinition, c as ObjectIdentifiers, d as OsdkObjectPrimaryKeyType, e as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, f as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, g as PrimaryKeyTypes, h as OsdkBase } from './ObjectSet-8usZkzgx.cjs';
2
+ export { i as AggregateOpts, j as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, m as AggregationClause, k as AggregationResultsWithGroups, l as AggregationResultsWithoutGroups, n as AggregationsResults, w as AllGroupByValues, z as AsyncIterArgs, B as Augment, E as Augments, Z as BaseObjectSet, a6 as BaseWirePropertyTypes, a9 as ConvertProps, u as DerivedProperty, D as DistanceUnitMapping, v as DurationMapping, F as FetchPageArgs, L as FetchPageResult, G as GeoFilterOptions, o as GeoFilter_Intersects, p as GeoFilter_Within, ad as GeotimeSeriesProperty, x as GroupByClause, y as GroupByRange, $ as InterfaceMetadata, ai as LinkNames, ah as LinkedType, T as Media, U as MediaMetadata, N as NullabilityAdherence, a3 as ObjectMetadata, a0 as ObjectOrInterfaceDefinition, H as ObjectSetArgs, _ as ObjectSetSubscription, a2 as ObjectSpecifier, aa as Osdk, r as OsdkObjectCreatePropertyType, t as OsdkObjectLinksObject, s as OsdkObjectPropertyType, ab as PageResult, q as PossibleWhereClauseFilters, a8 as PrimaryKeyType, a4 as PropertyDef, a1 as PropertyKeys, Y as Result, J as SelectArg, K as SelectArgToKeys, S as SingleLinkAccessor, Q as SingleOsdkResult, ae as TimeSeriesPoint, af as TimeSeriesProperty, ag as TimeSeriesQuery, ac as TimeseriesDurationMapping, V as ValidAggregationKeys, a5 as VersionBound, W as WhereClause, a7 as WirePropertyTypes, X as isOk } from './ObjectSet-8usZkzgx.cjs';
3
3
  import 'type-fest';
4
4
  import 'geojson';
5
5
 
@@ -1,5 +1,5 @@
1
- import { a0 as ObjectOrInterfaceDefinition, a1 as PropertyKeys, M as MediaReference, O as ObjectTypeDefinition, N as NullabilityAdherence, J as SelectArg, aa as Osdk, aj as ExtractOptions, F as FetchPageArgs, L as FetchPageResult, h as OsdkBase } from '../ObjectSet-DmnkezS6.cjs';
2
- export { ak as MinimalObjectSet } from '../ObjectSet-DmnkezS6.cjs';
1
+ import { a0 as ObjectOrInterfaceDefinition, a1 as PropertyKeys, M as MediaReference, O as ObjectTypeDefinition, N as NullabilityAdherence, J as SelectArg, aa as Osdk, aj as ExtractOptions, F as FetchPageArgs, L as FetchPageResult, h as OsdkBase } from '../ObjectSet-8usZkzgx.cjs';
2
+ export { ak as MinimalObjectSet } from '../ObjectSet-8usZkzgx.cjs';
3
3
  import 'type-fest';
4
4
  import 'geojson';
5
5
 
@@ -1,2 +1,17 @@
1
- export {};
1
+ /*
2
+ * Copyright 2023 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
+ export let InterfaceMetadata;
2
17
  //# sourceMappingURL=InterfaceDefinition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceDefinition.js","names":[],"sources":["InterfaceDefinition.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 ObjectInterfaceBaseMetadata,\n ObjectInterfaceCompileDefinition,\n} from \"./ObjectTypeDefinition.js\";\n\nexport interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {\n type: \"interface\";\n implementedBy?: ReadonlyArray<string>;\n}\n\nexport interface InterfaceDefinition {\n type: \"interface\";\n apiName: string;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & InterfaceMetadata\n & ObjectInterfaceCompileDefinition;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"InterfaceDefinition.js","names":["InterfaceMetadata"],"sources":["InterfaceDefinition.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 ObjectInterfaceBaseMetadata,\n ObjectInterfaceCompileDefinition,\n ObjectTypeDefinition,\n} from \"./ObjectTypeDefinition.js\";\n\nexport interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {\n type: \"interface\";\n implementedBy?: ReadonlyArray<string>;\n links: Record<\n string,\n InterfaceMetadata.Link<any, any>\n >;\n}\n\nexport interface InterfaceDefinition {\n type: \"interface\";\n apiName: string;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & InterfaceMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport namespace InterfaceMetadata {\n export interface Link<\n Q extends ObjectTypeDefinition | InterfaceDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetTypeApiName: Q[\"apiName\"];\n multiplicity: M;\n targetType: Q[\"type\"];\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WAyCiBA,iBAAiB","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 { 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 links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\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 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 }\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 osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectTypeDefinition,\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> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\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,WA2FiBA,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 { 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 }\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 osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectTypeDefinition,\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> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\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,WA2FiBA,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkUtils.js","names":[],"sources":["LinkUtils.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 { ObjectOrInterfaceDefinition } from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\n\nexport type LinkNames<Q extends ObjectOrInterfaceDefinition> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport type LinkedType<\n Q extends ObjectOrInterfaceDefinition,\n L extends LinkNames<Q>,\n> = NonNullable<CompileTimeMetadata<Q>[\"links\"][L][\"__OsdkLinkTargetType\"]>;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"LinkUtils.js","names":[],"sources":["LinkUtils.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 { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type { ObjectOrInterfaceDefinition } from \"../ontology/ObjectOrInterface.js\";\nimport type { CompileTimeMetadata } from \"../ontology/ObjectTypeDefinition.js\";\n\nexport type LinkNames<Q extends ObjectOrInterfaceDefinition> = Q extends\n InterfaceDefinition ? keyof CompileTimeMetadata<Q>[\"links\"]\n :\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport type LinkedType<\n Q extends ObjectOrInterfaceDefinition,\n L extends LinkNames<Q>,\n> = NonNullable<CompileTimeMetadata<Q>[\"links\"][L][\"__OsdkLinkTargetType\"]>;\n"],"mappings":"","ignoreList":[]}
@@ -1,8 +1,9 @@
1
1
  import type { OsdkMetadata } from "../OsdkMetadata.js";
2
- import type { ObjectInterfaceBaseMetadata, ObjectInterfaceCompileDefinition } from "./ObjectTypeDefinition.js";
2
+ import type { ObjectInterfaceBaseMetadata, ObjectInterfaceCompileDefinition, ObjectTypeDefinition } from "./ObjectTypeDefinition.js";
3
3
  export interface InterfaceMetadata extends ObjectInterfaceBaseMetadata {
4
4
  type: "interface";
5
5
  implementedBy?: ReadonlyArray<string>;
6
+ links: Record<string, InterfaceMetadata.Link<any, any>>;
6
7
  }
7
8
  export interface InterfaceDefinition {
8
9
  type: "interface";
@@ -10,3 +11,14 @@ export interface InterfaceDefinition {
10
11
  osdkMetadata?: OsdkMetadata;
11
12
  __DefinitionMetadata?: InterfaceMetadata & ObjectInterfaceCompileDefinition;
12
13
  }
14
+ export declare namespace InterfaceMetadata {
15
+ interface Link<
16
+ Q extends ObjectTypeDefinition | InterfaceDefinition,
17
+ M extends boolean
18
+ > {
19
+ __OsdkLinkTargetType?: Q;
20
+ targetTypeApiName: Q["apiName"];
21
+ multiplicity: M;
22
+ targetType: Q["type"];
23
+ }
24
+ }
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,wCACK,2BAA4B;AAEnC,iBAAiB,0BAA0B,4BAA4B;CACrE,MAAM;CACN,gBAAgB;AACjB;AAED,iBAAiB,oBAAoB;CACnC,MAAM;CACN;CACA,eAAe;CACf,uBACI,oBACA;AACL","names":[],"sources":["../../../src/ontology/InterfaceDefinition.ts"],"version":3,"file":"InterfaceDefinition.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,kCACA,4BACK,2BAA4B;AAEnC,iBAAiB,0BAA0B,4BAA4B;CACrE,MAAM;CACN,gBAAgB;CAChB,OAAO,eAEL,kBAAkB;AAErB;AAED,iBAAiB,oBAAoB;CACnC,MAAM;CACN;CACA,eAAe;CACf,uBACI,oBACA;AACL;AAED,yBAAiB;WACE;EACf,UAAU,uBAAuB;EACjC;GACA;EACA,uBAAuB;EACvB,mBAAmB,EAAE;EACrB,cAAc;EACd,YAAY,EAAE;CACf","names":[],"sources":["../../../src/ontology/InterfaceDefinition.ts"],"version":3,"file":"InterfaceDefinition.d.ts"}
@@ -16,7 +16,6 @@ export type ObjectInterfaceBaseMetadata = {
16
16
  displayName: string
17
17
  description: string | undefined
18
18
  properties: Record<any, ObjectMetadata.Property>
19
- links: Record<string, ObjectMetadata.Link<any, any>>
20
19
  rid: string
21
20
  /**
22
21
  * Represents the "super interfaces" of this object.
@@ -39,6 +38,7 @@ export interface ObjectMetadata extends ObjectInterfaceBaseMetadata {
39
38
  type: "object";
40
39
  primaryKeyApiName: keyof this["properties"];
41
40
  titleProperty: keyof this["properties"];
41
+ links: Record<string, ObjectMetadata.Link<any, any>>;
42
42
  primaryKeyType: PrimaryKeyTypes;
43
43
  icon: Icon | undefined;
44
44
  visibility: ObjectTypeVisibility | undefined;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,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,OAAO,eAEL,eAAe;CAEjB;;;;;;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,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;CACD;WAEgB;EACf,UAAU;EACV;GACA;EACA,uBAAuB;EACvB,YAAY,EAAE;EACd,cAAc;CACf;;AAGH,iBAAiB,qBAAqB;CACpC,MAAM;CACN;CACA,eAAe;CACf,uBACI,iBACA;AACL;AAED,YAAY,wBACV,UAAU,8BAEF,oBAAoB,GAAG;AAGjC,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,iBAAiB;CACxC,UAAU,UAAU,WAAW;UACvB,eAAe,SAAS;CAChC,MAAM;CACN,cAAc,UAAU,UAAU,OAAO;CACzC,UAAU,UAAU,aAAa,OAAO;AACzC;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,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;CACD;WAEgB;EACf,UAAU;EACV;GACA;EACA,uBAAuB;EACvB,YAAY,EAAE;EACd,cAAc;CACf;;AAGH,iBAAiB,qBAAqB;CACpC,MAAM;CACN;CACA,eAAe;CACf,uBACI,iBACA;AACL;AAED,YAAY,wBACV,UAAU,8BAEF,oBAAoB,GAAG;AAGjC,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,iBAAiB;CACxC,UAAU,UAAU,WAAW;UACvB,eAAe,SAAS;CAChC,MAAM;CACN,cAAc,UAAU,UAAU,OAAO;CACzC,UAAU,UAAU,aAAa,OAAO;AACzC;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,6 +1,7 @@
1
+ import type { InterfaceDefinition } from "../ontology/InterfaceDefinition.js";
1
2
  import type { ObjectOrInterfaceDefinition } from "../ontology/ObjectOrInterface.js";
2
3
  import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
3
- export type LinkNames<Q extends ObjectOrInterfaceDefinition> = keyof CompileTimeMetadata<Q>["links"] & string;
4
+ export type LinkNames<Q extends ObjectOrInterfaceDefinition> = Q extends InterfaceDefinition ? keyof CompileTimeMetadata<Q>["links"] : keyof CompileTimeMetadata<Q>["links"] & string;
4
5
  export type LinkedType<
5
6
  Q extends ObjectOrInterfaceDefinition,
6
7
  L extends LinkNames<Q>
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,mCAAmC,kCAAmC;AACpF,cAAc,2BAA2B,qCAAsC;AAE/E,YAAY,UAAU,UAAU,qCACtB,oBAAoB,GAAG;AAGjC,YAAY;CACV,UAAU;CACV,UAAU,UAAU;IAClB,YAAY,oBAAoB,GAAG,SAAS,GAAG","names":[],"sources":["../../../src/util/LinkUtils.ts"],"version":3,"file":"LinkUtils.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,2BAA2B,oCAAqC;AAC9E,cAAc,mCAAmC,kCAAmC;AACpF,cAAc,2BAA2B,qCAAsC;AAE/E,YAAY,UAAU,UAAU,+BAA+B,UAC7D,4BAA4B,oBAAoB,GAAG,iBAEzC,oBAAoB,GAAG;AAGnC,YAAY;CACV,UAAU;CACV,UAAU,UAAU;IAClB,YAAY,oBAAoB,GAAG,SAAS,GAAG","names":[],"sources":["../../../src/util/LinkUtils.ts"],"version":3,"file":"LinkUtils.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/api",
3
- "version": "2.4.0-beta.12",
3
+ "version": "2.4.0-beta.14",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",