Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 190 additions & 0 deletions apps/avatax/e2e/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8246,6 +8246,18 @@ export type Fulfillment = Node & ObjectWithMetadata & {
privateMetafield?: Maybe<Scalars['String']['output']>;
/** Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything. */
privateMetafields?: Maybe<Scalars['Metadata']['output']>;
/**
* Reason for returning this fulfillment.
*
* Added in Saleor 3.23.
*/
reason?: Maybe<Scalars['String']['output']>;
/**
* Reason Model (Page) reference for this fulfillment.
*
* Added in Saleor 3.23.
*/
reasonReference?: Maybe<Page>;
/** Amount of refunded shipping price. */
shippingRefundedAmount?: Maybe<Money>;
/** Status of fulfillment. */
Expand Down Expand Up @@ -8398,6 +8410,18 @@ export type FulfillmentLine = Node & {
orderLine?: Maybe<OrderLine>;
/** The number of items included in the fulfillment line. */
quantity: Scalars['Int']['output'];
/**
* Reason for returning this fulfillment line.
*
* Added in Saleor 3.23.
*/
reason?: Maybe<Scalars['String']['output']>;
/**
* Reason Model (Page) reference for this fulfillment line.
*
* Added in Saleor 3.23.
*/
reasonReference?: Maybe<Page>;
};

/** Event sent when fulfillment metadata is updated. */
Expand Down Expand Up @@ -14004,6 +14028,22 @@ export type Mutation = {
* - STAFF_SET_PASSWORD_REQUESTED (async): Setting a new password for the staff account is requested.
*/
requestPasswordReset?: Maybe<RequestPasswordReset>;
/**
* Updates ReturnSettings. The `Page` (Model) Type will be cleared from `reasonReferenceType`. When it's cleared, passing reason reference to return mutations is no longer accepted and will raise error.
*
* Added in Saleor 3.23.
*
* Requires one of the following permissions: MANAGE_SETTINGS.
*/
returnReasonReferenceClear?: Maybe<ReturnReasonReferenceTypeClear>;
/**
* Update return settings across all channels.
*
* Added in Saleor 3.23.
*
* Requires one of the following permissions: MANAGE_SETTINGS.
*/
returnSettingsUpdate?: Maybe<ReturnSettingsUpdate>;
/**
* Deletes sales.
*
Expand Down Expand Up @@ -16017,6 +16057,11 @@ export type MutationRequestPasswordResetArgs = {
};


export type MutationReturnSettingsUpdateArgs = {
input: ReturnSettingsUpdateInput;
};


export type MutationSaleBulkDeleteArgs = {
ids: Array<Scalars['ID']['input']>;
};
Expand Down Expand Up @@ -17931,6 +17976,7 @@ export enum OrderGrantRefundCreateErrorCode {
AmountGreaterThanAvailable = 'AMOUNT_GREATER_THAN_AVAILABLE',
GraphqlError = 'GRAPHQL_ERROR',
Invalid = 'INVALID',
NotConfigured = 'NOT_CONFIGURED',
NotFound = 'NOT_FOUND',
Required = 'REQUIRED',
ShippingCostsAlreadyGranted = 'SHIPPING_COSTS_ALREADY_GRANTED'
Expand Down Expand Up @@ -17975,6 +18021,8 @@ export type OrderGrantRefundCreateLineError = {

export enum OrderGrantRefundCreateLineErrorCode {
GraphqlError = 'GRAPHQL_ERROR',
Invalid = 'INVALID',
NotConfigured = 'NOT_CONFIGURED',
NotFound = 'NOT_FOUND',
QuantityGreaterThanAvailable = 'QUANTITY_GREATER_THAN_AVAILABLE'
}
Expand All @@ -17986,6 +18034,12 @@ export type OrderGrantRefundCreateLineInput = {
quantity: Scalars['Int']['input'];
/** Reason of the granted refund for the line. */
reason?: InputMaybe<Scalars['String']['input']>;
/**
* ID of a `Page` (Model) to reference in reason for the line.
*
* Added in Saleor 3.23.
*/
reasonReference?: InputMaybe<Scalars['ID']['input']>;
};

/**
Expand Down Expand Up @@ -18020,6 +18074,7 @@ export enum OrderGrantRefundUpdateErrorCode {
AmountGreaterThanAvailable = 'AMOUNT_GREATER_THAN_AVAILABLE',
GraphqlError = 'GRAPHQL_ERROR',
Invalid = 'INVALID',
NotConfigured = 'NOT_CONFIGURED',
NotFound = 'NOT_FOUND',
Required = 'REQUIRED',
ShippingCostsAlreadyGranted = 'SHIPPING_COSTS_ALREADY_GRANTED'
Expand Down Expand Up @@ -18059,6 +18114,12 @@ export type OrderGrantRefundUpdateLineAddInput = {
quantity: Scalars['Int']['input'];
/** Reason of the granted refund for the line. */
reason?: InputMaybe<Scalars['String']['input']>;
/**
* ID of a `Page` (Model) to reference in reason for the line.
*
* Added in Saleor 3.23.
*/
reasonReference?: InputMaybe<Scalars['ID']['input']>;
};

export type OrderGrantRefundUpdateLineError = {
Expand All @@ -18075,6 +18136,8 @@ export type OrderGrantRefundUpdateLineError = {

export enum OrderGrantRefundUpdateLineErrorCode {
GraphqlError = 'GRAPHQL_ERROR',
Invalid = 'INVALID',
NotConfigured = 'NOT_CONFIGURED',
NotFound = 'NOT_FOUND',
QuantityGreaterThanAvailable = 'QUANTITY_GREATER_THAN_AVAILABLE'
}
Expand Down Expand Up @@ -18139,6 +18202,12 @@ export type OrderGrantedRefundLine = {
quantity: Scalars['Int']['output'];
/** Reason for refunding the line. */
reason?: Maybe<Scalars['String']['output']>;
/**
* Reason Model (Page) reference for this refund line.
*
* Added in Saleor 3.23.
*/
reasonReference?: Maybe<Page>;
};

/**
Expand Down Expand Up @@ -18600,6 +18669,18 @@ export type OrderReturnFulfillmentLineInput = {
fulfillmentLineId: Scalars['ID']['input'];
/** The number of items to be returned. */
quantity: Scalars['Int']['input'];
/**
* Reason for returning this fulfillment line.
*
* Added in Saleor 3.23.
*/
reason?: InputMaybe<Scalars['String']['input']>;
/**
* ID of a `Page` (Model) to reference in reason for this fulfillment line.
*
* Added in Saleor 3.23.
*/
reasonReference?: InputMaybe<Scalars['ID']['input']>;
/** Determines, if the line should be added to replace order. */
replace?: InputMaybe<Scalars['Boolean']['input']>;
};
Expand All @@ -18609,6 +18690,18 @@ export type OrderReturnLineInput = {
orderLineId: Scalars['ID']['input'];
/** The number of items to be returned. */
quantity: Scalars['Int']['input'];
/**
* Reason for returning this line.
*
* Added in Saleor 3.23.
*/
reason?: InputMaybe<Scalars['String']['input']>;
/**
* ID of a `Page` (Model) to reference in reason for this line.
*
* Added in Saleor 3.23.
*/
reasonReference?: InputMaybe<Scalars['ID']['input']>;
/** Determines, if the line should be added to replace order. */
replace?: InputMaybe<Scalars['Boolean']['input']>;
};
Expand All @@ -18622,6 +18715,18 @@ export type OrderReturnProductsInput = {
includeShippingCosts?: InputMaybe<Scalars['Boolean']['input']>;
/** List of unfulfilled lines to return. */
orderLines?: InputMaybe<Array<OrderReturnLineInput>>;
/**
* Reason for returning this order.
*
* Added in Saleor 3.23.
*/
reason?: InputMaybe<Scalars['String']['input']>;
/**
* ID of a `Page` (Model) to reference in reason for this return.
*
* Added in Saleor 3.23.
*/
reasonReference?: InputMaybe<Scalars['ID']['input']>;
/** If true, Saleor will call refund action for all lines. */
refund?: InputMaybe<Scalars['Boolean']['input']>;
};
Expand Down Expand Up @@ -25202,6 +25307,8 @@ export type Query = {
* @deprecated Field no longer supported
*/
reportProductSales?: Maybe<ProductVariantCountableConnection>;
/** Returns related settings. Returns `ReturnSettings` configuration, global for the entire shop. */
returnSettings: ReturnSettings;
/**
* Look up a sale by ID.
*
Expand Down Expand Up @@ -26118,6 +26225,89 @@ export type RequestPasswordReset = {
errors: Array<AccountError>;
};

/**
* Updates ReturnSettings. The `Page` (Model) Type will be cleared from `reasonReferenceType`. When it's cleared, passing reason reference to return mutations is no longer accepted and will raise error.
*
* Added in Saleor 3.23.
*
* Requires one of the following permissions: MANAGE_SETTINGS.
*/
export type ReturnReasonReferenceTypeClear = {
__typename?: 'ReturnReasonReferenceTypeClear';
errors: Array<ReturnReasonReferenceTypeClearError>;
/** Return settings. */
returnSettings?: Maybe<ReturnSettings>;
/** @deprecated Use `errors` field instead. */
returnSettingsErrors: Array<ReturnReasonReferenceTypeClearError>;
};

export type ReturnReasonReferenceTypeClearError = {
__typename?: 'ReturnReasonReferenceTypeClearError';
/** Failed to clear return reason reference type */
code: ReturnSettingsErrorCode;
/** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */
field?: Maybe<Scalars['String']['output']>;
/** The error message. */
message?: Maybe<Scalars['String']['output']>;
};

/**
* Return related settings from site settings.
*
* Added in Saleor 3.23.
*/
export type ReturnSettings = {
__typename?: 'ReturnSettings';
/**
* Model type used for return reasons.
*
* Added in Saleor 3.23.
*/
reasonReferenceType?: Maybe<PageType>;
};

export enum ReturnSettingsErrorCode {
GraphqlError = 'GRAPHQL_ERROR',
Invalid = 'INVALID',
NotFound = 'NOT_FOUND',
Required = 'REQUIRED'
}

/**
* Update return settings across all channels.
*
* Added in Saleor 3.23.
*
* Requires one of the following permissions: MANAGE_SETTINGS.
*/
export type ReturnSettingsUpdate = {
__typename?: 'ReturnSettingsUpdate';
errors: Array<ReturnSettingsUpdateError>;
/** Return settings. */
returnSettings?: Maybe<ReturnSettings>;
/** @deprecated Use `errors` field instead. */
returnSettingsErrors: Array<ReturnSettingsUpdateError>;
};

export type ReturnSettingsUpdateError = {
__typename?: 'ReturnSettingsUpdateError';
/** Failed to update Return Settings */
code: ReturnSettingsErrorCode;
/** Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field. */
field?: Maybe<Scalars['String']['output']>;
/** The error message. */
message?: Maybe<Scalars['String']['output']>;
};

export type ReturnSettingsUpdateInput = {
/**
* The ID of a model type, that will be used to reference return reasons. All models of this type will be accepted as return reasons.
*
* Added in Saleor 3.23.
*/
returnReasonReferenceType: Scalars['ID']['input'];
};

export enum RewardTypeEnum {
Gift = 'GIFT',
SubtotalDiscount = 'SUBTOTAL_DISCOUNT'
Expand Down
Loading
Loading