@pxlabz/tasq-sdk 0.1.29 → 0.1.30
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/index.d.ts +58 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1180,7 +1180,7 @@ type DispatchResponse<TName extends ActionName> = {
|
|
|
1180
1180
|
result: ActionWireOutputMap[TName];
|
|
1181
1181
|
invalidates: Array<Array<string>>;
|
|
1182
1182
|
};
|
|
1183
|
-
type ActionName = "task.create" | "task.assign" | "task.bulkSetCycle" | "task.move" | "task.setPriority" | "task.setEstimate" | "task.setDates" | "task.update" | "task.setProject" | "task.setCycle" | "task.setMilestone" | "task.setParent" | "task.requestApproval" | "task.decide" | "task.addLabel" | "task.removeLabel" | "task.archive" | "task.unarchive" | "task.setField" | "task.bulkSetField" | "time.log" | "time.update" | "time.delete" | "billingPeriod.close" | "billingPeriod.markInvoiced" | "billingPeriod.reopen" | "timeDraft.request" | "timeDraft.save" | "timeDraft.confirm" | "timeDraft.dismiss" | "timeDraft.reply" | "comment.add" | "notification.markRead" | "project.create" | "project.update" | "project.archive" | "project.unarchive" | "project.addTeam" | "project.removeTeam" | "project.addMember" | "project.removeMember" | "project.setLead" | "project.grantGuest" | "project.setGuestAccess" | "project.revokeGuest" | "project.star" | "project.unstar" | "project.setField" | "initiative.create" | "initiative.update" | "initiative.delete" | "initiative.linkProject" | "initiative.unlinkProject" | "projectUpdate.create" | "projectUpdate.update" | "projectUpdate.send" | "projectUpdate.delete" | "doc.create" | "doc.update" | "doc.link" | "doc.unlink" | "doc.archive" | "doc.unarchive" | "doc.restore" | "milestone.create" | "milestone.update" | "milestone.delete" | "milestone.reorder" | "milestone.promote" | "cycle.create" | "cycle.update" | "cycle.delete" | "status.create" | "status.update" | "status.reorder" | "status.delete" | "label.create" | "label.update" | "label.delete" | "field.create" | "field.update" | "field.archive" | "field.restore" | "field.addOption" | "field.updateOption" | "field.reorderOptions" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "team.setFields" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
|
|
1183
|
+
type ActionName = "task.create" | "task.assign" | "task.bulkSetCycle" | "task.move" | "task.setPriority" | "task.setEstimate" | "task.setDates" | "task.update" | "task.setProject" | "task.setCycle" | "task.setMilestone" | "task.setParent" | "task.requestApproval" | "task.decide" | "task.addLabel" | "task.removeLabel" | "task.archive" | "task.unarchive" | "task.setField" | "task.bulkSetField" | "time.log" | "time.update" | "time.delete" | "billingPeriod.close" | "billingPeriod.markInvoiced" | "billingPeriod.reopen" | "timeDraft.request" | "timeDraft.save" | "timeDraft.confirm" | "timeDraft.dismiss" | "timeDraft.reply" | "comment.add" | "notification.markRead" | "project.create" | "project.update" | "project.archive" | "project.unarchive" | "project.addTeam" | "project.removeTeam" | "project.addMember" | "project.removeMember" | "project.setLead" | "project.grantGuest" | "project.setGuestAccess" | "project.revokeGuest" | "project.star" | "project.unstar" | "project.setField" | "initiative.create" | "initiative.update" | "initiative.delete" | "initiative.linkProject" | "initiative.unlinkProject" | "projectUpdate.create" | "projectUpdate.update" | "projectUpdate.send" | "projectUpdate.delete" | "doc.create" | "doc.update" | "doc.link" | "doc.unlink" | "doc.archive" | "doc.unarchive" | "doc.applyTemplate" | "doc.restore" | "milestone.create" | "milestone.update" | "milestone.delete" | "milestone.reorder" | "milestone.promote" | "cycle.create" | "cycle.update" | "cycle.delete" | "status.create" | "status.update" | "status.reorder" | "status.delete" | "label.create" | "label.update" | "label.delete" | "field.create" | "field.update" | "field.archive" | "field.restore" | "field.addOption" | "field.updateOption" | "field.reorderOptions" | "team.cycleCadence.save" | "team.estimateSettings.save" | "team.agentSettings.save" | "team.cycleLifecycle.apply" | "team.applyTemplate" | "team.setModules" | "team.setWords" | "team.setFields" | "release.saveNarrative" | "agent.create" | "agent.setPolicy" | "agent.issueKey" | "agent.revokeKey" | "agent.pause" | "agent.resume" | "agent.remove";
|
|
1184
1184
|
type ActionInputMap = Omit<ActionParsedInputMap, "cycle.create" | "cycle.update"> & {
|
|
1185
1185
|
"cycle.create": DatesAsInput<{
|
|
1186
1186
|
teamIdentifier: string;
|
|
@@ -1485,7 +1485,9 @@ type ActionParsedInputMap = {
|
|
|
1485
1485
|
updateId: string;
|
|
1486
1486
|
};
|
|
1487
1487
|
"doc.create": {
|
|
1488
|
-
title
|
|
1488
|
+
title?: string | undefined;
|
|
1489
|
+
kind?: "doc" | "template" | undefined;
|
|
1490
|
+
fromDocumentId?: string | undefined;
|
|
1489
1491
|
projectId?: string | undefined;
|
|
1490
1492
|
teamId?: string | undefined;
|
|
1491
1493
|
bodyDocument?: DescriptionDocumentJson | null | undefined;
|
|
@@ -1513,6 +1515,12 @@ type ActionParsedInputMap = {
|
|
|
1513
1515
|
"doc.unarchive": {
|
|
1514
1516
|
documentId: string;
|
|
1515
1517
|
};
|
|
1518
|
+
"doc.applyTemplate": {
|
|
1519
|
+
documentId: string;
|
|
1520
|
+
templateId: string;
|
|
1521
|
+
baseVersion: number;
|
|
1522
|
+
title?: string | undefined;
|
|
1523
|
+
};
|
|
1516
1524
|
"doc.restore": {
|
|
1517
1525
|
documentId: string;
|
|
1518
1526
|
revisionId: string;
|
|
@@ -3564,6 +3572,8 @@ type ActionWireOutputMap = {
|
|
|
3564
3572
|
document: {
|
|
3565
3573
|
id: string;
|
|
3566
3574
|
workspaceId: string;
|
|
3575
|
+
kind: "doc" | "template";
|
|
3576
|
+
sourceTemplateId: string | null;
|
|
3567
3577
|
title: string;
|
|
3568
3578
|
bodyDocument: {
|
|
3569
3579
|
version: 1;
|
|
@@ -3598,6 +3608,8 @@ type ActionWireOutputMap = {
|
|
|
3598
3608
|
document: {
|
|
3599
3609
|
id: string;
|
|
3600
3610
|
workspaceId: string;
|
|
3611
|
+
kind: "doc" | "template";
|
|
3612
|
+
sourceTemplateId: string | null;
|
|
3601
3613
|
title: string;
|
|
3602
3614
|
bodyDocument: {
|
|
3603
3615
|
version: 1;
|
|
@@ -3633,6 +3645,8 @@ type ActionWireOutputMap = {
|
|
|
3633
3645
|
document: {
|
|
3634
3646
|
id: string;
|
|
3635
3647
|
workspaceId: string;
|
|
3648
|
+
kind: "doc" | "template";
|
|
3649
|
+
sourceTemplateId: string | null;
|
|
3636
3650
|
title: string;
|
|
3637
3651
|
bodyDocument: {
|
|
3638
3652
|
version: 1;
|
|
@@ -3689,6 +3703,8 @@ type ActionWireOutputMap = {
|
|
|
3689
3703
|
document: {
|
|
3690
3704
|
id: string;
|
|
3691
3705
|
workspaceId: string;
|
|
3706
|
+
kind: "doc" | "template";
|
|
3707
|
+
sourceTemplateId: string | null;
|
|
3692
3708
|
title: string;
|
|
3693
3709
|
bodyDocument: {
|
|
3694
3710
|
version: 1;
|
|
@@ -3722,6 +3738,8 @@ type ActionWireOutputMap = {
|
|
|
3722
3738
|
document: {
|
|
3723
3739
|
id: string;
|
|
3724
3740
|
workspaceId: string;
|
|
3741
|
+
kind: "doc" | "template";
|
|
3742
|
+
sourceTemplateId: string | null;
|
|
3725
3743
|
title: string;
|
|
3726
3744
|
bodyDocument: {
|
|
3727
3745
|
version: 1;
|
|
@@ -3751,10 +3769,48 @@ type ActionWireOutputMap = {
|
|
|
3751
3769
|
updatedAt: string;
|
|
3752
3770
|
};
|
|
3753
3771
|
};
|
|
3772
|
+
"doc.applyTemplate": {
|
|
3773
|
+
document: {
|
|
3774
|
+
id: string;
|
|
3775
|
+
workspaceId: string;
|
|
3776
|
+
kind: "doc" | "template";
|
|
3777
|
+
sourceTemplateId: string | null;
|
|
3778
|
+
title: string;
|
|
3779
|
+
bodyDocument: {
|
|
3780
|
+
version: 1;
|
|
3781
|
+
content: {
|
|
3782
|
+
[x: string]: any;
|
|
3783
|
+
type?: string | undefined;
|
|
3784
|
+
attrs?: {
|
|
3785
|
+
[x: string]: any;
|
|
3786
|
+
} | undefined;
|
|
3787
|
+
content?: any[] | undefined;
|
|
3788
|
+
marks?: {
|
|
3789
|
+
[x: string]: any;
|
|
3790
|
+
type: string;
|
|
3791
|
+
attrs?: {
|
|
3792
|
+
[x: string]: any;
|
|
3793
|
+
} | undefined;
|
|
3794
|
+
}[] | undefined;
|
|
3795
|
+
text?: string | undefined;
|
|
3796
|
+
};
|
|
3797
|
+
} | null;
|
|
3798
|
+
bodyText: string;
|
|
3799
|
+
version: number;
|
|
3800
|
+
ownerMemberId: string | null;
|
|
3801
|
+
actorType: "user" | "agent" | "system";
|
|
3802
|
+
archivedAt: string | null;
|
|
3803
|
+
createdAt: string;
|
|
3804
|
+
updatedAt: string;
|
|
3805
|
+
};
|
|
3806
|
+
mentionsAdded: string[];
|
|
3807
|
+
};
|
|
3754
3808
|
"doc.restore": {
|
|
3755
3809
|
document: {
|
|
3756
3810
|
id: string;
|
|
3757
3811
|
workspaceId: string;
|
|
3812
|
+
kind: "doc" | "template";
|
|
3813
|
+
sourceTemplateId: string | null;
|
|
3758
3814
|
title: string;
|
|
3759
3815
|
bodyDocument: {
|
|
3760
3816
|
version: 1;
|