@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.
Files changed (57) hide show
  1. package/build/browser/_components.d.ts +290 -0
  2. package/build/browser/_components.d.ts.map +1 -0
  3. package/build/browser/_components.js +17 -0
  4. package/build/browser/_components.js.map +1 -0
  5. package/build/browser/_errors.d.ts +271 -0
  6. package/build/browser/_errors.d.ts.map +1 -0
  7. package/build/browser/_errors.js +17 -0
  8. package/build/browser/_errors.js.map +1 -0
  9. package/build/browser/index.d.ts +7 -0
  10. package/build/browser/index.d.ts.map +1 -0
  11. package/build/browser/index.js +20 -0
  12. package/build/browser/index.js.map +1 -0
  13. package/build/browser/public/ExportJob.d.ts +34 -0
  14. package/build/browser/public/ExportJob.d.ts.map +1 -0
  15. package/build/browser/public/ExportJob.js +43 -0
  16. package/build/browser/public/ExportJob.js.map +1 -0
  17. package/build/browser/public/File.d.ts +19 -0
  18. package/build/browser/public/File.d.ts.map +1 -0
  19. package/build/browser/public/File.js +30 -0
  20. package/build/browser/public/File.js.map +1 -0
  21. package/build/browser/public/GenerationJob.d.ts +36 -0
  22. package/build/browser/public/GenerationJob.d.ts.map +1 -0
  23. package/build/browser/public/GenerationJob.js +42 -0
  24. package/build/browser/public/GenerationJob.js.map +1 -0
  25. package/build/browser/public/Template.d.ts +25 -0
  26. package/build/browser/public/Template.d.ts.map +1 -0
  27. package/build/browser/public/Template.js +35 -0
  28. package/build/browser/public/Template.js.map +1 -0
  29. package/build/esm/_components.d.ts +290 -0
  30. package/build/esm/_components.d.ts.map +1 -0
  31. package/build/esm/_components.js +17 -0
  32. package/build/esm/_components.js.map +1 -0
  33. package/build/esm/_errors.d.ts +271 -0
  34. package/build/esm/_errors.d.ts.map +1 -0
  35. package/build/esm/_errors.js +17 -0
  36. package/build/esm/_errors.js.map +1 -0
  37. package/build/esm/index.d.ts +7 -0
  38. package/build/esm/index.d.ts.map +1 -0
  39. package/build/esm/index.js +20 -0
  40. package/build/esm/index.js.map +1 -0
  41. package/build/esm/public/ExportJob.d.ts +34 -0
  42. package/build/esm/public/ExportJob.d.ts.map +1 -0
  43. package/build/esm/public/ExportJob.js +43 -0
  44. package/build/esm/public/ExportJob.js.map +1 -0
  45. package/build/esm/public/File.d.ts +19 -0
  46. package/build/esm/public/File.d.ts.map +1 -0
  47. package/build/esm/public/File.js +30 -0
  48. package/build/esm/public/File.js.map +1 -0
  49. package/build/esm/public/GenerationJob.d.ts +36 -0
  50. package/build/esm/public/GenerationJob.d.ts.map +1 -0
  51. package/build/esm/public/GenerationJob.js +42 -0
  52. package/build/esm/public/GenerationJob.js.map +1 -0
  53. package/build/esm/public/Template.d.ts +25 -0
  54. package/build/esm/public/Template.d.ts.map +1 -0
  55. package/build/esm/public/Template.js +35 -0
  56. package/build/esm/public/Template.js.map +1 -0
  57. package/package.json +65 -0
@@ -0,0 +1,271 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * Could not content the File.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface ContentFilePermissionDenied {
10
+ errorCode: "PERMISSION_DENIED";
11
+ errorName: "ContentFilePermissionDenied";
12
+ errorDescription: "Could not content the File.";
13
+ errorInstanceId: string;
14
+ parameters: {
15
+ fileRid: unknown;
16
+ };
17
+ }
18
+ /**
19
+ * The user does not have permission to create a Document in the specified folder.
20
+ *
21
+ * Log Safety: SAFE
22
+ */
23
+ export interface CreateDocumentPermissionDenied {
24
+ errorCode: "PERMISSION_DENIED";
25
+ errorName: "CreateDocumentPermissionDenied";
26
+ errorDescription: "The user does not have permission to create a Document in the specified folder.";
27
+ errorInstanceId: string;
28
+ parameters: {
29
+ parentFolderRid: unknown;
30
+ };
31
+ }
32
+ /**
33
+ * Could not create the ExportJob.
34
+ *
35
+ * Log Safety: SAFE
36
+ */
37
+ export interface CreateExportJobPermissionDenied {
38
+ errorCode: "PERMISSION_DENIED";
39
+ errorName: "CreateExportJobPermissionDenied";
40
+ errorDescription: "Could not create the ExportJob.";
41
+ errorInstanceId: string;
42
+ parameters: {};
43
+ }
44
+ /**
45
+ * The requested document was not found.
46
+ *
47
+ * Log Safety: SAFE
48
+ */
49
+ export interface DocumentNotFound {
50
+ errorCode: "NOT_FOUND";
51
+ errorName: "DocumentNotFound";
52
+ errorDescription: "The requested document was not found.";
53
+ errorInstanceId: string;
54
+ parameters: {
55
+ documentRid: unknown;
56
+ };
57
+ }
58
+ /**
59
+ * The user does not have export permissions on this Document.
60
+ *
61
+ * Log Safety: SAFE
62
+ */
63
+ export interface ExportDocumentPermissionDenied {
64
+ errorCode: "PERMISSION_DENIED";
65
+ errorName: "ExportDocumentPermissionDenied";
66
+ errorDescription: "The user does not have export permissions on this Document.";
67
+ errorInstanceId: string;
68
+ parameters: {
69
+ documentRid: unknown;
70
+ };
71
+ }
72
+ /**
73
+ * The user does not have export permissions on this GenerationJob.
74
+ *
75
+ * Log Safety: SAFE
76
+ */
77
+ export interface ExportGenerationJobPermissionDenied {
78
+ errorCode: "PERMISSION_DENIED";
79
+ errorName: "ExportGenerationJobPermissionDenied";
80
+ errorDescription: "The user does not have export permissions on this GenerationJob.";
81
+ errorInstanceId: string;
82
+ parameters: {
83
+ generationJobRid: unknown;
84
+ };
85
+ }
86
+ /**
87
+ * The given ExportJob could not be found.
88
+ *
89
+ * Log Safety: SAFE
90
+ */
91
+ export interface ExportJobNotFound {
92
+ errorCode: "NOT_FOUND";
93
+ errorName: "ExportJobNotFound";
94
+ errorDescription: "The given ExportJob could not be found.";
95
+ errorInstanceId: string;
96
+ parameters: {
97
+ exportJobRid: unknown;
98
+ };
99
+ }
100
+ /**
101
+ * The requested file was not found.
102
+ *
103
+ * Log Safety: SAFE
104
+ */
105
+ export interface FileNotFound {
106
+ errorCode: "NOT_FOUND";
107
+ errorName: "FileNotFound";
108
+ errorDescription: "The requested file was not found.";
109
+ errorInstanceId: string;
110
+ parameters: {
111
+ fileRid: unknown;
112
+ };
113
+ }
114
+ /**
115
+ * Could not generate the Template.
116
+ *
117
+ * Log Safety: SAFE
118
+ */
119
+ export interface GenerateTemplatePermissionDenied {
120
+ errorCode: "PERMISSION_DENIED";
121
+ errorName: "GenerateTemplatePermissionDenied";
122
+ errorDescription: "Could not generate the Template.";
123
+ errorInstanceId: string;
124
+ parameters: {
125
+ templateRid: unknown;
126
+ };
127
+ }
128
+ /**
129
+ * The given GenerationJob could not be found.
130
+ *
131
+ * Log Safety: SAFE
132
+ */
133
+ export interface GenerationJobNotFound {
134
+ errorCode: "NOT_FOUND";
135
+ errorName: "GenerationJobNotFound";
136
+ errorDescription: "The given GenerationJob could not be found.";
137
+ errorInstanceId: string;
138
+ parameters: {
139
+ generationJobRid: unknown;
140
+ templateRid: unknown;
141
+ };
142
+ }
143
+ /**
144
+ * The operation cannot be completed because the generation job has failed status.
145
+ *
146
+ * Log Safety: SAFE
147
+ */
148
+ export interface GenerationJobStatusFailed {
149
+ errorCode: "FAILED_PRECONDITION";
150
+ errorName: "GenerationJobStatusFailed";
151
+ errorDescription: "The operation cannot be completed because the generation job has failed status.";
152
+ errorInstanceId: string;
153
+ parameters: {
154
+ generationJobRid: unknown;
155
+ };
156
+ }
157
+ /**
158
+ * The operation cannot be completed because the generation job has running status.
159
+ *
160
+ * Log Safety: SAFE
161
+ */
162
+ export interface GenerationJobStatusRunning {
163
+ errorCode: "FAILED_PRECONDITION";
164
+ errorName: "GenerationJobStatusRunning";
165
+ errorDescription: "The operation cannot be completed because the generation job has running status.";
166
+ errorInstanceId: string;
167
+ parameters: {
168
+ generationJobRid: unknown;
169
+ };
170
+ }
171
+ /**
172
+ * The provided user locale is not valid.
173
+ *
174
+ * Log Safety: SAFE
175
+ */
176
+ export interface InvalidExportJobUserLocale {
177
+ errorCode: "INVALID_ARGUMENT";
178
+ errorName: "InvalidExportJobUserLocale";
179
+ errorDescription: "The provided user locale is not valid.";
180
+ errorInstanceId: string;
181
+ parameters: {
182
+ userLocale: unknown;
183
+ };
184
+ }
185
+ /**
186
+ * A template parameter value is invalid (for example, is of the wrong type).
187
+ *
188
+ * Log Safety: UNSAFE
189
+ */
190
+ export interface InvalidGenerationJobTemplateParameter {
191
+ errorCode: "INVALID_ARGUMENT";
192
+ errorName: "InvalidGenerationJobTemplateParameter";
193
+ errorDescription: "A template parameter value is invalid (for example, is of the wrong type).";
194
+ errorInstanceId: string;
195
+ parameters: {
196
+ templateParameterName: unknown;
197
+ reason: unknown;
198
+ };
199
+ }
200
+ /**
201
+ * The provided template version doesn't exist or the template has no published versions.
202
+ *
203
+ * Log Safety: SAFE
204
+ */
205
+ export interface InvalidGenerationJobTemplateVersion {
206
+ errorCode: "INVALID_ARGUMENT";
207
+ errorName: "InvalidGenerationJobTemplateVersion";
208
+ errorDescription: "The provided template version doesn't exist or the template has no published versions.";
209
+ errorInstanceId: string;
210
+ parameters: {
211
+ templateVersion: unknown;
212
+ };
213
+ }
214
+ /**
215
+ * The provided timezone is not valid.
216
+ *
217
+ * Log Safety: SAFE
218
+ */
219
+ export interface InvalidTimezone {
220
+ errorCode: "INVALID_ARGUMENT";
221
+ errorName: "InvalidTimezone";
222
+ errorDescription: "The provided timezone is not valid.";
223
+ errorInstanceId: string;
224
+ parameters: {
225
+ userTimezone: unknown;
226
+ };
227
+ }
228
+ /**
229
+ * One or more template parameters are missing.
230
+ *
231
+ * Log Safety: UNSAFE
232
+ */
233
+ export interface MissingGenerationJobTemplateParameters {
234
+ errorCode: "INVALID_ARGUMENT";
235
+ errorName: "MissingGenerationJobTemplateParameters";
236
+ errorDescription: "One or more template parameters are missing.";
237
+ errorInstanceId: string;
238
+ parameters: {
239
+ templateParameterNames: unknown;
240
+ };
241
+ }
242
+ /**
243
+ * Could not saveDocument the GenerationJob.
244
+ *
245
+ * Log Safety: SAFE
246
+ */
247
+ export interface SaveDocumentGenerationJobPermissionDenied {
248
+ errorCode: "PERMISSION_DENIED";
249
+ errorName: "SaveDocumentGenerationJobPermissionDenied";
250
+ errorDescription: "Could not saveDocument the GenerationJob.";
251
+ errorInstanceId: string;
252
+ parameters: {
253
+ generationJobRid: unknown;
254
+ templateRid: unknown;
255
+ };
256
+ }
257
+ /**
258
+ * The requested template was not found.
259
+ *
260
+ * Log Safety: SAFE
261
+ */
262
+ export interface TemplateNotFound {
263
+ errorCode: "NOT_FOUND";
264
+ errorName: "TemplateNotFound";
265
+ errorDescription: "The requested template was not found.";
266
+ errorInstanceId: string;
267
+ parameters: {
268
+ templateRid: unknown;
269
+ };
270
+ }
271
+ //# 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,2BAA2B;IAC1C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,6BAA6B,CAAC;IACzC,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,gBAAgB,EACd,iFAAiF,CAAC;IACpF,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,iCAAiC,CAAC;IAC7C,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EA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S,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,gBAAgB,EAAE,uCAAuC,CAAC;IAC1D,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;KACtB,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,7 @@
1
+ export type { CreateExportJobRequest, Document, DocumentRid, ExportJob, ExportJobDocumentSource, ExportJobFailed, ExportJobGenerationJobSource, ExportJobPdfTarget, ExportJobRid, ExportJobRunning, ExportJobSource, ExportJobStatus, ExportJobSucceeded, ExportJobTarget, File, FileRid, GenerateTemplateRequest, GenerationJob, GenerationJobFailed, GenerationJobRid, GenerationJobRunning, GenerationJobStatus, GenerationJobSucceeded, SaveDocumentGenerationJobRequest, SaveDocumentRequest, SaveDocumentResponse, Template, TemplateParameterDateTimeValue, TemplateParameterDateValue, TemplateParameterDoubleValue, TemplateParameterName, TemplateParameterObjectRidValue, TemplateParameterObjectSetRidValue, TemplateParameterStringValue, TemplateParameterValue, TemplateRid, TemplateVersion, } from "./_components.js";
2
+ export type { ContentFilePermissionDenied, CreateDocumentPermissionDenied, CreateExportJobPermissionDenied, DocumentNotFound, ExportDocumentPermissionDenied, ExportGenerationJobPermissionDenied, ExportJobNotFound, FileNotFound, GenerateTemplatePermissionDenied, GenerationJobNotFound, GenerationJobStatusFailed, GenerationJobStatusRunning, InvalidExportJobUserLocale, InvalidGenerationJobTemplateParameter, InvalidGenerationJobTemplateVersion, InvalidTimezone, MissingGenerationJobTemplateParameters, SaveDocumentGenerationJobPermissionDenied, TemplateNotFound, } from "./_errors.js";
3
+ export * as ExportJobs from "./public/ExportJob.js";
4
+ export * as Files from "./public/File.js";
5
+ export * as GenerationJobs from "./public/GenerationJob.js";
6
+ export * as Templates from "./public/Template.js";
7
+ //# 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,sBAAsB,EACtB,QAAQ,EACR,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,eAAe,EACf,4BAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,IAAI,EACJ,OAAO,EACP,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,gCAAgC,EAChC,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,+BAA+B,EAC/B,kCAAkC,EAClC,4BAA4B,EAC5B,sBAAsB,EACtB,WAAW,EACX,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,2BAA2B,EAC3B,8BAA8B,EAC9B,+BAA+B,EAC/B,gBAAgB,EAChB,8BAA8B,EAC9B,mCAAmC,EACnC,iBAAiB,EACjB,YAAY,EACZ,gCAAgC,EAChC,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,EACrC,mCAAmC,EACnC,eAAe,EACf,sCAAsC,EACtC,yCAAyC,EACzC,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,20 @@
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 ExportJobs from "./public/ExportJob.js";
17
+ export * as Files from "./public/File.js";
18
+ export * as GenerationJobs from "./public/GenerationJob.js";
19
+ export * as Templates from "./public/Template.js";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["ExportJobs","Files","GenerationJobs","Templates"],"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 ExportJobs from \"./public/ExportJob.js\";\nexport * as Files from \"./public/File.js\";\nexport * as GenerationJobs from \"./public/GenerationJob.js\";\nexport * as Templates from \"./public/Template.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,UAAU,MAAM,uBAAuB;AACnD,OAAO,KAAKC,KAAK,MAAM,kBAAkB;AACzC,OAAO,KAAKC,cAAc,MAAM,2BAA2B;AAC3D,OAAO,KAAKC,SAAS,MAAM,sBAAsB","ignoreList":[]}
@@ -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