Skip to content

Commit

Permalink
mutation and subscription second update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanver-Hasan committed Nov 13, 2018
1 parent 27b84a3 commit 5996dac
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
15 changes: 15 additions & 0 deletions dist/schema/mutations/Jobs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/schema/mutations/Jobs.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions dist/schema/mutations/LinkUser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/schema/mutations/LinkUser.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/schema/types/Ticket.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/schema/types/Ticket.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/schema/mutations/Jobs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { GraphQLInputObjectType, GraphQLString, GraphQLInt, GraphQLBoolean } from "graphql";

export const CreatePasswordChangeTicketInputType = new GraphQLInputObjectType({
name: "CreatePasswordChangeTicketInputType",
fields: {
result_url: { type: GraphQLString },
user_id: { type: GraphQLString },
connection_id: { type: GraphQLString },
email: { type: GraphQLString },
ttl_sec: { type: GraphQLInt },
mark_email_as_verified: { type: GraphQLBoolean }
}
});
40 changes: 40 additions & 0 deletions src/schema/mutations/LinkUser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { GraphQLInputObjectType, GraphQLString, graphqlSync, GraphQLObjectType, GraphQLBoolean } from "graphql";

export const LinkUserInputType = new GraphQLInputObjectType({
name: "LinkUserInputType",
fields: {
provider: { type: GraphQLString },
connection_id: { type: GraphQLString },
user_id: { type: GraphQLString },
link_with: { type: GraphQLString }
}
});

export const ProfileDataType = new GraphQLObjectType({
name: "ProfileDataType",
fields: {
email: { type: GraphQLString },
email_verified: { type: GraphQLBoolean },
name: { type: GraphQLString },
username: { type: GraphQLString },
given_name: { type: GraphQLString },
phone_number: { type: GraphQLString },
phone_verified: { type: GraphQLBoolean },
family_name: { type: GraphQLString }
}
});

export const LinkUserType = new GraphQLObjectType({
name: "LinkUserType",
fields:
{
connection: { type: GraphQLString },
user_id: { type: GraphQLString },
provider: { type: GraphQLString },
profileData: {
type: ProfileDataType
},
isSocial: { type: GraphQLBoolean },
access_token: { type: GraphQLString }
}
});
8 changes: 8 additions & 0 deletions src/schema/types/Ticket.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { GraphQLObjectType, GraphQLString, graphqlSync, GraphQLInt, GraphQLBoolean } from "graphql";

export const PasswordChangeTicketType = new GraphQLObjectType({
name: "PasswordChangeTicketType",
fields: {
"ticket": { type: GraphQLString}
}
});

0 comments on commit 5996dac

Please sign in to comment.