@osdk/foundry.datasets 2.1.0-beta.4 → 2.1.0-beta.6

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 (74) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/build/browser/_components.d.ts +124 -0
  3. package/build/browser/_components.d.ts.map +1 -0
  4. package/build/browser/_components.js +17 -0
  5. package/build/browser/_components.js.map +1 -0
  6. package/build/browser/_errors.d.ts +437 -0
  7. package/build/browser/_errors.d.ts.map +1 -0
  8. package/build/browser/_errors.js +17 -0
  9. package/build/browser/_errors.js.map +1 -0
  10. package/build/browser/index.d.ts +7 -0
  11. package/build/browser/index.d.ts.map +1 -0
  12. package/build/browser/index.js +19 -6
  13. package/build/browser/index.js.map +1 -1
  14. package/build/browser/public/Branch.d.ts +65 -0
  15. package/build/browser/public/Branch.d.ts.map +1 -0
  16. package/build/browser/public/Branch.js +65 -3
  17. package/build/browser/public/Branch.js.map +1 -1
  18. package/build/browser/public/Dataset.d.ts +54 -0
  19. package/build/browser/public/Dataset.d.ts.map +1 -0
  20. package/build/browser/public/Dataset.js +55 -3
  21. package/build/browser/public/Dataset.js.map +1 -1
  22. package/build/browser/public/File.d.ts +174 -0
  23. package/build/browser/public/File.d.ts.map +1 -0
  24. package/build/browser/public/File.js +156 -3
  25. package/build/browser/public/File.js.map +1 -1
  26. package/build/browser/public/Transaction.d.ts +67 -0
  27. package/build/browser/public/Transaction.d.ts.map +1 -0
  28. package/build/browser/public/Transaction.js +67 -3
  29. package/build/browser/public/Transaction.js.map +1 -1
  30. package/build/esm/_components.d.ts +7 -7
  31. package/build/esm/_components.d.ts.map +1 -1
  32. package/build/esm/_components.js +17 -0
  33. package/build/esm/_components.js.map +1 -0
  34. package/build/esm/_errors.js +17 -0
  35. package/build/esm/_errors.js.map +1 -0
  36. package/build/esm/index.js +19 -6
  37. package/build/esm/index.js.map +1 -1
  38. package/build/esm/public/Branch.d.ts +18 -18
  39. package/build/esm/public/Branch.d.ts.map +1 -1
  40. package/build/esm/public/Branch.js +65 -3
  41. package/build/esm/public/Branch.js.map +1 -1
  42. package/build/esm/public/Dataset.d.ts +14 -14
  43. package/build/esm/public/Dataset.d.ts.map +1 -1
  44. package/build/esm/public/Dataset.js +55 -3
  45. package/build/esm/public/Dataset.js.map +1 -1
  46. package/build/esm/public/File.d.ts +35 -35
  47. package/build/esm/public/File.d.ts.map +1 -1
  48. package/build/esm/public/File.js +156 -3
  49. package/build/esm/public/File.js.map +1 -1
  50. package/build/esm/public/Transaction.d.ts +19 -19
  51. package/build/esm/public/Transaction.d.ts.map +1 -1
  52. package/build/esm/public/Transaction.js +67 -3
  53. package/build/esm/public/Transaction.js.map +1 -1
  54. package/package.json +9 -10
  55. package/build/browser/chunk-4BZZXTWY.js +0 -31
  56. package/build/browser/chunk-4BZZXTWY.js.map +0 -1
  57. package/build/browser/chunk-MIE5PS2U.js +0 -36
  58. package/build/browser/chunk-MIE5PS2U.js.map +0 -1
  59. package/build/browser/chunk-NNUCPXIM.js +0 -31
  60. package/build/browser/chunk-NNUCPXIM.js.map +0 -1
  61. package/build/browser/chunk-NZHTY7IJ.js +0 -26
  62. package/build/browser/chunk-NZHTY7IJ.js.map +0 -1
  63. package/build/browser/chunk-PZ5AY32C.js +0 -9
  64. package/build/browser/chunk-PZ5AY32C.js.map +0 -1
  65. package/build/esm/chunk-4BZZXTWY.js +0 -31
  66. package/build/esm/chunk-4BZZXTWY.js.map +0 -1
  67. package/build/esm/chunk-MIE5PS2U.js +0 -36
  68. package/build/esm/chunk-MIE5PS2U.js.map +0 -1
  69. package/build/esm/chunk-NNUCPXIM.js +0 -31
  70. package/build/esm/chunk-NNUCPXIM.js.map +0 -1
  71. package/build/esm/chunk-NZHTY7IJ.js +0 -26
  72. package/build/esm/chunk-NZHTY7IJ.js.map +0 -1
  73. package/build/esm/chunk-PZ5AY32C.js +0 -9
  74. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
@@ -1,4 +1,157 @@
1
- export { deleteFile, getFile, getFileContent, listFiles, uploadFile } from '../chunk-MIE5PS2U.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=File.js.map
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _deleteFile = [3, "/v2/datasets/{0}/files/{1}", 2];
19
+ /**
20
+ * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default
21
+ * branch - `master` for most enrollments. The file will still be visible on historical views.
22
+ *
23
+ * #### Advanced Usage
24
+ *
25
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
26
+ * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction
27
+ * will be created and committed on this branch.
28
+ * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier
29
+ * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a
30
+ * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to
31
+ * open a transaction.
32
+ *
33
+ * @beta
34
+ *
35
+ * Required Scopes: [api:datasets-write]
36
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}
37
+ */
38
+ export function deleteFile($ctx, ...args) {
39
+ return $foundryPlatformFetch($ctx, _deleteFile, ...args);
40
+ }
41
+ const _listFiles = [0, "/v2/datasets/{0}/files", 2];
42
+ /**
43
+ * Lists Files contained in a Dataset. By default files are listed on the latest view of the default
44
+ * branch - `master` for most enrollments.
45
+ *
46
+ * #### Advanced Usage
47
+ *
48
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
49
+ * To **list files on a specific Branch** specify the Branch's name as `branchName`. This will include the most
50
+ * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the
51
+ * branch if there are no snapshot transactions.
52
+ * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier
53
+ * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot
54
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
55
+ * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource
56
+ * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This
57
+ * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.
58
+ * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when
59
+ * the start and end transactions do not belong to the same root-to-leaf path.
60
+ * To **list files on a specific transaction** specify the Transaction's resource identifier as both the
61
+ * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that
62
+ * Transaction.
63
+ *
64
+ * @beta
65
+ *
66
+ * Required Scopes: [api:datasets-read]
67
+ * URL: /v2/datasets/{datasetRid}/files
68
+ */
69
+ export function listFiles($ctx, ...args) {
70
+ return $foundryPlatformFetch($ctx, _listFiles, ...args);
71
+ }
72
+ const _getFile = [0, "/v2/datasets/{0}/files/{1}", 2];
73
+ /**
74
+ * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
75
+ * view of the default branch - `master` for most enrollments.
76
+ *
77
+ * #### Advanced Usage
78
+ *
79
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
80
+ * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. This will
81
+ * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest
82
+ * ancestor transaction of the branch if there are no snapshot transactions.
83
+ * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier
84
+ * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot
85
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
86
+ * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's
87
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
88
+ * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the
89
+ * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.
90
+ * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the
91
+ * `startTransactionRid` and `endTransactionRid`.
92
+ *
93
+ * @beta
94
+ *
95
+ * Required Scopes: [api:datasets-read]
96
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}
97
+ */
98
+ export function getFile($ctx, ...args) {
99
+ return $foundryPlatformFetch($ctx, _getFile, ...args);
100
+ }
101
+ const _uploadFile = [1, "/v2/datasets/{0}/files/{1}/upload", 3, "application/octet-stream"];
102
+ /**
103
+ * Uploads a File to an existing Dataset.
104
+ * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
105
+ * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.
106
+ * If the file already exists only the most recent version will be visible in the updated view.
107
+ *
108
+ * #### Advanced Usage
109
+ *
110
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
111
+ * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. A new transaction will
112
+ * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this
113
+ * default specify `transactionType` in addition to `branchName`.
114
+ * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.
115
+ * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as
116
+ * `transactionRid`. This is useful for uploading multiple files in a single transaction.
117
+ * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.
118
+ *
119
+ * @beta
120
+ *
121
+ * Required Scopes: [api:datasets-write]
122
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload
123
+ */
124
+ export function uploadFile($ctx, ...args) {
125
+ return $foundryPlatformFetch($ctx, _uploadFile, ...args);
126
+ }
127
+ const _getFileContent = [0, "/v2/datasets/{0}/files/{1}/content", 2,, "application/octet-stream"];
128
+ /**
129
+ * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
130
+ * view of the default branch - `master` for most enrollments.
131
+ *
132
+ * #### Advanced Usage
133
+ *
134
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
135
+ * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. This will
136
+ * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the
137
+ * earliest ancestor transaction of the branch if there are no snapshot transactions.
138
+ * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier
139
+ * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest
140
+ * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.
141
+ * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's
142
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
143
+ * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the
144
+ * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior
145
+ * is undefined when the start and end transactions do not belong to the same root-to-leaf path.
146
+ * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the
147
+ * `startTransactionRid` and `endTransactionRid`.
148
+ *
149
+ * @beta
150
+ *
151
+ * Required Scopes: [api:datasets-read]
152
+ * URL: /v2/datasets/{datasetRid}/files/{filePath}/content
153
+ */
154
+ export function getFileContent($ctx, ...args) {
155
+ return $foundryPlatformFetch($ctx, _getFileContent, ...args);
156
+ }
4
157
  //# sourceMappingURL=File.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"File.js"}
1
+ {"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFile","deleteFile","$ctx","args","_listFiles","listFiles","_getFile","getFile","_uploadFile","uploadFile","_getFileContent","getFileContent"],"sources":["File.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _deleteFile = [3, \"/v2/datasets/{0}/files/{1}\", 2];\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n * To **delete a File from a specific Branch** specify the Branch's name as `branchName`. A new delete Transaction\n * will be created and committed on this branch.\n * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier\n * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a\n * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _listFiles = [0, \"/v2/datasets/{0}/files\", 2];\n/**\n * Lists Files contained in a Dataset. By default files are listed on the latest view of the default\n * branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n * To **list files on a specific Branch** specify the Branch's name as `branchName`. This will include the most\n * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the\n * branch if there are no snapshot transactions.\n * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource\n * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This\n * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.\n * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when\n * the start and end transactions do not belong to the same root-to-leaf path.\n * To **list files on a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that\n * Transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files\n */\nexport function listFiles($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listFiles, ...args);\n}\nconst _getFile = [0, \"/v2/datasets/{0}/files/{1}\", 2];\n/**\n * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n * To **get a file's metadata from a specific Branch** specify the Branch's name as `branchName`. This will\n * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest\n * ancestor transaction of the branch if there are no snapshot transactions.\n * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}\n */\nexport function getFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFile, ...args);\n}\nconst _uploadFile = [1, \"/v2/datasets/{0}/files/{1}/upload\", 3, \"application/octet-stream\"];\n/**\n * Uploads a File to an existing Dataset.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.\n * If the file already exists only the most recent version will be visible in the updated view.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n * To **upload a file to a specific Branch** specify the Branch's name as `branchName`. A new transaction will\n * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this\n * default specify `transactionType` in addition to `branchName`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\n * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as\n * `transactionRid`. This is useful for uploading multiple files in a single transaction.\n * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/upload\n */\nexport function uploadFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _uploadFile, ...args);\n}\nconst _getFileContent = [0, \"/v2/datasets/{0}/files/{1}/content\", 2, , \"application/octet-stream\"];\n/**\n * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n * To **get a file's content from a specific Branch** specify the Branch's name as `branchName`. This will\n * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the\n * earliest ancestor transaction of the branch if there are no snapshot transactions.\n * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest\n * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior\n * is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function getFileContent($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getFileContent, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,WAAW,EAAE,GAAGG,IAAI,CAAC;AAC5D;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,UAAU,EAAE,GAAGD,IAAI,CAAC;AAC3D;AACA,MAAMG,QAAQ,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,QAAQ,EAAE,GAAGH,IAAI,CAAC;AACzD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,0BAA0B,CAAC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D;AACA,MAAMO,eAAe,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,0BAA0B,CAAC;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,eAAe,EAAE,GAAGP,IAAI,CAAC;AAChE","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type * as _Datasets from "../_components.js";
4
+ /**
5
+ * Creates a Transaction on a Branch of a Dataset.
6
+ *
7
+ * @beta
8
+ *
9
+ * Required Scopes: [api:datasets-write]
10
+ * URL: /v2/datasets/{datasetRid}/transactions
11
+ */
12
+ export declare function createTransaction($ctx: $Client | $ClientContext, ...args: [
13
+ datasetRid: _Datasets.DatasetRid,
14
+ $body: _Datasets.CreateTransactionRequest,
15
+ $queryParams?: {
16
+ branchName?: _Datasets.BranchName | undefined;
17
+ preview?: _Core.PreviewMode | undefined;
18
+ }
19
+ ]): Promise<_Datasets.Transaction>;
20
+ /**
21
+ * Gets a Transaction of a Dataset.
22
+ *
23
+ * @beta
24
+ *
25
+ * Required Scopes: [api:datasets-read]
26
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
27
+ */
28
+ export declare function getTransaction($ctx: $Client | $ClientContext, ...args: [
29
+ datasetRid: _Datasets.DatasetRid,
30
+ transactionRid: _Datasets.TransactionRid,
31
+ $queryParams?: {
32
+ preview?: _Core.PreviewMode | undefined;
33
+ }
34
+ ]): Promise<_Datasets.Transaction>;
35
+ /**
36
+ * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
37
+ * updated to point to the Transaction.
38
+ *
39
+ * @beta
40
+ *
41
+ * Required Scopes: [api:datasets-write]
42
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
43
+ */
44
+ export declare function commitTransaction($ctx: $Client | $ClientContext, ...args: [
45
+ datasetRid: _Datasets.DatasetRid,
46
+ transactionRid: _Datasets.TransactionRid,
47
+ $queryParams?: {
48
+ preview?: _Core.PreviewMode | undefined;
49
+ }
50
+ ]): Promise<_Datasets.Transaction>;
51
+ /**
52
+ * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
53
+ * not updated.
54
+ *
55
+ * @beta
56
+ *
57
+ * Required Scopes: [api:datasets-write]
58
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
59
+ */
60
+ export declare function abortTransaction($ctx: $Client | $ClientContext, ...args: [
61
+ datasetRid: _Datasets.DatasetRid,
62
+ transactionRid: _Datasets.TransactionRid,
63
+ $queryParams?: {
64
+ preview?: _Core.PreviewMode | undefined;
65
+ }
66
+ ]): Promise<_Datasets.Transaction>;
67
+ //# sourceMappingURL=Transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/public/Transaction.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAepD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,KAAK,EAAE,SAAS,CAAC,wBAAwB;IACzC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;QAC9C,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AAUD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AAUD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC;AAUD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,cAAc,EAAE,SAAS,CAAC,cAAc;IAExC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,CAEhC"}
@@ -1,4 +1,68 @@
1
- export { abortTransaction, commitTransaction, createTransaction, getTransaction } from '../chunk-4BZZXTWY.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=Transaction.js.map
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _createTransaction = [1, "/v2/datasets/{0}/transactions", 3];
19
+ /**
20
+ * Creates a Transaction on a Branch of a Dataset.
21
+ *
22
+ * @beta
23
+ *
24
+ * Required Scopes: [api:datasets-write]
25
+ * URL: /v2/datasets/{datasetRid}/transactions
26
+ */
27
+ export function createTransaction($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _createTransaction, ...args);
29
+ }
30
+ const _getTransaction = [0, "/v2/datasets/{0}/transactions/{1}", 2];
31
+ /**
32
+ * Gets a Transaction of a Dataset.
33
+ *
34
+ * @beta
35
+ *
36
+ * Required Scopes: [api:datasets-read]
37
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}
38
+ */
39
+ export function getTransaction($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _getTransaction, ...args);
41
+ }
42
+ const _commitTransaction = [1, "/v2/datasets/{0}/transactions/{1}/commit", 2];
43
+ /**
44
+ * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
45
+ * updated to point to the Transaction.
46
+ *
47
+ * @beta
48
+ *
49
+ * Required Scopes: [api:datasets-write]
50
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit
51
+ */
52
+ export function commitTransaction($ctx, ...args) {
53
+ return $foundryPlatformFetch($ctx, _commitTransaction, ...args);
54
+ }
55
+ const _abortTransaction = [1, "/v2/datasets/{0}/transactions/{1}/abort", 2];
56
+ /**
57
+ * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
58
+ * not updated.
59
+ *
60
+ * @beta
61
+ *
62
+ * Required Scopes: [api:datasets-write]
63
+ * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort
64
+ */
65
+ export function abortTransaction($ctx, ...args) {
66
+ return $foundryPlatformFetch($ctx, _abortTransaction, ...args);
67
+ }
4
68
  //# sourceMappingURL=Transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Transaction.js"}
1
+ {"version":3,"file":"Transaction.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_createTransaction","createTransaction","$ctx","args","_getTransaction","getTransaction","_commitTransaction","commitTransaction","_abortTransaction","abortTransaction"],"sources":["Transaction.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _createTransaction = [1, \"/v2/datasets/{0}/transactions\", 3];\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions\n */\nexport function createTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createTransaction, ...args);\n}\nconst _getTransaction = [0, \"/v2/datasets/{0}/transactions/{1}\", 2];\n/**\n * Gets a Transaction of a Dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function getTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getTransaction, ...args);\n}\nconst _commitTransaction = [1, \"/v2/datasets/{0}/transactions/{1}/commit\", 2];\n/**\n * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is\n * updated to point to the Transaction.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commitTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commitTransaction, ...args);\n}\nconst _abortTransaction = [1, \"/v2/datasets/{0}/transactions/{1}/abort\", 2];\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abortTransaction($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abortTransaction, ...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,kBAAkB,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,kBAAkB,EAAE,GAAGG,IAAI,CAAC;AACnE;AACA,MAAMC,eAAe,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,eAAe,EAAE,GAAGD,IAAI,CAAC;AAChE;AACA,MAAMG,kBAAkB,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,kBAAkB,EAAE,GAAGH,IAAI,CAAC;AACnE;AACA,MAAMK,iBAAiB,GAAG,CAAC,CAAC,EAAE,yCAAyC,EAAE,CAAC,CAAC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,iBAAiB,EAAE,GAAGL,IAAI,CAAC;AAClE","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import type { FilePath, PageToken } from "@osdk/foundry.core";
2
- import type { FolderRid } from "@osdk/foundry.filesystem";
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Filesystem from "@osdk/foundry.filesystem";
3
3
  export type LooselyBrandedString<T extends string> = string & {
4
4
  __LOOSE_BRAND?: T;
5
5
  };
@@ -27,7 +27,7 @@ export interface CreateBranchRequest {
27
27
  * Log Safety: UNSAFE
28
28
  */
29
29
  export interface CreateDatasetRequest {
30
- parentFolderRid: FolderRid;
30
+ parentFolderRid: _Filesystem.FolderRid;
31
31
  name: DatasetName;
32
32
  }
33
33
  /**
@@ -42,7 +42,7 @@ export interface CreateTransactionRequest {
42
42
  export interface Dataset {
43
43
  rid: DatasetRid;
44
44
  name: DatasetName;
45
- parentFolderRid: FolderRid;
45
+ parentFolderRid: _Filesystem.FolderRid;
46
46
  }
47
47
  /**
48
48
  * Log Safety: UNSAFE
@@ -58,7 +58,7 @@ export type DatasetRid = LooselyBrandedString<"DatasetRid">;
58
58
  * Log Safety: UNSAFE
59
59
  */
60
60
  export interface File {
61
- path: FilePath;
61
+ path: _Core.FilePath;
62
62
  transactionRid: TransactionRid;
63
63
  sizeBytes?: string;
64
64
  updatedTime: FileUpdatedTime;
@@ -72,14 +72,14 @@ export type FileUpdatedTime = string;
72
72
  */
73
73
  export interface ListBranchesResponse {
74
74
  data: Array<Branch>;
75
- nextPageToken?: PageToken;
75
+ nextPageToken?: _Core.PageToken;
76
76
  }
77
77
  /**
78
78
  * Log Safety: UNSAFE
79
79
  */
80
80
  export interface ListFilesResponse {
81
81
  data: Array<File>;
82
- nextPageToken?: PageToken;
82
+ nextPageToken?: _Core.PageToken;
83
83
  }
84
84
  /**
85
85
  * Format for tabular dataset export.
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D,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,IAAI,EAAE,UAAU,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;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;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ErC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;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,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.js","names":[],"sources":["_components.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.js","names":[],"sources":["_errors.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,7 +1,20 @@
1
- export { Branch_exports as Branches } from './chunk-NNUCPXIM.js';
2
- export { Dataset_exports as Datasets } from './chunk-NZHTY7IJ.js';
3
- export { File_exports as Files } from './chunk-MIE5PS2U.js';
4
- export { Transaction_exports as Transactions } from './chunk-4BZZXTWY.js';
5
- import './chunk-PZ5AY32C.js';
6
- //# sourceMappingURL=index.js.map
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * as Branches from "./public/Branch.js";
17
+ export * as Datasets from "./public/Dataset.js";
18
+ export * as Files from "./public/File.js";
19
+ export * as Transactions from "./public/Transaction.js";
7
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["Branches","Datasets","Files","Transactions"],"sources":["index.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 */\nexport * as Branches from \"./public/Branch.js\";\nexport * as Datasets from \"./public/Dataset.js\";\nexport * as Files from \"./public/File.js\";\nexport * as Transactions from \"./public/Transaction.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,QAAQ,MAAM,oBAAoB;AAC9C,OAAO,KAAKC,QAAQ,MAAM,qBAAqB;AAC/C,OAAO,KAAKC,KAAK,MAAM,kBAAkB;AACzC,OAAO,KAAKC,YAAY,MAAM,yBAAyB","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import type { PageSize, PageToken, PreviewMode } from "@osdk/foundry.core";
1
+ import type * as _Core from "@osdk/foundry.core";
2
2
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
- import type { Branch, BranchName, CreateBranchRequest, DatasetRid, ListBranchesResponse } from "../_components.js";
3
+ import type * as _Datasets from "../_components.js";
4
4
  /**
5
5
  * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
6
6
  *
@@ -10,12 +10,12 @@ import type { Branch, BranchName, CreateBranchRequest, DatasetRid, ListBranchesR
10
10
  * URL: /v2/datasets/{datasetRid}/branches
11
11
  */
12
12
  export declare function createBranch($ctx: $Client | $ClientContext, ...args: [
13
- datasetRid: DatasetRid,
14
- $body: CreateBranchRequest,
13
+ datasetRid: _Datasets.DatasetRid,
14
+ $body: _Datasets.CreateBranchRequest,
15
15
  $queryParams?: {
16
- preview?: PreviewMode | undefined;
16
+ preview?: _Core.PreviewMode | undefined;
17
17
  }
18
- ]): Promise<Branch>;
18
+ ]): Promise<_Datasets.Branch>;
19
19
  /**
20
20
  * Deletes the Branch with the given BranchName.
21
21
  *
@@ -25,10 +25,10 @@ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [
25
25
  * URL: /v2/datasets/{datasetRid}/branches/{branchName}
26
26
  */
27
27
  export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [
28
- datasetRid: DatasetRid,
29
- branchName: BranchName,
28
+ datasetRid: _Datasets.DatasetRid,
29
+ branchName: _Datasets.BranchName,
30
30
  $queryParams?: {
31
- preview?: PreviewMode | undefined;
31
+ preview?: _Core.PreviewMode | undefined;
32
32
  }
33
33
  ]): Promise<void>;
34
34
  /**
@@ -40,13 +40,13 @@ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [
40
40
  * URL: /v2/datasets/{datasetRid}/branches
41
41
  */
42
42
  export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
43
- datasetRid: DatasetRid,
43
+ datasetRid: _Datasets.DatasetRid,
44
44
  $queryParams?: {
45
- pageSize?: PageSize | undefined;
46
- pageToken?: PageToken | undefined;
47
- preview?: PreviewMode | undefined;
45
+ pageSize?: _Core.PageSize | undefined;
46
+ pageToken?: _Core.PageToken | undefined;
47
+ preview?: _Core.PreviewMode | undefined;
48
48
  }
49
- ]): Promise<ListBranchesResponse>;
49
+ ]): Promise<_Datasets.ListBranchesResponse>;
50
50
  /**
51
51
  * Get a Branch of a Dataset.
52
52
  *
@@ -56,10 +56,10 @@ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
56
56
  * URL: /v2/datasets/{datasetRid}/branches/{branchName}
57
57
  */
58
58
  export declare function getBranch($ctx: $Client | $ClientContext, ...args: [
59
- datasetRid: DatasetRid,
60
- branchName: BranchName,
59
+ datasetRid: _Datasets.DatasetRid,
60
+ branchName: _Datasets.BranchName,
61
61
  $queryParams?: {
62
- preview?: PreviewMode | undefined;
62
+ preview?: _Core.PreviewMode | undefined;
63
63
  }
64
- ]): Promise<Branch>;
64
+ ]): Promise<_Datasets.Branch>;
65
65
  //# sourceMappingURL=Branch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],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