@onetaskgraph/sdk 0.13.4 → 0.14.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/dist/client.d.ts +101 -22
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +6330 -5255
- package/dist/generated/schemas.d.ts +16501 -14271
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21930 -19115
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheCleared, Classification, CommentList, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
1
|
+
import type { CacheCleared, Classification, CommentList, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, NativeId, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskStatusSet, TaskUpdated, TemplateAnswers, TemplateVariables } from "./generated/models.ts";
|
|
2
2
|
import { runtimeSchemas } from "./generated/schemas.ts";
|
|
3
3
|
export type QueryOptions = {
|
|
4
4
|
sources?: string[];
|
|
@@ -25,6 +25,9 @@ export type FilterOptions = QueryOptions & {
|
|
|
25
25
|
export type DocumentFilterOptions = Omit<FilterOptions, "statuses">;
|
|
26
26
|
export type WriteOptions = {
|
|
27
27
|
termScope?: string[];
|
|
28
|
+
replace?: string[];
|
|
29
|
+
reject?: string[];
|
|
30
|
+
sanitizeDryRun?: boolean;
|
|
28
31
|
};
|
|
29
32
|
export type ExpectOptions = {
|
|
30
33
|
expect?: string;
|
|
@@ -169,6 +172,10 @@ export declare class OnetaskgraphClient {
|
|
|
169
172
|
repositories?: string[];
|
|
170
173
|
classification?: Classification;
|
|
171
174
|
}): Promise<SourceRoute>;
|
|
175
|
+
sourcesSanitize(source: string, options?: Omit<WriteOptions, "sanitizeDryRun" | "termScope"> & {
|
|
176
|
+
dryRun?: boolean;
|
|
177
|
+
complete?: boolean;
|
|
178
|
+
}): Promise<SweepReport>;
|
|
172
179
|
taskList(options?: FilterOptions & {
|
|
173
180
|
project?: string;
|
|
174
181
|
noProject?: boolean;
|
|
@@ -186,26 +193,61 @@ export declare class OnetaskgraphClient {
|
|
|
186
193
|
noComments?: boolean;
|
|
187
194
|
pins?: Record<string, string>;
|
|
188
195
|
}): Promise<TaskDetails>;
|
|
189
|
-
taskCommentAdd(id: string, options: CommentAddOptions
|
|
196
|
+
taskCommentAdd(id: string, options: CommentAddOptions & {
|
|
197
|
+
sanitizeDryRun?: false;
|
|
198
|
+
}): Promise<CommentWritten>;
|
|
199
|
+
taskCommentAdd(id: string, options: CommentAddOptions): Promise<CommentWritten | SanitizeDryRun>;
|
|
190
200
|
taskCommentList(id: string, options?: {
|
|
191
201
|
pin?: string;
|
|
192
202
|
}): Promise<CommentList>;
|
|
193
|
-
taskCommentEdit(id: string, commentId: string, options: CommentBodyOptions
|
|
203
|
+
taskCommentEdit(id: string, commentId: string, options: CommentBodyOptions & {
|
|
204
|
+
sanitizeDryRun?: false;
|
|
205
|
+
}): Promise<CommentWritten>;
|
|
206
|
+
taskCommentEdit(id: string, commentId: string, options: CommentBodyOptions): Promise<CommentWritten | SanitizeDryRun>;
|
|
194
207
|
taskCommentDelete(id: string, commentId: string, options?: ExpectOptions): Promise<DeletedComment>;
|
|
195
|
-
taskStatusSet(id: string, category: StatusCategory, options?: WriteOptions & ExpectOptions)
|
|
196
|
-
|
|
208
|
+
taskStatusSet(id: string, category: StatusCategory, options?: (WriteOptions & ExpectOptions) & {
|
|
209
|
+
sanitizeDryRun?: false;
|
|
210
|
+
}): Promise<TaskStatusSet>;
|
|
211
|
+
taskStatusSet(id: string, category: StatusCategory, options?: WriteOptions & ExpectOptions): Promise<TaskStatusSet | SanitizeDryRun>;
|
|
212
|
+
taskStatusReconcile(source: string, options?: (WriteOptions & {
|
|
197
213
|
dryRun?: boolean;
|
|
214
|
+
}) & {
|
|
215
|
+
sanitizeDryRun?: false;
|
|
198
216
|
}): Promise<StatusesReconciled>;
|
|
199
|
-
|
|
217
|
+
taskStatusReconcile(source: string, options?: WriteOptions & {
|
|
218
|
+
dryRun?: boolean;
|
|
219
|
+
}): Promise<StatusesReconciled | SanitizeDryRun>;
|
|
220
|
+
taskStatusComplete(issues: string[], options?: (WriteOptions & {
|
|
200
221
|
sources?: string[];
|
|
201
222
|
dryRun?: boolean;
|
|
223
|
+
}) & {
|
|
224
|
+
sanitizeDryRun?: false;
|
|
202
225
|
}): Promise<IssuesCompleted>;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
226
|
+
taskStatusComplete(issues: string[], options?: WriteOptions & {
|
|
227
|
+
sources?: string[];
|
|
228
|
+
dryRun?: boolean;
|
|
229
|
+
}): Promise<IssuesCompleted | SanitizeDryRun>;
|
|
230
|
+
taskPrioritySet(id: string, priority: Priority, options?: (WriteOptions & ExpectOptions) & {
|
|
231
|
+
sanitizeDryRun?: false;
|
|
232
|
+
}): Promise<TaskPrioritySet>;
|
|
233
|
+
taskPrioritySet(id: string, priority: Priority, options?: WriteOptions & ExpectOptions): Promise<TaskPrioritySet | SanitizeDryRun>;
|
|
234
|
+
taskContentSet(id: string, file: string, options?: (WriteOptions & ExpectOptions) & {
|
|
235
|
+
sanitizeDryRun?: false;
|
|
236
|
+
}): Promise<TaskContentSet>;
|
|
237
|
+
taskContentSet(id: string, file: string, options?: WriteOptions & ExpectOptions): Promise<TaskContentSet | SanitizeDryRun>;
|
|
238
|
+
taskMetadataSet(id: string, key: string, value: string, options?: (WriteOptions & ExpectOptions) & {
|
|
239
|
+
sanitizeDryRun?: false;
|
|
240
|
+
}): Promise<MetadataSet>;
|
|
241
|
+
taskMetadataSet(id: string, key: string, value: string, options?: WriteOptions & ExpectOptions): Promise<MetadataSet | SanitizeDryRun>;
|
|
242
|
+
taskUpdate(id: string, options: TaskUpdateOptions & {
|
|
243
|
+
sanitizeDryRun?: false;
|
|
244
|
+
}): Promise<TaskUpdated>;
|
|
245
|
+
taskUpdate(id: string, options: TaskUpdateOptions): Promise<TaskUpdated | SanitizeDryRun>;
|
|
207
246
|
taskDeps(id: string, options?: DependencyOptions): Promise<QueryResponseOfQualifiedEdge>;
|
|
208
|
-
taskCopy(ids: string[], to: string, options?: TaskCopyOptions
|
|
247
|
+
taskCopy(ids: string[], to: string, options?: TaskCopyOptions & {
|
|
248
|
+
sanitizeDryRun?: false;
|
|
249
|
+
}): Promise<CopyReport>;
|
|
250
|
+
taskCopy(ids: string[], to: string, options?: TaskCopyOptions): Promise<CopyReport | SanitizeDryRun>;
|
|
209
251
|
taskLocate(ids: string[], options: {
|
|
210
252
|
to: string;
|
|
211
253
|
noCounterpart?: boolean;
|
|
@@ -217,13 +259,26 @@ export declare class OnetaskgraphClient {
|
|
|
217
259
|
}): Promise<QueryResponseOfQualifiedProject>;
|
|
218
260
|
projectDeps(id: string, options?: DependencyOptions): Promise<QueryResponseOfQualifiedEdge>;
|
|
219
261
|
projectGraph(id: string, options?: ProjectGraphOptions): Promise<ProjectGraph>;
|
|
220
|
-
projectCopy(id: string, to: string, options?: CopyOptions & StatusCopyOptions & {
|
|
262
|
+
projectCopy(id: string, to: string, options?: (CopyOptions & StatusCopyOptions & {
|
|
221
263
|
noTasks?: boolean;
|
|
222
264
|
members?: string[];
|
|
223
265
|
membersOnly?: boolean;
|
|
266
|
+
}) & {
|
|
267
|
+
sanitizeDryRun?: false;
|
|
224
268
|
}): Promise<CopyReport>;
|
|
225
|
-
|
|
226
|
-
|
|
269
|
+
projectCopy(id: string, to: string, options?: CopyOptions & StatusCopyOptions & {
|
|
270
|
+
noTasks?: boolean;
|
|
271
|
+
members?: string[];
|
|
272
|
+
membersOnly?: boolean;
|
|
273
|
+
}): Promise<CopyReport | SanitizeDryRun>;
|
|
274
|
+
projectMetadataSet(id: string, key: string, value: string, options?: WriteOptions & {
|
|
275
|
+
sanitizeDryRun?: false;
|
|
276
|
+
}): Promise<MetadataSet>;
|
|
277
|
+
projectMetadataSet(id: string, key: string, value: string, options?: WriteOptions): Promise<MetadataSet | SanitizeDryRun>;
|
|
278
|
+
projectStatusSet(id: string, category: StatusCategory, options?: WriteOptions & {
|
|
279
|
+
sanitizeDryRun?: false;
|
|
280
|
+
}): Promise<ProjectStatusSet>;
|
|
281
|
+
projectStatusSet(id: string, category: StatusCategory, options?: WriteOptions): Promise<ProjectStatusSet | SanitizeDryRun>;
|
|
227
282
|
documentList(options?: DocumentFilterOptions & {
|
|
228
283
|
project?: string;
|
|
229
284
|
noProject?: boolean;
|
|
@@ -231,8 +286,14 @@ export declare class OnetaskgraphClient {
|
|
|
231
286
|
documentShow(id: string, options?: Pick<QueryOptions, "allowPartial"> & {
|
|
232
287
|
pin?: string;
|
|
233
288
|
}): Promise<DocumentDetail>;
|
|
234
|
-
documentCopy(ids: string[], to: string, options?: Omit<CopyOptions, "comments">
|
|
235
|
-
|
|
289
|
+
documentCopy(ids: string[], to: string, options?: Omit<CopyOptions, "comments"> & {
|
|
290
|
+
sanitizeDryRun?: false;
|
|
291
|
+
}): Promise<CopyReport>;
|
|
292
|
+
documentCopy(ids: string[], to: string, options?: Omit<CopyOptions, "comments">): Promise<CopyReport | SanitizeDryRun>;
|
|
293
|
+
documentMetadataSet(id: string, key: string, value: string, options?: WriteOptions & {
|
|
294
|
+
sanitizeDryRun?: false;
|
|
295
|
+
}): Promise<MetadataSet>;
|
|
296
|
+
documentMetadataSet(id: string, key: string, value: string, options?: WriteOptions): Promise<MetadataSet | SanitizeDryRun>;
|
|
236
297
|
labelList(options?: QueryOptions): Promise<QueryResponseOfQualifiedLabel>;
|
|
237
298
|
search(text: string, options?: QueryOptions & {
|
|
238
299
|
fields?: "title" | "content" | "both";
|
|
@@ -242,16 +303,34 @@ export declare class OnetaskgraphClient {
|
|
|
242
303
|
templateLoader?: string;
|
|
243
304
|
}): Promise<TemplateVariables>;
|
|
244
305
|
templateRender(file?: string, options?: TemplateRenderOptions): Promise<RenderedTemplate>;
|
|
245
|
-
taskCreate(source: string, project: string, title: string, options?: TaskCreateOptions
|
|
246
|
-
|
|
306
|
+
taskCreate(source: string, project: string, title: string, options?: TaskCreateOptions & {
|
|
307
|
+
sanitizeDryRun?: false;
|
|
308
|
+
}): Promise<TaskDetail>;
|
|
309
|
+
taskCreate(source: string, project: string, title: string, options?: TaskCreateOptions): Promise<TaskDetail | SanitizeDryRun>;
|
|
310
|
+
taskRender(id: string, options?: ItemRenderOptions & {
|
|
311
|
+
sanitizeDryRun?: false;
|
|
312
|
+
}): Promise<Regenerated>;
|
|
313
|
+
taskRender(id: string, options?: ItemRenderOptions): Promise<Regenerated | SanitizeDryRun>;
|
|
247
314
|
taskAnswers(id: string): Promise<TemplateAnswers>;
|
|
248
315
|
taskAssets(id: string, outputDir: string): Promise<TaskAssetNames>;
|
|
249
316
|
taskProjectHuman(input: string): Promise<HumanTaskProjected>;
|
|
250
|
-
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions
|
|
251
|
-
|
|
317
|
+
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions & {
|
|
318
|
+
sanitizeDryRun?: false;
|
|
319
|
+
}): Promise<QueryResponseOfQualifiedProject>;
|
|
320
|
+
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject | SanitizeDryRun>;
|
|
321
|
+
projectRender(id: string, options?: RenderOptions & {
|
|
322
|
+
sanitizeDryRun?: false;
|
|
323
|
+
}): Promise<Regenerated>;
|
|
324
|
+
projectRender(id: string, options?: RenderOptions): Promise<Regenerated | SanitizeDryRun>;
|
|
252
325
|
projectAnswers(id: string): Promise<TemplateAnswers>;
|
|
253
|
-
documentCreate(source: string, project: string, title: string, options?: DocumentCreateOptions
|
|
254
|
-
|
|
326
|
+
documentCreate(source: string, project: string, title: string, options?: DocumentCreateOptions & {
|
|
327
|
+
sanitizeDryRun?: false;
|
|
328
|
+
}): Promise<DocumentDetail>;
|
|
329
|
+
documentCreate(source: string, project: string, title: string, options?: DocumentCreateOptions): Promise<DocumentDetail | SanitizeDryRun>;
|
|
330
|
+
documentRender(id: string, options?: ItemRenderOptions & {
|
|
331
|
+
sanitizeDryRun?: false;
|
|
332
|
+
}): Promise<Regenerated>;
|
|
333
|
+
documentRender(id: string, options?: ItemRenderOptions): Promise<Regenerated | SanitizeDryRun>;
|
|
255
334
|
documentAnswers(id: string): Promise<TemplateAnswers>;
|
|
256
335
|
private run;
|
|
257
336
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|
|
1
|
+
export declare const binaryCommands: readonly ["schema", "config show", "sources list", "sources status-options", "sources fields", "sources route", "sources sanitize", "task list", "task show", "task show-many", "task deps", "task copy", "task locate", "task comment add", "task comment list", "task comment edit", "task comment delete", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task update", "task create", "task render", "task answers", "task assets", "task project-human", "project list", "project show", "project deps", "project graph", "project copy", "project metadata set", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|