@osdk/client 2.1.0-beta.25 → 2.1.0-beta.26

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 (59) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/build/browser/actions/actions.test.js +11 -2
  3. package/build/browser/actions/actions.test.js.map +1 -1
  4. package/build/browser/createClient.js +17 -1
  5. package/build/browser/createClient.js.map +1 -1
  6. package/build/browser/index.js.map +1 -1
  7. package/build/browser/internal/conversions/modernToLegacyWhereClause.js +56 -18
  8. package/build/browser/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
  9. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js +193 -7
  10. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -1
  11. package/build/browser/object/aggregate.js +0 -4
  12. package/build/browser/object/aggregate.js.map +1 -1
  13. package/build/browser/object/convertWireToOsdkObjects.test.js +8 -8
  14. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  15. package/build/browser/object/mediaUpload.js +20 -0
  16. package/build/browser/object/mediaUpload.js.map +1 -0
  17. package/build/browser/objectSet/ObjectSet.test.js +28 -0
  18. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  19. package/build/browser/util/UserAgent.js +1 -1
  20. package/build/browser/util/toDataValue.js +4 -0
  21. package/build/browser/util/toDataValue.js.map +1 -1
  22. package/build/browser/util/toDataValue.test.js +4 -0
  23. package/build/browser/util/toDataValue.test.js.map +1 -1
  24. package/build/cjs/{chunk-RWHJNRHF.cjs → chunk-AMEMEGJZ.cjs} +69 -33
  25. package/build/cjs/chunk-AMEMEGJZ.cjs.map +1 -0
  26. package/build/cjs/{chunk-Q4BVHDNO.cjs → chunk-HDBAHEBE.cjs} +19 -15
  27. package/build/cjs/chunk-HDBAHEBE.cjs.map +1 -0
  28. package/build/cjs/index.cjs +66 -43
  29. package/build/cjs/index.cjs.map +1 -1
  30. package/build/cjs/index.d.cts +1 -1
  31. package/build/cjs/public/internal.cjs +6 -6
  32. package/build/cjs/public/unstable-do-not-use.cjs +2 -2
  33. package/build/esm/actions/actions.test.js +11 -2
  34. package/build/esm/actions/actions.test.js.map +1 -1
  35. package/build/esm/createClient.js +17 -1
  36. package/build/esm/createClient.js.map +1 -1
  37. package/build/esm/index.js.map +1 -1
  38. package/build/esm/internal/conversions/modernToLegacyWhereClause.js +56 -18
  39. package/build/esm/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
  40. package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js +193 -7
  41. package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -1
  42. package/build/esm/object/aggregate.js +0 -4
  43. package/build/esm/object/aggregate.js.map +1 -1
  44. package/build/esm/object/convertWireToOsdkObjects.test.js +8 -8
  45. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  46. package/build/esm/object/mediaUpload.js +20 -0
  47. package/build/esm/object/mediaUpload.js.map +1 -0
  48. package/build/esm/objectSet/ObjectSet.test.js +28 -0
  49. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  50. package/build/esm/util/UserAgent.js +1 -1
  51. package/build/esm/util/toDataValue.js +4 -0
  52. package/build/esm/util/toDataValue.js.map +1 -1
  53. package/build/esm/util/toDataValue.test.js +4 -0
  54. package/build/esm/util/toDataValue.test.js.map +1 -1
  55. package/build/types/index.d.ts +1 -1
  56. package/build/types/object/mediaUpload.d.ts +2 -0
  57. package/package.json +11 -11
  58. package/build/cjs/chunk-Q4BVHDNO.cjs.map +0 -1
  59. package/build/cjs/chunk-RWHJNRHF.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Action.js","../../../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js","../../../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.3.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ActionTypeV2.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Attachment.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/MediaReferenceProperty.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/ObjectTypeV2.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyInterface.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/OntologyObjectSet.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/Query.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/QueryType.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesPropertyV2.js","../../../../node_modules/.pnpm/@osdk+internal.foundry.ontologiesv2@2.11.0/node_modules/@osdk/internal.foundry.ontologiesv2/build/esm/public/TimeSeriesValueBankProperty.js","../../src/util/addUserAgentAndRequestContextHeaders.ts","../../src/util/objectSetUtils.ts","../../src/object/fetchPage.ts"],"names":["symbolClientContext","PalantirApiError","UnknownError","get","_get","upload","_upload","list","_list","aggregate","_aggregate","createFetchHeaderMutator","result"],"mappings":";;;;;;;;;;;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AAmB,yBAAmB,CAAA,IAAA,CAAK,oCAAqC,CAAA,MAAA,EAAQ,UAAU,CAAA,EAAG,MAAM,MAAA,CAAO,WAAa,EAAA,cAAA,CAAe,IAAM,EAAA;AAAA,IAC5J,SAAA;AAAA;AAAA,IAEA,MAAA,EAAQ,IAAM,EAAA,OAAA,IAAW,EAAC;AAAA;AAAA,IAE1B,UAAA,EAAY,CAAC,IAAM,EAAA,WAAA;AAAA,GACpB,CAAC,CAAA,CAAA;AACF,EAAA,OAAO,QAAQ,OAAQ,CAAA;AAAA,IACrB,IAAA,EAAM,MAAM,MAAA,CAAO,aAAc,CAAA,MAAA,EAAQ,EAAE,IAAM,EAAA,KAAA,CAAA,EAAW,KAAW,CAAA,EAAA,IAAA,CAAK,OAAO,CAAA;AAAA,IACnF,eAAe,CAAE,CAAA,aAAA;AAAA,IACjB,YAAY,CAAE,CAAA,UAAA;AAAA,GACf,CAAA,CAAA;AACH","file":"chunk-HDBAHEBE.cjs","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _apply = [1, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyAsync = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _applyBatch = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const symbolClientContext = Symbol(\"ClientContext\");","/*\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 */\nimport { symbolClientContext as oldSymbolClientContext } from \"@osdk/shared.client\";\nimport { symbolClientContext } from \"@osdk/shared.client2\";\nimport { PalantirApiError, UnknownError } from \"@osdk/shared.net.errors\";\nexport async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {\n const path = origPath.replace(/\\{([^}]+)\\}/g, () => encodeURIComponent(args.shift()));\n const body = flags & 1 ? args.shift() : undefined;\n const queryArgs = flags & 2 ? args.shift() : undefined;\n const headerArgs = flags & 4 ? args.shift() : undefined;\n const method = [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"PATCH\"][httpMethodNum];\n return await apiFetch(client[symbolClientContext] ?? client[oldSymbolClientContext] ?? client, method, path, body, queryArgs, headerArgs, contentType, responseContentType);\n}\nasync function apiFetch(clientCtx, method, endpointPath, data, queryArguments, headers, requestMediaType, responseMediaType) {\n const url = parseUrl(clientCtx.baseUrl, endpointPath);\n for (const [key, value] of Object.entries(queryArguments || {})) {\n if (value == null) {\n continue;\n }\n if (Array.isArray(value)) {\n for (const item of value) {\n url.searchParams.append(key, item);\n }\n } else {\n url.searchParams.append(key, value);\n }\n }\n const headersInit = new Headers();\n headersInit.set(\"Content-Type\", requestMediaType ?? \"application/json\");\n headersInit.set(\"Accept\", responseMediaType ?? \"application/json\");\n Object.entries(headers || {}).forEach(([key, value]) => {\n if (value != null) {\n headersInit.append(key, value.toString());\n }\n });\n const body = data == null || data instanceof globalThis.Blob ? data : JSON.stringify(data);\n // Because this uses the client's fetch, there is a 99.99% chance that it is already going\n // to handle the error case and throw a PalantirApiError since its wrapped in a\n // createFetchOrThrow.\n const response = await clientCtx.fetch(url.toString(), {\n body,\n method: method,\n headers: headersInit\n });\n // However, if we ended up using a \"regular\" fetch, the\n // error status codes are not thrown by fetch automatically,\n // we have to look at the ok property and behave accordingly\n if (!response.ok) {\n try {\n const convertedError = await response.json();\n return new PalantirApiError(convertedError.message, convertedError.errorName, convertedError.errorCode, response.status, convertedError.errorInstanceId, convertedError.parameters);\n } catch (e) {\n if (e instanceof Error) {\n return new UnknownError(e.message, \"UNKNOWN\");\n }\n return new UnknownError(\"Unable to parse error response\", \"UNKNOWN\");\n }\n }\n // Do not return anything if its a 204. Do not parse either!\n if (response.status === 204) {\n return;\n }\n if (responseMediaType == null || responseMediaType === \"application/json\") {\n return await response.json();\n }\n return response;\n}\nexport function parseUrl(baseUrl, endpointPath) {\n baseUrl += baseUrl.endsWith(\"/\") ? \"\" : \"/\";\n return new URL(`api${endpointPath}`, baseUrl);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _upload = [1, \"/v2/ontologies/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v2/ontologies/attachments/upload\n */\nexport function upload($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString()\n };\n return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);\n}\nconst _read = [0, \"/v2/ontologies/attachments/{0}/content\",,, \"*/*\"];\n/**\n * Get the content of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _get = [0, \"/v2/ontologies/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/attachments/{attachmentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getMediaContent = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content\", 2,, \"*/*\"];\n/**\n * Gets the content of a media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/content\n */\nexport function getMediaContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaContent, ...args);\n}\nconst _getMediaMetadata = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/metadata\", 2];\n/**\n * Gets metadata about the media item referenced by this property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/media/{property}/metadata\n */\nexport function getMediaMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getMediaMetadata, ...args);\n}\nconst _upload = [1, \"/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload\", 3, \"*/*\"];\n/**\n * Uploads a media item to the media set which backs the specified property. The property must be backed by a single media set and branch, otherwise an error will be thrown.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scopes: `api:ontologies-read api:mediasets-read api:mediasets-write`.\n *\n * @beta\n *\n * Required Scopes: [api:ontologies-read, api:mediasets-read, api:mediasets-write]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/media/{property}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/objectTypes\", 2];\n/**\n * Lists the object types for the given Ontology.\n *\n * Each page may be smaller or larger than the requested page size. However, it is guaranteed that if there are\n * more results available, at least one result will be present in the\n * response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/objectTypes/{1}\"];\n/**\n * Gets a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getFullMetadata = [0, \"/v2/ontologies/{0}/objectTypes/{1}/fullMetadata\", 2];\n/**\n * Gets the full metadata for a specific object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/fullMetadata\n */\nexport function getFullMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFullMetadata, ...args);\n}\nconst _listOutgoingLinkTypes = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes\", 2];\n/**\n * List the outgoing links for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listOutgoingLinkTypes, ...args);\n}\nconst _getOutgoingLinkType = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}\"];\n/**\n * Get an outgoing link for an object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/interfaceTypes\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Lists the interface types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/interfaceTypes/{1}\", 2];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Gets a specific interface type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaceTypes/{interfaceType}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/ontologies/{0}/interfaces/{1}/search\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint will be removed once TS OSDK is updated to use `objectSets/loadObjects` with interface object\n * sets.\n * :::\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Search for objects in the specified ontology and interface type. Any properties specified in the \"where\" or\n * \"orderBy\" parameters must be shared property type API names defined on the interface. The following search\n * queries are supported:\n *\n * | Query type | Description | Supported Types |\n * |-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------|\n * | lt | The provided property is less than the provided value. | number, string, date, timestamp |\n * | gt | The provided property is greater than the provided value. | number, string, date, timestamp |\n * | lte | The provided property is less than or equal to the provided value. | number, string, date, timestamp |\n * | gte | The provided property is greater than or equal to the provided value. | number, string, date, timestamp |\n * | eq | The provided property is exactly equal to the provided value. | number, string, date, timestamp |\n * | isNull | The provided property is (or is not) null. | all |\n * | contains | The provided property contains the provided value. | array |\n * | not | The sub-query does not match. | N/A (applied on a query) |\n * | and | All the sub-queries match. | N/A (applied on queries) |\n * | or | At least one of the sub-queries match. | N/A (applied on queries) |\n * | startsWith | The provided property starts with the provided term. | string |\n * | containsAllTermsInOrderPrefixLastTerm | The provided property contains all the terms provided in order. The last term can be a partial prefix match. | string |\n * | containsAllTermsInOrder | The provided property contains the provided terms as a substring. | string |\n * | containsAnyTerm | The provided property contains at least one of the terms separated by whitespace. | string |\n * | containsAllTerms | The provided property contains all the terms separated by whitespace. | string |\n *\n * Queries can be at most three levels deep. By default, terms are separated by whitespace or punctuation (`?!,:;-[](){}'\"~`). Periods (`.`) on their own are ignored.\n * Partial terms are not matched by terms filters except where explicitly noted.\n *\n * Attempting to use an unsupported query will result in a validation error. Third-party applications using this\n * endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _aggregate = [1, \"/v2/ontologies/{0}/interfaces/{1}/aggregate\", 3];\n/**\n * :::callout{theme=warning title=Warning}\n * This endpoint will be removed once TS OSDK is updated to use `objectSets/aggregate` with interface object\n * sets.\n * :::\n * :::callout{theme=warning title=Warning}\n * This endpoint is in preview and may be modified or removed at any time.\n * To use this endpoint, add `preview=true` to the request query parameters.\n * :::\n *\n * Perform functions on object fields in the specified ontology and of the specified interface type. Any\n * properties specified in the query must be shared property type API names defined on the interface.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _createTemporary = [1, \"/v2/ontologies/{0}/objectSets/createTemporary\", 1];\n/**\n * Creates a temporary `ObjectSet` from the given definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/objectSets/createTemporary\n */\nexport function createTemporary($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTemporary, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/objectSets/{1}\"];\n/**\n * Gets the definition of the `ObjectSet` with the given RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: []\n * URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _load = [1, \"/v2/ontologies/{0}/objectSets/loadObjects\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjects\n */\nexport function load($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _load, ...args);\n}\nconst _loadMultipleObjectTypes = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsMultipleObjectTypes\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. The resulting\n * objects may be scoped to an object type, in which all the selected properties on the object type are returned, or scoped\n * to an interface, in which only the object type properties that implement the properties of any interfaces in its\n * scope are returned. For objects that are scoped to an interface in the result, a mapping from interface to\n * object implementation is returned in order to interpret the objects as the interfaces that they implement.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `loadObjects`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsMultipleObjectTypes\n */\nexport function loadMultipleObjectTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadMultipleObjectTypes, ...args);\n}\nconst _loadObjectsOrInterfaces = [1, \"/v2/ontologies/{0}/objectSets/loadObjectsOrInterfaces\", 3];\n/**\n * Load the ontology objects present in the `ObjectSet` from the provided object set definition. If the requested\n * object set contains interfaces and the object can be viewed as an interface, it will contain the properties\n * defined by the interface. If not, it will contain the properties defined by its object type. This allows directly\n * loading all objects of an interface where all objects are viewed as the interface, for example.\n *\n * Note that the result object set cannot contain a mix of objects with \"interface\" properties and \"object type\"\n * properties. Attempting to load an object set like this will result in an error.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Note that null value properties will not be returned. In addition, property metadata (rid, apiName, and primaryKey)\n * will be prefixed with '$' instead of '\\_\\_' as is the case in `/loadObjects`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjectsOrInterfaces\n */\nexport function loadObjectsOrInterfaces($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _loadObjectsOrInterfaces, ...args);\n}\nconst _aggregate = [1, \"/v2/ontologies/{0}/objectSets/aggregate\", 3];\n/**\n * Aggregates the ontology objects present in the `ObjectSet` from the provided object set definition.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objectSets/aggregate\n */\nexport function aggregate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _aggregate, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _execute = [1, \"/v2/ontologies/{0}/queries/{1}/execute\", 3];\n/**\n * Executes a Query using the given parameters.\n *\n * Optional parameters do not need to be supplied.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/ontologies/{0}/queryTypes\", 2];\n/**\n * Lists the query types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/ontologies/{0}/queryTypes/{1}\"];\n/**\n * Gets a specific query type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getFirstPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint\", 2];\n/**\n * Get the first point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint\n */\nexport function getFirstPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFirstPoint, ...args);\n}\nconst _getLastPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint\", 2];\n/**\n * Get the last point of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint\n */\nexport function getLastPoint($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLastPoint, ...args);\n}\nconst _streamPoints = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints\", 3,, \"*/*\"];\n/**\n * Stream all of the points of a time series property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints\n */\nexport function streamPoints($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamPoints, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _getLatestValue = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue\", 2];\n/**\n * Get the latest value of a property backed by a timeseries. If a specific geotime series integration has both a history and a live integration, we will give precedence to the live integration.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * @alpha\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{propertyName}/latestValue\n */\nexport function getLatestValue($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLatestValue, ...args);\n}\nconst _streamValues = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamValues\", 3,, \"*/*\"];\n/**\n * Stream all of the points of a time series property (this includes geotime series references).\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * @alpha\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamValues\n */\nexport function streamValues($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _streamValues, ...args);\n}","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createFetchHeaderMutator } from \"@osdk/shared.net.fetch\";\nexport const addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({\n ...client,\n fetch: createFetchHeaderMutator(client.fetch, headers => {\n headers.set(\"X-OSDK-Request-Context\", JSON.stringify(client.requestContext));\n if (withMetadata.osdkMetadata) {\n headers.set(\"Fetch-User-Agent\", withMetadata.osdkMetadata.extraUserAgent);\n }\n return headers;\n })\n});","/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function resolveBaseObjectSetType(objectType) {\n return objectType.type === \"interface\" ? {\n type: \"interfaceBase\",\n interfaceType: objectType[\"apiName\"]\n } : {\n type: \"base\",\n objectType: objectType[\"apiName\"]\n };\n}","/*\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 * as OntologiesV2 from \"@osdk/internal.foundry.ontologiesv2\";\nimport { addUserAgentAndRequestContextHeaders } from \"../util/addUserAgentAndRequestContextHeaders.js\";\nimport { resolveBaseObjectSetType } from \"../util/objectSetUtils.js\";\nexport function augment(type, ...properties) {\n return {\n [type.apiName]: properties\n };\n}\n\n/** @internal */\nexport function objectSetToSearchJsonV2(objectSet, expectedApiName, existingWhere = undefined) {\n if (objectSet.type === \"base\" || objectSet.type === \"interfaceBase\") {\n if (objectSet.type === \"base\" && objectSet.objectType !== expectedApiName) {\n throw new Error(`Expected objectSet.objectType to be ${expectedApiName}, but got ${objectSet.objectType}`);\n }\n if (objectSet.type === \"interfaceBase\" && objectSet.interfaceType !== expectedApiName) {\n throw new Error(`Expected objectSet.objectType to be ${expectedApiName}, but got ${objectSet.interfaceType}`);\n }\n return existingWhere;\n }\n if (objectSet.type === \"filter\") {\n return objectSetToSearchJsonV2(objectSet.objectSet, expectedApiName, existingWhere == null ? objectSet.where : {\n type: \"and\",\n value: [existingWhere, objectSet.where]\n });\n }\n throw new Error(`Unsupported objectSet type: ${objectSet.type}`);\n}\nasync function fetchInterfacePage(client, interfaceType, args, objectSet) {\n if (args.$__UNSTABLE_useOldInterfaceApis) {\n const result = await OntologiesV2.OntologyInterfaces.search(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, interfaceType.apiName, applyFetchArgs(args, {\n augmentedProperties: {},\n augmentedSharedPropertyTypes: {},\n otherInterfaceTypes: [],\n selectedObjectTypes: [],\n selectedSharedPropertyTypes: args.$select ?? [],\n where: objectSetToSearchJsonV2(objectSet, interfaceType.apiName)\n }), {\n preview: true\n });\n result.data = await client.objectFactory(client, result.data,\n // drop readonly\n interfaceType.apiName, !args.$includeRid);\n return result;\n }\n const result = await OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, applyFetchArgs(args, {\n objectSet,\n select: args?.$select ?? [],\n excludeRid: !args?.$includeRid\n }), {\n preview: true\n });\n return Promise.resolve({\n data: await client.objectFactory2(client, result.data, interfaceType.apiName, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),\n nextPageToken: result.nextPageToken,\n totalCount: result.totalCount\n });\n}\n\n/** @internal */\nexport async function fetchPageInternal(client, objectType, objectSet, args = {}) {\n if (objectType.type === \"interface\") {\n return await fetchInterfacePage(client, objectType, args, objectSet); // fixme\n } else {\n return await fetchObjectPage(client, objectType, args, objectSet); // fixme\n }\n}\n\n/** @internal */\nexport async function fetchPageWithErrorsInternal(client, objectType, objectSet, args = {}) {\n try {\n const result = await fetchPageInternal(client, objectType, objectSet, args);\n return {\n value: result\n };\n } catch (e) {\n if (e instanceof Error) {\n return {\n error: e\n };\n }\n return {\n error: e\n };\n }\n}\n\n/**\n * @param client\n * @param objectType\n * @param args\n * @param objectSet\n * @returns\n * @internal\n */\nexport async function fetchPage(client, objectType, args, objectSet = resolveBaseObjectSetType(objectType)) {\n return fetchPageInternal(client, objectType, objectSet, args);\n}\n\n/** @internal */\nexport async function fetchPageWithErrors(client, objectType, args, objectSet = resolveBaseObjectSetType(objectType)) {\n return fetchPageWithErrorsInternal(client, objectType, objectSet, args);\n}\nfunction applyFetchArgs(args, body) {\n if (args?.$nextPageToken) {\n body.pageToken = args.$nextPageToken;\n }\n if (args?.$pageSize != null) {\n body.pageSize = args.$pageSize;\n }\n if (args?.$orderBy != null) {\n body.orderBy = {\n fields: Object.entries(args.$orderBy).map(([field, direction]) => ({\n field,\n direction\n }))\n };\n }\n return body;\n}\n\n/** @internal */\nexport async function fetchObjectPage(client, objectType, args, objectSet) {\n const r = await OntologiesV2.OntologyObjectSets.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, applyFetchArgs(args, {\n objectSet,\n // We have to do the following case because LoadObjectSetRequestV2 isn't readonly\n select: args?.$select ?? [],\n // FIXME?\n excludeRid: !args?.$includeRid\n }));\n return Promise.resolve({\n data: await client.objectFactory(client, r.data, undefined, undefined, args.$select),\n nextPageToken: r.nextPageToken,\n totalCount: r.totalCount\n });\n}"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkRWHJNRHF_cjs = require('./chunk-RWHJNRHF.cjs');
4
- var chunkQ4BVHDNO_cjs = require('./chunk-Q4BVHDNO.cjs');
3
+ var chunkAMEMEGJZ_cjs = require('./chunk-AMEMEGJZ.cjs');
4
+ var chunkHDBAHEBE_cjs = require('./chunk-HDBAHEBE.cjs');
5
5
  var api = require('@osdk/api');
6
6
  var shared_net_errors = require('@osdk/shared.net.errors');
7
7
  var unstable = require('@osdk/api/unstable');
@@ -374,6 +374,11 @@ function createAttachmentUpload(data, name) {
374
374
  };
375
375
  }
376
376
 
377
+ // src/object/mediaUpload.ts
378
+ function isMediaReference(o) {
379
+ return typeof o === `object` && typeof o.mimeType === "string" && "reference" in o && typeof o.reference === "object" && o.reference.type === "mediaSetViewItem" && "mediaSetViewItem" in o.reference && typeof o.reference.mediaSetViewItem === "object" && typeof o.reference.mediaSetViewItem.mediaSetRid === "string" && typeof o.reference.mediaSetViewItem.mediaSetViewRid === "string" && typeof o.reference.mediaSetViewItem.mediaItemRid === "string";
380
+ }
381
+
377
382
  // src/util/interfaceUtils.ts
378
383
  function isInterfaceActionParam(o) {
379
384
  return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
@@ -399,13 +404,13 @@ async function toDataValue(value, client) {
399
404
  return Promise.all(promiseArray);
400
405
  }
401
406
  if (isAttachmentUpload(value)) {
402
- const attachment = await chunkQ4BVHDNO_cjs.Attachment_exports.upload(client, value.data, {
407
+ const attachment = await chunkHDBAHEBE_cjs.Attachment_exports.upload(client, value.data, {
403
408
  filename: value.name
404
409
  });
405
410
  return await toDataValue(attachment.rid, client);
406
411
  }
407
412
  if (typeof value === "object" && value instanceof Blob && "name" in value) {
408
- const attachment = await chunkQ4BVHDNO_cjs.Attachment_exports.upload(client, value, {
413
+ const attachment = await chunkHDBAHEBE_cjs.Attachment_exports.upload(client, value, {
409
414
  filename: value.name
410
415
  });
411
416
  return await toDataValue(attachment.rid, client);
@@ -416,11 +421,14 @@ async function toDataValue(value, client) {
416
421
  if (isOsdkBaseObject(value)) {
417
422
  return await toDataValue(value.$primaryKey, client);
418
423
  }
419
- if (chunkRWHJNRHF_cjs.isWireObjectSet(value)) {
424
+ if (chunkAMEMEGJZ_cjs.isWireObjectSet(value)) {
420
425
  return value;
421
426
  }
422
- if (chunkRWHJNRHF_cjs.isObjectSet(value)) {
423
- return chunkRWHJNRHF_cjs.getWireObjectSet(value);
427
+ if (chunkAMEMEGJZ_cjs.isObjectSet(value)) {
428
+ return chunkAMEMEGJZ_cjs.getWireObjectSet(value);
429
+ }
430
+ if (isMediaReference(value)) {
431
+ return value;
424
432
  }
425
433
  if (isInterfaceActionParam(value)) {
426
434
  return {
@@ -440,11 +448,11 @@ async function toDataValue(value, client) {
440
448
 
441
449
  // src/actions/applyAction.ts
442
450
  async function applyAction(client, action, parameters, options = {}) {
443
- const clientWithHeaders = chunkQ4BVHDNO_cjs.addUserAgentAndRequestContextHeaders(chunkRWHJNRHF_cjs.augmentRequestContext(client, (_) => ({
451
+ const clientWithHeaders = chunkHDBAHEBE_cjs.addUserAgentAndRequestContextHeaders(chunkAMEMEGJZ_cjs.augmentRequestContext(client, (_) => ({
444
452
  finalMethodCall: "applyAction"
445
453
  })), action);
446
454
  if (Array.isArray(parameters)) {
447
- const response = await chunkQ4BVHDNO_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
455
+ const response = await chunkHDBAHEBE_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
448
456
  requests: parameters ? await remapBatchActionParams(parameters, client) : [],
449
457
  options: {
450
458
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
@@ -453,7 +461,7 @@ async function applyAction(client, action, parameters, options = {}) {
453
461
  const edits = response.edits;
454
462
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
455
463
  } else {
456
- const response = await chunkQ4BVHDNO_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
464
+ const response = await chunkHDBAHEBE_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
457
465
  parameters: await remapActionParams(parameters, client),
458
466
  options: {
459
467
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
@@ -651,7 +659,7 @@ var GeotimeSeriesPropertyImpl = class {
651
659
  }
652
660
  }
653
661
  async getLatestValue() {
654
- const latestPointPromise = chunkQ4BVHDNO_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
662
+ const latestPointPromise = chunkHDBAHEBE_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
655
663
  latestPointPromise.then(
656
664
  (latestPoint) => this.lastFetchedValue = latestPoint,
657
665
  // eslint-disable-next-line no-console
@@ -667,7 +675,7 @@ var GeotimeSeriesPropertyImpl = class {
667
675
  return allPoints;
668
676
  }
669
677
  async *asyncIterValues(query) {
670
- const streamPointsIterator = await chunkQ4BVHDNO_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
678
+ const streamPointsIterator = await chunkHDBAHEBE_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
671
679
  range: getTimeRange(query)
672
680
  } : {});
673
681
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -691,13 +699,13 @@ var MediaReferencePropertyImpl = class {
691
699
  this.#triplet = [objectApiName, primaryKey, propertyName];
692
700
  }
693
701
  async fetchContents() {
694
- return chunkQ4BVHDNO_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
702
+ return chunkHDBAHEBE_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
695
703
  preview: true
696
704
  // TODO: Can turn this back off when backend is no longer in beta.
697
705
  });
698
706
  }
699
707
  async fetchMetadata() {
700
- const r = await chunkQ4BVHDNO_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
708
+ const r = await chunkHDBAHEBE_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
701
709
  preview: true
702
710
  // TODO: Can turn this back off when backend is no longer in beta.
703
711
  });
@@ -718,10 +726,10 @@ var TimeSeriesPropertyImpl = class {
718
726
  this.#triplet = [objectApiName, primaryKey, propertyName];
719
727
  }
720
728
  async getFirstPoint() {
721
- return chunkQ4BVHDNO_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
729
+ return chunkHDBAHEBE_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
722
730
  }
723
731
  async getLastPoint() {
724
- return chunkQ4BVHDNO_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
732
+ return chunkHDBAHEBE_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
725
733
  }
726
734
  async getAllPoints(query) {
727
735
  const allPoints = [];
@@ -731,7 +739,7 @@ var TimeSeriesPropertyImpl = class {
731
739
  return allPoints;
732
740
  }
733
741
  async *asyncIterPoints(query) {
734
- const streamPointsIterator = await chunkQ4BVHDNO_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
742
+ const streamPointsIterator = await chunkHDBAHEBE_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
735
743
  range: getTimeRange(query)
736
744
  } : {});
737
745
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -751,7 +759,7 @@ var ClientRef = Symbol("ClientRef" );
751
759
 
752
760
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
753
761
  function createOsdkInterface(underlying, interfaceDef) {
754
- const [objApiNamespace] = chunkRWHJNRHF_cjs.extractNamespace(interfaceDef.apiName);
762
+ const [objApiNamespace] = chunkAMEMEGJZ_cjs.extractNamespace(interfaceDef.apiName);
755
763
  return Object.freeze(Object.defineProperties({}, {
756
764
  // first to minimize hidden classes
757
765
  [UnderlyingOsdkObject]: {
@@ -786,7 +794,7 @@ function createOsdkInterface(underlying, interfaceDef) {
786
794
  },
787
795
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
788
796
  const objDef = underlying[ObjectDefRef];
789
- const [apiNamespace, apiName] = chunkRWHJNRHF_cjs.extractNamespace(p);
797
+ const [apiNamespace, apiName] = chunkAMEMEGJZ_cjs.extractNamespace(p);
790
798
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
791
799
  return [apiNamespace === objApiNamespace ? apiName : p, {
792
800
  enumerable: targetPropName in underlying,
@@ -842,8 +850,8 @@ function get$link(holder) {
842
850
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
843
851
  }).pivotTo(linkName);
844
852
  const value = !linkDef.multiplicity ? {
845
- fetchOne: (options) => chunkRWHJNRHF_cjs.fetchSingle(client, objDef, options ?? {}, chunkRWHJNRHF_cjs.getWireObjectSet(objectSet)),
846
- fetchOneWithErrors: (options) => chunkRWHJNRHF_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkRWHJNRHF_cjs.getWireObjectSet(objectSet))
853
+ fetchOne: (options) => chunkAMEMEGJZ_cjs.fetchSingle(client, objDef, options ?? {}, chunkAMEMEGJZ_cjs.getWireObjectSet(objectSet)),
854
+ fetchOneWithErrors: (options) => chunkAMEMEGJZ_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkAMEMEGJZ_cjs.getWireObjectSet(objectSet))
847
855
  } : objectSet;
848
856
  return [linkName, value];
849
857
  })));
@@ -898,9 +906,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
898
906
  {
899
907
  if (propDef.type === "attachment") {
900
908
  if (Array.isArray(rawValue)) {
901
- return rawValue.map((a) => chunkRWHJNRHF_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
909
+ return rawValue.map((a) => chunkAMEMEGJZ_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
902
910
  }
903
- return chunkRWHJNRHF_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
911
+ return chunkAMEMEGJZ_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
904
912
  }
905
913
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
906
914
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1114,11 +1122,11 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
1114
1122
  return ret;
1115
1123
  }
1116
1124
  async function loadActionMetadata(client, actionType) {
1117
- const r = await chunkQ4BVHDNO_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1125
+ const r = await chunkHDBAHEBE_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1118
1126
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
1119
1127
  }
1120
1128
  async function loadFullObjectMetadata(client, objectType) {
1121
- const full = await chunkQ4BVHDNO_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1129
+ const full = await chunkHDBAHEBE_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1122
1130
  preview: true
1123
1131
  });
1124
1132
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
@@ -1128,13 +1136,13 @@ async function loadFullObjectMetadata(client, objectType) {
1128
1136
  };
1129
1137
  }
1130
1138
  async function loadInterfaceMetadata(client, objectType) {
1131
- const r = await chunkQ4BVHDNO_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1139
+ const r = await chunkHDBAHEBE_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1132
1140
  preview: true
1133
1141
  });
1134
1142
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
1135
1143
  }
1136
1144
  async function loadQueryMetadata(client, queryType) {
1137
- const r = await chunkQ4BVHDNO_cjs.QueryType_exports.get(client, await client.ontologyRid, queryType);
1145
+ const r = await chunkHDBAHEBE_cjs.QueryType_exports.get(client, await client.ontologyRid, queryType);
1138
1146
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
1139
1147
  }
1140
1148
 
@@ -1181,10 +1189,10 @@ var createStandardOntologyProviderFactory = (client) => {
1181
1189
  };
1182
1190
 
1183
1191
  // src/util/UserAgent.ts
1184
- var USER_AGENT = `osdk-client/${"2.1.0-beta.25"}`;
1192
+ var USER_AGENT = `osdk-client/${"2.1.0-beta.26"}`;
1185
1193
 
1186
1194
  // src/createMinimalClient.ts
1187
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkRWHJNRHF_cjs.createObjectSet) {
1195
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkAMEMEGJZ_cjs.createObjectSet) {
1188
1196
  if (process.env.NODE_ENV !== "production") {
1189
1197
  try {
1190
1198
  new URL(baseUrl);
@@ -1246,13 +1254,13 @@ async function toDataValueQueries(value, client, desiredType) {
1246
1254
  switch (desiredType.type) {
1247
1255
  case "attachment": {
1248
1256
  if (isAttachmentUpload(value)) {
1249
- const attachment = await chunkQ4BVHDNO_cjs.Attachment_exports.upload(client, value.data, {
1257
+ const attachment = await chunkHDBAHEBE_cjs.Attachment_exports.upload(client, value.data, {
1250
1258
  filename: value.name
1251
1259
  });
1252
1260
  return attachment.rid;
1253
1261
  }
1254
1262
  if (typeof value === "object" && value instanceof Blob && "name" in value) {
1255
- const attachment = await chunkQ4BVHDNO_cjs.Attachment_exports.upload(client, value, {
1263
+ const attachment = await chunkHDBAHEBE_cjs.Attachment_exports.upload(client, value, {
1256
1264
  filename: value.name
1257
1265
  });
1258
1266
  return attachment.rid;
@@ -1283,11 +1291,11 @@ async function toDataValueQueries(value, client, desiredType) {
1283
1291
  break;
1284
1292
  }
1285
1293
  case "objectSet": {
1286
- if (chunkRWHJNRHF_cjs.isWireObjectSet(value)) {
1294
+ if (chunkAMEMEGJZ_cjs.isWireObjectSet(value)) {
1287
1295
  return value;
1288
1296
  }
1289
- if (chunkRWHJNRHF_cjs.isObjectSet(value)) {
1290
- return chunkRWHJNRHF_cjs.getWireObjectSet(value);
1297
+ if (chunkAMEMEGJZ_cjs.isObjectSet(value)) {
1298
+ return chunkAMEMEGJZ_cjs.getWireObjectSet(value);
1291
1299
  }
1292
1300
  break;
1293
1301
  }
@@ -1316,7 +1324,7 @@ async function toDataValueQueries(value, client, desiredType) {
1316
1324
  // src/queries/applyQuery.ts
1317
1325
  async function applyQuery(client, query, params) {
1318
1326
  const qd = await client.ontologyProvider.getQueryDefinition(query.apiName);
1319
- const response = await chunkQ4BVHDNO_cjs.Query_exports.execute(chunkQ4BVHDNO_cjs.addUserAgentAndRequestContextHeaders(chunkRWHJNRHF_cjs.augmentRequestContext(client, (_) => ({
1327
+ const response = await chunkHDBAHEBE_cjs.Query_exports.execute(chunkHDBAHEBE_cjs.addUserAgentAndRequestContextHeaders(chunkAMEMEGJZ_cjs.augmentRequestContext(client, (_) => ({
1320
1328
  finalMethodCall: "applyQuery"
1321
1329
  })), query), await client.ontologyRid, query.apiName, {
1322
1330
  parameters: params ? await remapQueryParams(params, client, qd.parameters) : {}
@@ -1361,7 +1369,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1361
1369
  return responseValue;
1362
1370
  }
1363
1371
  case "attachment": {
1364
- return chunkRWHJNRHF_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1372
+ return chunkAMEMEGJZ_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1365
1373
  }
1366
1374
  case "object": {
1367
1375
  const def = definitions.get(responseDataType.object);
@@ -1376,7 +1384,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1376
1384
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
1377
1385
  }
1378
1386
  if (typeof responseValue === "string") {
1379
- return chunkRWHJNRHF_cjs.createObjectSet(def, client, {
1387
+ return chunkAMEMEGJZ_cjs.createObjectSet(def, client, {
1380
1388
  type: "intersect",
1381
1389
  objectSets: [{
1382
1390
  type: "base",
@@ -1387,7 +1395,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1387
1395
  }]
1388
1396
  });
1389
1397
  }
1390
- return chunkRWHJNRHF_cjs.createObjectSet(def, client, responseValue);
1398
+ return chunkAMEMEGJZ_cjs.createObjectSet(def, client, responseValue);
1391
1399
  }
1392
1400
  case "struct": {
1393
1401
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -1542,7 +1550,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1542
1550
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe.name:
1543
1551
  return {
1544
1552
  subscribe: (objectSet, listener, opts) => {
1545
- const pendingSubscribe = chunkRWHJNRHF_cjs.ObjectSetListenerWebsocket.getInstance(clientCtx).subscribe(objectSet.$objectSetInternals?.def, chunkRWHJNRHF_cjs.getWireObjectSet(objectSet), listener, opts?.properties);
1553
+ const pendingSubscribe = chunkAMEMEGJZ_cjs.ObjectSetListenerWebsocket.getInstance(clientCtx).subscribe(objectSet.$objectSetInternals?.def, chunkAMEMEGJZ_cjs.getWireObjectSet(objectSet), listener, opts?.properties);
1546
1554
  return {
1547
1555
  unsubscribe: async () => (await pendingSubscribe)()
1548
1556
  };
@@ -1551,7 +1559,22 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1551
1559
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
1552
1560
  return {
1553
1561
  fetchOneByRid: async (objectType, rid, options2) => {
1554
- return await chunkRWHJNRHF_cjs.fetchSingle(clientCtx, objectType, options2, createWithRid(rid));
1562
+ return await chunkAMEMEGJZ_cjs.fetchSingle(clientCtx, objectType, options2, createWithRid(rid));
1563
+ }
1564
+ };
1565
+ case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
1566
+ return {
1567
+ createMediaReference: async (args) => {
1568
+ const {
1569
+ data,
1570
+ fileName,
1571
+ objectTypeApi,
1572
+ propertyTypeApi
1573
+ } = args;
1574
+ return await chunkHDBAHEBE_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectTypeApi, propertyTypeApi, data, {
1575
+ mediaItemPath: fileName,
1576
+ preview: true
1577
+ });
1555
1578
  }
1556
1579
  };
1557
1580
  }
@@ -1563,13 +1586,13 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1563
1586
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
1564
1587
  const symbolClientContext2 = "__osdkClientContext";
1565
1588
  const client = Object.defineProperties(clientFn, {
1566
- [chunkQ4BVHDNO_cjs.symbolClientContext]: {
1589
+ [chunkHDBAHEBE_cjs.symbolClientContext]: {
1567
1590
  value: clientCtx
1568
1591
  },
1569
1592
  [symbolClientContext2]: {
1570
1593
  value: clientCtx
1571
1594
  },
1572
- [chunkRWHJNRHF_cjs.additionalContext]: {
1595
+ [chunkAMEMEGJZ_cjs.additionalContext]: {
1573
1596
  value: clientCtx
1574
1597
  },
1575
1598
  fetchMetadata: {
@@ -1578,7 +1601,7 @@ function createClientInternal(objectSetFactory, baseUrl, ontologyRid, tokenProvi
1578
1601
  });
1579
1602
  return client;
1580
1603
  }
1581
- var createClient = createClientInternal.bind(void 0, chunkRWHJNRHF_cjs.createObjectSet);
1604
+ var createClient = createClientInternal.bind(void 0, chunkAMEMEGJZ_cjs.createObjectSet);
1582
1605
  function createWithRid(rid) {
1583
1606
  const withRid = {
1584
1607
  type: "static",