@osdk/internal.foundry.datasets 0.2.0-beta.9 → 0.2.1
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 +53 -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 +4 -4
- package/build/browser/public/Dataset.d.ts.map +1 -1
- package/build/browser/public/Dataset.js +12 -12
- 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 +4 -4
- package/build/esm/public/Dataset.d.ts.map +1 -1
- package/build/esm/public/Dataset.js +12 -12
- 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 +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# @osdk/internal.foundry.datasets
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a4343af]
|
|
8
|
+
- @osdk/shared.client@1.0.1
|
|
9
|
+
- @osdk/internal.foundry.core@0.2.1
|
|
10
|
+
- @osdk/shared.net.platformapi@0.3.1
|
|
11
|
+
|
|
12
|
+
## 0.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 5d6d5ab: Use the "verb" where possible
|
|
17
|
+
- 1770490: URLs in jsdoc now link to palantir.com
|
|
18
|
+
- 5d6d5ab: Internal improvement to type references
|
|
19
|
+
- 1252d94: ESM Only
|
|
20
|
+
- 5d6d5ab: Updated to latest gateway apis
|
|
21
|
+
- 5d6d5ab: We now generate error types
|
|
22
|
+
- 5d6d5ab: Includes @alpha/@beta/@public jsdoc tags
|
|
23
|
+
- 5d6d5ab: Internally refactored to support new API versions
|
|
24
|
+
- 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
|
|
25
|
+
- 5d6d5ab: SLS dependencies are optional
|
|
26
|
+
- d4d6605: Audited and cleaned up deps
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [5d6d5ab]
|
|
31
|
+
- Updated dependencies [b60e107]
|
|
32
|
+
- Updated dependencies [5d6d5ab]
|
|
33
|
+
- Updated dependencies [5dc1241]
|
|
34
|
+
- Updated dependencies [1252d94]
|
|
35
|
+
- Updated dependencies [5d6d5ab]
|
|
36
|
+
- Updated dependencies [5d6d5ab]
|
|
37
|
+
- Updated dependencies [5d6d5ab]
|
|
38
|
+
- Updated dependencies [5d6d5ab]
|
|
39
|
+
- Updated dependencies [5d6d5ab]
|
|
40
|
+
- Updated dependencies [5d6d5ab]
|
|
41
|
+
- Updated dependencies [d4d6605]
|
|
42
|
+
- Updated dependencies [5dc1241]
|
|
43
|
+
- @osdk/internal.foundry.core@0.2.0
|
|
44
|
+
- @osdk/shared.client@1.0.0
|
|
45
|
+
- @osdk/shared.net.platformapi@0.3.0
|
|
46
|
+
|
|
47
|
+
## 0.2.0-beta.10
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [5dc1241]
|
|
52
|
+
- @osdk/shared.client@1.0.0-beta.3
|
|
53
|
+
- @osdk/internal.foundry.core@0.2.0-beta.10
|
|
54
|
+
- @osdk/shared.net.platformapi@0.3.0-beta.3
|
|
55
|
+
|
|
3
56
|
## 0.2.0-beta.9
|
|
4
57
|
|
|
5
58
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
11
11
|
* Required Scopes: [api:datasets-write]
|
|
12
12
|
* URL: /v1/datasets/{datasetRid}/branches
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
15
15
|
datasetRid: _Datasets.DatasetRid,
|
|
16
16
|
$body: _Datasets.CreateBranchRequest
|
|
17
17
|
]): Promise<_Datasets.Branch>;
|
|
@@ -25,7 +25,7 @@ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [
|
|
|
25
25
|
* Required Scopes: [api:datasets-read]
|
|
26
26
|
* URL: /v1/datasets/{datasetRid}/branches/{branchId}
|
|
27
27
|
*/
|
|
28
|
-
export declare function
|
|
28
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchId: _Datasets.BranchId]): Promise<_Datasets.Branch>;
|
|
29
29
|
/**
|
|
30
30
|
* Deletes the Branch with the given BranchId.
|
|
31
31
|
*
|
|
@@ -47,7 +47,7 @@ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [d
|
|
|
47
47
|
* Required Scopes: [api:datasets-read]
|
|
48
48
|
* URL: /v1/datasets/{datasetRid}/branches
|
|
49
49
|
*/
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
51
51
|
datasetRid: _Datasets.DatasetRid,
|
|
52
52
|
$queryParams?: {
|
|
53
53
|
pageSize?: _Core.PageSize | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;;;GASG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;;;GASG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,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;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,GACxE,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAE3B;AASD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,GACxE,OAAO,CAAC,IAAI,CAAC,CAEf;AAYD;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,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"}
|
|
@@ -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, "/v1/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
|
*
|
|
@@ -26,10 +26,10 @@ const _createBranch = [1, "/v1/datasets/{0}/branches", 1];
|
|
|
26
26
|
* Required Scopes: [api:datasets-write]
|
|
27
27
|
* URL: /v1/datasets/{datasetRid}/branches
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
30
|
-
return $foundryPlatformFetch($ctx,
|
|
29
|
+
export function create($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const _get = [0, "/v1/datasets/{0}/branches/{1}"];
|
|
33
33
|
/**
|
|
34
34
|
* Get a Branch of a Dataset.
|
|
35
35
|
*
|
|
@@ -40,8 +40,8 @@ const _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
|
|
|
40
40
|
* Required Scopes: [api:datasets-read]
|
|
41
41
|
* URL: /v1/datasets/{datasetRid}/branches/{branchId}
|
|
42
42
|
*/
|
|
43
|
-
export function
|
|
44
|
-
return $foundryPlatformFetch($ctx,
|
|
43
|
+
export function get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
45
|
}
|
|
46
46
|
const _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
|
|
47
47
|
/**
|
|
@@ -57,7 +57,7 @@ const _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
|
|
|
57
57
|
export function deleteBranch($ctx, ...args) {
|
|
58
58
|
return $foundryPlatformFetch($ctx, _deleteBranch, ...args);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const _list = [0, "/v1/datasets/{0}/branches", 2];
|
|
61
61
|
/**
|
|
62
62
|
* Lists the Branches of a Dataset.
|
|
63
63
|
*
|
|
@@ -68,7 +68,7 @@ const _listBranches = [0, "/v1/datasets/{0}/branches", 2];
|
|
|
68
68
|
* Required Scopes: [api:datasets-read]
|
|
69
69
|
* URL: /v1/datasets/{datasetRid}/branches
|
|
70
70
|
*/
|
|
71
|
-
export function
|
|
72
|
-
return $foundryPlatformFetch($ctx,
|
|
71
|
+
export function list($ctx, ...args) {
|
|
72
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
73
73
|
}
|
|
74
74
|
//# 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","_get","get","_deleteBranch","deleteBranch","_list","list"],"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, \"/v1/datasets/{0}/branches\", 1];\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/branches/{1}\"];\n/**\n * Get a Branch of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _deleteBranch = [3, \"/v1/datasets/{0}/branches/{1}\"];\n/**\n * Deletes the Branch with the given BranchId.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\nconst _list = [0, \"/v1/datasets/{0}/branches\", 2];\n/**\n * Lists the Branches of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...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;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,+BAA+B,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,aAAa,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,aAAa,EAAE,GAAGH,IAAI,CAAC;AAC9D;AACA,MAAMK,KAAK,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,KAAK,EAAE,GAAGL,IAAI,CAAC;AACtD","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
11
11
|
* Required Scopes: [api:datasets-write]
|
|
12
12
|
* URL: /v1/datasets
|
|
13
13
|
*/
|
|
14
|
-
export declare function
|
|
14
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [$body: _Datasets.CreateDatasetRequest]): Promise<_Datasets.Dataset>;
|
|
15
15
|
/**
|
|
16
16
|
* Gets the Dataset with the given DatasetRid.
|
|
17
17
|
*
|
|
@@ -22,7 +22,7 @@ export declare function createDataset($ctx: $Client | $ClientContext, ...args: [
|
|
|
22
22
|
* Required Scopes: [api:datasets-read]
|
|
23
23
|
* URL: /v1/datasets/{datasetRid}
|
|
24
24
|
*/
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [datasetRid: _Datasets.DatasetRid]): Promise<_Datasets.Dataset>;
|
|
26
26
|
/**
|
|
27
27
|
* Gets the content of a dataset as a table in the specified format.
|
|
28
28
|
*
|
|
@@ -35,7 +35,7 @@ export declare function getDataset($ctx: $Client | $ClientContext, ...args: [dat
|
|
|
35
35
|
* Required Scopes: [api:datasets-read]
|
|
36
36
|
* URL: /v1/datasets/{datasetRid}/readTable
|
|
37
37
|
*/
|
|
38
|
-
export declare function
|
|
38
|
+
export declare function read($ctx: $Client | $ClientContext, ...args: [
|
|
39
39
|
datasetRid: _Datasets.DatasetRid,
|
|
40
40
|
$queryParams: {
|
|
41
41
|
branchId?: _Datasets.BranchId | undefined;
|
|
@@ -54,7 +54,7 @@ export declare function readTable($ctx: $Client | $ClientContext, ...args: [
|
|
|
54
54
|
* Required Scopes: [api:datasets-write]
|
|
55
55
|
* URL: /v1/datasets/{datasetRid}/schema
|
|
56
56
|
*/
|
|
57
|
-
export declare function
|
|
57
|
+
export declare function replaceSchema($ctx: $Client | $ClientContext, ...args: [
|
|
58
58
|
datasetRid: _Datasets.DatasetRid,
|
|
59
59
|
$body: any,
|
|
60
60
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Data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AAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QACtD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,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, "/v1/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
|
*
|
|
@@ -26,10 +26,10 @@ const _createDataset = [1, "/v1/datasets", 1];
|
|
|
26
26
|
* Required Scopes: [api:datasets-write]
|
|
27
27
|
* URL: /v1/datasets
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
30
|
-
return $foundryPlatformFetch($ctx,
|
|
29
|
+
export function create($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const _get = [0, "/v1/datasets/{0}"];
|
|
33
33
|
/**
|
|
34
34
|
* Gets the Dataset with the given DatasetRid.
|
|
35
35
|
*
|
|
@@ -40,10 +40,10 @@ const _getDataset = [0, "/v1/datasets/{0}"];
|
|
|
40
40
|
* Required Scopes: [api:datasets-read]
|
|
41
41
|
* URL: /v1/datasets/{datasetRid}
|
|
42
42
|
*/
|
|
43
|
-
export function
|
|
44
|
-
return $foundryPlatformFetch($ctx,
|
|
43
|
+
export function get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const _read = [0, "/v1/datasets/{0}/readTable", 2,, "*/*"];
|
|
47
47
|
/**
|
|
48
48
|
* Gets the content of a dataset as a table in the specified format.
|
|
49
49
|
*
|
|
@@ -56,10 +56,10 @@ const _readTable = [0, "/v1/datasets/{0}/readTable", 2,, "*/*"];
|
|
|
56
56
|
* Required Scopes: [api:datasets-read]
|
|
57
57
|
* URL: /v1/datasets/{datasetRid}/readTable
|
|
58
58
|
*/
|
|
59
|
-
export function
|
|
60
|
-
return $foundryPlatformFetch($ctx,
|
|
59
|
+
export function read($ctx, ...args) {
|
|
60
|
+
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const _replaceSchema = [2, "/v1/datasets/{0}/schema", 3];
|
|
63
63
|
/**
|
|
64
64
|
* Puts a Schema on an existing Dataset and Branch.
|
|
65
65
|
*
|
|
@@ -68,8 +68,8 @@ const _putSchema = [2, "/v1/datasets/{0}/schema", 3];
|
|
|
68
68
|
* Required Scopes: [api:datasets-write]
|
|
69
69
|
* URL: /v1/datasets/{datasetRid}/schema
|
|
70
70
|
*/
|
|
71
|
-
export function
|
|
72
|
-
return $foundryPlatformFetch($ctx,
|
|
71
|
+
export function replaceSchema($ctx, ...args) {
|
|
72
|
+
return $foundryPlatformFetch($ctx, _replaceSchema, ...args);
|
|
73
73
|
}
|
|
74
74
|
const _getSchema = [0, "/v1/datasets/{0}/schema", 2];
|
|
75
75
|
/**
|
|
@@ -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","_read","read","_replaceSchema","replaceSchema","_getSchema","getSchema","_deleteSchema","deleteSchema"],"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, \"/v1/datasets\", 1];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}\"];\n/**\n * Gets the Dataset with the given DatasetRid.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _read = [0, \"/v1/datasets/{0}/readTable\", 2, , \"*/*\"];\n/**\n * Gets the content of a dataset as a table in the specified format.\n *\n * This endpoint currently does not support views (Virtual datasets composed of other datasets).\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/readTable\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _replaceSchema = [2, \"/v1/datasets/{0}/schema\", 3];\n/**\n * Puts a Schema on an existing Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function replaceSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _replaceSchema, ...args);\n}\nconst _getSchema = [0, \"/v1/datasets/{0}/schema\", 2];\n/**\n * Retrieves the Schema for a Dataset and Branch, if it exists.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function getSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchema, ...args);\n}\nconst _deleteSchema = [3, \"/v1/datasets/{0}/schema\", 2];\n/**\n * Deletes the Schema from a Dataset and Branch.\n *\n * @alpha\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/schema\n */\nexport function deleteSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteSchema, ...args);\n}\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;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;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,KAAK,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,GAAI,KAAK,CAAC;AAC3D;AACA;AACA;AACA;AACA;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,cAAc,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,cAAc,EAAE,GAAGL,IAAI,CAAC;AAC/D;AACA,MAAMO,UAAU,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,UAAU,EAAE,GAAGP,IAAI,CAAC;AAC3D;AACA,MAAMS,aAAa,GAAG,CAAC,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,aAAa,EAAE,GAAGT,IAAI,CAAC;AAC9D","ignoreList":[]}
|
|
@@ -34,7 +34,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
34
34
|
* Required Scopes: [api:datasets-read]
|
|
35
35
|
* URL: /v1/datasets/{datasetRid}/files
|
|
36
36
|
*/
|
|
37
|
-
export declare function
|
|
37
|
+
export declare function list($ctx: $Client | $ClientContext, ...args: [
|
|
38
38
|
datasetRid: _Datasets.DatasetRid,
|
|
39
39
|
$queryParams?: {
|
|
40
40
|
branchId?: _Datasets.BranchId | undefined;
|
|
@@ -71,7 +71,7 @@ export declare function listFiles($ctx: $Client | $ClientContext, ...args: [
|
|
|
71
71
|
* Required Scopes: [api:datasets-write]
|
|
72
72
|
* URL: /v1/datasets/{datasetRid}/files:upload
|
|
73
73
|
*/
|
|
74
|
-
export declare function
|
|
74
|
+
export declare function upload($ctx: $Client | $ClientContext, ...args: [
|
|
75
75
|
datasetRid: _Datasets.DatasetRid,
|
|
76
76
|
$body: Blob,
|
|
77
77
|
$queryParams: {
|
|
@@ -112,7 +112,7 @@ export declare function uploadFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
112
112
|
* Required Scopes: [api:datasets-read]
|
|
113
113
|
* URL: /v1/datasets/{datasetRid}/files/{filePath}
|
|
114
114
|
*/
|
|
115
|
-
export declare function
|
|
115
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
116
116
|
datasetRid: _Datasets.DatasetRid,
|
|
117
117
|
filePath: _Core.FilePath,
|
|
118
118
|
$queryParams?: {
|
|
@@ -184,7 +184,7 @@ export declare function deleteFile($ctx: $Client | $ClientContext, ...args: [
|
|
|
184
184
|
* Required Scopes: [api:datasets-read]
|
|
185
185
|
* URL: /v1/datasets/{datasetRid}/files/{filePath}/content
|
|
186
186
|
*/
|
|
187
|
-
export declare function
|
|
187
|
+
export declare function read($ctx: $Client | $ClientContext, ...args: [
|
|
188
188
|
datasetRid: _Datasets.DatasetRid,
|
|
189
189
|
filePath: _Core.FilePath,
|
|
190
190
|
$queryParams?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/public/File.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAiBpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/public/File.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK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AAS,CAAC,cAAc,GAAG,SAAS,CAAC;KAC1D;CACF,GACA,OAAO,CAAC,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 _list = [0, "/v1/datasets/{0}/files", 2];
|
|
19
19
|
/**
|
|
20
20
|
* Lists Files contained in a Dataset. By default files are listed on the latest view of the default
|
|
21
21
|
* branch - `master` for most enrollments.
|
|
@@ -49,10 +49,10 @@ const _listFiles = [0, "/v1/datasets/{0}/files", 2];
|
|
|
49
49
|
* Required Scopes: [api:datasets-read]
|
|
50
50
|
* URL: /v1/datasets/{datasetRid}/files
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
53
|
-
return $foundryPlatformFetch($ctx,
|
|
52
|
+
export function list($ctx, ...args) {
|
|
53
|
+
return $foundryPlatformFetch($ctx, _list, ...args);
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const _upload = [1, "/v1/datasets/{0}/files:upload", 3, "*/*"];
|
|
56
56
|
/**
|
|
57
57
|
* Uploads a File to an existing Dataset.
|
|
58
58
|
* The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
|
|
@@ -80,10 +80,10 @@ const _uploadFile = [1, "/v1/datasets/{0}/files:upload", 3, "*/*"];
|
|
|
80
80
|
* Required Scopes: [api:datasets-write]
|
|
81
81
|
* URL: /v1/datasets/{datasetRid}/files:upload
|
|
82
82
|
*/
|
|
83
|
-
export function
|
|
84
|
-
return $foundryPlatformFetch($ctx,
|
|
83
|
+
export function upload($ctx, ...args) {
|
|
84
|
+
return $foundryPlatformFetch($ctx, _upload, ...args);
|
|
85
85
|
}
|
|
86
|
-
const
|
|
86
|
+
const _get = [0, "/v1/datasets/{0}/files/{1}", 2];
|
|
87
87
|
/**
|
|
88
88
|
* Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
|
|
89
89
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -115,8 +115,8 @@ const _getFileMetadata = [0, "/v1/datasets/{0}/files/{1}", 2];
|
|
|
115
115
|
* Required Scopes: [api:datasets-read]
|
|
116
116
|
* URL: /v1/datasets/{datasetRid}/files/{filePath}
|
|
117
117
|
*/
|
|
118
|
-
export function
|
|
119
|
-
return $foundryPlatformFetch($ctx,
|
|
118
|
+
export function get($ctx, ...args) {
|
|
119
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
120
120
|
}
|
|
121
121
|
const _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
|
|
122
122
|
/**
|
|
@@ -145,7 +145,7 @@ const _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
|
|
|
145
145
|
export function deleteFile($ctx, ...args) {
|
|
146
146
|
return $foundryPlatformFetch($ctx, _deleteFile, ...args);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const _read = [0, "/v1/datasets/{0}/files/{1}/content", 2,, "*/*"];
|
|
149
149
|
/**
|
|
150
150
|
* Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
|
|
151
151
|
* view of the default branch - `master` for most enrollments.
|
|
@@ -178,7 +178,7 @@ const _getFileContent = [0, "/v1/datasets/{0}/files/{1}/content", 2,, "*/*"];
|
|
|
178
178
|
* Required Scopes: [api:datasets-read]
|
|
179
179
|
* URL: /v1/datasets/{datasetRid}/files/{filePath}/content
|
|
180
180
|
*/
|
|
181
|
-
export function
|
|
182
|
-
return $foundryPlatformFetch($ctx,
|
|
181
|
+
export function read($ctx, ...args) {
|
|
182
|
+
return $foundryPlatformFetch($ctx, _read, ...args);
|
|
183
183
|
}
|
|
184
184
|
//# sourceMappingURL=File.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listFiles","listFiles","$ctx","args","_uploadFile","uploadFile","_getFileMetadata","getFileMetadata","_deleteFile","deleteFile","_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 _listFiles = [0, \"/v1/datasets/{0}/files\", 2];\n/**\n * Lists Files contained in a Dataset. By default files are listed on the latest view of the default\n * branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most\n * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the\n * branch if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource\n * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This\n * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.\n * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when\n * the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **list files on a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that\n * Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _uploadFile = [1, \"/v1/datasets/{0}/files:upload\", 3, \"*/*\"];\n/**\n * Uploads a File to an existing Dataset.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.\n * If the file already exists only the most recent version will be visible in the updated view.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will\n * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this\n * default specify `transactionType` in addition to `branchId`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\n *\n * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as\n * `transactionRid`. This is useful for uploading multiple files in a single transaction.\n * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files:upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileMetadata = [0, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest\n * ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFileMetadata($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileMetadata, ...args);\n}\nconst _deleteFile = [3, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction\n * will be created and committed on this branch.\n *\n * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier\n * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a\n * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _getFileContent = [0, \"/v1/datasets/{0}/files/{1}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the\n * earliest ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest\n * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior\n * is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function 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,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;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,UAAU,EAAE,GAAGG,IAAI,CAAC;AAC3D;AACA,MAAMC,WAAW,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,EAAE,KAAK,CAAC;AAClE;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,UAAUA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,WAAW,EAAE,GAAGD,IAAI,CAAC;AAC5D;AACA,MAAMG,gBAAgB,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,gBAAgB,EAAE,GAAGH,IAAI,CAAC;AACjE;AACA,MAAMK,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;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,KAAK,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,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","_list","list","$ctx","args","_upload","upload","_get","get","_deleteFile","deleteFile","_read","read"],"sources":["File.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/datasets/{0}/files\", 2];\n/**\n * Lists Files contained in a Dataset. By default files are listed on the latest view of the default\n * branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most\n * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the\n * branch if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource\n * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This\n * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.\n * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when\n * the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **list files on a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that\n * Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _upload = [1, \"/v1/datasets/{0}/files:upload\", 3, \"*/*\"];\n/**\n * Uploads a File to an existing Dataset.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.\n * If the file already exists only the most recent version will be visible in the updated view.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will\n * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this\n * default specify `transactionType` in addition to `branchId`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\n *\n * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as\n * `transactionRid`. This is useful for uploading multiple files in a single transaction.\n * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files:upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest\n * ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _deleteFile = [3, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction\n * will be created and committed on this branch.\n *\n * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier\n * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a\n * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _read = [0, \"/v1/datasets/{0}/files/{1}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the\n * earliest ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest\n * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior\n * is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,EAAE,KAAK,CAAC;AAC9D;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,MAAMA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,OAAO,EAAE,GAAGD,IAAI,CAAC;AACxD;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;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,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;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,KAAK,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,KAAK,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,KAAK,EAAE,GAAGP,IAAI,CAAC;AACtD","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ import type * as _Datasets from "../_components.js";
|
|
|
10
10
|
* Required Scopes: [api:datasets-write]
|
|
11
11
|
* URL: /v1/datasets/{datasetRid}/transactions
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function create($ctx: $Client | $ClientContext, ...args: [
|
|
14
14
|
datasetRid: _Datasets.DatasetRid,
|
|
15
15
|
$body: _Datasets.CreateTransactionRequest,
|
|
16
16
|
$queryParams?: {
|
|
@@ -27,7 +27,7 @@ export declare function createTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
27
27
|
* Required Scopes: [api:datasets-read]
|
|
28
28
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
|
|
29
29
|
*/
|
|
30
|
-
export declare function
|
|
30
|
+
export declare function get($ctx: $Client | $ClientContext, ...args: [
|
|
31
31
|
datasetRid: _Datasets.DatasetRid,
|
|
32
32
|
transactionRid: _Datasets.TransactionRid
|
|
33
33
|
]): Promise<_Datasets.Transaction>;
|
|
@@ -42,7 +42,7 @@ export declare function getTransaction($ctx: $Client | $ClientContext, ...args:
|
|
|
42
42
|
* Required Scopes: [api:datasets-write]
|
|
43
43
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
44
44
|
*/
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function commit($ctx: $Client | $ClientContext, ...args: [
|
|
46
46
|
datasetRid: _Datasets.DatasetRid,
|
|
47
47
|
transactionRid: _Datasets.TransactionRid
|
|
48
48
|
]): Promise<_Datasets.Transaction>;
|
|
@@ -57,7 +57,7 @@ export declare function commitTransaction($ctx: $Client | $ClientContext, ...arg
|
|
|
57
57
|
* Required Scopes: [api:datasets-write]
|
|
58
58
|
* URL: /v1/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
|
]): Promise<_Datasets.Transaction>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAYpD;;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AAS,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, "/v1/datasets/{0}/transactions", 3];
|
|
19
19
|
/**
|
|
20
20
|
* Creates a Transaction on a Branch of a Dataset.
|
|
21
21
|
*
|
|
@@ -26,10 +26,10 @@ const _createTransaction = [1, "/v1/datasets/{0}/transactions", 3];
|
|
|
26
26
|
* Required Scopes: [api:datasets-write]
|
|
27
27
|
* URL: /v1/datasets/{datasetRid}/transactions
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
30
|
-
return $foundryPlatformFetch($ctx,
|
|
29
|
+
export function create($ctx, ...args) {
|
|
30
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const _get = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
33
33
|
/**
|
|
34
34
|
* Gets a Transaction of a Dataset.
|
|
35
35
|
*
|
|
@@ -40,10 +40,10 @@ const _getTransaction = [0, "/v1/datasets/{0}/transactions/{1}"];
|
|
|
40
40
|
* Required Scopes: [api:datasets-read]
|
|
41
41
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
|
|
42
42
|
*/
|
|
43
|
-
export function
|
|
44
|
-
return $foundryPlatformFetch($ctx,
|
|
43
|
+
export function get($ctx, ...args) {
|
|
44
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const _commit = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
47
47
|
/**
|
|
48
48
|
* Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
|
|
49
49
|
* updated to point to the Transaction.
|
|
@@ -55,10 +55,10 @@ const _commitTransaction = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
|
|
|
55
55
|
* Required Scopes: [api:datasets-write]
|
|
56
56
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
|
|
57
57
|
*/
|
|
58
|
-
export function
|
|
59
|
-
return $foundryPlatformFetch($ctx,
|
|
58
|
+
export function commit($ctx, ...args) {
|
|
59
|
+
return $foundryPlatformFetch($ctx, _commit, ...args);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const _abort = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
62
62
|
/**
|
|
63
63
|
* Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
|
|
64
64
|
* not updated.
|
|
@@ -70,7 +70,7 @@ const _abortTransaction = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
|
|
|
70
70
|
* Required Scopes: [api:datasets-write]
|
|
71
71
|
* URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort
|
|
72
72
|
*/
|
|
73
|
-
export function
|
|
74
|
-
return $foundryPlatformFetch($ctx,
|
|
73
|
+
export function abort($ctx, ...args) {
|
|
74
|
+
return $foundryPlatformFetch($ctx, _abort, ...args);
|
|
75
75
|
}
|
|
76
76
|
//# sourceMappingURL=Transaction.js.map
|