@osdk/internal.foundry.ontologies 0.2.0-beta.2 → 0.2.0-beta.4

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 (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/build/{esm/chunk-SO7SXCWR.js → browser/chunk-SALCOSHR.js} +3 -3
  3. package/build/{esm/chunk-SO7SXCWR.js.map → browser/chunk-SALCOSHR.js.map} +1 -1
  4. package/build/browser/{chunk-Y7POOFVF.js → chunk-UM4N5F6D.js} +3 -3
  5. package/build/browser/chunk-UM4N5F6D.js.map +1 -0
  6. package/build/browser/{chunk-3GNJUZCN.js → chunk-YCOLCQXU.js} +8 -3
  7. package/build/browser/chunk-YCOLCQXU.js.map +1 -0
  8. package/build/browser/index.js +3 -3
  9. package/build/browser/public/Attachment.js +1 -1
  10. package/build/browser/public/Query.js +1 -1
  11. package/build/browser/public/QueryType.js +1 -1
  12. package/build/esm/_errors.d.ts +1146 -0
  13. package/build/esm/_errors.d.ts.map +1 -0
  14. package/build/{browser/chunk-SO7SXCWR.js → esm/chunk-SALCOSHR.js} +3 -3
  15. package/build/{browser/chunk-SO7SXCWR.js.map → esm/chunk-SALCOSHR.js.map} +1 -1
  16. package/build/esm/{chunk-Y7POOFVF.js → chunk-UM4N5F6D.js} +3 -3
  17. package/build/esm/chunk-UM4N5F6D.js.map +1 -0
  18. package/build/esm/{chunk-3GNJUZCN.js → chunk-YCOLCQXU.js} +8 -3
  19. package/build/esm/chunk-YCOLCQXU.js.map +1 -0
  20. package/build/esm/index.d.ts +1 -0
  21. package/build/esm/index.d.ts.map +1 -1
  22. package/build/esm/index.js +3 -3
  23. package/build/esm/public/Attachment.d.ts +3 -4
  24. package/build/esm/public/Attachment.d.ts.map +1 -1
  25. package/build/esm/public/Attachment.js +1 -1
  26. package/build/esm/public/Query.d.ts +2 -5
  27. package/build/esm/public/Query.d.ts.map +1 -1
  28. package/build/esm/public/Query.js +1 -1
  29. package/build/esm/public/QueryType.d.ts +2 -9
  30. package/build/esm/public/QueryType.d.ts.map +1 -1
  31. package/build/esm/public/QueryType.js +1 -1
  32. package/package.json +6 -7
  33. package/build/browser/chunk-3GNJUZCN.js.map +0 -1
  34. package/build/browser/chunk-Y7POOFVF.js.map +0 -1
  35. package/build/esm/chunk-3GNJUZCN.js.map +0 -1
  36. package/build/esm/chunk-Y7POOFVF.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @osdk/internal.foundry.ontologies
2
2
 
3
+ ## 0.2.0-beta.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 5d6d5ab: We now generate error types
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5d6d5ab]
12
+ - @osdk/internal.foundry.core@0.2.0-beta.4
13
+
14
+ ## 0.2.0-beta.3
15
+
16
+ ### Minor Changes
17
+
18
+ - 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
19
+ - 5d6d5ab: SLS dependencies are optional
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [5d6d5ab]
24
+ - Updated dependencies [5d6d5ab]
25
+ - @osdk/internal.foundry.core@0.2.0-beta.3
26
+ - @osdk/shared.net@1.13.0-beta.0
27
+
3
28
  ## 0.2.0-beta.2
4
29
 
5
30
  ### Patch Changes
@@ -6,11 +6,11 @@ var Query_exports = {};
6
6
  __export(Query_exports, {
7
7
  executeQuery: () => executeQuery
8
8
  });
9
- var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 3];
9
+ var _executeQuery = [1, "/v1/ontologies/{0}/queries/{1}/execute", 1];
10
10
  function executeQuery($ctx, ...args) {
11
11
  return foundryPlatformFetch($ctx, _executeQuery, ...args);
12
12
  }
13
13
 
14
14
  export { Query_exports, executeQuery };
15
- //# sourceMappingURL=chunk-SO7SXCWR.js.map
16
- //# sourceMappingURL=chunk-SO7SXCWR.js.map
15
+ //# sourceMappingURL=chunk-SALCOSHR.js.map
16
+ //# sourceMappingURL=chunk-SALCOSHR.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/public/Query.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,aAAA,GAAA,GAAA;AAAA,QAAA,CAAA,aAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,wCAAA,EAA0C,CAAC,CAAA,CAAA;AAY9D,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-SO7SXCWR.js","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _executeQuery = [1, \"/v1/ontologies/{0}/queries/{1}/execute\", 3];\n\n/**\n * Executes a Query using the given parameters. Optional parameters do not need to be supplied.\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: /v1/ontologies/{ontologyRid}/queries/{queryApiName}/execute\n */\nexport function executeQuery($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeQuery, ...args);\n}"]}
1
+ {"version":3,"sources":["../../src/public/Query.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,aAAA,GAAA,GAAA;AAAA,QAAA,CAAA,aAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,wCAAA,EAA0C,CAAC,CAAA,CAAA;AAY9D,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-SALCOSHR.js","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _executeQuery = [1, \"/v1/ontologies/{0}/queries/{1}/execute\", 1];\n\n/**\n * Executes a Query using the given parameters. Optional parameters do not need to be supplied.\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: /v1/ontologies/{ontologyRid}/queries/{queryApiName}/execute\n */\nexport function executeQuery($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _executeQuery, ...args);\n}"]}
@@ -11,11 +11,11 @@ var _listQueryTypes = [0, "/v1/ontologies/{0}/queryTypes", 2];
11
11
  function listQueryTypes($ctx, ...args) {
12
12
  return foundryPlatformFetch($ctx, _listQueryTypes, ...args);
13
13
  }
14
- var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}", 2];
14
+ var _getQueryType = [0, "/v1/ontologies/{0}/queryTypes/{1}"];
15
15
  function getQueryType($ctx, ...args) {
16
16
  return foundryPlatformFetch($ctx, _getQueryType, ...args);
17
17
  }
18
18
 
19
19
  export { QueryType_exports, getQueryType, listQueryTypes };
20
- //# sourceMappingURL=chunk-Y7POOFVF.js.map
21
- //# sourceMappingURL=chunk-Y7POOFVF.js.map
20
+ //# sourceMappingURL=chunk-UM4N5F6D.js.map
21
+ //# sourceMappingURL=chunk-UM4N5F6D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/QueryType.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,iBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,iBAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,eAAkB,GAAA,CAAC,CAAG,EAAA,+BAAA,EAAiC,CAAC,CAAA,CAAA;AAevD,SAAS,cAAA,CAAe,SAAS,IAAM,EAAA;AAC5C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,eAAiB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC7D,CAAA;AACA,IAAM,aAAA,GAAgB,CAAC,CAAA,EAAG,mCAAmC,CAAA,CAAA;AAYtD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-UM4N5F6D.js","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _listQueryTypes = [0, \"/v1/ontologies/{0}/queryTypes\", 2];\n\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: /v1/ontologies/{ontologyRid}/queryTypes\n */\nexport function listQueryTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listQueryTypes, ...args);\n}\nconst _getQueryType = [0, \"/v1/ontologies/{0}/queryTypes/{1}\"];\n\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: /v1/ontologies/{ontologyRid}/queryTypes/{queryApiName}\n */\nexport function getQueryType($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getQueryType, ...args);\n}"]}
@@ -10,7 +10,12 @@ __export(Attachment_exports, {
10
10
  });
11
11
  var _uploadAttachment = [1, "/v1/attachments/upload", 7, "*/*"];
12
12
  function uploadAttachment($ctx, ...args) {
13
- return foundryPlatformFetch($ctx, _uploadAttachment, ...args);
13
+ const headerParams = {
14
+ ...args[2],
15
+ "Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
16
+ "Content-Length": args[0].size.toString()
17
+ };
18
+ return foundryPlatformFetch($ctx, _uploadAttachment, args[0], args[1], headerParams);
14
19
  }
15
20
  var _getAttachmentContent = [0, "/v1/attachments/{0}/content", , , "*/*"];
16
21
  function getAttachmentContent($ctx, ...args) {
@@ -22,5 +27,5 @@ function getAttachment($ctx, ...args) {
22
27
  }
23
28
 
24
29
  export { Attachment_exports, getAttachment, getAttachmentContent, uploadAttachment };
25
- //# sourceMappingURL=chunk-3GNJUZCN.js.map
26
- //# sourceMappingURL=chunk-3GNJUZCN.js.map
30
+ //# sourceMappingURL=chunk-YCOLCQXU.js.map
31
+ //# sourceMappingURL=chunk-YCOLCQXU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Attachment.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,kBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,oBAAA,EAAA,MAAA,oBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,CAAA,CAAA,CAAA;AAoBA,IAAM,iBAAoB,GAAA,CAAC,CAAG,EAAA,wBAAA,EAA0B,GAAG,KAAK,CAAA,CAAA;AAiBzD,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,MAAM,YAAe,GAAA;AAAA,IACnB,GAAG,KAAK,CAAC,CAAA;AAAA,IACT,cAAA,EAAgB,KAAK,CAAC,CAAA,GAAI,cAAc,CAAK,IAAA,IAAA,CAAK,CAAC,CAAE,CAAA,IAAA;AAAA,IACrD,gBAAkB,EAAA,IAAA,CAAK,CAAC,CAAA,CAAE,KAAK,QAAS,EAAA;AAAA,GAC1C,CAAA;AACA,EAAO,OAAAA,oBAAA,CAAsB,MAAM,iBAAmB,EAAA,IAAA,CAAK,CAAC,CAAG,EAAA,IAAA,CAAK,CAAC,CAAA,EAAG,YAAY,CAAA,CAAA;AACtF,CAAA;AACA,IAAM,wBAAwB,CAAC,CAAA,EAAG,6BAA8B,MAAG,KAAK,CAAA,CAAA;AAajE,SAAS,oBAAA,CAAqB,SAAS,IAAM,EAAA;AAClD,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,qBAAuB,EAAA,GAAG,IAAI,CAAA,CAAA;AACnE,CAAA;AACA,IAAM,cAAA,GAAiB,CAAC,CAAA,EAAG,qBAAqB,CAAA,CAAA;AAazC,SAAS,aAAA,CAAc,SAAS,IAAM,EAAA;AAC3C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,cAAgB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC5D","file":"chunk-YCOLCQXU.js","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n\n//\n\nconst _uploadAttachment = [1, \"/v1/attachments/upload\", 7, \"*/*\"];\n\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: /v1/attachments/upload\n */\nexport function uploadAttachment($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, _uploadAttachment, args[0], args[1], headerParams);\n}\nconst _getAttachmentContent = [0, \"/v1/attachments/{0}/content\",,, \"*/*\"];\n\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: /v1/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContent, ...args);\n}\nconst _getAttachment = [0, \"/v1/attachments/{0}\"];\n\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: /v1/attachments/{attachmentRid}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}"]}
@@ -1,11 +1,11 @@
1
- export { QueryType_exports as QueryTypes } from './chunk-Y7POOFVF.js';
1
+ export { QueryType_exports as QueryTypes } from './chunk-UM4N5F6D.js';
2
2
  export { Action_exports as Actions } from './chunk-MONAXU3N.js';
3
3
  export { ActionType_exports as ActionTypes } from './chunk-5RUWELWF.js';
4
- export { Attachment_exports as Attachments } from './chunk-3GNJUZCN.js';
4
+ export { Attachment_exports as Attachments } from './chunk-YCOLCQXU.js';
5
5
  export { ObjectType_exports as ObjectTypes } from './chunk-ATSSLGFA.js';
6
6
  export { Ontology_exports as Ontologies } from './chunk-ABHCL2BI.js';
7
7
  export { OntologyObject_exports as OntologyObjects } from './chunk-VBZZKGHE.js';
8
- export { Query_exports as Queries } from './chunk-SO7SXCWR.js';
8
+ export { Query_exports as Queries } from './chunk-SALCOSHR.js';
9
9
  import './chunk-PZ5AY32C.js';
10
10
  //# sourceMappingURL=index.js.map
11
11
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-3GNJUZCN.js';
1
+ export { getAttachment, getAttachmentContent, uploadAttachment } from '../chunk-YCOLCQXU.js';
2
2
  import '../chunk-PZ5AY32C.js';
3
3
  //# sourceMappingURL=Attachment.js.map
4
4
  //# sourceMappingURL=Attachment.js.map
@@ -1,4 +1,4 @@
1
- export { executeQuery } from '../chunk-SO7SXCWR.js';
1
+ export { executeQuery } from '../chunk-SALCOSHR.js';
2
2
  import '../chunk-PZ5AY32C.js';
3
3
  //# sourceMappingURL=Query.js.map
4
4
  //# sourceMappingURL=Query.js.map
@@ -1,4 +1,4 @@
1
- export { getQueryType, listQueryTypes } from '../chunk-Y7POOFVF.js';
1
+ export { getQueryType, listQueryTypes } from '../chunk-UM4N5F6D.js';
2
2
  import '../chunk-PZ5AY32C.js';
3
3
  //# sourceMappingURL=QueryType.js.map
4
4
  //# sourceMappingURL=QueryType.js.map