@osdk/foundry.notepad 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.
- package/build/browser/_components.d.ts +290 -0
- package/build/browser/_components.d.ts.map +1 -0
- package/build/browser/_components.js +17 -0
- package/build/browser/_components.js.map +1 -0
- package/build/browser/_errors.d.ts +271 -0
- package/build/browser/_errors.d.ts.map +1 -0
- package/build/browser/_errors.js +17 -0
- package/build/browser/_errors.js.map +1 -0
- package/build/browser/index.d.ts +7 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +20 -0
- package/build/browser/index.js.map +1 -0
- package/build/browser/public/ExportJob.d.ts +34 -0
- package/build/browser/public/ExportJob.d.ts.map +1 -0
- package/build/browser/public/ExportJob.js +43 -0
- package/build/browser/public/ExportJob.js.map +1 -0
- package/build/browser/public/File.d.ts +19 -0
- package/build/browser/public/File.d.ts.map +1 -0
- package/build/browser/public/File.js +30 -0
- package/build/browser/public/File.js.map +1 -0
- package/build/browser/public/GenerationJob.d.ts +36 -0
- package/build/browser/public/GenerationJob.d.ts.map +1 -0
- package/build/browser/public/GenerationJob.js +42 -0
- package/build/browser/public/GenerationJob.js.map +1 -0
- package/build/browser/public/Template.d.ts +25 -0
- package/build/browser/public/Template.d.ts.map +1 -0
- package/build/browser/public/Template.js +35 -0
- package/build/browser/public/Template.js.map +1 -0
- package/build/esm/_components.d.ts +290 -0
- package/build/esm/_components.d.ts.map +1 -0
- package/build/esm/_components.js +17 -0
- package/build/esm/_components.js.map +1 -0
- package/build/esm/_errors.d.ts +271 -0
- package/build/esm/_errors.d.ts.map +1 -0
- package/build/esm/_errors.js +17 -0
- package/build/esm/_errors.js.map +1 -0
- package/build/esm/index.d.ts +7 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +20 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/public/ExportJob.d.ts +34 -0
- package/build/esm/public/ExportJob.d.ts.map +1 -0
- package/build/esm/public/ExportJob.js +43 -0
- package/build/esm/public/ExportJob.js.map +1 -0
- package/build/esm/public/File.d.ts +19 -0
- package/build/esm/public/File.d.ts.map +1 -0
- package/build/esm/public/File.js +30 -0
- package/build/esm/public/File.js.map +1 -0
- package/build/esm/public/GenerationJob.d.ts +36 -0
- package/build/esm/public/GenerationJob.d.ts.map +1 -0
- package/build/esm/public/GenerationJob.js +42 -0
- package/build/esm/public/GenerationJob.js.map +1 -0
- package/build/esm/public/Template.d.ts +25 -0
- package/build/esm/public/Template.d.ts.map +1 -0
- package/build/esm/public/Template.js +35 -0
- package/build/esm/public/Template.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,34 @@
|
|
|
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 _Notepad from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Loads a ExportJob. This endpoint is used to monitor job progress.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:notepad-export]
|
|
11
|
+
* URL: /v2/notepad/exportJobs/{exportJobRid}
|
|
12
|
+
*/
|
|
13
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
exportJobRid: _Notepad.ExportJobRid,
|
|
15
|
+
$queryParams?: {
|
|
16
|
+
preview?: _Core.PreviewMode | undefined;
|
|
17
|
+
}
|
|
18
|
+
]): Promise<_Notepad.ExportJob>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new ExportJob either from an existing Document or using the content generated by a GenerationJob.
|
|
21
|
+
* If an ExportJob succeeds, it will produce a File that can be downloaded.
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*
|
|
25
|
+
* Required Scopes: [api:notepad-export]
|
|
26
|
+
* URL: /v2/notepad/exportJobs/create
|
|
27
|
+
*/
|
|
28
|
+
export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
29
|
+
$body: _Notepad.CreateExportJobRequest,
|
|
30
|
+
$queryParams?: {
|
|
31
|
+
preview?: _Core.PreviewMode | undefined;
|
|
32
|
+
}
|
|
33
|
+
]): Promise<_Notepad.ExportJob>;
|
|
34
|
+
//# sourceMappingURL=ExportJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportJob.d.ts","sourceRoot":"","sources":["../../../src/public/ExportJob.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,QAAQ,MAAM,mBAAmB,CAAC;AAWnD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,YAAY,EAAE,QAAQ,CAAC,YAAY;IAEnC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAE7B;AASD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,QAAQ,CAAC,sBAAsB;IACtC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAE7B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 _get = [0, "/v2/notepad/exportJobs/{0}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Loads a ExportJob. This endpoint is used to monitor job progress.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:notepad-export]
|
|
25
|
+
* URL: /v2/notepad/exportJobs/{exportJobRid}
|
|
26
|
+
*/
|
|
27
|
+
export function get($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
29
|
+
}
|
|
30
|
+
const _create = [1, "/v2/notepad/exportJobs/create", 3];
|
|
31
|
+
/**
|
|
32
|
+
* Creates a new ExportJob either from an existing Document or using the content generated by a GenerationJob.
|
|
33
|
+
* If an ExportJob succeeds, it will produce a File that can be downloaded.
|
|
34
|
+
*
|
|
35
|
+
* @alpha
|
|
36
|
+
*
|
|
37
|
+
* Required Scopes: [api:notepad-export]
|
|
38
|
+
* URL: /v2/notepad/exportJobs/create
|
|
39
|
+
*/
|
|
40
|
+
export function create($ctx, ...args) {
|
|
41
|
+
return $foundryPlatformFetch($ctx, _create, ...args);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=ExportJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExportJob.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_create","create"],"sources":["ExportJob.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 _get = [0, \"/v2/notepad/exportJobs/{0}\", 2];\n/**\n * Loads a ExportJob. This endpoint is used to monitor job progress.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-export]\n * URL: /v2/notepad/exportJobs/{exportJobRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _create = [1, \"/v2/notepad/exportJobs/create\", 3];\n/**\n * Creates a new ExportJob either from an existing Document or using the content generated by a GenerationJob.\n * If an ExportJob succeeds, it will produce a File that can be downloaded.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-export]\n * URL: /v2/notepad/exportJobs/create\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...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,IAAI,GAAG,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,OAAO,EAAE,GAAGD,IAAI,CAAC;AACxD","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 _Notepad from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Download file content.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:notepad-export]
|
|
11
|
+
* URL: /v2/notepad/files/{fileRid}/content
|
|
12
|
+
*/
|
|
13
|
+
export declare function content($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
fileRid: _Notepad.FileRid,
|
|
15
|
+
$queryParams?: {
|
|
16
|
+
preview?: _Core.PreviewMode | undefined;
|
|
17
|
+
}
|
|
18
|
+
]): Promise<Response>;
|
|
19
|
+
//# sourceMappingURL=File.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../src/public/File.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,QAAQ,MAAM,mBAAmB,CAAC;AAWnD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,OAAO,EAAE,QAAQ,CAAC,OAAO;IAEzB,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,CAEnB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 _content = [0, "/v2/notepad/files/{0}/content", 2,, "application/octet-stream"];
|
|
19
|
+
/**
|
|
20
|
+
* Download file content.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:notepad-export]
|
|
25
|
+
* URL: /v2/notepad/files/{fileRid}/content
|
|
26
|
+
*/
|
|
27
|
+
export function content($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _content, ...args);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_content","content","$ctx","args"],"sources":["File.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _content = [0, \"/v2/notepad/files/{0}/content\", 2, , \"application/octet-stream\"];\n/**\n * Download file content.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-export]\n * URL: /v2/notepad/files/{fileRid}/content\n */\nexport function content($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _content, ...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,QAAQ,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,GAAI,0BAA0B,CAAC;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,QAAQ,EAAE,GAAGG,IAAI,CAAC;AACzD","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 _Notepad from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Load an existing GenerationJob. This is used to monitor job progress.
|
|
7
|
+
*
|
|
8
|
+
* @alpha
|
|
9
|
+
*
|
|
10
|
+
* Required Scopes: [api:notepad-write]
|
|
11
|
+
* URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}
|
|
12
|
+
*/
|
|
13
|
+
export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
14
|
+
templateRid: _Notepad.TemplateRid,
|
|
15
|
+
generationJobRid: _Notepad.GenerationJobRid,
|
|
16
|
+
$queryParams?: {
|
|
17
|
+
preview?: _Core.PreviewMode | undefined;
|
|
18
|
+
}
|
|
19
|
+
]): Promise<_Notepad.GenerationJob>;
|
|
20
|
+
/**
|
|
21
|
+
* Save generated content as a new notepad document. This is only possible if the GenerationJob succeeded.
|
|
22
|
+
*
|
|
23
|
+
* @alpha
|
|
24
|
+
*
|
|
25
|
+
* Required Scopes: [api:notepad-write]
|
|
26
|
+
* URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}/saveDocument
|
|
27
|
+
*/
|
|
28
|
+
export declare function saveDocument($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
29
|
+
templateRid: _Notepad.TemplateRid,
|
|
30
|
+
generationJobRid: _Notepad.GenerationJobRid,
|
|
31
|
+
$body: _Notepad.SaveDocumentGenerationJobRequest,
|
|
32
|
+
$queryParams?: {
|
|
33
|
+
preview?: _Core.PreviewMode | undefined;
|
|
34
|
+
}
|
|
35
|
+
]): Promise<_Notepad.SaveDocumentResponse>;
|
|
36
|
+
//# sourceMappingURL=GenerationJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerationJob.d.ts","sourceRoot":"","sources":["../../../src/public/GenerationJob.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,QAAQ,MAAM,mBAAmB,CAAC;AAYnD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,QAAQ,CAAC,WAAW;IACjC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;IAE3C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAEjC;AAWD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,QAAQ,CAAC,WAAW;IACjC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;IAC3C,KAAK,EAAE,QAAQ,CAAC,gCAAgC;IAChD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAExC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 _get = [0, "/v2/notepad/templates/{0}/generationJobs/{1}", 2];
|
|
19
|
+
/**
|
|
20
|
+
* Load an existing GenerationJob. This is used to monitor job progress.
|
|
21
|
+
*
|
|
22
|
+
* @alpha
|
|
23
|
+
*
|
|
24
|
+
* Required Scopes: [api:notepad-write]
|
|
25
|
+
* URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}
|
|
26
|
+
*/
|
|
27
|
+
export function get($ctx, ...args) {
|
|
28
|
+
return $foundryPlatformFetch($ctx, _get, ...args);
|
|
29
|
+
}
|
|
30
|
+
const _saveDocument = [1, "/v2/notepad/templates/{0}/generationJobs/{1}/saveDocument", 3];
|
|
31
|
+
/**
|
|
32
|
+
* Save generated content as a new notepad document. This is only possible if the GenerationJob succeeded.
|
|
33
|
+
*
|
|
34
|
+
* @alpha
|
|
35
|
+
*
|
|
36
|
+
* Required Scopes: [api:notepad-write]
|
|
37
|
+
* URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}/saveDocument
|
|
38
|
+
*/
|
|
39
|
+
export function saveDocument($ctx, ...args) {
|
|
40
|
+
return $foundryPlatformFetch($ctx, _saveDocument, ...args);
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=GenerationJob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenerationJob.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args","_saveDocument","saveDocument"],"sources":["GenerationJob.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 _get = [0, \"/v2/notepad/templates/{0}/generationJobs/{1}\", 2];\n/**\n * Load an existing GenerationJob. This is used to monitor job progress.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-write]\n * URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _saveDocument = [1, \"/v2/notepad/templates/{0}/generationJobs/{1}/saveDocument\", 3];\n/**\n * Save generated content as a new notepad document. This is only possible if the GenerationJob succeeded.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-write]\n * URL: /v2/notepad/templates/{templateRid}/generationJobs/{generationJobRid}/saveDocument\n */\nexport function saveDocument($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _saveDocument, ...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,IAAI,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD;AACA,MAAMC,aAAa,GAAG,CAAC,CAAC,EAAE,2DAA2D,EAAE,CAAC,CAAC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,YAAYA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACxC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,aAAa,EAAE,GAAGD,IAAI,CAAC;AAC9D","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 _Notepad from "../_components.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new GenerationJob. The template generation job will produce new document content by applying
|
|
7
|
+
* template parameters to an existing template. If the GenerationJob succeeds, the resulting contents can
|
|
8
|
+
* be saved as a new Document or exported to a File.
|
|
9
|
+
*
|
|
10
|
+
* The user must have the api:notepad-write scope to create GenerationJobs. Once created a GenerationJob
|
|
11
|
+
* is only accessible to the user that created it.
|
|
12
|
+
*
|
|
13
|
+
* @alpha
|
|
14
|
+
*
|
|
15
|
+
* Required Scopes: [api:notepad-write]
|
|
16
|
+
* URL: /v2/notepad/templates/{templateRid}/generate
|
|
17
|
+
*/
|
|
18
|
+
export declare function generate($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
|
|
19
|
+
templateRid: _Notepad.TemplateRid,
|
|
20
|
+
$body: _Notepad.GenerateTemplateRequest,
|
|
21
|
+
$queryParams?: {
|
|
22
|
+
preview?: _Core.PreviewMode | undefined;
|
|
23
|
+
}
|
|
24
|
+
]): Promise<_Notepad.GenerationJobRid>;
|
|
25
|
+
//# sourceMappingURL=Template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/public/Template.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,QAAQ,MAAM,mBAAmB,CAAC;AAYnD;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,QAAQ,CAAC,WAAW;IACjC,KAAK,EAAE,QAAQ,CAAC,uBAAuB;IACvC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAEpC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 _generate = [1, "/v2/notepad/templates/{0}/generate", 3];
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new GenerationJob. The template generation job will produce new document content by applying
|
|
21
|
+
* template parameters to an existing template. If the GenerationJob succeeds, the resulting contents can
|
|
22
|
+
* be saved as a new Document or exported to a File.
|
|
23
|
+
*
|
|
24
|
+
* The user must have the api:notepad-write scope to create GenerationJobs. Once created a GenerationJob
|
|
25
|
+
* is only accessible to the user that created it.
|
|
26
|
+
*
|
|
27
|
+
* @alpha
|
|
28
|
+
*
|
|
29
|
+
* Required Scopes: [api:notepad-write]
|
|
30
|
+
* URL: /v2/notepad/templates/{templateRid}/generate
|
|
31
|
+
*/
|
|
32
|
+
export function generate($ctx, ...args) {
|
|
33
|
+
return $foundryPlatformFetch($ctx, _generate, ...args);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=Template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_generate","generate","$ctx","args"],"sources":["Template.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 _generate = [1, \"/v2/notepad/templates/{0}/generate\", 3];\n/**\n * Creates a new GenerationJob. The template generation job will produce new document content by applying\n * template parameters to an existing template. If the GenerationJob succeeds, the resulting contents can\n * be saved as a new Document or exported to a File.\n *\n * The user must have the api:notepad-write scope to create GenerationJobs. Once created a GenerationJob\n * is only accessible to the user that created it.\n *\n * @alpha\n *\n * Required Scopes: [api:notepad-write]\n * URL: /v2/notepad/templates/{templateRid}/generate\n */\nexport function generate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _generate, ...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,SAAS,GAAG,CAAC,CAAC,EAAE,oCAAoC,EAAE,CAAC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACpC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,SAAS,EAAE,GAAGG,IAAI,CAAC;AAC1D","ignoreList":[]}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import type * as _Core from "@osdk/foundry.core";
|
|
2
|
+
import type * as _Filesystem from "@osdk/foundry.filesystem";
|
|
3
|
+
import type * as _Ontologies from "@osdk/foundry.ontologies";
|
|
4
|
+
export type LooselyBrandedString<T extends string> = string & {
|
|
5
|
+
__LOOSE_BRAND?: T;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Log Safety: SAFE
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateExportJobRequest {
|
|
11
|
+
exportJobSource: ExportJobSource;
|
|
12
|
+
exportJobTarget: ExportJobTarget;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Log Safety: SAFE
|
|
16
|
+
*/
|
|
17
|
+
export interface Document {
|
|
18
|
+
rid: DocumentRid;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier for a Document
|
|
22
|
+
*
|
|
23
|
+
* Log Safety: SAFE
|
|
24
|
+
*/
|
|
25
|
+
export type DocumentRid = LooselyBrandedString<"DocumentRid">;
|
|
26
|
+
/**
|
|
27
|
+
* Log Safety: UNSAFE
|
|
28
|
+
*/
|
|
29
|
+
export interface ExportJob {
|
|
30
|
+
rid: ExportJobRid;
|
|
31
|
+
status: ExportJobStatus;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Log Safety: SAFE
|
|
35
|
+
*/
|
|
36
|
+
export interface ExportJobDocumentSource {
|
|
37
|
+
documentRid: DocumentRid;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The export job failed
|
|
41
|
+
*
|
|
42
|
+
* Log Safety: UNSAFE
|
|
43
|
+
*/
|
|
44
|
+
export interface ExportJobFailed {
|
|
45
|
+
errorMessage: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Log Safety: SAFE
|
|
49
|
+
*/
|
|
50
|
+
export interface ExportJobGenerationJobSource {
|
|
51
|
+
templateRid: TemplateRid;
|
|
52
|
+
generationJobRid: GenerationJobRid;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Log Safety: SAFE
|
|
56
|
+
*/
|
|
57
|
+
export interface ExportJobPdfTarget {
|
|
58
|
+
userLocale: _Core.Locale;
|
|
59
|
+
userTimezone: _Core.ZoneId;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The unique identifier for a ExportJob
|
|
63
|
+
*
|
|
64
|
+
* Log Safety: SAFE
|
|
65
|
+
*/
|
|
66
|
+
export type ExportJobRid = LooselyBrandedString<"ExportJobRid">;
|
|
67
|
+
/**
|
|
68
|
+
* The export job is currently running
|
|
69
|
+
*
|
|
70
|
+
* Log Safety: SAFE
|
|
71
|
+
*/
|
|
72
|
+
export interface ExportJobRunning {
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Defines the source of contents for an ExportJob
|
|
76
|
+
*
|
|
77
|
+
* Log Safety: SAFE
|
|
78
|
+
*/
|
|
79
|
+
export type ExportJobSource = ({
|
|
80
|
+
type: "generationJobSource";
|
|
81
|
+
} & ExportJobGenerationJobSource) | ({
|
|
82
|
+
type: "documentSource";
|
|
83
|
+
} & ExportJobDocumentSource);
|
|
84
|
+
/**
|
|
85
|
+
* The status of an export job
|
|
86
|
+
*
|
|
87
|
+
* Log Safety: UNSAFE
|
|
88
|
+
*/
|
|
89
|
+
export type ExportJobStatus = ({
|
|
90
|
+
type: "running";
|
|
91
|
+
} & ExportJobRunning) | ({
|
|
92
|
+
type: "failed";
|
|
93
|
+
} & ExportJobFailed) | ({
|
|
94
|
+
type: "succeeded";
|
|
95
|
+
} & ExportJobSucceeded);
|
|
96
|
+
/**
|
|
97
|
+
* The export job succeeded
|
|
98
|
+
*
|
|
99
|
+
* Log Safety: SAFE
|
|
100
|
+
*/
|
|
101
|
+
export interface ExportJobSucceeded {
|
|
102
|
+
fileRid: FileRid;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The target format that the job will export to.
|
|
106
|
+
*
|
|
107
|
+
* Log Safety: SAFE
|
|
108
|
+
*/
|
|
109
|
+
export type ExportJobTarget = {
|
|
110
|
+
type: "pdf";
|
|
111
|
+
} & ExportJobPdfTarget;
|
|
112
|
+
/**
|
|
113
|
+
* Log Safety: SAFE
|
|
114
|
+
*/
|
|
115
|
+
export interface File {
|
|
116
|
+
rid: FileRid;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The unique identifier for a File
|
|
120
|
+
*
|
|
121
|
+
* Log Safety: SAFE
|
|
122
|
+
*/
|
|
123
|
+
export type FileRid = LooselyBrandedString<"FileRid">;
|
|
124
|
+
/**
|
|
125
|
+
* Log Safety: UNSAFE
|
|
126
|
+
*/
|
|
127
|
+
export interface GenerateTemplateRequest {
|
|
128
|
+
templateVersion?: TemplateVersion;
|
|
129
|
+
templateParameters: Record<TemplateParameterName, TemplateParameterValue>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Log Safety: UNSAFE
|
|
133
|
+
*/
|
|
134
|
+
export interface GenerationJob {
|
|
135
|
+
rid: GenerationJobRid;
|
|
136
|
+
status: GenerationJobStatus;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* The generation job failed
|
|
140
|
+
*
|
|
141
|
+
* Log Safety: UNSAFE
|
|
142
|
+
*/
|
|
143
|
+
export interface GenerationJobFailed {
|
|
144
|
+
errorMessage: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The unique identifier for a GenerationJob
|
|
148
|
+
*
|
|
149
|
+
* Log Safety: SAFE
|
|
150
|
+
*/
|
|
151
|
+
export type GenerationJobRid = LooselyBrandedString<"GenerationJobRid">;
|
|
152
|
+
/**
|
|
153
|
+
* The generation job is currently running
|
|
154
|
+
*
|
|
155
|
+
* Log Safety: SAFE
|
|
156
|
+
*/
|
|
157
|
+
export interface GenerationJobRunning {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* The status of a GenerationJob
|
|
161
|
+
*
|
|
162
|
+
* Log Safety: UNSAFE
|
|
163
|
+
*/
|
|
164
|
+
export type GenerationJobStatus = ({
|
|
165
|
+
type: "running";
|
|
166
|
+
} & GenerationJobRunning) | ({
|
|
167
|
+
type: "failed";
|
|
168
|
+
} & GenerationJobFailed) | ({
|
|
169
|
+
type: "succeeded";
|
|
170
|
+
} & GenerationJobSucceeded);
|
|
171
|
+
/**
|
|
172
|
+
* The generation job succeeded
|
|
173
|
+
*
|
|
174
|
+
* Log Safety: SAFE
|
|
175
|
+
*/
|
|
176
|
+
export interface GenerationJobSucceeded {
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Log Safety: UNSAFE
|
|
180
|
+
*/
|
|
181
|
+
export interface SaveDocumentGenerationJobRequest {
|
|
182
|
+
request: SaveDocumentRequest;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Log Safety: UNSAFE
|
|
186
|
+
*/
|
|
187
|
+
export interface SaveDocumentRequest {
|
|
188
|
+
documentName?: string;
|
|
189
|
+
parentFolderRid?: _Filesystem.FolderRid;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Response for saving a document
|
|
193
|
+
*
|
|
194
|
+
* Log Safety: SAFE
|
|
195
|
+
*/
|
|
196
|
+
export interface SaveDocumentResponse {
|
|
197
|
+
documentRid: DocumentRid;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Log Safety: SAFE
|
|
201
|
+
*/
|
|
202
|
+
export interface Template {
|
|
203
|
+
rid: TemplateRid;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* DateTime parameter value
|
|
207
|
+
*
|
|
208
|
+
* Log Safety: UNSAFE
|
|
209
|
+
*/
|
|
210
|
+
export interface TemplateParameterDateTimeValue {
|
|
211
|
+
timestamp: string;
|
|
212
|
+
timezone: _Core.ZoneId;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Date parameter value
|
|
216
|
+
*
|
|
217
|
+
* Log Safety: UNSAFE
|
|
218
|
+
*/
|
|
219
|
+
export interface TemplateParameterDateValue {
|
|
220
|
+
value: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Double parameter value
|
|
224
|
+
*
|
|
225
|
+
* Log Safety: UNSAFE
|
|
226
|
+
*/
|
|
227
|
+
export interface TemplateParameterDoubleValue {
|
|
228
|
+
value: number;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The name of a Template parameter
|
|
232
|
+
*
|
|
233
|
+
* Log Safety: UNSAFE
|
|
234
|
+
*/
|
|
235
|
+
export type TemplateParameterName = LooselyBrandedString<"TemplateParameterName">;
|
|
236
|
+
/**
|
|
237
|
+
* Object RID parameter value
|
|
238
|
+
*
|
|
239
|
+
* Log Safety: SAFE
|
|
240
|
+
*/
|
|
241
|
+
export interface TemplateParameterObjectRidValue {
|
|
242
|
+
value: _Ontologies.ObjectRid;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Object set RID parameter value
|
|
246
|
+
*
|
|
247
|
+
* Log Safety: SAFE
|
|
248
|
+
*/
|
|
249
|
+
export interface TemplateParameterObjectSetRidValue {
|
|
250
|
+
value: _Ontologies.ObjectSetRid;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* String parameter value
|
|
254
|
+
*
|
|
255
|
+
* Log Safety: UNSAFE
|
|
256
|
+
*/
|
|
257
|
+
export interface TemplateParameterStringValue {
|
|
258
|
+
value: string;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* A value for a template parameter
|
|
262
|
+
*
|
|
263
|
+
* Log Safety: UNSAFE
|
|
264
|
+
*/
|
|
265
|
+
export type TemplateParameterValue = ({
|
|
266
|
+
type: "objectSetRid";
|
|
267
|
+
} & TemplateParameterObjectSetRidValue) | ({
|
|
268
|
+
type: "date";
|
|
269
|
+
} & TemplateParameterDateValue) | ({
|
|
270
|
+
type: "dateTime";
|
|
271
|
+
} & TemplateParameterDateTimeValue) | ({
|
|
272
|
+
type: "string";
|
|
273
|
+
} & TemplateParameterStringValue) | ({
|
|
274
|
+
type: "double";
|
|
275
|
+
} & TemplateParameterDoubleValue) | ({
|
|
276
|
+
type: "objectRid";
|
|
277
|
+
} & TemplateParameterObjectRidValue);
|
|
278
|
+
/**
|
|
279
|
+
* The unique identifier for a Template
|
|
280
|
+
*
|
|
281
|
+
* Log Safety: SAFE
|
|
282
|
+
*/
|
|
283
|
+
export type TemplateRid = LooselyBrandedString<"TemplateRid">;
|
|
284
|
+
/**
|
|
285
|
+
* The version number of a Template
|
|
286
|
+
*
|
|
287
|
+
* Log Safety: SAFE
|
|
288
|
+
*/
|
|
289
|
+
export type TemplateVersion = string;
|
|
290
|
+
//# sourceMappingURL=_components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"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"}
|
|
@@ -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":[]}
|