@osdk/foundry.datasets 2.23.0 → 2.25.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.
@@ -1,7 +1,8 @@
1
- export type { Branch, BranchName, CreateBranchRequest, CreateDatasetRequest, CreateTransactionRequest, Dataset, DatasetName, DatasetRid, File, FileUpdatedTime, ListBranchesResponse, ListFilesResponse, ListSchedulesResponse, TableExportFormat, Transaction, TransactionCreatedTime, TransactionRid, TransactionStatus, TransactionType, } from "./_components.js";
2
- export type { AbortTransactionPermissionDenied, BranchAlreadyExists, BranchNotFound, BuildTransactionPermissionDenied, ColumnTypesNotSupported, CommitTransactionPermissionDenied, CreateBranchPermissionDenied, CreateDatasetPermissionDenied, CreateTransactionPermissionDenied, DatasetNotFound, DatasetReadNotSupported, DeleteBranchPermissionDenied, DeleteFilePermissionDenied, DeleteSchemaPermissionDenied, FileAlreadyExists, FileNotFound, FileNotFoundOnBranch, FileNotFoundOnTransactionRange, GetDatasetSchedulesPermissionDenied, GetFileContentPermissionDenied, InvalidBranchName, InvalidTransactionType, JobTransactionPermissionDenied, OpenTransactionAlreadyExists, PutSchemaPermissionDenied, ReadTableDatasetPermissionDenied, ReadTableError, ReadTableRowLimitExceeded, ReadTableTimeout, SchemaNotFound, TransactionNotCommitted, TransactionNotFound, TransactionNotOpen, UploadFilePermissionDenied, } from "./_errors.js";
1
+ export type { AddBackingDatasetsRequest, AddPrimaryKeyRequest, Branch, BranchName, CreateBranchRequest, CreateDatasetRequest, CreateTransactionRequest, CreateViewRequest, Dataset, DatasetName, DatasetRid, File, FileUpdatedTime, FolderRid, GetDatasetSchemaResponse, ListBranchesResponse, ListFilesResponse, ListSchedulesResponse, PrimaryKeyLatestWinsResolutionStrategy, PrimaryKeyResolutionDuplicate, PrimaryKeyResolutionStrategy, PrimaryKeyResolutionUnique, PutDatasetSchemaRequest, RemoveBackingDatasetsRequest, ReplaceBackingDatasetsRequest, TableExportFormat, Transaction, TransactionCreatedTime, TransactionRid, TransactionStatus, TransactionType, View, ViewBackingDataset, ViewPrimaryKey, ViewPrimaryKeyResolution, } from "./_components.js";
2
+ export type { AbortTransactionPermissionDenied, AddBackingDatasetsPermissionDenied, AddPrimaryKeyPermissionDenied, BranchAlreadyExists, BranchNotFound, BuildTransactionPermissionDenied, ColumnTypesNotSupported, CommitTransactionPermissionDenied, CreateBranchPermissionDenied, CreateDatasetPermissionDenied, CreateTransactionPermissionDenied, CreateViewPermissionDenied, DatasetNotFound, DatasetReadNotSupported, DatasetViewNotFound, DeleteBranchPermissionDenied, DeleteFilePermissionDenied, DeleteSchemaPermissionDenied, FileAlreadyExists, FileNotFound, FileNotFoundOnBranch, FileNotFoundOnTransactionRange, GetDatasetSchedulesPermissionDenied, GetDatasetSchemaPermissionDenied, GetFileContentPermissionDenied, InputBackingDatasetNotInOutputViewProject, InvalidBranchName, InvalidTransactionType, InvalidViewBackingDataset, JobTransactionPermissionDenied, OpenTransactionAlreadyExists, PutDatasetSchemaPermissionDenied, PutSchemaPermissionDenied, ReadTableDatasetPermissionDenied, ReadTableError, ReadTableRowLimitExceeded, ReadTableTimeout, RemoveBackingDatasetsPermissionDenied, ReplaceBackingDatasetsPermissionDenied, SchemaNotFound, TransactionNotCommitted, TransactionNotFound, TransactionNotOpen, UploadFilePermissionDenied, ViewDatasetCleanupFailed, ViewNotFound, ViewPrimaryKeyCannotBeModified, ViewPrimaryKeyMustContainAtLeastOneColumn, ViewPrimaryKeyRequiresBackingDatasets, } from "./_errors.js";
3
3
  export * as Branches from "./public/Branch.js";
4
4
  export * as Datasets from "./public/Dataset.js";
5
5
  export * as Files from "./public/File.js";
6
6
  export * as Transactions from "./public/Transaction.js";
7
+ export * as Views from "./public/View.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACP,WAAW,EACX,UAAU,EACV,IAAI,EACJ,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,gCAAgC,EAChC,mBAAmB,EACnB,cAAc,EACd,gCAAgC,EAChC,uBAAuB,EACvB,iCAAiC,EACjC,4BAA4B,EAC5B,6BAA6B,EAC7B,iCAAiC,EACjC,eAAe,EACf,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,8BAA8B,EAC9B,mCAAmC,EACnC,8BAA8B,EAC9B,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,gCAAgC,EAChC,cAAc,EACd,yBAAyB,EACzB,gBAAgB,EAChB,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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,yBAAyB,EACzB,oBAAoB,EACpB,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,OAAO,EACP,WAAW,EACX,UAAU,EACV,IAAI,EACJ,eAAe,EACf,SAAS,EACT,wBAAwB,EACxB,oBAAoB,EACpB,iBA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,kBAAkB,CAAC"}
@@ -17,4 +17,5 @@ export * as Branches from "./public/Branch.js";
17
17
  export * as Datasets from "./public/Dataset.js";
18
18
  export * as Files from "./public/File.js";
19
19
  export * as Transactions from "./public/Transaction.js";
20
+ export * as Views from "./public/View.js";
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","names":["Branches","Datasets","Files","Transactions","Views"],"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\";\nexport * as Views from \"./public/View.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;AACvD,OAAO,KAAKC,KAAK,MAAM,kBAAkB","ignoreList":[]}
@@ -58,4 +58,36 @@ export declare function readTable($ctx: $Client | $ClientContext | $OldClient |
58
58
  rowLimit?: number | undefined;
59
59
  }
60
60
  ]): Promise<Response>;
61
+ /**
62
+ * Gets a dataset's schema. If no `endTransactionRid` is provided, the latest committed version will be used.
63
+ *
64
+ * @beta
65
+ *
66
+ * Required Scopes: [api:datasets-read]
67
+ * URL: /v2/datasets/{datasetRid}/getSchema
68
+ */
69
+ export declare function getSchema($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
70
+ datasetRid: _Datasets.DatasetRid,
71
+ $queryParams?: {
72
+ branchName?: _Datasets.BranchName | undefined;
73
+ endTransactionRid?: _Datasets.TransactionRid | undefined;
74
+ versionId?: _Core.VersionId | undefined;
75
+ preview?: _Core.PreviewMode | undefined;
76
+ }
77
+ ]): Promise<_Datasets.GetDatasetSchemaResponse>;
78
+ /**
79
+ * Adds a schema on an existing dataset using a PUT request.
80
+ *
81
+ * @beta
82
+ *
83
+ * Required Scopes: [api:datasets-write]
84
+ * URL: /v2/datasets/{datasetRid}/putSchema
85
+ */
86
+ export declare function putSchema($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
87
+ datasetRid: _Datasets.DatasetRid,
88
+ $body: _Datasets.PutDatasetSchemaRequest,
89
+ $queryParams?: {
90
+ preview?: _Core.PreviewMode | undefined;
91
+ }
92
+ ]): Promise<_Datasets.GetDatasetSchemaResponse>;
61
93
  //# sourceMappingURL=Dataset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dataset.d.ts","sourceRoot":"","sources":["../../../src/public/Dataset.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAQpD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,oBAAoB,CAAC,GAC/C,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAE5B;AAMD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,GAC1C,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAE5B;AAcD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,SAA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BAAiB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QACzD,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC;QACpC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAC/B;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAcD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAEhC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;QAC9C,iBAAiB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC;QACzD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAE7C;AAUD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,KAAK,EAAE,SAAS,CAAC,uBAAuB;IACxC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAE7C"}
@@ -65,4 +65,28 @@ const _readTable = [0, "/v2/datasets/{0}/readTable", 2,, "application/octet-stre
65
65
  export function readTable($ctx, ...args) {
66
66
  return $foundryPlatformFetch($ctx, _readTable, ...args);
67
67
  }
68
+ const _getSchema = [0, "/v2/datasets/{0}/getSchema", 2];
69
+ /**
70
+ * Gets a dataset's schema. If no `endTransactionRid` is provided, the latest committed version will be used.
71
+ *
72
+ * @beta
73
+ *
74
+ * Required Scopes: [api:datasets-read]
75
+ * URL: /v2/datasets/{datasetRid}/getSchema
76
+ */
77
+ export function getSchema($ctx, ...args) {
78
+ return $foundryPlatformFetch($ctx, _getSchema, ...args);
79
+ }
80
+ const _putSchema = [2, "/v2/datasets/{0}/putSchema", 3];
81
+ /**
82
+ * Adds a schema on an existing dataset using a PUT request.
83
+ *
84
+ * @beta
85
+ *
86
+ * Required Scopes: [api:datasets-write]
87
+ * URL: /v2/datasets/{datasetRid}/putSchema
88
+ */
89
+ export function putSchema($ctx, ...args) {
90
+ return $foundryPlatformFetch($ctx, _putSchema, ...args);
91
+ }
68
92
  //# sourceMappingURL=Dataset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_getSchedules","getSchedules","_readTable","readTable"],"sources":["Dataset.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/datasets\", 1];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}\"];\n/**\n * Get the Dataset with the specified rid.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getSchedules = [0, \"/v2/datasets/{0}/getSchedules\", 2];\n/**\n * Get the RIDs of the Schedules that target the given Dataset\n *\n * @beta\n *\n * Required Scopes: [api:orchestration-read, api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/getSchedules\n */\nexport function getSchedules($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchedules, ...args);\n}\nconst _readTable = [0, \"/v2/datasets/{0}/readTable\", 2, , \"application/octet-stream\"];\n/**\n * Gets the content of a dataset as a table in the specified format.\n *\n * This endpoint currently does not support views (virtual datasets composed of other datasets).\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,aAAa,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AAC7D;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,UAAU,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,UAAU,EAAE,GAAGL,IAAI,CAAC;AAC3D","ignoreList":[]}
1
+ {"version":3,"file":"Dataset.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_getSchedules","getSchedules","_readTable","readTable","_getSchema","getSchema","_putSchema","putSchema"],"sources":["Dataset.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/datasets\", 1];\n/**\n * Creates a new Dataset. A default branch - `master` for most enrollments - will be created on the Dataset.\n *\n * @public\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/{0}\"];\n/**\n * Get the Dataset with the specified rid.\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _getSchedules = [0, \"/v2/datasets/{0}/getSchedules\", 2];\n/**\n * Get the RIDs of the Schedules that target the given Dataset\n *\n * @beta\n *\n * Required Scopes: [api:orchestration-read, api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/getSchedules\n */\nexport function getSchedules($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchedules, ...args);\n}\nconst _readTable = [0, \"/v2/datasets/{0}/readTable\", 2, , \"application/octet-stream\"];\n/**\n * Gets the content of a dataset as a table in the specified format.\n *\n * This endpoint currently does not support views (virtual datasets composed of other datasets).\n *\n * @public\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/readTable\n */\nexport function readTable($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readTable, ...args);\n}\nconst _getSchema = [0, \"/v2/datasets/{0}/getSchema\", 2];\n/**\n * Gets a dataset's schema. If no `endTransactionRid` is provided, the latest committed version will be used.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-read]\n * URL: /v2/datasets/{datasetRid}/getSchema\n */\nexport function getSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getSchema, ...args);\n}\nconst _putSchema = [2, \"/v2/datasets/{0}/putSchema\", 3];\n/**\n * Adds a schema on an existing dataset using a PUT request.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/{datasetRid}/putSchema\n */\nexport function putSchema($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _putSchema, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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GC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,UAAU,EAAE,GAAGP,IAAI,CAAC;AAC3D;AACA,MAAMS,UAAU,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,UAAU,EAAE,GAAGT,IAAI,CAAC;AAC3D","ignoreList":[]}
@@ -0,0 +1,99 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _Datasets from "../_components.js";
5
+ /**
6
+ * Create a new View.
7
+ *
8
+ * @beta
9
+ *
10
+ * Required Scopes: [api:datasets-write]
11
+ * URL: /v2/datasets/views
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ $body: _Datasets.CreateViewRequest,
15
+ $queryParams?: {
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_Datasets.View>;
19
+ /**
20
+ * Get metadata for a View.
21
+ *
22
+ * @beta
23
+ *
24
+ * Required Scopes: []
25
+ * URL: /v2/datasets/views/{viewDatasetRid}
26
+ */
27
+ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
+ viewDatasetRid: _Datasets.DatasetRid,
29
+ $queryParams?: {
30
+ branch?: _Datasets.BranchName | undefined;
31
+ preview?: _Core.PreviewMode | undefined;
32
+ }
33
+ ]): Promise<_Datasets.View>;
34
+ /**
35
+ * Adds one or more backing datasets to a View. Any duplicates with the same dataset RID and branch name are
36
+ * ignored.
37
+ *
38
+ * @beta
39
+ *
40
+ * Required Scopes: [api:datasets-write]
41
+ * URL: /v2/datasets/views/{viewDatasetRid}/addBackingDatasets
42
+ */
43
+ export declare function addBackingDatasets($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
44
+ viewDatasetRid: _Datasets.DatasetRid,
45
+ $body: _Datasets.AddBackingDatasetsRequest,
46
+ $queryParams?: {
47
+ preview?: _Core.PreviewMode | undefined;
48
+ }
49
+ ]): Promise<_Datasets.View>;
50
+ /**
51
+ * Replaces the backing datasets for a View. Removing any backing dataset triggers a
52
+ * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction the next time the View is updated.
53
+ *
54
+ * @beta
55
+ *
56
+ * Required Scopes: [api:datasets-write]
57
+ * URL: /v2/datasets/views/{viewDatasetRid}/replaceBackingDatasets
58
+ */
59
+ export declare function replaceBackingDatasets($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
60
+ viewDatasetRid: _Datasets.DatasetRid,
61
+ $body: _Datasets.ReplaceBackingDatasetsRequest,
62
+ $queryParams?: {
63
+ preview?: _Core.PreviewMode | undefined;
64
+ }
65
+ ]): Promise<_Datasets.View>;
66
+ /**
67
+ * Removes specified backing datasets from a View. Removing a dataset triggers a
68
+ * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction on the next update. If a
69
+ * specified dataset does not exist, no error is thrown.
70
+ *
71
+ * @beta
72
+ *
73
+ * Required Scopes: [api:datasets-write]
74
+ * URL: /v2/datasets/views/{viewDatasetRid}/removeBackingDatasets
75
+ */
76
+ export declare function removeBackingDatasets($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
77
+ viewDatasetRid: _Datasets.DatasetRid,
78
+ $body: _Datasets.RemoveBackingDatasetsRequest,
79
+ $queryParams?: {
80
+ preview?: _Core.PreviewMode | undefined;
81
+ }
82
+ ]): Promise<_Datasets.View>;
83
+ /**
84
+ * Adds a primary key to a View that does not already have one. Primary keys are treated as
85
+ * guarantees provided by the creator of the dataset.
86
+ *
87
+ * @beta
88
+ *
89
+ * Required Scopes: [api:datasets-write]
90
+ * URL: /v2/datasets/views/{viewDatasetRid}/addPrimaryKey
91
+ */
92
+ export declare function addPrimaryKey($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
93
+ viewDatasetRid: _Datasets.DatasetRid,
94
+ $body: _Datasets.AddPrimaryKeyRequest,
95
+ $queryParams?: {
96
+ preview?: _Core.PreviewMode | undefined;
97
+ }
98
+ ]): Promise<_Datasets.View>;
99
+ //# sourceMappingURL=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../src/public/View.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAWpD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,SAAS,CAAC,iBAAiB;IAClC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAEzB;AAYD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,cAAc,EAAE,SAAS,CAAC,UAAU;IAEpC,YAAY,CAAC,EAAE;QACb,MAAM,CAAC,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;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,cAAc,EAAE,SAAS,CAAC,UAAU;IACpC,KAAK,EAAE,SAAS,CAAC,oBAAoB;IACrC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAEzB"}
@@ -0,0 +1,95 @@
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, "/v2/datasets/views", 3];
19
+ /**
20
+ * Create a new View.
21
+ *
22
+ * @beta
23
+ *
24
+ * Required Scopes: [api:datasets-write]
25
+ * URL: /v2/datasets/views
26
+ */
27
+ export function create($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _create, ...args);
29
+ }
30
+ const _get = [0, "/v2/datasets/views/{0}", 2];
31
+ /**
32
+ * Get metadata for a View.
33
+ *
34
+ * @beta
35
+ *
36
+ * Required Scopes: []
37
+ * URL: /v2/datasets/views/{viewDatasetRid}
38
+ */
39
+ export function get($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _get, ...args);
41
+ }
42
+ const _addBackingDatasets = [1, "/v2/datasets/views/{0}/addBackingDatasets", 3];
43
+ /**
44
+ * Adds one or more backing datasets to a View. Any duplicates with the same dataset RID and branch name are
45
+ * ignored.
46
+ *
47
+ * @beta
48
+ *
49
+ * Required Scopes: [api:datasets-write]
50
+ * URL: /v2/datasets/views/{viewDatasetRid}/addBackingDatasets
51
+ */
52
+ export function addBackingDatasets($ctx, ...args) {
53
+ return $foundryPlatformFetch($ctx, _addBackingDatasets, ...args);
54
+ }
55
+ const _replaceBackingDatasets = [2, "/v2/datasets/views/{0}/replaceBackingDatasets", 3];
56
+ /**
57
+ * Replaces the backing datasets for a View. Removing any backing dataset triggers a
58
+ * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction the next time the View is updated.
59
+ *
60
+ * @beta
61
+ *
62
+ * Required Scopes: [api:datasets-write]
63
+ * URL: /v2/datasets/views/{viewDatasetRid}/replaceBackingDatasets
64
+ */
65
+ export function replaceBackingDatasets($ctx, ...args) {
66
+ return $foundryPlatformFetch($ctx, _replaceBackingDatasets, ...args);
67
+ }
68
+ const _removeBackingDatasets = [1, "/v2/datasets/views/{0}/removeBackingDatasets", 3];
69
+ /**
70
+ * Removes specified backing datasets from a View. Removing a dataset triggers a
71
+ * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction on the next update. If a
72
+ * specified dataset does not exist, no error is thrown.
73
+ *
74
+ * @beta
75
+ *
76
+ * Required Scopes: [api:datasets-write]
77
+ * URL: /v2/datasets/views/{viewDatasetRid}/removeBackingDatasets
78
+ */
79
+ export function removeBackingDatasets($ctx, ...args) {
80
+ return $foundryPlatformFetch($ctx, _removeBackingDatasets, ...args);
81
+ }
82
+ const _addPrimaryKey = [1, "/v2/datasets/views/{0}/addPrimaryKey", 3];
83
+ /**
84
+ * Adds a primary key to a View that does not already have one. Primary keys are treated as
85
+ * guarantees provided by the creator of the dataset.
86
+ *
87
+ * @beta
88
+ *
89
+ * Required Scopes: [api:datasets-write]
90
+ * URL: /v2/datasets/views/{viewDatasetRid}/addPrimaryKey
91
+ */
92
+ export function addPrimaryKey($ctx, ...args) {
93
+ return $foundryPlatformFetch($ctx, _addPrimaryKey, ...args);
94
+ }
95
+ //# sourceMappingURL=View.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_addBackingDatasets","addBackingDatasets","_replaceBackingDatasets","replaceBackingDatasets","_removeBackingDatasets","removeBackingDatasets","_addPrimaryKey","addPrimaryKey"],"sources":["View.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, \"/v2/datasets/views\", 3];\n/**\n * Create a new View.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/views\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/datasets/views/{0}\", 2];\n/**\n * Get metadata for a View.\n *\n * @beta\n *\n * Required Scopes: []\n * URL: /v2/datasets/views/{viewDatasetRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _addBackingDatasets = [1, \"/v2/datasets/views/{0}/addBackingDatasets\", 3];\n/**\n * Adds one or more backing datasets to a View. Any duplicates with the same dataset RID and branch name are\n * ignored.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/views/{viewDatasetRid}/addBackingDatasets\n */\nexport function addBackingDatasets($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _addBackingDatasets, ...args);\n}\nconst _replaceBackingDatasets = [2, \"/v2/datasets/views/{0}/replaceBackingDatasets\", 3];\n/**\n * Replaces the backing datasets for a View. Removing any backing dataset triggers a\n * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction the next time the View is updated.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/views/{viewDatasetRid}/replaceBackingDatasets\n */\nexport function replaceBackingDatasets($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _replaceBackingDatasets, ...args);\n}\nconst _removeBackingDatasets = [1, \"/v2/datasets/views/{0}/removeBackingDatasets\", 3];\n/**\n * Removes specified backing datasets from a View. Removing a dataset triggers a\n * [SNAPSHOT](https://www.palantir.com/docs/foundry/data-integration/datasets#snapshot) transaction on the next update. If a\n * specified dataset does not exist, no error is thrown.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/views/{viewDatasetRid}/removeBackingDatasets\n */\nexport function removeBackingDatasets($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _removeBackingDatasets, ...args);\n}\nconst _addPrimaryKey = [1, \"/v2/datasets/views/{0}/addPrimaryKey\", 3];\n/**\n * Adds a primary key to a View that does not already have one. Primary keys are treated as\n * guarantees provided by the creator of the dataset.\n *\n * @beta\n *\n * Required Scopes: [api:datasets-write]\n * URL: /v2/datasets/views/{viewDatasetRid}/addPrimaryKey\n */\nexport function addPrimaryKey($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _addPrimaryKey, ...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,oBAAoB,EAAE,CAAC,CAAC;AAC5C;AACA;AACA;AAC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AC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,cAAc,EAAE,GAAGT,IAAI,CAAC;AAC/D","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/foundry.datasets",
3
- "version": "2.23.0",
3
+ "version": "2.25.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@osdk/shared.client": "^1.0.1",
23
23
  "@osdk/shared.client2": "^1.0.0",
24
- "@osdk/foundry.core": "2.23.0",
25
- "@osdk/shared.net.platformapi": "~1.3.0",
26
- "@osdk/foundry.filesystem": "2.23.0"
24
+ "@osdk/foundry.core": "2.25.0",
25
+ "@osdk/foundry.filesystem": "2.25.0",
26
+ "@osdk/shared.net.platformapi": "~1.4.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "typescript": "^5.5.4",
@@ -46,7 +46,7 @@
46
46
  "sls": {
47
47
  "dependencies": {
48
48
  "com.palantir.foundry.api:api-gateway": {
49
- "minVersion": "1.1199.0",
49
+ "minVersion": "1.1241.0",
50
50
  "maxVersion": "1.x.x",
51
51
  "optional": false
52
52
  }