@osdk/foundry.connectivity 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,105 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Datasets from "@osdk/foundry.datasets";
3
+ export type LooselyBrandedString<T extends string> = string & {
4
+ __LOOSE_BRAND?: T;
5
+ };
6
+ /**
7
+ * The Resource Identifier (RID) of a Connection (formerly known as a source).
8
+ *
9
+ * Log Safety: SAFE
10
+ */
11
+ export type ConnectionRid = LooselyBrandedString<"ConnectionRid">;
12
+ /**
13
+ * Log Safety: UNSAFE
14
+ */
15
+ export interface FileImport {
16
+ rid: FileImportRid;
17
+ connectionRid: ConnectionRid;
18
+ datasetRid: _Datasets.DatasetRid;
19
+ branchName?: _Datasets.BranchName;
20
+ displayName: FileImportDisplayName;
21
+ fileImportFilters: Array<FileImportFilter>;
22
+ importMode: FileImportMode;
23
+ subfolder?: string;
24
+ }
25
+ /**
26
+ * A custom file import filter. Custom file import filters can be fetched but cannot currently be used
27
+ when creating or updating file imports.
28
+ *
29
+ * Log Safety: UNSAFE
30
+ */
31
+ export interface FileImportCustomFilter {
32
+ config: any;
33
+ }
34
+ /**
35
+ * Log Safety: UNSAFE
36
+ */
37
+ export type FileImportDisplayName = LooselyBrandedString<"FileImportDisplayName">;
38
+ /**
39
+ * Filters allow you to filter source files
40
+ before they are imported into Foundry.
41
+ *
42
+ * Log Safety: UNSAFE
43
+ */
44
+ export type FileImportFilter = ({
45
+ type: "customFilter";
46
+ } & FileImportCustomFilter) | ({
47
+ type: "lastModifiedAfterFilter";
48
+ } & FileLastModifiedAfterFilter) | ({
49
+ type: "pathMatchesFilter";
50
+ } & FilePathMatchesFilter) | ({
51
+ type: "fileSizeFilter";
52
+ } & FileSizeFilter);
53
+ /**
54
+ * Import mode governs how raw files are read from an external system, and written into a Foundry dataset.
55
+ SNAPSHOT: Defines a new dataset state consisting only of files from a particular import execution.
56
+ APPEND: Purely additive and yields data from previous import executions in addition to newly added files.
57
+ UPDATE: Replaces existing files from previous import executions based on file names.
58
+ *
59
+ * Log Safety: SAFE
60
+ */
61
+ export type FileImportMode = "SNAPSHOT" | "APPEND" | "UPDATE";
62
+ /**
63
+ * The Resource Identifier (RID) of a FileImport (formerly known as a batch sync).
64
+ *
65
+ * Log Safety: SAFE
66
+ */
67
+ export type FileImportRid = LooselyBrandedString<"FileImportRid">;
68
+ /**
69
+ * Only import files that have been modified after a specified timestamp
70
+ *
71
+ * Log Safety: UNSAFE
72
+ */
73
+ export interface FileLastModifiedAfterFilter {
74
+ afterTimestamp?: string;
75
+ }
76
+ /**
77
+ * Only import files whose path (relative to the root of the source) matches the regular expression.
78
+ Example
79
+ Suppose we are importing files from relative/subfolder.
80
+ relative/subfolder contains:
81
+
82
+ relative/subfolder/include-file.txt
83
+ relative/subfolder/exclude-file.txt
84
+ relative/subfolder/other-file.txt
85
+
86
+ With the relative/subfolder/include-.*.txt regex, only relative/subfolder/include-file.txt will be imported.
87
+ *
88
+ * Log Safety: UNSAFE
89
+ */
90
+ export interface FilePathMatchesFilter {
91
+ regex: string;
92
+ }
93
+ /**
94
+ * Only import files whose size is between the specified minimum and maximum values.
95
+ At least one of greaterThan or lessThan should be present.
96
+ If both are present, the value specified for greaterThan must be strictly less than the value specified for
97
+ lessThan.
98
+ *
99
+ * Log Safety: SAFE
100
+ */
101
+ export interface FileSizeFilter {
102
+ greaterThan?: _Core.SizeBytes;
103
+ lessThan?: _Core.SizeBytes;
104
+ }
105
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEzD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC;IAClC,WAAW,EAAE,qBAAqB,CAAC;IACnC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC3C,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;KAKK;AACL,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CACtD,uBAAuB,CACxB,CAAC;AAEF;;;;;KAKK;AACL,MAAM,MAAM,gBAAgB,GACxB,CAAC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG,sBAAsB,CAAC,GACnD,CAAC;IAAE,IAAI,EAAE,yBAAyB,CAAA;CAAE,GAAG,2BAA2B,CAAC,GACnE,CAAC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,qBAAqB,CAAC,GACvD,CAAC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,cAAc,CAAC,CAAC;AAElD;;;;;;;KAOK;AACL,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;KAaK;AACL,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;KAOK;AACL,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
@@ -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,43 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * Could not delete the FileImport.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface DeleteFileImportPermissionDenied {
10
+ errorCode: "PERMISSION_DENIED";
11
+ errorName: "DeleteFileImportPermissionDenied";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ fileImportRid: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * Could not execute the FileImport.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface ExecuteFileImportPermissionDenied {
23
+ errorCode: "PERMISSION_DENIED";
24
+ errorName: "ExecuteFileImportPermissionDenied";
25
+ errorInstanceId: string;
26
+ parameters: {
27
+ fileImportRid: unknown;
28
+ };
29
+ }
30
+ /**
31
+ * The given FileImport could not be found.
32
+ *
33
+ * Log Safety: SAFE
34
+ */
35
+ export interface FileImportNotFound {
36
+ errorCode: "NOT_FOUND";
37
+ errorName: "FileImportNotFound";
38
+ errorInstanceId: string;
39
+ parameters: {
40
+ fileImportRid: unknown;
41
+ };
42
+ }
43
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,kCAAkC,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,mCAAmC,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,oBAAoB,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH"}
@@ -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":[]}
@@ -0,0 +1,4 @@
1
+ export type { ConnectionRid, FileImport, FileImportCustomFilter, FileImportDisplayName, FileImportFilter, FileImportMode, FileImportRid, FileLastModifiedAfterFilter, FilePathMatchesFilter, FileSizeFilter, } from "./_components.js";
2
+ export type { DeleteFileImportPermissionDenied, ExecuteFileImportPermissionDenied, FileImportNotFound, } from "./_errors.js";
3
+ export * as FileImports from "./public/FileImport.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,gCAAgC,EAChC,iCAAiC,EACjC,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,WAAW,MAAM,wBAAwB,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 * as FileImports from "./public/FileImport.js";
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["FileImports"],"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 FileImports from \"./public/FileImport.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,WAAW,MAAM,wBAAwB","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Orchestration from "@osdk/foundry.orchestration";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
4
+ import type * as _Connectivity from "../_components.js";
5
+ /**
6
+ * Delete the FileImport with the specified RID.
7
+ * Deleting the file import does not delete the destination dataset but the dataset will no longer
8
+ * be updated by this import.
9
+ *
10
+ * @alpha
11
+ *
12
+ * Required Scopes: [api:connectivity-file-import-write]
13
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
14
+ */
15
+ export declare function deleteFileImport($ctx: $Client | $ClientContext, ...args: [
16
+ fileImportRid: _Connectivity.FileImportRid,
17
+ $queryParams?: {
18
+ preview?: _Core.PreviewMode | undefined;
19
+ }
20
+ ]): Promise<void>;
21
+ /**
22
+ * Get the FileImport with the specified rid.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:connectivity-file-import-read]
27
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
28
+ */
29
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
30
+ fileImportRid: _Connectivity.FileImportRid,
31
+ $queryParams?: {
32
+ preview?: _Core.PreviewMode | undefined;
33
+ }
34
+ ]): Promise<_Connectivity.FileImport>;
35
+ /**
36
+ * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).
37
+ * The returned BuildRid can be used to check the status via the Orchestration API.
38
+ *
39
+ * @alpha
40
+ *
41
+ * Required Scopes: [api:connectivity-file-import-execute]
42
+ * URL: /v2/connectivity/fileImports/{fileImportRid}/execute
43
+ */
44
+ export declare function execute($ctx: $Client | $ClientContext, ...args: [
45
+ fileImportRid: _Connectivity.FileImportRid,
46
+ $queryParams?: {
47
+ preview?: _Core.PreviewMode | undefined;
48
+ }
49
+ ]): Promise<_Orchestration.BuildRid>;
50
+ //# sourceMappingURL=FileImport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileImport.d.ts","sourceRoot":"","sources":["../../../src/public/FileImport.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,cAAc,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAWxD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAEnC;AASD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAElC"}
@@ -0,0 +1,57 @@
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 _deleteFileImport = [3, "/v2/connectivity/fileImports/{0}", 2];
19
+ /**
20
+ * Delete the FileImport with the specified RID.
21
+ * Deleting the file import does not delete the destination dataset but the dataset will no longer
22
+ * be updated by this import.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:connectivity-file-import-write]
27
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
28
+ */
29
+ export function deleteFileImport($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _deleteFileImport, ...args);
31
+ }
32
+ const _get = [0, "/v2/connectivity/fileImports/{0}", 2];
33
+ /**
34
+ * Get the FileImport with the specified rid.
35
+ *
36
+ * @alpha
37
+ *
38
+ * Required Scopes: [api:connectivity-file-import-read]
39
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
40
+ */
41
+ export function get($ctx, ...args) {
42
+ return $foundryPlatformFetch($ctx, _get, ...args);
43
+ }
44
+ const _execute = [1, "/v2/connectivity/fileImports/{0}/execute", 2];
45
+ /**
46
+ * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).
47
+ * The returned BuildRid can be used to check the status via the Orchestration API.
48
+ *
49
+ * @alpha
50
+ *
51
+ * Required Scopes: [api:connectivity-file-import-execute]
52
+ * URL: /v2/connectivity/fileImports/{fileImportRid}/execute
53
+ */
54
+ export function execute($ctx, ...args) {
55
+ return $foundryPlatformFetch($ctx, _execute, ...args);
56
+ }
57
+ //# sourceMappingURL=FileImport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileImport.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFileImport","deleteFileImport","$ctx","args","_get","get","_execute","execute"],"sources":["FileImport.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 _deleteFileImport = [3, \"/v2/connectivity/fileImports/{0}\", 2];\n/**\n * Delete the FileImport with the specified RID.\n * Deleting the file import does not delete the destination dataset but the dataset will no longer\n * be updated by this import.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-write]\n * URL: /v2/connectivity/fileImports/{fileImportRid}\n */\nexport function deleteFileImport($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFileImport, ...args);\n}\nconst _get = [0, \"/v2/connectivity/fileImports/{0}\", 2];\n/**\n * Get the FileImport with the specified rid.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-read]\n * URL: /v2/connectivity/fileImports/{fileImportRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _execute = [1, \"/v2/connectivity/fileImports/{0}/execute\", 2];\n/**\n * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).\n * The returned BuildRid can be used to check the status via the Orchestration API.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-execute]\n * URL: /v2/connectivity/fileImports/{fileImportRid}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...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,iBAAiB,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,iBAAiB,EAAE,GAAGG,IAAI,CAAC;AAClE;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AACvD;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,QAAQ,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,QAAQ,EAAE,GAAGH,IAAI,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1,105 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Datasets from "@osdk/foundry.datasets";
3
+ export type LooselyBrandedString<T extends string> = string & {
4
+ __LOOSE_BRAND?: T;
5
+ };
6
+ /**
7
+ * The Resource Identifier (RID) of a Connection (formerly known as a source).
8
+ *
9
+ * Log Safety: SAFE
10
+ */
11
+ export type ConnectionRid = LooselyBrandedString<"ConnectionRid">;
12
+ /**
13
+ * Log Safety: UNSAFE
14
+ */
15
+ export interface FileImport {
16
+ rid: FileImportRid;
17
+ connectionRid: ConnectionRid;
18
+ datasetRid: _Datasets.DatasetRid;
19
+ branchName?: _Datasets.BranchName;
20
+ displayName: FileImportDisplayName;
21
+ fileImportFilters: Array<FileImportFilter>;
22
+ importMode: FileImportMode;
23
+ subfolder?: string;
24
+ }
25
+ /**
26
+ * A custom file import filter. Custom file import filters can be fetched but cannot currently be used
27
+ when creating or updating file imports.
28
+ *
29
+ * Log Safety: UNSAFE
30
+ */
31
+ export interface FileImportCustomFilter {
32
+ config: any;
33
+ }
34
+ /**
35
+ * Log Safety: UNSAFE
36
+ */
37
+ export type FileImportDisplayName = LooselyBrandedString<"FileImportDisplayName">;
38
+ /**
39
+ * Filters allow you to filter source files
40
+ before they are imported into Foundry.
41
+ *
42
+ * Log Safety: UNSAFE
43
+ */
44
+ export type FileImportFilter = ({
45
+ type: "customFilter";
46
+ } & FileImportCustomFilter) | ({
47
+ type: "lastModifiedAfterFilter";
48
+ } & FileLastModifiedAfterFilter) | ({
49
+ type: "pathMatchesFilter";
50
+ } & FilePathMatchesFilter) | ({
51
+ type: "fileSizeFilter";
52
+ } & FileSizeFilter);
53
+ /**
54
+ * Import mode governs how raw files are read from an external system, and written into a Foundry dataset.
55
+ SNAPSHOT: Defines a new dataset state consisting only of files from a particular import execution.
56
+ APPEND: Purely additive and yields data from previous import executions in addition to newly added files.
57
+ UPDATE: Replaces existing files from previous import executions based on file names.
58
+ *
59
+ * Log Safety: SAFE
60
+ */
61
+ export type FileImportMode = "SNAPSHOT" | "APPEND" | "UPDATE";
62
+ /**
63
+ * The Resource Identifier (RID) of a FileImport (formerly known as a batch sync).
64
+ *
65
+ * Log Safety: SAFE
66
+ */
67
+ export type FileImportRid = LooselyBrandedString<"FileImportRid">;
68
+ /**
69
+ * Only import files that have been modified after a specified timestamp
70
+ *
71
+ * Log Safety: UNSAFE
72
+ */
73
+ export interface FileLastModifiedAfterFilter {
74
+ afterTimestamp?: string;
75
+ }
76
+ /**
77
+ * Only import files whose path (relative to the root of the source) matches the regular expression.
78
+ Example
79
+ Suppose we are importing files from relative/subfolder.
80
+ relative/subfolder contains:
81
+
82
+ relative/subfolder/include-file.txt
83
+ relative/subfolder/exclude-file.txt
84
+ relative/subfolder/other-file.txt
85
+
86
+ With the relative/subfolder/include-.*.txt regex, only relative/subfolder/include-file.txt will be imported.
87
+ *
88
+ * Log Safety: UNSAFE
89
+ */
90
+ export interface FilePathMatchesFilter {
91
+ regex: string;
92
+ }
93
+ /**
94
+ * Only import files whose size is between the specified minimum and maximum values.
95
+ At least one of greaterThan or lessThan should be present.
96
+ If both are present, the value specified for greaterThan must be strictly less than the value specified for
97
+ lessThan.
98
+ *
99
+ * Log Safety: SAFE
100
+ */
101
+ export interface FileSizeFilter {
102
+ greaterThan?: _Core.SizeBytes;
103
+ lessThan?: _Core.SizeBytes;
104
+ }
105
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AAEzD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,aAAa,CAAC;IACnB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC;IAClC,WAAW,EAAE,qBAAqB,CAAC;IACnC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC3C,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;KAKK;AACL,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,GAAG,CAAC;CACb;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CACtD,uBAAuB,CACxB,CAAC;AAEF;;;;;KAKK;AACL,MAAM,MAAM,gBAAgB,GACxB,CAAC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG,sBAAsB,CAAC,GACnD,CAAC;IAAE,IAAI,EAAE,yBAAyB,CAAA;CAAE,GAAG,2BAA2B,CAAC,GACnE,CAAC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,qBAAqB,CAAC,GACvD,CAAC;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,cAAc,CAAC,CAAC;AAElD;;;;;;;KAOK;AACL,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;KAaK;AACL,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;KAOK;AACL,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
@@ -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,43 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * Could not delete the FileImport.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface DeleteFileImportPermissionDenied {
10
+ errorCode: "PERMISSION_DENIED";
11
+ errorName: "DeleteFileImportPermissionDenied";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ fileImportRid: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * Could not execute the FileImport.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface ExecuteFileImportPermissionDenied {
23
+ errorCode: "PERMISSION_DENIED";
24
+ errorName: "ExecuteFileImportPermissionDenied";
25
+ errorInstanceId: string;
26
+ parameters: {
27
+ fileImportRid: unknown;
28
+ };
29
+ }
30
+ /**
31
+ * The given FileImport could not be found.
32
+ *
33
+ * Log Safety: SAFE
34
+ */
35
+ export interface FileImportNotFound {
36
+ errorCode: "NOT_FOUND";
37
+ errorName: "FileImportNotFound";
38
+ errorInstanceId: string;
39
+ parameters: {
40
+ fileImportRid: unknown;
41
+ };
42
+ }
43
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,kCAAkC,CAAC;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,mCAAmC,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,oBAAoB,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH"}
@@ -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":[]}
@@ -0,0 +1,4 @@
1
+ export type { ConnectionRid, FileImport, FileImportCustomFilter, FileImportDisplayName, FileImportFilter, FileImportMode, FileImportRid, FileLastModifiedAfterFilter, FilePathMatchesFilter, FileSizeFilter, } from "./_components.js";
2
+ export type { DeleteFileImportPermissionDenied, ExecuteFileImportPermissionDenied, FileImportNotFound, } from "./_errors.js";
3
+ export * as FileImports from "./public/FileImport.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,gCAAgC,EAChC,iCAAiC,EACjC,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,WAAW,MAAM,wBAAwB,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 * as FileImports from "./public/FileImport.js";
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["FileImports"],"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 FileImports from \"./public/FileImport.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,WAAW,MAAM,wBAAwB","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Orchestration from "@osdk/foundry.orchestration";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
4
+ import type * as _Connectivity from "../_components.js";
5
+ /**
6
+ * Delete the FileImport with the specified RID.
7
+ * Deleting the file import does not delete the destination dataset but the dataset will no longer
8
+ * be updated by this import.
9
+ *
10
+ * @alpha
11
+ *
12
+ * Required Scopes: [api:connectivity-file-import-write]
13
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
14
+ */
15
+ export declare function deleteFileImport($ctx: $Client | $ClientContext, ...args: [
16
+ fileImportRid: _Connectivity.FileImportRid,
17
+ $queryParams?: {
18
+ preview?: _Core.PreviewMode | undefined;
19
+ }
20
+ ]): Promise<void>;
21
+ /**
22
+ * Get the FileImport with the specified rid.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:connectivity-file-import-read]
27
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
28
+ */
29
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
30
+ fileImportRid: _Connectivity.FileImportRid,
31
+ $queryParams?: {
32
+ preview?: _Core.PreviewMode | undefined;
33
+ }
34
+ ]): Promise<_Connectivity.FileImport>;
35
+ /**
36
+ * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).
37
+ * The returned BuildRid can be used to check the status via the Orchestration API.
38
+ *
39
+ * @alpha
40
+ *
41
+ * Required Scopes: [api:connectivity-file-import-execute]
42
+ * URL: /v2/connectivity/fileImports/{fileImportRid}/execute
43
+ */
44
+ export declare function execute($ctx: $Client | $ClientContext, ...args: [
45
+ fileImportRid: _Connectivity.FileImportRid,
46
+ $queryParams?: {
47
+ preview?: _Core.PreviewMode | undefined;
48
+ }
49
+ ]): Promise<_Orchestration.BuildRid>;
50
+ //# sourceMappingURL=FileImport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileImport.d.ts","sourceRoot":"","sources":["../../../src/public/FileImport.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,cAAc,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAWxD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAEnC;AASD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,aAAa,EAAE,aAAa,CAAC,aAAa;IAE1C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAElC"}
@@ -0,0 +1,57 @@
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 _deleteFileImport = [3, "/v2/connectivity/fileImports/{0}", 2];
19
+ /**
20
+ * Delete the FileImport with the specified RID.
21
+ * Deleting the file import does not delete the destination dataset but the dataset will no longer
22
+ * be updated by this import.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:connectivity-file-import-write]
27
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
28
+ */
29
+ export function deleteFileImport($ctx, ...args) {
30
+ return $foundryPlatformFetch($ctx, _deleteFileImport, ...args);
31
+ }
32
+ const _get = [0, "/v2/connectivity/fileImports/{0}", 2];
33
+ /**
34
+ * Get the FileImport with the specified rid.
35
+ *
36
+ * @alpha
37
+ *
38
+ * Required Scopes: [api:connectivity-file-import-read]
39
+ * URL: /v2/connectivity/fileImports/{fileImportRid}
40
+ */
41
+ export function get($ctx, ...args) {
42
+ return $foundryPlatformFetch($ctx, _get, ...args);
43
+ }
44
+ const _execute = [1, "/v2/connectivity/fileImports/{0}/execute", 2];
45
+ /**
46
+ * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).
47
+ * The returned BuildRid can be used to check the status via the Orchestration API.
48
+ *
49
+ * @alpha
50
+ *
51
+ * Required Scopes: [api:connectivity-file-import-execute]
52
+ * URL: /v2/connectivity/fileImports/{fileImportRid}/execute
53
+ */
54
+ export function execute($ctx, ...args) {
55
+ return $foundryPlatformFetch($ctx, _execute, ...args);
56
+ }
57
+ //# sourceMappingURL=FileImport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileImport.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_deleteFileImport","deleteFileImport","$ctx","args","_get","get","_execute","execute"],"sources":["FileImport.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 _deleteFileImport = [3, \"/v2/connectivity/fileImports/{0}\", 2];\n/**\n * Delete the FileImport with the specified RID.\n * Deleting the file import does not delete the destination dataset but the dataset will no longer\n * be updated by this import.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-write]\n * URL: /v2/connectivity/fileImports/{fileImportRid}\n */\nexport function deleteFileImport($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteFileImport, ...args);\n}\nconst _get = [0, \"/v2/connectivity/fileImports/{0}\", 2];\n/**\n * Get the FileImport with the specified rid.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-read]\n * URL: /v2/connectivity/fileImports/{fileImportRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _execute = [1, \"/v2/connectivity/fileImports/{0}/execute\", 2];\n/**\n * Executes the FileImport, which runs asynchronously as a [Foundry Build](https://www.palantir.com/docs/foundry/data-integration/builds/).\n * The returned BuildRid can be used to check the status via the Orchestration API.\n *\n * @alpha\n *\n * Required Scopes: [api:connectivity-file-import-execute]\n * URL: /v2/connectivity/fileImports/{fileImportRid}/execute\n */\nexport function execute($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _execute, ...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,iBAAiB,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC5C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,iBAAiB,EAAE,GAAGG,IAAI,CAAC;AAClE;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AACvD;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,QAAQ,GAAG,CAAC,CAAC,EAAE,0CAA0C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,QAAQ,EAAE,GAAGH,IAAI,CAAC;AACzD","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@osdk/foundry.connectivity",
3
+ "version": "0.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/palantir/foundry-platform-typescript.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./build/browser/index.js",
12
+ "import": "./build/esm/index.js"
13
+ },
14
+ "./*": {
15
+ "browser": "./build/browser/public/*.js",
16
+ "import": "./build/esm/public/*.js"
17
+ }
18
+ },
19
+ "dependencies": {
20
+ "@osdk/shared.client": "^1.0.1",
21
+ "@osdk/shared.net.platformapi": "~0.3.0",
22
+ "@osdk/foundry.core": "2.1.0",
23
+ "@osdk/foundry.datasets": "2.1.0",
24
+ "@osdk/foundry.orchestration": "2.1.0"
25
+ },
26
+ "devDependencies": {
27
+ "typescript": "^5.5.4",
28
+ "@osdk/monorepo.api-extractor": "~0.0.0",
29
+ "@osdk/monorepo.tsconfig": "~0.0.0",
30
+ "@osdk/monorepo.tsup": "~0.0.0"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "files": [
36
+ "build/cjs",
37
+ "build/esm",
38
+ "build/browser",
39
+ "CHANGELOG.md",
40
+ "package.json",
41
+ "templates",
42
+ "*.d.ts"
43
+ ],
44
+ "module": "./build/esm/index.js",
45
+ "types": "./build/esm/index.d.ts",
46
+ "sls": {
47
+ "dependencies": {
48
+ "com.palantir.foundry.api:api-gateway": {
49
+ "minVersion": "1.950.0",
50
+ "maxVersion": "1.x.x",
51
+ "optional": true
52
+ }
53
+ }
54
+ },
55
+ "type": "module",
56
+ "scripts": {
57
+ "check-attw": "monorepo.tool.attw esm",
58
+ "check-spelling": "cspell --quiet .",
59
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
60
+ "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
61
+ "lint": "eslint . && dprint check --config $(find-up dprint.json)",
62
+ "transpile": "monorepo.tool.transpile"
63
+ }
64
+ }