Update types
This commit is contained in:
parent
20c4340b8f
commit
93ba9378ef
27 changed files with 189 additions and 122 deletions
|
@ -1,5 +1,6 @@
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
|
|
||||||
|
import { accountFragmentError } from "@saleor/customers/mutations";
|
||||||
import { TypedMutation } from "../mutations";
|
import { TypedMutation } from "../mutations";
|
||||||
import {
|
import {
|
||||||
RequestPasswordReset,
|
RequestPasswordReset,
|
||||||
|
@ -64,11 +65,11 @@ export const TypedVerifyTokenMutation = TypedMutation<
|
||||||
>(tokenVerifyMutation);
|
>(tokenVerifyMutation);
|
||||||
|
|
||||||
export const requestPasswordReset = gql`
|
export const requestPasswordReset = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation RequestPasswordReset($email: String!, $redirectUrl: String!) {
|
mutation RequestPasswordReset($email: String!, $redirectUrl: String!) {
|
||||||
requestPasswordReset(email: $email, redirectUrl: $redirectUrl) {
|
requestPasswordReset(email: $email, redirectUrl: $redirectUrl) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,14 +80,14 @@ export const RequestPasswordResetMutation = TypedMutation<
|
||||||
>(requestPasswordReset);
|
>(requestPasswordReset);
|
||||||
|
|
||||||
export const setPassword = gql`
|
export const setPassword = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${fragmentUser}
|
${fragmentUser}
|
||||||
mutation SetPassword($email: String!, $password: String!, $token: String!) {
|
mutation SetPassword($email: String!, $password: String!, $token: String!) {
|
||||||
setPassword(email: $email, password: $password, token: $token) {
|
setPassword(email: $email, password: $password, token: $token) {
|
||||||
token
|
errors: accountErrors {
|
||||||
errors {
|
...AccountErrorFragment
|
||||||
field
|
|
||||||
message
|
|
||||||
}
|
}
|
||||||
|
token
|
||||||
user {
|
user {
|
||||||
...User
|
...User
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: RequestPasswordReset
|
// GraphQL mutation operation: RequestPasswordReset
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface RequestPasswordReset_requestPasswordReset_errors {
|
export interface RequestPasswordReset_requestPasswordReset_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RequestPasswordReset_requestPasswordReset {
|
export interface RequestPasswordReset_requestPasswordReset {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { PermissionEnum } from "./../../types/globalTypes";
|
import { AccountErrorCode, PermissionEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: SetPassword
|
// GraphQL mutation operation: SetPassword
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface SetPassword_setPassword_errors {
|
export interface SetPassword_setPassword_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetPassword_setPassword_user_permissions {
|
export interface SetPassword_setPassword_user_permissions {
|
||||||
|
@ -37,8 +37,8 @@ export interface SetPassword_setPassword_user {
|
||||||
|
|
||||||
export interface SetPassword_setPassword {
|
export interface SetPassword_setPassword {
|
||||||
__typename: "SetPassword";
|
__typename: "SetPassword";
|
||||||
|
errors: SetPassword_setPassword_errors[] | null;
|
||||||
token: string | null;
|
token: string | null;
|
||||||
errors: (SetPassword_setPassword_errors | null)[];
|
|
||||||
user: SetPassword_setPassword_user | null;
|
user: SetPassword_setPassword_user | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,13 +36,20 @@ import {
|
||||||
UpdateCustomerAddressVariables
|
UpdateCustomerAddressVariables
|
||||||
} from "./types/UpdateCustomerAddress";
|
} from "./types/UpdateCustomerAddress";
|
||||||
|
|
||||||
|
export const accountFragmentError = gql`
|
||||||
|
fragment AccountErrorFragment on AccountError {
|
||||||
|
code
|
||||||
|
field
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const updateCustomer = gql`
|
const updateCustomer = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${customerDetailsFragment}
|
${customerDetailsFragment}
|
||||||
mutation UpdateCustomer($id: ID!, $input: CustomerInput!) {
|
mutation UpdateCustomer($id: ID!, $input: CustomerInput!) {
|
||||||
customerUpdate(id: $id, input: $input) {
|
customerUpdate(id: $id, input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
...CustomerDetailsFragment
|
...CustomerDetailsFragment
|
||||||
|
@ -56,11 +63,11 @@ export const TypedUpdateCustomerMutation = TypedMutation<
|
||||||
>(updateCustomer);
|
>(updateCustomer);
|
||||||
|
|
||||||
const createCustomer = gql`
|
const createCustomer = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation CreateCustomer($input: UserCreateInput!) {
|
mutation CreateCustomer($input: UserCreateInput!) {
|
||||||
customerCreate(input: $input) {
|
customerCreate(input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
|
@ -74,11 +81,11 @@ export const TypedCreateCustomerMutation = TypedMutation<
|
||||||
>(createCustomer);
|
>(createCustomer);
|
||||||
|
|
||||||
const removeCustomer = gql`
|
const removeCustomer = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation RemoveCustomer($id: ID!) {
|
mutation RemoveCustomer($id: ID!) {
|
||||||
customerDelete(id: $id) {
|
customerDelete(id: $id) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,6 +96,7 @@ export const TypedRemoveCustomerMutation = TypedMutation<
|
||||||
>(removeCustomer);
|
>(removeCustomer);
|
||||||
|
|
||||||
const setCustomerDefaultAddress = gql`
|
const setCustomerDefaultAddress = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${customerAddressesFragment}
|
${customerAddressesFragment}
|
||||||
mutation SetCustomerDefaultAddress(
|
mutation SetCustomerDefaultAddress(
|
||||||
$addressId: ID!
|
$addressId: ID!
|
||||||
|
@ -96,9 +104,8 @@ const setCustomerDefaultAddress = gql`
|
||||||
$type: AddressTypeEnum!
|
$type: AddressTypeEnum!
|
||||||
) {
|
) {
|
||||||
addressSetDefault(addressId: $addressId, userId: $userId, type: $type) {
|
addressSetDefault(addressId: $addressId, userId: $userId, type: $type) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
...CustomerAddressesFragment
|
...CustomerAddressesFragment
|
||||||
|
@ -112,13 +119,13 @@ export const TypedSetCustomerDefaultAddressMutation = TypedMutation<
|
||||||
>(setCustomerDefaultAddress);
|
>(setCustomerDefaultAddress);
|
||||||
|
|
||||||
const createCustomerAddress = gql`
|
const createCustomerAddress = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${customerAddressesFragment}
|
${customerAddressesFragment}
|
||||||
${fragmentAddress}
|
${fragmentAddress}
|
||||||
mutation CreateCustomerAddress($id: ID!, $input: AddressInput!) {
|
mutation CreateCustomerAddress($id: ID!, $input: AddressInput!) {
|
||||||
addressCreate(userId: $id, input: $input) {
|
addressCreate(userId: $id, input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
address {
|
address {
|
||||||
...AddressFragment
|
...AddressFragment
|
||||||
|
@ -135,12 +142,12 @@ export const TypedCreateCustomerAddressMutation = TypedMutation<
|
||||||
>(createCustomerAddress);
|
>(createCustomerAddress);
|
||||||
|
|
||||||
const updateCustomerAddress = gql`
|
const updateCustomerAddress = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${fragmentAddress}
|
${fragmentAddress}
|
||||||
mutation UpdateCustomerAddress($id: ID!, $input: AddressInput!) {
|
mutation UpdateCustomerAddress($id: ID!, $input: AddressInput!) {
|
||||||
addressUpdate(id: $id, input: $input) {
|
addressUpdate(id: $id, input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
address {
|
address {
|
||||||
...AddressFragment
|
...AddressFragment
|
||||||
|
@ -154,12 +161,12 @@ export const TypedUpdateCustomerAddressMutation = TypedMutation<
|
||||||
>(updateCustomerAddress);
|
>(updateCustomerAddress);
|
||||||
|
|
||||||
const removeCustomerAddress = gql`
|
const removeCustomerAddress = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${customerAddressesFragment}
|
${customerAddressesFragment}
|
||||||
mutation RemoveCustomerAddress($id: ID!) {
|
mutation RemoveCustomerAddress($id: ID!) {
|
||||||
addressDelete(id: $id) {
|
addressDelete(id: $id) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
...CustomerAddressesFragment
|
...CustomerAddressesFragment
|
||||||
|
@ -173,11 +180,11 @@ export const TypedRemoveCustomerAddressMutation = TypedMutation<
|
||||||
>(removeCustomerAddress);
|
>(removeCustomerAddress);
|
||||||
|
|
||||||
export const bulkRemoveCustomers = gql`
|
export const bulkRemoveCustomers = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation BulkRemoveCustomers($ids: [ID]!) {
|
mutation BulkRemoveCustomers($ids: [ID]!) {
|
||||||
customerBulkDelete(ids: $ids) {
|
customerBulkDelete(ids: $ids) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
15
src/customers/types/AccountErrorFragment.ts
Normal file
15
src/customers/types/AccountErrorFragment.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
|
// ====================================================
|
||||||
|
// GraphQL fragment: AccountErrorFragment
|
||||||
|
// ====================================================
|
||||||
|
|
||||||
|
export interface AccountErrorFragment {
|
||||||
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
|
field: string | null;
|
||||||
|
}
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: BulkRemoveCustomers
|
// GraphQL mutation operation: BulkRemoveCustomers
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface BulkRemoveCustomers_customerBulkDelete_errors {
|
export interface BulkRemoveCustomers_customerBulkDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BulkRemoveCustomers_customerBulkDelete {
|
export interface BulkRemoveCustomers_customerBulkDelete {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { UserCreateInput } from "./../../types/globalTypes";
|
import { UserCreateInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: CreateCustomer
|
// GraphQL mutation operation: CreateCustomer
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface CreateCustomer_customerCreate_errors {
|
export interface CreateCustomer_customerCreate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateCustomer_customerCreate_user {
|
export interface CreateCustomer_customerCreate_user {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { AddressInput } from "./../../types/globalTypes";
|
import { AddressInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: CreateCustomerAddress
|
// GraphQL mutation operation: CreateCustomerAddress
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface CreateCustomerAddress_addressCreate_errors {
|
export interface CreateCustomerAddress_addressCreate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateCustomerAddress_addressCreate_address_country {
|
export interface CreateCustomerAddress_addressCreate_address_country {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: RemoveCustomer
|
// GraphQL mutation operation: RemoveCustomer
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface RemoveCustomer_customerDelete_errors {
|
export interface RemoveCustomer_customerDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RemoveCustomer_customerDelete {
|
export interface RemoveCustomer_customerDelete {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: RemoveCustomerAddress
|
// GraphQL mutation operation: RemoveCustomerAddress
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface RemoveCustomerAddress_addressDelete_errors {
|
export interface RemoveCustomerAddress_addressDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RemoveCustomerAddress_addressDelete_user_addresses_country {
|
export interface RemoveCustomerAddress_addressDelete_user_addresses_country {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { AddressTypeEnum } from "./../../types/globalTypes";
|
import { AddressTypeEnum, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: SetCustomerDefaultAddress
|
// GraphQL mutation operation: SetCustomerDefaultAddress
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface SetCustomerDefaultAddress_addressSetDefault_errors {
|
export interface SetCustomerDefaultAddress_addressSetDefault_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetCustomerDefaultAddress_addressSetDefault_user_addresses_country {
|
export interface SetCustomerDefaultAddress_addressSetDefault_user_addresses_country {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { CustomerInput } from "./../../types/globalTypes";
|
import { CustomerInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: UpdateCustomer
|
// GraphQL mutation operation: UpdateCustomer
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface UpdateCustomer_customerUpdate_errors {
|
export interface UpdateCustomer_customerUpdate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateCustomer_customerUpdate_user_defaultShippingAddress_country {
|
export interface UpdateCustomer_customerUpdate_user_defaultShippingAddress_country {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { AddressInput } from "./../../types/globalTypes";
|
import { AddressInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: UpdateCustomerAddress
|
// GraphQL mutation operation: UpdateCustomerAddress
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface UpdateCustomerAddress_addressUpdate_errors {
|
export interface UpdateCustomerAddress_addressUpdate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateCustomerAddress_addressUpdate_address_country {
|
export interface UpdateCustomerAddress_addressUpdate_address_country {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
|
|
||||||
|
import { accountFragmentError } from "@saleor/customers/mutations";
|
||||||
import { TypedMutation } from "../mutations";
|
import { TypedMutation } from "../mutations";
|
||||||
import { serviceDetailsFragment, serviceFragment } from "./queries";
|
import { serviceDetailsFragment, serviceFragment } from "./queries";
|
||||||
import { ServiceCreate, ServiceCreateVariables } from "./types/ServiceCreate";
|
import { ServiceCreate, ServiceCreateVariables } from "./types/ServiceCreate";
|
||||||
|
@ -15,14 +16,14 @@ import {
|
||||||
import { ServiceUpdate, ServiceUpdateVariables } from "./types/ServiceUpdate";
|
import { ServiceUpdate, ServiceUpdateVariables } from "./types/ServiceUpdate";
|
||||||
|
|
||||||
const serviceCreateMutation = gql`
|
const serviceCreateMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${serviceFragment}
|
${serviceFragment}
|
||||||
mutation ServiceCreate($input: ServiceAccountInput!) {
|
mutation ServiceCreate($input: ServiceAccountInput!) {
|
||||||
serviceAccountCreate(input: $input) {
|
serviceAccountCreate(input: $input) {
|
||||||
errors {
|
|
||||||
field
|
|
||||||
message
|
|
||||||
}
|
|
||||||
authToken
|
authToken
|
||||||
|
errors: accountErrors {
|
||||||
|
...AccountErrorFragment
|
||||||
|
}
|
||||||
serviceAccount {
|
serviceAccount {
|
||||||
...ServiceFragment
|
...ServiceFragment
|
||||||
}
|
}
|
||||||
|
@ -36,11 +37,11 @@ export const ServiceCreateMutation = TypedMutation<
|
||||||
>(serviceCreateMutation);
|
>(serviceCreateMutation);
|
||||||
|
|
||||||
const serviceDeleteMutation = gql`
|
const serviceDeleteMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation ServiceDelete($id: ID!) {
|
mutation ServiceDelete($id: ID!) {
|
||||||
serviceAccountDelete(id: $id) {
|
serviceAccountDelete(id: $id) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,12 +52,12 @@ export const ServiceDeleteMutation = TypedMutation<
|
||||||
>(serviceDeleteMutation);
|
>(serviceDeleteMutation);
|
||||||
|
|
||||||
const serviceUpdateMutation = gql`
|
const serviceUpdateMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${serviceDetailsFragment}
|
${serviceDetailsFragment}
|
||||||
mutation ServiceUpdate($id: ID!, $input: ServiceAccountInput!) {
|
mutation ServiceUpdate($id: ID!, $input: ServiceAccountInput!) {
|
||||||
serviceAccountUpdate(id: $id, input: $input) {
|
serviceAccountUpdate(id: $id, input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
serviceAccount {
|
serviceAccount {
|
||||||
...ServiceDetailsFragment
|
...ServiceDetailsFragment
|
||||||
|
@ -71,13 +72,13 @@ export const ServiceUpdateMutation = TypedMutation<
|
||||||
>(serviceUpdateMutation);
|
>(serviceUpdateMutation);
|
||||||
|
|
||||||
const serviceTokenCreate = gql`
|
const serviceTokenCreate = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation ServiceTokenCreate($input: ServiceAccountTokenInput!) {
|
mutation ServiceTokenCreate($input: ServiceAccountTokenInput!) {
|
||||||
serviceAccountTokenCreate(input: $input) {
|
serviceAccountTokenCreate(input: $input) {
|
||||||
errors {
|
|
||||||
field
|
|
||||||
message
|
|
||||||
}
|
|
||||||
authToken
|
authToken
|
||||||
|
errors: accountErrors {
|
||||||
|
...AccountErrorFragment
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -87,11 +88,11 @@ export const ServiceTokenCreateMutation = TypedMutation<
|
||||||
>(serviceTokenCreate);
|
>(serviceTokenCreate);
|
||||||
|
|
||||||
const serviceTokenDelete = gql`
|
const serviceTokenDelete = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation ServiceTokenDelete($id: ID!) {
|
mutation ServiceTokenDelete($id: ID!) {
|
||||||
serviceAccountTokenDelete(id: $id) {
|
serviceAccountTokenDelete(id: $id) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { ServiceAccountInput } from "./../../types/globalTypes";
|
import { ServiceAccountInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ServiceCreate
|
// GraphQL mutation operation: ServiceCreate
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ServiceCreate_serviceAccountCreate_errors {
|
export interface ServiceCreate_serviceAccountCreate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceCreate_serviceAccountCreate_serviceAccount {
|
export interface ServiceCreate_serviceAccountCreate_serviceAccount {
|
||||||
|
@ -23,8 +23,8 @@ export interface ServiceCreate_serviceAccountCreate_serviceAccount {
|
||||||
|
|
||||||
export interface ServiceCreate_serviceAccountCreate {
|
export interface ServiceCreate_serviceAccountCreate {
|
||||||
__typename: "ServiceAccountCreate";
|
__typename: "ServiceAccountCreate";
|
||||||
errors: ServiceCreate_serviceAccountCreate_errors[];
|
|
||||||
authToken: string | null;
|
authToken: string | null;
|
||||||
|
errors: ServiceCreate_serviceAccountCreate_errors[];
|
||||||
serviceAccount: ServiceCreate_serviceAccountCreate_serviceAccount | null;
|
serviceAccount: ServiceCreate_serviceAccountCreate_serviceAccount | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ServiceDelete
|
// GraphQL mutation operation: ServiceDelete
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ServiceDelete_serviceAccountDelete_errors {
|
export interface ServiceDelete_serviceAccountDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceDelete_serviceAccountDelete {
|
export interface ServiceDelete_serviceAccountDelete {
|
||||||
|
|
|
@ -2,22 +2,22 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { ServiceAccountTokenInput } from "./../../types/globalTypes";
|
import { ServiceAccountTokenInput, AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ServiceTokenCreate
|
// GraphQL mutation operation: ServiceTokenCreate
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ServiceTokenCreate_serviceAccountTokenCreate_errors {
|
export interface ServiceTokenCreate_serviceAccountTokenCreate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceTokenCreate_serviceAccountTokenCreate {
|
export interface ServiceTokenCreate_serviceAccountTokenCreate {
|
||||||
__typename: "ServiceAccountTokenCreate";
|
__typename: "ServiceAccountTokenCreate";
|
||||||
errors: ServiceTokenCreate_serviceAccountTokenCreate_errors[];
|
|
||||||
authToken: string | null;
|
authToken: string | null;
|
||||||
|
errors: ServiceTokenCreate_serviceAccountTokenCreate_errors[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceTokenCreate {
|
export interface ServiceTokenCreate {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ServiceTokenDelete
|
// GraphQL mutation operation: ServiceTokenDelete
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ServiceTokenDelete_serviceAccountTokenDelete_errors {
|
export interface ServiceTokenDelete_serviceAccountTokenDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceTokenDelete_serviceAccountTokenDelete {
|
export interface ServiceTokenDelete_serviceAccountTokenDelete {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { ServiceAccountInput, PermissionEnum } from "./../../types/globalTypes";
|
import { ServiceAccountInput, AccountErrorCode, PermissionEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ServiceUpdate
|
// GraphQL mutation operation: ServiceUpdate
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ServiceUpdate_serviceAccountUpdate_errors {
|
export interface ServiceUpdate_serviceAccountUpdate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceUpdate_serviceAccountUpdate_serviceAccount_permissions {
|
export interface ServiceUpdate_serviceAccountUpdate_serviceAccount_permissions {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import gql from "graphql-tag";
|
import gql from "graphql-tag";
|
||||||
|
|
||||||
import makeMutation from "@saleor/hooks/makeMutation";
|
import makeMutation from "@saleor/hooks/makeMutation";
|
||||||
|
import { accountFragmentError } from "@saleor/customers/mutations";
|
||||||
import { TypedMutation } from "../mutations";
|
import { TypedMutation } from "../mutations";
|
||||||
import { staffMemberDetailsFragment } from "./queries";
|
import { staffMemberDetailsFragment } from "./queries";
|
||||||
import { StaffAvatarDelete } from "./types/StaffAvatarDelete";
|
import { StaffAvatarDelete } from "./types/StaffAvatarDelete";
|
||||||
|
@ -26,12 +27,12 @@ import {
|
||||||
} from "./types/ChangeStaffPassword";
|
} from "./types/ChangeStaffPassword";
|
||||||
|
|
||||||
const staffMemberAddMutation = gql`
|
const staffMemberAddMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${staffMemberDetailsFragment}
|
${staffMemberDetailsFragment}
|
||||||
mutation StaffMemberAdd($input: StaffCreateInput!) {
|
mutation StaffMemberAdd($input: StaffCreateInput!) {
|
||||||
staffCreate(input: $input) {
|
staffCreate(input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
...StaffMemberDetailsFragment
|
...StaffMemberDetailsFragment
|
||||||
|
@ -45,12 +46,12 @@ export const TypedStaffMemberAddMutation = TypedMutation<
|
||||||
>(staffMemberAddMutation);
|
>(staffMemberAddMutation);
|
||||||
|
|
||||||
const staffMemberUpdateMutation = gql`
|
const staffMemberUpdateMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
${staffMemberDetailsFragment}
|
${staffMemberDetailsFragment}
|
||||||
mutation StaffMemberUpdate($id: ID!, $input: StaffInput!) {
|
mutation StaffMemberUpdate($id: ID!, $input: StaffInput!) {
|
||||||
staffUpdate(id: $id, input: $input) {
|
staffUpdate(id: $id, input: $input) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
...StaffMemberDetailsFragment
|
...StaffMemberDetailsFragment
|
||||||
|
@ -64,11 +65,11 @@ export const TypedStaffMemberUpdateMutation = TypedMutation<
|
||||||
>(staffMemberUpdateMutation);
|
>(staffMemberUpdateMutation);
|
||||||
|
|
||||||
const staffMemberDeleteMutation = gql`
|
const staffMemberDeleteMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation StaffMemberDelete($id: ID!) {
|
mutation StaffMemberDelete($id: ID!) {
|
||||||
staffDelete(id: $id) {
|
staffDelete(id: $id) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,11 +80,11 @@ export const TypedStaffMemberDeleteMutation = TypedMutation<
|
||||||
>(staffMemberDeleteMutation);
|
>(staffMemberDeleteMutation);
|
||||||
|
|
||||||
const staffAvatarUpdateMutation = gql`
|
const staffAvatarUpdateMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation StaffAvatarUpdate($image: Upload!) {
|
mutation StaffAvatarUpdate($image: Upload!) {
|
||||||
userAvatarUpdate(image: $image) {
|
userAvatarUpdate(image: $image) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
|
@ -100,11 +101,11 @@ export const TypedStaffAvatarUpdateMutation = TypedMutation<
|
||||||
>(staffAvatarUpdateMutation);
|
>(staffAvatarUpdateMutation);
|
||||||
|
|
||||||
const staffAvatarDeleteMutation = gql`
|
const staffAvatarDeleteMutation = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation StaffAvatarDelete {
|
mutation StaffAvatarDelete {
|
||||||
userAvatarDelete {
|
userAvatarDelete {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
|
@ -121,11 +122,11 @@ export const TypedStaffAvatarDeleteMutation = TypedMutation<
|
||||||
>(staffAvatarDeleteMutation);
|
>(staffAvatarDeleteMutation);
|
||||||
|
|
||||||
const changeStaffPassword = gql`
|
const changeStaffPassword = gql`
|
||||||
|
${accountFragmentError}
|
||||||
mutation ChangeStaffPassword($newPassword: String!, $oldPassword: String!) {
|
mutation ChangeStaffPassword($newPassword: String!, $oldPassword: String!) {
|
||||||
passwordChange(newPassword: $newPassword, oldPassword: $oldPassword) {
|
passwordChange(newPassword: $newPassword, oldPassword: $oldPassword) {
|
||||||
errors {
|
errors: accountErrors {
|
||||||
field
|
...AccountErrorFragment
|
||||||
message
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: ChangeStaffPassword
|
// GraphQL mutation operation: ChangeStaffPassword
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface ChangeStaffPassword_passwordChange_errors {
|
export interface ChangeStaffPassword_passwordChange_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChangeStaffPassword_passwordChange {
|
export interface ChangeStaffPassword_passwordChange {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: StaffAvatarDelete
|
// GraphQL mutation operation: StaffAvatarDelete
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface StaffAvatarDelete_userAvatarDelete_errors {
|
export interface StaffAvatarDelete_userAvatarDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StaffAvatarDelete_userAvatarDelete_user_avatar {
|
export interface StaffAvatarDelete_userAvatarDelete_user_avatar {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: StaffAvatarUpdate
|
// GraphQL mutation operation: StaffAvatarUpdate
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface StaffAvatarUpdate_userAvatarUpdate_errors {
|
export interface StaffAvatarUpdate_userAvatarUpdate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StaffAvatarUpdate_userAvatarUpdate_user_avatar {
|
export interface StaffAvatarUpdate_userAvatarUpdate_user_avatar {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { StaffCreateInput, PermissionEnum } from "./../../types/globalTypes";
|
import { StaffCreateInput, AccountErrorCode, PermissionEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: StaffMemberAdd
|
// GraphQL mutation operation: StaffMemberAdd
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface StaffMemberAdd_staffCreate_errors {
|
export interface StaffMemberAdd_staffCreate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StaffMemberAdd_staffCreate_user_avatar {
|
export interface StaffMemberAdd_staffCreate_user_avatar {
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
|
import { AccountErrorCode } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: StaffMemberDelete
|
// GraphQL mutation operation: StaffMemberDelete
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface StaffMemberDelete_staffDelete_errors {
|
export interface StaffMemberDelete_staffDelete_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StaffMemberDelete_staffDelete {
|
export interface StaffMemberDelete_staffDelete {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file was automatically generated and should not be edited.
|
// This file was automatically generated and should not be edited.
|
||||||
|
|
||||||
import { StaffInput, PermissionEnum } from "./../../types/globalTypes";
|
import { StaffInput, AccountErrorCode, PermissionEnum } from "./../../types/globalTypes";
|
||||||
|
|
||||||
// ====================================================
|
// ====================================================
|
||||||
// GraphQL mutation operation: StaffMemberUpdate
|
// GraphQL mutation operation: StaffMemberUpdate
|
||||||
// ====================================================
|
// ====================================================
|
||||||
|
|
||||||
export interface StaffMemberUpdate_staffUpdate_errors {
|
export interface StaffMemberUpdate_staffUpdate_errors {
|
||||||
__typename: "Error";
|
__typename: "AccountError";
|
||||||
|
code: AccountErrorCode;
|
||||||
field: string | null;
|
field: string | null;
|
||||||
message: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StaffMemberUpdate_staffUpdate_user_avatar {
|
export interface StaffMemberUpdate_staffUpdate_user_avatar {
|
||||||
|
|
|
@ -6,6 +6,28 @@
|
||||||
// START Enums and Input Objects
|
// START Enums and Input Objects
|
||||||
//==============================================================
|
//==============================================================
|
||||||
|
|
||||||
|
export enum AccountErrorCode {
|
||||||
|
ACTIVATE_OWN_ACCOUNT = "ACTIVATE_OWN_ACCOUNT",
|
||||||
|
ACTIVATE_SUPERUSER_ACCOUNT = "ACTIVATE_SUPERUSER_ACCOUNT",
|
||||||
|
ASSIGN_NON_STAFF_MEMBER = "ASSIGN_NON_STAFF_MEMBER",
|
||||||
|
DEACTIVATE_OWN_ACCOUNT = "DEACTIVATE_OWN_ACCOUNT",
|
||||||
|
DEACTIVATE_SUPERUSER_ACCOUNT = "DEACTIVATE_SUPERUSER_ACCOUNT",
|
||||||
|
DELETE_NON_STAFF_USER = "DELETE_NON_STAFF_USER",
|
||||||
|
DELETE_OWN_ACCOUNT = "DELETE_OWN_ACCOUNT",
|
||||||
|
DELETE_STAFF_ACCOUNT = "DELETE_STAFF_ACCOUNT",
|
||||||
|
DELETE_SUPERUSER_ACCOUNT = "DELETE_SUPERUSER_ACCOUNT",
|
||||||
|
GRAPHQL_ERROR = "GRAPHQL_ERROR",
|
||||||
|
INVALID = "INVALID",
|
||||||
|
INVALID_PASSWORD = "INVALID_PASSWORD",
|
||||||
|
NOT_FOUND = "NOT_FOUND",
|
||||||
|
PASSWORD_ENTIRELY_NUMERIC = "PASSWORD_ENTIRELY_NUMERIC",
|
||||||
|
PASSWORD_TOO_COMMON = "PASSWORD_TOO_COMMON",
|
||||||
|
PASSWORD_TOO_SHORT = "PASSWORD_TOO_SHORT",
|
||||||
|
PASSWORD_TOO_SIMILAR = "PASSWORD_TOO_SIMILAR",
|
||||||
|
REQUIRED = "REQUIRED",
|
||||||
|
UNIQUE = "UNIQUE",
|
||||||
|
}
|
||||||
|
|
||||||
export enum AddressTypeEnum {
|
export enum AddressTypeEnum {
|
||||||
BILLING = "BILLING",
|
BILLING = "BILLING",
|
||||||
SHIPPING = "SHIPPING",
|
SHIPPING = "SHIPPING",
|
||||||
|
|
Loading…
Reference in a new issue