@onetaskgraph/sdk 0.14.10 → 0.14.12
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 +46 -3
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +1429 -144
- package/dist/generated/schemas.d.ts +11 -24262
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2711 -91
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CacheCleared, Classification, CommentList, CommentsSince, 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";
|
|
1
|
+
import type { CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LocateReport, MetadataSet, Attested, AttestationCheck, ProjectAttestationCheck, PlannedProject, 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, TasksUpdated, TaskUpdated, TemplateAnswers, TemplateVariables, UpdateBatch } from "./generated/models.ts";
|
|
2
2
|
import { runtimeSchemas } from "./generated/schemas.ts";
|
|
3
3
|
export type QueryOptions = {
|
|
4
4
|
sources?: string[];
|
|
@@ -29,6 +29,14 @@ export type WriteOptions = {
|
|
|
29
29
|
reject?: string[];
|
|
30
30
|
sanitizeDryRun?: boolean;
|
|
31
31
|
};
|
|
32
|
+
export type AttestOptions = WriteOptions & {
|
|
33
|
+
exclude?: string[];
|
|
34
|
+
note?: string;
|
|
35
|
+
ifVersion?: string;
|
|
36
|
+
};
|
|
37
|
+
export type AttestationCheckOptions = {
|
|
38
|
+
bar?: string;
|
|
39
|
+
};
|
|
32
40
|
export type ExpectOptions = {
|
|
33
41
|
expect?: string;
|
|
34
42
|
};
|
|
@@ -62,9 +70,10 @@ export type CopyConditionOptions = {
|
|
|
62
70
|
otherwise?: Otherwise;
|
|
63
71
|
whenDestinationPriority?: Priority[];
|
|
64
72
|
};
|
|
65
|
-
export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & HeldOptions & {
|
|
73
|
+
export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & Omit<HeldOptions, "ifVersion"> & {
|
|
66
74
|
create?: boolean;
|
|
67
75
|
targetTask?: string;
|
|
76
|
+
ifVersion?: string | string[];
|
|
68
77
|
};
|
|
69
78
|
export type CommentBodyOptions = ({
|
|
70
79
|
body: string;
|
|
@@ -109,6 +118,7 @@ export type DocumentCreateOptions = CreateOptions & AssetOptions & {
|
|
|
109
118
|
};
|
|
110
119
|
export type ProjectCreateOptions = CreateOptions & {
|
|
111
120
|
status?: StatusCategory;
|
|
121
|
+
dryRun?: boolean;
|
|
112
122
|
};
|
|
113
123
|
export type TaskUpdateOptions = WriteOptions & ExpectOptions & HeldOptions & {
|
|
114
124
|
title?: string;
|
|
@@ -121,6 +131,7 @@ export type TaskUpdateOptions = WriteOptions & ExpectOptions & HeldOptions & {
|
|
|
121
131
|
delivers?: string[];
|
|
122
132
|
dependsOn?: string[];
|
|
123
133
|
repositories?: string[];
|
|
134
|
+
whenPriority?: Priority[];
|
|
124
135
|
};
|
|
125
136
|
export type RenderOptions = TemplateSourceOptions & WriteOptions & {
|
|
126
137
|
unset?: string[];
|
|
@@ -161,6 +172,7 @@ export declare function taskCommentsFlags(since: string, options: unknown): stri
|
|
|
161
172
|
export declare function taskCopyFlags(options: TaskCopyOptions): string[];
|
|
162
173
|
export declare function projectCopyFlags(options: CopyOptions & StatusCopyOptions & {
|
|
163
174
|
noTasks?: boolean;
|
|
175
|
+
documents?: boolean;
|
|
164
176
|
members?: string[];
|
|
165
177
|
membersOnly?: boolean;
|
|
166
178
|
}): string[];
|
|
@@ -273,6 +285,7 @@ export declare class OnetaskgraphClient {
|
|
|
273
285
|
projectGraph(id: string, options?: ProjectGraphOptions): Promise<ProjectGraph>;
|
|
274
286
|
projectCopy(id: string, to: string, options?: (CopyOptions & StatusCopyOptions & {
|
|
275
287
|
noTasks?: boolean;
|
|
288
|
+
documents?: boolean;
|
|
276
289
|
members?: string[];
|
|
277
290
|
membersOnly?: boolean;
|
|
278
291
|
}) & {
|
|
@@ -280,6 +293,7 @@ export declare class OnetaskgraphClient {
|
|
|
280
293
|
}): Promise<CopyReport>;
|
|
281
294
|
projectCopy(id: string, to: string, options?: CopyOptions & StatusCopyOptions & {
|
|
282
295
|
noTasks?: boolean;
|
|
296
|
+
documents?: boolean;
|
|
283
297
|
members?: string[];
|
|
284
298
|
membersOnly?: boolean;
|
|
285
299
|
}): Promise<CopyReport | SanitizeDryRun>;
|
|
@@ -306,6 +320,23 @@ export declare class OnetaskgraphClient {
|
|
|
306
320
|
sanitizeDryRun?: false;
|
|
307
321
|
}): Promise<MetadataSet>;
|
|
308
322
|
documentMetadataSet(id: string, key: string, value: string, options?: WriteOptions): Promise<MetadataSet | SanitizeDryRun>;
|
|
323
|
+
taskAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
324
|
+
sanitizeDryRun?: false;
|
|
325
|
+
}): Promise<Attested>;
|
|
326
|
+
taskAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
327
|
+
projectAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
328
|
+
sanitizeDryRun?: false;
|
|
329
|
+
}): Promise<Attested>;
|
|
330
|
+
projectAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
331
|
+
documentAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions & {
|
|
332
|
+
sanitizeDryRun?: false;
|
|
333
|
+
}): Promise<Attested>;
|
|
334
|
+
documentAttest(id: string, kind: string, by: string, bar: string, options?: AttestOptions): Promise<Attested | SanitizeDryRun>;
|
|
335
|
+
taskAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
|
|
336
|
+
documentAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions): Promise<AttestationCheck>;
|
|
337
|
+
projectAttestationCheck(id: string, kind: string, options?: AttestationCheckOptions & {
|
|
338
|
+
tasks?: boolean;
|
|
339
|
+
}): Promise<AttestationCheck | ProjectAttestationCheck>;
|
|
309
340
|
labelList(options?: QueryOptions): Promise<QueryResponseOfQualifiedLabel>;
|
|
310
341
|
search(text: string, options?: QueryOptions & {
|
|
311
342
|
fields?: "title" | "content" | "both";
|
|
@@ -325,11 +356,23 @@ export declare class OnetaskgraphClient {
|
|
|
325
356
|
taskRender(id: string, options?: ItemRenderOptions): Promise<Regenerated | SanitizeDryRun>;
|
|
326
357
|
taskAnswers(id: string): Promise<TemplateAnswers>;
|
|
327
358
|
taskAssets(id: string, outputDir: string): Promise<TaskAssetNames>;
|
|
359
|
+
taskFind(source: string, request: FindRequest): Promise<FoundTasks>;
|
|
360
|
+
taskUpdateMany(source: string, batch: UpdateBatch, options?: WriteOptions & {
|
|
361
|
+
sanitizeDryRun?: false;
|
|
362
|
+
}): Promise<TasksUpdated>;
|
|
363
|
+
taskCommentAddMany(source: string, batch: CommentBatch, options?: WriteOptions & {
|
|
364
|
+
sanitizeDryRun?: false;
|
|
365
|
+
}): Promise<CommentsAdded>;
|
|
328
366
|
taskProjectHuman(input: string): Promise<HumanTaskProjected>;
|
|
367
|
+
projectCreate(source: string, id: NativeId, title: string, options: ProjectCreateOptions & {
|
|
368
|
+
dryRun: true;
|
|
369
|
+
sanitizeDryRun?: false;
|
|
370
|
+
}): Promise<PlannedProject>;
|
|
329
371
|
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions & {
|
|
372
|
+
dryRun?: false;
|
|
330
373
|
sanitizeDryRun?: false;
|
|
331
374
|
}): Promise<QueryResponseOfQualifiedProject>;
|
|
332
|
-
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject | SanitizeDryRun>;
|
|
375
|
+
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject | PlannedProject | SanitizeDryRun>;
|
|
333
376
|
projectRender(id: string, options?: RenderOptions & {
|
|
334
377
|
sanitizeDryRun?: false;
|
|
335
378
|
}): Promise<Regenerated>;
|
|
@@ -1 +1 @@
|
|
|
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 comments", "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 comment add-many", "task comments", "task find", "task update-many", "task status set", "task status reconcile", "task status complete", "task priority set", "task content set", "task metadata set", "task attest", "task attestation check", "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 attest", "project attestation check", "project status set", "project create", "project render", "project answers", "document list", "document show", "document copy", "document metadata set", "document attest", "document attestation check", "document create", "document render", "document answers", "label list", "search", "cache clear", "template variables", "template render"];
|