-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Add custom error result on AuthenticationStrategy
Closes #499
- Loading branch information
Showing
20 changed files
with
14,088 additions
and
14,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
361 changes: 209 additions & 152 deletions
361
packages/admin-ui/src/lib/core/src/common/introspection-result.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,155 +1,212 @@ | ||
// tslint:disable | ||
|
||
export interface PossibleTypesResultData { | ||
possibleTypes: { | ||
[key: string]: string[]; | ||
}; | ||
} | ||
const result: PossibleTypesResultData = { | ||
possibleTypes: { | ||
CreateAssetResult: ['Asset', 'MimeTypeError'], | ||
NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'], | ||
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'], | ||
CreateChannelResult: ['Channel', 'LanguageNotAvailableError'], | ||
UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'], | ||
CreateCustomerResult: ['Customer', 'EmailAddressConflictError'], | ||
UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'], | ||
UpdateGlobalSettingsResult: ['GlobalSettings', 'ChannelDefaultLanguageError'], | ||
TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'], | ||
SettlePaymentResult: [ | ||
'Payment', | ||
'SettlePaymentError', | ||
'PaymentStateTransitionError', | ||
'OrderStateTransitionError', | ||
], | ||
AddFulfillmentToOrderResult: [ | ||
'Fulfillment', | ||
'EmptyOrderLineSelectionError', | ||
'ItemsAlreadyFulfilledError', | ||
], | ||
CancelOrderResult: [ | ||
'Order', | ||
'EmptyOrderLineSelectionError', | ||
'QuantityTooGreatError', | ||
'MultipleOrderError', | ||
'CancelActiveOrderError', | ||
'OrderStateTransitionError', | ||
], | ||
RefundOrderResult: [ | ||
'Refund', | ||
'QuantityTooGreatError', | ||
'NothingToRefundError', | ||
'OrderStateTransitionError', | ||
'MultipleOrderError', | ||
'PaymentOrderMismatchError', | ||
'RefundOrderStateError', | ||
'AlreadyRefundedError', | ||
'RefundStateTransitionError', | ||
], | ||
SettleRefundResult: ['Refund', 'RefundStateTransitionError'], | ||
TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'], | ||
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'], | ||
CreatePromotionResult: ['Promotion', 'MissingConditionsError'], | ||
UpdatePromotionResult: ['Promotion', 'MissingConditionsError'], | ||
PaginatedList: [ | ||
'CustomerGroupList', | ||
'JobList', | ||
'PaymentMethodList', | ||
'AdministratorList', | ||
'AssetList', | ||
'CollectionList', | ||
'ProductVariantList', | ||
'CountryList', | ||
'CustomerList', | ||
'FacetList', | ||
'HistoryEntryList', | ||
'OrderList', | ||
'ProductList', | ||
'PromotionList', | ||
'RoleList', | ||
'ShippingMethodList', | ||
'TaxRateList', | ||
], | ||
Node: [ | ||
'Collection', | ||
'Customer', | ||
'Facet', | ||
'Fulfillment', | ||
'Job', | ||
'Order', | ||
'Product', | ||
'ProductVariant', | ||
'Address', | ||
'Administrator', | ||
'Asset', | ||
'Channel', | ||
'Country', | ||
'CustomerGroup', | ||
'FacetValue', | ||
'HistoryEntry', | ||
'OrderItem', | ||
'OrderLine', | ||
'Payment', | ||
'Refund', | ||
'PaymentMethod', | ||
'ProductOptionGroup', | ||
'ProductOption', | ||
'Promotion', | ||
'Role', | ||
'ShippingMethod', | ||
'StockAdjustment', | ||
'Sale', | ||
'Cancellation', | ||
'Return', | ||
'TaxCategory', | ||
'TaxRate', | ||
'User', | ||
'AuthenticationMethod', | ||
'Zone', | ||
], | ||
ErrorResult: [ | ||
'MimeTypeError', | ||
'LanguageNotAvailableError', | ||
'ChannelDefaultLanguageError', | ||
'SettlePaymentError', | ||
'EmptyOrderLineSelectionError', | ||
'ItemsAlreadyFulfilledError', | ||
'MultipleOrderError', | ||
'CancelActiveOrderError', | ||
'PaymentOrderMismatchError', | ||
'RefundOrderStateError', | ||
'NothingToRefundError', | ||
'AlreadyRefundedError', | ||
'QuantityTooGreatError', | ||
'RefundStateTransitionError', | ||
'PaymentStateTransitionError', | ||
'FulfillmentStateTransitionError', | ||
'ProductOptionInUseError', | ||
'MissingConditionsError', | ||
'NativeAuthStrategyError', | ||
'InvalidCredentialsError', | ||
'OrderStateTransitionError', | ||
'EmailAddressConflictError', | ||
], | ||
CustomField: [ | ||
'StringCustomFieldConfig', | ||
'LocaleStringCustomFieldConfig', | ||
'IntCustomFieldConfig', | ||
'FloatCustomFieldConfig', | ||
'BooleanCustomFieldConfig', | ||
'DateTimeCustomFieldConfig', | ||
], | ||
CustomFieldConfig: [ | ||
'StringCustomFieldConfig', | ||
'LocaleStringCustomFieldConfig', | ||
'IntCustomFieldConfig', | ||
'FloatCustomFieldConfig', | ||
'BooleanCustomFieldConfig', | ||
'DateTimeCustomFieldConfig', | ||
], | ||
SearchResultPrice: ['PriceRange', 'SinglePrice'], | ||
StockMovement: ['StockAdjustment', 'Sale', 'Cancellation', 'Return'], | ||
StockMovementItem: ['StockAdjustment', 'Sale', 'Cancellation', 'Return'], | ||
}, | ||
export interface PossibleTypesResultData { | ||
possibleTypes: { | ||
[key: string]: string[] | ||
} | ||
} | ||
const result: PossibleTypesResultData = { | ||
"possibleTypes": { | ||
"CreateAssetResult": [ | ||
"Asset", | ||
"MimeTypeError" | ||
], | ||
"NativeAuthenticationResult": [ | ||
"CurrentUser", | ||
"InvalidCredentialsError", | ||
"NativeAuthStrategyError" | ||
], | ||
"AuthenticationResult": [ | ||
"CurrentUser", | ||
"InvalidCredentialsError" | ||
], | ||
"CreateChannelResult": [ | ||
"Channel", | ||
"LanguageNotAvailableError" | ||
], | ||
"UpdateChannelResult": [ | ||
"Channel", | ||
"LanguageNotAvailableError" | ||
], | ||
"CreateCustomerResult": [ | ||
"Customer", | ||
"EmailAddressConflictError" | ||
], | ||
"UpdateCustomerResult": [ | ||
"Customer", | ||
"EmailAddressConflictError" | ||
], | ||
"UpdateGlobalSettingsResult": [ | ||
"GlobalSettings", | ||
"ChannelDefaultLanguageError" | ||
], | ||
"TransitionOrderToStateResult": [ | ||
"Order", | ||
"OrderStateTransitionError" | ||
], | ||
"SettlePaymentResult": [ | ||
"Payment", | ||
"SettlePaymentError", | ||
"PaymentStateTransitionError", | ||
"OrderStateTransitionError" | ||
], | ||
"AddFulfillmentToOrderResult": [ | ||
"Fulfillment", | ||
"EmptyOrderLineSelectionError", | ||
"ItemsAlreadyFulfilledError" | ||
], | ||
"CancelOrderResult": [ | ||
"Order", | ||
"EmptyOrderLineSelectionError", | ||
"QuantityTooGreatError", | ||
"MultipleOrderError", | ||
"CancelActiveOrderError", | ||
"OrderStateTransitionError" | ||
], | ||
"RefundOrderResult": [ | ||
"Refund", | ||
"QuantityTooGreatError", | ||
"NothingToRefundError", | ||
"OrderStateTransitionError", | ||
"MultipleOrderError", | ||
"PaymentOrderMismatchError", | ||
"RefundOrderStateError", | ||
"AlreadyRefundedError", | ||
"RefundStateTransitionError" | ||
], | ||
"SettleRefundResult": [ | ||
"Refund", | ||
"RefundStateTransitionError" | ||
], | ||
"TransitionFulfillmentToStateResult": [ | ||
"Fulfillment", | ||
"FulfillmentStateTransitionError" | ||
], | ||
"RemoveOptionGroupFromProductResult": [ | ||
"Product", | ||
"ProductOptionInUseError" | ||
], | ||
"CreatePromotionResult": [ | ||
"Promotion", | ||
"MissingConditionsError" | ||
], | ||
"UpdatePromotionResult": [ | ||
"Promotion", | ||
"MissingConditionsError" | ||
], | ||
"PaginatedList": [ | ||
"CustomerGroupList", | ||
"JobList", | ||
"PaymentMethodList", | ||
"AdministratorList", | ||
"AssetList", | ||
"CollectionList", | ||
"ProductVariantList", | ||
"CountryList", | ||
"CustomerList", | ||
"FacetList", | ||
"HistoryEntryList", | ||
"OrderList", | ||
"ProductList", | ||
"PromotionList", | ||
"RoleList", | ||
"ShippingMethodList", | ||
"TaxRateList" | ||
], | ||
"Node": [ | ||
"Collection", | ||
"Customer", | ||
"Facet", | ||
"Fulfillment", | ||
"Job", | ||
"Order", | ||
"Product", | ||
"ProductVariant", | ||
"Address", | ||
"Administrator", | ||
"Asset", | ||
"Channel", | ||
"Country", | ||
"CustomerGroup", | ||
"FacetValue", | ||
"HistoryEntry", | ||
"OrderItem", | ||
"OrderLine", | ||
"Payment", | ||
"Refund", | ||
"PaymentMethod", | ||
"ProductOptionGroup", | ||
"ProductOption", | ||
"Promotion", | ||
"Role", | ||
"ShippingMethod", | ||
"StockAdjustment", | ||
"Sale", | ||
"Cancellation", | ||
"Return", | ||
"TaxCategory", | ||
"TaxRate", | ||
"User", | ||
"AuthenticationMethod", | ||
"Zone" | ||
], | ||
"ErrorResult": [ | ||
"MimeTypeError", | ||
"LanguageNotAvailableError", | ||
"ChannelDefaultLanguageError", | ||
"SettlePaymentError", | ||
"EmptyOrderLineSelectionError", | ||
"ItemsAlreadyFulfilledError", | ||
"MultipleOrderError", | ||
"CancelActiveOrderError", | ||
"PaymentOrderMismatchError", | ||
"RefundOrderStateError", | ||
"NothingToRefundError", | ||
"AlreadyRefundedError", | ||
"QuantityTooGreatError", | ||
"RefundStateTransitionError", | ||
"PaymentStateTransitionError", | ||
"FulfillmentStateTransitionError", | ||
"ProductOptionInUseError", | ||
"MissingConditionsError", | ||
"NativeAuthStrategyError", | ||
"InvalidCredentialsError", | ||
"OrderStateTransitionError", | ||
"EmailAddressConflictError" | ||
], | ||
"CustomField": [ | ||
"StringCustomFieldConfig", | ||
"LocaleStringCustomFieldConfig", | ||
"IntCustomFieldConfig", | ||
"FloatCustomFieldConfig", | ||
"BooleanCustomFieldConfig", | ||
"DateTimeCustomFieldConfig" | ||
], | ||
"CustomFieldConfig": [ | ||
"StringCustomFieldConfig", | ||
"LocaleStringCustomFieldConfig", | ||
"IntCustomFieldConfig", | ||
"FloatCustomFieldConfig", | ||
"BooleanCustomFieldConfig", | ||
"DateTimeCustomFieldConfig" | ||
], | ||
"SearchResultPrice": [ | ||
"PriceRange", | ||
"SinglePrice" | ||
], | ||
"StockMovement": [ | ||
"StockAdjustment", | ||
"Sale", | ||
"Cancellation", | ||
"Return" | ||
], | ||
"StockMovementItem": [ | ||
"StockAdjustment", | ||
"Sale", | ||
"Cancellation", | ||
"Return" | ||
] | ||
} | ||
}; | ||
export default result; | ||
export default result; | ||
|
Oops, something went wrong.