@onetaskgraph/sdk 0.12.13 → 0.12.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
@@ -48,7 +48,15 @@ export type CopyQueryOptions = {
48
48
  metadata?: string[];
49
49
  statuses?: StatusCategory[];
50
50
  };
51
- export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & ExpectOptions & {
51
+ /** What a status-guarded copy does with a task whose destination status the guard does not name. */
52
+ export declare const otherwiseChoices: readonly ["refuse", "preserve-destination"];
53
+ export type Otherwise = (typeof otherwiseChoices)[number];
54
+ export type CopyConditionOptions = {
55
+ whenDestinationStatus?: StatusCategory[];
56
+ otherwise?: Otherwise;
57
+ whenDestinationPriority?: Priority[];
58
+ };
59
+ export type TaskCopyOptions = StatusCopyOptions & CopyOptions & CopyQueryOptions & CopyConditionOptions & ExpectOptions & {
52
60
  create?: boolean;
53
61
  targetTask?: string;
54
62
  };