@astrale-domains/issues 0.4.3 → 0.4.4

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.
@@ -5,5 +5,8 @@ export const comment_authored_by = edgeClass.directed({
5
5
  description: 'The immutable author of one Comment.',
6
6
  source: { as: 'author', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'comment', accepts: [() => Comment], incoming: '1' },
8
- policies: { traverse: () => TraverseCommentRelationship },
8
+ policies: {
9
+ read: () => TraverseCommentRelationship,
10
+ traverse: () => TraverseCommentRelationship,
11
+ },
9
12
  });
@@ -27,5 +27,6 @@ export declare const Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass
27
27
  };
28
28
  readonly policies: {
29
29
  read: () => import("@astrale-os/sdk/schema").Policy;
30
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
30
31
  };
31
32
  }>;
@@ -14,5 +14,8 @@ export const Comment = nodeClass({
14
14
  authorId: property(nodeIdValue, {}),
15
15
  },
16
16
  methods: { edit: editCommentMethod, delete: deleteCommentMethod },
17
- policies: { read: () => ContributeToCommentOrReportedIssueOfComment },
17
+ policies: {
18
+ read: () => ContributeToCommentOrReportedIssueOfComment,
19
+ traverse: () => ContributeToCommentOrReportedIssueOfComment,
20
+ },
18
21
  });
@@ -6,5 +6,5 @@ export const issue_has_comment = edgeClass.directed({
6
6
  description: 'One Issue contains one Comment.',
7
7
  source: { as: 'issue', accepts: [() => Issue], outgoing: '0..*' },
8
8
  target: { as: 'comment', accepts: [() => Comment], incoming: '1' },
9
- policies: { traverse: () => TraverseIssueComment },
9
+ policies: { read: () => TraverseIssueComment, traverse: () => TraverseIssueComment },
10
10
  });
@@ -5,5 +5,5 @@ export const issue_assigned_to = edgeClass.directed({
5
5
  description: 'The optional current assignee of one Issue.',
6
6
  source: { as: 'assignee', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'issue', accepts: [() => Issue], incoming: '0..1' },
8
- policies: { traverse: () => TraverseIssueAssignee },
8
+ policies: { read: () => TraverseIssueAssignee, traverse: () => TraverseIssueAssignee },
9
9
  });
@@ -5,5 +5,5 @@ export const issue_reported_by = edgeClass.directed({
5
5
  description: 'The immutable reporter of one Issue.',
6
6
  source: { as: 'reporter', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'issue', accepts: [() => Issue], incoming: '1' },
8
- policies: { traverse: () => TraverseIssueReporter },
8
+ policies: { read: () => TraverseIssueReporter, traverse: () => TraverseIssueReporter },
9
9
  });
@@ -6,5 +6,5 @@ export const issue_subtask_of = edgeClass.directed({
6
6
  source: { as: 'child', accepts: [() => Issue], outgoing: '0..1' },
7
7
  target: { as: 'parent', accepts: [() => Issue], incoming: '0..*' },
8
8
  constraints: { noSelf: true, acyclic: true },
9
- policies: { traverse: () => TraverseIssueParent },
9
+ policies: { read: () => TraverseIssueParent, traverse: () => TraverseIssueParent },
10
10
  });
@@ -176,5 +176,6 @@ export declare const Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
176
176
  };
177
177
  readonly policies: {
178
178
  read: () => import("@astrale-os/sdk/schema").Policy;
179
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
179
180
  };
180
181
  }>;
@@ -37,5 +37,8 @@ export const Issue = nodeClass({
37
37
  addComment: addIssueCommentMethod,
38
38
  archive: archiveIssueMethod,
39
39
  },
40
- policies: { read: () => ContributeToIssueOrReportedIssue },
40
+ policies: {
41
+ read: () => ContributeToIssueOrReportedIssue,
42
+ traverse: () => ContributeToIssueOrReportedIssue,
43
+ },
41
44
  });
@@ -6,5 +6,5 @@ export const project_contains_issue = edgeClass.directed({
6
6
  description: 'One Project contains and numbers one Issue.',
7
7
  source: { as: 'project', accepts: [() => Project], outgoing: '0..*' },
8
8
  target: { as: 'issue', accepts: [() => Issue], incoming: '1' },
9
- policies: { traverse: () => TraverseProjectIssue },
9
+ policies: { read: () => TraverseProjectIssue, traverse: () => TraverseProjectIssue },
10
10
  });
@@ -5,5 +5,5 @@ export const project_has_member = edgeClass.directed({
5
5
  description: 'An Identity admitted to collaborate in one Project.',
6
6
  source: { as: 'member', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'project', accepts: [() => Project], incoming: '0..*' },
8
- policies: { traverse: () => TraverseProjectMember },
8
+ policies: { read: () => TraverseProjectMember, traverse: () => TraverseProjectMember },
9
9
  });
@@ -5,5 +5,5 @@ export const project_owned_by = edgeClass.directed({
5
5
  description: 'The exact Identity that owns and administers one Project.',
6
6
  source: { as: 'owner', accepts: [K.classes.Identity], outgoing: '0..*' },
7
7
  target: { as: 'project', accepts: [() => Project], incoming: '1' },
8
- policies: { traverse: () => TraverseProjectOwner },
8
+ policies: { read: () => TraverseProjectOwner, traverse: () => TraverseProjectOwner },
9
9
  });
@@ -162,5 +162,6 @@ export declare const Project: import("@astrale-os/sdk/schema").AuthoredNodeClass
162
162
  };
163
163
  readonly policies: {
164
164
  read: () => import("@astrale-os/sdk/schema").Policy;
165
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
165
166
  };
166
167
  }>;
@@ -34,5 +34,5 @@ export const Project = nodeClass({
34
34
  createTag: createProjectTagMethod,
35
35
  archive: archiveProjectMethod,
36
36
  },
37
- policies: { read: () => ContributeToProject },
37
+ policies: { read: () => ContributeToProject, traverse: () => ContributeToProject },
38
38
  });
@@ -6,5 +6,5 @@ export const issue_tagged_with = edgeClass.directed({
6
6
  description: 'One Issue is classified by one Tag from the same Project.',
7
7
  source: { as: 'issue', accepts: [() => Issue], outgoing: '0..*' },
8
8
  target: { as: 'tag', accepts: [() => Tag], incoming: '0..*' },
9
- policies: { traverse: () => TraverseIssueTag },
9
+ policies: { read: () => TraverseIssueTag, traverse: () => TraverseIssueTag },
10
10
  });
@@ -6,5 +6,5 @@ export const project_contains_tag = edgeClass.directed({
6
6
  description: 'One Project owns one local Tag vocabulary entry.',
7
7
  source: { as: 'project', accepts: [() => Project], outgoing: '0..*' },
8
8
  target: { as: 'tag', accepts: [() => Tag], incoming: '1' },
9
- policies: { traverse: () => TraverseProjectTag },
9
+ policies: { read: () => TraverseProjectTag, traverse: () => TraverseProjectTag },
10
10
  });
@@ -32,5 +32,6 @@ export declare const Tag: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
32
32
  };
33
33
  readonly policies: {
34
34
  read: () => import("@astrale-os/sdk/schema").Policy;
35
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
35
36
  };
36
37
  }>;
@@ -13,5 +13,5 @@ export const Tag = nodeClass({
13
13
  color: property(z.string().min(7).max(7), { required: false }),
14
14
  },
15
15
  methods: { edit: editTagMethod, delete: deleteTagMethod },
16
- policies: { read: () => ContributeToTag },
16
+ policies: { read: () => ContributeToTag, traverse: () => ContributeToTag },
17
17
  });
@@ -167,6 +167,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
167
167
  };
168
168
  readonly policies: {
169
169
  read: () => import("@astrale-os/sdk/schema").Policy;
170
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
170
171
  };
171
172
  }>;
172
173
  readonly Issue: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -346,6 +347,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
346
347
  };
347
348
  readonly policies: {
348
349
  read: () => import("@astrale-os/sdk/schema").Policy;
350
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
349
351
  };
350
352
  }>;
351
353
  readonly Comment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -376,6 +378,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
376
378
  };
377
379
  readonly policies: {
378
380
  read: () => import("@astrale-os/sdk/schema").Policy;
381
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
379
382
  };
380
383
  }>;
381
384
  readonly Tag: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
@@ -411,6 +414,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"is
411
414
  };
412
415
  readonly policies: {
413
416
  read: () => import("@astrale-os/sdk/schema").Policy;
417
+ traverse: () => import("@astrale-os/sdk/schema").Policy;
414
418
  };
415
419
  }>;
416
420
  readonly project_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-domains/issues",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/astrale-os/domains.git",