@osdk/internal.foundry.datasets 0.2.0-beta.1 → 0.2.0-beta.10

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 (78) hide show
  1. package/CHANGELOG.md +98 -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 +18 -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.d.ts +359 -0
  35. package/build/esm/_errors.d.ts.map +1 -0
  36. package/build/esm/_errors.js +17 -0
  37. package/build/esm/_errors.js.map +1 -0
  38. package/build/esm/index.d.ts +2 -1
  39. package/build/esm/index.d.ts.map +1 -1
  40. package/build/esm/index.js +19 -6
  41. package/build/esm/index.js.map +1 -1
  42. package/build/esm/public/Branch.d.ts +25 -22
  43. package/build/esm/public/Branch.d.ts.map +1 -1
  44. package/build/esm/public/Branch.js +73 -3
  45. package/build/esm/public/Branch.js.map +1 -1
  46. package/build/esm/public/Dataset.d.ts +29 -29
  47. package/build/esm/public/Dataset.d.ts.map +1 -1
  48. package/build/esm/public/Dataset.js +97 -3
  49. package/build/esm/public/Dataset.js.map +1 -1
  50. package/build/esm/public/File.d.ts +30 -30
  51. package/build/esm/public/File.d.ts.map +1 -1
  52. package/build/esm/public/File.js +183 -3
  53. package/build/esm/public/File.js.map +1 -1
  54. package/build/esm/public/Transaction.d.ts +17 -9
  55. package/build/esm/public/Transaction.d.ts.map +1 -1
  56. package/build/esm/public/Transaction.js +75 -3
  57. package/build/esm/public/Transaction.js.map +1 -1
  58. package/package.json +9 -12
  59. package/build/browser/chunk-6JHAYAPR.js +0 -31
  60. package/build/browser/chunk-6JHAYAPR.js.map +0 -1
  61. package/build/browser/chunk-LACCW5AJ.js +0 -41
  62. package/build/browser/chunk-LACCW5AJ.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/browser/chunk-S3RCUT7E.js +0 -31
  66. package/build/browser/chunk-S3RCUT7E.js.map +0 -1
  67. package/build/browser/chunk-WOQTHZR3.js +0 -36
  68. package/build/browser/chunk-WOQTHZR3.js.map +0 -1
  69. package/build/esm/chunk-6JHAYAPR.js +0 -31
  70. package/build/esm/chunk-6JHAYAPR.js.map +0 -1
  71. package/build/esm/chunk-LACCW5AJ.js +0 -41
  72. package/build/esm/chunk-LACCW5AJ.js.map +0 -1
  73. package/build/esm/chunk-PZ5AY32C.js +0 -9
  74. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
  75. package/build/esm/chunk-S3RCUT7E.js +0 -31
  76. package/build/esm/chunk-S3RCUT7E.js.map +0 -1
  77. package/build/esm/chunk-WOQTHZR3.js +0 -36
  78. package/build/esm/chunk-WOQTHZR3.js.map +0 -1
@@ -0,0 +1,359 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * The provided token does not have permission to read the given dataset as a table.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface ReadTablePermissionDenied {
10
+ errorCode: "PERMISSION_DENIED";
11
+ errorName: "ReadTablePermissionDenied";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ datasetRid: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * The provided token does not have permission to abort the given transaction on the given dataset.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface AbortTransactionPermissionDenied {
23
+ errorCode: "PERMISSION_DENIED";
24
+ errorName: "AbortTransactionPermissionDenied";
25
+ errorInstanceId: string;
26
+ parameters: {
27
+ datasetRid: unknown;
28
+ transactionRid: unknown;
29
+ };
30
+ }
31
+ /**
32
+ * The requested file could not be found on the given branch, or the client token does not have access to it.
33
+ *
34
+ * Log Safety: UNSAFE
35
+ */
36
+ export interface FileNotFoundOnBranch {
37
+ errorCode: "NOT_FOUND";
38
+ errorName: "FileNotFoundOnBranch";
39
+ errorInstanceId: string;
40
+ parameters: {
41
+ datasetRid: unknown;
42
+ branchId: unknown;
43
+ path: unknown;
44
+ };
45
+ }
46
+ /**
47
+ * The provided token does not have permission to commit the given transaction on the given dataset.
48
+ *
49
+ * Log Safety: SAFE
50
+ */
51
+ export interface CommitTransactionPermissionDenied {
52
+ errorCode: "PERMISSION_DENIED";
53
+ errorName: "CommitTransactionPermissionDenied";
54
+ errorInstanceId: string;
55
+ parameters: {
56
+ datasetRid: unknown;
57
+ transactionRid: unknown;
58
+ };
59
+ }
60
+ /**
61
+ * The requested transaction could not be found on the dataset, or the client token does not have access to it.
62
+ *
63
+ * Log Safety: SAFE
64
+ */
65
+ export interface TransactionNotFound {
66
+ errorCode: "NOT_FOUND";
67
+ errorName: "TransactionNotFound";
68
+ errorInstanceId: string;
69
+ parameters: {
70
+ datasetRid: unknown;
71
+ transactionRid: unknown;
72
+ };
73
+ }
74
+ /**
75
+ * The requested file could not be found on the given transaction range, or the client token does not have access to it.
76
+ *
77
+ * Log Safety: UNSAFE
78
+ */
79
+ export interface FileNotFoundOnTransactionRange {
80
+ errorCode: "NOT_FOUND";
81
+ errorName: "FileNotFoundOnTransactionRange";
82
+ errorInstanceId: string;
83
+ parameters: {
84
+ datasetRid: unknown;
85
+ startTransactionRid: unknown;
86
+ endTransactionRid: unknown;
87
+ path: unknown;
88
+ };
89
+ }
90
+ /**
91
+ * The given transaction type is not valid. Valid transaction types are SNAPSHOT, UPDATE, APPEND, and DELETE.
92
+ *
93
+ * Log Safety: SAFE
94
+ */
95
+ export interface InvalidTransactionType {
96
+ errorCode: "INVALID_ARGUMENT";
97
+ errorName: "InvalidTransactionType";
98
+ errorInstanceId: string;
99
+ parameters: {
100
+ datasetRid: unknown;
101
+ transactionRid: unknown;
102
+ transactionType: unknown;
103
+ };
104
+ }
105
+ /**
106
+ * The provided token does not have permission to delete the given branch from this dataset.
107
+ *
108
+ * Log Safety: UNSAFE
109
+ */
110
+ export interface DeleteBranchPermissionDenied {
111
+ errorCode: "PERMISSION_DENIED";
112
+ errorName: "DeleteBranchPermissionDenied";
113
+ errorInstanceId: string;
114
+ parameters: {
115
+ datasetRid: unknown;
116
+ branchId: unknown;
117
+ };
118
+ }
119
+ /**
120
+ * todo
121
+ *
122
+ * Log Safety: UNSAFE
123
+ */
124
+ export interface DeleteSchemaPermissionDenied {
125
+ errorCode: "PERMISSION_DENIED";
126
+ errorName: "DeleteSchemaPermissionDenied";
127
+ errorInstanceId: string;
128
+ parameters: {
129
+ datasetRid: unknown;
130
+ branchId: unknown;
131
+ transactionRid: unknown;
132
+ };
133
+ }
134
+ /**
135
+ * A transaction is already open on this dataset and branch. A branch of a dataset can only have one open transaction at a time.
136
+ *
137
+ * Log Safety: UNSAFE
138
+ */
139
+ export interface OpenTransactionAlreadyExists {
140
+ errorCode: "CONFLICT";
141
+ errorName: "OpenTransactionAlreadyExists";
142
+ errorInstanceId: string;
143
+ parameters: {
144
+ datasetRid: unknown;
145
+ branchId: unknown;
146
+ };
147
+ }
148
+ /**
149
+ * The dataset does not support being read.
150
+ *
151
+ * Log Safety: SAFE
152
+ */
153
+ export interface DatasetReadNotSupported {
154
+ errorCode: "INVALID_ARGUMENT";
155
+ errorName: "DatasetReadNotSupported";
156
+ errorInstanceId: string;
157
+ parameters: {
158
+ datasetRid: unknown;
159
+ };
160
+ }
161
+ /**
162
+ * The requested dataset could not be found, or the client token does not have access to it.
163
+ *
164
+ * Log Safety: SAFE
165
+ */
166
+ export interface DatasetNotFound {
167
+ errorCode: "NOT_FOUND";
168
+ errorName: "DatasetNotFound";
169
+ errorInstanceId: string;
170
+ parameters: {
171
+ datasetRid: unknown;
172
+ };
173
+ }
174
+ /**
175
+ * The provided token does not have permission to upload the given file to the given dataset and transaction.
176
+ *
177
+ * Log Safety: UNSAFE
178
+ */
179
+ export interface UploadFilePermissionDenied {
180
+ errorCode: "PERMISSION_DENIED";
181
+ errorName: "UploadFilePermissionDenied";
182
+ errorInstanceId: string;
183
+ parameters: {
184
+ datasetRid: unknown;
185
+ transactionRid: unknown;
186
+ path: unknown;
187
+ };
188
+ }
189
+ /**
190
+ * The provided token does not have permission to create a transaction on this dataset.
191
+ *
192
+ * Log Safety: UNSAFE
193
+ */
194
+ export interface CreateTransactionPermissionDenied {
195
+ errorCode: "PERMISSION_DENIED";
196
+ errorName: "CreateTransactionPermissionDenied";
197
+ errorInstanceId: string;
198
+ parameters: {
199
+ datasetRid: unknown;
200
+ branchId: unknown;
201
+ };
202
+ }
203
+ /**
204
+ * The branch cannot be created because a branch with that name already exists.
205
+ *
206
+ * Log Safety: UNSAFE
207
+ */
208
+ export interface BranchAlreadyExists {
209
+ errorCode: "CONFLICT";
210
+ errorName: "BranchAlreadyExists";
211
+ errorInstanceId: string;
212
+ parameters: {
213
+ datasetRid: unknown;
214
+ branchId: unknown;
215
+ };
216
+ }
217
+ /**
218
+ * The provided token does not have permission to create a branch of this dataset.
219
+ *
220
+ * Log Safety: UNSAFE
221
+ */
222
+ export interface CreateBranchPermissionDenied {
223
+ errorCode: "PERMISSION_DENIED";
224
+ errorName: "CreateBranchPermissionDenied";
225
+ errorInstanceId: string;
226
+ parameters: {
227
+ datasetRid: unknown;
228
+ branchId: unknown;
229
+ };
230
+ }
231
+ /**
232
+ * todo
233
+ *
234
+ * Log Safety: UNSAFE
235
+ */
236
+ export interface PutSchemaPermissionDenied {
237
+ errorCode: "PERMISSION_DENIED";
238
+ errorName: "PutSchemaPermissionDenied";
239
+ errorInstanceId: string;
240
+ parameters: {
241
+ datasetRid: unknown;
242
+ branchId: unknown;
243
+ };
244
+ }
245
+ /**
246
+ * The provided token does not have permission to create a dataset in this folder.
247
+ *
248
+ * Log Safety: UNSAFE
249
+ */
250
+ export interface CreateDatasetPermissionDenied {
251
+ errorCode: "PERMISSION_DENIED";
252
+ errorName: "CreateDatasetPermissionDenied";
253
+ errorInstanceId: string;
254
+ parameters: {
255
+ parentFolderRid: unknown;
256
+ name: unknown;
257
+ };
258
+ }
259
+ /**
260
+ * The given file path already exists in the dataset and transaction.
261
+ *
262
+ * Log Safety: UNSAFE
263
+ */
264
+ export interface FileAlreadyExists {
265
+ errorCode: "NOT_FOUND";
266
+ errorName: "FileAlreadyExists";
267
+ errorInstanceId: string;
268
+ parameters: {
269
+ datasetRid: unknown;
270
+ transactionRid: unknown;
271
+ path: unknown;
272
+ };
273
+ }
274
+ /**
275
+ * The given transaction has not been committed.
276
+ *
277
+ * Log Safety: SAFE
278
+ */
279
+ export interface TransactionNotCommitted {
280
+ errorCode: "INVALID_ARGUMENT";
281
+ errorName: "TransactionNotCommitted";
282
+ errorInstanceId: string;
283
+ parameters: {
284
+ datasetRid: unknown;
285
+ transactionRid: unknown;
286
+ transactionStatus: unknown;
287
+ };
288
+ }
289
+ /**
290
+ * The requested branch name cannot be used. Branch names cannot be empty and must not look like RIDs or UUIDs.
291
+ *
292
+ * Log Safety: UNSAFE
293
+ */
294
+ export interface InvalidBranchId {
295
+ errorCode: "INVALID_ARGUMENT";
296
+ errorName: "InvalidBranchId";
297
+ errorInstanceId: string;
298
+ parameters: {
299
+ branchId: unknown;
300
+ };
301
+ }
302
+ /**
303
+ * A schema could not be found for the given dataset and branch, or the client token does not have access to it.
304
+ *
305
+ * Log Safety: UNSAFE
306
+ */
307
+ export interface SchemaNotFound {
308
+ errorCode: "NOT_FOUND";
309
+ errorName: "SchemaNotFound";
310
+ errorInstanceId: string;
311
+ parameters: {
312
+ datasetRid: unknown;
313
+ branchId: unknown;
314
+ transactionRid: unknown;
315
+ };
316
+ }
317
+ /**
318
+ * The requested branch could not be found, or the client token does not have access to it.
319
+ *
320
+ * Log Safety: UNSAFE
321
+ */
322
+ export interface BranchNotFound {
323
+ errorCode: "NOT_FOUND";
324
+ errorName: "BranchNotFound";
325
+ errorInstanceId: string;
326
+ parameters: {
327
+ datasetRid: unknown;
328
+ branchId: unknown;
329
+ };
330
+ }
331
+ /**
332
+ * The given transaction is not open.
333
+ *
334
+ * Log Safety: SAFE
335
+ */
336
+ export interface TransactionNotOpen {
337
+ errorCode: "INVALID_ARGUMENT";
338
+ errorName: "TransactionNotOpen";
339
+ errorInstanceId: string;
340
+ parameters: {
341
+ datasetRid: unknown;
342
+ transactionRid: unknown;
343
+ transactionStatus: unknown;
344
+ };
345
+ }
346
+ /**
347
+ * The dataset contains column types that are not supported.
348
+ *
349
+ * Log Safety: SAFE
350
+ */
351
+ export interface ColumnTypesNotSupported {
352
+ errorCode: "INVALID_ARGUMENT";
353
+ errorName: "ColumnTypesNotSupported";
354
+ errorInstanceId: string;
355
+ parameters: {
356
+ datasetRid: unknown;
357
+ };
358
+ }
359
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,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 *
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,4 +1,5 @@
1
- export type { Branch, CreateBranchRequest, CreateDatasetRequest, CreateTransactionRequest, Dataset, DatasetName, File, ListBranchesResponse, ListFilesResponse, ResourcePath, TableExportFormat, Transaction, TransactionRid, TransactionStatus, TransactionType, } from "./_components.js";
1
+ export type { Branch, BranchId, CreateBranchRequest, CreateDatasetRequest, CreateTransactionRequest, Dataset, DatasetName, DatasetRid, File, ListBranchesResponse, ListFilesResponse, ResourcePath, TableExportFormat, Transaction, TransactionRid, TransactionStatus, TransactionType, } from "./_components.js";
2
+ export type { AbortTransactionPermissionDenied, BranchAlreadyExists, BranchNotFound, ColumnTypesNotSupported, CommitTransactionPermissionDenied, CreateBranchPermissionDenied, CreateDatasetPermissionDenied, CreateTransactionPermissionDenied, DatasetNotFound, DatasetReadNotSupported, DeleteBranchPermissionDenied, DeleteSchemaPermissionDenied, FileAlreadyExists, FileNotFoundOnBranch, FileNotFoundOnTransactionRange, InvalidBranchId, InvalidTransactionType, OpenTransactionAlreadyExists, PutSchemaPermissionDenied, ReadTablePermissionDenied, SchemaNotFound, TransactionNotCommitted, TransactionNotFound, TransactionNotOpen, UploadFilePermissionDenied, } from "./_errors.js";
2
3
  export * as Branches from "./public/Branch.js";
3
4
  export * as Datasets from "./public/Dataset.js";
4
5
  export * as Files from "./public/File.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACP,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACP,WAAW,EACX,UAAU,EACV,IAAI,EACJ,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,gCAAgC,EAChC,mBAAmB,EACnB,cAAc,EACd,uBAAuB,EACvB,iCAAiC,EACjC,4BAA4B,EAC5B,6BAA6B,EAC7B,iCAAiC,EACjC,eAAe,EACf,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACpB,8BAA8B,EAC9B,eAAe,EACf,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC"}
@@ -1,7 +1,20 @@
1
- export { Branch_exports as Branches } from './chunk-S3RCUT7E.js';
2
- export { Dataset_exports as Datasets } from './chunk-LACCW5AJ.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,23 +1,6 @@
1
- import type { BranchId, DatasetRid, 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, CreateBranchRequest, ListBranchesResponse } from "../_components.js";
4
- /**
5
- * Lists the Branches of a Dataset.
6
- *
7
- * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
8
- *
9
- * @public
10
- *
11
- * Required Scopes: [api:datasets-read]
12
- * URL: /v1/datasets/{datasetRid}/branches
13
- */
14
- export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
15
- datasetRid: DatasetRid,
16
- $queryParams?: {
17
- pageSize?: PageSize | undefined;
18
- pageToken?: PageToken | undefined;
19
- }
20
- ]): Promise<ListBranchesResponse>;
3
+ import type * as _Datasets from "../_components.js";
21
4
  /**
22
5
  * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
23
6
  *
@@ -28,7 +11,10 @@ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
28
11
  * Required Scopes: [api:datasets-write]
29
12
  * URL: /v1/datasets/{datasetRid}/branches
30
13
  */
31
- export declare function createBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: DatasetRid, $body: CreateBranchRequest]): Promise<Branch>;
14
+ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [
15
+ datasetRid: _Datasets.DatasetRid,
16
+ $body: _Datasets.CreateBranchRequest
17
+ ]): Promise<_Datasets.Branch>;
32
18
  /**
33
19
  * Get a Branch of a Dataset.
34
20
  *
@@ -39,7 +25,7 @@ export declare function createBranch($ctx: $Client | $ClientContext, ...args: [d
39
25
  * Required Scopes: [api:datasets-read]
40
26
  * URL: /v1/datasets/{datasetRid}/branches/{branchId}
41
27
  */
42
- export declare function getBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: DatasetRid, branchId: BranchId]): Promise<Branch>;
28
+ export declare function getBranch($ctx: $Client | $ClientContext, ...args: [datasetRid: _Datasets.DatasetRid, branchId: _Datasets.BranchId]): Promise<_Datasets.Branch>;
43
29
  /**
44
30
  * Deletes the Branch with the given BranchId.
45
31
  *
@@ -50,5 +36,22 @@ export declare function getBranch($ctx: $Client | $ClientContext, ...args: [data
50
36
  * Required Scopes: [api:datasets-write]
51
37
  * URL: /v1/datasets/{datasetRid}/branches/{branchId}
52
38
  */
53
- 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>;
40
+ /**
41
+ * Lists the Branches of a Dataset.
42
+ *
43
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
44
+ *
45
+ * @public
46
+ *
47
+ * Required Scopes: [api:datasets-read]
48
+ * URL: /v1/datasets/{datasetRid}/branches
49
+ */
50
+ export declare function listBranches($ctx: $Client | $ClientContext, ...args: [
51
+ datasetRid: _Datasets.DatasetRid,
52
+ $queryParams?: {
53
+ pageSize?: _Core.PageSize | undefined;
54
+ pageToken?: _Core.PageToken | undefined;
55
+ }
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,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAc3B;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,UAAU;IAEtB,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QAChC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;KACnC;CACF,GACA,OAAO,CAAC,oBAAoB,CAAC,CAE/B;AAMD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,mB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E,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,GACxE,OAAO,CAAC,IAAI,CAAC,CAEf;AAYD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAEzC"}
@@ -1,4 +1,74 @@
1
- export { createBranch, deleteBranch, getBranch, listBranches } from '../chunk-S3RCUT7E.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=Branch.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 _createBranch = [1, "/v1/datasets/{0}/branches", 1];
19
+ /**
20
+ * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.
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}/branches
28
+ */
29
+ export function createBranch($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _createBranch, ...args);
31
+ }
32
+ const _getBranch = [0, "/v1/datasets/{0}/branches/{1}"];
33
+ /**
34
+ * Get a Branch 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}/branches/{branchId}
42
+ */
43
+ export function getBranch($ctx, ...args) {
44
+ return $foundryPlatformFetch($ctx, _getBranch, ...args);
45
+ }
46
+ const _deleteBranch = [3, "/v1/datasets/{0}/branches/{1}"];
47
+ /**
48
+ * Deletes the Branch with the given BranchId.
49
+ *
50
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.
51
+ *
52
+ * @public
53
+ *
54
+ * Required Scopes: [api:datasets-write]
55
+ * URL: /v1/datasets/{datasetRid}/branches/{branchId}
56
+ */
57
+ export function deleteBranch($ctx, ...args) {
58
+ return $foundryPlatformFetch($ctx, _deleteBranch, ...args);
59
+ }
60
+ const _listBranches = [0, "/v1/datasets/{0}/branches", 2];
61
+ /**
62
+ * Lists the Branches of a Dataset.
63
+ *
64
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.
65
+ *
66
+ * @public
67
+ *
68
+ * Required Scopes: [api:datasets-read]
69
+ * URL: /v1/datasets/{datasetRid}/branches
70
+ */
71
+ export function listBranches($ctx, ...args) {
72
+ return $foundryPlatformFetch($ctx, _listBranches, ...args);
73
+ }
4
74
  //# sourceMappingURL=Branch.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Branch.js"}
1
+ {"version":3,"file":"Branch.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_createBranch","createBranch","$ctx","args","_getBranch","getBranch","_deleteBranch","deleteBranch","_listBranches","listBranches"],"sources":["Branch.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _createBranch = [1, \"/v1/datasets/{0}/branches\", 1];\n/**\n * Creates a branch on an existing dataset. A branch may optionally point to a (committed) transaction.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function createBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createBranch, ...args);\n}\nconst _getBranch = [0, \"/v1/datasets/{0}/branches/{1}\"];\n/**\n * Get a Branch of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function getBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getBranch, ...args);\n}\nconst _deleteBranch = [3, \"/v1/datasets/{0}/branches/{1}\"];\n/**\n * Deletes the Branch with the given BranchId.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-write`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v1/datasets/{datasetRid}/branches/{branchId}\n */\nexport function deleteBranch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteBranch, ...args);\n}\nconst _listBranches = [0, \"/v1/datasets/{0}/branches\", 2];\n/**\n * Lists the Branches of a Dataset.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:datasets-read`.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v1/datasets/{datasetRid}/branches\n */\nexport function listBranches($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listBranches, ...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,aAAa,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,aAAa,EAAE,GAAGG,IAAI,CAAC;AAC9D;AACA,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC;AACvD;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,aAAa,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,aAAa,EAAE,GAAGH,IAAI,CAAC;AAC9D;AACA,MAAMK,aAAa,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,aAAa,EAAE,GAAGL,IAAI,CAAC;AAC9D","ignoreList":[]}