refactor(magefile): update schema generator to use 0644 file permissions
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -181,3 +181,4 @@ type DeleteProjectPayload {
|
||||
ok: Boolean!
|
||||
project: Project!
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,7 @@ type Query {
|
||||
}
|
||||
|
||||
|
||||
type Subscription
|
||||
type Mutation
|
||||
|
||||
enum MyTasksStatus {
|
||||
|
@ -415,3 +415,4 @@ input UpdateTaskName {
|
||||
taskID: UUID!
|
||||
name: String!
|
||||
}
|
||||
|
||||
|
@ -6,3 +6,5 @@ type TaskGroup {
|
||||
position: Float!
|
||||
tasks: [Task!]!
|
||||
}
|
||||
|
||||
|
||||
|
@ -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!]!
|
||||
}
|
||||
|
||||
|
@ -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!
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user