@onetaskgraph/sdk 0.14.11 → 0.14.13

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 CHANGED
@@ -1,4 +1,4 @@
1
- import type { CacheCleared, Classification, CommentList, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, 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, 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, LinkBatch, LinksWritten, LocateReport, MetadataSet, Attested, AttestationCheck, ProjectAttestationCheck, PlannedProject, NativeId, ParentBatch, ParentsSet, Priority, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskContentSet, TaskDetail, TaskDetails, TaskPrioritySet, TaskRelations, 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[];
@@ -70,9 +70,10 @@ export type CopyConditionOptions = {
70
70
  otherwise?: Otherwise;
71
71
  whenDestinationPriority?: Priority[];
72
72
  };
73
- export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & HeldOptions & {
73
+ export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & Omit<HeldOptions, "ifVersion"> & {
74
74
  create?: boolean;
75
75
  targetTask?: string;
76
+ ifVersion?: string | string[];
76
77
  };
77
78
  export type CommentBodyOptions = ({
78
79
  body: string;
@@ -130,6 +131,7 @@ export type TaskUpdateOptions = WriteOptions & ExpectOptions & HeldOptions & {
130
131
  delivers?: string[];
131
132
  dependsOn?: string[];
132
133
  repositories?: string[];
134
+ whenPriority?: Priority[];
133
135
  };
134
136
  export type RenderOptions = TemplateSourceOptions & WriteOptions & {
135
137
  unset?: string[];
@@ -170,6 +172,7 @@ export declare function taskCommentsFlags(since: string, options: unknown): stri
170
172
  export declare function taskCopyFlags(options: TaskCopyOptions): string[];
171
173
  export declare function projectCopyFlags(options: CopyOptions & StatusCopyOptions & {
172
174
  noTasks?: boolean;
175
+ documents?: boolean;
173
176
  members?: string[];
174
177
  membersOnly?: boolean;
175
178
  }): string[];
@@ -282,6 +285,7 @@ export declare class OnetaskgraphClient {
282
285
  projectGraph(id: string, options?: ProjectGraphOptions): Promise<ProjectGraph>;
283
286
  projectCopy(id: string, to: string, options?: (CopyOptions & StatusCopyOptions & {
284
287
  noTasks?: boolean;
288
+ documents?: boolean;
285
289
  members?: string[];
286
290
  membersOnly?: boolean;
287
291
  }) & {
@@ -289,6 +293,7 @@ export declare class OnetaskgraphClient {
289
293
  }): Promise<CopyReport>;
290
294
  projectCopy(id: string, to: string, options?: CopyOptions & StatusCopyOptions & {
291
295
  noTasks?: boolean;
296
+ documents?: boolean;
292
297
  members?: string[];
293
298
  membersOnly?: boolean;
294
299
  }): Promise<CopyReport | SanitizeDryRun>;
@@ -351,6 +356,19 @@ export declare class OnetaskgraphClient {
351
356
  taskRender(id: string, options?: ItemRenderOptions): Promise<Regenerated | SanitizeDryRun>;
352
357
  taskAnswers(id: string): Promise<TemplateAnswers>;
353
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>;
366
+ taskParentSetMany(batch: ParentBatch): Promise<ParentsSet>;
367
+ taskLinkAddMany(batch: LinkBatch): Promise<LinksWritten>;
368
+ taskLinkRemoveMany(batch: LinkBatch): Promise<LinksWritten>;
369
+ taskRelations(ids: string[], options?: {
370
+ complete?: boolean;
371
+ }): Promise<TaskRelations>;
354
372
  taskProjectHuman(input: string): Promise<HumanTaskProjected>;
355
373
  projectCreate(source: string, id: NativeId, title: string, options: ProjectCreateOptions & {
356
374
  dryRun: true;
@@ -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 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"];
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 parent set-many", "task link add-many", "task link remove-many", "task relations", "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"];