@onetaskgraph/sdk 0.12.12 → 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 +11 -2
- package/dist/generated/commands.d.ts +1 -1
- package/dist/generated/models.d.ts +826 -73
- package/dist/generated/schemas.d.ts +1263 -99
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1847 -161
- 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, 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, SourceListings, SourceRoute, StatusCategory, StatusesReconciled, StatusNamesReport, StatusOptionsReport, 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[];
|
|
@@ -48,7 +48,15 @@ export type CopyQueryOptions = {
|
|
|
48
48
|
metadata?: string[];
|
|
49
49
|
statuses?: StatusCategory[];
|
|
50
50
|
};
|
|
51
|
-
|
|
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
|
};
|
|
@@ -238,6 +246,7 @@ export declare class OnetaskgraphClient {
|
|
|
238
246
|
taskRender(id: string, options?: ItemRenderOptions): Promise<Regenerated>;
|
|
239
247
|
taskAnswers(id: string): Promise<TemplateAnswers>;
|
|
240
248
|
taskAssets(id: string, outputDir: string): Promise<TaskAssetNames>;
|
|
249
|
+
taskProjectHuman(input: string): Promise<HumanTaskProjected>;
|
|
241
250
|
projectCreate(source: string, id: NativeId, title: string, options?: ProjectCreateOptions): Promise<QueryResponseOfQualifiedProject>;
|
|
242
251
|
projectRender(id: string, options?: RenderOptions): Promise<Regenerated>;
|
|
243
252
|
projectAnswers(id: string): Promise<TemplateAnswers>;
|
|
@@ -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", "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", "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"];
|