@osdk/foundry.datasets 2.2.0 → 2.4.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 +24 -0
- package/build/browser/public/Branch.d.ts +7 -23
- package/build/browser/public/Branch.d.ts.map +1 -1
- package/build/browser/public/Branch.js +7 -7
- package/build/browser/public/Branch.js.map +1 -1
- package/build/browser/public/Dataset.d.ts +5 -17
- package/build/browser/public/Dataset.d.ts.map +1 -1
- package/build/browser/public/Dataset.js +5 -5
- package/build/browser/public/Dataset.js.map +1 -1
- package/build/browser/public/File.d.ts +5 -10
- package/build/browser/public/File.d.ts.map +1 -1
- package/build/browser/public/File.js +5 -5
- package/build/browser/public/File.js.map +1 -1
- package/build/browser/public/Transaction.d.ts +7 -18
- package/build/browser/public/Transaction.d.ts.map +1 -1
- package/build/browser/public/Transaction.js +7 -7
- package/build/browser/public/Transaction.js.map +1 -1
- package/build/esm/public/Branch.d.ts +7 -23
- package/build/esm/public/Branch.d.ts.map +1 -1
- package/build/esm/public/Branch.js +7 -7
- package/build/esm/public/Branch.js.map +1 -1
- package/build/esm/public/Dataset.d.ts +5 -17
- package/build/esm/public/Dataset.d.ts.map +1 -1
- package/build/esm/public/Dataset.js +5 -5
- package/build/esm/public/Dataset.js.map +1 -1
- package/build/esm/public/File.d.ts +5 -10
- package/build/esm/public/File.d.ts.map +1 -1
- package/build/esm/public/File.js +5 -5
- package/build/esm/public/File.js.map +1 -1
- package/build/esm/public/Transaction.d.ts +7 -18
- package/build/esm/public/Transaction.d.ts.map +1 -1
- package/build/esm/public/Transaction.js +7 -7
- package/build/esm/public/Transaction.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
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 * @
|
|
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 * @public\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}\"];\n/**\n * Gets a Transaction of a Dataset.\n *\n * @public\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\"];\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 * @public\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\"];\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * @public\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,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,0CAA0C,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,MAAM,GAAG,CAAC,CAAC,EAAE,yCAAyC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,MAAM,EAAE,GAAGL,IAAI,CAAC;AACvD","ignoreList":[]}
|
|
@@ -5,37 +5,28 @@ import type * as _Datasets from "../_components.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @public
|
|
9
9
|
*
|
|
10
10
|
* Required Scopes: [api:datasets-write]
|
|
11
11
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
12
12
|
*/
|
|
13
13
|
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
14
|
datasetRid: _Datasets.DatasetRid,
|
|
15
|
-
$body: _Datasets.CreateBranchRequest
|
|
16
|
-
$queryParams?: {
|
|
17
|
-
preview?: _Core.PreviewMode | undefined;
|
|
18
|
-
}
|
|
15
|
+
$body: _Datasets.CreateBranchRequest
|
|
19
16
|
]): Promise<_Datasets.Branch>;
|
|
20
17
|
/**
|
|
21
18
|
* Deletes the Branch with the given BranchName.
|
|
22
19
|
*
|
|
23
|
-
* @
|
|
20
|
+
* @public
|
|
24
21
|
*
|
|
25
22
|
* Required Scopes: [api:datasets-write]
|
|
26
23
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
27
24
|
*/
|
|
28
|
-
export declare function deleteBranch($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
29
|
-
datasetRid: _Datasets.DatasetRid,
|
|
30
|
-
branchName: _Datasets.BranchName,
|
|
31
|
-
$queryParams?: {
|
|
32
|
-
preview?: _Core.PreviewMode | undefined;
|
|
33
|
-
}
|
|
34
|
-
]): Promise<void>;
|
|
25
|
+
export declare function deleteBranch($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchName: _Datasets.BranchName]): Promise<void>;
|
|
35
26
|
/**
|
|
36
27
|
* Lists the Branches of a Dataset.
|
|
37
28
|
*
|
|
38
|
-
* @
|
|
29
|
+
* @public
|
|
39
30
|
*
|
|
40
31
|
* Required Scopes: [api:datasets-read]
|
|
41
32
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
@@ -45,22 +36,15 @@ export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
45
36
|
$queryParams?: {
|
|
46
37
|
pageSize?: _Core.PageSize | undefined;
|
|
47
38
|
pageToken?: _Core.PageToken | undefined;
|
|
48
|
-
preview?: _Core.PreviewMode | undefined;
|
|
49
39
|
}
|
|
50
40
|
]): Promise<_Datasets.ListBranchesResponse>;
|
|
51
41
|
/**
|
|
52
42
|
* Get a Branch of a Dataset.
|
|
53
43
|
*
|
|
54
|
-
* @
|
|
44
|
+
* @public
|
|
55
45
|
*
|
|
56
46
|
* Required Scopes: [api:datasets-read]
|
|
57
47
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
58
48
|
*/
|
|
59
|
-
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
60
|
-
datasetRid: _Datasets.DatasetRid,
|
|
61
|
-
branchName: _Datasets.BranchName,
|
|
62
|
-
$queryParams?: {
|
|
63
|
-
preview?: _Core.PreviewMode | undefined;
|
|
64
|
-
}
|
|
65
|
-
]): Promise<_Datasets.Branch>;
|
|
49
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchName: _Datasets.BranchName]): Promise<_Datasets.Branch>;
|
|
66
50
|
//# sourceMappingURL=Branch.d.ts.map
|
|
@@ -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,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;
|
|
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,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,KAAK,EAAE,SAAS,CAAC,mBAAmB;CACrC,GACA,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAE3B;AASD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,GAC5E,OAAO,CAAC,IAAI,CAAC,CAEf;AAYD;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAEzC;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,GAC5E,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAE3B"}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const _create = [1, "/v2/datasets/{0}/branches",
|
|
18
|
+
const _create = [1, "/v2/datasets/{0}/branches", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
|
|
21
21
|
*
|
|
22
|
-
* @
|
|
22
|
+
* @public
|
|
23
23
|
*
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
@@ -27,11 +27,11 @@ const _create = [1, "/v2/datasets/{0}/branches", 3];
|
|
|
27
27
|
export function create($ctx, ...args) {
|
|
28
28
|
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}"
|
|
30
|
+
const _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}"];
|
|
31
31
|
/**
|
|
32
32
|
* Deletes the Branch with the given BranchName.
|
|
33
33
|
*
|
|
34
|
-
* @
|
|
34
|
+
* @public
|
|
35
35
|
*
|
|
36
36
|
* Required Scopes: [api:datasets-write]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
@@ -43,7 +43,7 @@ const _list = [0, "/v2/datasets/{0}/branches", 2];
|
|
|
43
43
|
/**
|
|
44
44
|
* Lists the Branches of a Dataset.
|
|
45
45
|
*
|
|
46
|
-
* @
|
|
46
|
+
* @public
|
|
47
47
|
*
|
|
48
48
|
* Required Scopes: [api:datasets-read]
|
|
49
49
|
* URL: /v2/datasets/{datasetRid}/branches
|
|
@@ -51,11 +51,11 @@ const _list = [0, "/v2/datasets/{0}/branches", 2];
|
|
|
51
51
|
export function list($ctx, ...args) {
|
|
52
52
|
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
53
53
|
}
|
|
54
|
-
const _get = [0, "/v2/datasets/{0}/branches/{1}"
|
|
54
|
+
const _get = [0, "/v2/datasets/{0}/branches/{1}"];
|
|
55
55
|
/**
|
|
56
56
|
* Get a Branch of a Dataset.
|
|
57
57
|
*
|
|
58
|
-
* @
|
|
58
|
+
* @public
|
|
59
59
|
*
|
|
60
60
|
* Required Scopes: [api:datasets-read]
|
|
61
61
|
* URL: /v2/datasets/{datasetRid}/branches/{branchName}
|
|
@@ -1 +1 @@
|
|
|
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\",
|
|
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\", 1];\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * @public\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}\"];\n/**\n * Deletes the Branch with the given BranchName.\n *\n * @public\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 * @public\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}\"];\n/**\n * Get a Branch of a Dataset.\n *\n * @public\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,CAAC;AAC1D;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,CAAC;AACjD;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":[]}
|
|
@@ -1,41 +1,30 @@
|
|
|
1
|
-
import type * as _Core from "@osdk/foundry.core";
|
|
2
1
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
3
|
import type * as _Datasets from "../_components.js";
|
|
5
4
|
/**
|
|
6
5
|
* Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.
|
|
7
6
|
*
|
|
8
|
-
* @
|
|
7
|
+
* @public
|
|
9
8
|
*
|
|
10
9
|
* Required Scopes: [api:datasets-write]
|
|
11
10
|
* URL: /v2/datasets
|
|
12
11
|
*/
|
|
13
|
-
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
-
$body: _Datasets.CreateDatasetRequest,
|
|
15
|
-
$queryParams?: {
|
|
16
|
-
preview?: _Core.PreviewMode | undefined;
|
|
17
|
-
}
|
|
18
|
-
]): Promise<_Datasets.Dataset>;
|
|
12
|
+
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [$body: _Datasets.CreateDatasetRequest]): Promise<_Datasets.Dataset>;
|
|
19
13
|
/**
|
|
20
14
|
* Get the Dataset with the specified rid.
|
|
21
15
|
*
|
|
22
|
-
* @
|
|
16
|
+
* @public
|
|
23
17
|
*
|
|
24
18
|
* Required Scopes: [api:datasets-read]
|
|
25
19
|
* URL: /v2/datasets/{datasetRid}
|
|
26
20
|
*/
|
|
27
|
-
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
28
|
-
datasetRid: _Datasets.DatasetRid,
|
|
29
|
-
$queryParams?: {
|
|
30
|
-
preview?: _Core.PreviewMode | undefined;
|
|
31
|
-
}
|
|
32
|
-
]): Promise<_Datasets.Dataset>;
|
|
21
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [datasetRid: _Datasets.DatasetRid]): Promise<_Datasets.Dataset>;
|
|
33
22
|
/**
|
|
34
23
|
* Gets the content of a dataset as a table in the specified format.
|
|
35
24
|
*
|
|
36
25
|
* This endpoint currently does not support views (Virtual datasets composed of other datasets).
|
|
37
26
|
*
|
|
38
|
-
* @
|
|
27
|
+
* @public
|
|
39
28
|
*
|
|
40
29
|
* Required Scopes: [api:datasets-read]
|
|
41
30
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
@@ -49,7 +38,6 @@ export declare function readTable($ctx: $Client | $ClientContext | $OldClient |
|
|
|
49
38
|
format: _Datasets.TableExportFormat;
|
|
50
39
|
columns: Array<string>;
|
|
51
40
|
rowLimit?: number | undefined;
|
|
52
|
-
preview?: _Core.PreviewMode | undefined;
|
|
53
41
|
}
|
|
54
42
|
]): Promise<Blob>;
|
|
55
43
|
//# sourceMappingURL=Dataset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAQpD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAC,GAC/C,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAE5B;AAMD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,GAC1C,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAE5B;AAgBD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,EAAE;QACZ,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,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC;QACpC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC/B;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
|
|
17
17
|
//
|
|
18
|
-
const _create = [1, "/v2/datasets",
|
|
18
|
+
const _create = [1, "/v2/datasets", 1];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.
|
|
21
21
|
*
|
|
22
|
-
* @
|
|
22
|
+
* @public
|
|
23
23
|
*
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets
|
|
@@ -27,11 +27,11 @@ const _create = [1, "/v2/datasets", 3];
|
|
|
27
27
|
export function create($ctx, ...args) {
|
|
28
28
|
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const _get = [0, "/v2/datasets/{0}"
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}"];
|
|
31
31
|
/**
|
|
32
32
|
* Get the Dataset with the specified rid.
|
|
33
33
|
*
|
|
34
|
-
* @
|
|
34
|
+
* @public
|
|
35
35
|
*
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}
|
|
@@ -45,7 +45,7 @@ const _readTable = [0, "/v2/datasets/{0}/readTable", 2,, "application/octet-stre
|
|
|
45
45
|
*
|
|
46
46
|
* This endpoint currently does not support views (Virtual datasets composed of other datasets).
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*
|
|
50
50
|
* Required Scopes: [api:datasets-read]
|
|
51
51
|
* URL: /v2/datasets/{datasetRid}/readTable
|
|
@@ -1 +1 @@
|
|
|
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\",
|
|
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\", 1];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * @public\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}\"];\n/**\n * Get the Dataset with the specified rid.\n *\n * @public\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 * @public\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,CAAC;AACpC;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":[]}
|
|
@@ -16,7 +16,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
16
16
|
* single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to
|
|
17
17
|
* open a transaction.
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @public
|
|
20
20
|
*
|
|
21
21
|
* Required Scopes: [api:datasets-write]
|
|
22
22
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
@@ -27,7 +27,6 @@ export declare function deleteFile($ctx: $Client | $ClientContext | $OldClient |
|
|
|
27
27
|
$queryParams?: {
|
|
28
28
|
branchName?: _Datasets.BranchName | undefined;
|
|
29
29
|
transactionRid?: _Datasets.TransactionRid | undefined;
|
|
30
|
-
preview?: _Core.PreviewMode | undefined;
|
|
31
30
|
}
|
|
32
31
|
]): Promise<void>;
|
|
33
32
|
/**
|
|
@@ -52,7 +51,7 @@ export declare function deleteFile($ctx: $Client | $ClientContext | $OldClient |
|
|
|
52
51
|
* `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that
|
|
53
52
|
* Transaction.
|
|
54
53
|
*
|
|
55
|
-
* @
|
|
54
|
+
* @public
|
|
56
55
|
*
|
|
57
56
|
* Required Scopes: [api:datasets-read]
|
|
58
57
|
* URL: /v2/datasets/{datasetRid}/files
|
|
@@ -65,7 +64,6 @@ export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
65
64
|
endTransactionRid?: _Datasets.TransactionRid | undefined;
|
|
66
65
|
pageSize?: _Core.PageSize | undefined;
|
|
67
66
|
pageToken?: _Core.PageToken | undefined;
|
|
68
|
-
preview?: _Core.PreviewMode | undefined;
|
|
69
67
|
}
|
|
70
68
|
]): Promise<_Datasets.ListFilesResponse>;
|
|
71
69
|
/**
|
|
@@ -88,7 +86,7 @@ export declare function list($ctx: $Client | $ClientContext | $OldClient | $OldC
|
|
|
88
86
|
* To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the
|
|
89
87
|
* `startTransactionRid` and `endTransactionRid`.
|
|
90
88
|
*
|
|
91
|
-
* @
|
|
89
|
+
* @public
|
|
92
90
|
*
|
|
93
91
|
* Required Scopes: [api:datasets-read]
|
|
94
92
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
@@ -100,7 +98,6 @@ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldCl
|
|
|
100
98
|
branchName?: _Datasets.BranchName | undefined;
|
|
101
99
|
startTransactionRid?: _Datasets.TransactionRid | undefined;
|
|
102
100
|
endTransactionRid?: _Datasets.TransactionRid | undefined;
|
|
103
|
-
preview?: _Core.PreviewMode | undefined;
|
|
104
101
|
}
|
|
105
102
|
]): Promise<_Datasets.File>;
|
|
106
103
|
/**
|
|
@@ -120,7 +117,7 @@ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldCl
|
|
|
120
117
|
* `transactionRid`. This is useful for uploading multiple files in a single transaction.
|
|
121
118
|
* See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.
|
|
122
119
|
*
|
|
123
|
-
* @
|
|
120
|
+
* @public
|
|
124
121
|
*
|
|
125
122
|
* Required Scopes: [api:datasets-write]
|
|
126
123
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
@@ -133,7 +130,6 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
133
130
|
branchName?: _Datasets.BranchName | undefined;
|
|
134
131
|
transactionType?: _Datasets.TransactionType | undefined;
|
|
135
132
|
transactionRid?: _Datasets.TransactionRid | undefined;
|
|
136
|
-
preview?: _Core.PreviewMode | undefined;
|
|
137
133
|
}
|
|
138
134
|
]): Promise<_Datasets.File>;
|
|
139
135
|
/**
|
|
@@ -157,7 +153,7 @@ export declare function upload($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
157
153
|
* To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the
|
|
158
154
|
* `startTransactionRid` and `endTransactionRid`.
|
|
159
155
|
*
|
|
160
|
-
* @
|
|
156
|
+
* @public
|
|
161
157
|
*
|
|
162
158
|
* Required Scopes: [api:datasets-read]
|
|
163
159
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
@@ -169,7 +165,6 @@ export declare function content($ctx: $Client | $ClientContext | $OldClient | $O
|
|
|
169
165
|
branchName?: _Datasets.BranchName | undefined;
|
|
170
166
|
startTransactionRid?: _Datasets.TransactionRid | undefined;
|
|
171
167
|
endTransactionRid?: _Datasets.TransactionRid | undefined;
|
|
172
|
-
preview?: _Core.PreviewMode | undefined;
|
|
173
168
|
}
|
|
174
169
|
]): Promise<Blob>;
|
|
175
170
|
//# sourceMappingURL=File.d.ts.map
|
|
@@ -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,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;
|
|
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,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAepD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,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,cAAc,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;KACvD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,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,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAEtC;AAcD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,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;KAC1D;CACF,GACA,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAEzB;AAeD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,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;KACvD;CACF,GACA,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAEzB;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,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;KAC1D;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
package/build/esm/public/File.js
CHANGED
|
@@ -30,7 +30,7 @@ const _deleteFile = [3, "/v2/datasets/{0}/files/{1}", 2];
|
|
|
30
30
|
* single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to
|
|
31
31
|
* open a transaction.
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @public
|
|
34
34
|
*
|
|
35
35
|
* Required Scopes: [api:datasets-write]
|
|
36
36
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
@@ -61,7 +61,7 @@ const _list = [0, "/v2/datasets/{0}/files", 2];
|
|
|
61
61
|
* `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that
|
|
62
62
|
* Transaction.
|
|
63
63
|
*
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*
|
|
66
66
|
* Required Scopes: [api:datasets-read]
|
|
67
67
|
* URL: /v2/datasets/{datasetRid}/files
|
|
@@ -90,7 +90,7 @@ const _get = [0, "/v2/datasets/{0}/files/{1}", 2];
|
|
|
90
90
|
* To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the
|
|
91
91
|
* `startTransactionRid` and `endTransactionRid`.
|
|
92
92
|
*
|
|
93
|
-
* @
|
|
93
|
+
* @public
|
|
94
94
|
*
|
|
95
95
|
* Required Scopes: [api:datasets-read]
|
|
96
96
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}
|
|
@@ -116,7 +116,7 @@ const _upload = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/octet-s
|
|
|
116
116
|
* `transactionRid`. This is useful for uploading multiple files in a single transaction.
|
|
117
117
|
* See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.
|
|
118
118
|
*
|
|
119
|
-
* @
|
|
119
|
+
* @public
|
|
120
120
|
*
|
|
121
121
|
* Required Scopes: [api:datasets-write]
|
|
122
122
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
|
|
@@ -146,7 +146,7 @@ const _content = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "application/octe
|
|
|
146
146
|
* To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the
|
|
147
147
|
* `startTransactionRid` and `endTransactionRid`.
|
|
148
148
|
*
|
|
149
|
-
* @
|
|
149
|
+
* @public
|
|
150
150
|
*
|
|
151
151
|
* Required Scopes: [api:datasets-read]
|
|
152
152
|
* URL: /v2/datasets/{datasetRid}/files/{filePath}/content
|
|
@@ -1 +1 @@
|
|
|
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":[]}
|
|
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 * @public\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 * @public\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 * @public\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 * @public\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 * @public\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":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type * as _Core from "@osdk/foundry.core";
|
|
2
1
|
import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
|
|
3
2
|
import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
|
|
4
3
|
import type * as _Datasets from "../_components.js";
|
|
5
4
|
/**
|
|
6
5
|
* Creates a Transaction on a Branch of a Dataset.
|
|
7
6
|
*
|
|
8
|
-
* @
|
|
7
|
+
* @public
|
|
9
8
|
*
|
|
10
9
|
* Required Scopes: [api:datasets-write]
|
|
11
10
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
@@ -15,54 +14,44 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
|
|
|
15
14
|
$body: _Datasets.CreateTransactionRequest,
|
|
16
15
|
$queryParams?: {
|
|
17
16
|
branchName?: _Datasets.BranchName | undefined;
|
|
18
|
-
preview?: _Core.PreviewMode | undefined;
|
|
19
17
|
}
|
|
20
18
|
]): Promise<_Datasets.Transaction>;
|
|
21
19
|
/**
|
|
22
20
|
* Gets a Transaction of a Dataset.
|
|
23
21
|
*
|
|
24
|
-
* @
|
|
22
|
+
* @public
|
|
25
23
|
*
|
|
26
24
|
* Required Scopes: [api:datasets-read]
|
|
27
25
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
28
26
|
*/
|
|
29
27
|
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
30
28
|
datasetRid: _Datasets.DatasetRid,
|
|
31
|
-
transactionRid: _Datasets.TransactionRid
|
|
32
|
-
$queryParams?: {
|
|
33
|
-
preview?: _Core.PreviewMode | undefined;
|
|
34
|
-
}
|
|
29
|
+
transactionRid: _Datasets.TransactionRid
|
|
35
30
|
]): Promise<_Datasets.Transaction>;
|
|
36
31
|
/**
|
|
37
32
|
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
38
33
|
* updated to point to the Transaction.
|
|
39
34
|
*
|
|
40
|
-
* @
|
|
35
|
+
* @public
|
|
41
36
|
*
|
|
42
37
|
* Required Scopes: [api:datasets-write]
|
|
43
38
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
44
39
|
*/
|
|
45
40
|
export declare function commit($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
46
41
|
datasetRid: _Datasets.DatasetRid,
|
|
47
|
-
transactionRid: _Datasets.TransactionRid
|
|
48
|
-
$queryParams?: {
|
|
49
|
-
preview?: _Core.PreviewMode | undefined;
|
|
50
|
-
}
|
|
42
|
+
transactionRid: _Datasets.TransactionRid
|
|
51
43
|
]): Promise<_Datasets.Transaction>;
|
|
52
44
|
/**
|
|
53
45
|
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
54
46
|
* not updated.
|
|
55
47
|
*
|
|
56
|
-
* @
|
|
48
|
+
* @public
|
|
57
49
|
*
|
|
58
50
|
* Required Scopes: [api:datasets-write]
|
|
59
51
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
60
52
|
*/
|
|
61
53
|
export declare function abort($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
62
54
|
datasetRid: _Datasets.DatasetRid,
|
|
63
|
-
transactionRid: _Datasets.TransactionRid
|
|
64
|
-
$queryParams?: {
|
|
65
|
-
preview?: _Core.PreviewMode | undefined;
|
|
66
|
-
}
|
|
55
|
+
transactionRid: _Datasets.TransactionRid
|
|
67
56
|
]): Promise<_Datasets.Transaction>;
|
|
68
57
|
//# sourceMappingURL=Transaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAYpD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,KAAK,EAAE,SAAS,CAAC,wBAAwB;IACzC,YAAY,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAA;KAAE;CACjE,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;CACzC,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AASD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;CACzC,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AASD;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;CACzC,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC"}
|
|
@@ -19,7 +19,7 @@ const _create = [1, "/v2/datasets/{0}/transactions", 3];
|
|
|
19
19
|
/**
|
|
20
20
|
* Creates a Transaction on a Branch of a Dataset.
|
|
21
21
|
*
|
|
22
|
-
* @
|
|
22
|
+
* @public
|
|
23
23
|
*
|
|
24
24
|
* Required Scopes: [api:datasets-write]
|
|
25
25
|
* URL: /v2/datasets/{datasetRid}/transactions
|
|
@@ -27,11 +27,11 @@ const _create = [1, "/v2/datasets/{0}/transactions", 3];
|
|
|
27
27
|
export function create($ctx, ...args) {
|
|
28
28
|
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
29
29
|
}
|
|
30
|
-
const _get = [0, "/v2/datasets/{0}/transactions/{1}"
|
|
30
|
+
const _get = [0, "/v2/datasets/{0}/transactions/{1}"];
|
|
31
31
|
/**
|
|
32
32
|
* Gets a Transaction of a Dataset.
|
|
33
33
|
*
|
|
34
|
-
* @
|
|
34
|
+
* @public
|
|
35
35
|
*
|
|
36
36
|
* Required Scopes: [api:datasets-read]
|
|
37
37
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
|
|
@@ -39,12 +39,12 @@ const _get = [0, "/v2/datasets/{0}/transactions/{1}", 2];
|
|
|
39
39
|
export function get($ctx, ...args) {
|
|
40
40
|
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
41
41
|
}
|
|
42
|
-
const _commit = [1, "/v2/datasets/{0}/transactions/{1}/commit"
|
|
42
|
+
const _commit = [1, "/v2/datasets/{0}/transactions/{1}/commit"];
|
|
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.
|
|
46
46
|
*
|
|
47
|
-
* @
|
|
47
|
+
* @public
|
|
48
48
|
*
|
|
49
49
|
* Required Scopes: [api:datasets-write]
|
|
50
50
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
@@ -52,12 +52,12 @@ const _commit = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
|
|
|
52
52
|
export function commit($ctx, ...args) {
|
|
53
53
|
return $foundryPlatformFetch($ctx, _commit, ...args);
|
|
54
54
|
}
|
|
55
|
-
const _abort = [1, "/v2/datasets/{0}/transactions/{1}/abort"
|
|
55
|
+
const _abort = [1, "/v2/datasets/{0}/transactions/{1}/abort"];
|
|
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.
|
|
59
59
|
*
|
|
60
|
-
* @
|
|
60
|
+
* @public
|
|
61
61
|
*
|
|
62
62
|
* Required Scopes: [api:datasets-write]
|
|
63
63
|
* URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
|