@osdk/api 2.8.0-beta.27 → 2.8.0-beta.29
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 +14 -0
- package/build/browser/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/object/Media.js.map +1 -1
- package/build/browser/public/shapes-internal.js +2 -0
- package/build/browser/public/shapes-internal.js.map +1 -0
- package/build/browser/public/unstable.js +2 -0
- package/build/browser/public/unstable.js.map +1 -1
- package/build/browser/shapes/InlineShapeConfig.js +2 -0
- package/build/browser/shapes/InlineShapeConfig.js.map +1 -0
- package/build/browser/shapes/ShapeBuilder.js +243 -0
- package/build/browser/shapes/ShapeBuilder.js.map +1 -0
- package/build/browser/shapes/ShapeDefinition.js +59 -0
- package/build/browser/shapes/ShapeDefinition.js.map +1 -0
- package/build/browser/shapes/computeShapeId.js +97 -0
- package/build/browser/shapes/computeShapeId.js.map +1 -0
- package/build/browser/shapes/configToShapeDefinition.js +115 -0
- package/build/browser/shapes/configToShapeDefinition.js.map +1 -0
- package/build/browser/shapes/index.js +31 -0
- package/build/browser/shapes/index.js.map +1 -0
- package/build/browser/shapes/internal.js +2 -0
- package/build/browser/shapes/internal.js.map +1 -0
- package/build/cjs/{ObjectSet-By-T_QQB.d.cts → ObjectSet-DkBNIajH.d.cts} +16 -11
- package/build/cjs/index.d.cts +2 -2
- package/build/cjs/public/shapes-internal.cjs +4 -0
- package/build/cjs/public/shapes-internal.cjs.map +1 -0
- package/build/cjs/public/shapes-internal.d.cts +4 -0
- package/build/cjs/public/unstable.cjs +401 -0
- package/build/cjs/public/unstable.cjs.map +1 -1
- package/build/cjs/public/unstable.d.cts +57 -3
- package/build/cjs/shapes-internal-DQ2ODZcP.d.cts +152 -0
- package/build/esm/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/object/Media.js.map +1 -1
- package/build/esm/public/shapes-internal.js +2 -0
- package/build/esm/public/shapes-internal.js.map +1 -0
- package/build/esm/public/unstable.js +2 -0
- package/build/esm/public/unstable.js.map +1 -1
- package/build/esm/shapes/InlineShapeConfig.js +2 -0
- package/build/esm/shapes/InlineShapeConfig.js.map +1 -0
- package/build/esm/shapes/ShapeBuilder.js +243 -0
- package/build/esm/shapes/ShapeBuilder.js.map +1 -0
- package/build/esm/shapes/ShapeDefinition.js +59 -0
- package/build/esm/shapes/ShapeDefinition.js.map +1 -0
- package/build/esm/shapes/computeShapeId.js +97 -0
- package/build/esm/shapes/computeShapeId.js.map +1 -0
- package/build/esm/shapes/configToShapeDefinition.js +115 -0
- package/build/esm/shapes/configToShapeDefinition.js.map +1 -0
- package/build/esm/shapes/index.js +31 -0
- package/build/esm/shapes/index.js.map +1 -0
- package/build/esm/shapes/internal.js +2 -0
- package/build/esm/shapes/internal.js.map +1 -0
- package/build/types/derivedProperties/DerivedProperty.d.ts +1 -10
- package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/object/Media.d.ts +14 -0
- package/build/types/object/Media.d.ts.map +1 -1
- package/build/types/public/shapes-internal.d.ts +1 -0
- package/build/types/public/shapes-internal.d.ts.map +1 -0
- package/build/types/public/unstable.d.ts +2 -0
- package/build/types/public/unstable.d.ts.map +1 -1
- package/build/types/shapes/InlineShapeConfig.d.ts +29 -0
- package/build/types/shapes/InlineShapeConfig.d.ts.map +1 -0
- package/build/types/shapes/ShapeBuilder.d.ts +21 -0
- package/build/types/shapes/ShapeBuilder.d.ts.map +1 -0
- package/build/types/shapes/ShapeDefinition.d.ts +167 -0
- package/build/types/shapes/ShapeDefinition.d.ts.map +1 -0
- package/build/types/shapes/computeShapeId.d.ts +14 -0
- package/build/types/shapes/computeShapeId.d.ts.map +1 -0
- package/build/types/shapes/configToShapeDefinition.d.ts +6 -0
- package/build/types/shapes/configToShapeDefinition.d.ts.map +1 -0
- package/build/types/shapes/index.d.ts +5 -0
- package/build/types/shapes/index.d.ts.map +1 -0
- package/build/types/shapes/internal.d.ts +1 -0
- package/build/types/shapes/internal.d.ts.map +1 -0
- package/package.json +10 -1
- package/shapes-internal.d.ts +17 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeShapeId.js","names":["sortedStringify","obj","JSON","stringify","_","v","Array","isArray","Object","fromEntries","entries","sort","a","b","localeCompare","computeShapeId","input","canonical","canonicalizeShapeInput","simpleHash","sortedPropKeys","keys","props","canonicalProps","key","config","op","nullabilityOp","type","defaultValue","canonicalLinks","derivedLinks","map","link","name","objectSetDef","canonicalizeObjectSetDef","targetShapeId","targetShape","__shapeId","baseType","baseTypeApiName","links","def","result","segments","seg","linkName","sourceType","where","parse","orderBy","length","o","property","direction","limit","undefined","distinct","setOperations","other","str","hash","i","char","charCodeAt","positiveHash","toString","padStart"],"sources":["computeShapeId.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 ShapeDerivedLinkDef,\n ShapeLinkObjectSetDef,\n ShapePropertyConfig,\n} from \"./ShapeDefinition.js\";\n\ninterface ShapeIdInput {\n baseTypeApiName: string;\n props: Record<string, ShapePropertyConfig>;\n derivedLinks: readonly ShapeDerivedLinkDef[];\n}\n\nfunction sortedStringify(obj: unknown): string {\n return JSON.stringify(\n obj,\n (_, v) =>\n v && typeof v === \"object\" && !Array.isArray(v)\n ? Object.fromEntries(\n Object.entries(v).sort(([a], [b]) => a.localeCompare(b)),\n )\n : v,\n );\n}\n\n/**\n * Computes a stable, deterministic identifier for a shape definition.\n * The ID uniquely represents the combination of base type, property\n * selections/nullability configs, and derived link definitions so\n * that identical shapes produce the same ID across calls.\n */\nexport function computeShapeId(input: ShapeIdInput): string {\n const canonical = canonicalizeShapeInput(input);\n return simpleHash(sortedStringify(canonical));\n}\n\nfunction canonicalizeShapeInput(\n input: ShapeIdInput,\n): Record<string, unknown> {\n const sortedPropKeys = [...Object.keys(input.props)].sort();\n const canonicalProps: Record<string, unknown> = {};\n\n for (const key of sortedPropKeys) {\n const config = input.props[key];\n const op = config.nullabilityOp;\n canonicalProps[key] = op.type === \"withDefault\"\n ? { type: op.type, defaultValue: op.defaultValue }\n : op.type;\n }\n\n const canonicalLinks = input.derivedLinks.map((link) => ({\n name: link.name,\n objectSetDef: canonicalizeObjectSetDef(link.objectSetDef),\n targetShapeId: link.targetShape.__shapeId,\n }));\n canonicalLinks.sort((a, b) => a.name.localeCompare(b.name));\n\n return {\n baseType: input.baseTypeApiName,\n props: canonicalProps,\n links: canonicalLinks,\n };\n}\n\nfunction canonicalizeObjectSetDef(\n def: ShapeLinkObjectSetDef,\n): Record<string, unknown> {\n const result: Record<string, unknown> = {\n segments: def.segments.map((seg) => ({\n type: seg.type,\n linkName: seg.linkName,\n sourceType: seg.sourceType,\n })),\n };\n\n if (def.where) {\n result.where = JSON.parse(sortedStringify(def.where));\n }\n\n if (def.orderBy && def.orderBy.length > 0) {\n result.orderBy = def.orderBy.map((o) => ({\n property: o.property,\n direction: o.direction,\n }));\n }\n\n if (def.limit !== undefined) {\n result.limit = def.limit;\n }\n\n if (def.distinct) {\n result.distinct = true;\n }\n\n if (def.setOperations && def.setOperations.length > 0) {\n result.setOperations = def.setOperations.map((op) => ({\n type: op.type,\n other: canonicalizeObjectSetDef(op.other),\n }));\n }\n\n return result;\n}\n\n// Shape IDs are used for cache keying and equality, not security,\n// so 32-bit is sufficient.\nfunction simpleHash(str: string): string {\n let hash = 5381;\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = ((hash << 5) + hash) ^ char;\n }\n\n const positiveHash = hash >>> 0;\n return positiveHash.toString(16).padStart(8, \"0\");\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA,SAASA,eAAeA,CAACC,GAAY,EAAU;EAC7C,OAAOC,IAAI,CAACC,SAAS,CACnBF,GAAG,EACH,CAACG,CAAC,EAAEC,CAAC,KACHA,CAAC,IAAI,OAAOA,CAAC,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC,GAC3CG,MAAM,CAACC,WAAW,CAClBD,MAAM,CAACE,OAAO,CAACL,CAAC,CAAC,CAACM,IAAI,CAAC,CAAC,CAACC,CAAC,CAAC,EAAE,CAACC,CAAC,CAAC,KAAKD,CAAC,CAACE,aAAa,CAACD,CAAC,CAAC,CACzD,CAAC,GACCR,CACR,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASU,cAAcA,CAACC,KAAmB,EAAU;EAC1D,MAAMC,SAAS,GAAGC,sBAAsB,CAACF,KAAK,CAAC;EAC/C,OAAOG,UAAU,CAACnB,eAAe,CAACiB,SAAS,CAAC,CAAC;AAC/C;AAEA,SAASC,sBAAsBA,CAC7BF,KAAmB,EACM;EACzB,MAAMI,cAAc,GAAG,CAAC,GAAGZ,MAAM,CAACa,IAAI,CAACL,KAAK,CAACM,KAAK,CAAC,CAAC,CAACX,IAAI,CAAC,CAAC;EAC3D,MAAMY,cAAuC,GAAG,CAAC,CAAC;EAElD,KAAK,MAAMC,GAAG,IAAIJ,cAAc,EAAE;IAChC,MAAMK,MAAM,GAAGT,KAAK,CAACM,KAAK,CAACE,GAAG,CAAC;IAC/B,MAAME,EAAE,GAAGD,MAAM,CAACE,aAAa;IAC/BJ,cAAc,CAACC,GAAG,CAAC,GAAGE,EAAE,CAACE,IAAI,KAAK,aAAa,GAC3C;MAAEA,IAAI,EAAEF,EAAE,CAACE,IAAI;MAAEC,YAAY,EAAEH,EAAE,CAACG;IAAa,CAAC,GAChDH,EAAE,CAACE,IAAI;EACb;EAEA,MAAME,cAAc,GAAGd,KAAK,CAACe,YAAY,CAACC,GAAG,CAAEC,IAAI,KAAM;IACvDC,IAAI,EAAED,IAAI,CAACC,IAAI;IACfC,YAAY,EAAEC,wBAAwB,CAACH,IAAI,CAACE,YAAY,CAAC;IACzDE,aAAa,EAAEJ,IAAI,CAACK,WAAW,CAACC;EAClC,CAAC,CAAC,CAAC;EACHT,cAAc,CAACnB,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACsB,IAAI,CAACpB,aAAa,CAACD,CAAC,CAACqB,IAAI,CAAC,CAAC;EAE3D,OAAO;IACLM,QAAQ,EAAExB,KAAK,CAACyB,eAAe;IAC/BnB,KAAK,EAAEC,cAAc;IACrBmB,KAAK,EAAEZ;EACT,CAAC;AACH;AAEA,SAASM,wBAAwBA,CAC/BO,GAA0B,EACD;EACzB,MAAMC,MAA+B,GAAG;IACtCC,QAAQ,EAAEF,GAAG,CAACE,QAAQ,CAACb,GAAG,CAAEc,GAAG,KAAM;MACnClB,IAAI,EAAEkB,GAAG,CAAClB,IAAI;MACdmB,QAAQ,EAAED,GAAG,CAACC,QAAQ;MACtBC,UAAU,EAAEF,GAAG,CAACE;IAClB,CAAC,CAAC;EACJ,CAAC;EAED,IAAIL,GAAG,CAACM,KAAK,EAAE;IACbL,MAAM,CAACK,KAAK,GAAG/C,IAAI,CAACgD,KAAK,CAAClD,eAAe,CAAC2C,GAAG,CAACM,KAAK,CAAC,CAAC;EACvD;EAEA,IAAIN,GAAG,CAACQ,OAAO,IAAIR,GAAG,CAACQ,OAAO,CAACC,MAAM,GAAG,CAAC,EAAE;IACzCR,MAAM,CAACO,OAAO,GAAGR,GAAG,CAACQ,OAAO,CAACnB,GAAG,CAAEqB,CAAC,KAAM;MACvCC,QAAQ,EAAED,CAAC,CAACC,QAAQ;MACpBC,SAAS,EAAEF,CAAC,CAACE;IACf,CAAC,CAAC,CAAC;EACL;EAEA,IAAIZ,GAAG,CAACa,KAAK,KAAKC,SAAS,EAAE;IAC3Bb,MAAM,CAACY,KAAK,GAAGb,GAAG,CAACa,KAAK;EAC1B;EAEA,IAAIb,GAAG,CAACe,QAAQ,EAAE;IAChBd,MAAM,CAACc,QAAQ,GAAG,IAAI;EACxB;EAEA,IAAIf,GAAG,CAACgB,aAAa,IAAIhB,GAAG,CAACgB,aAAa,CAACP,MAAM,GAAG,CAAC,EAAE;IACrDR,MAAM,CAACe,aAAa,GAAGhB,GAAG,CAACgB,aAAa,CAAC3B,GAAG,CAAEN,EAAE,KAAM;MACpDE,IAAI,EAAEF,EAAE,CAACE,IAAI;MACbgC,KAAK,EAAExB,wBAAwB,CAACV,EAAE,CAACkC,KAAK;IAC1C,CAAC,CAAC,CAAC;EACL;EAEA,OAAOhB,MAAM;AACf;;AAEA;AACA;AACA,SAASzB,UAAUA,CAAC0C,GAAW,EAAU;EACvC,IAAIC,IAAI,GAAG,IAAI;EACf,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,GAAG,CAACT,MAAM,EAAEW,CAAC,EAAE,EAAE;IACnC,MAAMC,IAAI,GAAGH,GAAG,CAACI,UAAU,CAACF,CAAC,CAAC;IAC9BD,IAAI,GAAI,CAACA,IAAI,IAAI,CAAC,IAAIA,IAAI,GAAIE,IAAI;EACpC;EAEA,MAAME,YAAY,GAAGJ,IAAI,KAAK,CAAC;EAC/B,OAAOI,YAAY,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACnD","ignoreList":[]}
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
import { computeShapeId } from "./computeShapeId.js";
|
|
18
|
+
import { createShapeLinkBuilder } from "./ShapeBuilder.js";
|
|
19
|
+
export function configToShapeDefinition(baseType, config) {
|
|
20
|
+
const baseTypeApiName = baseType.apiName;
|
|
21
|
+
const props = {};
|
|
22
|
+
const seen = new Set();
|
|
23
|
+
function addProp(prop, config2) {
|
|
24
|
+
if (seen.has(prop)) {
|
|
25
|
+
throw new Error(`Property "${prop}" appears in multiple config arrays`);
|
|
26
|
+
}
|
|
27
|
+
seen.add(prop);
|
|
28
|
+
props[prop] = config2;
|
|
29
|
+
}
|
|
30
|
+
if (config.require) {
|
|
31
|
+
for (const prop of config.require) {
|
|
32
|
+
addProp(prop, {
|
|
33
|
+
nullabilityOp: {
|
|
34
|
+
type: "require"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (config.select) {
|
|
40
|
+
for (const prop of config.select) {
|
|
41
|
+
addProp(prop, {
|
|
42
|
+
nullabilityOp: {
|
|
43
|
+
type: "select"
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (config.dropIfNull) {
|
|
49
|
+
for (const prop of config.dropIfNull) {
|
|
50
|
+
addProp(prop, {
|
|
51
|
+
nullabilityOp: {
|
|
52
|
+
type: "dropIfNull"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (config.defaults) {
|
|
58
|
+
for (const [prop, defaultValue] of Object.entries(config.defaults)) {
|
|
59
|
+
addProp(prop, {
|
|
60
|
+
nullabilityOp: {
|
|
61
|
+
type: "withDefault",
|
|
62
|
+
defaultValue
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (config.transforms) {
|
|
68
|
+
for (const [prop, transform] of Object.entries(config.transforms)) {
|
|
69
|
+
if (typeof transform !== "function") {
|
|
70
|
+
throw new Error(`transforms["${prop}"] must be a function, got: ${typeof transform}`);
|
|
71
|
+
}
|
|
72
|
+
addProp(prop, {
|
|
73
|
+
nullabilityOp: {
|
|
74
|
+
type: "withTransform",
|
|
75
|
+
transform
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const derivedLinks = [];
|
|
81
|
+
if (config.links) {
|
|
82
|
+
for (const [name, linkConfig] of Object.entries(config.links)) {
|
|
83
|
+
const linkBuilder = createShapeLinkBuilder(baseTypeApiName);
|
|
84
|
+
const traversed = linkConfig.via(linkBuilder);
|
|
85
|
+
const objectSetDef = traversed.toObjectSetDef();
|
|
86
|
+
const targetShape = linkConfig.target;
|
|
87
|
+
derivedLinks.push({
|
|
88
|
+
name,
|
|
89
|
+
objectSetDef,
|
|
90
|
+
targetShape,
|
|
91
|
+
config: {
|
|
92
|
+
defer: linkConfig.defer
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const shapeId = computeShapeId({
|
|
98
|
+
baseTypeApiName,
|
|
99
|
+
props,
|
|
100
|
+
derivedLinks
|
|
101
|
+
});
|
|
102
|
+
return {
|
|
103
|
+
__shapeId: shapeId,
|
|
104
|
+
__debugName: undefined,
|
|
105
|
+
__baseType: baseType,
|
|
106
|
+
__baseTypeApiName: baseTypeApiName,
|
|
107
|
+
__props: Object.freeze({
|
|
108
|
+
...props
|
|
109
|
+
}),
|
|
110
|
+
__derivedLinks: Object.freeze([...derivedLinks]),
|
|
111
|
+
__selectedPropsType: {},
|
|
112
|
+
__derivedLinksType: {}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=configToShapeDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configToShapeDefinition.js","names":["computeShapeId","createShapeLinkBuilder","configToShapeDefinition","baseType","config","baseTypeApiName","apiName","props","seen","Set","addProp","prop","config2","has","Error","add","require","nullabilityOp","type","select","dropIfNull","defaults","defaultValue","Object","entries","transforms","transform","derivedLinks","links","name","linkConfig","linkBuilder","traversed","via","objectSetDef","toObjectSetDef","targetShape","target","push","defer","shapeId","__shapeId","__debugName","undefined","__baseType","__baseTypeApiName","__props","freeze","__derivedLinks","__selectedPropsType","__derivedLinksType"],"sources":["configToShapeDefinition.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 { ObjectOrInterfaceDefinition } from \"../ontology/ObjectOrInterface.js\";\nimport { computeShapeId } from \"./computeShapeId.js\";\nimport type {\n InferShapeDefinition,\n InlineShapeConfig,\n} from \"./InlineShapeConfig.js\";\nimport { createShapeLinkBuilder } from \"./ShapeBuilder.js\";\nimport type {\n NullabilityOp,\n ShapeDefinition,\n ShapeDerivedLinkDef,\n ShapeLinkBuilderInternal,\n ShapeLinkObjectSetDef,\n ShapePropertyConfig,\n} from \"./ShapeDefinition.js\";\n\nexport function configToShapeDefinition<\n BASE extends ObjectOrInterfaceDefinition,\n const C extends InlineShapeConfig<BASE>,\n>(\n baseType: BASE,\n config: C,\n): InferShapeDefinition<BASE, C> {\n const baseTypeApiName = baseType.apiName;\n const props: Record<string, ShapePropertyConfig> = {};\n\n const seen = new Set<string>();\n function addProp(prop: string, config2: ShapePropertyConfig) {\n if (seen.has(prop)) {\n throw new Error(`Property \"${prop}\" appears in multiple config arrays`);\n }\n seen.add(prop);\n props[prop] = config2;\n }\n\n if (config.require) {\n for (const prop of config.require) {\n addProp(prop as string, { nullabilityOp: { type: \"require\" } });\n }\n }\n\n if (config.select) {\n for (const prop of config.select) {\n addProp(prop as string, { nullabilityOp: { type: \"select\" } });\n }\n }\n\n if (config.dropIfNull) {\n for (const prop of config.dropIfNull) {\n addProp(prop as string, { nullabilityOp: { type: \"dropIfNull\" } });\n }\n }\n\n if (config.defaults) {\n for (const [prop, defaultValue] of Object.entries(config.defaults)) {\n addProp(prop, {\n nullabilityOp: {\n type: \"withDefault\",\n defaultValue,\n } as NullabilityOp,\n });\n }\n }\n\n if (config.transforms) {\n for (const [prop, transform] of Object.entries(config.transforms)) {\n if (typeof transform !== \"function\") {\n throw new Error(\n `transforms[\"${prop}\"] must be a function, got: ${typeof transform}`,\n );\n }\n addProp(prop, {\n nullabilityOp: {\n type: \"withTransform\",\n transform,\n } as NullabilityOp,\n });\n }\n }\n\n const derivedLinks: ShapeDerivedLinkDef[] = [];\n\n if (config.links) {\n for (const [name, linkConfig] of Object.entries(config.links)) {\n const linkBuilder = createShapeLinkBuilder(baseTypeApiName);\n const traversed = linkConfig.via(linkBuilder as ShapeLinkBuilderInternal);\n const objectSetDef: ShapeLinkObjectSetDef =\n (traversed as ShapeLinkBuilderInternal).toObjectSetDef();\n\n const targetShape: ShapeDefinition<ObjectOrInterfaceDefinition> =\n linkConfig.target;\n\n derivedLinks.push({\n name,\n objectSetDef,\n targetShape,\n config: { defer: linkConfig.defer },\n });\n }\n }\n\n const shapeId = computeShapeId({\n baseTypeApiName,\n props,\n derivedLinks,\n });\n\n return {\n __shapeId: shapeId,\n __debugName: undefined,\n __baseType: baseType,\n __baseTypeApiName: baseTypeApiName,\n __props: Object.freeze({ ...props }),\n __derivedLinks: Object.freeze([...derivedLinks]),\n __selectedPropsType: {} as InferShapeDefinition<\n BASE,\n C\n >[\"__selectedPropsType\"],\n __derivedLinksType: {} as InferShapeDefinition<\n BASE,\n C\n >[\"__derivedLinksType\"],\n } as InferShapeDefinition<BASE, C>;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,cAAc,QAAQ,qBAAqB;AAKpD,SAASC,sBAAsB,QAAQ,mBAAmB;AAU1D,OAAO,SAASC,uBAAuBA,CAIrCC,QAAc,EACdC,MAAS,EACsB;EAC/B,MAAMC,eAAe,GAAGF,QAAQ,CAACG,OAAO;EACxC,MAAMC,KAA0C,GAAG,CAAC,CAAC;EAErD,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAAS,CAAC;EAC9B,SAASC,OAAOA,CAACC,IAAY,EAAEC,OAA4B,EAAE;IAC3D,IAAIJ,IAAI,CAACK,GAAG,CAACF,IAAI,CAAC,EAAE;MAClB,MAAM,IAAIG,KAAK,CAAC,aAAaH,IAAI,qCAAqC,CAAC;IACzE;IACAH,IAAI,CAACO,GAAG,CAACJ,IAAI,CAAC;IACdJ,KAAK,CAACI,IAAI,CAAC,GAAGC,OAAO;EACvB;EAEA,IAAIR,MAAM,CAACY,OAAO,EAAE;IAClB,KAAK,MAAML,IAAI,IAAIP,MAAM,CAACY,OAAO,EAAE;MACjCN,OAAO,CAACC,IAAI,EAAY;QAAEM,aAAa,EAAE;UAAEC,IAAI,EAAE;QAAU;MAAE,CAAC,CAAC;IACjE;EACF;EAEA,IAAId,MAAM,CAACe,MAAM,EAAE;IACjB,KAAK,MAAMR,IAAI,IAAIP,MAAM,CAACe,MAAM,EAAE;MAChCT,OAAO,CAACC,IAAI,EAAY;QAAEM,aAAa,EAAE;UAAEC,IAAI,EAAE;QAAS;MAAE,CAAC,CAAC;IAChE;EACF;EAEA,IAAId,MAAM,CAACgB,UAAU,EAAE;IACrB,KAAK,MAAMT,IAAI,IAAIP,MAAM,CAACgB,UAAU,EAAE;MACpCV,OAAO,CAACC,IAAI,EAAY;QAAEM,aAAa,EAAE;UAAEC,IAAI,EAAE;QAAa;MAAE,CAAC,CAAC;IACpE;EACF;EAEA,IAAId,MAAM,CAACiB,QAAQ,EAAE;IACnB,KAAK,MAAM,CAACV,IAAI,EAAEW,YAAY,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACpB,MAAM,CAACiB,QAAQ,CAAC,EAAE;MAClEX,OAAO,CAACC,IAAI,EAAE;QACZM,aAAa,EAAE;UACbC,IAAI,EAAE,aAAa;UACnBI;QACF;MACF,CAAC,CAAC;IACJ;EACF;EAEA,IAAIlB,MAAM,CAACqB,UAAU,EAAE;IACrB,KAAK,MAAM,CAACd,IAAI,EAAEe,SAAS,CAAC,IAAIH,MAAM,CAACC,OAAO,CAACpB,MAAM,CAACqB,UAAU,CAAC,EAAE;MACjE,IAAI,OAAOC,SAAS,KAAK,UAAU,EAAE;QACnC,MAAM,IAAIZ,KAAK,CACb,eAAeH,IAAI,+BAA+B,OAAOe,SAAS,EACpE,CAAC;MACH;MACAhB,OAAO,CAACC,IAAI,EAAE;QACZM,aAAa,EAAE;UACbC,IAAI,EAAE,eAAe;UACrBQ;QACF;MACF,CAAC,CAAC;IACJ;EACF;EAEA,MAAMC,YAAmC,GAAG,EAAE;EAE9C,IAAIvB,MAAM,CAACwB,KAAK,EAAE;IAChB,KAAK,MAAM,CAACC,IAAI,EAAEC,UAAU,CAAC,IAAIP,MAAM,CAACC,OAAO,CAACpB,MAAM,CAACwB,KAAK,CAAC,EAAE;MAC7D,MAAMG,WAAW,GAAG9B,sBAAsB,CAACI,eAAe,CAAC;MAC3D,MAAM2B,SAAS,GAAGF,UAAU,CAACG,GAAG,CAACF,WAAuC,CAAC;MACzE,MAAMG,YAAmC,GACtCF,SAAS,CAA8BG,cAAc,CAAC,CAAC;MAE1D,MAAMC,WAAyD,GAC7DN,UAAU,CAACO,MAAM;MAEnBV,YAAY,CAACW,IAAI,CAAC;QAChBT,IAAI;QACJK,YAAY;QACZE,WAAW;QACXhC,MAAM,EAAE;UAAEmC,KAAK,EAAET,UAAU,CAACS;QAAM;MACpC,CAAC,CAAC;IACJ;EACF;EAEA,MAAMC,OAAO,GAAGxC,cAAc,CAAC;IAC7BK,eAAe;IACfE,KAAK;IACLoB;EACF,CAAC,CAAC;EAEF,OAAO;IACLc,SAAS,EAAED,OAAO;IAClBE,WAAW,EAAEC,SAAS;IACtBC,UAAU,EAAEzC,QAAQ;IACpB0C,iBAAiB,EAAExC,eAAe;IAClCyC,OAAO,EAAEvB,MAAM,CAACwB,MAAM,CAAC;MAAE,GAAGxC;IAAM,CAAC,CAAC;IACpCyC,cAAc,EAAEzB,MAAM,CAACwB,MAAM,CAAC,CAAC,GAAGpB,YAAY,CAAC,CAAC;IAChDsB,mBAAmB,EAAE,CAAC,CAGE;IACxBC,kBAAkB,EAAE,CAAC;EAIvB,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
// Core types
|
|
18
|
+
|
|
19
|
+
// Inline shape config types
|
|
20
|
+
|
|
21
|
+
// Error types and runtime values
|
|
22
|
+
export { isSourcePkSymbol, ShapeNullabilityError, SourcePrimaryKeySymbol } from "./ShapeDefinition.js";
|
|
23
|
+
|
|
24
|
+
// Builder functions
|
|
25
|
+
export { createShapeBuilder } from "./ShapeBuilder.js";
|
|
26
|
+
|
|
27
|
+
// Inline config converter
|
|
28
|
+
export { configToShapeDefinition } from "./configToShapeDefinition.js";
|
|
29
|
+
|
|
30
|
+
// Inline config converter uses computeShapeId internally but it is not part of the public API.
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol","createShapeBuilder","configToShapeDefinition"],"sources":["index.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\n// Core types\nexport type {\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"./ShapeDefinition.js\";\n\n// Inline shape config types\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n} from \"./InlineShapeConfig.js\";\n\n// Error types and runtime values\nexport {\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"./ShapeDefinition.js\";\n\n// Builder functions\nexport { createShapeBuilder } from \"./ShapeBuilder.js\";\n\n// Inline config converter\nexport { configToShapeDefinition } from \"./configToShapeDefinition.js\";\n\n// Inline config converter uses computeShapeId internally but it is not part of the public API.\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAgBA;;AAOA;AACA,SACEA,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,sBAAsB;;AAE7B;AACA,SAASC,kBAAkB,QAAQ,mBAAmB;;AAEtD;AACA,SAASC,uBAAuB,QAAQ,8BAA8B;;AAEtE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","names":[],"sources":["internal.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\nexport type {\n DerivedLinkConfig,\n NullabilityOp,\n ShapeDerivedLinkDef,\n ShapeLinkObjectSetDef,\n ShapeLinkOrderBy,\n ShapeLinkSegment,\n ShapeLinkSetOperation,\n ShapePropertyConfig,\n} from \"./ShapeDefinition.js\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -36,6 +36,20 @@ interface Media {
|
|
|
36
36
|
* Returns the media reference
|
|
37
37
|
*/
|
|
38
38
|
getMediaReference(): MediaReference;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the source location of this media (object type, primary key, property name).
|
|
41
|
+
*
|
|
42
|
+
* Optional because not all media has a source location (e.g., transient/uploaded media).
|
|
43
|
+
*/
|
|
44
|
+
getMediaSourceLocation?(): MediaPropertyLocation;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Location of a media property on an object.
|
|
48
|
+
*/
|
|
49
|
+
interface MediaPropertyLocation {
|
|
50
|
+
objectType: string;
|
|
51
|
+
primaryKey: string | number;
|
|
52
|
+
propertyName: string;
|
|
39
53
|
}
|
|
40
54
|
/**
|
|
41
55
|
* Unique identifier of a media item in Foundry.
|
|
@@ -1445,7 +1459,7 @@ declare namespace DerivedProperty {
|
|
|
1445
1459
|
};
|
|
1446
1460
|
interface BaseBuilder<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boolean> extends Filterable<Q, CONSTRAINED>, Pivotable<Q, CONSTRAINED> {
|
|
1447
1461
|
}
|
|
1448
|
-
export interface Builder<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boolean> extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q
|
|
1462
|
+
export interface Builder<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boolean> extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q> {
|
|
1449
1463
|
}
|
|
1450
1464
|
export interface AggregateBuilder<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boolean> extends BaseBuilder<Q, CONSTRAINED>, Aggregatable<Q> {
|
|
1451
1465
|
}
|
|
@@ -1461,15 +1475,6 @@ type Filterable<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boole
|
|
|
1461
1475
|
type Pivotable<Q extends ObjectOrInterfaceDefinition, CONSTRAINED extends boolean> = {
|
|
1462
1476
|
readonly pivotTo: <L extends LinkNames<Q>>(type: L) => CONSTRAINED extends true ? DerivedProperty.AggregateBuilder<LinkedType<Q, L>, true> : NonNullable<CompileTimeMetadata<Q>["links"][L]["multiplicity"]> extends true ? DerivedProperty.AggregateBuilder<LinkedType<Q, L>, true> : DerivedProperty.SelectPropertyBuilder<LinkedType<Q, L>, false>;
|
|
1463
1477
|
};
|
|
1464
|
-
type Constant<Q extends ObjectOrInterfaceDefinition> = {
|
|
1465
|
-
readonly constant: {
|
|
1466
|
-
readonly double: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"double", "non-nullable", "single">, Q>;
|
|
1467
|
-
readonly integer: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"integer", "non-nullable", "single">, Q>;
|
|
1468
|
-
readonly long: (value: string) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"long", "non-nullable", "single">, Q>;
|
|
1469
|
-
readonly datetime: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"datetime", "non-nullable", "single">, Q>;
|
|
1470
|
-
readonly timestamp: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"timestamp", "non-nullable", "single">, Q>;
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
1478
|
type Aggregatable<Q extends ObjectOrInterfaceDefinition> = {
|
|
1474
1479
|
readonly aggregate: <V extends ValidAggregationKeys<Q, "withPropertiesAggregate">>(aggregationSpecifier: V, opts?: V extends `${any}:${infer P}` ? P extends CollectWithPropAggregations ? {
|
|
1475
1480
|
limit: number;
|
|
@@ -1808,4 +1813,4 @@ interface AsyncIterLinks<Q extends ObjectOrInterfaceDefinition> {
|
|
|
1808
1813
|
interface ObjectSetCleanedTypes<Q extends ObjectOrInterfaceDefinition, D extends Record<string, SimplePropertyDef>, MERGED extends ObjectOrInterfaceDefinition & Q, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, Subscribe<MERGED>, NearestNeighbors<Q>, NarrowToType<Q> {
|
|
1809
1814
|
}
|
|
1810
1815
|
|
|
1811
|
-
export { type
|
|
1816
|
+
export { type Augment as $, type AttachmentUpload as A, type PossibleWhereClauseFilters as B, type CompileTimeMetadata as C, DistanceUnitMapping as D, type ExtractOptions as E, type FetchPageArgs as F, type GeoFilterOptions as G, type OsdkObjectCreatePropertyType as H, type InterfaceDefinition as I, type OsdkObjectPropertyType as J, type OsdkObjectLinksObject as K, type SingleLinkAccessor as L, type MediaReference as M, NullabilityAdherence as N, type ObjectOrInterfaceDefinition as O, PropertyKeys as P, DerivedProperty as Q, type ReleaseStatus as R, type SelectArg as S, DurationMapping as T, type AllGroupByValues as U, type ValidAggregationKeys as V, type WhereClause as W, type GroupByClause as X, type GroupByRange as Y, type AttachmentMetadata as Z, type AsyncIterArgs as _, Osdk as a, type ConvertProps as a$, type Augments as a0, ObjectSetArgs as a1, type SelectArgToKeys as a2, type SingleOsdkResult as a3, type MediaMetadata as a4, type MediaPropertyLocation as a5, type PropertyMarkings as a6, type PropertySecurity as a7, isOk as a8, type Result as a9, type DurationPrecision as aA, type HumanReadableFormat as aB, type NumberFormatAffix as aC, type NumberFormatCurrency as aD, type NumberFormatCurrencyStyle as aE, type NumberFormatCustomUnit as aF, type NumberFormatDuration as aG, type NumberFormatFixedValues as aH, type NumberFormatNotation as aI, type NumberFormatOptions as aJ, type NumberFormatRatio as aK, type NumberFormatScale as aL, type NumberFormatStandard as aM, type NumberFormatStandardUnit as aN, type NumberRatioType as aO, type NumberRoundingMode as aP, type NumberScaleType as aQ, type PropertyNumberFormattingRule as aR, type PropertyNumberFormattingRuleType as aS, type TimeCodeFormat as aT, type PropertyValueFormattingRule as aU, type PropertyTypeReference as aV, type PropertyTypeReferenceOrStringConstant as aW, type StringConstant as aX, type BaseWirePropertyTypes as aY, type WirePropertyTypes as aZ, type PrimaryKeyType as a_, type BaseObjectSet as aa, type FetchLinksPageResult as ab, type LinkTypeApiNamesFor as ac, type MinimalDirectedObjectLinkInstance as ad, ObjectSetSubscription as ae, InterfaceMetadata as af, type ObjectSpecifier as ag, ObjectMetadata as ah, type PropertyDef as ai, type VersionBound as aj, SimplePropertyDef as ak, type PropertyBooleanFormattingRule as al, type DatetimeFormat as am, type DatetimeLocalizedFormat as an, type DatetimeLocalizedFormatType as ao, type DatetimeStringFormat as ap, type DatetimeTimezone as aq, type DatetimeTimezoneStatic as ar, type DatetimeTimezoneUser as as, type PropertyDateFormattingRule as at, type PropertyTimestampFormattingRule as au, type KnownType as av, type PropertyKnownTypeFormattingRule as aw, type Affix as ax, type DurationBaseValue as ay, type DurationFormatStyle as az, type FetchPageResult as b, type MaybeScore as b0, type PageResult as b1, TimeseriesDurationMapping as b2, type GeotimeSeriesProperty as b3, type TimeSeriesPoint as b4, type TimeSeriesProperty as b5, type TimeSeriesQuery as b6, type LinkedType as b7, type LinkNames as b8, type OsdkBase as c, type MinimalObjectSet as d, type MediaUpload as e, type Media as f, type Attachment as g, type ObjectTypeDefinition as h, type ObjectIdentifiers as i, type OsdkObjectPrimaryKeyType as j, type ObjectSet as k, type OsdkMetadata as l, type PropertyValueWireToClient as m, type PrimaryKeyTypes as n, type AggregateOpts as o, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as p, type AggregationResultsWithGroups as q, type AggregationResultsWithoutGroups as r, type AggregationClause as s, type AggregationsResults as t, type IntervalRule as u, type AndWhereClause as v, type GeoFilter_Intersects as w, type GeoFilter_Within as x, type NotWhereClause as y, type OrWhereClause as z };
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AttachmentUpload, M as MediaReference,
|
|
2
|
-
export {
|
|
1
|
+
import { A as AttachmentUpload, M as MediaReference, e as MediaUpload, f as Media, g as Attachment, h as ObjectTypeDefinition, i as ObjectIdentifiers, j as OsdkObjectPrimaryKeyType, k as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, l as OsdkMetadata, R as ReleaseStatus, O as ObjectOrInterfaceDefinition, m as PropertyValueWireToClient, n as PrimaryKeyTypes, c as OsdkBase } from './ObjectSet-DkBNIajH.cjs';
|
|
2
|
+
export { ax as Affix, o as AggregateOpts, p as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, s as AggregationClause, q as AggregationResultsWithGroups, r as AggregationResultsWithoutGroups, t as AggregationsResults, U as AllGroupByValues, v as AndWhereClause, _ as AsyncIterArgs, Z as AttachmentMetadata, $ as Augment, a0 as Augments, aa as BaseObjectSet, aY as BaseWirePropertyTypes, a$ as ConvertProps, am as DatetimeFormat, an as DatetimeLocalizedFormat, ao as DatetimeLocalizedFormatType, ap as DatetimeStringFormat, aq as DatetimeTimezone, ar as DatetimeTimezoneStatic, as as DatetimeTimezoneUser, Q as DerivedProperty, D as DistanceUnitMapping, ay as DurationBaseValue, az as DurationFormatStyle, T as DurationMapping, aA as DurationPrecision, ab as FetchLinksPageResult, F as FetchPageArgs, b as FetchPageResult, G as GeoFilterOptions, w as GeoFilter_Intersects, x as GeoFilter_Within, b3 as GeotimeSeriesProperty, X as GroupByClause, Y as GroupByRange, aB as HumanReadableFormat, af as InterfaceMetadata, u as IntervalRule, av as KnownType, b8 as LinkNames, ac as LinkTypeApiNamesFor, b7 as LinkedType, b0 as MaybeScore, a4 as MediaMetadata, a5 as MediaPropertyLocation, ad as MinimalDirectedObjectLinkInstance, y as NotWhereClause, N as NullabilityAdherence, aC as NumberFormatAffix, aD as NumberFormatCurrency, aE as NumberFormatCurrencyStyle, aF as NumberFormatCustomUnit, aG as NumberFormatDuration, aH as NumberFormatFixedValues, aI as NumberFormatNotation, aJ as NumberFormatOptions, aK as NumberFormatRatio, aL as NumberFormatScale, aM as NumberFormatStandard, aN as NumberFormatStandardUnit, aO as NumberRatioType, aP as NumberRoundingMode, aQ as NumberScaleType, ah as ObjectMetadata, a1 as ObjectSetArgs, ae as ObjectSetSubscription, ag as ObjectSpecifier, z as OrWhereClause, a as Osdk, H as OsdkObjectCreatePropertyType, K as OsdkObjectLinksObject, J as OsdkObjectPropertyType, b1 as PageResult, B as PossibleWhereClauseFilters, a_ as PrimaryKeyType, al as PropertyBooleanFormattingRule, at as PropertyDateFormattingRule, ai as PropertyDef, P as PropertyKeys, aw as PropertyKnownTypeFormattingRule, a6 as PropertyMarkings, aR as PropertyNumberFormattingRule, aS as PropertyNumberFormattingRuleType, a7 as PropertySecurity, au as PropertyTimestampFormattingRule, aV as PropertyTypeReference, aW as PropertyTypeReferenceOrStringConstant, aU as PropertyValueFormattingRule, a9 as Result, S as SelectArg, a2 as SelectArgToKeys, ak as SimplePropertyDef, L as SingleLinkAccessor, a3 as SingleOsdkResult, aX as StringConstant, aT as TimeCodeFormat, b4 as TimeSeriesPoint, b5 as TimeSeriesProperty, b6 as TimeSeriesQuery, b2 as TimeseriesDurationMapping, V as ValidAggregationKeys, aj as VersionBound, W as WhereClause, aZ as WirePropertyTypes, a8 as isOk } from './ObjectSet-DkBNIajH.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import 'geojson';
|
|
5
5
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"shapes-internal.cjs"}
|
|
@@ -0,0 +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-DQ2ODZcP.cjs';
|
|
2
|
+
import '../ObjectSet-DkBNIajH.cjs';
|
|
3
|
+
import 'type-fest';
|
|
4
|
+
import 'geojson';
|