@osdk/internal.foundry.datasets 0.2.0-beta.8 → 0.2.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 (74) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/build/browser/_components.d.ts +125 -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 +359 -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 +57 -0
  15. package/build/browser/public/Branch.d.ts.map +1 -0
  16. package/build/browser/public/Branch.js +73 -3
  17. package/build/browser/public/Branch.js.map +1 -1
  18. package/build/browser/public/Dataset.d.ts +97 -0
  19. package/build/browser/public/Dataset.d.ts.map +1 -0
  20. package/build/browser/public/Dataset.js +97 -3
  21. package/build/browser/public/Dataset.js.map +1 -1
  22. package/build/browser/public/File.d.ts +196 -0
  23. package/build/browser/public/File.d.ts.map +1 -0
  24. package/build/browser/public/File.js +183 -3
  25. package/build/browser/public/File.js.map +1 -1
  26. package/build/browser/public/Transaction.d.ts +64 -0
  27. package/build/browser/public/Transaction.d.ts.map +1 -0
  28. package/build/browser/public/Transaction.js +75 -3
  29. package/build/browser/public/Transaction.js.map +1 -1
  30. package/build/esm/_components.d.ts +6 -6
  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 +13 -10
  39. package/build/esm/public/Branch.d.ts.map +1 -1
  40. package/build/esm/public/Branch.js +73 -3
  41. package/build/esm/public/Branch.js.map +1 -1
  42. package/build/esm/public/Dataset.d.ts +22 -22
  43. package/build/esm/public/Dataset.d.ts.map +1 -1
  44. package/build/esm/public/Dataset.js +97 -3
  45. package/build/esm/public/Dataset.js.map +1 -1
  46. package/build/esm/public/File.d.ts +34 -34
  47. package/build/esm/public/File.d.ts.map +1 -1
  48. package/build/esm/public/File.js +183 -3
  49. package/build/esm/public/File.js.map +1 -1
  50. package/build/esm/public/Transaction.d.ts +18 -9
  51. package/build/esm/public/Transaction.d.ts.map +1 -1
  52. package/build/esm/public/Transaction.js +75 -3
  53. package/build/esm/public/Transaction.js.map +1 -1
  54. package/package.json +8 -9
  55. package/build/browser/chunk-6JHAYAPR.js +0 -31
  56. package/build/browser/chunk-6JHAYAPR.js.map +0 -1
  57. package/build/browser/chunk-EDFN5GXZ.js +0 -41
  58. package/build/browser/chunk-EDFN5GXZ.js.map +0 -1
  59. package/build/browser/chunk-JIXOPP3M.js +0 -31
  60. package/build/browser/chunk-JIXOPP3M.js.map +0 -1
  61. package/build/browser/chunk-PZ5AY32C.js +0 -9
  62. package/build/browser/chunk-PZ5AY32C.js.map +0 -1
  63. package/build/browser/chunk-WOQTHZR3.js +0 -36
  64. package/build/browser/chunk-WOQTHZR3.js.map +0 -1
  65. package/build/esm/chunk-6JHAYAPR.js +0 -31
  66. package/build/esm/chunk-6JHAYAPR.js.map +0 -1
  67. package/build/esm/chunk-EDFN5GXZ.js +0 -41
  68. package/build/esm/chunk-EDFN5GXZ.js.map +0 -1
  69. package/build/esm/chunk-JIXOPP3M.js +0 -31
  70. package/build/esm/chunk-JIXOPP3M.js.map +0 -1
  71. package/build/esm/chunk-PZ5AY32C.js +0 -9
  72. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
  73. package/build/esm/chunk-WOQTHZR3.js +0 -36
  74. package/build/esm/chunk-WOQTHZR3.js.map +0 -1
@@ -1,4 +1,184 @@
1
- export { deleteFile, getFileContent, getFileMetadata, listFiles, uploadFile } from '../chunk-WOQTHZR3.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 _list = [0, "/v1/datasets/{0}/files", 2];
19
+ /**
20
+ * Lists Files contained in a Dataset. By default files are listed on the latest view of the default
21
+ * branch - `master` for most enrollments.
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
+ *
27
+ * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most
28
+ * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the
29
+ * branch if there are no snapshot transactions.
30
+ *
31
+ * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier
32
+ * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot
33
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
34
+ *
35
+ * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource
36
+ * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This
37
+ * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.
38
+ * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when
39
+ * the start and end transactions do not belong to the same root-to-leaf path.
40
+ *
41
+ * To **list files on a specific transaction** specify the Transaction's resource identifier as both the
42
+ * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that
43
+ * Transaction.
44
+ *
45
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
46
+ *
47
+ * @public
48
+ *
49
+ * Required Scopes: [api:datasets-read]
50
+ * URL: /v1/datasets/{datasetRid}/files
51
+ */
52
+ export function list($ctx, ...args) {
53
+ return $foundryPlatformFetch($ctx, _list, ...args);
54
+ }
55
+ const _upload = [1, "/v1/datasets/{0}/files:upload", 3, "*/*"];
56
+ /**
57
+ * Uploads a File to an existing Dataset.
58
+ * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
59
+ *
60
+ * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.
61
+ * If the file already exists only the most recent version will be visible in the updated view.
62
+ *
63
+ * #### Advanced Usage
64
+ *
65
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
66
+ *
67
+ * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will
68
+ * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this
69
+ * default specify `transactionType` in addition to `branchId`.
70
+ * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.
71
+ *
72
+ * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as
73
+ * `transactionRid`. This is useful for uploading multiple files in a single transaction.
74
+ * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.
75
+ *
76
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
77
+ *
78
+ * @public
79
+ *
80
+ * Required Scopes: [api:datasets-write]
81
+ * URL: /v1/datasets/{datasetRid}/files:upload
82
+ */
83
+ export function upload($ctx, ...args) {
84
+ return $foundryPlatformFetch($ctx, _upload, ...args);
85
+ }
86
+ const _get = [0, "/v1/datasets/{0}/files/{1}", 2];
87
+ /**
88
+ * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest
89
+ * view of the default branch - `master` for most enrollments.
90
+ *
91
+ * #### Advanced Usage
92
+ *
93
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
94
+ *
95
+ * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will
96
+ * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest
97
+ * ancestor transaction of the branch if there are no snapshot transactions.
98
+ *
99
+ * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier
100
+ * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot
101
+ * transaction, or the earliest ancestor transaction if there are no snapshot transactions.
102
+ *
103
+ * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's
104
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
105
+ * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the
106
+ * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.
107
+ *
108
+ * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the
109
+ * `startTransactionRid` and `endTransactionRid`.
110
+ *
111
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
112
+ *
113
+ * @public
114
+ *
115
+ * Required Scopes: [api:datasets-read]
116
+ * URL: /v1/datasets/{datasetRid}/files/{filePath}
117
+ */
118
+ export function get($ctx, ...args) {
119
+ return $foundryPlatformFetch($ctx, _get, ...args);
120
+ }
121
+ const _deleteFile = [3, "/v1/datasets/{0}/files/{1}", 2];
122
+ /**
123
+ * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default
124
+ * branch - `master` for most enrollments. The file will still be visible on historical views.
125
+ *
126
+ * #### Advanced Usage
127
+ *
128
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
129
+ *
130
+ * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction
131
+ * will be created and committed on this branch.
132
+ *
133
+ * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier
134
+ * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a
135
+ * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to
136
+ * open a transaction.
137
+ *
138
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
139
+ *
140
+ * @public
141
+ *
142
+ * Required Scopes: [api:datasets-write]
143
+ * URL: /v1/datasets/{datasetRid}/files/{filePath}
144
+ */
145
+ export function deleteFile($ctx, ...args) {
146
+ return $foundryPlatformFetch($ctx, _deleteFile, ...args);
147
+ }
148
+ const _read = [0, "/v1/datasets/{0}/files/{1}/content", 2,, "*/*"];
149
+ /**
150
+ * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest
151
+ * view of the default branch - `master` for most enrollments.
152
+ *
153
+ * #### Advanced Usage
154
+ *
155
+ * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.
156
+ *
157
+ * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will
158
+ * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the
159
+ * earliest ancestor transaction of the branch if there are no snapshot transactions.
160
+ *
161
+ * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier
162
+ * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest
163
+ * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.
164
+ *
165
+ * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's
166
+ * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.
167
+ * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the
168
+ * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior
169
+ * is undefined when the start and end transactions do not belong to the same root-to-leaf path.
170
+ *
171
+ * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the
172
+ * `startTransactionRid` and `endTransactionRid`.
173
+ *
174
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
175
+ *
176
+ * @public
177
+ *
178
+ * Required Scopes: [api:datasets-read]
179
+ * URL: /v1/datasets/{datasetRid}/files/{filePath}/content
180
+ */
181
+ export function read($ctx, ...args) {
182
+ return $foundryPlatformFetch($ctx, _read, ...args);
183
+ }
4
184
  //# sourceMappingURL=File.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"File.js"}
1
+ {"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_upload","upload","_get","get","_deleteFile","deleteFile","_read","read"],"sources":["File.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v1/datasets/{0}/files\", 2];\n/**\n * Lists Files contained in a Dataset. By default files are listed on the latest view of the default\n * branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **list files on a specific Branch** specify the Branch's identifier as `branchId`. This will include the most\n * recent version of all files since the latest snapshot transaction, or the earliest ancestor transaction of the\n * branch if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will include the most recent version of all files since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **list files on the resolved view of a range of transactions** specify the the start transaction's resource\n * identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`. This\n * will include the most recent version of all files since the `startTransactionRid` up to the `endTransactionRid`.\n * Note that an intermediate snapshot transaction will remove all files from the view. Behavior is undefined when\n * the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **list files on a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`. This will include only files that were modified as part of that\n * Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _upload = [1, \"/v1/datasets/{0}/files:upload\", 3, \"*/*\"];\n/**\n * Uploads a File to an existing Dataset.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * By default the file is uploaded to a new transaction on the default branch - `master` for most enrollments.\n * If the file already exists only the most recent version will be visible in the updated view.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **upload a file to a specific Branch** specify the Branch's identifier as `branchId`. A new transaction will\n * be created and committed on this branch. By default the TransactionType will be `UPDATE`, to override this\n * default specify `transactionType` in addition to `branchId`.\n * See [createBranch](https://www.palantir.com/docs/foundry/api/datasets-resources/branches/create-branch/) to create a custom branch.\n *\n * To **upload a file on a manually opened transaction** specify the Transaction's resource identifier as\n * `transactionRid`. This is useful for uploading multiple files in a single transaction.\n * See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files:upload\n */\nexport function upload($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _upload, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Gets metadata about a File contained in a Dataset. By default this retrieves the file's metadata from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's metadata from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve metadata for the most recent version of the file since the latest snapshot transaction, or the earliest\n * ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve metadata for the most recent version of the file since the latest snapshot\n * transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's metadata from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve metadata for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Behavior is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's metadata from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _deleteFile = [3, \"/v1/datasets/{0}/files/{1}\", 2];\n/**\n * Deletes a File from a Dataset. By default the file is deleted in a new transaction on the default\n * branch - `master` for most enrollments. The file will still be visible on historical views.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **delete a File from a specific Branch** specify the Branch's identifier as `branchId`. A new delete Transaction\n * will be created and committed on this branch.\n *\n * To **delete a File using a manually opened Transaction**, specify the Transaction's resource identifier\n * as `transactionRid`. The transaction must be of type `DELETE`. This is useful for deleting multiple files in a\n * single transaction. See [createTransaction](https://www.palantir.com/docs/foundry/api/datasets-resources/transactions/create-transaction/) to\n * open a transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}\n */\nexport function deleteFile($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFile, ...args);\n}\nconst _read = [0, \"/v1/datasets/{0}/files/{1}/content\", 2, , \"*/*\"];\n/**\n * Gets the content of a File contained in a Dataset. By default this retrieves the file's content from the latest\n * view of the default branch - `master` for most enrollments.\n *\n * #### Advanced Usage\n *\n * See [Datasets Core Concepts](https://www.palantir.com/docs/foundry/data-integration/datasets/) for details on using branches and transactions.\n *\n * To **get a file's content from a specific Branch** specify the Branch's identifier as `branchId`. This will\n * retrieve the content for the most recent version of the file since the latest snapshot transaction, or the\n * earliest ancestor transaction of the branch if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a transaction** specify the Transaction's resource identifier\n * as `endTransactionRid`. This will retrieve the content for the most recent version of the file since the latest\n * snapshot transaction, or the earliest ancestor transaction if there are no snapshot transactions.\n *\n * To **get a file's content from the resolved view of a range of transactions** specify the the start transaction's\n * resource identifier as `startTransactionRid` and the end transaction's resource identifier as `endTransactionRid`.\n * This will retrieve the content for the most recent version of the file since the `startTransactionRid` up to the\n * `endTransactionRid`. Note that an intermediate snapshot transaction will remove all files from the view. Behavior\n * is undefined when the start and end transactions do not belong to the same root-to-leaf path.\n *\n * To **get a file's content from a specific transaction** specify the Transaction's resource identifier as both the\n * `startTransactionRid` and `endTransactionRid`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/files/{filePath}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,EAAE,KAAK,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,OAAO,EAAE,GAAGD,IAAI,CAAC;AACxD;AACA,MAAMG,IAAI,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,IAAI,EAAE,GAAGH,IAAI,CAAC;AACrD;AACA,MAAMK,WAAW,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,WAAW,EAAE,GAAGL,IAAI,CAAC;AAC5D;AACA,MAAMO,KAAK,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,GAAI,KAAK,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,KAAK,EAAE,GAAGP,IAAI,CAAC;AACtD","ignoreList":[]}
@@ -0,0 +1,64 @@
1
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
2
+ import type * as _Datasets from "../_components.js";
3
+ /**
4
+ * Creates a Transaction on a Branch of a Dataset.
5
+ *
6
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
7
+ *
8
+ * @public
9
+ *
10
+ * Required Scopes: [api:datasets-write]
11
+ * URL: /v1/datasets/{datasetRid}/transactions
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext, ...args: [
14
+ datasetRid: _Datasets.DatasetRid,
15
+ $body: _Datasets.CreateTransactionRequest,
16
+ $queryParams?: {
17
+ branchId?: _Datasets.BranchId | undefined;
18
+ }
19
+ ]): Promise<_Datasets.Transaction>;
20
+ /**
21
+ * Gets a Transaction of a Dataset.
22
+ *
23
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
24
+ *
25
+ * @public
26
+ *
27
+ * Required Scopes: [api:datasets-read]
28
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
29
+ */
30
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
31
+ datasetRid: _Datasets.DatasetRid,
32
+ transactionRid: _Datasets.TransactionRid
33
+ ]): Promise<_Datasets.Transaction>;
34
+ /**
35
+ * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
36
+ * updated to point to the Transaction.
37
+ *
38
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
39
+ *
40
+ * @public
41
+ *
42
+ * Required Scopes: [api:datasets-write]
43
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
44
+ */
45
+ export declare function commit($ctx: $Client | $ClientContext, ...args: [
46
+ datasetRid: _Datasets.DatasetRid,
47
+ transactionRid: _Datasets.TransactionRid
48
+ ]): Promise<_Datasets.Transaction>;
49
+ /**
50
+ * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
51
+ * not updated.
52
+ *
53
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
54
+ *
55
+ * @public
56
+ *
57
+ * Required Scopes: [api:datasets-write]
58
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort
59
+ */
60
+ export declare function abort($ctx: $Client | $ClientContext, ...args: [
61
+ datasetRid: _Datasets.DatasetRid,
62
+ transactionRid: _Datasets.TransactionRid
63
+ ]): Promise<_Datasets.Transaction>;
64
+ //# sourceMappingURL=Transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","s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, commitTransaction, createTransaction, getTransaction } from '../chunk-6JHAYAPR.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 _create = [1, "/v1/datasets/{0}/transactions", 3];
19
+ /**
20
+ * Creates a Transaction on a Branch of a Dataset.
21
+ *
22
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
23
+ *
24
+ * @public
25
+ *
26
+ * Required Scopes: [api:datasets-write]
27
+ * URL: /v1/datasets/{datasetRid}/transactions
28
+ */
29
+ export function create($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _create, ...args);
31
+ }
32
+ const _get = [0, "/v1/datasets/{0}/transactions/{1}"];
33
+ /**
34
+ * Gets a Transaction of a Dataset.
35
+ *
36
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
37
+ *
38
+ * @public
39
+ *
40
+ * Required Scopes: [api:datasets-read]
41
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}
42
+ */
43
+ export function get($ctx, ...args) {
44
+ return $foundryPlatformFetch($ctx, _get, ...args);
45
+ }
46
+ const _commit = [1, "/v1/datasets/{0}/transactions/{1}/commit"];
47
+ /**
48
+ * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is
49
+ * updated to point to the Transaction.
50
+ *
51
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
52
+ *
53
+ * @public
54
+ *
55
+ * Required Scopes: [api:datasets-write]
56
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit
57
+ */
58
+ export function commit($ctx, ...args) {
59
+ return $foundryPlatformFetch($ctx, _commit, ...args);
60
+ }
61
+ const _abort = [1, "/v1/datasets/{0}/transactions/{1}/abort"];
62
+ /**
63
+ * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is
64
+ * not updated.
65
+ *
66
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
67
+ *
68
+ * @public
69
+ *
70
+ * Required Scopes: [api:datasets-write]
71
+ * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort
72
+ */
73
+ export function abort($ctx, ...args) {
74
+ return $foundryPlatformFetch($ctx, _abort, ...args);
75
+ }
4
76
  //# sourceMappingURL=Transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Transaction.js"}
1
+ {"version":3,"file":"Transaction.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_commit","commit","_abort","abort"],"sources":["Transaction.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v1/datasets/{0}/transactions\", 3];\n/**\n * Creates a Transaction on a Branch of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v1/datasets/{0}/transactions/{1}\"];\n/**\n * Gets a Transaction of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _commit = [1, \"/v1/datasets/{0}/transactions/{1}/commit\"];\n/**\n * Commits an open Transaction. File modifications made on this Transaction are preserved and the Branch is\n * updated to point to the Transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/commit\n */\nexport function commit($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _commit, ...args);\n}\nconst _abort = [1, \"/v1/datasets/{0}/transactions/{1}/abort\"];\n/**\n * Aborts an open Transaction. File modifications made on this Transaction are not preserved and the Branch is\n * not updated.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/transactions/{transactionRid}/abort\n */\nexport function abort($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _abort, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,0CAA0C,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,MAAM,GAAG,CAAC,CAAC,EAAE,yCAAyC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,MAAM,EAAE,GAAGL,IAAI,CAAC;AACvD","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { FilePath, FolderRid, PageToken } from "@osdk/internal.foundry.core";
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
2
  export type LooselyBrandedString<T extends string> = string & {
3
3
  __LOOSE_BRAND?: T;
4
4
  };
@@ -18,7 +18,7 @@ export type TransactionType = "APPEND" | "UPDATE" | "SNAPSHOT" | "DELETE";
18
18
  * Log Safety: UNSAFE
19
19
  */
20
20
  export interface ListBranchesResponse {
21
- nextPageToken?: PageToken;
21
+ nextPageToken?: _Core.PageToken;
22
22
  data: Array<Branch>;
23
23
  }
24
24
  /**
@@ -37,7 +37,7 @@ export type DatasetName = LooselyBrandedString<"DatasetName">;
37
37
  export interface Dataset {
38
38
  rid: DatasetRid;
39
39
  name: DatasetName;
40
- parentFolderRid: FolderRid;
40
+ parentFolderRid: _Core.FolderRid;
41
41
  }
42
42
  /**
43
43
  * Log Safety: UNSAFE
@@ -62,7 +62,7 @@ export interface Transaction {
62
62
  * Log Safety: UNSAFE
63
63
  */
64
64
  export interface File {
65
- path: FilePath;
65
+ path: _Core.FilePath;
66
66
  transactionRid: TransactionRid;
67
67
  sizeBytes?: string;
68
68
  updatedTime: string;
@@ -84,7 +84,7 @@ export type TableExportFormat = "ARROW" | "CSV";
84
84
  */
85
85
  export interface CreateDatasetRequest {
86
86
  name: DatasetName;
87
- parentFolderRid: FolderRid;
87
+ parentFolderRid: _Core.FolderRid;
88
88
  }
89
89
  /**
90
90
  * The status of a Transaction.
@@ -107,7 +107,7 @@ export interface Branch {
107
107
  * Log Safety: UNSAFE
108
108
  */
109
109
  export interface ListFilesResponse {
110
- nextPageToken?: PageToken;
110
+ nextPageToken?: _Core.PageToken;
111
111
  data: Array<File>;
112
112
  }
113
113
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACV,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QA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;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,cAAc,CAAC,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-JIXOPP3M.js';
2
- export { Dataset_exports as Datasets } from './chunk-EDFN5GXZ.js';
3
- export { File_exports as Files } from './chunk-WOQTHZR3.js';
4
- export { Transaction_exports as Transactions } from './chunk-6JHAYAPR.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 } from "@osdk/internal.foundry.core";
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
2
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
- import type { Branch, BranchId, 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
  *
@@ -11,7 +11,10 @@ import type { Branch, BranchId, CreateBranchRequest, DatasetRid, ListBranchesRes
11
11
  * Required Scopes: [api:datasets-write]
12
12
  * URL: /v1/datasets/{datasetRid}/branches
13
13
  */
14
- export declare function createBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: DatasetRid, $body: CreateBranchRequest]): Promise<Branch>;
14
+ export declare function create($ctx: $Client | $ClientContext, ...args: [
15
+ datasetRid: _Datasets.DatasetRid,
16
+ $body: _Datasets.CreateBranchRequest
17
+ ]): Promise<_Datasets.Branch>;
15
18
  /**
16
19
  * Get a Branch of a Dataset.
17
20
  *
@@ -22,7 +25,7 @@ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [d
22
25
  * Required Scopes: [api:datasets-read]
23
26
  * URL: /v1/datasets/{datasetRid}/branches/{branchId}
24
27
  */
25
- export declare function getBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: DatasetRid, branchId: BranchId]): Promise<Branch>;
28
+ export declare function get($ctx: $Client | $ClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchId: _Datasets.BranchId]): Promise<_Datasets.Branch>;
26
29
  /**
27
30
  * Deletes the Branch with the given BranchId.
28
31
  *
@@ -33,7 +36,7 @@ export declare function getBranch($ctx: $Client | $ClientContext, ...args: [data
33
36
  * Required Scopes: [api:datasets-write]
34
37
  * URL: /v1/datasets/{datasetRid}/branches/{branchId}
35
38
  */
36
- export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: DatasetRid, branchId: BranchId]): Promise<void>;
39
+ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchId: _Datasets.BranchId]): Promise<void>;
37
40
  /**
38
41
  * Lists the Branches of a Dataset.
39
42
  *
@@ -44,11 +47,11 @@ export declare function deleteBranch($ctx: $Client | $ClientContext, ...args: [d
44
47
  * Required Scopes: [api:datasets-read]
45
48
  * URL: /v1/datasets/{datasetRid}/branches
46
49
  */
47
- export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
48
- datasetRid: DatasetRid,
50
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
51
+ datasetRid: _Datasets.DatasetRid,
49
52
  $queryParams?: {
50
- pageSize?: PageSize | undefined;
51
- pageToken?: PageToken | undefined;
53
+ pageSize?: _Core.PageSize | undefined;
54
+ pageToken?: _Core.PageToken | undefined;
52
55
  }
53
- ]): Promise<ListBranchesResponse>;
56
+ ]): Promise<_Datasets.ListBranchesResponse>;
54
57
  //# sourceMappingURL=Branch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../../src/public/Branch.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACvE,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;AAQ3B;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,CAAC,GAC5D,OAAO,CAAC,MAAM,CAAC,CAEjB;AAMD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,GACpD,OAAO,CAAC,MAAM,CAAC,CAEjB;AAMD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,GACpD,OAAO,CAAC,IAAI,CAAC,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