7f11792111
* Custom invite code and note * disable autocomplete and hide invite code under advanced * show invite description only to the owner * note->description and move unser advanced * Update lib/validate.js Co-authored-by: ekzyis <ek@stacker.news> * Update lib/webPush.js Co-authored-by: ekzyis <ek@stacker.news> * Update api/typeDefs/invite.js Co-authored-by: ekzyis <ek@stacker.news> * Update pages/invites/index.js Co-authored-by: ekzyis <ek@stacker.news> * Update pages/invites/index.js Co-authored-by: ekzyis <ek@stacker.news> * fix * apply review suggestions * change limits * Update lib/validate.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * don't show invite id in push notification * remove invoice metadata from push notifications * fix form reset, jsx/dom attrs, accidental uncontrolled prop warnings * support underscores as we claim * increase default gift to fit inflation --------- Co-authored-by: ekzyis <ek@stacker.news> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: k00b <k00b@stacker.news>
26 lines
469 B
JavaScript
26 lines
469 B
JavaScript
import { gql } from 'graphql-tag'
|
|
|
|
export default gql`
|
|
extend type Query {
|
|
invites: [Invite!]!
|
|
invite(id: ID!): Invite
|
|
}
|
|
|
|
extend type Mutation {
|
|
createInvite(id: String, gift: Int!, limit: Int, description: String): Invite
|
|
revokeInvite(id: ID!): Invite
|
|
}
|
|
|
|
type Invite {
|
|
id: ID!
|
|
createdAt: Date!
|
|
invitees: [User!]!
|
|
gift: Int!
|
|
limit: Int
|
|
user: User!
|
|
revoked: Boolean!
|
|
poor: Boolean!
|
|
description: String
|
|
}
|
|
`
|