@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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"File.js"}
|
|
1
|
+
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_upload","upload","_get","get","_deleteFile","deleteFile","_read","read"],"sources":["File.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/datasets/{0}/files\", 2];\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 list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _upload = [1, \"/v1/datasets/{0}/files:upload\", 3, \"*/*\"];\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 upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/files/{1}\", 2];\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 get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _deleteFile = [3, \"/v1/datasets/{0}/files/{1}\", 2];\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 _read = [0, \"/v1/datasets/{0}/files/{1}/content\", 2, , \"*/*\"];\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 read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA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AC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,KAAK,EAAE,GAAGP,IAAI,CAAC;AACtD","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
|
|
2
|
-
import type
|
|
2
|
+
import type * as _Datasets from "../_components.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a Transaction on a Branch of a Dataset.
|
|
5
5
|
*
|
|
@@ -10,13 +10,13 @@ import type { BranchId, CreateTransactionRequest, DatasetRid, Transaction, Trans
|
|
|
10
10
|
* Required Scopes: [api:datasets-write]
|
|
11
11
|
* URL: /v1/datasets/{datasetRid}/transactions
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
14
|
-
datasetRid: DatasetRid,
|
|
15
|
-
$body: CreateTransactionRequest,
|
|
13
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
14
|
+
datasetRid: _Datasets.DatasetRid,
|
|
15
|
+
$body: _Datasets.CreateTransactionRequest,
|
|
16
16
|
$queryParams?: {
|
|
17
|
-
branchId?: BranchId | undefined;
|
|
17
|
+
branchId?: _Datasets.BranchId | undefined;
|
|
18
18
|
}
|
|
19
|
-
]): Promise<Transaction>;
|
|
19
|
+
]): Promise<_Datasets.Transaction>;
|
|
20
20
|
/**
|
|
21
21
|
* Gets a Transaction of a Dataset.
|
|
22
22
|
*
|
|
@@ -27,7 +27,10 @@ export declare function createTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
27
27
|
* Required Scopes: [api:datasets-read]
|
|
28
28
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
|
|
29
29
|
*/
|
|
30
|
-
export declare function
|
|
30
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
31
|
+
datasetRid: _Datasets.DatasetRid,
|
|
32
|
+
transactionRid: _Datasets.TransactionRid
|
|
33
|
+
]): Promise<_Datasets.Transaction>;
|
|
31
34
|
/**
|
|
32
35
|
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
33
36
|
* updated to point to the Transaction.
|
|
@@ -39,7 +42,10 @@ export declare function getTransaction($ctx: $Client | $ClientContext, ...args:
|
|
|
39
42
|
* Required Scopes: [api:datasets-write]
|
|
40
43
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
41
44
|
*/
|
|
42
|
-
export declare function
|
|
45
|
+
export declare function commit($ctx: $Client | $ClientContext, ...args: [
|
|
46
|
+
datasetRid: _Datasets.DatasetRid,
|
|
47
|
+
transactionRid: _Datasets.TransactionRid
|
|
48
|
+
]): Promise<_Datasets.Transaction>;
|
|
43
49
|
/**
|
|
44
50
|
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
45
51
|
* not updated.
|
|
@@ -51,5 +57,8 @@ export declare function commitTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
51
57
|
* Required Scopes: [api:datasets-write]
|
|
52
58
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
53
59
|
*/
|
|
54
|
-
export declare function
|
|
60
|
+
export declare function abort($ctx: $Client | $ClientContext, ...args: [
|
|
61
|
+
datasetRid: _Datasets.DatasetRid,
|
|
62
|
+
transactionRid: _Datasets.TransactionRid
|
|
63
|
+
]): Promise<_Datasets.Transaction>;
|
|
55
64
|
//# sourceMappingURL=Transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,YAAY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AChC,cAAc,EAAE,SAAS,CAAC,cAAc;CACzC,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC"}
|
|
@@ -1,4 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
|
+
//
|
|
18
|
+
const _create = [1, "/v1/datasets/{0}/transactions", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Creates a Transaction on a Branch of a Dataset.
|
|
21
|
+
*
|
|
22
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
|
|
23
|
+
*
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* Required Scopes: [api:datasets-write]
|
|
27
|
+
* URL: /v1/datasets/{datasetRid}/transactions
|
|
28
|
+
*/
|
|
29
|
+
export function create($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
31
|
+
}
|
|
32
|
+
const _get = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
33
|
+
/**
|
|
34
|
+
* Gets a Transaction of a Dataset.
|
|
35
|
+
*
|
|
36
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
|
|
37
|
+
*
|
|
38
|
+
* @public
|
|
39
|
+
*
|
|
40
|
+
* Required Scopes: [api:datasets-read]
|
|
41
|
+
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
|
|
42
|
+
*/
|
|
43
|
+
export function get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
|
+
}
|
|
46
|
+
const _commit = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
47
|
+
/**
|
|
48
|
+
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
49
|
+
* updated to point to the Transaction.
|
|
50
|
+
*
|
|
51
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*
|
|
55
|
+
* Required Scopes: [api:datasets-write]
|
|
56
|
+
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
57
|
+
*/
|
|
58
|
+
export function commit($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _commit, ...args);
|
|
60
|
+
}
|
|
61
|
+
const _abort = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
62
|
+
/**
|
|
63
|
+
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
64
|
+
* not updated.
|
|
65
|
+
*
|
|
66
|
+
* Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*
|
|
70
|
+
* Required Scopes: [api:datasets-write]
|
|
71
|
+
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
72
|
+
*/
|
|
73
|
+
export function abort($ctx, ...args) {
|
|
74
|
+
return $foundryPlatformFetch($ctx, _abort, ...args);
|
|
75
|
+
}
|
|
4
76
|
//# sourceMappingURL=Transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Transaction.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_commit","commit","_abort","abort"],"sources":["Transaction.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 */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v1/datasets/{0}/transactions\", 3];\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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/transactions/{1}\"];\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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _commit = [1, \"/v1/datasets/{0}/transactions/{1}/commit\"];\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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v1/datasets/{0}/transactions/{1}/abort\"];\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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,0CAA0C,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,MAAM,GAAG,CAAC,CAAC,EAAE,yCAAyC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,MAAM,EAAE,GAAGL,IAAI,CAAC;AACvD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/internal.foundry.datasets",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@osdk/internal.foundry.core": "0.2.0
|
|
21
|
-
"@osdk/shared.client": "
|
|
22
|
-
"@osdk/shared.net.platformapi": "~0.3.0
|
|
20
|
+
"@osdk/internal.foundry.core": "0.2.0",
|
|
21
|
+
"@osdk/shared.client": "^1.0.0",
|
|
22
|
+
"@osdk/shared.net.platformapi": "~0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^5.5.4",
|
|
26
|
-
"@osdk/monorepo.api-extractor": "~0.0.0",
|
|
27
26
|
"@osdk/monorepo.tsconfig": "~0.0.0",
|
|
28
|
-
"@osdk/monorepo.tsup": "~0.0.0"
|
|
27
|
+
"@osdk/monorepo.tsup": "~0.0.0",
|
|
28
|
+
"@osdk/monorepo.api-extractor": "~0.0.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"sls": {
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"com.palantir.foundry.api:api-gateway": {
|
|
47
|
-
"minVersion": "1.
|
|
47
|
+
"minVersion": "1.934.0",
|
|
48
48
|
"maxVersion": "1.x.x",
|
|
49
49
|
"optional": true
|
|
50
50
|
}
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
|
|
58
58
|
"fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
|
|
59
59
|
"lint": "eslint . && dprint check --config $(find-up dprint.json)",
|
|
60
|
-
"transpile": "monorepo.tool.transpile"
|
|
61
|
-
"typecheck": "monorepo.tool.typecheck esm"
|
|
60
|
+
"transpile": "monorepo.tool.transpile"
|
|
62
61
|
}
|
|
63
62
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Transaction.ts
|
|
5
|
-
var Transaction_exports = {};
|
|
6
|
-
__export(Transaction_exports, {
|
|
7
|
-
abortTransaction: () => abortTransaction,
|
|
8
|
-
commitTransaction: () => commitTransaction,
|
|
9
|
-
createTransaction: () => createTransaction,
|
|
10
|
-
getTransaction: () => getTransaction
|
|
11
|
-
});
|
|
12
|
-
var _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
|
|
13
|
-
function createTransaction($ctx, ...args) {
|
|
14
|
-
return foundryPlatformFetch($ctx, _createTransaction, ...args);
|
|
15
|
-
}
|
|
16
|
-
var _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
17
|
-
function getTransaction($ctx, ...args) {
|
|
18
|
-
return foundryPlatformFetch($ctx, _getTransaction, ...args);
|
|
19
|
-
}
|
|
20
|
-
var _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
21
|
-
function commitTransaction($ctx, ...args) {
|
|
22
|
-
return foundryPlatformFetch($ctx, _commitTransaction, ...args);
|
|
23
|
-
}
|
|
24
|
-
var _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
25
|
-
function abortTransaction($ctx, ...args) {
|
|
26
|
-
return foundryPlatformFetch($ctx, _abortTransaction, ...args);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Transaction_exports, abortTransaction, commitTransaction, createTransaction, getTransaction };
|
|
30
|
-
//# sourceMappingURL=chunk-6JHAYAPR.js.map
|
|
31
|
-
//# sourceMappingURL=chunk-6JHAYAPR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Transaction.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,mBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,mBAAA,EAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,EAAA,iBAAA,EAAA,MAAA,iBAAA;AAAA,EAAA,iBAAA,EAAA,MAAA,iBAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,kBAAqB,GAAA,CAAC,CAAG,EAAA,+BAAA,EAAiC,CAAC,CAAA,CAAA;AAY1D,SAAS,iBAAA,CAAkB,SAAS,IAAM,EAAA;AAC/C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAChE,CAAA;AACA,IAAM,eAAA,GAAkB,CAAC,CAAA,EAAG,mCAAmC,CAAA,CAAA;AAYxD,SAAS,cAAA,CAAe,SAAS,IAAM,EAAA;AAC5C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,eAAiB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC7D,CAAA;AACA,IAAM,kBAAA,GAAqB,CAAC,CAAA,EAAG,0CAA0C,CAAA,CAAA;AAalE,SAAS,iBAAA,CAAkB,SAAS,IAAM,EAAA;AAC/C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAChE,CAAA;AACA,IAAM,iBAAA,GAAoB,CAAC,CAAA,EAAG,yCAAyC,CAAA,CAAA;AAahE,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,iBAAmB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC/D","file":"chunk-6JHAYAPR.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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions\n */\nexport function createTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function getTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commitTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abortTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abortTransaction, ...args);\n}"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Dataset.ts
|
|
5
|
-
var Dataset_exports = {};
|
|
6
|
-
__export(Dataset_exports, {
|
|
7
|
-
createDataset: () => createDataset,
|
|
8
|
-
deleteSchema: () => deleteSchema,
|
|
9
|
-
getDataset: () => getDataset,
|
|
10
|
-
getSchema: () => getSchema,
|
|
11
|
-
putSchema: () => putSchema,
|
|
12
|
-
readTable: () => readTable
|
|
13
|
-
});
|
|
14
|
-
var _createDataset = [1, "/v1/datasets", 1];
|
|
15
|
-
function createDataset($ctx, ...args) {
|
|
16
|
-
return foundryPlatformFetch($ctx, _createDataset, ...args);
|
|
17
|
-
}
|
|
18
|
-
var _getDataset = [0, "/v1/datasets/{0}"];
|
|
19
|
-
function getDataset($ctx, ...args) {
|
|
20
|
-
return foundryPlatformFetch($ctx, _getDataset, ...args);
|
|
21
|
-
}
|
|
22
|
-
var _readTable = [0, "/v1/datasets/{0}/readTable", 2, , "*/*"];
|
|
23
|
-
function readTable($ctx, ...args) {
|
|
24
|
-
return foundryPlatformFetch($ctx, _readTable, ...args);
|
|
25
|
-
}
|
|
26
|
-
var _putSchema = [2, "/v1/datasets/{0}/schema", 3];
|
|
27
|
-
function putSchema($ctx, ...args) {
|
|
28
|
-
return foundryPlatformFetch($ctx, _putSchema, ...args);
|
|
29
|
-
}
|
|
30
|
-
var _getSchema = [0, "/v1/datasets/{0}/schema", 2];
|
|
31
|
-
function getSchema($ctx, ...args) {
|
|
32
|
-
return foundryPlatformFetch($ctx, _getSchema, ...args);
|
|
33
|
-
}
|
|
34
|
-
var _deleteSchema = [3, "/v1/datasets/{0}/schema", 2];
|
|
35
|
-
function deleteSchema($ctx, ...args) {
|
|
36
|
-
return foundryPlatformFetch($ctx, _deleteSchema, ...args);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { Dataset_exports, createDataset, deleteSchema, getDataset, getSchema, putSchema, readTable };
|
|
40
|
-
//# sourceMappingURL=chunk-EDFN5GXZ.js.map
|
|
41
|
-
//# sourceMappingURL=chunk-EDFN5GXZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Dataset.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,eAAA,GAAA,GAAA;AAAA,QAAA,CAAA,eAAA,EAAA;AAAA,EAAA,aAAA,EAAA,MAAA,aAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,UAAA,EAAA,MAAA,UAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,cAAiB,GAAA,CAAC,CAAG,EAAA,cAAA,EAAgB,CAAC,CAAA,CAAA;A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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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets\n */\nexport function createDataset($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}\n */\nexport function getDataset($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...args);\n}\nconst _putSchema = [2, \"/v1/datasets/{0}/schema\", 3];\n\n/**\n * Puts a Schema on an existing Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function putSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _putSchema, ...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 * @alpha\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function getSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchema, ...args);\n}\nconst _deleteSchema = [3, \"/v1/datasets/{0}/schema\", 2];\n\n/**\n * Deletes the Schema from a Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function deleteSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteSchema, ...args);\n}"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Branch.ts
|
|
5
|
-
var Branch_exports = {};
|
|
6
|
-
__export(Branch_exports, {
|
|
7
|
-
createBranch: () => createBranch,
|
|
8
|
-
deleteBranch: () => deleteBranch,
|
|
9
|
-
getBranch: () => getBranch,
|
|
10
|
-
listBranches: () => listBranches
|
|
11
|
-
});
|
|
12
|
-
var _createBranch = [1, "/v1/datasets/{0}/branches", 1];
|
|
13
|
-
function createBranch($ctx, ...args) {
|
|
14
|
-
return foundryPlatformFetch($ctx, _createBranch, ...args);
|
|
15
|
-
}
|
|
16
|
-
var _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
|
|
17
|
-
function getBranch($ctx, ...args) {
|
|
18
|
-
return foundryPlatformFetch($ctx, _getBranch, ...args);
|
|
19
|
-
}
|
|
20
|
-
var _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
|
|
21
|
-
function deleteBranch($ctx, ...args) {
|
|
22
|
-
return foundryPlatformFetch($ctx, _deleteBranch, ...args);
|
|
23
|
-
}
|
|
24
|
-
var _listBranches = [0, "/v1/datasets/{0}/branches", 2];
|
|
25
|
-
function listBranches($ctx, ...args) {
|
|
26
|
-
return foundryPlatformFetch($ctx, _listBranches, ...args);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Branch_exports, createBranch, deleteBranch, getBranch, listBranches };
|
|
30
|
-
//# sourceMappingURL=chunk-JIXOPP3M.js.map
|
|
31
|
-
//# sourceMappingURL=chunk-JIXOPP3M.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Branch.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,cAAA,GAAA,GAAA;AAAA,QAAA,CAAA,cAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAYjD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D,CAAA;AACA,IAAM,UAAA,GAAa,CAAC,CAAA,EAAG,+BAA+B,CAAA,CAAA;AAY/C,SAAS,SAAA,CAAU,SAAS,IAAM,EAAA;AACvC,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,UAAY,EAAA,GAAG,IAAI,CAAA,CAAA;AACxD,CAAA;AACA,IAAM,aAAA,GAAgB,CAAC,CAAA,EAAG,+BAA+B,CAAA,CAAA;AAYlD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D,CAAA;AACA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAYjD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-JIXOPP3M.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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function createBranch($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function getBranch($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function listBranches($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listBranches, ...args);\n}"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export { __export };
|
|
8
|
-
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-PZ5AY32C.js"}
|
|
@@ -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,EAAA,MAAA,UAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,eAAA,EAAA,MAAA,eAAA;AAAA,EAAA,SAAA,EAAA,MAA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ed 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}"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Transaction.ts
|
|
5
|
-
var Transaction_exports = {};
|
|
6
|
-
__export(Transaction_exports, {
|
|
7
|
-
abortTransaction: () => abortTransaction,
|
|
8
|
-
commitTransaction: () => commitTransaction,
|
|
9
|
-
createTransaction: () => createTransaction,
|
|
10
|
-
getTransaction: () => getTransaction
|
|
11
|
-
});
|
|
12
|
-
var _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
|
|
13
|
-
function createTransaction($ctx, ...args) {
|
|
14
|
-
return foundryPlatformFetch($ctx, _createTransaction, ...args);
|
|
15
|
-
}
|
|
16
|
-
var _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
17
|
-
function getTransaction($ctx, ...args) {
|
|
18
|
-
return foundryPlatformFetch($ctx, _getTransaction, ...args);
|
|
19
|
-
}
|
|
20
|
-
var _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
21
|
-
function commitTransaction($ctx, ...args) {
|
|
22
|
-
return foundryPlatformFetch($ctx, _commitTransaction, ...args);
|
|
23
|
-
}
|
|
24
|
-
var _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
25
|
-
function abortTransaction($ctx, ...args) {
|
|
26
|
-
return foundryPlatformFetch($ctx, _abortTransaction, ...args);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Transaction_exports, abortTransaction, commitTransaction, createTransaction, getTransaction };
|
|
30
|
-
//# sourceMappingURL=chunk-6JHAYAPR.js.map
|
|
31
|
-
//# sourceMappingURL=chunk-6JHAYAPR.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Transaction.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,mBAAA,GAAA,GAAA;AAAA,QAAA,CAAA,mBAAA,EAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,EAAA,iBAAA,EAAA,MAAA,iBAAA;AAAA,EAAA,iBAAA,EAAA,MAAA,iBAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,kBAAqB,GAAA,CAAC,CAAG,EAAA,+BAAA,EAAiC,CAAC,CAAA,CAAA;AAY1D,SAAS,iBAAA,CAAkB,SAAS,IAAM,EAAA;AAC/C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAChE,CAAA;AACA,IAAM,eAAA,GAAkB,CAAC,CAAA,EAAG,mCAAmC,CAAA,CAAA;AAYxD,SAAS,cAAA,CAAe,SAAS,IAAM,EAAA;AAC5C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,eAAiB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC7D,CAAA;AACA,IAAM,kBAAA,GAAqB,CAAC,CAAA,EAAG,0CAA0C,CAAA,CAAA;AAalE,SAAS,iBAAA,CAAkB,SAAS,IAAM,EAAA;AAC/C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,kBAAoB,EAAA,GAAG,IAAI,CAAA,CAAA;AAChE,CAAA;AACA,IAAM,iBAAA,GAAoB,CAAC,CAAA,EAAG,yCAAyC,CAAA,CAAA;AAahE,SAAS,gBAAA,CAAiB,SAAS,IAAM,EAAA;AAC9C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,iBAAmB,EAAA,GAAG,IAAI,CAAA,CAAA;AAC/D","file":"chunk-6JHAYAPR.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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions\n */\nexport function createTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function getTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commitTransaction($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abortTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abortTransaction, ...args);\n}"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Dataset.ts
|
|
5
|
-
var Dataset_exports = {};
|
|
6
|
-
__export(Dataset_exports, {
|
|
7
|
-
createDataset: () => createDataset,
|
|
8
|
-
deleteSchema: () => deleteSchema,
|
|
9
|
-
getDataset: () => getDataset,
|
|
10
|
-
getSchema: () => getSchema,
|
|
11
|
-
putSchema: () => putSchema,
|
|
12
|
-
readTable: () => readTable
|
|
13
|
-
});
|
|
14
|
-
var _createDataset = [1, "/v1/datasets", 1];
|
|
15
|
-
function createDataset($ctx, ...args) {
|
|
16
|
-
return foundryPlatformFetch($ctx, _createDataset, ...args);
|
|
17
|
-
}
|
|
18
|
-
var _getDataset = [0, "/v1/datasets/{0}"];
|
|
19
|
-
function getDataset($ctx, ...args) {
|
|
20
|
-
return foundryPlatformFetch($ctx, _getDataset, ...args);
|
|
21
|
-
}
|
|
22
|
-
var _readTable = [0, "/v1/datasets/{0}/readTable", 2, , "*/*"];
|
|
23
|
-
function readTable($ctx, ...args) {
|
|
24
|
-
return foundryPlatformFetch($ctx, _readTable, ...args);
|
|
25
|
-
}
|
|
26
|
-
var _putSchema = [2, "/v1/datasets/{0}/schema", 3];
|
|
27
|
-
function putSchema($ctx, ...args) {
|
|
28
|
-
return foundryPlatformFetch($ctx, _putSchema, ...args);
|
|
29
|
-
}
|
|
30
|
-
var _getSchema = [0, "/v1/datasets/{0}/schema", 2];
|
|
31
|
-
function getSchema($ctx, ...args) {
|
|
32
|
-
return foundryPlatformFetch($ctx, _getSchema, ...args);
|
|
33
|
-
}
|
|
34
|
-
var _deleteSchema = [3, "/v1/datasets/{0}/schema", 2];
|
|
35
|
-
function deleteSchema($ctx, ...args) {
|
|
36
|
-
return foundryPlatformFetch($ctx, _deleteSchema, ...args);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { Dataset_exports, createDataset, deleteSchema, getDataset, getSchema, putSchema, readTable };
|
|
40
|
-
//# sourceMappingURL=chunk-EDFN5GXZ.js.map
|
|
41
|
-
//# sourceMappingURL=chunk-EDFN5GXZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Dataset.ts"],"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C,CAAA,CAAA;AAU5C,SAAS,SAAA,CAAU,SAAS,IAAM,EAAA;AACvC,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,UAAY,EAAA,GAAG,IAAI,CAAA,CAAA;AACxD,CAAA;AACA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,yBAAA,EAA2B,CAAC,CAAA,CAAA;AAU/C,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-EDFN5GXZ.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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets\n */\nexport function createDataset($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}\n */\nexport function getDataset($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...args);\n}\nconst _putSchema = [2, \"/v1/datasets/{0}/schema\", 3];\n\n/**\n * Puts a Schema on an existing Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function putSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _putSchema, ...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 * @alpha\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function getSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchema, ...args);\n}\nconst _deleteSchema = [3, \"/v1/datasets/{0}/schema\", 2];\n\n/**\n * Deletes the Schema from a Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function deleteSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteSchema, ...args);\n}"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
-
import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
|
|
3
|
-
|
|
4
|
-
// src/public/Branch.ts
|
|
5
|
-
var Branch_exports = {};
|
|
6
|
-
__export(Branch_exports, {
|
|
7
|
-
createBranch: () => createBranch,
|
|
8
|
-
deleteBranch: () => deleteBranch,
|
|
9
|
-
getBranch: () => getBranch,
|
|
10
|
-
listBranches: () => listBranches
|
|
11
|
-
});
|
|
12
|
-
var _createBranch = [1, "/v1/datasets/{0}/branches", 1];
|
|
13
|
-
function createBranch($ctx, ...args) {
|
|
14
|
-
return foundryPlatformFetch($ctx, _createBranch, ...args);
|
|
15
|
-
}
|
|
16
|
-
var _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
|
|
17
|
-
function getBranch($ctx, ...args) {
|
|
18
|
-
return foundryPlatformFetch($ctx, _getBranch, ...args);
|
|
19
|
-
}
|
|
20
|
-
var _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
|
|
21
|
-
function deleteBranch($ctx, ...args) {
|
|
22
|
-
return foundryPlatformFetch($ctx, _deleteBranch, ...args);
|
|
23
|
-
}
|
|
24
|
-
var _listBranches = [0, "/v1/datasets/{0}/branches", 2];
|
|
25
|
-
function listBranches($ctx, ...args) {
|
|
26
|
-
return foundryPlatformFetch($ctx, _listBranches, ...args);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Branch_exports, createBranch, deleteBranch, getBranch, listBranches };
|
|
30
|
-
//# sourceMappingURL=chunk-JIXOPP3M.js.map
|
|
31
|
-
//# sourceMappingURL=chunk-JIXOPP3M.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public/Branch.ts"],"names":["$foundryPlatformFetch"],"mappings":";;;;AAAA,IAAA,cAAA,GAAA,GAAA;AAAA,QAAA,CAAA,cAAA,EAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,SAAA,EAAA,MAAA,SAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,CAAA,CAAA,CAAA;AAmBA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAYjD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D,CAAA;AACA,IAAM,UAAA,GAAa,CAAC,CAAA,EAAG,+BAA+B,CAAA,CAAA;AAY/C,SAAS,SAAA,CAAU,SAAS,IAAM,EAAA;AACvC,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,UAAY,EAAA,GAAG,IAAI,CAAA,CAAA;AACxD,CAAA;AACA,IAAM,aAAA,GAAgB,CAAC,CAAA,EAAG,+BAA+B,CAAA,CAAA;AAYlD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D,CAAA;AACA,IAAM,aAAgB,GAAA,CAAC,CAAG,EAAA,2BAAA,EAA6B,CAAC,CAAA,CAAA;AAYjD,SAAS,YAAA,CAAa,SAAS,IAAM,EAAA;AAC1C,EAAA,OAAOA,oBAAsB,CAAA,IAAA,EAAM,aAAe,EAAA,GAAG,IAAI,CAAA,CAAA;AAC3D","file":"chunk-JIXOPP3M.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 _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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function createBranch($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function getBranch($ctx, ...args) {\n return $foundryPlatformFetch($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 * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\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 * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function listBranches($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listBranches, ...args);\n}"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export { __export };
|
|
8
|
-
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
9
|
-
//# sourceMappingURL=chunk-PZ5AY32C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-PZ5AY32C.js"}
|