diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..40b878db --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/dist/schema/mutations/Jobs.js b/dist/schema/mutations/Jobs.js new file mode 100644 index 00000000..f5629883 --- /dev/null +++ b/dist/schema/mutations/Jobs.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const graphql_1 = require("graphql"); +exports.CreatePasswordChangeTicketInputType = new graphql_1.GraphQLInputObjectType({ + name: "CreatePasswordChangeTicketInputType", + fields: { + result_url: { type: graphql_1.GraphQLString }, + user_id: { type: graphql_1.GraphQLString }, + connection_id: { type: graphql_1.GraphQLString }, + email: { type: graphql_1.GraphQLString }, + ttl_sec: { type: graphql_1.GraphQLInt }, + mark_email_as_verified: { type: graphql_1.GraphQLBoolean } + } +}); +//# sourceMappingURL=Jobs.js.map \ No newline at end of file diff --git a/dist/schema/mutations/Jobs.js.map b/dist/schema/mutations/Jobs.js.map new file mode 100644 index 00000000..0c62b51e --- /dev/null +++ b/dist/schema/mutations/Jobs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Jobs.js","sourceRoot":"","sources":["../../../src/schema/mutations/Jobs.ts"],"names":[],"mappings":";;AAAA,qCAA4F;AAE/E,QAAA,mCAAmC,GAAG,IAAI,gCAAsB,CAAC;IAC1E,IAAI,EAAE,qCAAqC;IAC3C,MAAM,EAAE;QACJ,UAAU,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACnC,OAAO,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAChC,aAAa,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACtC,KAAK,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAC9B,OAAO,EAAE,EAAE,IAAI,EAAE,oBAAU,EAAE;QAC7B,sBAAsB,EAAE,EAAE,IAAI,EAAE,wBAAc,EAAE;KACnD;CACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/schema/mutations/LinkUser.js b/dist/schema/mutations/LinkUser.js new file mode 100644 index 00000000..9a566499 --- /dev/null +++ b/dist/schema/mutations/LinkUser.js @@ -0,0 +1,39 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const graphql_1 = require("graphql"); +exports.LinkUserInputType = new graphql_1.GraphQLInputObjectType({ + name: "LinkUserInputType", + fields: { + provider: { type: graphql_1.GraphQLString }, + connection_id: { type: graphql_1.GraphQLString }, + user_id: { type: graphql_1.GraphQLString }, + link_with: { type: graphql_1.GraphQLString } + } +}); +exports.ProfileDataType = new graphql_1.GraphQLObjectType({ + name: "ProfileDataType", + fields: { + email: { type: graphql_1.GraphQLString }, + email_verified: { type: graphql_1.GraphQLBoolean }, + name: { type: graphql_1.GraphQLString }, + username: { type: graphql_1.GraphQLString }, + given_name: { type: graphql_1.GraphQLString }, + phone_number: { type: graphql_1.GraphQLString }, + phone_verified: { type: graphql_1.GraphQLBoolean }, + family_name: { type: graphql_1.GraphQLString } + } +}); +exports.LinkUserType = new graphql_1.GraphQLObjectType({ + name: "LinkUserType", + fields: { + connection: { type: graphql_1.GraphQLString }, + user_id: { type: graphql_1.GraphQLString }, + provider: { type: graphql_1.GraphQLString }, + profileData: { + type: exports.ProfileDataType + }, + isSocial: { type: graphql_1.GraphQLBoolean }, + access_token: { type: graphql_1.GraphQLString } + } +}); +//# sourceMappingURL=LinkUser.js.map \ No newline at end of file diff --git a/dist/schema/mutations/LinkUser.js.map b/dist/schema/mutations/LinkUser.js.map new file mode 100644 index 00000000..e8534074 --- /dev/null +++ b/dist/schema/mutations/LinkUser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LinkUser.js","sourceRoot":"","sources":["../../../src/schema/mutations/LinkUser.ts"],"names":[],"mappings":";;AAAA,qCAAgH;AAEnG,QAAA,iBAAiB,GAAG,IAAI,gCAAsB,CAAC;IACxD,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE;QACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACjC,aAAa,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACtC,OAAO,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAChC,SAAS,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;KACrC;CACJ,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,IAAI,2BAAiB,CAAC;IACjD,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE;QACJ,KAAK,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAC9B,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAc,EAAE;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAC7B,QAAQ,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACjC,UAAU,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACnC,YAAY,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACrC,cAAc,EAAE,EAAE,IAAI,EAAE,wBAAc,EAAE;QACxC,WAAW,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;KACvC;CACJ,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAI,2BAAiB,CAAC;IAC9C,IAAI,EAAE,cAAc;IACpB,MAAM,EACN;QACI,UAAU,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACnC,OAAO,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QAChC,QAAQ,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;QACjC,WAAW,EAAE;YACT,IAAI,EAAE,uBAAe;SACxB;QACD,QAAQ,EAAE,EAAE,IAAI,EAAE,wBAAc,EAAE;QAClC,YAAY,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;KACxC;CACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/schema/types/Ticket.js b/dist/schema/types/Ticket.js new file mode 100644 index 00000000..a0d875ca --- /dev/null +++ b/dist/schema/types/Ticket.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const graphql_1 = require("graphql"); +exports.PasswordChangeTicketType = new graphql_1.GraphQLObjectType({ + name: "PasswordChangeTicketType", + fields: { + "ticket": { type: graphql_1.GraphQLString } + } +}); +//# sourceMappingURL=Ticket.js.map \ No newline at end of file diff --git a/dist/schema/types/Ticket.js.map b/dist/schema/types/Ticket.js.map new file mode 100644 index 00000000..16d64f93 --- /dev/null +++ b/dist/schema/types/Ticket.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ticket.js","sourceRoot":"","sources":["../../../src/schema/types/Ticket.ts"],"names":[],"mappings":";;AAAA,qCAAoG;AAEvF,QAAA,wBAAwB,GAAG,IAAI,2BAAiB,CAAC;IAC1D,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE;QACJ,QAAQ,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAC;KACnC;CACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/src/schema/mutations/Jobs.ts b/src/schema/mutations/Jobs.ts new file mode 100644 index 00000000..d8bedf09 --- /dev/null +++ b/src/schema/mutations/Jobs.ts @@ -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 } + } +}); \ No newline at end of file diff --git a/src/schema/mutations/LinkUser.ts b/src/schema/mutations/LinkUser.ts new file mode 100644 index 00000000..2792ceba --- /dev/null +++ b/src/schema/mutations/LinkUser.ts @@ -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 } + } +}); \ No newline at end of file diff --git a/src/schema/types/Ticket.ts b/src/schema/types/Ticket.ts new file mode 100644 index 00000000..d67c8b7c --- /dev/null +++ b/src/schema/types/Ticket.ts @@ -0,0 +1,8 @@ +import { GraphQLObjectType, GraphQLString, graphqlSync, GraphQLInt, GraphQLBoolean } from "graphql"; + +export const PasswordChangeTicketType = new GraphQLObjectType({ + name: "PasswordChangeTicketType", + fields: { + "ticket": { type: GraphQLString} + } +}); \ No newline at end of file