refactor(magefile): update schema generator to use 0644 file permissions

This commit is contained in:
Jordan Knott
2021-10-26 14:42:04 -05:00
parent ef2aadefbb
commit d5d85c5e30
14 changed files with 632 additions and 420 deletions

View File

@ -1,36 +1,38 @@
extend type Subscription {
notificationAdded: Notified!
}
extend type Query {
notifications: [Notification!]!
}
enum EntityType {
TASK
}
enum ActorType {
USER
notifications: [Notified!]!
}
enum ActionType {
TASK_MEMBER_ADDED
}
type NotificationActor {
id: UUID!
type: ActorType!
name: String!
type NotificationData {
key: String!
value: String!
}
type NotificationEntity {
id: UUID!
type: EntityType!
name: String!
type NotificationCausedBy {
fullname: String!
username: String!
id: ID!
}
type Notification {
id: ID!
entity: NotificationEntity!
actionType: ActionType!
actor: NotificationActor!
read: Boolean!
causedBy: NotificationCausedBy!
data: [NotificationData!]!
createdAt: Time!
}
type Notified {
id: ID!
notification: Notification!
read: Boolean!
read_at: Time
}

View File

@ -1,36 +1,37 @@
extend type Subscription {
notificationAdded: Notified!
}
extend type Query {
notifications: [Notification!]!
}
enum EntityType {
TASK
}
enum ActorType {
USER
notifications: [Notified!]!
}
enum ActionType {
TASK_MEMBER_ADDED
}
type NotificationActor {
id: UUID!
type: ActorType!
name: String!
type NotificationData {
key: String!
value: String!
}
type NotificationEntity {
id: UUID!
type: EntityType!
name: String!
type NotificationCausedBy {
fullname: String!
username: String!
id: ID!
}
type Notification {
id: ID!
entity: NotificationEntity!
actionType: ActionType!
actor: NotificationActor!
read: Boolean!
causedBy: NotificationCausedBy!
data: [NotificationData!]!
createdAt: Time!
}
type Notified {
id: ID!
notification: Notification!
read: Boolean!
read_at: Time
}

View File

@ -181,3 +181,4 @@ type DeleteProjectPayload {
ok: Boolean!
project: Project!
}

View File

@ -88,6 +88,7 @@ type Query {
}
type Subscription
type Mutation
enum MyTasksStatus {

View File

@ -415,3 +415,4 @@ input UpdateTaskName {
taskID: UUID!
name: String!
}

View File

@ -6,3 +6,5 @@ type TaskGroup {
position: Float!
tasks: [Task!]!
}

View File

@ -11,7 +11,6 @@ type TeamPermission {
org: RoleCode!
}
extend type Mutation {
createTeamMember(input: CreateTeamMember!):
CreateTeamMemberPayload! @hasRole(roles: [ADMIN], level: TEAM, type: TEAM)
@ -77,3 +76,4 @@ type DeleteTeamPayload {
team: Team!
projects: [Project!]!
}

View File

@ -19,8 +19,6 @@ type InvitedUserAccount {
member: MemberList!
}
extend type Mutation {
createUserAccount(input: NewUserAccount!):
UserAccount! @hasRole(roles: [ADMIN], level: ORG, type: ORG)
@ -116,3 +114,4 @@ type DeleteUserAccountPayload {
ok: Boolean!
userAccount: UserAccount!
}