@osdk/foundry.datasets 2.1.0-beta.5 → 2.1.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 +45 -0
- package/build/browser/public/Branch.d.ts +3 -3
- package/build/browser/public/Branch.d.ts.map +1 -1
- package/build/browser/public/Branch.js +9 -9
- package/build/browser/public/Branch.js.map +1 -1
- package/build/browser/public/Dataset.d.ts +3 -3
- package/build/browser/public/Dataset.d.ts.map +1 -1
- package/build/browser/public/Dataset.js +9 -9
- package/build/browser/public/Dataset.js.map +1 -1
- package/build/browser/public/File.d.ts +4 -4
- package/build/browser/public/File.d.ts.map +1 -1
- package/build/browser/public/File.js +12 -12
- package/build/browser/public/File.js.map +1 -1
- package/build/browser/public/Transaction.d.ts +4 -4
- package/build/browser/public/Transaction.d.ts.map +1 -1
- package/build/browser/public/Transaction.js +12 -12
- package/build/browser/public/Transaction.js.map +1 -1
- package/build/esm/public/Branch.d.ts +3 -3
- package/build/esm/public/Branch.d.ts.map +1 -1
- package/build/esm/public/Branch.js +9 -9
- package/build/esm/public/Branch.js.map +1 -1
- package/build/esm/public/Dataset.d.ts +3 -3
- package/build/esm/public/Dataset.d.ts.map +1 -1
- package/build/esm/public/Dataset.js +9 -9
- package/build/esm/public/Dataset.js.map +1 -1
- package/build/esm/public/File.d.ts +4 -4
- package/build/esm/public/File.d.ts.map +1 -1
- package/build/esm/public/File.js +12 -12
- package/build/esm/public/File.js.map +1 -1
- package/build/esm/public/Transaction.d.ts +4 -4
- package/build/esm/public/Transaction.d.ts.map +1 -1
- package/build/esm/public/Transaction.js +12 -12
- package/build/esm/public/Transaction.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @osdk/foundry.datasets
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5d6d5ab: Use the "verb" where possible
|
|
8
|
+
- 1770490: URLs in jsdoc now link to palantir.com
|
|
9
|
+
- 5d6d5ab: Internal improvement to type references
|
|
10
|
+
- 5d6d5ab: Updated to latest gateway apis
|
|
11
|
+
- 5d6d5ab: We now generate error types
|
|
12
|
+
- 5d6d5ab: Includes @alpha/@beta/@public jsdoc tags
|
|
13
|
+
- 5d6d5ab: Internally refactored to support new API versions
|
|
14
|
+
- 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
|
|
15
|
+
- 5d6d5ab: SLS dependencies are optional
|
|
16
|
+
- d4d6605: Audited and cleaned up deps
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [5d6d5ab]
|
|
21
|
+
- Updated dependencies [b60e107]
|
|
22
|
+
- Updated dependencies [5d6d5ab]
|
|
23
|
+
- Updated dependencies [5dc1241]
|
|
24
|
+
- Updated dependencies [1252d94]
|
|
25
|
+
- Updated dependencies [5d6d5ab]
|
|
26
|
+
- Updated dependencies [5d6d5ab]
|
|
27
|
+
- Updated dependencies [5d6d5ab]
|
|
28
|
+
- Updated dependencies [5d6d5ab]
|
|
29
|
+
- Updated dependencies [5d6d5ab]
|
|
30
|
+
- Updated dependencies [5d6d5ab]
|
|
31
|
+
- Updated dependencies [d4d6605]
|
|
32
|
+
- Updated dependencies [5dc1241]
|
|
33
|
+
- @osdk/foundry.filesystem@2.1.0
|
|
34
|
+
- @osdk/foundry.core@2.1.0
|
|
35
|
+
- @osdk/shared.client@1.0.0
|
|
36
|
+
- @osdk/shared.net.platformapi@0.3.0
|
|
37
|
+
|
|
38
|
+
## 2.1.0-beta.6
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [5dc1241]
|
|
43
|
+
- @osdk/shared.client@1.0.0-beta.3
|
|
44
|
+
- @osdk/foundry.core@2.1.0-beta.6
|
|
45
|
+
- @osdk/foundry.filesystem@2.1.0-beta.6
|
|
46
|
+
- @osdk/shared.net.platformapi@0.3.0-beta.3
|
|
47
|
+
|
|
3
48
|
## 2.1.0-beta.5
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
datasetRid: _Datasets.DatasetRid,
|
|
14
14
|
$body: _Datasets.CreateBranchRequest,
|
|
15
15
|
$queryParams?: {
|
|
@@ -39,7 +39,7 @@ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [
|
|
|
39
39
|
* Required Scopes: [api:datasets-read]
|
|
40
40
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
41
41
|
*/
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
43
43
|
datasetRid: _Datasets.DatasetRid,
|
|
44
44
|
$queryParams?: {
|
|
45
45
|
pageSize?: _Core.PageSize | undefined;
|
|
@@ -55,7 +55,7 @@ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
|
|
|
55
55
|
* Required Scopes: [api:datasets-read]
|
|
56
56
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
57
57
|
*/
|
|
58
|
-
export declare function
|
|
58
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
59
59
|
datasetRid: _Datasets.DatasetRid,
|
|
60
60
|
branchName: _Datasets.BranchName,
|
|
61
61
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI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AE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAEzC;AAUD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAE3B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets/{0}/branches", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
|
|
21
21
|
*
|
|
@@ -24,8 +24,8 @@ const _createBranch = [1, "/v2/datasets/{0}/branches", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
30
|
const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}", 2];
|
|
31
31
|
/**
|
|
@@ -39,7 +39,7 @@ const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}", 2];
|
|
|
39
39
|
export function deleteBranch($ctx, ...args) {
|
|
40
40
|
return $foundryPlatformFetch($ctx, _deleteBranch, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _list = [0, "/v2/datasets/{0}/branches", 2];
|
|
43
43
|
/**
|
|
44
44
|
* Lists the Branches of a Dataset.
|
|
45
45
|
*
|
|
@@ -48,10 +48,10 @@ const _listBranches = [0, "/v2/datasets/{0}/branches", 2];
|
|
|
48
48
|
* Required Scopes: [api:datasets-read]
|
|
49
49
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
52
|
-
return $foundryPlatformFetch($ctx,
|
|
51
|
+
export function list($ctx, ...args) {
|
|
52
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const _get = [0, "/v2/datasets/{0}/branches/{1}", 2];
|
|
55
55
|
/**
|
|
56
56
|
* Get a Branch of a Dataset.
|
|
57
57
|
*
|
|
@@ -60,7 +60,7 @@ const _getBranch = [0, "/v2/datasets/{0}/branches/{1}", 2];
|
|
|
60
60
|
* Required Scopes: [api:datasets-read]
|
|
61
61
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
62
62
|
*/
|
|
63
|
-
export function
|
|
64
|
-
return $foundryPlatformFetch($ctx,
|
|
63
|
+
export function get($ctx, ...args) {
|
|
64
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
65
65
|
}
|
|
66
66
|
//# sourceMappingURL=Branch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Branch.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_deleteBranch","deleteBranch","_list","list","_get","get"],"sources":["Branch.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, \"/v2/datasets/{0}/branches\", 3];\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _deleteBranch = [3, \"/v2/datasets/{0}/branches/{1}\", 2];\n/**\n * Deletes the Branch with the given BranchName.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches/{branchName}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\nconst _list = [0, \"/v2/datasets/{0}/branches\", 2];\n/**\n * Lists the Branches of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}/branches/{1}\", 2];\n/**\n * Get a Branch of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches/{branchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,2BAA2B,EAAE,CAAC,CAAC;AACnD;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,aAAa,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D;AACA,MAAMG,KAAK,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,KAAK,EAAE,GAAGH,IAAI,CAAC;AACtD;AACA,MAAMK,IAAI,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,IAAI,EAAE,GAAGL,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
$body: _Datasets.CreateDatasetRequest,
|
|
14
14
|
$queryParams?: {
|
|
15
15
|
preview?: _Core.PreviewMode | undefined;
|
|
@@ -23,7 +23,7 @@ export declare function createDataset($ctx: $Client | $ClientContext, ...args: [
|
|
|
23
23
|
* Required Scopes: [api:datasets-read]
|
|
24
24
|
* URL: /v2/datasets/{datasetRid}
|
|
25
25
|
*/
|
|
26
|
-
export declare function
|
|
26
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
27
27
|
datasetRid: _Datasets.DatasetRid,
|
|
28
28
|
$queryParams?: {
|
|
29
29
|
preview?: _Core.PreviewMode | undefined;
|
|
@@ -39,7 +39,7 @@ export declare function getDataset($ctx: $Client | $ClientContext, ...args: [
|
|
|
39
39
|
* Required Scopes: [api:datasets-read]
|
|
40
40
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
41
41
|
*/
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function readTable($ctx: $Client | $ClientContext, ...args: [
|
|
43
43
|
datasetRid: _Datasets.DatasetRid,
|
|
44
44
|
$queryParams: {
|
|
45
45
|
branchName?: _Datasets.BranchName | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;GAOG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,m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AAC,IAAI,CAAC,CAEf"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.
|
|
21
21
|
*
|
|
@@ -24,10 +24,10 @@ const _createDataset = [1, "/v2/datasets", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}", 2];
|
|
31
31
|
/**
|
|
32
32
|
* Get the Dataset with the specified rid.
|
|
33
33
|
*
|
|
@@ -36,10 +36,10 @@ const _getDataset = [0, "/v2/datasets/{0}", 2];
|
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
40
|
-
return $foundryPlatformFetch($ctx,
|
|
39
|
+
export function get($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _readTable = [0, "/v2/datasets/{0}/readTable", 2,, "application/octet-stream"];
|
|
43
43
|
/**
|
|
44
44
|
* Gets the content of a dataset as a table in the specified format.
|
|
45
45
|
*
|
|
@@ -50,7 +50,7 @@ const _readTableDataset = [0, "/v2/datasets/{0}/readTable", 2,, "application/oct
|
|
|
50
50
|
* Required Scopes: [api:datasets-read]
|
|
51
51
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
52
52
|
*/
|
|
53
|
-
export function
|
|
54
|
-
return $foundryPlatformFetch($ctx,
|
|
53
|
+
export function readTable($ctx, ...args) {
|
|
54
|
+
return $foundryPlatformFetch($ctx, _readTable, ...args);
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=Dataset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_readTable","readTable"],"sources":["Dataset.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, \"/v2/datasets\", 3];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}\", 2];\n/**\n * Get the Dataset with the specified rid.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _readTable = [0, \"/v2/datasets/{0}/readTable\", 2, , \"application/octet-stream\"];\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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...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,cAAc,EAAE,CAAC,CAAC;AACtC;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,kBAAkB,EAAE,CAAC,CAAC;AACvC;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,UAAU,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,UAAU,EAAE,GAAGH,IAAI,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -56,7 +56,7 @@ export declare function deleteFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
56
56
|
* Required Scopes: [api:datasets-read]
|
|
57
57
|
* URL: /v2/datasets/{datasetRid}/files
|
|
58
58
|
*/
|
|
59
|
-
export declare function
|
|
59
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
60
60
|
datasetRid: _Datasets.DatasetRid,
|
|
61
61
|
$queryParams?: {
|
|
62
62
|
branchName?: _Datasets.BranchName | undefined;
|
|
@@ -92,7 +92,7 @@ export declare function listFiles($ctx: $Client | $ClientContext, ...args: [
|
|
|
92
92
|
* Required Scopes: [api:datasets-read]
|
|
93
93
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
94
94
|
*/
|
|
95
|
-
export declare function
|
|
95
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
96
96
|
datasetRid: _Datasets.DatasetRid,
|
|
97
97
|
filePath: _Core.FilePath,
|
|
98
98
|
$queryParams?: {
|
|
@@ -124,7 +124,7 @@ export declare function getFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
124
124
|
* Required Scopes: [api:datasets-write]
|
|
125
125
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
126
126
|
*/
|
|
127
|
-
export declare function
|
|
127
|
+
export declare function upload($ctx: $Client | $ClientContext, ...args: [
|
|
128
128
|
datasetRid: _Datasets.DatasetRid,
|
|
129
129
|
filePath: _Core.FilePath,
|
|
130
130
|
$body: Blob,
|
|
@@ -161,7 +161,7 @@ export declare function uploadFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
161
161
|
* Required Scopes: [api:datasets-read]
|
|
162
162
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
163
163
|
*/
|
|
164
|
-
export declare function
|
|
164
|
+
export declare function content($ctx: $Client | $ClientContext, ...args: [
|
|
165
165
|
datasetRid: _Datasets.DatasetRid,
|
|
166
166
|
filePath: _Core.FilePath,
|
|
167
167
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/public/File.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAo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_deleteFile, ...args);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const _list = [0, "/v2/datasets/{0}/files", 2];
|
|
42
42
|
/**
|
|
43
43
|
* Lists Files contained in a Dataset. By default files are listed on the latest view of the default
|
|
44
44
|
* branch - `master` for most enrollments.
|
|
@@ -66,10 +66,10 @@ const _listFiles = [0, "/v2/datasets/{0}/files", 2];
|
|
|
66
66
|
* Required Scopes: [api:datasets-read]
|
|
67
67
|
* URL: /v2/datasets/{datasetRid}/files
|
|
68
68
|
*/
|
|
69
|
-
export function
|
|
70
|
-
return $foundryPlatformFetch($ctx,
|
|
69
|
+
export function list($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const _get = [0, "/v2/datasets/{0}/files/{1}", 2];
|
|
73
73
|
/**
|
|
74
74
|
* Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
|
|
75
75
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -95,10 +95,10 @@ const _getFile = [0, "/v2/datasets/{0}/files/{1}", 2];
|
|
|
95
95
|
* Required Scopes: [api:datasets-read]
|
|
96
96
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
97
97
|
*/
|
|
98
|
-
export function
|
|
99
|
-
return $foundryPlatformFetch($ctx,
|
|
98
|
+
export function get($ctx, ...args) {
|
|
99
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const _upload = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/octet-stream"];
|
|
102
102
|
/**
|
|
103
103
|
* Uploads a File to an existing Dataset.
|
|
104
104
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
@@ -121,10 +121,10 @@ const _uploadFile = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/oct
|
|
|
121
121
|
* Required Scopes: [api:datasets-write]
|
|
122
122
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
123
123
|
*/
|
|
124
|
-
export function
|
|
125
|
-
return $foundryPlatformFetch($ctx,
|
|
124
|
+
export function upload($ctx, ...args) {
|
|
125
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const _content = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "application/octet-stream"];
|
|
128
128
|
/**
|
|
129
129
|
* Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
|
|
130
130
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -151,7 +151,7 @@ const _getFileContent = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "applicati
|
|
|
151
151
|
* Required Scopes: [api:datasets-read]
|
|
152
152
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
153
153
|
*/
|
|
154
|
-
export function
|
|
155
|
-
return $foundryPlatformFetch($ctx,
|
|
154
|
+
export function content($ctx, ...args) {
|
|
155
|
+
return $foundryPlatformFetch($ctx, _content, ...args);
|
|
156
156
|
}
|
|
157
157
|
//# sourceMappingURL=File.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFile","deleteFile","$ctx","args","_listFiles","listFiles","_getFile","getFile","_uploadFile","uploadFile","_getFileContent","getFileContent"],"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 _deleteFile = [3, \"/v2/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 * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction\n * will be created and committed on this branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _listFiles = [0, \"/v2/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 * To **list files on a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _getFile = [0, \"/v2/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 * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFile, ...args);\n}\nconst _uploadFile = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\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 * 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 * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. 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 `branchName`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileContent = [0, \"/v2/datasets/{0}/files/{1}/content\", 2, , \"application/octet-stream\"];\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 * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileContent, ...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,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,WAAW,EAAE,GAAGG,IAAI,CAAC;AAC5D;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACnD;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,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,QAAQ,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACrD;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,OAAOA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,QAAQ,EAAE,GAAGH,IAAI,CAAC;AACzD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,0BAA0B,CAAC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D;AACA,MAAMO,eAAe,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAClG;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,cAAcA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,eAAe,EAAE,GAAGP,IAAI,CAAC;AAChE","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFile","deleteFile","$ctx","args","_list","list","_get","get","_upload","upload","_content","content"],"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 _deleteFile = [3, \"/v2/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 * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction\n * will be created and committed on this branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _list = [0, \"/v2/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 * To **list files on a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/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 * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _upload = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\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 * 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 * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. 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 `branchName`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _content = [0, \"/v2/datasets/{0}/files/{1}/content\", 2, , \"application/octet-stream\"];\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 * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function content($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _content, ...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,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,WAAW,EAAE,GAAGG,IAAI,CAAC;AAC5D;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,OAAO,SAASC,IAAIA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,KAAK,EAAE,GAAGD,IAAI,CAAC;AACtD;AACA,MAAMG,IAAI,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACjD;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,GAAGA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,IAAI,EAAE,GAAGH,IAAI,CAAC;AACrD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,0BAA0B,CAAC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,QAAQ,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAC3F;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,OAAOA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,QAAQ,EAAE,GAAGP,IAAI,CAAC;AACzD","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
datasetRid: _Datasets.DatasetRid,
|
|
14
14
|
$body: _Datasets.CreateTransactionRequest,
|
|
15
15
|
$queryParams?: {
|
|
@@ -25,7 +25,7 @@ export declare function createTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
25
25
|
* Required Scopes: [api:datasets-read]
|
|
26
26
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
27
27
|
*/
|
|
28
|
-
export declare function
|
|
28
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
29
29
|
datasetRid: _Datasets.DatasetRid,
|
|
30
30
|
transactionRid: _Datasets.TransactionRid,
|
|
31
31
|
$queryParams?: {
|
|
@@ -41,7 +41,7 @@ export declare function getTransaction($ctx: $Client | $ClientContext, ...args:
|
|
|
41
41
|
* Required Scopes: [api:datasets-write]
|
|
42
42
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
43
43
|
*/
|
|
44
|
-
export declare function
|
|
44
|
+
export declare function commit($ctx: $Client | $ClientContext, ...args: [
|
|
45
45
|
datasetRid: _Datasets.DatasetRid,
|
|
46
46
|
transactionRid: _Datasets.TransactionRid,
|
|
47
47
|
$queryParams?: {
|
|
@@ -57,7 +57,7 @@ export declare function commitTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
57
57
|
* Required Scopes: [api:datasets-write]
|
|
58
58
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
59
59
|
*/
|
|
60
|
-
export declare function
|
|
60
|
+
export declare function abort($ctx: $Client | $ClientContext, ...args: [
|
|
61
61
|
datasetRid: _Datasets.DatasetRid,
|
|
62
62
|
transactionRid: _Datasets.TransactionRid,
|
|
63
63
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAepD;;;;;;;GAOG;AACH,wBAAgB,
|
|
1
|
+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,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AAUD;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets/{0}/transactions", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a Transaction on a Branch of a Dataset.
|
|
21
21
|
*
|
|
@@ -24,10 +24,10 @@ const _createTransaction = [1, "/v2/datasets/{0}/transactions", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}/transactions/{1}", 2];
|
|
31
31
|
/**
|
|
32
32
|
* Gets a Transaction of a Dataset.
|
|
33
33
|
*
|
|
@@ -36,10 +36,10 @@ const _getTransaction = [0, "/v2/datasets/{0}/transactions/{1}", 2];
|
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
40
|
-
return $foundryPlatformFetch($ctx,
|
|
39
|
+
export function get($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _commit = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
|
|
43
43
|
/**
|
|
44
44
|
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
45
45
|
* updated to point to the Transaction.
|
|
@@ -49,10 +49,10 @@ const _commitTransaction = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
|
|
|
49
49
|
* Required Scopes: [api:datasets-write]
|
|
50
50
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
53
|
-
return $foundryPlatformFetch($ctx,
|
|
52
|
+
export function commit($ctx, ...args) {
|
|
53
|
+
return $foundryPlatformFetch($ctx, _commit, ...args);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const _abort = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
|
|
56
56
|
/**
|
|
57
57
|
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
58
58
|
* not updated.
|
|
@@ -62,7 +62,7 @@ const _abortTransaction = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
|
|
|
62
62
|
* Required Scopes: [api:datasets-write]
|
|
63
63
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
64
64
|
*/
|
|
65
|
-
export function
|
|
66
|
-
return $foundryPlatformFetch($ctx,
|
|
65
|
+
export function abort($ctx, ...args) {
|
|
66
|
+
return $foundryPlatformFetch($ctx, _abort, ...args);
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=Transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
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, \"/v2/datasets/{0}/transactions\", 3];\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}/transactions/{1}\", 2];\n/**\n * Gets a Transaction of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _commit = [1, \"/v2/datasets/{0}/transactions/{1}/commit\", 2];\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/datasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/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,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,EAAE,CAAC,CAAC;AACxD;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,EAAE,CAAC,CAAC;AAClE;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,EAAE,CAAC,CAAC;AAChE;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":[]}
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
datasetRid: _Datasets.DatasetRid,
|
|
14
14
|
$body: _Datasets.CreateBranchRequest,
|
|
15
15
|
$queryParams?: {
|
|
@@ -39,7 +39,7 @@ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [
|
|
|
39
39
|
* Required Scopes: [api:datasets-read]
|
|
40
40
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
41
41
|
*/
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
43
43
|
datasetRid: _Datasets.DatasetRid,
|
|
44
44
|
$queryParams?: {
|
|
45
45
|
pageSize?: _Core.PageSize | undefined;
|
|
@@ -55,7 +55,7 @@ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
|
|
|
55
55
|
* Required Scopes: [api:datasets-read]
|
|
56
56
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
57
57
|
*/
|
|
58
|
-
export declare function
|
|
58
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
59
59
|
datasetRid: _Datasets.DatasetRid,
|
|
60
60
|
branchName: _Datasets.BranchName,
|
|
61
61
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAA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SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAEzC;AAUD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAE3B"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets/{0}/branches", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
|
|
21
21
|
*
|
|
@@ -24,8 +24,8 @@ const _createBranch = [1, "/v2/datasets/{0}/branches", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
30
|
const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}", 2];
|
|
31
31
|
/**
|
|
@@ -39,7 +39,7 @@ const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}", 2];
|
|
|
39
39
|
export function deleteBranch($ctx, ...args) {
|
|
40
40
|
return $foundryPlatformFetch($ctx, _deleteBranch, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _list = [0, "/v2/datasets/{0}/branches", 2];
|
|
43
43
|
/**
|
|
44
44
|
* Lists the Branches of a Dataset.
|
|
45
45
|
*
|
|
@@ -48,10 +48,10 @@ const _listBranches = [0, "/v2/datasets/{0}/branches", 2];
|
|
|
48
48
|
* Required Scopes: [api:datasets-read]
|
|
49
49
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
52
|
-
return $foundryPlatformFetch($ctx,
|
|
51
|
+
export function list($ctx, ...args) {
|
|
52
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const _get = [0, "/v2/datasets/{0}/branches/{1}", 2];
|
|
55
55
|
/**
|
|
56
56
|
* Get a Branch of a Dataset.
|
|
57
57
|
*
|
|
@@ -60,7 +60,7 @@ const _getBranch = [0, "/v2/datasets/{0}/branches/{1}", 2];
|
|
|
60
60
|
* Required Scopes: [api:datasets-read]
|
|
61
61
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
62
62
|
*/
|
|
63
|
-
export function
|
|
64
|
-
return $foundryPlatformFetch($ctx,
|
|
63
|
+
export function get($ctx, ...args) {
|
|
64
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
65
65
|
}
|
|
66
66
|
//# sourceMappingURL=Branch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Branch.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_deleteBranch","deleteBranch","_list","list","_get","get"],"sources":["Branch.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, \"/v2/datasets/{0}/branches\", 3];\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _deleteBranch = [3, \"/v2/datasets/{0}/branches/{1}\", 2];\n/**\n * Deletes the Branch with the given BranchName.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches/{branchName}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\nconst _list = [0, \"/v2/datasets/{0}/branches\", 2];\n/**\n * Lists the Branches of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}/branches/{1}\", 2];\n/**\n * Get a Branch of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches/{branchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...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,2BAA2B,EAAE,CAAC,CAAC;AACnD;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,aAAa,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D;AACA,MAAMG,KAAK,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,KAAK,EAAE,GAAGH,IAAI,CAAC;AACtD;AACA,MAAMK,IAAI,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,IAAI,EAAE,GAAGL,IAAI,CAAC;AACrD","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
$body: _Datasets.CreateDatasetRequest,
|
|
14
14
|
$queryParams?: {
|
|
15
15
|
preview?: _Core.PreviewMode | undefined;
|
|
@@ -23,7 +23,7 @@ export declare function createDataset($ctx: $Client | $ClientContext, ...args: [
|
|
|
23
23
|
* Required Scopes: [api:datasets-read]
|
|
24
24
|
* URL: /v2/datasets/{datasetRid}
|
|
25
25
|
*/
|
|
26
|
-
export declare function
|
|
26
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
27
27
|
datasetRid: _Datasets.DatasetRid,
|
|
28
28
|
$queryParams?: {
|
|
29
29
|
preview?: _Core.PreviewMode | undefined;
|
|
@@ -39,7 +39,7 @@ export declare function getDataset($ctx: $Client | $ClientContext, ...args: [
|
|
|
39
39
|
* Required Scopes: [api:datasets-read]
|
|
40
40
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
41
41
|
*/
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function readTable($ctx: $Client | $ClientContext, ...args: [
|
|
43
43
|
datasetRid: _Datasets.DatasetRid,
|
|
44
44
|
$queryParams: {
|
|
45
45
|
branchName?: _Datasets.BranchName | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;GAOG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAm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formFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.
|
|
21
21
|
*
|
|
@@ -24,10 +24,10 @@ const _createDataset = [1, "/v2/datasets", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}", 2];
|
|
31
31
|
/**
|
|
32
32
|
* Get the Dataset with the specified rid.
|
|
33
33
|
*
|
|
@@ -36,10 +36,10 @@ const _getDataset = [0, "/v2/datasets/{0}", 2];
|
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
40
|
-
return $foundryPlatformFetch($ctx,
|
|
39
|
+
export function get($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _readTable = [0, "/v2/datasets/{0}/readTable", 2,, "application/octet-stream"];
|
|
43
43
|
/**
|
|
44
44
|
* Gets the content of a dataset as a table in the specified format.
|
|
45
45
|
*
|
|
@@ -50,7 +50,7 @@ const _readTableDataset = [0, "/v2/datasets/{0}/readTable", 2,, "application/oct
|
|
|
50
50
|
* Required Scopes: [api:datasets-read]
|
|
51
51
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
52
52
|
*/
|
|
53
|
-
export function
|
|
54
|
-
return $foundryPlatformFetch($ctx,
|
|
53
|
+
export function readTable($ctx, ...args) {
|
|
54
|
+
return $foundryPlatformFetch($ctx, _readTable, ...args);
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=Dataset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
1
|
+
{"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_readTable","readTable"],"sources":["Dataset.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, \"/v2/datasets\", 3];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}\", 2];\n/**\n * Get the Dataset with the specified rid.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _readTable = [0, \"/v2/datasets/{0}/readTable\", 2, , \"application/octet-stream\"];\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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...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,cAAc,EAAE,CAAC,CAAC;AACtC;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,kBAAkB,EAAE,CAAC,CAAC;AACvC;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,UAAU,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,UAAU,EAAE,GAAGH,IAAI,CAAC;AAC3D","ignoreList":[]}
|
|
@@ -56,7 +56,7 @@ export declare function deleteFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
56
56
|
* Required Scopes: [api:datasets-read]
|
|
57
57
|
* URL: /v2/datasets/{datasetRid}/files
|
|
58
58
|
*/
|
|
59
|
-
export declare function
|
|
59
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
60
60
|
datasetRid: _Datasets.DatasetRid,
|
|
61
61
|
$queryParams?: {
|
|
62
62
|
branchName?: _Datasets.BranchName | undefined;
|
|
@@ -92,7 +92,7 @@ export declare function listFiles($ctx: $Client | $ClientContext, ...args: [
|
|
|
92
92
|
* Required Scopes: [api:datasets-read]
|
|
93
93
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
94
94
|
*/
|
|
95
|
-
export declare function
|
|
95
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
96
96
|
datasetRid: _Datasets.DatasetRid,
|
|
97
97
|
filePath: _Core.FilePath,
|
|
98
98
|
$queryParams?: {
|
|
@@ -124,7 +124,7 @@ export declare function getFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
124
124
|
* Required Scopes: [api:datasets-write]
|
|
125
125
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
126
126
|
*/
|
|
127
|
-
export declare function
|
|
127
|
+
export declare function upload($ctx: $Client | $ClientContext, ...args: [
|
|
128
128
|
datasetRid: _Datasets.DatasetRid,
|
|
129
129
|
filePath: _Core.FilePath,
|
|
130
130
|
$body: Blob,
|
|
@@ -161,7 +161,7 @@ export declare function uploadFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
161
161
|
* Required Scopes: [api:datasets-read]
|
|
162
162
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
163
163
|
*/
|
|
164
|
-
export declare function
|
|
164
|
+
export declare function content($ctx: $Client | $ClientContext, ...args: [
|
|
165
165
|
datasetRid: _Datasets.DatasetRid,
|
|
166
166
|
filePath: _Core.FilePath,
|
|
167
167
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/public/File.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,q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BAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;IACxB,KAAK,EAAE,IAAI;IACX,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;QAC9C,eAAe,CAAC,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC;QACxD,cAAc,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QACtD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAEzB;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;IAExB,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;QAC9C,mBAAmB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QAC3D,iBAAiB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QACzD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
package/build/esm/public/File.js
CHANGED
|
@@ -38,7 +38,7 @@ const _deleteFile = [3, "/v2/datasets/{0}/files/{1}", 2];
|
|
|
38
38
|
export function deleteFile($ctx, ...args) {
|
|
39
39
|
return $foundryPlatformFetch($ctx, _deleteFile, ...args);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const _list = [0, "/v2/datasets/{0}/files", 2];
|
|
42
42
|
/**
|
|
43
43
|
* Lists Files contained in a Dataset. By default files are listed on the latest view of the default
|
|
44
44
|
* branch - `master` for most enrollments.
|
|
@@ -66,10 +66,10 @@ const _listFiles = [0, "/v2/datasets/{0}/files", 2];
|
|
|
66
66
|
* Required Scopes: [api:datasets-read]
|
|
67
67
|
* URL: /v2/datasets/{datasetRid}/files
|
|
68
68
|
*/
|
|
69
|
-
export function
|
|
70
|
-
return $foundryPlatformFetch($ctx,
|
|
69
|
+
export function list($ctx, ...args) {
|
|
70
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const _get = [0, "/v2/datasets/{0}/files/{1}", 2];
|
|
73
73
|
/**
|
|
74
74
|
* Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
|
|
75
75
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -95,10 +95,10 @@ const _getFile = [0, "/v2/datasets/{0}/files/{1}", 2];
|
|
|
95
95
|
* Required Scopes: [api:datasets-read]
|
|
96
96
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
97
97
|
*/
|
|
98
|
-
export function
|
|
99
|
-
return $foundryPlatformFetch($ctx,
|
|
98
|
+
export function get($ctx, ...args) {
|
|
99
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const _upload = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/octet-stream"];
|
|
102
102
|
/**
|
|
103
103
|
* Uploads a File to an existing Dataset.
|
|
104
104
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
@@ -121,10 +121,10 @@ const _uploadFile = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/oct
|
|
|
121
121
|
* Required Scopes: [api:datasets-write]
|
|
122
122
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
123
123
|
*/
|
|
124
|
-
export function
|
|
125
|
-
return $foundryPlatformFetch($ctx,
|
|
124
|
+
export function upload($ctx, ...args) {
|
|
125
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const _content = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "application/octet-stream"];
|
|
128
128
|
/**
|
|
129
129
|
* Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
|
|
130
130
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -151,7 +151,7 @@ const _getFileContent = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "applicati
|
|
|
151
151
|
* Required Scopes: [api:datasets-read]
|
|
152
152
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
153
153
|
*/
|
|
154
|
-
export function
|
|
155
|
-
return $foundryPlatformFetch($ctx,
|
|
154
|
+
export function content($ctx, ...args) {
|
|
155
|
+
return $foundryPlatformFetch($ctx, _content, ...args);
|
|
156
156
|
}
|
|
157
157
|
//# sourceMappingURL=File.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFile","deleteFile","$ctx","args","_listFiles","listFiles","_getFile","getFile","_uploadFile","uploadFile","_getFileContent","getFileContent"],"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 _deleteFile = [3, \"/v2/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 * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction\n * will be created and committed on this branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _listFiles = [0, \"/v2/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 * To **list files on a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _getFile = [0, \"/v2/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 * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFile, ...args);\n}\nconst _uploadFile = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\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 * 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 * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. 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 `branchName`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileContent = [0, \"/v2/datasets/{0}/files/{1}/content\", 2, , \"application/octet-stream\"];\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 * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileContent, ...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,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,WAAW,EAAE,GAAGG,IAAI,CAAC;AAC5D;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACnD;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,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,QAAQ,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACrD;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,OAAOA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,QAAQ,EAAE,GAAGH,IAAI,CAAC;AACzD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,0BAA0B,CAAC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D;AACA,MAAMO,eAAe,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAClG;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,cAAcA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,eAAe,EAAE,GAAGP,IAAI,CAAC;AAChE","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFile","deleteFile","$ctx","args","_list","list","_get","get","_upload","upload","_content","content"],"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 _deleteFile = [3, \"/v2/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 * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction\n * will be created and committed on this branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _list = [0, \"/v2/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 * To **list files on a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/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 * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _upload = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\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 * 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 * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. 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 `branchName`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _content = [0, \"/v2/datasets/{0}/files/{1}/content\", 2, , \"application/octet-stream\"];\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 * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. 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 * 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 * 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 * 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 * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function content($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _content, ...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,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,WAAW,EAAE,GAAGG,IAAI,CAAC;AAC5D;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,OAAO,SAASC,IAAIA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,KAAK,EAAE,GAAGD,IAAI,CAAC;AACtD;AACA,MAAMG,IAAI,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACjD;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,GAAGA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,IAAI,EAAE,GAAGH,IAAI,CAAC;AACrD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,0BAA0B,CAAC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,QAAQ,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAC3F;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,OAAOA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,QAAQ,EAAE,GAAGP,IAAI,CAAC;AACzD","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
9
9
|
* Required Scopes: [api:datasets-write]
|
|
10
10
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
13
13
|
datasetRid: _Datasets.DatasetRid,
|
|
14
14
|
$body: _Datasets.CreateTransactionRequest,
|
|
15
15
|
$queryParams?: {
|
|
@@ -25,7 +25,7 @@ export declare function createTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
25
25
|
* Required Scopes: [api:datasets-read]
|
|
26
26
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
27
27
|
*/
|
|
28
|
-
export declare function
|
|
28
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
29
29
|
datasetRid: _Datasets.DatasetRid,
|
|
30
30
|
transactionRid: _Datasets.TransactionRid,
|
|
31
31
|
$queryParams?: {
|
|
@@ -41,7 +41,7 @@ export declare function getTransaction($ctx: $Client | $ClientContext, ...args:
|
|
|
41
41
|
* Required Scopes: [api:datasets-write]
|
|
42
42
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
43
43
|
*/
|
|
44
|
-
export declare function
|
|
44
|
+
export declare function commit($ctx: $Client | $ClientContext, ...args: [
|
|
45
45
|
datasetRid: _Datasets.DatasetRid,
|
|
46
46
|
transactionRid: _Datasets.TransactionRid,
|
|
47
47
|
$queryParams?: {
|
|
@@ -57,7 +57,7 @@ export declare function commitTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
57
57
|
* Required Scopes: [api:datasets-write]
|
|
58
58
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
59
59
|
*/
|
|
60
|
-
export declare function
|
|
60
|
+
export declare function abort($ctx: $Client | $ClientContext, ...args: [
|
|
61
61
|
datasetRid: _Datasets.DatasetRid,
|
|
62
62
|
transactionRid: _Datasets.TransactionRid,
|
|
63
63
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAepD;;;;;;;GAOG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],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QG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const
|
|
18
|
+
const _create = [1, "/v2/datasets/{0}/transactions", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a Transaction on a Branch of a Dataset.
|
|
21
21
|
*
|
|
@@ -24,10 +24,10 @@ const _createTransaction = [1, "/v2/datasets/{0}/transactions", 3];
|
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
26
26
|
*/
|
|
27
|
-
export function
|
|
28
|
-
return $foundryPlatformFetch($ctx,
|
|
27
|
+
export function create($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}/transactions/{1}", 2];
|
|
31
31
|
/**
|
|
32
32
|
* Gets a Transaction of a Dataset.
|
|
33
33
|
*
|
|
@@ -36,10 +36,10 @@ const _getTransaction = [0, "/v2/datasets/{0}/transactions/{1}", 2];
|
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
38
38
|
*/
|
|
39
|
-
export function
|
|
40
|
-
return $foundryPlatformFetch($ctx,
|
|
39
|
+
export function get($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const _commit = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
|
|
43
43
|
/**
|
|
44
44
|
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
45
45
|
* updated to point to the Transaction.
|
|
@@ -49,10 +49,10 @@ const _commitTransaction = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
|
|
|
49
49
|
* Required Scopes: [api:datasets-write]
|
|
50
50
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
53
|
-
return $foundryPlatformFetch($ctx,
|
|
52
|
+
export function commit($ctx, ...args) {
|
|
53
|
+
return $foundryPlatformFetch($ctx, _commit, ...args);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const _abort = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
|
|
56
56
|
/**
|
|
57
57
|
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
58
58
|
* not updated.
|
|
@@ -62,7 +62,7 @@ const _abortTransaction = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
|
|
|
62
62
|
* Required Scopes: [api:datasets-write]
|
|
63
63
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
64
64
|
*/
|
|
65
|
-
export function
|
|
66
|
-
return $foundryPlatformFetch($ctx,
|
|
65
|
+
export function abort($ctx, ...args) {
|
|
66
|
+
return $foundryPlatformFetch($ctx, _abort, ...args);
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=Transaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.js","names":["foundryPlatformFetch","$foundryPlatformFetch","
|
|
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, \"/v2/datasets/{0}/transactions\", 3];\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}/transactions/{1}\", 2];\n/**\n * Gets a Transaction of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _commit = [1, \"/v2/datasets/{0}/transactions/{1}/commit\", 2];\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 * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v2/datasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/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,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,EAAE,CAAC,CAAC;AACxD;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,EAAE,CAAC,CAAC;AAClE;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,EAAE,CAAC,CAAC;AAChE;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/foundry.datasets",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@osdk/foundry.core": "2.1.0
|
|
21
|
-
"@osdk/foundry.filesystem": "2.1.0
|
|
22
|
-
"@osdk/shared.client": "^1.0.0
|
|
23
|
-
"@osdk/shared.net.platformapi": "~0.3.0
|
|
20
|
+
"@osdk/foundry.core": "2.1.0",
|
|
21
|
+
"@osdk/foundry.filesystem": "2.1.0",
|
|
22
|
+
"@osdk/shared.client": "^1.0.0",
|
|
23
|
+
"@osdk/shared.net.platformapi": "~0.3.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "^5.5.4",
|
|
27
|
-
"@osdk/monorepo.api-extractor": "~0.0.0",
|
|
28
27
|
"@osdk/monorepo.tsconfig": "~0.0.0",
|
|
29
|
-
"@osdk/monorepo.tsup": "~0.0.0"
|
|
28
|
+
"@osdk/monorepo.tsup": "~0.0.0",
|
|
29
|
+
"@osdk/monorepo.api-extractor": "~0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|