@osdk/internal.foundry.datasets 0.2.0-beta.8 → 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 +60 -0
- package/build/browser/_components.d.ts +125 -0
- package/build/browser/_components.d.ts.map +1 -0
- package/build/browser/_components.js +17 -0
- package/build/browser/_components.js.map +1 -0
- package/build/browser/_errors.d.ts +359 -0
- package/build/browser/_errors.d.ts.map +1 -0
- package/build/browser/_errors.js +17 -0
- package/build/browser/_errors.js.map +1 -0
- package/build/browser/index.d.ts +7 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +19 -6
- package/build/browser/index.js.map +1 -1
- package/build/browser/public/Branch.d.ts +57 -0
- package/build/browser/public/Branch.d.ts.map +1 -0
- package/build/browser/public/Branch.js +73 -3
- package/build/browser/public/Branch.js.map +1 -1
- package/build/browser/public/Dataset.d.ts +97 -0
- package/build/browser/public/Dataset.d.ts.map +1 -0
- package/build/browser/public/Dataset.js +97 -3
- package/build/browser/public/Dataset.js.map +1 -1
- package/build/browser/public/File.d.ts +196 -0
- package/build/browser/public/File.d.ts.map +1 -0
- package/build/browser/public/File.js +183 -3
- package/build/browser/public/File.js.map +1 -1
- package/build/browser/public/Transaction.d.ts +64 -0
- package/build/browser/public/Transaction.d.ts.map +1 -0
- package/build/browser/public/Transaction.js +75 -3
- package/build/browser/public/Transaction.js.map +1 -1
- package/build/esm/_components.d.ts +6 -6
- package/build/esm/_components.d.ts.map +1 -1
- package/build/esm/_components.js +17 -0
- package/build/esm/_components.js.map +1 -0
- package/build/esm/_errors.js +17 -0
- package/build/esm/_errors.js.map +1 -0
- package/build/esm/index.js +19 -6
- package/build/esm/index.js.map +1 -1
- package/build/esm/public/Branch.d.ts +13 -10
- package/build/esm/public/Branch.d.ts.map +1 -1
- package/build/esm/public/Branch.js +73 -3
- package/build/esm/public/Branch.js.map +1 -1
- package/build/esm/public/Dataset.d.ts +22 -22
- package/build/esm/public/Dataset.d.ts.map +1 -1
- package/build/esm/public/Dataset.js +97 -3
- package/build/esm/public/Dataset.js.map +1 -1
- package/build/esm/public/File.d.ts +34 -34
- package/build/esm/public/File.d.ts.map +1 -1
- package/build/esm/public/File.js +183 -3
- package/build/esm/public/File.js.map +1 -1
- package/build/esm/public/Transaction.d.ts +18 -9
- package/build/esm/public/Transaction.d.ts.map +1 -1
- package/build/esm/public/Transaction.js +75 -3
- package/build/esm/public/Transaction.js.map +1 -1
- package/package.json +8 -9
- package/build/browser/chunk-6JHAYAPR.js +0 -31
- package/build/browser/chunk-6JHAYAPR.js.map +0 -1
- package/build/browser/chunk-EDFN5GXZ.js +0 -41
- package/build/browser/chunk-EDFN5GXZ.js.map +0 -1
- package/build/browser/chunk-JIXOPP3M.js +0 -31
- package/build/browser/chunk-JIXOPP3M.js.map +0 -1
- package/build/browser/chunk-PZ5AY32C.js +0 -9
- package/build/browser/chunk-PZ5AY32C.js.map +0 -1
- package/build/browser/chunk-WOQTHZR3.js +0 -36
- package/build/browser/chunk-WOQTHZR3.js.map +0 -1
- package/build/esm/chunk-6JHAYAPR.js +0 -31
- package/build/esm/chunk-6JHAYAPR.js.map +0 -1
- package/build/esm/chunk-EDFN5GXZ.js +0 -41
- package/build/esm/chunk-EDFN5GXZ.js.map +0 -1
- package/build/esm/chunk-JIXOPP3M.js +0 -31
- package/build/esm/chunk-JIXOPP3M.js.map +0 -1
- package/build/esm/chunk-PZ5AY32C.js +0 -9
- package/build/esm/chunk-PZ5AY32C.js.map +0 -1
- package/build/esm/chunk-WOQTHZR3.js +0 -36
- package/build/esm/chunk-WOQTHZR3.js.map +0 -1
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/File.ts
|
|
5
|
-
var File_exports = {};
|
|
6
|
-
__export(File_exports, {
|
|
7
|
-
deleteFile: () => deleteFile,
|
|
8
|
-
getFileContent: () => getFileContent,
|
|
9
|
-
getFileMetadata: () => getFileMetadata,
|
|
10
|
-
listFiles: () => listFiles,
|
|
11
|
-
uploadFile: () => uploadFile
|
|
12
|
-
});
|
|
13
|
-
var _listFiles = [0, "/v1/datasets/{0}/files", 2];
|
|
14
|
-
function listFiles($ctx, ...args) {
|
|
15
|
-
return foundryPlatformFetch($ctx, _listFiles, ...args);
|
|
16
|
-
}
|
|
17
|
-
var _uploadFile = [1, "/v1/datasets/{0}/files:upload", 3, "*/*"];
|
|
18
|
-
function uploadFile($ctx, ...args) {
|
|
19
|
-
return foundryPlatformFetch($ctx, _uploadFile, ...args);
|
|
20
|
-
}
|
|
21
|
-
var _getFileMetadata = [0, "/v1/datasets/{0}/files/{1}", 2];
|
|
22
|
-
function getFileMetadata($ctx, ...args) {
|
|
23
|
-
return foundryPlatformFetch($ctx, _getFileMetadata, ...args);
|
|
24
|
-
}
|
|
25
|
-
var _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
|
|
26
|
-
function deleteFile($ctx, ...args) {
|
|
27
|
-
return foundryPlatformFetch($ctx, _deleteFile, ...args);
|
|
28
|
-
}
|
|
29
|
-
var _getFileContent = [0, "/v1/datasets/{0}/files/{1}/content", 2, , "*/*"];
|
|
30
|
-
function getFileContent($ctx, ...args) {
|
|
31
|
-
return foundryPlatformFetch($ctx, _getFileContent, ...args);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { File_exports, deleteFile, getFileContent, getFileMetadata, listFiles, uploadFile };
|
|
35
|
-
//# sourceMappingURL=chunk-WOQTHZR3.js.map
|
|
36
|
-
//# sourceMappingURL=chunk-WOQTHZR3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/File.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,YAAA,GAAA,GAAA;AAAA,QAAA,CAAA,YAAA,EAAA;AAAA,EAAA,UAAA,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AAA,GAAG,IAAI,CAAA,CAAA;AAC7D","file":"chunk-WOQTHZR3.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\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](https://www.palantir.com/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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _uploadFile = [1, \"/v1/datasets/{0}/files:upload\", 3, \"*/*\"];\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](https://www.palantir.com/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](https://www.palantir.com/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](https://www.palantir.com/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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files:upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($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](https://www.palantir.com/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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFileMetadata($ctx, ...args) {\n return $foundryPlatformFetch($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](https://www.palantir.com/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](https://www.palantir.com/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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($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](https://www.palantir.com/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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileContent, ...args);\n}"]}
|