saleor: update the schema

This commit is contained in:
Zaiste 2021-05-13 13:40:33 +02:00
parent efdf4d9580
commit 96f79e348c
No known key found for this signature in database
GPG Key ID: 15DF7EBC7F2FFE35
2 changed files with 457 additions and 73 deletions

View File

@ -102,6 +102,8 @@ export type AccountError = {
message?: Maybe<Scalars['String']> message?: Maybe<Scalars['String']>
/** The error code. */ /** The error code. */
code: AccountErrorCode code: AccountErrorCode
/** A type of address that causes the error. */
addressType?: Maybe<AddressTypeEnum>
} }
/** An enumeration. */ /** An enumeration. */
@ -136,6 +138,8 @@ export enum AccountErrorCode {
JwtDecodeError = 'JWT_DECODE_ERROR', JwtDecodeError = 'JWT_DECODE_ERROR',
JwtMissingToken = 'JWT_MISSING_TOKEN', JwtMissingToken = 'JWT_MISSING_TOKEN',
JwtInvalidCsrfToken = 'JWT_INVALID_CSRF_TOKEN', JwtInvalidCsrfToken = 'JWT_INVALID_CSRF_TOKEN',
ChannelInactive = 'CHANNEL_INACTIVE',
MissingChannelSlug = 'MISSING_CHANNEL_SLUG',
} }
export type AccountInput = { export type AccountInput = {
@ -173,6 +177,8 @@ export type AccountRegisterInput = {
languageCode?: Maybe<LanguageCodeEnum> languageCode?: Maybe<LanguageCodeEnum>
/** User public metadata. */ /** User public metadata. */
metadata?: Maybe<Array<MetadataInput>> metadata?: Maybe<Array<MetadataInput>>
/** Slug of a channel which will be used to notify users. Optional when only one channel exists. */
channel?: Maybe<Scalars['String']>
} }
/** Sends an email with the account removal link for the logged-in user. */ /** Sends an email with the account removal link for the logged-in user. */
@ -616,6 +622,16 @@ export type AppUpdate = {
app?: Maybe<App> app?: Maybe<App>
} }
/** An enumeration. */
export enum AreaUnitsEnum {
SqCm = 'SQ_CM',
SqM = 'SQ_M',
SqKm = 'SQ_KM',
SqFt = 'SQ_FT',
SqYd = 'SQ_YD',
SqInch = 'SQ_INCH',
}
/** Assigns storefront's navigation menus. */ /** Assigns storefront's navigation menus. */
export type AssignNavigation = { export type AssignNavigation = {
__typename?: 'AssignNavigation' __typename?: 'AssignNavigation'
@ -648,6 +664,8 @@ export type Attribute = Node &
slug?: Maybe<Scalars['String']> slug?: Maybe<Scalars['String']>
/** The attribute type. */ /** The attribute type. */
type?: Maybe<AttributeTypeEnum> type?: Maybe<AttributeTypeEnum>
/** The unit of attribute values. */
unit?: Maybe<MeasurementUnitsEnum>
/** List of attribute's values. */ /** List of attribute's values. */
values?: Maybe<Array<Maybe<AttributeValue>>> values?: Maybe<Array<Maybe<AttributeValue>>>
/** Whether the attribute requires values to be passed or not. */ /** Whether the attribute requires values to be passed or not. */
@ -734,6 +752,8 @@ export type AttributeCreateInput = {
slug?: Maybe<Scalars['String']> slug?: Maybe<Scalars['String']>
/** The attribute type. */ /** The attribute type. */
type: AttributeTypeEnum type: AttributeTypeEnum
/** The unit of attribute values. */
unit?: Maybe<MeasurementUnitsEnum>
/** List of attribute's values. */ /** List of attribute's values. */
values?: Maybe<Array<Maybe<AttributeValueCreateInput>>> values?: Maybe<Array<Maybe<AttributeValueCreateInput>>>
/** Whether the attribute requires values to be passed or not. */ /** Whether the attribute requires values to be passed or not. */
@ -809,6 +829,8 @@ export type AttributeInput = {
slug: Scalars['String'] slug: Scalars['String']
/** Internal representation of a value (unique per attribute). */ /** Internal representation of a value (unique per attribute). */
values?: Maybe<Array<Maybe<Scalars['String']>>> values?: Maybe<Array<Maybe<Scalars['String']>>>
/** The range that the returned values should be in. */
valuesRange?: Maybe<IntRangeInput>
} }
/** An enumeration. */ /** An enumeration. */
@ -817,6 +839,7 @@ export enum AttributeInputTypeEnum {
Multiselect = 'MULTISELECT', Multiselect = 'MULTISELECT',
File = 'FILE', File = 'FILE',
Reference = 'REFERENCE', Reference = 'REFERENCE',
Numeric = 'NUMERIC',
RichText = 'RICH_TEXT', RichText = 'RICH_TEXT',
} }
@ -911,6 +934,8 @@ export type AttributeUpdateInput = {
name?: Maybe<Scalars['String']> name?: Maybe<Scalars['String']>
/** Internal representation of an attribute name. */ /** Internal representation of an attribute name. */
slug?: Maybe<Scalars['String']> slug?: Maybe<Scalars['String']>
/** The unit of attribute values. */
unit?: Maybe<MeasurementUnitsEnum>
/** IDs of values to be removed from this attribute. */ /** IDs of values to be removed from this attribute. */
removeValues?: Maybe<Array<Maybe<Scalars['ID']>>> removeValues?: Maybe<Array<Maybe<Scalars['ID']>>>
/** New values to be created for this attribute. */ /** New values to be created for this attribute. */
@ -1121,10 +1146,10 @@ export type CatalogueInput = {
export type Category = Node & export type Category = Node &
ObjectWithMetadata & { ObjectWithMetadata & {
__typename?: 'Category' __typename?: 'Category'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
slug: Scalars['String'] slug: Scalars['String']
@ -1271,10 +1296,10 @@ export type CategorySortingInput = {
export type CategoryTranslatableContent = Node & { export type CategoryTranslatableContent = Node & {
__typename?: 'CategoryTranslatableContent' __typename?: 'CategoryTranslatableContent'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
/** /**
@ -1303,10 +1328,10 @@ export type CategoryTranslate = {
export type CategoryTranslation = Node & { export type CategoryTranslation = Node & {
__typename?: 'CategoryTranslation' __typename?: 'CategoryTranslation'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
/** Translation language. */ /** Translation language. */
@ -1338,8 +1363,6 @@ export type Channel = Node & {
currencyCode: Scalars['String'] currencyCode: Scalars['String']
/** Whether a channel has associated orders. */ /** Whether a channel has associated orders. */
hasOrders: Scalars['Boolean'] hasOrders: Scalars['Boolean']
/** List of channel shipping zones. */
shippingZones: Array<ShippingZone>
} }
/** Activate a channel. */ /** Activate a channel. */
@ -1453,7 +1476,6 @@ export type Checkout = Node &
created: Scalars['DateTime'] created: Scalars['DateTime']
lastChange: Scalars['DateTime'] lastChange: Scalars['DateTime']
user?: Maybe<User> user?: Maybe<User>
quantity: Scalars['Int']
channel: Channel channel: Channel
billingAddress?: Maybe<Address> billingAddress?: Maybe<Address>
shippingAddress?: Maybe<Address> shippingAddress?: Maybe<Address>
@ -1478,6 +1500,8 @@ export type Checkout = Node &
email: Scalars['String'] email: Scalars['String']
/** Returns True, if checkout requires shipping. */ /** Returns True, if checkout requires shipping. */
isShippingRequired: Scalars['Boolean'] isShippingRequired: Scalars['Boolean']
/** The number of items purchased. */
quantity: Scalars['Int']
/** A list of checkout lines, each containing information about an item in the checkout. */ /** A list of checkout lines, each containing information about an item in the checkout. */
lines?: Maybe<Array<Maybe<CheckoutLine>>> lines?: Maybe<Array<Maybe<CheckoutLine>>>
/** The price of the shipping, with all the taxes included. */ /** The price of the shipping, with all the taxes included. */
@ -1548,7 +1572,7 @@ export type CheckoutCountableEdge = {
/** Create a new checkout. */ /** Create a new checkout. */
export type CheckoutCreate = { export type CheckoutCreate = {
__typename?: 'CheckoutCreate' __typename?: 'CheckoutCreate'
/** Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. */ /** Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout.DEPRECATED: Will be removed in Saleor 4.0. Always returns True. */
created?: Maybe<Scalars['Boolean']> created?: Maybe<Scalars['Boolean']>
/** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */
checkoutErrors: Array<CheckoutError> checkoutErrors: Array<CheckoutError>
@ -1611,6 +1635,8 @@ export type CheckoutError = {
code: CheckoutErrorCode code: CheckoutErrorCode
/** List of varint IDs which causes the error. */ /** List of varint IDs which causes the error. */
variants?: Maybe<Array<Scalars['ID']>> variants?: Maybe<Array<Scalars['ID']>>
/** A type of address that causes the error. */
addressType?: Maybe<AddressTypeEnum>
} }
/** An enumeration. */ /** An enumeration. */
@ -1769,10 +1795,10 @@ export type ChoiceValue = {
export type Collection = Node & export type Collection = Node &
ObjectWithMetadata & { ObjectWithMetadata & {
__typename?: 'Collection' __typename?: 'Collection'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
slug: Scalars['String'] slug: Scalars['String']
@ -1837,10 +1863,10 @@ export type CollectionBulkDelete = {
/** Represents collection channel listing. */ /** Represents collection channel listing. */
export type CollectionChannelListing = Node & { export type CollectionChannelListing = Node & {
__typename?: 'CollectionChannelListing' __typename?: 'CollectionChannelListing'
publicationDate?: Maybe<Scalars['Date']>
isPublished: Scalars['Boolean']
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
publicationDate?: Maybe<Scalars['Date']>
isPublished: Scalars['Boolean']
channel: Channel channel: Channel
} }
@ -2031,10 +2057,10 @@ export type CollectionSortingInput = {
export type CollectionTranslatableContent = Node & { export type CollectionTranslatableContent = Node & {
__typename?: 'CollectionTranslatableContent' __typename?: 'CollectionTranslatableContent'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
/** /**
@ -2063,10 +2089,10 @@ export type CollectionTranslate = {
export type CollectionTranslation = Node & { export type CollectionTranslation = Node & {
__typename?: 'CollectionTranslation' __typename?: 'CollectionTranslation'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
name: Scalars['String'] name: Scalars['String']
description?: Maybe<Scalars['JSONString']> description?: Maybe<Scalars['JSONString']>
/** Translation language. */ /** Translation language. */
@ -2117,6 +2143,7 @@ export enum ConfigurationTypeFieldEnum {
Secret = 'SECRET', Secret = 'SECRET',
Password = 'PASSWORD', Password = 'PASSWORD',
Secretmultiline = 'SECRETMULTILINE', Secretmultiline = 'SECRETMULTILINE',
Output = 'OUTPUT',
} }
/** Confirm user account with token sent by email during registration. */ /** Confirm user account with token sent by email during registration. */
@ -2728,6 +2755,16 @@ export enum DiscountValueTypeEnum {
Percentage = 'PERCENTAGE', Percentage = 'PERCENTAGE',
} }
/** An enumeration. */
export enum DistanceUnitsEnum {
Cm = 'CM',
M = 'M',
Km = 'KM',
Ft = 'FT',
Yd = 'YD',
Inch = 'INCH',
}
/** Represents shop's domain. */ /** Represents shop's domain. */
export type Domain = { export type Domain = {
__typename?: 'Domain' __typename?: 'Domain'
@ -3604,6 +3641,40 @@ export type Margin = {
stop?: Maybe<Scalars['Int']> stop?: Maybe<Scalars['Int']>
} }
/** An enumeration. */
export enum MeasurementUnitsEnum {
Cm = 'CM',
M = 'M',
Km = 'KM',
Ft = 'FT',
Yd = 'YD',
Inch = 'INCH',
SqCm = 'SQ_CM',
SqM = 'SQ_M',
SqKm = 'SQ_KM',
SqFt = 'SQ_FT',
SqYd = 'SQ_YD',
SqInch = 'SQ_INCH',
CubicMillimeter = 'CUBIC_MILLIMETER',
CubicCentimeter = 'CUBIC_CENTIMETER',
CubicDecimeter = 'CUBIC_DECIMETER',
CubicMeter = 'CUBIC_METER',
Liter = 'LITER',
CubicFoot = 'CUBIC_FOOT',
CubicInch = 'CUBIC_INCH',
CubicYard = 'CUBIC_YARD',
Qt = 'QT',
Pint = 'PINT',
FlOz = 'FL_OZ',
AcreIn = 'ACRE_IN',
AcreFt = 'ACRE_FT',
G = 'G',
Lb = 'LB',
Oz = 'OZ',
Kg = 'KG',
Tonne = 'TONNE',
}
/** Represents a single menu - an object that is used to help navigate through the store. */ /** Represents a single menu - an object that is used to help navigate through the store. */
export type Menu = Node & export type Menu = Node &
ObjectWithMetadata & { ObjectWithMetadata & {
@ -4876,6 +4947,7 @@ export type MutationPaymentVoidArgs = {
} }
export type MutationPaymentInitializeArgs = { export type MutationPaymentInitializeArgs = {
channel?: Maybe<Scalars['String']>
gateway: Scalars['String'] gateway: Scalars['String']
paymentData?: Maybe<Scalars['JSONString']> paymentData?: Maybe<Scalars['JSONString']>
} }
@ -5194,6 +5266,7 @@ export type MutationGiftCardUpdateArgs = {
} }
export type MutationPluginUpdateArgs = { export type MutationPluginUpdateArgs = {
channel?: Maybe<Scalars['ID']>
id: Scalars['ID'] id: Scalars['ID']
input: PluginUpdateInput input: PluginUpdateInput
} }
@ -5520,6 +5593,7 @@ export type MutationExternalVerifyArgs = {
} }
export type MutationRequestPasswordResetArgs = { export type MutationRequestPasswordResetArgs = {
channel?: Maybe<Scalars['String']>
email: Scalars['String'] email: Scalars['String']
redirectUrl: Scalars['String'] redirectUrl: Scalars['String']
} }
@ -5541,12 +5615,14 @@ export type MutationPasswordChangeArgs = {
} }
export type MutationRequestEmailChangeArgs = { export type MutationRequestEmailChangeArgs = {
channel?: Maybe<Scalars['String']>
newEmail: Scalars['String'] newEmail: Scalars['String']
password: Scalars['String'] password: Scalars['String']
redirectUrl: Scalars['String'] redirectUrl: Scalars['String']
} }
export type MutationConfirmEmailChangeArgs = { export type MutationConfirmEmailChangeArgs = {
channel?: Maybe<Scalars['String']>
token: Scalars['String'] token: Scalars['String']
} }
@ -5578,6 +5654,7 @@ export type MutationAccountUpdateArgs = {
} }
export type MutationAccountRequestDeletionArgs = { export type MutationAccountRequestDeletionArgs = {
channel?: Maybe<Scalars['String']>
redirectUrl: Scalars['String'] redirectUrl: Scalars['String']
} }
@ -5727,6 +5804,10 @@ export type Order = Node &
invoices?: Maybe<Array<Maybe<Invoice>>> invoices?: Maybe<Array<Maybe<Invoice>>>
/** User-friendly number of an order. */ /** User-friendly number of an order. */
number?: Maybe<Scalars['String']> number?: Maybe<Scalars['String']>
/** The ID of the order that was the base for this order. */
original?: Maybe<Scalars['ID']>
/** The order origin. */
origin: OrderOriginEnum
/** Informs if an order is fully paid. */ /** Informs if an order is fully paid. */
isPaid: Scalars['Boolean'] isPaid: Scalars['Boolean']
/** Internal payment status. */ /** Internal payment status. */
@ -5958,6 +6039,8 @@ export type OrderError = {
orderLine?: Maybe<Scalars['ID']> orderLine?: Maybe<Scalars['ID']>
/** List of product variants that are associated with the error */ /** List of product variants that are associated with the error */
variants?: Maybe<Array<Scalars['ID']>> variants?: Maybe<Array<Scalars['ID']>>
/** A type of address that causes the error. */
addressType?: Maybe<AddressTypeEnum>
} }
/** An enumeration. */ /** An enumeration. */
@ -6312,6 +6395,13 @@ export type OrderMarkAsPaid = {
errors: Array<OrderError> errors: Array<OrderError>
} }
/** An enumeration. */
export enum OrderOriginEnum {
Checkout = 'CHECKOUT',
Draft = 'DRAFT',
Reissue = 'REISSUE',
}
/** Refund an order. */ /** Refund an order. */
export type OrderRefund = { export type OrderRefund = {
__typename?: 'OrderRefund' __typename?: 'OrderRefund'
@ -6511,10 +6601,10 @@ export type OrderVoid = {
export type Page = Node & export type Page = Node &
ObjectWithMetadata & { ObjectWithMetadata & {
__typename?: 'Page' __typename?: 'Page'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
title: Scalars['String'] title: Scalars['String']
content?: Maybe<Scalars['JSONString']> content?: Maybe<Scalars['JSONString']>
publicationDate?: Maybe<Scalars['Date']> publicationDate?: Maybe<Scalars['Date']>
@ -6664,6 +6754,7 @@ export enum PageErrorCode {
export type PageFilterInput = { export type PageFilterInput = {
search?: Maybe<Scalars['String']> search?: Maybe<Scalars['String']>
metadata?: Maybe<Array<Maybe<MetadataInput>>> metadata?: Maybe<Array<Maybe<MetadataInput>>>
pageTypes?: Maybe<Array<Maybe<Scalars['ID']>>>
} }
/** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */ /** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */
@ -6728,10 +6819,10 @@ export type PageSortingInput = {
export type PageTranslatableContent = Node & { export type PageTranslatableContent = Node & {
__typename?: 'PageTranslatableContent' __typename?: 'PageTranslatableContent'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
title: Scalars['String'] title: Scalars['String']
content?: Maybe<Scalars['JSONString']> content?: Maybe<Scalars['JSONString']>
/** /**
@ -6760,10 +6851,10 @@ export type PageTranslate = {
export type PageTranslation = Node & { export type PageTranslation = Node & {
__typename?: 'PageTranslation' __typename?: 'PageTranslation'
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
/** The ID of the object. */ /** The ID of the object. */
id: Scalars['ID'] id: Scalars['ID']
seoTitle?: Maybe<Scalars['String']>
seoDescription?: Maybe<Scalars['String']>
title: Scalars['String'] title: Scalars['String']
content?: Maybe<Scalars['JSONString']> content?: Maybe<Scalars['JSONString']>
/** Translation language. */ /** Translation language. */
@ -7027,6 +7118,7 @@ export enum PaymentErrorCode {
ShippingMethodNotSet = 'SHIPPING_METHOD_NOT_SET', ShippingMethodNotSet = 'SHIPPING_METHOD_NOT_SET',
PaymentError = 'PAYMENT_ERROR', PaymentError = 'PAYMENT_ERROR',
NotSupportedGateway = 'NOT_SUPPORTED_GATEWAY', NotSupportedGateway = 'NOT_SUPPORTED_GATEWAY',
ChannelInactive = 'CHANNEL_INACTIVE',
} }
export type PaymentFilterInput = { export type PaymentFilterInput = {
@ -7228,15 +7320,36 @@ export type PermissionGroupUpdateInput = {
} }
/** Plugin. */ /** Plugin. */
export type Plugin = Node & { export type Plugin = {
__typename?: 'Plugin' __typename?: 'Plugin'
/** Identifier of the plugin. */
id: Scalars['ID'] id: Scalars['ID']
/** Name of the plugin. */
name: Scalars['String'] name: Scalars['String']
/** Description of the plugin. */
description: Scalars['String'] description: Scalars['String']
/** Global configuration of the plugin (not channel-specific). */
globalConfiguration?: Maybe<PluginConfiguration>
/** Channel-specific plugin configuration. */
channelConfigurations: Array<PluginConfiguration>
}
/** Stores information about a configuration of plugin. */
export type PluginConfiguration = {
__typename?: 'PluginConfiguration'
/** Determines if plugin is active or not. */
active: Scalars['Boolean'] active: Scalars['Boolean']
/** The channel to which the plugin configuration is assigned to. */
channel?: Maybe<Channel>
/** Configuration of the plugin. */
configuration?: Maybe<Array<Maybe<ConfigurationItem>>> configuration?: Maybe<Array<Maybe<ConfigurationItem>>>
} }
export enum PluginConfigurationType {
PerChannel = 'PER_CHANNEL',
Global = 'GLOBAL',
}
export type PluginCountableConnection = { export type PluginCountableConnection = {
__typename?: 'PluginCountableConnection' __typename?: 'PluginCountableConnection'
/** Pagination data for this connection. */ /** Pagination data for this connection. */
@ -7275,8 +7388,9 @@ export enum PluginErrorCode {
} }
export type PluginFilterInput = { export type PluginFilterInput = {
active?: Maybe<Scalars['Boolean']> statusInChannels?: Maybe<PluginStatusInChannelsInput>
search?: Maybe<Scalars['String']> search?: Maybe<Scalars['String']>
type?: Maybe<PluginConfigurationType>
} }
export enum PluginSortField { export enum PluginSortField {
@ -7291,6 +7405,11 @@ export type PluginSortingInput = {
field: PluginSortField field: PluginSortField
} }
export type PluginStatusInChannelsInput = {
active: Scalars['Boolean']
channels: Array<Scalars['ID']>
}
/** Update plugin configuration. */ /** Update plugin configuration. */
export type PluginUpdate = { export type PluginUpdate = {
__typename?: 'PluginUpdate' __typename?: 'PluginUpdate'
@ -9708,6 +9827,7 @@ export type ShippingZoneDelete = {
export type ShippingZoneFilterInput = { export type ShippingZoneFilterInput = {
search?: Maybe<Scalars['String']> search?: Maybe<Scalars['String']>
channels?: Maybe<Array<Maybe<Scalars['ID']>>>
} }
/** Updates a new shipping zone. */ /** Updates a new shipping zone. */
@ -9802,6 +9922,7 @@ export type Shop = {
/** Represents a shop resource containing general shop data and configuration. */ /** Represents a shop resource containing general shop data and configuration. */
export type ShopAvailablePaymentGatewaysArgs = { export type ShopAvailablePaymentGatewaysArgs = {
currency?: Maybe<Scalars['String']> currency?: Maybe<Scalars['String']>
channel?: Maybe<Scalars['String']>
} }
/** Represents a shop resource containing general shop data and configuration. */ /** Represents a shop resource containing general shop data and configuration. */
@ -9995,6 +10116,8 @@ export type StaffError = {
message?: Maybe<Scalars['String']> message?: Maybe<Scalars['String']>
/** The error code. */ /** The error code. */
code: AccountErrorCode code: AccountErrorCode
/** A type of address that causes the error. */
addressType?: Maybe<AddressTypeEnum>
/** List of permissions which causes the error. */ /** List of permissions which causes the error. */
permissions?: Maybe<Array<PermissionEnum>> permissions?: Maybe<Array<PermissionEnum>>
/** List of permission group IDs which cause the error. */ /** List of permission group IDs which cause the error. */
@ -10440,6 +10563,11 @@ export type UserAvatarArgs = {
size?: Maybe<Scalars['Int']> size?: Maybe<Scalars['Int']>
} }
/** Represents user data. */
export type UserStoredPaymentSourcesArgs = {
channel?: Maybe<Scalars['String']>
}
/** Deletes a user avatar. Only for staff members. */ /** Deletes a user avatar. Only for staff members. */
export type UserAvatarDelete = { export type UserAvatarDelete = {
__typename?: 'UserAvatarDelete' __typename?: 'UserAvatarDelete'
@ -10506,6 +10634,8 @@ export type UserCreateInput = {
languageCode?: Maybe<LanguageCodeEnum> languageCode?: Maybe<LanguageCodeEnum>
/** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */
redirectUrl?: Maybe<Scalars['String']> redirectUrl?: Maybe<Scalars['String']>
/** Slug of a channel which will be used for notify user. Optional when only one channel exists. */
channel?: Maybe<Scalars['String']>
} }
export type UserPermission = { export type UserPermission = {
@ -10608,6 +10738,23 @@ export type VerifyToken = {
errors: Array<AccountError> errors: Array<AccountError>
} }
/** An enumeration. */
export enum VolumeUnitsEnum {
CubicMillimeter = 'CUBIC_MILLIMETER',
CubicCentimeter = 'CUBIC_CENTIMETER',
CubicDecimeter = 'CUBIC_DECIMETER',
CubicMeter = 'CUBIC_METER',
Liter = 'LITER',
CubicFoot = 'CUBIC_FOOT',
CubicInch = 'CUBIC_INCH',
CubicYard = 'CUBIC_YARD',
Qt = 'QT',
Pint = 'PINT',
FlOz = 'FL_OZ',
AcreIn = 'ACRE_IN',
AcreFt = 'ACRE_FT',
}
/** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */
export type Voucher = Node & { export type Voucher = Node & {
__typename?: 'Voucher' __typename?: 'Voucher'
@ -11260,10 +11407,11 @@ export type Weight = {
/** An enumeration. */ /** An enumeration. */
export enum WeightUnitsEnum { export enum WeightUnitsEnum {
Kg = 'KG', G = 'G',
Lb = 'LB', Lb = 'LB',
Oz = 'OZ', Oz = 'OZ',
G = 'G', Kg = 'KG',
Tonne = 'TONNE',
} }
export type _Entity = export type _Entity =
@ -11308,7 +11456,7 @@ export type GetAllProductPathsQuery = { __typename?: 'Query' } & {
> >
} }
export type ProductConnnectionFragment = { export type ProductConnectionFragment = {
__typename?: 'ProductCountableConnection' __typename?: 'ProductCountableConnection'
} & { } & {
pageInfo: { __typename?: 'PageInfo' } & Pick< pageInfo: { __typename?: 'PageInfo' } & Pick<
@ -11350,11 +11498,12 @@ export type ProductConnnectionFragment = {
export type GetAllProductsQueryVariables = Exact<{ export type GetAllProductsQueryVariables = Exact<{
first?: Maybe<Scalars['Int']> first?: Maybe<Scalars['Int']>
filter?: Maybe<ProductFilterInput> filter?: Maybe<ProductFilterInput>
sortBy?: Maybe<ProductOrder>
channel?: Maybe<Scalars['String']> channel?: Maybe<Scalars['String']>
}> }>
export type GetAllProductsQuery = { __typename?: 'Query' } & { export type GetAllProductsQuery = { __typename?: 'Query' } & {
products?: Maybe< products?: Maybe<
{ __typename?: 'ProductCountableConnection' } & ProductConnnectionFragment { __typename?: 'ProductCountableConnection' } & ProductConnectionFragment
> >
} }

View File

@ -73,6 +73,11 @@ type AccountError {
The error code. The error code.
""" """
code: AccountErrorCode! code: AccountErrorCode!
"""
A type of address that causes the error.
"""
addressType: AddressTypeEnum
} }
""" """
@ -109,6 +114,8 @@ enum AccountErrorCode {
JWT_DECODE_ERROR JWT_DECODE_ERROR
JWT_MISSING_TOKEN JWT_MISSING_TOKEN
JWT_INVALID_CSRF_TOKEN JWT_INVALID_CSRF_TOKEN
CHANNEL_INACTIVE
MISSING_CHANNEL_SLUG
} }
input AccountInput { input AccountInput {
@ -179,6 +186,11 @@ input AccountRegisterInput {
User public metadata. User public metadata.
""" """
metadata: [MetadataInput!] metadata: [MetadataInput!]
"""
Slug of a channel which will be used to notify users. Optional when only one channel exists.
"""
channel: String
} }
""" """
@ -887,6 +899,18 @@ type AppUpdate {
app: App app: App
} }
"""
An enumeration.
"""
enum AreaUnitsEnum {
SQ_CM
SQ_M
SQ_KM
SQ_FT
SQ_YD
SQ_INCH
}
""" """
Assigns storefront's navigation menus. Assigns storefront's navigation menus.
""" """
@ -958,6 +982,11 @@ type Attribute implements Node & ObjectWithMetadata {
""" """
type: AttributeTypeEnum type: AttributeTypeEnum
"""
The unit of attribute values.
"""
unit: MeasurementUnitsEnum
""" """
List of attribute's values. List of attribute's values.
""" """
@ -1082,6 +1111,11 @@ input AttributeCreateInput {
""" """
type: AttributeTypeEnum! type: AttributeTypeEnum!
"""
The unit of attribute values.
"""
unit: MeasurementUnitsEnum
""" """
List of attribute's values. List of attribute's values.
""" """
@ -1202,6 +1236,11 @@ input AttributeInput {
Internal representation of a value (unique per attribute). Internal representation of a value (unique per attribute).
""" """
values: [String] values: [String]
"""
The range that the returned values should be in.
"""
valuesRange: IntRangeInput
} }
""" """
@ -1212,6 +1251,7 @@ enum AttributeInputTypeEnum {
MULTISELECT MULTISELECT
FILE FILE
REFERENCE REFERENCE
NUMERIC
RICH_TEXT RICH_TEXT
} }
@ -1368,6 +1408,11 @@ input AttributeUpdateInput {
""" """
slug: String slug: String
"""
The unit of attribute values.
"""
unit: MeasurementUnitsEnum
""" """
IDs of values to be removed from this attribute. IDs of values to be removed from this attribute.
""" """
@ -1742,13 +1787,12 @@ input CatalogueInput {
Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront.
""" """
type Category implements Node & ObjectWithMetadata { type Category implements Node & ObjectWithMetadata {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
slug: String! slug: String!
@ -2007,13 +2051,12 @@ input CategorySortingInput {
} }
type CategoryTranslatableContent implements Node { type CategoryTranslatableContent implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
@ -2054,13 +2097,12 @@ type CategoryTranslate {
} }
type CategoryTranslation implements Node { type CategoryTranslation implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
@ -2107,11 +2149,6 @@ type Channel implements Node {
Whether a channel has associated orders. Whether a channel has associated orders.
""" """
hasOrders: Boolean! hasOrders: Boolean!
"""
List of channel shipping zones.
"""
shippingZones: [ShippingZone!]!
} }
""" """
@ -2286,7 +2323,6 @@ type Checkout implements Node & ObjectWithMetadata {
created: DateTime! created: DateTime!
lastChange: DateTime! lastChange: DateTime!
user: User user: User
quantity: Int!
channel: Channel! channel: Channel!
billingAddress: Address billingAddress: Address
shippingAddress: Address shippingAddress: Address
@ -2336,6 +2372,11 @@ type Checkout implements Node & ObjectWithMetadata {
""" """
isShippingRequired: Boolean! isShippingRequired: Boolean!
"""
The number of items purchased.
"""
quantity: Int!
""" """
A list of checkout lines, each containing information about an item in the checkout. A list of checkout lines, each containing information about an item in the checkout.
""" """
@ -2457,7 +2498,7 @@ Create a new checkout.
""" """
type CheckoutCreate { type CheckoutCreate {
""" """
Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout. Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout.DEPRECATED: Will be removed in Saleor 4.0. Always returns True.
""" """
created: Boolean created: Boolean
checkoutErrors: [CheckoutError!]! checkoutErrors: [CheckoutError!]!
@ -2565,6 +2606,11 @@ type CheckoutError {
List of varint IDs which causes the error. List of varint IDs which causes the error.
""" """
variants: [ID!] variants: [ID!]
"""
A type of address that causes the error.
"""
addressType: AddressTypeEnum
} }
""" """
@ -2789,13 +2835,12 @@ type ChoiceValue {
Represents a collection of products. Represents a collection of products.
""" """
type Collection implements Node & ObjectWithMetadata { type Collection implements Node & ObjectWithMetadata {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
slug: String! slug: String!
@ -2909,13 +2954,12 @@ type CollectionBulkDelete {
Represents collection channel listing. Represents collection channel listing.
""" """
type CollectionChannelListing implements Node { type CollectionChannelListing implements Node {
publicationDate: Date
isPublished: Boolean!
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
publicationDate: Date
isPublished: Boolean!
channel: Channel! channel: Channel!
} }
@ -3238,13 +3282,12 @@ input CollectionSortingInput {
} }
type CollectionTranslatableContent implements Node { type CollectionTranslatableContent implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
@ -3285,13 +3328,12 @@ type CollectionTranslate {
} }
type CollectionTranslation implements Node { type CollectionTranslation implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
name: String! name: String!
description: JSONString description: JSONString
@ -3373,6 +3415,7 @@ enum ConfigurationTypeFieldEnum {
SECRET SECRET
PASSWORD PASSWORD
SECRETMULTILINE SECRETMULTILINE
OUTPUT
} }
""" """
@ -4209,6 +4252,18 @@ enum DiscountValueTypeEnum {
PERCENTAGE PERCENTAGE
} }
"""
An enumeration.
"""
enum DistanceUnitsEnum {
CM
M
KM
FT
YD
INCH
}
""" """
Represents shop's domain. Represents shop's domain.
""" """
@ -5627,6 +5682,42 @@ type Margin {
stop: Int stop: Int
} }
"""
An enumeration.
"""
enum MeasurementUnitsEnum {
CM
M
KM
FT
YD
INCH
SQ_CM
SQ_M
SQ_KM
SQ_FT
SQ_YD
SQ_INCH
CUBIC_MILLIMETER
CUBIC_CENTIMETER
CUBIC_DECIMETER
CUBIC_METER
LITER
CUBIC_FOOT
CUBIC_INCH
CUBIC_YARD
QT
PINT
FL_OZ
ACRE_IN
ACRE_FT
G
LB
OZ
KG
TONNE
}
""" """
Represents a single menu - an object that is used to help navigate through the store. Represents a single menu - an object that is used to help navigate through the store.
""" """
@ -7288,6 +7379,11 @@ type Mutation {
Initializes payment process when it is required by gateway. Initializes payment process when it is required by gateway.
""" """
paymentInitialize( paymentInitialize(
"""
Slug of a channel for which the data should be returned.
"""
channel: String
""" """
A gateway name used to initialize the payment. A gateway name used to initialize the payment.
""" """
@ -8180,6 +8276,11 @@ type Mutation {
Update plugin configuration. Update plugin configuration.
""" """
pluginUpdate( pluginUpdate(
"""
ID of a channel for which the data should be modified.
"""
channel: ID
""" """
ID of plugin to update. ID of plugin to update.
""" """
@ -9094,6 +9195,11 @@ type Mutation {
Sends an email with the account password modification link. Sends an email with the account password modification link.
""" """
requestPasswordReset( requestPasswordReset(
"""
Slug of a channel which will be used for notify user. Optional when only one channel exists.
"""
channel: String
""" """
Email of the user that will be used for password recovery. Email of the user that will be used for password recovery.
""" """
@ -9159,6 +9265,11 @@ type Mutation {
Request email change of the logged in user. Request email change of the logged in user.
""" """
requestEmailChange( requestEmailChange(
"""
Slug of a channel which will be used to notify users. Optional when only one channel exists.
"""
channel: String
""" """
New user email. New user email.
""" """
@ -9179,6 +9290,11 @@ type Mutation {
Confirm the email change of the logged-in user. Confirm the email change of the logged-in user.
""" """
confirmEmailChange( confirmEmailChange(
"""
Slug of a channel which will be used to notify users. Optional when only one channel exists.
"""
channel: String
""" """
A one-time token required to change the email. A one-time token required to change the email.
""" """
@ -9264,6 +9380,11 @@ type Mutation {
Sends an email with the account removal link for the logged-in user. Sends an email with the account removal link for the logged-in user.
""" """
accountRequestDeletion( accountRequestDeletion(
"""
Slug of a channel which will be used to notify users. Optional when only one channel exists.
"""
channel: String
""" """
URL of a view where users should be redirected to delete their account. URL in RFC 1808 format. URL of a view where users should be redirected to delete their account. URL in RFC 1808 format.
""" """
@ -9609,6 +9730,16 @@ type Order implements Node & ObjectWithMetadata {
""" """
number: String number: String
"""
The ID of the order that was the base for this order.
"""
original: ID
"""
The order origin.
"""
origin: OrderOriginEnum!
""" """
Informs if an order is fully paid. Informs if an order is fully paid.
""" """
@ -10014,6 +10145,11 @@ type OrderError {
List of product variants that are associated with the error List of product variants that are associated with the error
""" """
variants: [ID!] variants: [ID!]
"""
A type of address that causes the error.
"""
addressType: AddressTypeEnum
} }
""" """
@ -10585,6 +10721,15 @@ type OrderMarkAsPaid {
errors: [OrderError!]! errors: [OrderError!]!
} }
"""
An enumeration.
"""
enum OrderOriginEnum {
CHECKOUT
DRAFT
REISSUE
}
""" """
Refund an order. Refund an order.
""" """
@ -10924,13 +11069,12 @@ type OrderVoid {
A static page that can be manually added by a shop operator through the dashboard. A static page that can be manually added by a shop operator through the dashboard.
""" """
type Page implements Node & ObjectWithMetadata { type Page implements Node & ObjectWithMetadata {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
title: String! title: String!
content: JSONString content: JSONString
publicationDate: Date publicationDate: Date
@ -11167,6 +11311,7 @@ enum PageErrorCode {
input PageFilterInput { input PageFilterInput {
search: String search: String
metadata: [MetadataInput] metadata: [MetadataInput]
pageTypes: [ID]
} }
""" """
@ -11286,13 +11431,12 @@ input PageSortingInput {
} }
type PageTranslatableContent implements Node { type PageTranslatableContent implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
title: String! title: String!
content: JSONString content: JSONString
@ -11333,13 +11477,12 @@ type PageTranslate {
} }
type PageTranslation implements Node { type PageTranslation implements Node {
seoTitle: String
seoDescription: String
""" """
The ID of the object. The ID of the object.
""" """
id: ID! id: ID!
seoTitle: String
seoDescription: String
title: String! title: String!
content: JSONString content: JSONString
@ -11754,6 +11897,7 @@ enum PaymentErrorCode {
SHIPPING_METHOD_NOT_SET SHIPPING_METHOD_NOT_SET
PAYMENT_ERROR PAYMENT_ERROR
NOT_SUPPORTED_GATEWAY NOT_SUPPORTED_GATEWAY
CHANNEL_INACTIVE
} }
input PaymentFilterInput { input PaymentFilterInput {
@ -12069,14 +12213,58 @@ input PermissionGroupUpdateInput {
""" """
Plugin. Plugin.
""" """
type Plugin implements Node { type Plugin {
"""
Identifier of the plugin.
"""
id: ID! id: ID!
"""
Name of the plugin.
"""
name: String! name: String!
"""
Description of the plugin.
"""
description: String! description: String!
"""
Global configuration of the plugin (not channel-specific).
"""
globalConfiguration: PluginConfiguration
"""
Channel-specific plugin configuration.
"""
channelConfigurations: [PluginConfiguration!]!
}
"""
Stores information about a configuration of plugin.
"""
type PluginConfiguration {
"""
Determines if plugin is active or not.
"""
active: Boolean! active: Boolean!
"""
The channel to which the plugin configuration is assigned to.
"""
channel: Channel
"""
Configuration of the plugin.
"""
configuration: [ConfigurationItem] configuration: [ConfigurationItem]
} }
enum PluginConfigurationType {
PER_CHANNEL
GLOBAL
}
type PluginCountableConnection { type PluginCountableConnection {
""" """
Pagination data for this connection. Pagination data for this connection.
@ -12132,8 +12320,9 @@ enum PluginErrorCode {
} }
input PluginFilterInput { input PluginFilterInput {
active: Boolean statusInChannels: PluginStatusInChannelsInput
search: String search: String
type: PluginConfigurationType
} }
enum PluginSortField { enum PluginSortField {
@ -12153,6 +12342,11 @@ input PluginSortingInput {
field: PluginSortField! field: PluginSortField!
} }
input PluginStatusInChannelsInput {
active: Boolean!
channels: [ID!]!
}
""" """
Update plugin configuration. Update plugin configuration.
""" """
@ -16732,6 +16926,7 @@ type ShippingZoneDelete {
input ShippingZoneFilterInput { input ShippingZoneFilterInput {
search: String search: String
channels: [ID]
} }
""" """
@ -16797,9 +16992,14 @@ type Shop {
""" """
availablePaymentGateways( availablePaymentGateways(
""" """
A currency for which gateways will be returned. DEPRECATED: use `channel` argument instead. This argument will be removed in Saleor 4.0.A currency for which gateways will be returned.
""" """
currency: String currency: String
"""
Slug of a channel for which the data should be returned.
"""
channel: String
): [PaymentGateway!]! ): [PaymentGateway!]!
""" """
@ -17253,6 +17453,11 @@ type StaffError {
""" """
code: AccountErrorCode! code: AccountErrorCode!
"""
A type of address that causes the error.
"""
addressType: AddressTypeEnum
""" """
List of permissions which causes the error. List of permissions which causes the error.
""" """
@ -17962,7 +18167,12 @@ type User implements Node & ObjectWithMetadata {
""" """
List of stored payment sources. List of stored payment sources.
""" """
storedPaymentSources: [PaymentSource] storedPaymentSources(
"""
Slug of a channel for which the data should be returned.
"""
channel: String
): [PaymentSource]
""" """
User language code. User language code.
@ -18085,6 +18295,11 @@ input UserCreateInput {
URL of a view where users should be redirected to set the password. URL in RFC 1808 format. URL of a view where users should be redirected to set the password. URL in RFC 1808 format.
""" """
redirectUrl: String redirectUrl: String
"""
Slug of a channel which will be used for notify user. Optional when only one channel exists.
"""
channel: String
} }
type UserPermission { type UserPermission {
@ -18255,6 +18470,25 @@ type VerifyToken {
errors: [AccountError!]! errors: [AccountError!]!
} }
"""
An enumeration.
"""
enum VolumeUnitsEnum {
CUBIC_MILLIMETER
CUBIC_CENTIMETER
CUBIC_DECIMETER
CUBIC_METER
LITER
CUBIC_FOOT
CUBIC_INCH
CUBIC_YARD
QT
PINT
FL_OZ
ACRE_IN
ACRE_FT
}
""" """
Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.
""" """
@ -19367,10 +19601,11 @@ scalar WeightScalar
An enumeration. An enumeration.
""" """
enum WeightUnitsEnum { enum WeightUnitsEnum {
KG G
LB LB
OZ OZ
G KG
TONNE
} }
""" """