@osdk/foundry.datasets 0.0.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.
Files changed (73) hide show
  1. package/build/browser/chunk-4Z465FSF.js +31 -0
  2. package/build/browser/chunk-4Z465FSF.js.map +1 -0
  3. package/build/browser/chunk-5SNWGDKH.js +26 -0
  4. package/build/browser/chunk-5SNWGDKH.js.map +1 -0
  5. package/build/browser/chunk-C6VXNB4U.js +36 -0
  6. package/build/browser/chunk-C6VXNB4U.js.map +1 -0
  7. package/build/browser/chunk-ONCYXSA5.js +31 -0
  8. package/build/browser/chunk-ONCYXSA5.js.map +1 -0
  9. package/build/browser/chunk-PZ5AY32C.js +9 -0
  10. package/build/browser/chunk-PZ5AY32C.js.map +1 -0
  11. package/build/browser/index.js +7 -0
  12. package/build/browser/index.js.map +1 -0
  13. package/build/browser/public/Branch.js +4 -0
  14. package/build/browser/public/Branch.js.map +1 -0
  15. package/build/browser/public/Dataset.js +4 -0
  16. package/build/browser/public/Dataset.js.map +1 -0
  17. package/build/browser/public/File.js +4 -0
  18. package/build/browser/public/File.js.map +1 -0
  19. package/build/browser/public/Transaction.js +4 -0
  20. package/build/browser/public/Transaction.js.map +1 -0
  21. package/build/cjs/chunk-CROYQOHH.cjs +43 -0
  22. package/build/cjs/chunk-CROYQOHH.cjs.map +1 -0
  23. package/build/cjs/chunk-G6X5IGQD.cjs +37 -0
  24. package/build/cjs/chunk-G6X5IGQD.cjs.map +1 -0
  25. package/build/cjs/chunk-N5JACIG2.cjs +31 -0
  26. package/build/cjs/chunk-N5JACIG2.cjs.map +1 -0
  27. package/build/cjs/chunk-Q7SFCCGT.cjs +11 -0
  28. package/build/cjs/chunk-Q7SFCCGT.cjs.map +1 -0
  29. package/build/cjs/chunk-VPWWN4MM.cjs +37 -0
  30. package/build/cjs/chunk-VPWWN4MM.cjs.map +1 -0
  31. package/build/cjs/index.cjs +28 -0
  32. package/build/cjs/index.cjs.map +1 -0
  33. package/build/cjs/public/Branch.cjs +25 -0
  34. package/build/cjs/public/Branch.cjs.map +1 -0
  35. package/build/cjs/public/Dataset.cjs +21 -0
  36. package/build/cjs/public/Dataset.cjs.map +1 -0
  37. package/build/cjs/public/File.cjs +29 -0
  38. package/build/cjs/public/File.cjs.map +1 -0
  39. package/build/cjs/public/Transaction.cjs +25 -0
  40. package/build/cjs/public/Transaction.cjs.map +1 -0
  41. package/build/esm/_components.d.ts +123 -0
  42. package/build/esm/_components.d.ts.map +1 -0
  43. package/build/esm/chunk-4Z465FSF.js +31 -0
  44. package/build/esm/chunk-4Z465FSF.js.map +1 -0
  45. package/build/esm/chunk-5SNWGDKH.js +26 -0
  46. package/build/esm/chunk-5SNWGDKH.js.map +1 -0
  47. package/build/esm/chunk-C6VXNB4U.js +36 -0
  48. package/build/esm/chunk-C6VXNB4U.js.map +1 -0
  49. package/build/esm/chunk-ONCYXSA5.js +31 -0
  50. package/build/esm/chunk-ONCYXSA5.js.map +1 -0
  51. package/build/esm/chunk-PZ5AY32C.js +9 -0
  52. package/build/esm/chunk-PZ5AY32C.js.map +1 -0
  53. package/build/esm/index.d.ts +6 -0
  54. package/build/esm/index.d.ts.map +1 -0
  55. package/build/esm/index.js +7 -0
  56. package/build/esm/index.js.map +1 -0
  57. package/build/esm/public/Branch.d.ts +57 -0
  58. package/build/esm/public/Branch.d.ts.map +1 -0
  59. package/build/esm/public/Branch.js +4 -0
  60. package/build/esm/public/Branch.js.map +1 -0
  61. package/build/esm/public/Dataset.d.ts +48 -0
  62. package/build/esm/public/Dataset.d.ts.map +1 -0
  63. package/build/esm/public/Dataset.js +4 -0
  64. package/build/esm/public/Dataset.js.map +1 -0
  65. package/build/esm/public/File.d.ts +154 -0
  66. package/build/esm/public/File.d.ts.map +1 -0
  67. package/build/esm/public/File.js +4 -0
  68. package/build/esm/public/File.js.map +1 -0
  69. package/build/esm/public/Transaction.d.ts +59 -0
  70. package/build/esm/public/Transaction.d.ts.map +1 -0
  71. package/build/esm/public/Transaction.js +4 -0
  72. package/build/esm/public/Transaction.js.map +1 -0
  73. package/package.json +67 -0
@@ -0,0 +1,123 @@
1
+ import type { FilePath, FolderRid, PageToken } from "@osdk/foundry.core";
2
+ export type LooselyBrandedString<T extends string> = string & {
3
+ __LOOSE_BRAND?: T;
4
+ };
5
+ /**
6
+ * Log Safety: UNSAFE
7
+ */
8
+ export interface Branch {
9
+ branchId: BranchId;
10
+ transactionRid?: TransactionRid;
11
+ }
12
+ /**
13
+ * The identifier (name) of a Branch.
14
+ *
15
+ * Log Safety: UNSAFE
16
+ */
17
+ export type BranchId = LooselyBrandedString<"BranchId">;
18
+ /**
19
+ * Log Safety: UNSAFE
20
+ */
21
+ export interface CreateBranchRequest {
22
+ branchId: BranchId;
23
+ transactionRid?: TransactionRid;
24
+ }
25
+ /**
26
+ * Log Safety: UNSAFE
27
+ */
28
+ export interface CreateDatasetRequest {
29
+ parentFolderRid: FolderRid;
30
+ name: DatasetName;
31
+ }
32
+ /**
33
+ * Log Safety: SAFE
34
+ */
35
+ export interface CreateTransactionRequest {
36
+ transactionType: TransactionType;
37
+ }
38
+ /**
39
+ * Log Safety: UNSAFE
40
+ */
41
+ export interface Dataset {
42
+ rid: DatasetRid;
43
+ name: DatasetName;
44
+ parentFolderRid: FolderRid;
45
+ }
46
+ /**
47
+ * Log Safety: UNSAFE
48
+ */
49
+ export type DatasetName = LooselyBrandedString<"DatasetName">;
50
+ /**
51
+ * The Resource Identifier (RID) of a Dataset.
52
+ *
53
+ * Log Safety: SAFE
54
+ */
55
+ export type DatasetRid = LooselyBrandedString<"DatasetRid">;
56
+ /**
57
+ * Log Safety: UNSAFE
58
+ */
59
+ export interface File {
60
+ path: FilePath;
61
+ transactionRid: TransactionRid;
62
+ sizeBytes?: string;
63
+ updatedTime: FileUpdatedTime;
64
+ }
65
+ /**
66
+ * Log Safety: UNSAFE
67
+ */
68
+ export type FileUpdatedTime = string;
69
+ /**
70
+ * Log Safety: UNSAFE
71
+ */
72
+ export interface ListBranchesResponse {
73
+ data: Array<Branch>;
74
+ nextPageToken?: PageToken;
75
+ }
76
+ /**
77
+ * Log Safety: UNSAFE
78
+ */
79
+ export interface ListFilesResponse {
80
+ data: Array<File>;
81
+ nextPageToken?: PageToken;
82
+ }
83
+ /**
84
+ * Format for tabular dataset export.
85
+ *
86
+ * Log Safety: SAFE
87
+ */
88
+ export type TableExportFormat = "ARROW" | "CSV";
89
+ /**
90
+ * Log Safety: UNSAFE
91
+ */
92
+ export interface Transaction {
93
+ rid: TransactionRid;
94
+ transactionType: TransactionType;
95
+ status: TransactionStatus;
96
+ createdTime: TransactionCreatedTime;
97
+ closedTime?: string;
98
+ }
99
+ /**
100
+ * The timestamp when the transaction was created, in ISO 8601 timestamp format.
101
+ *
102
+ * Log Safety: UNSAFE
103
+ */
104
+ export type TransactionCreatedTime = string;
105
+ /**
106
+ * The Resource Identifier (RID) of a Transaction.
107
+ *
108
+ * Log Safety: SAFE
109
+ */
110
+ export type TransactionRid = LooselyBrandedString<"TransactionRid">;
111
+ /**
112
+ * The status of a Transaction.
113
+ *
114
+ * Log Safety: SAFE
115
+ */
116
+ export type TransactionStatus = "ABORTED" | "COMMITTED" | "OPEN";
117
+ /**
118
+ * The type of a Transaction.
119
+ *
120
+ * Log Safety: SAFE
121
+ */
122
+ export type TransactionType = "APPEND" | "UPDATE" | "SNAPSHOT" | "DELETE";
123
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,SAAS,CAAC;IAC3B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,EAAE,SAAS,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAClB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,cAAc,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,EAAE,sBAAsB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAEpE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { __export } from './chunk-PZ5AY32C.js';
2
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
3
+
4
+ // src/public/Branch.ts
5
+ var Branch_exports = {};
6
+ __export(Branch_exports, {
7
+ createBranch: () => createBranch,
8
+ deleteBranch: () => deleteBranch,
9
+ getBranch: () => getBranch,
10
+ listBranches: () => listBranches
11
+ });
12
+ var _createBranch = [1, "/v2/datasets/{0}/branches", 3];
13
+ function createBranch($ctx, ...args) {
14
+ return foundryPlatformFetch($ctx, _createBranch, ...args);
15
+ }
16
+ var _deleteBranch = [3, "/v2/datasets/{0}/branches/{1}", 2];
17
+ function deleteBranch($ctx, ...args) {
18
+ return foundryPlatformFetch($ctx, _deleteBranch, ...args);
19
+ }
20
+ var _listBranches = [0, "/v2/datasets/{0}/branches", 2];
21
+ function listBranches($ctx, ...args) {
22
+ return foundryPlatformFetch($ctx, _listBranches, ...args);
23
+ }
24
+ var _getBranch = [0, "/v2/datasets/{0}/branches/{1}", 2];
25
+ function getBranch($ctx, ...args) {
26
+ return foundryPlatformFetch($ctx, _getBranch, ...args);
27
+ }
28
+
29
+ export { Branch_exports, createBranch, deleteBranch, getBranch, listBranches };
30
+ //# sourceMappingURL=out.js.map
31
+ //# sourceMappingURL=chunk-4Z465FSF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Branch.ts"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,SAAS,wBAAwB,6BAA6B;AAG9D,IAAM,gBAAgB,CAAC,GAAG,6BAA6B,CAAC;AAQjD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,sBAAsB,MAAM,eAAe,GAAG,IAAI;AAC3D;AACA,IAAM,gBAAgB,CAAC,GAAG,iCAAiC,CAAC;AAQrD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,sBAAsB,MAAM,eAAe,GAAG,IAAI;AAC3D;AACA,IAAM,gBAAgB,CAAC,GAAG,6BAA6B,CAAC;AAQjD,SAAS,aAAa,SAAS,MAAM;AAC1C,SAAO,sBAAsB,MAAM,eAAe,GAAG,IAAI;AAC3D;AACA,IAAM,aAAa,CAAC,GAAG,iCAAiC,CAAC;AAQlD,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,sBAAsB,MAAM,YAAY,GAAG,IAAI;AACxD","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _createBranch = [1, \"/v2/datasets/{0}/branches\", 3];\n\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function createBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createBranch, ...args);\n}\nconst _deleteBranch = [3, \"/v2/datasets/{0}/branches/{1}\", 2];\n\n/**\n * Deletes the Branch with the given BranchId.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/branches/{branchBranchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\nconst _listBranches = [0, \"/v2/datasets/{0}/branches\", 2];\n\n/**\n * Lists the Branches of a Dataset.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches\n */\nexport function listBranches($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listBranches, ...args);\n}\nconst _getBranch = [0, \"/v2/datasets/{0}/branches/{1}\", 2];\n\n/**\n * Get a Branch of a Dataset.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/branches/{branchBranchId}\n */\nexport function getBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getBranch, ...args);\n}"]}
@@ -0,0 +1,26 @@
1
+ import { __export } from './chunk-PZ5AY32C.js';
2
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
3
+
4
+ // src/public/Dataset.ts
5
+ var Dataset_exports = {};
6
+ __export(Dataset_exports, {
7
+ createDataset: () => createDataset,
8
+ getDataset: () => getDataset,
9
+ readTableDataset: () => readTableDataset
10
+ });
11
+ var _createDataset = [1, "/v2/datasets", 3];
12
+ function createDataset($ctx, ...args) {
13
+ return foundryPlatformFetch($ctx, _createDataset, ...args);
14
+ }
15
+ var _getDataset = [0, "/v2/datasets/{0}", 2];
16
+ function getDataset($ctx, ...args) {
17
+ return foundryPlatformFetch($ctx, _getDataset, ...args);
18
+ }
19
+ var _readTableDataset = [0, "/v2/datasets/{0}/readTable", 2, , "application/octet-stream"];
20
+ function readTableDataset($ctx, ...args) {
21
+ return foundryPlatformFetch($ctx, _readTableDataset, ...args);
22
+ }
23
+
24
+ export { Dataset_exports, createDataset, getDataset, readTableDataset };
25
+ //# sourceMappingURL=out.js.map
26
+ //# sourceMappingURL=chunk-5SNWGDKH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Dataset.ts"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,SAAS,wBAAwB,6BAA6B;AAG9D,IAAM,iBAAiB,CAAC,GAAG,gBAAgB,CAAC;AAQrC,SAAS,cAAc,SAAS,MAAM;AAC3C,SAAO,sBAAsB,MAAM,gBAAgB,GAAG,IAAI;AAC5D;AACA,IAAM,cAAc,CAAC,GAAG,oBAAoB,CAAC;AAQtC,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,sBAAsB,MAAM,aAAa,GAAG,IAAI;AACzD;AACA,IAAM,oBAAoB,CAAC,GAAG,8BAA8B,GAAE,EAAE,0BAA0B;AAUnF,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,sBAAsB,MAAM,mBAAmB,GAAG,IAAI;AAC/D","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _createDataset = [1, \"/v2/datasets\", 3];\n\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets\n */\nexport function createDataset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createDataset, ...args);\n}\nconst _getDataset = [0, \"/v2/datasets/{0}\", 2];\n\n/**\n * Get the Dataset\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}\n */\nexport function getDataset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getDataset, ...args);\n}\nconst _readTableDataset = [0, \"/v2/datasets/{0}/readTable\", 2,, \"application/octet-stream\"];\n\n/**\n * Gets the content of a dataset as a table in the specified format.\n *\n * This endpoint currently does not support views (Virtual datasets composed of other datasets).\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/readTable\n */\nexport function readTableDataset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTableDataset, ...args);\n}"]}
@@ -0,0 +1,36 @@
1
+ import { __export } from './chunk-PZ5AY32C.js';
2
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
3
+
4
+ // src/public/File.ts
5
+ var File_exports = {};
6
+ __export(File_exports, {
7
+ deleteFile: () => deleteFile,
8
+ getFile: () => getFile,
9
+ getFileContent: () => getFileContent,
10
+ listFiles: () => listFiles,
11
+ uploadFile: () => uploadFile
12
+ });
13
+ var _deleteFile = [3, "/v2/datasets/{0}/files/{1}", 2];
14
+ function deleteFile($ctx, ...args) {
15
+ return foundryPlatformFetch($ctx, _deleteFile, ...args);
16
+ }
17
+ var _listFiles = [0, "/v2/datasets/{0}/files", 2];
18
+ function listFiles($ctx, ...args) {
19
+ return foundryPlatformFetch($ctx, _listFiles, ...args);
20
+ }
21
+ var _getFile = [0, "/v2/datasets/{0}/files/{1}", 2];
22
+ function getFile($ctx, ...args) {
23
+ return foundryPlatformFetch($ctx, _getFile, ...args);
24
+ }
25
+ var _uploadFile = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/octet-stream"];
26
+ function uploadFile($ctx, ...args) {
27
+ return foundryPlatformFetch($ctx, _uploadFile, ...args);
28
+ }
29
+ var _getFileContent = [0, "/v2/datasets/{0}/files/{1}/content", 2, , "application/octet-stream"];
30
+ function getFileContent($ctx, ...args) {
31
+ return foundryPlatformFetch($ctx, _getFileContent, ...args);
32
+ }
33
+
34
+ export { File_exports, deleteFile, getFile, getFileContent, listFiles, uploadFile };
35
+ //# sourceMappingURL=out.js.map
36
+ //# sourceMappingURL=chunk-C6VXNB4U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/File.ts"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,SAAS,wBAAwB,6BAA6B;AAG9D,IAAM,cAAc,CAAC,GAAG,8BAA8B,CAAC;AAiBhD,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,sBAAsB,MAAM,aAAa,GAAG,IAAI;AACzD;AACA,IAAM,aAAa,CAAC,GAAG,0BAA0B,CAAC;AAyB3C,SAAS,UAAU,SAAS,MAAM;AACvC,SAAO,sBAAsB,MAAM,YAAY,GAAG,IAAI;AACxD;AACA,IAAM,WAAW,CAAC,GAAG,8BAA8B,CAAC;AAuB7C,SAAS,QAAQ,SAAS,MAAM;AACrC,SAAO,sBAAsB,MAAM,UAAU,GAAG,IAAI;AACtD;AACA,IAAM,cAAc,CAAC,GAAG,qCAAqC,GAAG,0BAA0B;AAoBnF,SAAS,WAAW,SAAS,MAAM;AACxC,SAAO,sBAAsB,MAAM,aAAa,GAAG,IAAI;AACzD;AACA,IAAM,kBAAkB,CAAC,GAAG,sCAAsC,GAAE,EAAE,0BAA0B;AAwBzF,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,sBAAsB,MAAM,iBAAiB,GAAG,IAAI;AAC7D","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _deleteFile = [3, \"/v2/datasets/{0}/files/{1}\", 2];\n\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n * #### Advanced Usage\n * See [Datasets Core Concepts](/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 identifier as `branchId`. 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](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _listFiles = [0, \"/v2/datasets/{0}/files\", 2];\n\n/**\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 * #### Advanced Usage\n * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\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 * 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 * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _getFile = [0, \"/v2/datasets/{0}/files/{1}\", 2];\n\n/**\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 * #### Advanced Usage\n * See [Datasets Core Concepts](/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 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 * 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 * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFile, ...args);\n}\nconst _uploadFile = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\n\n/**\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 * #### Advanced Usage\n * See [Datasets Core Concepts](/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 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](/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](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileContent = [0, \"/v2/datasets/{0}/files/{1}/content\", 2,, \"application/octet-stream\"];\n\n/**\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 * #### Advanced Usage\n * See [Datasets Core Concepts](/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 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 * 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 * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileContent, ...args);\n}"]}
@@ -0,0 +1,31 @@
1
+ import { __export } from './chunk-PZ5AY32C.js';
2
+ import { foundryPlatformFetch } from '@osdk/shared.net.platformapi';
3
+
4
+ // src/public/Transaction.ts
5
+ var Transaction_exports = {};
6
+ __export(Transaction_exports, {
7
+ abortTransaction: () => abortTransaction,
8
+ commitTransaction: () => commitTransaction,
9
+ createTransaction: () => createTransaction,
10
+ getTransaction: () => getTransaction
11
+ });
12
+ var _createTransaction = [1, "/v2/datasets/{0}/transactions", 3];
13
+ function createTransaction($ctx, ...args) {
14
+ return foundryPlatformFetch($ctx, _createTransaction, ...args);
15
+ }
16
+ var _getTransaction = [0, "/v2/datasets/{0}/transactions/{1}", 2];
17
+ function getTransaction($ctx, ...args) {
18
+ return foundryPlatformFetch($ctx, _getTransaction, ...args);
19
+ }
20
+ var _commitTransaction = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
21
+ function commitTransaction($ctx, ...args) {
22
+ return foundryPlatformFetch($ctx, _commitTransaction, ...args);
23
+ }
24
+ var _abortTransaction = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
25
+ function abortTransaction($ctx, ...args) {
26
+ return foundryPlatformFetch($ctx, _abortTransaction, ...args);
27
+ }
28
+
29
+ export { Transaction_exports, abortTransaction, commitTransaction, createTransaction, getTransaction };
30
+ //# sourceMappingURL=out.js.map
31
+ //# sourceMappingURL=chunk-ONCYXSA5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/public/Transaction.ts"],"names":[],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,SAAS,wBAAwB,6BAA6B;AAG9D,IAAM,qBAAqB,CAAC,GAAG,iCAAiC,CAAC;AAQ1D,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,sBAAsB,MAAM,oBAAoB,GAAG,IAAI;AAChE;AACA,IAAM,kBAAkB,CAAC,GAAG,qCAAqC,CAAC;AAQ3D,SAAS,eAAe,SAAS,MAAM;AAC5C,SAAO,sBAAsB,MAAM,iBAAiB,GAAG,IAAI;AAC7D;AACA,IAAM,qBAAqB,CAAC,GAAG,4CAA4C,CAAC;AASrE,SAAS,kBAAkB,SAAS,MAAM;AAC/C,SAAO,sBAAsB,MAAM,oBAAoB,GAAG,IAAI;AAChE;AACA,IAAM,oBAAoB,CAAC,GAAG,2CAA2C,CAAC;AASnE,SAAS,iBAAiB,SAAS,MAAM;AAC9C,SAAO,sBAAsB,MAAM,mBAAmB,GAAG,IAAI;AAC/D","sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\n\nconst _createTransaction = [1, \"/v2/datasets/{0}/transactions\", 3];\n\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions\n */\nexport function createTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTransaction, ...args);\n}\nconst _getTransaction = [0, \"/v2/datasets/{0}/transactions/{1}\", 2];\n\n/**\n * Gets a Transaction of a Dataset.\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function getTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getTransaction, ...args);\n}\nconst _commitTransaction = [1, \"/v2/datasets/{0}/transactions/{1}/commit\", 2];\n\n/**\n * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is\n * updated to point to the Transaction.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commitTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commitTransaction, ...args);\n}\nconst _abortTransaction = [1, \"/v2/datasets/{0}/transactions/{1}/abort\", 2];\n\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abortTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abortTransaction, ...args);\n}"]}
@@ -0,0 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export { __export };
8
+ //# sourceMappingURL=out.js.map
9
+ //# sourceMappingURL=chunk-PZ5AY32C.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,6 @@
1
+ export type { Branch, BranchId, CreateBranchRequest, CreateDatasetRequest, CreateTransactionRequest, Dataset, DatasetName, DatasetRid, File, FileUpdatedTime, ListBranchesResponse, ListFilesResponse, TableExportFormat, Transaction, TransactionCreatedTime, TransactionRid, TransactionStatus, TransactionType, } from "./_components.js";
2
+ export * as Branches from "./public/Branch.js";
3
+ export * as Datasets from "./public/Dataset.js";
4
+ export * as Files from "./public/File.js";
5
+ export * as Transactions from "./public/Transaction.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACP,WAAW,EACX,UAAU,EACV,IAAI,EACJ,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { Branch_exports as Branches } from './chunk-4Z465FSF.js';
2
+ export { Dataset_exports as Datasets } from './chunk-5SNWGDKH.js';
3
+ export { File_exports as Files } from './chunk-C6VXNB4U.js';
4
+ export { Transaction_exports as Transactions } from './chunk-ONCYXSA5.js';
5
+ import './chunk-PZ5AY32C.js';
6
+ //# sourceMappingURL=out.js.map
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ import type { PageSize, PageToken, PreviewMode } from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type { Branch, BranchId, CreateBranchRequest, DatasetRid, ListBranchesResponse } from "../_components.js";
4
+ /**
5
+ * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
6
+ *
7
+ * Required Scopes: [api:datasets-write]
8
+ * URL: /v2/datasets/{datasetRid}/branches
9
+ */
10
+ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [
11
+ datasetRid: DatasetRid,
12
+ $body: CreateBranchRequest,
13
+ $queryParams?: {
14
+ preview?: PreviewMode | undefined;
15
+ }
16
+ ]): Promise<Branch>;
17
+ /**
18
+ * Deletes the Branch with the given BranchId.
19
+ *
20
+ * Required Scopes: [api:datasets-write]
21
+ * URL: /v2/datasets/{datasetRid}/branches/{branchBranchId}
22
+ */
23
+ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [
24
+ datasetRid: DatasetRid,
25
+ branchBranchId: BranchId,
26
+ $queryParams?: {
27
+ preview?: PreviewMode | undefined;
28
+ }
29
+ ]): Promise<void>;
30
+ /**
31
+ * Lists the Branches of a Dataset.
32
+ *
33
+ * Required Scopes: [api:datasets-read]
34
+ * URL: /v2/datasets/{datasetRid}/branches
35
+ */
36
+ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
37
+ datasetRid: DatasetRid,
38
+ $queryParams?: {
39
+ pageSize?: PageSize | undefined;
40
+ pageToken?: PageToken | undefined;
41
+ preview?: PreviewMode | undefined;
42
+ }
43
+ ]): Promise<ListBranchesResponse>;
44
+ /**
45
+ * Get a Branch of a Dataset.
46
+ *
47
+ * Required Scopes: [api:datasets-read]
48
+ * URL: /v2/datasets/{datasetRid}/branches/{branchBranchId}
49
+ */
50
+ export declare function getBranch($ctx: $Client | $ClientContext, ...args: [
51
+ datasetRid: DatasetRid,
52
+ branchBranchId: BranchId,
53
+ $queryParams?: {
54
+ preview?: PreviewMode | undefined;
55
+ }
56
+ ]): Promise<Branch>;
57
+ //# sourceMappingURL=Branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAY3B;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IACtB,KAAK,EAAE,mBAAmB;IAC1B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,MAAM,CAAC,CAEjB;AAUD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IACtB,cAAc,EAAE,QAAQ;IAExB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAaD;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IAEtB,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QAChC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;QAClC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;KACnC;CACF,GACA,OAAO,CAAC,oBAAoB,CAAC,CAE/B;AAUD;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IACtB,cAAc,EAAE,QAAQ;IAExB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,MAAM,CAAC,CAEjB"}
@@ -0,0 +1,4 @@
1
+ export { createBranch, deleteBranch, getBranch, listBranches } from '../chunk-4Z465FSF.js';
2
+ import '../chunk-PZ5AY32C.js';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=Branch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import type { PreviewMode } from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type { BranchId, CreateDatasetRequest, Dataset, DatasetRid, TableExportFormat, TransactionRid } from "../_components.js";
4
+ /**
5
+ * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.
6
+ *
7
+ * Required Scopes: [api:datasets-write]
8
+ * URL: /v2/datasets
9
+ */
10
+ export declare function createDataset($ctx: $Client | $ClientContext, ...args: [
11
+ $body: CreateDatasetRequest,
12
+ $queryParams?: {
13
+ preview?: PreviewMode | undefined;
14
+ }
15
+ ]): Promise<Dataset>;
16
+ /**
17
+ * Get the Dataset
18
+ *
19
+ * Required Scopes: [api:datasets-read]
20
+ * URL: /v2/datasets/{datasetRid}
21
+ */
22
+ export declare function getDataset($ctx: $Client | $ClientContext, ...args: [
23
+ datasetRid: DatasetRid,
24
+ $queryParams?: {
25
+ preview?: PreviewMode | undefined;
26
+ }
27
+ ]): Promise<Dataset>;
28
+ /**
29
+ * Gets the content of a dataset as a table in the specified format.
30
+ *
31
+ * This endpoint currently does not support views (Virtual datasets composed of other datasets).
32
+ *
33
+ * Required Scopes: [api:datasets-read]
34
+ * URL: /v2/datasets/{datasetRid}/readTable
35
+ */
36
+ export declare function readTableDataset($ctx: $Client | $ClientContext, ...args: [
37
+ datasetRid: DatasetRid,
38
+ $queryParams: {
39
+ branchId?: BranchId | undefined;
40
+ startTransactionRid?: TransactionRid | undefined;
41
+ endTransactionRid?: TransactionRid | undefined;
42
+ format: TableExportFormat;
43
+ columns: Array<string>;
44
+ rowLimit?: number | undefined;
45
+ preview?: PreviewMode | undefined;
46
+ }
47
+ ]): Promise<Blob>;
48
+ //# sourceMappingURL=Dataset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAW3B;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,oBAAoB;IAC3B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,OAAO,CAAC,CAElB;AASD;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IAEtB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;KAAE;CACrD,GACA,OAAO,CAAC,OAAO,CAAC,CAElB;AAiBD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IAEtB,YAAY,EAAE;QACZ,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QAChC,mBAAmB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;QACjD,iBAAiB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;QAC/C,MAAM,EAAE,iBAAiB,CAAC;QAC1B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;KACnC;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
@@ -0,0 +1,4 @@
1
+ export { createDataset, getDataset, readTableDataset } from '../chunk-5SNWGDKH.js';
2
+ import '../chunk-PZ5AY32C.js';
3
+ //# sourceMappingURL=out.js.map
4
+ //# sourceMappingURL=Dataset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,154 @@
1
+ import type { FilePath, PageSize, PageToken, PreviewMode } from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type { BranchId, DatasetRid, File, ListFilesResponse, TransactionRid, TransactionType } from "../_components.js";
4
+ /**
5
+ * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default
6
+ * branch - `master` for most enrollments. The file will still be visible on historical views.
7
+ * #### Advanced Usage
8
+ * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
9
+ * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction
10
+ * will be created and committed on this branch.
11
+ * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier
12
+ * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a
13
+ * single transaction. See [createTransaction](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to
14
+ * open a transaction.
15
+ *
16
+ * Required Scopes: [api:datasets-write]
17
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}
18
+ */
19
+ export declare function deleteFile($ctx: $Client | $ClientContext, ...args: [
20
+ datasetRid: DatasetRid,
21
+ filePath: FilePath,
22
+ $queryParams?: {
23
+ branchId?: BranchId | undefined;
24
+ transactionRid?: TransactionRid | undefined;
25
+ preview?: PreviewMode | undefined;
26
+ }
27
+ ]): Promise<void>;
28
+ /**
29
+ * Lists Files contained in a Dataset. By default files are listed on the latest view of the default
30
+ * branch - `master` for most enrollments.
31
+ * #### Advanced Usage
32
+ * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
33
+ * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most
34
+ * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the
35
+ * branch if there are no snapshot transactions.
36
+ * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier
37
+ * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot
38
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
39
+ * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource
40
+ * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This
41
+ * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.
42
+ * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when
43
+ * the start and end transactions do not belong to the same root-to-leaf path.
44
+ * To **list files on a specific transaction** specify the Transaction's resource identifier as both the
45
+ * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that
46
+ * Transaction.
47
+ *
48
+ * Required Scopes: [api:datasets-read]
49
+ * URL: /v2/datasets/{datasetRid}/files
50
+ */
51
+ export declare function listFiles($ctx: $Client | $ClientContext, ...args: [
52
+ datasetRid: DatasetRid,
53
+ $queryParams?: {
54
+ branchId?: BranchId | undefined;
55
+ startTransactionRid?: TransactionRid | undefined;
56
+ endTransactionRid?: TransactionRid | undefined;
57
+ pageSize?: PageSize | undefined;
58
+ pageToken?: PageToken | undefined;
59
+ preview?: PreviewMode | undefined;
60
+ }
61
+ ]): Promise<ListFilesResponse>;
62
+ /**
63
+ * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
64
+ * view of the default branch - `master` for most enrollments.
65
+ * #### Advanced Usage
66
+ * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
67
+ * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will
68
+ * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest
69
+ * ancestor transaction of the branch if there are no snapshot transactions.
70
+ * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier
71
+ * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot
72
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
73
+ * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's
74
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
75
+ * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the
76
+ * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.
77
+ * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the
78
+ * `startTransactionRid` and `endTransactionRid`.
79
+ *
80
+ * Required Scopes: [api:datasets-read]
81
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}
82
+ */
83
+ export declare function getFile($ctx: $Client | $ClientContext, ...args: [
84
+ datasetRid: DatasetRid,
85
+ filePath: FilePath,
86
+ $queryParams?: {
87
+ branchId?: BranchId | undefined;
88
+ startTransactionRid?: TransactionRid | undefined;
89
+ endTransactionRid?: TransactionRid | undefined;
90
+ preview?: PreviewMode | undefined;
91
+ }
92
+ ]): Promise<File>;
93
+ /**
94
+ * Uploads a File to an existing Dataset.
95
+ * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
96
+ * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.
97
+ * If the file already exists only the most recent version will be visible in the updated view.
98
+ * #### Advanced Usage
99
+ * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
100
+ * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will
101
+ * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this
102
+ * default specify `transactionType` in addition to `branchId`.
103
+ * See [createBranch](/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.
104
+ * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as
105
+ * `transactionRid`. This is useful for uploading multiple files in a single transaction.
106
+ * See [createTransaction](/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.
107
+ *
108
+ * Required Scopes: [api:datasets-write]
109
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
110
+ */
111
+ export declare function uploadFile($ctx: $Client | $ClientContext, ...args: [
112
+ datasetRid: DatasetRid,
113
+ filePath: FilePath,
114
+ $body: Blob,
115
+ $queryParams?: {
116
+ branchId?: BranchId | undefined;
117
+ transactionType?: TransactionType | undefined;
118
+ transactionRid?: TransactionRid | undefined;
119
+ preview?: PreviewMode | undefined;
120
+ }
121
+ ]): Promise<File>;
122
+ /**
123
+ * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
124
+ * view of the default branch - `master` for most enrollments.
125
+ * #### Advanced Usage
126
+ * See [Datasets Core Concepts](/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
127
+ * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will
128
+ * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the
129
+ * earliest ancestor transaction of the branch if there are no snapshot transactions.
130
+ * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier
131
+ * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest
132
+ * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.
133
+ * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's
134
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
135
+ * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the
136
+ * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior
137
+ * is undefined when the start and end transactions do not belong to the same root-to-leaf path.
138
+ * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the
139
+ * `startTransactionRid` and `endTransactionRid`.
140
+ *
141
+ * Required Scopes: [api:datasets-read]
142
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}/content
143
+ */
144
+ export declare function getFileContent($ctx: $Client | $ClientContext, ...args: [
145
+ datasetRid: DatasetRid,
146
+ filePath: FilePath,
147
+ $queryParams?: {
148
+ branchId?: BranchId | undefined;
149
+ startTransactionRid?: TransactionRid | undefined;
150
+ endTransactionRid?: TransactionRid | undefined;
151
+ preview?: PreviewMode | undefined;
152
+ }
153
+ ]): Promise<Blob>;
154
+ //# sourceMappingURL=File.d.ts.map