@pxlabz/tasq-sdk 0.1.28 → 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 +99 -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" | "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,17 @@ 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
|
+
};
|
|
1524
|
+
"doc.restore": {
|
|
1525
|
+
documentId: string;
|
|
1526
|
+
revisionId: string;
|
|
1527
|
+
baseVersion: number;
|
|
1528
|
+
};
|
|
1516
1529
|
"milestone.create": {
|
|
1517
1530
|
projectId: string;
|
|
1518
1531
|
name: string;
|
|
@@ -3559,6 +3572,8 @@ type ActionWireOutputMap = {
|
|
|
3559
3572
|
document: {
|
|
3560
3573
|
id: string;
|
|
3561
3574
|
workspaceId: string;
|
|
3575
|
+
kind: "doc" | "template";
|
|
3576
|
+
sourceTemplateId: string | null;
|
|
3562
3577
|
title: string;
|
|
3563
3578
|
bodyDocument: {
|
|
3564
3579
|
version: 1;
|
|
@@ -3593,6 +3608,8 @@ type ActionWireOutputMap = {
|
|
|
3593
3608
|
document: {
|
|
3594
3609
|
id: string;
|
|
3595
3610
|
workspaceId: string;
|
|
3611
|
+
kind: "doc" | "template";
|
|
3612
|
+
sourceTemplateId: string | null;
|
|
3596
3613
|
title: string;
|
|
3597
3614
|
bodyDocument: {
|
|
3598
3615
|
version: 1;
|
|
@@ -3628,6 +3645,8 @@ type ActionWireOutputMap = {
|
|
|
3628
3645
|
document: {
|
|
3629
3646
|
id: string;
|
|
3630
3647
|
workspaceId: string;
|
|
3648
|
+
kind: "doc" | "template";
|
|
3649
|
+
sourceTemplateId: string | null;
|
|
3631
3650
|
title: string;
|
|
3632
3651
|
bodyDocument: {
|
|
3633
3652
|
version: 1;
|
|
@@ -3684,6 +3703,8 @@ type ActionWireOutputMap = {
|
|
|
3684
3703
|
document: {
|
|
3685
3704
|
id: string;
|
|
3686
3705
|
workspaceId: string;
|
|
3706
|
+
kind: "doc" | "template";
|
|
3707
|
+
sourceTemplateId: string | null;
|
|
3687
3708
|
title: string;
|
|
3688
3709
|
bodyDocument: {
|
|
3689
3710
|
version: 1;
|
|
@@ -3717,6 +3738,79 @@ type ActionWireOutputMap = {
|
|
|
3717
3738
|
document: {
|
|
3718
3739
|
id: string;
|
|
3719
3740
|
workspaceId: string;
|
|
3741
|
+
kind: "doc" | "template";
|
|
3742
|
+
sourceTemplateId: string | null;
|
|
3743
|
+
title: string;
|
|
3744
|
+
bodyDocument: {
|
|
3745
|
+
version: 1;
|
|
3746
|
+
content: {
|
|
3747
|
+
[x: string]: any;
|
|
3748
|
+
type?: string | undefined;
|
|
3749
|
+
attrs?: {
|
|
3750
|
+
[x: string]: any;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
content?: any[] | undefined;
|
|
3753
|
+
marks?: {
|
|
3754
|
+
[x: string]: any;
|
|
3755
|
+
type: string;
|
|
3756
|
+
attrs?: {
|
|
3757
|
+
[x: string]: any;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
}[] | undefined;
|
|
3760
|
+
text?: string | undefined;
|
|
3761
|
+
};
|
|
3762
|
+
} | null;
|
|
3763
|
+
bodyText: string;
|
|
3764
|
+
version: number;
|
|
3765
|
+
ownerMemberId: string | null;
|
|
3766
|
+
actorType: "user" | "agent" | "system";
|
|
3767
|
+
archivedAt: string | null;
|
|
3768
|
+
createdAt: string;
|
|
3769
|
+
updatedAt: string;
|
|
3770
|
+
};
|
|
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
|
+
};
|
|
3808
|
+
"doc.restore": {
|
|
3809
|
+
document: {
|
|
3810
|
+
id: string;
|
|
3811
|
+
workspaceId: string;
|
|
3812
|
+
kind: "doc" | "template";
|
|
3813
|
+
sourceTemplateId: string | null;
|
|
3720
3814
|
title: string;
|
|
3721
3815
|
bodyDocument: {
|
|
3722
3816
|
version: 1;
|
|
@@ -3745,6 +3839,9 @@ type ActionWireOutputMap = {
|
|
|
3745
3839
|
createdAt: string;
|
|
3746
3840
|
updatedAt: string;
|
|
3747
3841
|
};
|
|
3842
|
+
restored: boolean;
|
|
3843
|
+
mentionsAdded: string[];
|
|
3844
|
+
mentionsRemoved: string[];
|
|
3748
3845
|
};
|
|
3749
3846
|
"milestone.create": {
|
|
3750
3847
|
milestone: {
|