2021-07-08 17:45:19 +05:30
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
package model
|
|
|
|
|
2021-09-21 08:23:40 +05:30
|
|
|
type AdminUpdateUserInput struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Email *string `json:"email"`
|
|
|
|
FirstName *string `json:"firstName"`
|
|
|
|
LastName *string `json:"lastName"`
|
|
|
|
Image *string `json:"image"`
|
|
|
|
Roles []*string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
2021-07-28 15:43:08 +05:30
|
|
|
type AuthResponse struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
AccessToken *string `json:"accessToken"`
|
|
|
|
AccessTokenExpiresAt *int64 `json:"accessTokenExpiresAt"`
|
|
|
|
User *User `json:"user"`
|
|
|
|
}
|
|
|
|
|
2021-08-06 19:17:52 +05:30
|
|
|
type DeleteUserInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
2021-07-12 23:52:16 +05:30
|
|
|
type Error struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
Reason string `json:"reason"`
|
2021-07-08 17:45:19 +05:30
|
|
|
}
|
|
|
|
|
2021-07-18 15:26:29 +05:30
|
|
|
type ForgotPasswordInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
2021-07-15 00:13:19 +05:30
|
|
|
type LoginInput struct {
|
2021-10-13 22:11:41 +05:30
|
|
|
Email string `json:"email"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Roles []string `json:"roles"`
|
2021-07-15 00:13:19 +05:30
|
|
|
}
|
|
|
|
|
2021-11-12 05:22:03 +05:30
|
|
|
type MagicLoginInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Roles []string `json:"roles"`
|
|
|
|
}
|
|
|
|
|
2021-07-28 13:25:52 +05:30
|
|
|
type Meta struct {
|
|
|
|
Version string `json:"version"`
|
|
|
|
IsGoogleLoginEnabled bool `json:"isGoogleLoginEnabled"`
|
|
|
|
IsFacebookLoginEnabled bool `json:"isFacebookLoginEnabled"`
|
|
|
|
IsTwitterLoginEnabled bool `json:"isTwitterLoginEnabled"`
|
|
|
|
IsGithubLoginEnabled bool `json:"isGithubLoginEnabled"`
|
|
|
|
IsEmailVerificationEnabled bool `json:"isEmailVerificationEnabled"`
|
|
|
|
IsBasicAuthenticationEnabled bool `json:"isBasicAuthenticationEnabled"`
|
2021-11-12 05:22:03 +05:30
|
|
|
IsMagicLoginEnabled bool `json:"isMagicLoginEnabled"`
|
2021-07-28 13:25:52 +05:30
|
|
|
}
|
|
|
|
|
2021-07-18 12:56:17 +05:30
|
|
|
type ResendVerifyEmailInput struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
2021-08-07 14:11:26 +05:30
|
|
|
type ResetPasswordInput struct {
|
2021-07-21 13:36:26 +05:30
|
|
|
Token string `json:"token"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
ConfirmPassword string `json:"confirmPassword"`
|
|
|
|
}
|
|
|
|
|
2021-07-15 15:13:00 +05:30
|
|
|
type Response struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SignUpInput struct {
|
2021-10-13 22:11:41 +05:30
|
|
|
FirstName *string `json:"firstName"`
|
|
|
|
LastName *string `json:"lastName"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
ConfirmPassword string `json:"confirmPassword"`
|
|
|
|
Image *string `json:"image"`
|
|
|
|
Roles []string `json:"roles"`
|
2021-07-15 15:13:00 +05:30
|
|
|
}
|
|
|
|
|
2021-07-18 09:25:20 +05:30
|
|
|
type UpdateProfileInput struct {
|
|
|
|
OldPassword *string `json:"oldPassword"`
|
|
|
|
NewPassword *string `json:"newPassword"`
|
|
|
|
ConfirmNewPassword *string `json:"confirmNewPassword"`
|
|
|
|
FirstName *string `json:"firstName"`
|
|
|
|
LastName *string `json:"lastName"`
|
|
|
|
Image *string `json:"image"`
|
|
|
|
Email *string `json:"email"`
|
2021-07-15 15:13:00 +05:30
|
|
|
}
|
|
|
|
|
2021-07-08 17:45:19 +05:30
|
|
|
type User struct {
|
2021-09-20 10:36:26 +05:30
|
|
|
ID string `json:"id"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SignupMethod string `json:"signupMethod"`
|
|
|
|
FirstName *string `json:"firstName"`
|
|
|
|
LastName *string `json:"lastName"`
|
|
|
|
EmailVerifiedAt *int64 `json:"emailVerifiedAt"`
|
|
|
|
Image *string `json:"image"`
|
|
|
|
CreatedAt *int64 `json:"createdAt"`
|
|
|
|
UpdatedAt *int64 `json:"updatedAt"`
|
|
|
|
Roles []string `json:"roles"`
|
2021-07-12 23:52:16 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
type VerificationRequest struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Identifier *string `json:"identifier"`
|
|
|
|
Token *string `json:"token"`
|
|
|
|
Email *string `json:"email"`
|
|
|
|
Expires *int64 `json:"expires"`
|
|
|
|
CreatedAt *int64 `json:"createdAt"`
|
|
|
|
UpdatedAt *int64 `json:"updatedAt"`
|
2021-07-08 17:45:19 +05:30
|
|
|
}
|
2021-07-14 01:36:11 +05:30
|
|
|
|
2021-07-18 09:25:20 +05:30
|
|
|
type VerifyEmailInput struct {
|
2021-07-14 01:36:11 +05:30
|
|
|
Token string `json:"token"`
|
|
|
|
}
|