Skip to content

Commit cd79364

Browse files
authored
Merge branch 'main' into lkostrowski/graphql-eslint-unused
2 parents c264199 + 5f29161 commit cd79364

3 files changed

Lines changed: 219 additions & 6 deletions

File tree

schema-staging.graphql

Lines changed: 119 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,13 @@ type Query {
686686
"""Where filtering options for transactions."""
687687
where: TransactionWhereInput
688688

689+
"""
690+
Sort transactions.
691+
692+
Added in Saleor 3.23.
693+
"""
694+
sortBy: TransactionSortingInput
695+
689696
"""Return the elements in the list that come before the specified cursor."""
690697
before: String
691698

@@ -15183,6 +15190,13 @@ type Shop implements ObjectWithMetadata {
1518315190
"""
1518415191
preserveAllAddressFields: Boolean!
1518515192

15193+
"""
15194+
Controls whether password-based authentication is allowed.
15195+
15196+
Added in Saleor 3.23.
15197+
"""
15198+
passwordLoginMode: PasswordLoginModeEnum!
15199+
1518615200
"""Include taxes in prices."""
1518715201
includeTaxesInPrices: Boolean! @deprecated(reason: "Use `Channel.taxConfiguration.pricesEnteredWithTax` to determine whether prices are entered with tax.")
1518815202

@@ -15286,6 +15300,21 @@ type Limits {
1528615300
warehouses: Int
1528715301
}
1528815302

15303+
"""
15304+
Controls whether password-based authentication is allowed.
15305+
15306+
ENABLED - any user can log in with a password. This is the default behavior.
15307+
CUSTOMERS_ONLY - only customer users can log in with a password.
15308+
If a staff user logs in with a password, they will be treated as a customer
15309+
— the issued token will not contain any staff permissions.
15310+
DISABLED - no user can log in with a password.
15311+
"""
15312+
enum PasswordLoginModeEnum @doc(category: "Authentication") {
15313+
ENABLED
15314+
CUSTOMERS_ONLY
15315+
DISABLED
15316+
}
15317+
1528915318
"""Gift card related settings from site settings."""
1529015319
type GiftCardSettings @doc(category: "Gift cards") {
1529115320
"""The gift card expiry type settings."""
@@ -15548,13 +15577,87 @@ input TransactionWhereInput @doc(category: "Payments") {
1554815577
"""Filter by app identifier."""
1554915578
appIdentifier: StringFilterInput
1555015579

15580+
"""
15581+
Filter transactions by created at date.
15582+
15583+
Added in Saleor 3.23.
15584+
"""
15585+
createdAt: DateTimeRangeInput
15586+
15587+
"""
15588+
Filter transactions by modified at date.
15589+
15590+
Added in Saleor 3.23.
15591+
"""
15592+
modifiedAt: DateTimeRangeInput
15593+
15594+
"""
15595+
Filter by transaction events. Each list item represents conditions that must be satisfied by a single event. The filter matches transactions that have related events meeting all specified groups of conditions.
15596+
15597+
Added in Saleor 3.23.
15598+
"""
15599+
events: [TransactionEventFilterInput!]
15600+
1555115601
"""List of conditions that must be met."""
1555215602
AND: [TransactionWhereInput!]
1555315603

1555415604
"""A list of conditions of which at least one must be met."""
1555515605
OR: [TransactionWhereInput!]
1555615606
}
1555715607

15608+
"""
15609+
Filter input for transaction events data.
15610+
15611+
Added in Saleor 3.23.
15612+
"""
15613+
input TransactionEventFilterInput @doc(category: "Payments") {
15614+
"""
15615+
Filter transaction events by created at date.
15616+
15617+
Added in Saleor 3.23.
15618+
"""
15619+
createdAt: DateTimeRangeInput
15620+
15621+
"""
15622+
Filter transaction events by type.
15623+
15624+
Added in Saleor 3.23.
15625+
"""
15626+
type: TransactionEventTypeEnumFilterInput
15627+
}
15628+
15629+
input TransactionEventTypeEnumFilterInput @doc(category: "Payments") {
15630+
"""The value equal to."""
15631+
eq: TransactionEventTypeEnum
15632+
15633+
"""The value included in."""
15634+
oneOf: [TransactionEventTypeEnum!]
15635+
}
15636+
15637+
input TransactionSortingInput @doc(category: "Payments") {
15638+
"""Specifies the direction in which to sort transactions."""
15639+
direction: OrderDirection!
15640+
15641+
"""Sort transactions by the selected field."""
15642+
field: TransactionSortField!
15643+
}
15644+
15645+
enum TransactionSortField @doc(category: "Payments") {
15646+
"""
15647+
Sort transactions by creation date.
15648+
15649+
Added in Saleor 3.23.
15650+
"""
15651+
CREATED_AT
15652+
15653+
"""
15654+
Sort transactions by modification date.
15655+
15656+
Added in Saleor 3.23.
15657+
"""
15658+
MODIFIED_AT
15659+
}
15660+
1555815661
type PageCountableConnection @doc(category: "Pages") {
1555915662
"""Pagination data for this connection."""
1556015663
pageInfo: PageInfo!
@@ -20964,7 +21067,11 @@ type Mutation {
2096421067
- CHECKOUT_UPDATED (async): A checkout was updated.
2096521068
"""
2096621069
checkoutDeliveryMethodUpdate(
20967-
"""Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID)."""
21070+
"""
21071+
Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID or `CheckoutDelivery` ID).
21072+
21073+
DEPRECATED: Usage of `ShippingMethod` ID is deprecated. Use CheckoutDelivery ID instead.
21074+
"""
2096821075
deliveryMethodId: ID
2096921076

2097021077
"""The checkout's ID."""
@@ -22938,6 +23045,7 @@ enum ShopErrorCode {
2293823045
NOT_FOUND
2293923046
REQUIRED
2294023047
UNIQUE
23048+
PASSWORD_AUTH_RESTRICTION
2294123049
}
2294223050

2294323051
input StaffNotificationRecipientInput {
@@ -23089,6 +23197,13 @@ input ShopSettingsInput {
2308923197
"""
2309023198
preserveAllAddressFields: Boolean
2309123199

23200+
"""
23201+
Controls whether password-based authentication is allowed.
23202+
23203+
Added in Saleor 3.23.
23204+
"""
23205+
passwordLoginMode: PasswordLoginModeEnum
23206+
2309223207
"""Include taxes in prices."""
2309323208
includeTaxesInPrices: Boolean @deprecated(reason: "Use `taxConfigurationUpdate` mutation to configure this setting per channel or country.")
2309423209

@@ -27004,7 +27119,7 @@ input DraftOrderCreateInput @doc(category: "Orders") {
2700427119
shippingMethod: ID
2700527120

2700627121
"""ID of the voucher associated with the order."""
27007-
voucher: ID
27122+
voucher: ID @deprecated(reason: "Use `voucherCode` instead.")
2700827123

2700927124
"""
2701027125
A code of the voucher associated with the order.
@@ -27154,7 +27269,7 @@ input DraftOrderInput @doc(category: "Orders") {
2715427269
shippingMethod: ID
2715527270

2715627271
"""ID of the voucher associated with the order."""
27157-
voucher: ID
27272+
voucher: ID @deprecated(reason: "Use `voucherCode` instead.")
2715827273

2715927274
"""
2716027275
A code of the voucher associated with the order.
@@ -32651,6 +32766,7 @@ enum AccountErrorCode @doc(category: "Users") {
3265132766
MISSING_CHANNEL_SLUG
3265232767
ACCOUNT_NOT_CONFIRMED
3265332768
LOGIN_ATTEMPT_DELAYED
32769+
DISABLED_AUTHENTICATION_METHOD
3265432770
UNKNOWN_IP_ADDRESS
3265532771
}
3265632772

src/graphql/typePoliciesStaging.generated.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5988,7 +5988,7 @@ export type ShippingZoneUpdatedFieldPolicy = {
59885988
shippingZone?: FieldPolicy<any> | FieldReadFunction<any>,
59895989
version?: FieldPolicy<any> | FieldReadFunction<any>
59905990
};
5991-
export type ShopKeySpecifier = ('allowLoginWithoutConfirmation' | 'automaticFulfillmentDigitalProducts' | 'availableExternalAuthentications' | 'availablePaymentGateways' | 'availableShippingMethods' | 'availableTaxApps' | 'channelCurrencies' | 'chargeTaxesOnShipping' | 'companyAddress' | 'countries' | 'customerSetPasswordUrl' | 'defaultCountry' | 'defaultDigitalMaxDownloads' | 'defaultDigitalUrlValidDays' | 'defaultMailSenderAddress' | 'defaultMailSenderName' | 'defaultWeightUnit' | 'description' | 'displayGrossPrices' | 'domain' | 'enableAccountConfirmationByEmail' | 'fulfillmentAllowUnpaid' | 'fulfillmentAutoApprove' | 'headerText' | 'id' | 'includeTaxesInPrices' | 'languages' | 'limitQuantityPerCheckout' | 'limits' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'permissions' | 'phonePrefixes' | 'preserveAllAddressFields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'reserveStockDurationAnonymousUser' | 'reserveStockDurationAuthenticatedUser' | 'schemaVersion' | 'staffNotificationRecipients' | 'trackInventoryByDefault' | 'translation' | 'useLegacyUpdateWebhookEmission' | 'version' | ShopKeySpecifier)[];
5991+
export type ShopKeySpecifier = ('allowLoginWithoutConfirmation' | 'automaticFulfillmentDigitalProducts' | 'availableExternalAuthentications' | 'availablePaymentGateways' | 'availableShippingMethods' | 'availableTaxApps' | 'channelCurrencies' | 'chargeTaxesOnShipping' | 'companyAddress' | 'countries' | 'customerSetPasswordUrl' | 'defaultCountry' | 'defaultDigitalMaxDownloads' | 'defaultDigitalUrlValidDays' | 'defaultMailSenderAddress' | 'defaultMailSenderName' | 'defaultWeightUnit' | 'description' | 'displayGrossPrices' | 'domain' | 'enableAccountConfirmationByEmail' | 'fulfillmentAllowUnpaid' | 'fulfillmentAutoApprove' | 'headerText' | 'id' | 'includeTaxesInPrices' | 'languages' | 'limitQuantityPerCheckout' | 'limits' | 'metadata' | 'metafield' | 'metafields' | 'name' | 'passwordLoginMode' | 'permissions' | 'phonePrefixes' | 'preserveAllAddressFields' | 'privateMetadata' | 'privateMetafield' | 'privateMetafields' | 'reserveStockDurationAnonymousUser' | 'reserveStockDurationAuthenticatedUser' | 'schemaVersion' | 'staffNotificationRecipients' | 'trackInventoryByDefault' | 'translation' | 'useLegacyUpdateWebhookEmission' | 'version' | ShopKeySpecifier)[];
59925992
export type ShopFieldPolicy = {
59935993
allowLoginWithoutConfirmation?: FieldPolicy<any> | FieldReadFunction<any>,
59945994
automaticFulfillmentDigitalProducts?: FieldPolicy<any> | FieldReadFunction<any>,
@@ -6023,6 +6023,7 @@ export type ShopFieldPolicy = {
60236023
metafield?: FieldPolicy<any> | FieldReadFunction<any>,
60246024
metafields?: FieldPolicy<any> | FieldReadFunction<any>,
60256025
name?: FieldPolicy<any> | FieldReadFunction<any>,
6026+
passwordLoginMode?: FieldPolicy<any> | FieldReadFunction<any>,
60266027
permissions?: FieldPolicy<any> | FieldReadFunction<any>,
60276028
phonePrefixes?: FieldPolicy<any> | FieldReadFunction<any>,
60286029
preserveAllAddressFields?: FieldPolicy<any> | FieldReadFunction<any>,

src/graphql/typesStaging.generated.ts

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export enum AccountErrorCode {
8686
DELETE_OWN_ACCOUNT = 'DELETE_OWN_ACCOUNT',
8787
DELETE_STAFF_ACCOUNT = 'DELETE_STAFF_ACCOUNT',
8888
DELETE_SUPERUSER_ACCOUNT = 'DELETE_SUPERUSER_ACCOUNT',
89+
DISABLED_AUTHENTICATION_METHOD = 'DISABLED_AUTHENTICATION_METHOD',
8990
DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM',
9091
GRAPHQL_ERROR = 'GRAPHQL_ERROR',
9192
INACTIVE = 'INACTIVE',
@@ -2554,7 +2555,10 @@ export type DraftOrderCreateInput = {
25542555
user?: InputMaybe<Scalars['ID']>;
25552556
/** Email address of the customer. */
25562557
userEmail?: InputMaybe<Scalars['String']>;
2557-
/** ID of the voucher associated with the order. */
2558+
/**
2559+
* ID of the voucher associated with the order.
2560+
* @deprecated Use `voucherCode` instead.
2561+
*/
25582562
voucher?: InputMaybe<Scalars['ID']>;
25592563
/**
25602564
* A code of the voucher associated with the order.
@@ -2622,7 +2626,10 @@ export type DraftOrderInput = {
26222626
user?: InputMaybe<Scalars['ID']>;
26232627
/** Email address of the customer. */
26242628
userEmail?: InputMaybe<Scalars['String']>;
2625-
/** ID of the voucher associated with the order. */
2629+
/**
2630+
* ID of the voucher associated with the order.
2631+
* @deprecated Use `voucherCode` instead.
2632+
*/
26262633
voucher?: InputMaybe<Scalars['ID']>;
26272634
/**
26282635
* A code of the voucher associated with the order.
@@ -6196,6 +6203,21 @@ export type PageWhereInput = {
61966203
slug?: InputMaybe<StringFilterInput>;
61976204
};
61986205

6206+
/**
6207+
* Controls whether password-based authentication is allowed.
6208+
*
6209+
* ENABLED - any user can log in with a password. This is the default behavior.
6210+
* CUSTOMERS_ONLY - only customer users can log in with a password.
6211+
* If a staff user logs in with a password, they will be treated as a customer
6212+
* — the issued token will not contain any staff permissions.
6213+
* DISABLED - no user can log in with a password.
6214+
*/
6215+
export enum PasswordLoginModeEnum {
6216+
CUSTOMERS_ONLY = 'CUSTOMERS_ONLY',
6217+
DISABLED = 'DISABLED',
6218+
ENABLED = 'ENABLED'
6219+
}
6220+
61996221
export enum PaymentChargeStatusEnum {
62006222
CANCELLED = 'CANCELLED',
62016223
FULLY_CHARGED = 'FULLY_CHARGED',
@@ -7966,6 +7988,7 @@ export enum ShopErrorCode {
79667988
GRAPHQL_ERROR = 'GRAPHQL_ERROR',
79677989
INVALID = 'INVALID',
79687990
NOT_FOUND = 'NOT_FOUND',
7991+
PASSWORD_AUTH_RESTRICTION = 'PASSWORD_AUTH_RESTRICTION',
79697992
REQUIRED = 'REQUIRED',
79707993
UNIQUE = 'UNIQUE'
79717994
}
@@ -8020,6 +8043,12 @@ export type ShopSettingsInput = {
80208043
* Warning: never store sensitive information, including financial data such as credit card details.
80218044
*/
80228045
metadata?: InputMaybe<Array<MetadataInput>>;
8046+
/**
8047+
* Controls whether password-based authentication is allowed.
8048+
*
8049+
* Added in Saleor 3.23.
8050+
*/
8051+
passwordLoginMode?: InputMaybe<PasswordLoginModeEnum>;
80238052
/**
80248053
* When enabled, address fields that are not valid for a given country (according to Google's i18n address data) will be preserved instead of being removed during validation. Validation errors are still returned.
80258054
*
@@ -8508,6 +8537,26 @@ export type TransactionCreateInput = {
85088537
pspReference?: InputMaybe<Scalars['String']>;
85098538
};
85108539

8540+
/**
8541+
* Filter input for transaction events data.
8542+
*
8543+
* Added in Saleor 3.23.
8544+
*/
8545+
export type TransactionEventFilterInput = {
8546+
/**
8547+
* Filter transaction events by created at date.
8548+
*
8549+
* Added in Saleor 3.23.
8550+
*/
8551+
createdAt?: InputMaybe<DateTimeRangeInput>;
8552+
/**
8553+
* Filter transaction events by type.
8554+
*
8555+
* Added in Saleor 3.23.
8556+
*/
8557+
type?: InputMaybe<TransactionEventTypeEnumFilterInput>;
8558+
};
8559+
85118560
export type TransactionEventInput = {
85128561
/** The message related to the event. */
85138562
message?: InputMaybe<Scalars['String']>;
@@ -8572,6 +8621,13 @@ export enum TransactionEventTypeEnum {
85728621
REFUND_SUCCESS = 'REFUND_SUCCESS'
85738622
}
85748623

8624+
export type TransactionEventTypeEnumFilterInput = {
8625+
/** The value equal to. */
8626+
eq?: InputMaybe<TransactionEventTypeEnum>;
8627+
/** The value included in. */
8628+
oneOf?: InputMaybe<Array<TransactionEventTypeEnum>>;
8629+
};
8630+
85758631
/** Filter input for transactions. */
85768632
export type TransactionFilterInput = {
85778633
/** Filter by metadata fields of transactions. */
@@ -8646,6 +8702,28 @@ export enum TransactionRequestRefundForGrantedRefundErrorCode {
86468702
REFUND_IS_PENDING = 'REFUND_IS_PENDING'
86478703
}
86488704

8705+
export enum TransactionSortField {
8706+
/**
8707+
* Sort transactions by creation date.
8708+
*
8709+
* Added in Saleor 3.23.
8710+
*/
8711+
CREATED_AT = 'CREATED_AT',
8712+
/**
8713+
* Sort transactions by modification date.
8714+
*
8715+
* Added in Saleor 3.23.
8716+
*/
8717+
MODIFIED_AT = 'MODIFIED_AT'
8718+
}
8719+
8720+
export type TransactionSortingInput = {
8721+
/** Specifies the direction in which to sort transactions. */
8722+
direction: OrderDirection;
8723+
/** Sort transactions by the selected field. */
8724+
field: TransactionSortField;
8725+
};
8726+
86498727
export enum TransactionUpdateErrorCode {
86508728
GRAPHQL_ERROR = 'GRAPHQL_ERROR',
86518729
INCORRECT_CURRENCY = 'INCORRECT_CURRENCY',
@@ -8701,7 +8779,25 @@ export type TransactionWhereInput = {
87018779
OR?: InputMaybe<Array<TransactionWhereInput>>;
87028780
/** Filter by app identifier. */
87038781
appIdentifier?: InputMaybe<StringFilterInput>;
8782+
/**
8783+
* Filter transactions by created at date.
8784+
*
8785+
* Added in Saleor 3.23.
8786+
*/
8787+
createdAt?: InputMaybe<DateTimeRangeInput>;
8788+
/**
8789+
* Filter by transaction events. Each list item represents conditions that must be satisfied by a single event. The filter matches transactions that have related events meeting all specified groups of conditions.
8790+
*
8791+
* Added in Saleor 3.23.
8792+
*/
8793+
events?: InputMaybe<Array<TransactionEventFilterInput>>;
87048794
ids?: InputMaybe<Array<Scalars['ID']>>;
8795+
/**
8796+
* Filter transactions by modified at date.
8797+
*
8798+
* Added in Saleor 3.23.
8799+
*/
8800+
modifiedAt?: InputMaybe<DateTimeRangeInput>;
87058801
/** Filter by PSP reference. */
87068802
pspReference?: InputMaybe<StringFilterInput>;
87078803
};

0 commit comments

Comments
 (0)