@onetaskgraph/sdk 0.14.12 → 0.14.14

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, 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";
1
+ import type { AttestationCheck, Attested, CacheCleared, Classification, CommentBatch, CommentList, CommentsAdded, CommentsSince, CommentWritten, CopyReport, DeletedComment, DocumentDetail, EffectiveConfig, FailureDocument, FieldsReport, FindRequest, FoundTasks, HumanTaskProjected, IssuesCompleted, LinkBatch, LinksWritten, LocateReport, MetadataSet, NativeId, ParentBatch, ParentsSet, PlannedProject, Priority, ProjectAttestationCheck, ProjectGraph, ProjectStatusSet, QueryResponseOfQualifiedDocument, QueryResponseOfQualifiedEdge, QueryResponseOfQualifiedLabel, QueryResponseOfQualifiedProject, QueryResponseOfQualifiedTask, QueryResponseOfSearchHit, Regenerated, RenderedTemplate, SanitizeDryRun, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, SweepReport, TaskAssetNames, TaskAssigneeSet, 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[];
@@ -69,6 +69,7 @@ export type CopyConditionOptions = {
69
69
  whenDestinationStatus?: StatusCategory[];
70
70
  otherwise?: Otherwise;
71
71
  whenDestinationPriority?: Priority[];
72
+ whenDestinationAssignees?: string[];
72
73
  };
73
74
  export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & Omit<HeldOptions, "ifVersion"> & {
74
75
  create?: boolean;
@@ -112,6 +113,7 @@ export type TaskCreateOptions = CreateOptions & AssetOptions & {
112
113
  status?: StatusCategory;
113
114
  dependsOn?: string[];
114
115
  delivers?: string[];
116
+ assignee?: string;
115
117
  };
116
118
  export type DocumentCreateOptions = CreateOptions & AssetOptions & {
117
119
  id?: string;
@@ -263,6 +265,10 @@ export declare class OnetaskgraphClient {
263
265
  sanitizeDryRun?: false;
264
266
  }): Promise<MetadataSet>;
265
267
  taskMetadataSet(id: string, key: string, value: string, options?: WriteOptions & ExpectOptions): Promise<MetadataSet | SanitizeDryRun>;
268
+ taskAssigneeSet(id: string, person?: string, options?: WriteOptions & HeldOptions & {
269
+ sanitizeDryRun?: false;
270
+ }): Promise<TaskAssigneeSet>;
271
+ taskAssigneeSet(id: string, person?: string, options?: WriteOptions & HeldOptions): Promise<TaskAssigneeSet | SanitizeDryRun>;
266
272
  taskUpdate(id: string, options: TaskUpdateOptions & {
267
273
  sanitizeDryRun?: false;
268
274
  }): Promise<TaskUpdated>;
@@ -363,6 +369,12 @@ export declare class OnetaskgraphClient {
363
369
  taskCommentAddMany(source: string, batch: CommentBatch, options?: WriteOptions & {
364
370
  sanitizeDryRun?: false;
365
371
  }): Promise<CommentsAdded>;
372
+ taskParentSetMany(batch: ParentBatch): Promise<ParentsSet>;
373
+ taskLinkAddMany(batch: LinkBatch): Promise<LinksWritten>;
374
+ taskLinkRemoveMany(batch: LinkBatch): Promise<LinksWritten>;
375
+ taskRelations(ids: string[], options?: {
376
+ complete?: boolean;
377
+ }): Promise<TaskRelations>;
366
378
  taskProjectHuman(input: string): Promise<HumanTaskProjected>;
367
379
  projectCreate(source: string, id: NativeId, title: string, options: ProjectCreateOptions & {
368
380
  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 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"];
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 assignee 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"];