@osdk/foundry 0.2.0-next-20240426195134 → 0.2.0
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 +1 -1
- package/build/js/index.browser.mjs +3 -0
- package/build/js/index.browser.mjs.map +1 -0
- package/build/js/public/Datasets_Branch.browser.mjs +23 -0
- package/build/js/public/Datasets_Branch.browser.mjs.map +1 -0
- package/build/js/public/Datasets_Dataset.browser.mjs +31 -0
- package/build/js/public/Datasets_Dataset.browser.mjs.map +1 -0
- package/build/js/public/Datasets_File.browser.mjs +27 -0
- package/build/js/public/Datasets_File.browser.mjs.map +1 -0
- package/build/js/public/Datasets_Transaction.browser.mjs +23 -0
- package/build/js/public/Datasets_Transaction.browser.mjs.map +1 -0
- package/build/js/public/Models_LanguageModel.browser.mjs +19 -0
- package/build/js/public/Models_LanguageModel.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_Action.browser.mjs +19 -0
- package/build/js/public/OntologiesV2_Action.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_ActionTypeV2.browser.mjs +15 -0
- package/build/js/public/OntologiesV2_ActionTypeV2.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_ObjectTypeV2.browser.mjs +23 -0
- package/build/js/public/OntologiesV2_ObjectTypeV2.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_OntologyObjectSet.browser.mjs +19 -0
- package/build/js/public/OntologiesV2_OntologyObjectSet.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_OntologyObjectV2.browser.mjs +79 -0
- package/build/js/public/OntologiesV2_OntologyObjectV2.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_OntologyV2.browser.mjs +19 -0
- package/build/js/public/OntologiesV2_OntologyV2.browser.mjs.map +1 -0
- package/build/js/public/OntologiesV2_QueryType.browser.mjs +19 -0
- package/build/js/public/OntologiesV2_QueryType.browser.mjs.map +1 -0
- package/build/js/public/types.browser.mjs +3 -0
- package/build/js/public/types.browser.mjs.map +1 -0
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/Datasets_Branch.ts
|
|
4
|
+
var _listBranches = [0, "/v1/datasets/{0}/branches", 2];
|
|
5
|
+
function listBranches($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listBranches, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _createBranch = [1, "/v1/datasets/{0}/branches", 1];
|
|
9
|
+
function createBranch($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _createBranch, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
|
|
13
|
+
function getBranch($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _getBranch, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
|
|
17
|
+
function deleteBranch($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _deleteBranch, ...args);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { createBranch, deleteBranch, getBranch, listBranches };
|
|
22
|
+
//# sourceMappingURL=out.js.map
|
|
23
|
+
//# sourceMappingURL=Datasets_Branch.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/Datasets_Branch.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,gBAAgB,CAAC,GAAG,6BAA6B,CAAC;AAUjD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD;AACA,IAAM,gBAAgB,CAAC,GAAG,6BAA6B,CAAC;AAUjD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD;AACA,IAAM,aAAa,CAAC,GAAG,+BAA+B;AAU/C,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,WAAW,MAAM,YAAY,GAAG,IAAI;AAC7C;AACA,IAAM,gBAAgB,CAAC,GAAG,+BAA+B;AAUlD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listBranches = [0, \"/v1/datasets/{0}/branches\", 2];\n\n/**\n * Lists the Branches of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function listBranches($ctx, ...args) {\n return $omniFetch($ctx, _listBranches, ...args);\n}\nconst _createBranch = [1, \"/v1/datasets/{0}/branches\", 1];\n\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function createBranch($ctx, ...args) {\n return $omniFetch($ctx, _createBranch, ...args);\n}\nconst _getBranch = [0, \"/v1/datasets/{0}/branches/{1}\"];\n\n/**\n * Get a Branch of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function getBranch($ctx, ...args) {\n return $omniFetch($ctx, _getBranch, ...args);\n}\nconst _deleteBranch = [3, \"/v1/datasets/{0}/branches/{1}\"];\n\n/**\n * Deletes the Branch with the given BranchId.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $omniFetch($ctx, _deleteBranch, ...args);\n}"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/Datasets_Dataset.ts
|
|
4
|
+
var _createDataset = [1, "/v1/datasets", 1];
|
|
5
|
+
function createDataset($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _createDataset, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getDataset = [0, "/v1/datasets/{0}"];
|
|
9
|
+
function getDataset($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getDataset, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _readTable = [0, "/v1/datasets/{0}/readTable", 2, , "*/*"];
|
|
13
|
+
function readTable($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _readTable, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _getSchema = [0, "/v1/datasets/{0}/schema", 2];
|
|
17
|
+
function getSchema($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _getSchema, ...args);
|
|
19
|
+
}
|
|
20
|
+
var _putSchema = [2, "/v1/datasets/{0}/schema", 3];
|
|
21
|
+
function putSchema($ctx, ...args) {
|
|
22
|
+
return omniFetch($ctx, _putSchema, ...args);
|
|
23
|
+
}
|
|
24
|
+
var _deleteSchema = [3, "/v1/datasets/{0}/schema", 2];
|
|
25
|
+
function deleteSchema($ctx, ...args) {
|
|
26
|
+
return omniFetch($ctx, _deleteSchema, ...args);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { createDataset, deleteSchema, getDataset, getSchema, putSchema, readTable };
|
|
30
|
+
//# sourceMappingURL=out.js.map
|
|
31
|
+
//# sourceMappingURL=Datasets_Dataset.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/Datasets_Dataset.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,iBAAiB,CAAC,GAAG,gBAAgB,CAAC;AAUrC,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,WAAW,MAAM,gBAAgB,GAAG,IAAI;AACjD;AACA,IAAM,cAAc,CAAC,GAAG,kBAAkB;AAUnC,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,WAAW,MAAM,aAAa,GAAG,IAAI;AAC9C;AACA,IAAM,aAAa,CAAC,GAAG,8BAA8B,GAAE,EAAE,KAAK;AAYvD,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,WAAW,MAAM,YAAY,GAAG,IAAI;AAC7C;AACA,IAAM,aAAa,CAAC,GAAG,2BAA2B,CAAC;AAQ5C,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,WAAW,MAAM,YAAY,GAAG,IAAI;AAC7C;AACA,IAAM,aAAa,CAAC,GAAG,2BAA2B,CAAC;AAQ5C,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,WAAW,MAAM,YAAY,GAAG,IAAI;AAC7C;AACA,IAAM,gBAAgB,CAAC,GAAG,2BAA2B,CAAC;AAQ/C,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _createDataset = [1, \"/v1/datasets\", 1];\n\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets\n */\nexport function createDataset($ctx, ...args) {\n return $omniFetch($ctx, _createDataset, ...args);\n}\nconst _getDataset = [0, \"/v1/datasets/{0}\"];\n\n/**\n * Gets the Dataset with the given DatasetRid.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}\n */\nexport function getDataset($ctx, ...args) {\n return $omniFetch($ctx, _getDataset, ...args);\n}\nconst _readTable = [0, \"/v1/datasets/{0}/readTable\", 2,, \"*/*\"];\n\n/**\n * Gets the content of a dataset as a table in the specified format.\n *\n * This endpoint currently does not support views (Virtual datasets composed of other datasets).\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $omniFetch($ctx, _readTable, ...args);\n}\nconst _getSchema = [0, \"/v1/datasets/{0}/schema\", 2];\n\n/**\n * Retrieves the Schema for a Dataset and Branch, if it exists.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function getSchema($ctx, ...args) {\n return $omniFetch($ctx, _getSchema, ...args);\n}\nconst _putSchema = [2, \"/v1/datasets/{0}/schema\", 3];\n\n/**\n * Puts a Schema on an existing Dataset and Branch.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function putSchema($ctx, ...args) {\n return $omniFetch($ctx, _putSchema, ...args);\n}\nconst _deleteSchema = [3, \"/v1/datasets/{0}/schema\", 2];\n\n/**\n * Deletes the Schema from a Dataset and Branch.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function deleteSchema($ctx, ...args) {\n return $omniFetch($ctx, _deleteSchema, ...args);\n}"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/Datasets_File.ts
|
|
4
|
+
var _listFiles = [0, "/v1/datasets/{0}/files", 2];
|
|
5
|
+
function listFiles($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listFiles, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _uploadFile = [1, "/v1/datasets/{0}/files:upload", 2, "*/*"];
|
|
9
|
+
function uploadFile($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _uploadFile, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _getFileMetadata = [0, "/v1/datasets/{0}/files/{1}", 2];
|
|
13
|
+
function getFileMetadata($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _getFileMetadata, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
|
|
17
|
+
function deleteFile($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _deleteFile, ...args);
|
|
19
|
+
}
|
|
20
|
+
var _getFileContent = [0, "/v1/datasets/{0}/files/{1}/content", 2, , "*/*"];
|
|
21
|
+
function getFileContent($ctx, ...args) {
|
|
22
|
+
return omniFetch($ctx, _getFileContent, ...args);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { deleteFile, getFileContent, getFileMetadata, listFiles, uploadFile };
|
|
26
|
+
//# sourceMappingURL=out.js.map
|
|
27
|
+
//# sourceMappingURL=Datasets_File.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/Datasets_File.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,aAAa,CAAC,GAAG,0BAA0B,CAAC;AAiC3C,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,WAAW,MAAM,YAAY,GAAG,IAAI;AAC7C;AACA,IAAM,cAAc,CAAC,GAAG,iCAAiC,GAAG,KAAK;AA2B1D,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,WAAW,MAAM,aAAa,GAAG,IAAI;AAC9C;AACA,IAAM,mBAAmB,CAAC,GAAG,8BAA8B,CAAC;AA+BrD,SAAS,gBAAgB,SAAS,MAAM;AAC7C,SAAO,WAAW,MAAM,kBAAkB,GAAG,IAAI;AACnD;AACA,IAAM,cAAc,CAAC,GAAG,8BAA8B,CAAC;AAuBhD,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,WAAW,MAAM,aAAa,GAAG,IAAI;AAC9C;AACA,IAAM,kBAAkB,CAAC,GAAG,sCAAsC,GAAE,EAAE,KAAK;AAgCpE,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,WAAW,MAAM,iBAAiB,GAAG,IAAI;AAClD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listFiles = [0, \"/v1/datasets/{0}/files\", 2];\n\n/**\n * Lists Files contained in a Dataset. By default files are listed on the latest view of the default\n * branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most\n * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the\n * branch if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource\n * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This\n * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.\n * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when\n * the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **list files on a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that\n * Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $omniFetch($ctx, _listFiles, ...args);\n}\nconst _uploadFile = [1, \"/v1/datasets/{0}/files:upload\", 2, \"*/*\"];\n\n/**\n * Uploads a File to an existing Dataset.\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 * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.\n * If the file already exists only the most recent version will be visible in the updated view.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will\n * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this\n * default specify `transactionType` in addition to `branchId`.\n * See [createBranch](/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\n *\n * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as\n * `transactionRid`. This is useful for uploading multiple files in a single transaction.\n * See [createTransaction](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files:upload\n */\nexport function uploadFile($ctx, ...args) {\n return $omniFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileMetadata = [0, \"/v1/datasets/{0}/files/{1}\", 2];\n\n/**\n * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest\n * ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFileMetadata($ctx, ...args) {\n return $omniFetch($ctx, _getFileMetadata, ...args);\n}\nconst _deleteFile = [3, \"/v1/datasets/{0}/files/{1}\", 2];\n\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction\n * will be created and committed on this branch.\n *\n * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier\n * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a\n * single transaction. See [createTransaction](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $omniFetch($ctx, _deleteFile, ...args);\n}\nconst _getFileContent = [0, \"/v1/datasets/{0}/files/{1}/content\", 2,, \"*/*\"];\n\n/**\n * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the\n * earliest ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest\n * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior\n * is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $omniFetch($ctx, _getFileContent, ...args);\n}"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/Datasets_Transaction.ts
|
|
4
|
+
var _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
|
|
5
|
+
function createTransaction($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _createTransaction, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
9
|
+
function getTransaction($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getTransaction, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
13
|
+
function commitTransaction($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _commitTransaction, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
17
|
+
function abortTransaction($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _abortTransaction, ...args);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { abortTransaction, commitTransaction, createTransaction, getTransaction };
|
|
22
|
+
//# sourceMappingURL=out.js.map
|
|
23
|
+
//# sourceMappingURL=Datasets_Transaction.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/Datasets_Transaction.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,qBAAqB,CAAC,GAAG,iCAAiC,CAAC;AAU1D,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,WAAW,MAAM,oBAAoB,GAAG,IAAI;AACrD;AACA,IAAM,kBAAkB,CAAC,GAAG,mCAAmC;AAUxD,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,WAAW,MAAM,iBAAiB,GAAG,IAAI;AAClD;AACA,IAAM,qBAAqB,CAAC,GAAG,0CAA0C;AAWlE,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,WAAW,MAAM,oBAAoB,GAAG,IAAI;AACrD;AACA,IAAM,oBAAoB,CAAC,GAAG,yCAAyC;AAWhE,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,WAAW,MAAM,mBAAmB,GAAG,IAAI;AACpD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _createTransaction = [1, \"/v1/datasets/{0}/transactions\", 3];\n\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions\n */\nexport function createTransaction($ctx, ...args) {\n return $omniFetch($ctx, _createTransaction, ...args);\n}\nconst _getTransaction = [0, \"/v1/datasets/{0}/transactions/{1}\"];\n\n/**\n * Gets a Transaction of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function getTransaction($ctx, ...args) {\n return $omniFetch($ctx, _getTransaction, ...args);\n}\nconst _commitTransaction = [1, \"/v1/datasets/{0}/transactions/{1}/commit\"];\n\n/**\n * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is\n * updated to point to the Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commitTransaction($ctx, ...args) {\n return $omniFetch($ctx, _commitTransaction, ...args);\n}\nconst _abortTransaction = [1, \"/v1/datasets/{0}/transactions/{1}/abort\"];\n\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abortTransaction($ctx, ...args) {\n return $omniFetch($ctx, _abortTransaction, ...args);\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/Models_LanguageModel.ts
|
|
4
|
+
var _createChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions", 1];
|
|
5
|
+
function createChatCompletion($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _createChatCompletion, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _streamChatCompletion = [1, "/v1/models/languageModels/{0}/chatCompletions/stream", 1, , "*/*"];
|
|
9
|
+
function streamChatCompletion($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _streamChatCompletion, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _listLanguageModels = [0, "/v1/models/languageModels", 2];
|
|
13
|
+
function listLanguageModels($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _listLanguageModels, ...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { createChatCompletion, listLanguageModels, streamChatCompletion };
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=Models_LanguageModel.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/Models_LanguageModel.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,wBAAwB,CAAC,GAAG,iDAAiD,CAAC;AAQ7E,SAAS,qBAAqB,SAAS,MAAM;AAClD,SAAO,WAAW,MAAM,uBAAuB,GAAG,IAAI;AACxD;AACA,IAAM,wBAAwB,CAAC,GAAG,wDAAwD,GAAE,EAAE,KAAK;AAS5F,SAAS,qBAAqB,SAAS,MAAM;AAClD,SAAO,WAAW,MAAM,uBAAuB,GAAG,IAAI;AACxD;AACA,IAAM,sBAAsB,CAAC,GAAG,6BAA6B,CAAC;AAQvD,SAAS,mBAAmB,SAAS,MAAM;AAChD,SAAO,WAAW,MAAM,qBAAqB,GAAG,IAAI;AACtD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _createChatCompletion = [1, \"/v1/models/languageModels/{0}/chatCompletions\", 1];\n\n/**\n * Creates a chat completion for a prompt.\n *\n * Required Scopes: [api:read-data, api:write-data]\n * URL: /v1/models/languageModels/{modelName}/chatCompletions\n */\nexport function createChatCompletion($ctx, ...args) {\n return $omniFetch($ctx, _createChatCompletion, ...args);\n}\nconst _streamChatCompletion = [1, \"/v1/models/languageModels/{0}/chatCompletions/stream\", 1,, \"*/*\"];\n\n/**\n * Runs the same query as create chat completion, but streams the raw response as a string of UTF8 encoded bytes.\n * Note: This endpoint returns only the string response.\n *\n * Required Scopes: [api:read-data, api:write-data]\n * URL: /v1/models/languageModels/{modelName}/chatCompletions/stream\n */\nexport function streamChatCompletion($ctx, ...args) {\n return $omniFetch($ctx, _streamChatCompletion, ...args);\n}\nconst _listLanguageModels = [0, \"/v1/models/languageModels\", 2];\n\n/**\n * Lists the language models available. Can be filtered by source.\n *\n * Required Scopes: [api:read-data]\n * URL: /v1/models/languageModels\n */\nexport function listLanguageModels($ctx, ...args) {\n return $omniFetch($ctx, _listLanguageModels, ...args);\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_Action.ts
|
|
4
|
+
var _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
5
|
+
function applyActionV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _applyActionV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
|
|
9
|
+
function applyActionBatchV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _applyActionBatchV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
|
|
13
|
+
function applyActionAsyncV2($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _applyActionAsyncV2, ...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { applyActionAsyncV2, applyActionBatchV2, applyActionV2 };
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=OntologiesV2_Action.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_Action.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,iBAAiB,CAAC,GAAG,wCAAwC,CAAC;AAgB7D,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,WAAW,MAAM,gBAAgB,GAAG,IAAI;AACjD;AACA,IAAM,sBAAsB,CAAC,GAAG,6CAA6C,CAAC;AAevE,SAAS,mBAAmB,SAAS,MAAM;AAChD,SAAO,WAAW,MAAM,qBAAqB,GAAG,IAAI;AACtD;AACA,IAAM,sBAAsB,CAAC,GAAG,6CAA6C,CAAC;AAgBvE,SAAS,mBAAmB,SAAS,MAAM;AAChD,SAAO,WAAW,MAAM,qBAAqB,GAAG,IAAI;AACtD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _applyActionV2 = [1, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n\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](/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:read-data api:write-data`.\n *\n * Required Scopes: [api:read-data, api:write-data]\n * URL: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function applyActionV2($ctx, ...args) {\n return $omniFetch($ctx, _applyActionV2, ...args);\n}\nconst _applyActionBatchV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\n\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 * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data api:write-data`.\n *\n * Required Scopes: [api:read-data, api:write-data]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyActionBatchV2($ctx, ...args) {\n return $omniFetch($ctx, _applyActionBatchV2, ...args);\n}\nconst _applyActionAsyncV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n\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](/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:read-data api:write-data`.\n *\n * Required Scopes: [api:read-data, api:write-data]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyActionAsyncV2($ctx, ...args) {\n return $omniFetch($ctx, _applyActionAsyncV2, ...args);\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_ActionTypeV2.ts
|
|
4
|
+
var _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
|
|
5
|
+
function listActionTypesV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listActionTypesV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
|
|
9
|
+
function getActionTypeV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getActionTypeV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { getActionTypeV2, listActionTypesV2 };
|
|
14
|
+
//# sourceMappingURL=out.js.map
|
|
15
|
+
//# sourceMappingURL=OntologiesV2_ActionTypeV2.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_ActionTypeV2.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,qBAAqB,CAAC,GAAG,kCAAkC,CAAC;AAa3D,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,WAAW,MAAM,oBAAoB,GAAG,IAAI;AACrD;AACA,IAAM,mBAAmB,CAAC,GAAG,oCAAoC;AAU1D,SAAS,gBAAgB,SAAS,MAAM;AAC7C,SAAO,WAAW,MAAM,kBAAkB,GAAG,IAAI;AACnD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listActionTypesV2 = [0, \"/v2/ontologies/{0}/actionTypes\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/actionTypes\n */\nexport function listActionTypesV2($ctx, ...args) {\n return $omniFetch($ctx, _listActionTypesV2, ...args);\n}\nconst _getActionTypeV2 = [0, \"/v2/ontologies/{0}/actionTypes/{1}\"];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}\n */\nexport function getActionTypeV2($ctx, ...args) {\n return $omniFetch($ctx, _getActionTypeV2, ...args);\n}"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_ObjectTypeV2.ts
|
|
4
|
+
var _listObjectTypesV2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
|
|
5
|
+
function listObjectTypesV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listObjectTypesV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getObjectTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}"];
|
|
9
|
+
function getObjectTypeV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getObjectTypeV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _listOutgoingLinkTypesV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes", 2];
|
|
13
|
+
function listOutgoingLinkTypesV2($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _listOutgoingLinkTypesV2, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _getOutgoingLinkTypeV2 = [0, "/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}"];
|
|
17
|
+
function getOutgoingLinkTypeV2($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _getOutgoingLinkTypeV2, ...args);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { getObjectTypeV2, getOutgoingLinkTypeV2, listObjectTypesV2, listOutgoingLinkTypesV2 };
|
|
22
|
+
//# sourceMappingURL=out.js.map
|
|
23
|
+
//# sourceMappingURL=OntologiesV2_ObjectTypeV2.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_ObjectTypeV2.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,qBAAqB,CAAC,GAAG,kCAAkC,CAAC;AAc3D,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,WAAW,MAAM,oBAAoB,GAAG,IAAI;AACrD;AACA,IAAM,mBAAmB,CAAC,GAAG,oCAAoC;AAU1D,SAAS,gBAAgB,SAAS,MAAM;AAC7C,SAAO,WAAW,MAAM,kBAAkB,GAAG,IAAI;AACnD;AACA,IAAM,2BAA2B,CAAC,GAAG,wDAAwD,CAAC;AAWvF,SAAS,wBAAwB,SAAS,MAAM;AACrD,SAAO,WAAW,MAAM,0BAA0B,GAAG,IAAI;AAC3D;AACA,IAAM,yBAAyB,CAAC,GAAG,0DAA0D;AAWtF,SAAS,sBAAsB,SAAS,MAAM;AACnD,SAAO,WAAW,MAAM,wBAAwB,GAAG,IAAI;AACzD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listObjectTypesV2 = [0, \"/v2/ontologies/{0}/objectTypes\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectTypes\n */\nexport function listObjectTypesV2($ctx, ...args) {\n return $omniFetch($ctx, _listObjectTypesV2, ...args);\n}\nconst _getObjectTypeV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}\"];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}\n */\nexport function getObjectTypeV2($ctx, ...args) {\n return $omniFetch($ctx, _getObjectTypeV2, ...args);\n}\nconst _listOutgoingLinkTypesV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes\n */\nexport function listOutgoingLinkTypesV2($ctx, ...args) {\n return $omniFetch($ctx, _listOutgoingLinkTypesV2, ...args);\n}\nconst _getOutgoingLinkTypeV2 = [0, \"/v2/ontologies/{0}/objectTypes/{1}/outgoingLinkTypes/{2}\"];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectTypes/{objectType}/outgoingLinkTypes/{linkType}\n */\nexport function getOutgoingLinkTypeV2($ctx, ...args) {\n return $omniFetch($ctx, _getOutgoingLinkTypeV2, ...args);\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_OntologyObjectSet.ts
|
|
4
|
+
var _getObjectSetV2 = [0, "/v2/ontologies/{0}/objectSets/{1}"];
|
|
5
|
+
function getObjectSetV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _getObjectSetV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _loadObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/loadObjects", 3];
|
|
9
|
+
function loadObjectSetV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _loadObjectSetV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _aggregateObjectSetV2 = [1, "/v2/ontologies/{0}/objectSets/aggregate", 3];
|
|
13
|
+
function aggregateObjectSetV2($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _aggregateObjectSetV2, ...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { aggregateObjectSetV2, getObjectSetV2, loadObjectSetV2 };
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=OntologiesV2_OntologyObjectSet.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_OntologyObjectSet.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,kBAAkB,CAAC,GAAG,mCAAmC;AAUxD,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,WAAW,MAAM,iBAAiB,GAAG,IAAI;AAClD;AACA,IAAM,mBAAmB,CAAC,GAAG,6CAA6C,CAAC;AAepE,SAAS,gBAAgB,SAAS,MAAM;AAC7C,SAAO,WAAW,MAAM,kBAAkB,GAAG,IAAI;AACnD;AACA,IAAM,wBAAwB,CAAC,GAAG,2CAA2C,CAAC;AAUvE,SAAS,qBAAqB,SAAS,MAAM;AAClD,SAAO,WAAW,MAAM,uBAAuB,GAAG,IAAI;AACxD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _getObjectSetV2 = [0, \"/v2/ontologies/{0}/objectSets/{1}\"];\n\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:read-data`.\n *\n * Required Scopes: []\n * URL: /v2/ontologies/{ontology}/objectSets/{objectSetRid}\n */\nexport function getObjectSetV2($ctx, ...args) {\n return $omniFetch($ctx, _getObjectSetV2, ...args);\n}\nconst _loadObjectSetV2 = [1, \"/v2/ontologies/{0}/objectSets/loadObjects\", 3];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectSets/loadObjects\n */\nexport function loadObjectSetV2($ctx, ...args) {\n return $omniFetch($ctx, _loadObjectSetV2, ...args);\n}\nconst _aggregateObjectSetV2 = [1, \"/v2/ontologies/{0}/objectSets/aggregate\", 3];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objectSets/aggregate\n */\nexport function aggregateObjectSetV2($ctx, ...args) {\n return $omniFetch($ctx, _aggregateObjectSetV2, ...args);\n}"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_OntologyObjectV2.ts
|
|
4
|
+
var _listObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}", 2];
|
|
5
|
+
function listObjectsV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listObjectsV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}", 2];
|
|
9
|
+
function getObjectV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getObjectV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _countObjects = [1, "/v2/ontologies/{0}/objects/{1}/count", 2];
|
|
13
|
+
function countObjects($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _countObjects, ...args);
|
|
15
|
+
}
|
|
16
|
+
var _searchObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/search", 3];
|
|
17
|
+
function searchObjectsV2($ctx, ...args) {
|
|
18
|
+
return omniFetch($ctx, _searchObjectsV2, ...args);
|
|
19
|
+
}
|
|
20
|
+
var _aggregateObjectsV2 = [1, "/v2/ontologies/{0}/objects/{1}/aggregate", 3];
|
|
21
|
+
function aggregateObjectsV2($ctx, ...args) {
|
|
22
|
+
return omniFetch($ctx, _aggregateObjectsV2, ...args);
|
|
23
|
+
}
|
|
24
|
+
var _listInterfaceTypes = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
|
|
25
|
+
function listInterfaceTypes($ctx, ...args) {
|
|
26
|
+
return omniFetch($ctx, _listInterfaceTypes, ...args);
|
|
27
|
+
}
|
|
28
|
+
var _getInterfaceType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}", 2];
|
|
29
|
+
function getInterfaceType($ctx, ...args) {
|
|
30
|
+
return omniFetch($ctx, _getInterfaceType, ...args);
|
|
31
|
+
}
|
|
32
|
+
var _searchObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/search", 3];
|
|
33
|
+
function searchObjectsForInterface($ctx, ...args) {
|
|
34
|
+
return omniFetch($ctx, _searchObjectsForInterface, ...args);
|
|
35
|
+
}
|
|
36
|
+
var _aggregateObjectsForInterface = [1, "/v2/ontologies/{0}/interfaces/{1}/aggregate", 3];
|
|
37
|
+
function aggregateObjectsForInterface($ctx, ...args) {
|
|
38
|
+
return omniFetch($ctx, _aggregateObjectsForInterface, ...args);
|
|
39
|
+
}
|
|
40
|
+
var _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
|
|
41
|
+
function listLinkedObjectsV2($ctx, ...args) {
|
|
42
|
+
return omniFetch($ctx, _listLinkedObjectsV2, ...args);
|
|
43
|
+
}
|
|
44
|
+
var _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
|
|
45
|
+
function getLinkedObjectV2($ctx, ...args) {
|
|
46
|
+
return omniFetch($ctx, _getLinkedObjectV2, ...args);
|
|
47
|
+
}
|
|
48
|
+
var _getAttachmentsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
|
|
49
|
+
function getAttachmentsV2($ctx, ...args) {
|
|
50
|
+
return omniFetch($ctx, _getAttachmentsV2, ...args);
|
|
51
|
+
}
|
|
52
|
+
var _getAttachmentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
|
|
53
|
+
function getAttachmentByRidV2($ctx, ...args) {
|
|
54
|
+
return omniFetch($ctx, _getAttachmentByRidV2, ...args);
|
|
55
|
+
}
|
|
56
|
+
var _getAttachmentContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2, , "*/*"];
|
|
57
|
+
function getAttachmentContentV2($ctx, ...args) {
|
|
58
|
+
return omniFetch($ctx, _getAttachmentContentV2, ...args);
|
|
59
|
+
}
|
|
60
|
+
var _getAttachmentContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2, , "*/*"];
|
|
61
|
+
function getAttachmentContentByRidV2($ctx, ...args) {
|
|
62
|
+
return omniFetch($ctx, _getAttachmentContentByRidV2, ...args);
|
|
63
|
+
}
|
|
64
|
+
var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
|
|
65
|
+
function getFirstPoint($ctx, ...args) {
|
|
66
|
+
return omniFetch($ctx, _getFirstPoint, ...args);
|
|
67
|
+
}
|
|
68
|
+
var _getLastPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint", 2];
|
|
69
|
+
function getLastPoint($ctx, ...args) {
|
|
70
|
+
return omniFetch($ctx, _getLastPoint, ...args);
|
|
71
|
+
}
|
|
72
|
+
var _streamPoints = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints", 3, , "*/*"];
|
|
73
|
+
function streamPoints($ctx, ...args) {
|
|
74
|
+
return omniFetch($ctx, _streamPoints, ...args);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { aggregateObjectsForInterface, aggregateObjectsV2, countObjects, getAttachmentByRidV2, getAttachmentContentByRidV2, getAttachmentContentV2, getAttachmentsV2, getFirstPoint, getInterfaceType, getLastPoint, getLinkedObjectV2, getObjectV2, listInterfaceTypes, listLinkedObjectsV2, listObjectsV2, searchObjectsForInterface, searchObjectsV2, streamPoints };
|
|
78
|
+
//# sourceMappingURL=out.js.map
|
|
79
|
+
//# sourceMappingURL=OntologiesV2_OntologyObjectV2.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_OntologyObjectV2.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,iBAAiB,CAAC,GAAG,kCAAkC,CAAC;AAsBvD,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,WAAW,MAAM,gBAAgB,GAAG,IAAI;AACjD;AACA,IAAM,eAAe,CAAC,GAAG,sCAAsC,CAAC;AAUzD,SAAS,YAAY,SAAS,MAAM;AACzC,SAAO,WAAW,MAAM,cAAc,GAAG,IAAI;AAC/C;AACA,IAAM,gBAAgB,CAAC,GAAG,wCAAwC,CAAC;AAU5D,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD;AACA,IAAM,mBAAmB,CAAC,GAAG,yCAAyC,CAAC;AA6BhE,SAAS,gBAAgB,SAAS,MAAM;AAC7C,SAAO,WAAW,MAAM,kBAAkB,GAAG,IAAI;AACnD;AACA,IAAM,sBAAsB,CAAC,GAAG,4CAA4C,CAAC;AAUtE,SAAS,mBAAmB,SAAS,MAAM;AAChD,SAAO,WAAW,MAAM,qBAAqB,GAAG,IAAI;AACtD;AACA,IAAM,sBAAsB,CAAC,GAAG,qCAAqC,CAAC;AAkB/D,SAAS,mBAAmB,SAAS,MAAM;AAChD,SAAO,WAAW,MAAM,qBAAqB,GAAG,IAAI;AACtD;AACA,IAAM,oBAAoB,CAAC,GAAG,yCAAyC,CAAC;AAejE,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,WAAW,MAAM,mBAAmB,GAAG,IAAI;AACpD;AACA,IAAM,6BAA6B,CAAC,GAAG,4CAA4C,CAAC;AAoC7E,SAAS,0BAA0B,SAAS,MAAM;AACvD,SAAO,WAAW,MAAM,4BAA4B,GAAG,IAAI;AAC7D;AACA,IAAM,gCAAgC,CAAC,GAAG,+CAA+C,CAAC;AAgBnF,SAAS,6BAA6B,SAAS,MAAM;AAC1D,SAAO,WAAW,MAAM,+BAA+B,GAAG,IAAI;AAChE;AACA,IAAM,uBAAuB,CAAC,GAAG,gDAAgD,CAAC;AAsB3E,SAAS,oBAAoB,SAAS,MAAM;AACjD,SAAO,WAAW,MAAM,sBAAsB,GAAG,IAAI;AACvD;AACA,IAAM,qBAAqB,CAAC,GAAG,oDAAoD,CAAC;AAY7E,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,WAAW,MAAM,oBAAoB,GAAG,IAAI;AACrD;AACA,IAAM,oBAAoB,CAAC,GAAG,sDAAsD,CAAC;AAW9E,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,WAAW,MAAM,mBAAmB,GAAG,IAAI;AACpD;AACA,IAAM,wBAAwB,CAAC,GAAG,0DAA0D,CAAC;AAWtF,SAAS,qBAAqB,SAAS,MAAM;AAClD,SAAO,WAAW,MAAM,uBAAuB,GAAG,IAAI;AACxD;AACA,IAAM,0BAA0B,CAAC,GAAG,8DAA8D,GAAE,EAAE,KAAK;AAWpG,SAAS,uBAAuB,SAAS,MAAM;AACpD,SAAO,WAAW,MAAM,yBAAyB,GAAG,IAAI;AAC1D;AACA,IAAM,+BAA+B,CAAC,GAAG,kEAAkE,GAAE,EAAE,KAAK;AAa7G,SAAS,4BAA4B,SAAS,MAAM;AACzD,SAAO,WAAW,MAAM,8BAA8B,GAAG,IAAI;AAC/D;AACA,IAAM,iBAAiB,CAAC,GAAG,gEAAgE,CAAC;AAWrF,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,WAAW,MAAM,gBAAgB,GAAG,IAAI;AACjD;AACA,IAAM,gBAAgB,CAAC,GAAG,+DAA+D,CAAC;AAWnF,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD;AACA,IAAM,gBAAgB,CAAC,GAAG,kEAAkE,GAAE,EAAE,KAAK;AAW9F,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,WAAW,MAAM,eAAe,GAAG,IAAI;AAChD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}\", 2];\n\n/**\n * Lists the objects for the given Ontology and object type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\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 * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}\n */\nexport function listObjectsV2($ctx, ...args) {\n return $omniFetch($ctx, _listObjectsV2, ...args);\n}\nconst _getObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}\", 2];\n\n/**\n * Gets a specific object with the given primary key.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}\n */\nexport function getObjectV2($ctx, ...args) {\n return $omniFetch($ctx, _getObjectV2, ...args);\n}\nconst _countObjects = [1, \"/v2/ontologies/{0}/objects/{1}/count\", 2];\n\n/**\n * Returns a count of the objects of the given object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/count\n */\nexport function countObjects($ctx, ...args) {\n return $omniFetch($ctx, _countObjects, ...args);\n}\nconst _searchObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/search\", 3];\n\n/**\n * Search for objects in the specified ontology and object type. The request body is used\n * to filter objects based on the specified query. The supported queries are:\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 value. | 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 value 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 * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/search\n */\nexport function searchObjectsV2($ctx, ...args) {\n return $omniFetch($ctx, _searchObjectsV2, ...args);\n}\nconst _aggregateObjectsV2 = [1, \"/v2/ontologies/{0}/objects/{1}/aggregate\", 3];\n\n/**\n * Perform functions on object fields in the specified ontology and object type.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/aggregate\n */\nexport function aggregateObjectsV2($ctx, ...args) {\n return $omniFetch($ctx, _aggregateObjectsV2, ...args);\n}\nconst _listInterfaceTypes = [0, \"/v2/ontologies/{0}/interfaceTypes\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/interfaceTypes\n */\nexport function listInterfaceTypes($ctx, ...args) {\n return $omniFetch($ctx, _listInterfaceTypes, ...args);\n}\nconst _getInterfaceType = [0, \"/v2/ontologies/{0}/interfaceTypes/{1}\", 2];\n\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 object type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/interfaceTypes/{interfaceType}\n */\nexport function getInterfaceType($ctx, ...args) {\n return $omniFetch($ctx, _getInterfaceType, ...args);\n}\nconst _searchObjectsForInterface = [1, \"/v2/ontologies/{0}/interfaces/{1}/search\", 3];\n\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 value. | 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 value 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 * 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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/search\n */\nexport function searchObjectsForInterface($ctx, ...args) {\n return $omniFetch($ctx, _searchObjectsForInterface, ...args);\n}\nconst _aggregateObjectsForInterface = [1, \"/v2/ontologies/{0}/interfaces/{1}/aggregate\", 3];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/interfaces/{interfaceType}/aggregate\n */\nexport function aggregateObjectsForInterface($ctx, ...args) {\n return $omniFetch($ctx, _aggregateObjectsForInterface, ...args);\n}\nconst _listLinkedObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\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 * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjectsV2($ctx, ...args) {\n return $omniFetch($ctx, _listLinkedObjectsV2, ...args);\n}\nconst _getLinkedObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n\n/**\n * Get a specific linked object that originates from another object.\n *\n * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObjectV2($ctx, ...args) {\n return $omniFetch($ctx, _getLinkedObjectV2, ...args);\n}\nconst _getAttachmentsV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}\", 2];\n\n/**\n * Get the metadata of attachments parented to the given object.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}\n */\nexport function getAttachmentsV2($ctx, ...args) {\n return $omniFetch($ctx, _getAttachmentsV2, ...args);\n}\nconst _getAttachmentByRidV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}\", 2];\n\n/**\n * Get the metadata of a particular attachment in an attachment list.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}\n */\nexport function getAttachmentByRidV2($ctx, ...args) {\n return $omniFetch($ctx, _getAttachmentByRidV2, ...args);\n}\nconst _getAttachmentContentV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content\", 2,, \"*/*\"];\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content\n */\nexport function getAttachmentContentV2($ctx, ...args) {\n return $omniFetch($ctx, _getAttachmentContentV2, ...args);\n}\nconst _getAttachmentContentByRidV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content\", 2,, \"*/*\"];\n\n/**\n * Get the content of an attachment by its RID.\n *\n * The RID must exist in the attachment array of the property.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content\n */\nexport function getAttachmentContentByRidV2($ctx, ...args) {\n return $omniFetch($ctx, _getAttachmentContentByRidV2, ...args);\n}\nconst _getFirstPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/firstPoint\n */\nexport function getFirstPoint($ctx, ...args) {\n return $omniFetch($ctx, _getFirstPoint, ...args);\n}\nconst _getLastPoint = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/lastPoint\", 2];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/lastPoint\n */\nexport function getLastPoint($ctx, ...args) {\n return $omniFetch($ctx, _getLastPoint, ...args);\n}\nconst _streamPoints = [1, \"/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/streamPoints\", 3,, \"*/*\"];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/timeseries/{property}/streamPoints\n */\nexport function streamPoints($ctx, ...args) {\n return $omniFetch($ctx, _streamPoints, ...args);\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_OntologyV2.ts
|
|
4
|
+
var _listOntologiesV2 = [0, "/v2/ontologies"];
|
|
5
|
+
function listOntologiesV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listOntologiesV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getOntologyV2 = [0, "/v2/ontologies/{0}"];
|
|
9
|
+
function getOntologyV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getOntologyV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _getOntologyFullMetadata = [0, "/v2/ontologies/{0}/fullMetadata"];
|
|
13
|
+
function getOntologyFullMetadata($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _getOntologyFullMetadata, ...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { getOntologyFullMetadata, getOntologyV2, listOntologiesV2 };
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=OntologiesV2_OntologyV2.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_OntologyV2.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,oBAAoB,CAAC,GAAG,gBAAgB;AAUvC,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,WAAW,MAAM,mBAAmB,GAAG,IAAI;AACpD;AACA,IAAM,iBAAiB,CAAC,GAAG,oBAAoB;AAUxC,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,WAAW,MAAM,gBAAgB,GAAG,IAAI;AACjD;AACA,IAAM,2BAA2B,CAAC,GAAG,iCAAiC;AAQ/D,SAAS,wBAAwB,SAAS,MAAM;AACrD,SAAO,WAAW,MAAM,0BAA0B,GAAG,IAAI;AAC3D","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listOntologiesV2 = [0, \"/v2/ontologies\"];\n\n/**\n * Lists the Ontologies visible to the current user.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies\n */\nexport function listOntologiesV2($ctx, ...args) {\n return $omniFetch($ctx, _listOntologiesV2, ...args);\n}\nconst _getOntologyV2 = [0, \"/v2/ontologies/{0}\"];\n\n/**\n * Gets a specific ontology with the given Ontology RID.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}\n */\nexport function getOntologyV2($ctx, ...args) {\n return $omniFetch($ctx, _getOntologyV2, ...args);\n}\nconst _getOntologyFullMetadata = [0, \"/v2/ontologies/{0}/fullMetadata\"];\n\n/**\n * Get the full Ontology metadata. This includes the objects, links, actions, queries, and interfaces.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/fullMetadata\n */\nexport function getOntologyFullMetadata($ctx, ...args) {\n return $omniFetch($ctx, _getOntologyFullMetadata, ...args);\n}"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { omniFetch } from '@osdk/shared.net';
|
|
2
|
+
|
|
3
|
+
// src/public/OntologiesV2_QueryType.ts
|
|
4
|
+
var _listQueryTypesV2 = [0, "/v2/ontologies/{0}/queryTypes", 2];
|
|
5
|
+
function listQueryTypesV2($ctx, ...args) {
|
|
6
|
+
return omniFetch($ctx, _listQueryTypesV2, ...args);
|
|
7
|
+
}
|
|
8
|
+
var _getQueryTypeV2 = [0, "/v2/ontologies/{0}/queryTypes/{1}"];
|
|
9
|
+
function getQueryTypeV2($ctx, ...args) {
|
|
10
|
+
return omniFetch($ctx, _getQueryTypeV2, ...args);
|
|
11
|
+
}
|
|
12
|
+
var _executeQueryV2 = [1, "/v2/ontologies/{0}/queries/{1}/execute", 3];
|
|
13
|
+
function executeQueryV2($ctx, ...args) {
|
|
14
|
+
return omniFetch($ctx, _executeQueryV2, ...args);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { executeQueryV2, getQueryTypeV2, listQueryTypesV2 };
|
|
18
|
+
//# sourceMappingURL=out.js.map
|
|
19
|
+
//# sourceMappingURL=OntologiesV2_QueryType.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/public/OntologiesV2_QueryType.ts"],"names":[],"mappings":";AAgBA,SAAS,aAAa,kBAAkB;AACxC,IAAM,oBAAoB,CAAC,GAAG,iCAAiC,CAAC;AAazD,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,WAAW,MAAM,mBAAmB,GAAG,IAAI;AACpD;AACA,IAAM,kBAAkB,CAAC,GAAG,mCAAmC;AAUxD,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,WAAW,MAAM,iBAAiB,GAAG,IAAI;AAClD;AACA,IAAM,kBAAkB,CAAC,GAAG,0CAA0C,CAAC;AAahE,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,WAAW,MAAM,iBAAiB,GAAG,IAAI;AAClD","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 { omniFetch as $omniFetch } from \"@osdk/shared.net\";\nconst _listQueryTypesV2 = [0, \"/v2/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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/queryTypes\n */\nexport function listQueryTypesV2($ctx, ...args) {\n return $omniFetch($ctx, _listQueryTypesV2, ...args);\n}\nconst _getQueryTypeV2 = [0, \"/v2/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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/queryTypes/{queryApiName}\n */\nexport function getQueryTypeV2($ctx, ...args) {\n return $omniFetch($ctx, _getQueryTypeV2, ...args);\n}\nconst _executeQueryV2 = [1, \"/v2/ontologies/{0}/queries/{1}/execute\", 3];\n\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:read-data`.\n *\n * Required Scopes: [api:read-data]\n * URL: /v2/ontologies/{ontology}/queries/{queryApiName}/execute\n */\nexport function executeQueryV2($ctx, ...args) {\n return $omniFetch($ctx, _executeQueryV2, ...args);\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,10 +9,12 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./build/types/index.d.ts",
|
|
12
|
+
"browser": "./build/js/index.browser.mjs",
|
|
12
13
|
"import": "./build/js/index.mjs"
|
|
13
14
|
},
|
|
14
15
|
"./*": {
|
|
15
16
|
"types": "./build/types/public/*.d.ts",
|
|
17
|
+
"browser": "./build/js/public/*.browser.mjs",
|
|
16
18
|
"import": "./build/js/public/*.mjs"
|
|
17
19
|
}
|
|
18
20
|
},
|