@astrale-domains/issues 0.8.8 → 0.8.9
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/README.md +8 -1
- package/dist/schema/modules/comment/classes/issue-has-comment.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-assigned-to.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-is-about.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-reported-by.d.ts +2 -2
- package/dist/schema/modules/issue/classes/issue-subtask-of.d.ts +4 -4
- package/dist/schema/modules/issue/classes/issue-tracked-by.d.ts +4 -4
- package/dist/schema/modules/issue/classes/issue.d.ts +13 -0
- package/dist/schema/modules/issue/classes/issue.js +5 -0
- package/dist/schema/modules/issue/classes/project-contains-issue.d.ts +2 -2
- package/dist/schema/modules/issue/functions/index.d.ts +1 -0
- package/dist/schema/modules/issue/functions/index.js +1 -0
- package/dist/schema/modules/issue/functions/transfer-issue.d.ts +10 -0
- package/dist/schema/modules/issue/functions/transfer-issue.js +15 -0
- package/dist/schema/modules/issue/index.d.ts +1 -1
- package/dist/schema/modules/issue/index.js +1 -1
- package/dist/schema/modules/tag/classes/issue-tagged-with.d.ts +2 -2
- package/dist/schema/schema.d.ts +33 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Comments by reading the graph under their own authority:
|
|
|
34
34
|
Project.create
|
|
35
35
|
Project.update | addMember | removeMember | createIssue | receiveReport | createTag | archive
|
|
36
36
|
| delete
|
|
37
|
-
Issue.update | edit | transition | assign | setTags | setTopics | setParent | track | untrack
|
|
37
|
+
Issue.update | edit | transition | assign | setTags | setTopics | setParent | transfer | track | untrack
|
|
38
38
|
| addComment | archive | delete
|
|
39
39
|
Comment.edit | delete
|
|
40
40
|
Tag.edit | delete
|
|
@@ -65,6 +65,13 @@ Class counted before it is listed, so the read stays within that bound whatever
|
|
|
65
65
|
An Edge of another Domain that holds the Project or one of its Nodes, such as a Fleet's report
|
|
66
66
|
intake, makes the Kernel refuse the deletion.
|
|
67
67
|
|
|
68
|
+
From an Issue page, its Project owner can choose **Transfer Issue**, select another active Project
|
|
69
|
+
they own or belong to, and confirm. `Issue.transfer` moves the active Issue and its discussion
|
|
70
|
+
under the destination's access rules. Its reference, URL, reporter, status, tracking links and
|
|
71
|
+
topics stay with it. Project-local Tags and parent/sub-issue links are detached, and the assignee
|
|
72
|
+
stays if they belong to the destination. Report retries still resolve in the Project that
|
|
73
|
+
originally received them. The transfer commits in one Mutation, including any relationship changes.
|
|
74
|
+
|
|
68
75
|
An Issue tracks Issues of any Project, such as a Product Issue tracking the reports it answers.
|
|
69
76
|
`Issue.track` accepts an open tracked Issue; from then on, each status event of the tracking Issue
|
|
70
77
|
is applied to every Issue it tracks for which it is legal, in the same Mutation. A tracked Issue
|
|
@@ -9,8 +9,8 @@ export declare const issue_has_comment: import("@astrale-os/sdk/schema").Directe
|
|
|
9
9
|
readonly kind: 'node';
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
12
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..*";
|
|
16
16
|
};
|
|
@@ -16,8 +16,8 @@ export declare const issue_assigned_to: import("@astrale-os/sdk/schema").Directe
|
|
|
16
16
|
readonly kind: 'node';
|
|
17
17
|
readonly abstract: false;
|
|
18
18
|
readonly depth: 1;
|
|
19
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
20
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
19
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
20
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
21
21
|
})[];
|
|
22
22
|
readonly incoming: "0..1";
|
|
23
23
|
};
|
|
@@ -18,8 +18,8 @@ export declare const issue_is_about: import("@astrale-os/sdk/schema").DirectedEd
|
|
|
18
18
|
readonly kind: 'node';
|
|
19
19
|
readonly abstract: false;
|
|
20
20
|
readonly depth: 1;
|
|
21
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
22
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
21
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
22
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
23
23
|
})[];
|
|
24
24
|
readonly outgoing: "0..*";
|
|
25
25
|
};
|
|
@@ -16,8 +16,8 @@ export declare const issue_reported_by: import("@astrale-os/sdk/schema").Directe
|
|
|
16
16
|
readonly kind: 'node';
|
|
17
17
|
readonly abstract: false;
|
|
18
18
|
readonly depth: 1;
|
|
19
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
20
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
19
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
20
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
21
21
|
})[];
|
|
22
22
|
readonly incoming: "0..1";
|
|
23
23
|
};
|
|
@@ -9,8 +9,8 @@ export declare const issue_subtask_of: import("@astrale-os/sdk/schema").Directed
|
|
|
9
9
|
readonly kind: 'node';
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
12
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..1";
|
|
16
16
|
};
|
|
@@ -20,8 +20,8 @@ export declare const issue_subtask_of: import("@astrale-os/sdk/schema").Directed
|
|
|
20
20
|
readonly kind: 'node';
|
|
21
21
|
readonly abstract: false;
|
|
22
22
|
readonly depth: 1;
|
|
23
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
23
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
25
25
|
})[];
|
|
26
26
|
readonly incoming: "0..*";
|
|
27
27
|
};
|
|
@@ -9,8 +9,8 @@ export declare const issue_tracked_by: import("@astrale-os/sdk/schema").Directed
|
|
|
9
9
|
readonly kind: 'node';
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
12
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..1";
|
|
16
16
|
};
|
|
@@ -20,8 +20,8 @@ export declare const issue_tracked_by: import("@astrale-os/sdk/schema").Directed
|
|
|
20
20
|
readonly kind: 'node';
|
|
21
21
|
readonly abstract: false;
|
|
22
22
|
readonly depth: 1;
|
|
23
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
23
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
25
25
|
})[];
|
|
26
26
|
readonly incoming: "0..*";
|
|
27
27
|
};
|
|
@@ -36,6 +36,9 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
|
36
36
|
readonly description: "How urgent the Issue is: 0 no priority, 1 low, 2 medium, 3 high, 4 urgent.";
|
|
37
37
|
}>;
|
|
38
38
|
archived: z.ZodBoolean;
|
|
39
|
+
reportProjectId: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodOptional<z.ZodString>, {
|
|
40
|
+
readonly description: "The Project that received this report. Set on earlier reports when they first move.";
|
|
41
|
+
}>;
|
|
39
42
|
reportRequestId: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodOptional<z.ZodString>, {}>;
|
|
40
43
|
report: import("@astrale-os/sdk/schema").AuthoredProperty<z.ZodOptional<z.ZodObject<{
|
|
41
44
|
title: z.ZodString;
|
|
@@ -171,6 +174,16 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
|
|
|
171
174
|
parentId?: string | undefined;
|
|
172
175
|
};
|
|
173
176
|
}, "authorized", false, false, undefined, undefined>>;
|
|
177
|
+
transfer: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
178
|
+
source: string;
|
|
179
|
+
destination: string;
|
|
180
|
+
}, {
|
|
181
|
+
readonly mode: 'value';
|
|
182
|
+
readonly value: {
|
|
183
|
+
issueId: string;
|
|
184
|
+
projectId: string;
|
|
185
|
+
};
|
|
186
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
174
187
|
track: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
175
188
|
issue: string;
|
|
176
189
|
}, {
|
|
@@ -11,6 +11,7 @@ import { setIssueParentMethod } from '../functions/set-issue-parent.js';
|
|
|
11
11
|
import { setIssueTagsMethod } from '../functions/set-issue-tags.js';
|
|
12
12
|
import { setIssueTopicsMethod } from '../functions/set-issue-topics.js';
|
|
13
13
|
import { trackIssueMethod } from '../functions/track-issue.js';
|
|
14
|
+
import { transferIssueMethod } from '../functions/transfer-issue.js';
|
|
14
15
|
import { transitionIssueMethod } from '../functions/transition-issue.js';
|
|
15
16
|
import { untrackIssueMethod } from '../functions/untrack-issue.js';
|
|
16
17
|
import { updateIssueMethod } from '../functions/update-issue.js';
|
|
@@ -37,6 +38,9 @@ export const Issue = nodeClass({
|
|
|
37
38
|
description: 'How urgent the Issue is: 0 no priority, 1 low, 2 medium, 3 high, 4 urgent.',
|
|
38
39
|
}),
|
|
39
40
|
archived: z.boolean(),
|
|
41
|
+
reportProjectId: property(nodeIdValue.optional(), {
|
|
42
|
+
description: 'The Project that received this report. Set on earlier reports when they first move.',
|
|
43
|
+
}),
|
|
40
44
|
reportRequestId: property(z.string().min(1).max(128).optional(), {}),
|
|
41
45
|
report: property(reportContentValue.optional(), {}),
|
|
42
46
|
},
|
|
@@ -48,6 +52,7 @@ export const Issue = nodeClass({
|
|
|
48
52
|
setTags: setIssueTagsMethod,
|
|
49
53
|
setTopics: setIssueTopicsMethod,
|
|
50
54
|
setParent: setIssueParentMethod,
|
|
55
|
+
transfer: transferIssueMethod,
|
|
51
56
|
track: trackIssueMethod,
|
|
52
57
|
untrack: untrackIssueMethod,
|
|
53
58
|
addComment: addIssueCommentMethod,
|
|
@@ -20,8 +20,8 @@ export declare const project_contains_issue: import("@astrale-os/sdk/schema").Di
|
|
|
20
20
|
readonly kind: 'node';
|
|
21
21
|
readonly abstract: false;
|
|
22
22
|
readonly depth: 1;
|
|
23
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
23
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
24
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
25
25
|
})[];
|
|
26
26
|
readonly incoming: "1";
|
|
27
27
|
};
|
|
@@ -10,3 +10,4 @@ export { trackIssueMethod } from './track-issue.js';
|
|
|
10
10
|
export { transitionIssueMethod } from './transition-issue.js';
|
|
11
11
|
export { untrackIssueMethod } from './untrack-issue.js';
|
|
12
12
|
export { updateIssueMethod } from './update-issue.js';
|
|
13
|
+
export { transferIssueMethod } from './transfer-issue.js';
|
|
@@ -10,3 +10,4 @@ export { trackIssueMethod } from './track-issue.js';
|
|
|
10
10
|
export { transitionIssueMethod } from './transition-issue.js';
|
|
11
11
|
export { untrackIssueMethod } from './untrack-issue.js';
|
|
12
12
|
export { updateIssueMethod } from './update-issue.js';
|
|
13
|
+
export { transferIssueMethod } from './transfer-issue.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const transferIssueMethod: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
2
|
+
source: string;
|
|
3
|
+
destination: string;
|
|
4
|
+
}, {
|
|
5
|
+
readonly mode: 'value';
|
|
6
|
+
readonly value: {
|
|
7
|
+
issueId: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
};
|
|
10
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { method, path } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { Project, ownsOrBelongsToProject, ownsProject } from '../../project/index.js';
|
|
4
|
+
import { nodeIdValue } from '../../../types/index.js';
|
|
5
|
+
import { ownsProjectOfIssue } from '../policies/owns-project-of-issue.js';
|
|
6
|
+
export const transferIssueMethod = method({
|
|
7
|
+
description: 'Move this Issue between Projects, keeping its reference and discussion. Detach its Tags and parent/sub-Issues, and clear an assignee outside the destination.',
|
|
8
|
+
auth: 'authorized',
|
|
9
|
+
policy: ({ allOf, check, input, self }) => allOf(check(ownsProjectOfIssue, self), check(ownsProject, input.source), check(ownsOrBelongsToProject, input.destination)),
|
|
10
|
+
input: z.strictObject({
|
|
11
|
+
source: path(() => Project),
|
|
12
|
+
destination: path(() => Project),
|
|
13
|
+
}),
|
|
14
|
+
output: z.strictObject({ issueId: nodeIdValue, projectId: nodeIdValue }),
|
|
15
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { issueDescriptionValue, issuePriorityValue, issueTitleValue, issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, type ReportContent, } from './types/index.js';
|
|
2
2
|
export { issueStatus, type IssueEvent, type IssueStatus } from './states/index.js';
|
|
3
3
|
export { issue_assigned_to, issue_is_about, issue_reported_by, issue_subtask_of, issue_tracked_by, Issue, project_contains_issue, } from './classes/index.js';
|
|
4
|
-
export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, deleteIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, setIssueTopicsMethod, trackIssueMethod, transitionIssueMethod, untrackIssueMethod, updateIssueMethod, } from './functions/index.js';
|
|
4
|
+
export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, deleteIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, setIssueTopicsMethod, trackIssueMethod, transferIssueMethod, transitionIssueMethod, untrackIssueMethod, updateIssueMethod, } from './functions/index.js';
|
|
5
5
|
export { ownsOrBelongsToProjectOfIssue, ownsOrBelongsToProjectOfIssueOrReportedIssue, ownsProjectOfIssue, reportedIssue, ownsOrBelongsToProjectOfAssignedIssue, ownsOrBelongsToProjectOfChildIssue, ownsOrBelongsToProjectOfReportedIssueOrReportedIssue, ownsOrBelongsToProjectOfIssueWithTopic, ownsOrBelongsToProjectOfTrackedOrTrackingIssue, } from './policies/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { issueDescriptionValue, issuePriorityValue, issueTitleValue, issueValue, reportContentValue, reportContextValue, receiveReportInput, reportReceiptValue, } from './types/index.js';
|
|
2
2
|
export { issueStatus } from './states/index.js';
|
|
3
3
|
export { issue_assigned_to, issue_is_about, issue_reported_by, issue_subtask_of, issue_tracked_by, Issue, project_contains_issue, } from './classes/index.js';
|
|
4
|
-
export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, deleteIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, setIssueTopicsMethod, trackIssueMethod, transitionIssueMethod, untrackIssueMethod, updateIssueMethod, } from './functions/index.js';
|
|
4
|
+
export { addIssueCommentMethod, archiveIssueMethod, assignIssueMethod, deleteIssueMethod, editIssueMethod, setIssueParentMethod, setIssueTagsMethod, setIssueTopicsMethod, trackIssueMethod, transferIssueMethod, transitionIssueMethod, untrackIssueMethod, updateIssueMethod, } from './functions/index.js';
|
|
5
5
|
export { ownsOrBelongsToProjectOfIssue, ownsOrBelongsToProjectOfIssueOrReportedIssue, ownsProjectOfIssue, reportedIssue, ownsOrBelongsToProjectOfAssignedIssue, ownsOrBelongsToProjectOfChildIssue, ownsOrBelongsToProjectOfReportedIssueOrReportedIssue, ownsOrBelongsToProjectOfIssueWithTopic, ownsOrBelongsToProjectOfTrackedOrTrackingIssue, } from './policies/index.js';
|
|
@@ -9,8 +9,8 @@ export declare const issue_tagged_with: import("@astrale-os/sdk/schema").Directe
|
|
|
9
9
|
readonly kind: 'node';
|
|
10
10
|
readonly abstract: false;
|
|
11
11
|
readonly depth: 1;
|
|
12
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
12
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
13
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
14
14
|
})[];
|
|
15
15
|
readonly outgoing: "0..*";
|
|
16
16
|
};
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -190,6 +190,9 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
190
190
|
readonly description: "How urgent the Issue is: 0 no priority, 1 low, 2 medium, 3 high, 4 urgent.";
|
|
191
191
|
}>;
|
|
192
192
|
archived: import("zod").ZodBoolean;
|
|
193
|
+
reportProjectId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodOptional<import("zod").ZodString>, {
|
|
194
|
+
readonly description: "The Project that received this report. Set on earlier reports when they first move.";
|
|
195
|
+
}>;
|
|
193
196
|
reportRequestId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodOptional<import("zod").ZodString>, {}>;
|
|
194
197
|
report: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
195
198
|
title: import("zod").ZodString;
|
|
@@ -325,6 +328,16 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
325
328
|
parentId?: string | undefined;
|
|
326
329
|
};
|
|
327
330
|
}, "authorized", false, false, undefined, undefined>>;
|
|
331
|
+
transfer: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
332
|
+
source: string;
|
|
333
|
+
destination: string;
|
|
334
|
+
}, {
|
|
335
|
+
readonly mode: 'value';
|
|
336
|
+
readonly value: {
|
|
337
|
+
issueId: string;
|
|
338
|
+
projectId: string;
|
|
339
|
+
};
|
|
340
|
+
}, "authorized", false, false, undefined, undefined>>;
|
|
328
341
|
track: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
329
342
|
issue: string;
|
|
330
343
|
}, {
|
|
@@ -514,8 +527,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
514
527
|
readonly kind: 'node';
|
|
515
528
|
readonly abstract: false;
|
|
516
529
|
readonly depth: 1;
|
|
517
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
518
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
530
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
531
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
519
532
|
})[];
|
|
520
533
|
readonly incoming: "1";
|
|
521
534
|
};
|
|
@@ -540,8 +553,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
540
553
|
readonly kind: 'node';
|
|
541
554
|
readonly abstract: false;
|
|
542
555
|
readonly depth: 1;
|
|
543
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
544
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
556
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
557
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
545
558
|
})[];
|
|
546
559
|
readonly incoming: "0..1";
|
|
547
560
|
};
|
|
@@ -566,8 +579,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
566
579
|
readonly kind: 'node';
|
|
567
580
|
readonly abstract: false;
|
|
568
581
|
readonly depth: 1;
|
|
569
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
570
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
582
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
583
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
571
584
|
})[];
|
|
572
585
|
readonly incoming: "0..1";
|
|
573
586
|
};
|
|
@@ -585,8 +598,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
585
598
|
readonly kind: 'node';
|
|
586
599
|
readonly abstract: false;
|
|
587
600
|
readonly depth: 1;
|
|
588
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
589
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
601
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
602
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
590
603
|
})[];
|
|
591
604
|
readonly outgoing: "0..1";
|
|
592
605
|
};
|
|
@@ -596,8 +609,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
596
609
|
readonly kind: 'node';
|
|
597
610
|
readonly abstract: false;
|
|
598
611
|
readonly depth: 1;
|
|
599
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
600
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
612
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
613
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
601
614
|
})[];
|
|
602
615
|
readonly incoming: "0..*";
|
|
603
616
|
};
|
|
@@ -618,8 +631,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
618
631
|
readonly kind: 'node';
|
|
619
632
|
readonly abstract: false;
|
|
620
633
|
readonly depth: 1;
|
|
621
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
622
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
634
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
635
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
623
636
|
})[];
|
|
624
637
|
readonly outgoing: "0..1";
|
|
625
638
|
};
|
|
@@ -629,8 +642,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
629
642
|
readonly kind: 'node';
|
|
630
643
|
readonly abstract: false;
|
|
631
644
|
readonly depth: 1;
|
|
632
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
633
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
645
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
646
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
634
647
|
})[];
|
|
635
648
|
readonly incoming: "0..*";
|
|
636
649
|
};
|
|
@@ -651,8 +664,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
651
664
|
readonly kind: 'node';
|
|
652
665
|
readonly abstract: false;
|
|
653
666
|
readonly depth: 1;
|
|
654
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
655
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
667
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
668
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
656
669
|
})[];
|
|
657
670
|
readonly outgoing: "0..*";
|
|
658
671
|
};
|
|
@@ -737,8 +750,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
737
750
|
readonly kind: 'node';
|
|
738
751
|
readonly abstract: false;
|
|
739
752
|
readonly depth: 1;
|
|
740
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
741
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
753
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
754
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
742
755
|
})[];
|
|
743
756
|
readonly outgoing: "0..*";
|
|
744
757
|
};
|
|
@@ -769,8 +782,8 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
|
|
|
769
782
|
readonly kind: 'node';
|
|
770
783
|
readonly abstract: false;
|
|
771
784
|
readonly depth: 1;
|
|
772
|
-
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
773
|
-
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transition" | "untrack" | "update";
|
|
785
|
+
readonly properties: "archived" | "assigneeId" | "body" | "createdAt" | "description" | "name" | "priority" | "reference" | "report" | "reportProjectId" | "reportRequestId" | "reporterId" | "status" | "updatedAt";
|
|
786
|
+
readonly methods: "addComment" | "archive" | "assign" | "delete" | "edit" | "setParent" | "setTags" | "setTopics" | "track" | "transfer" | "transition" | "untrack" | "update";
|
|
774
787
|
})[];
|
|
775
788
|
readonly outgoing: "0..*";
|
|
776
789
|
};
|