|
|
@@ -1,311 +1,231 @@
|
|
|
// tslint:disable
|
|
|
|
|
|
- export interface PossibleTypesResultData {
|
|
|
- possibleTypes: {
|
|
|
- [key: string]: string[]
|
|
|
- }
|
|
|
- }
|
|
|
- const result: PossibleTypesResultData = {
|
|
|
- "possibleTypes": {
|
|
|
- "AddFulfillmentToOrderResult": [
|
|
|
- "CreateFulfillmentError",
|
|
|
- "EmptyOrderLineSelectionError",
|
|
|
- "Fulfillment",
|
|
|
- "FulfillmentStateTransitionError",
|
|
|
- "InsufficientStockOnHandError",
|
|
|
- "InvalidFulfillmentHandlerError",
|
|
|
- "ItemsAlreadyFulfilledError"
|
|
|
- ],
|
|
|
- "AddManualPaymentToOrderResult": [
|
|
|
- "ManualPaymentStateError",
|
|
|
- "Order"
|
|
|
- ],
|
|
|
- "ApplyCouponCodeResult": [
|
|
|
- "CouponCodeExpiredError",
|
|
|
- "CouponCodeInvalidError",
|
|
|
- "CouponCodeLimitError",
|
|
|
- "Order"
|
|
|
- ],
|
|
|
- "AuthenticationResult": [
|
|
|
- "CurrentUser",
|
|
|
- "InvalidCredentialsError"
|
|
|
- ],
|
|
|
- "CancelOrderResult": [
|
|
|
- "CancelActiveOrderError",
|
|
|
- "EmptyOrderLineSelectionError",
|
|
|
- "MultipleOrderError",
|
|
|
- "Order",
|
|
|
- "OrderStateTransitionError",
|
|
|
- "QuantityTooGreatError"
|
|
|
- ],
|
|
|
- "CancelPaymentResult": [
|
|
|
- "CancelPaymentError",
|
|
|
- "Payment",
|
|
|
- "PaymentStateTransitionError"
|
|
|
- ],
|
|
|
- "CreateAssetResult": [
|
|
|
- "Asset",
|
|
|
- "MimeTypeError"
|
|
|
- ],
|
|
|
- "CreateChannelResult": [
|
|
|
- "Channel",
|
|
|
- "LanguageNotAvailableError"
|
|
|
- ],
|
|
|
- "CreateCustomerResult": [
|
|
|
- "Customer",
|
|
|
- "EmailAddressConflictError"
|
|
|
- ],
|
|
|
- "CreatePromotionResult": [
|
|
|
- "MissingConditionsError",
|
|
|
- "Promotion"
|
|
|
- ],
|
|
|
- "CustomField": [
|
|
|
- "BooleanCustomFieldConfig",
|
|
|
- "DateTimeCustomFieldConfig",
|
|
|
- "FloatCustomFieldConfig",
|
|
|
- "IntCustomFieldConfig",
|
|
|
- "LocaleStringCustomFieldConfig",
|
|
|
- "RelationCustomFieldConfig",
|
|
|
- "StringCustomFieldConfig",
|
|
|
- "TextCustomFieldConfig"
|
|
|
- ],
|
|
|
- "CustomFieldConfig": [
|
|
|
- "BooleanCustomFieldConfig",
|
|
|
- "DateTimeCustomFieldConfig",
|
|
|
- "FloatCustomFieldConfig",
|
|
|
- "IntCustomFieldConfig",
|
|
|
- "LocaleStringCustomFieldConfig",
|
|
|
- "RelationCustomFieldConfig",
|
|
|
- "StringCustomFieldConfig",
|
|
|
- "TextCustomFieldConfig"
|
|
|
- ],
|
|
|
- "ErrorResult": [
|
|
|
- "AlreadyRefundedError",
|
|
|
- "CancelActiveOrderError",
|
|
|
- "CancelPaymentError",
|
|
|
- "ChannelDefaultLanguageError",
|
|
|
- "CouponCodeExpiredError",
|
|
|
- "CouponCodeInvalidError",
|
|
|
- "CouponCodeLimitError",
|
|
|
- "CreateFulfillmentError",
|
|
|
- "EmailAddressConflictError",
|
|
|
- "EmptyOrderLineSelectionError",
|
|
|
- "FacetInUseError",
|
|
|
- "FulfillmentStateTransitionError",
|
|
|
- "IneligibleShippingMethodError",
|
|
|
- "InsufficientStockError",
|
|
|
- "InsufficientStockOnHandError",
|
|
|
- "InvalidCredentialsError",
|
|
|
- "InvalidFulfillmentHandlerError",
|
|
|
- "ItemsAlreadyFulfilledError",
|
|
|
- "LanguageNotAvailableError",
|
|
|
- "ManualPaymentStateError",
|
|
|
- "MimeTypeError",
|
|
|
- "MissingConditionsError",
|
|
|
- "MultipleOrderError",
|
|
|
- "NativeAuthStrategyError",
|
|
|
- "NegativeQuantityError",
|
|
|
- "NoActiveOrderError",
|
|
|
- "NoChangesSpecifiedError",
|
|
|
- "NothingToRefundError",
|
|
|
- "OrderLimitError",
|
|
|
- "OrderModificationError",
|
|
|
- "OrderModificationStateError",
|
|
|
- "OrderStateTransitionError",
|
|
|
- "PaymentMethodMissingError",
|
|
|
- "PaymentOrderMismatchError",
|
|
|
- "PaymentStateTransitionError",
|
|
|
- "ProductOptionInUseError",
|
|
|
- "QuantityTooGreatError",
|
|
|
- "RefundOrderStateError",
|
|
|
- "RefundPaymentIdMissingError",
|
|
|
- "RefundStateTransitionError",
|
|
|
- "SettlePaymentError"
|
|
|
- ],
|
|
|
- "ModifyOrderResult": [
|
|
|
- "CouponCodeExpiredError",
|
|
|
- "CouponCodeInvalidError",
|
|
|
- "CouponCodeLimitError",
|
|
|
- "InsufficientStockError",
|
|
|
- "NegativeQuantityError",
|
|
|
- "NoChangesSpecifiedError",
|
|
|
- "Order",
|
|
|
- "OrderLimitError",
|
|
|
- "OrderModificationStateError",
|
|
|
- "PaymentMethodMissingError",
|
|
|
- "RefundPaymentIdMissingError"
|
|
|
- ],
|
|
|
- "NativeAuthenticationResult": [
|
|
|
- "CurrentUser",
|
|
|
- "InvalidCredentialsError",
|
|
|
- "NativeAuthStrategyError"
|
|
|
- ],
|
|
|
- "Node": [
|
|
|
- "Address",
|
|
|
- "Administrator",
|
|
|
- "Allocation",
|
|
|
- "Asset",
|
|
|
- "AuthenticationMethod",
|
|
|
- "Cancellation",
|
|
|
- "Channel",
|
|
|
- "Collection",
|
|
|
- "Country",
|
|
|
- "Customer",
|
|
|
- "CustomerGroup",
|
|
|
- "Facet",
|
|
|
- "FacetValue",
|
|
|
- "Fulfillment",
|
|
|
- "HistoryEntry",
|
|
|
- "Job",
|
|
|
- "Order",
|
|
|
- "OrderItem",
|
|
|
- "OrderLine",
|
|
|
- "OrderModification",
|
|
|
- "Payment",
|
|
|
- "PaymentMethod",
|
|
|
- "Product",
|
|
|
- "ProductOption",
|
|
|
- "ProductOptionGroup",
|
|
|
- "ProductVariant",
|
|
|
- "Promotion",
|
|
|
- "Refund",
|
|
|
- "Release",
|
|
|
- "Return",
|
|
|
- "Role",
|
|
|
- "Sale",
|
|
|
- "Seller",
|
|
|
- "ShippingMethod",
|
|
|
- "StockAdjustment",
|
|
|
- "Surcharge",
|
|
|
- "Tag",
|
|
|
- "TaxCategory",
|
|
|
- "TaxRate",
|
|
|
- "User",
|
|
|
- "Vendor",
|
|
|
- "Zone"
|
|
|
- ],
|
|
|
- "PaginatedList": [
|
|
|
- "AdministratorList",
|
|
|
- "AssetList",
|
|
|
- "CollectionList",
|
|
|
- "CountryList",
|
|
|
- "CustomerGroupList",
|
|
|
- "CustomerList",
|
|
|
- "FacetList",
|
|
|
- "FacetValueList",
|
|
|
- "HistoryEntryList",
|
|
|
- "JobList",
|
|
|
- "OrderList",
|
|
|
- "PaymentMethodList",
|
|
|
- "ProductList",
|
|
|
- "ProductVariantList",
|
|
|
- "PromotionList",
|
|
|
- "RoleList",
|
|
|
- "SellerList",
|
|
|
- "ShippingMethodList",
|
|
|
- "TagList",
|
|
|
- "TaxRateList",
|
|
|
- "VendorList"
|
|
|
- ],
|
|
|
- "RefundOrderResult": [
|
|
|
- "AlreadyRefundedError",
|
|
|
- "MultipleOrderError",
|
|
|
- "NothingToRefundError",
|
|
|
- "OrderStateTransitionError",
|
|
|
- "PaymentOrderMismatchError",
|
|
|
- "QuantityTooGreatError",
|
|
|
- "Refund",
|
|
|
- "RefundOrderStateError",
|
|
|
- "RefundStateTransitionError"
|
|
|
- ],
|
|
|
- "RemoveFacetFromChannelResult": [
|
|
|
- "Facet",
|
|
|
- "FacetInUseError"
|
|
|
- ],
|
|
|
- "RemoveOptionGroupFromProductResult": [
|
|
|
- "Product",
|
|
|
- "ProductOptionInUseError"
|
|
|
- ],
|
|
|
- "RemoveOrderItemsResult": [
|
|
|
- "Order",
|
|
|
- "OrderModificationError"
|
|
|
- ],
|
|
|
- "SearchResultPrice": [
|
|
|
- "PriceRange",
|
|
|
- "SinglePrice"
|
|
|
- ],
|
|
|
- "SetCustomerForDraftOrderResult": [
|
|
|
- "EmailAddressConflictError",
|
|
|
- "Order"
|
|
|
- ],
|
|
|
- "SetOrderShippingMethodResult": [
|
|
|
- "IneligibleShippingMethodError",
|
|
|
- "NoActiveOrderError",
|
|
|
- "Order",
|
|
|
- "OrderModificationError"
|
|
|
- ],
|
|
|
- "SettlePaymentResult": [
|
|
|
- "OrderStateTransitionError",
|
|
|
- "Payment",
|
|
|
- "PaymentStateTransitionError",
|
|
|
- "SettlePaymentError"
|
|
|
- ],
|
|
|
- "SettleRefundResult": [
|
|
|
- "Refund",
|
|
|
- "RefundStateTransitionError"
|
|
|
- ],
|
|
|
- "StockMovement": [
|
|
|
- "Allocation",
|
|
|
- "Cancellation",
|
|
|
- "Release",
|
|
|
- "Return",
|
|
|
- "Sale",
|
|
|
- "StockAdjustment"
|
|
|
- ],
|
|
|
- "StockMovementItem": [
|
|
|
- "Allocation",
|
|
|
- "Cancellation",
|
|
|
- "Release",
|
|
|
- "Return",
|
|
|
- "Sale",
|
|
|
- "StockAdjustment"
|
|
|
- ],
|
|
|
- "TransitionFulfillmentToStateResult": [
|
|
|
- "Fulfillment",
|
|
|
- "FulfillmentStateTransitionError"
|
|
|
- ],
|
|
|
- "TransitionOrderToStateResult": [
|
|
|
- "Order",
|
|
|
- "OrderStateTransitionError"
|
|
|
- ],
|
|
|
- "TransitionPaymentToStateResult": [
|
|
|
- "Payment",
|
|
|
- "PaymentStateTransitionError"
|
|
|
- ],
|
|
|
- "UpdateChannelResult": [
|
|
|
- "Channel",
|
|
|
- "LanguageNotAvailableError"
|
|
|
- ],
|
|
|
- "UpdateCustomerResult": [
|
|
|
- "Customer",
|
|
|
- "EmailAddressConflictError"
|
|
|
- ],
|
|
|
- "UpdateGlobalSettingsResult": [
|
|
|
- "ChannelDefaultLanguageError",
|
|
|
- "GlobalSettings"
|
|
|
- ],
|
|
|
- "UpdateOrderItemsResult": [
|
|
|
- "InsufficientStockError",
|
|
|
- "NegativeQuantityError",
|
|
|
- "Order",
|
|
|
- "OrderLimitError",
|
|
|
- "OrderModificationError"
|
|
|
- ],
|
|
|
- "UpdatePromotionResult": [
|
|
|
- "MissingConditionsError",
|
|
|
- "Promotion"
|
|
|
- ]
|
|
|
- }
|
|
|
+export interface PossibleTypesResultData {
|
|
|
+ possibleTypes: {
|
|
|
+ [key: string]: string[];
|
|
|
+ };
|
|
|
+}
|
|
|
+const result: PossibleTypesResultData = {
|
|
|
+ possibleTypes: {
|
|
|
+ AddFulfillmentToOrderResult: [
|
|
|
+ 'CreateFulfillmentError',
|
|
|
+ 'EmptyOrderLineSelectionError',
|
|
|
+ 'Fulfillment',
|
|
|
+ 'FulfillmentStateTransitionError',
|
|
|
+ 'InsufficientStockOnHandError',
|
|
|
+ 'InvalidFulfillmentHandlerError',
|
|
|
+ 'ItemsAlreadyFulfilledError',
|
|
|
+ ],
|
|
|
+ AddManualPaymentToOrderResult: ['ManualPaymentStateError', 'Order'],
|
|
|
+ ApplyCouponCodeResult: [
|
|
|
+ 'CouponCodeExpiredError',
|
|
|
+ 'CouponCodeInvalidError',
|
|
|
+ 'CouponCodeLimitError',
|
|
|
+ 'Order',
|
|
|
+ ],
|
|
|
+ AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
|
+ CancelOrderResult: [
|
|
|
+ 'CancelActiveOrderError',
|
|
|
+ 'EmptyOrderLineSelectionError',
|
|
|
+ 'MultipleOrderError',
|
|
|
+ 'Order',
|
|
|
+ 'OrderStateTransitionError',
|
|
|
+ 'QuantityTooGreatError',
|
|
|
+ ],
|
|
|
+ CancelPaymentResult: ['CancelPaymentError', 'Payment', 'PaymentStateTransitionError'],
|
|
|
+ CreateAssetResult: ['Asset', 'MimeTypeError'],
|
|
|
+ CreateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
|
+ CreateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
|
+ CreatePromotionResult: ['MissingConditionsError', 'Promotion'],
|
|
|
+ CustomField: [
|
|
|
+ 'BooleanCustomFieldConfig',
|
|
|
+ 'DateTimeCustomFieldConfig',
|
|
|
+ 'FloatCustomFieldConfig',
|
|
|
+ 'IntCustomFieldConfig',
|
|
|
+ 'LocaleStringCustomFieldConfig',
|
|
|
+ 'RelationCustomFieldConfig',
|
|
|
+ 'StringCustomFieldConfig',
|
|
|
+ 'TextCustomFieldConfig',
|
|
|
+ ],
|
|
|
+ CustomFieldConfig: [
|
|
|
+ 'BooleanCustomFieldConfig',
|
|
|
+ 'DateTimeCustomFieldConfig',
|
|
|
+ 'FloatCustomFieldConfig',
|
|
|
+ 'IntCustomFieldConfig',
|
|
|
+ 'LocaleStringCustomFieldConfig',
|
|
|
+ 'RelationCustomFieldConfig',
|
|
|
+ 'StringCustomFieldConfig',
|
|
|
+ 'TextCustomFieldConfig',
|
|
|
+ ],
|
|
|
+ ErrorResult: [
|
|
|
+ 'AlreadyRefundedError',
|
|
|
+ 'CancelActiveOrderError',
|
|
|
+ 'CancelPaymentError',
|
|
|
+ 'ChannelDefaultLanguageError',
|
|
|
+ 'CouponCodeExpiredError',
|
|
|
+ 'CouponCodeInvalidError',
|
|
|
+ 'CouponCodeLimitError',
|
|
|
+ 'CreateFulfillmentError',
|
|
|
+ 'EmailAddressConflictError',
|
|
|
+ 'EmptyOrderLineSelectionError',
|
|
|
+ 'FacetInUseError',
|
|
|
+ 'FulfillmentStateTransitionError',
|
|
|
+ 'IneligibleShippingMethodError',
|
|
|
+ 'InsufficientStockError',
|
|
|
+ 'InsufficientStockOnHandError',
|
|
|
+ 'InvalidCredentialsError',
|
|
|
+ 'InvalidFulfillmentHandlerError',
|
|
|
+ 'ItemsAlreadyFulfilledError',
|
|
|
+ 'LanguageNotAvailableError',
|
|
|
+ 'ManualPaymentStateError',
|
|
|
+ 'MimeTypeError',
|
|
|
+ 'MissingConditionsError',
|
|
|
+ 'MultipleOrderError',
|
|
|
+ 'NativeAuthStrategyError',
|
|
|
+ 'NegativeQuantityError',
|
|
|
+ 'NoActiveOrderError',
|
|
|
+ 'NoChangesSpecifiedError',
|
|
|
+ 'NothingToRefundError',
|
|
|
+ 'OrderLimitError',
|
|
|
+ 'OrderModificationError',
|
|
|
+ 'OrderModificationStateError',
|
|
|
+ 'OrderStateTransitionError',
|
|
|
+ 'PaymentMethodMissingError',
|
|
|
+ 'PaymentOrderMismatchError',
|
|
|
+ 'PaymentStateTransitionError',
|
|
|
+ 'ProductOptionInUseError',
|
|
|
+ 'QuantityTooGreatError',
|
|
|
+ 'RefundOrderStateError',
|
|
|
+ 'RefundPaymentIdMissingError',
|
|
|
+ 'RefundStateTransitionError',
|
|
|
+ 'SettlePaymentError',
|
|
|
+ ],
|
|
|
+ ModifyOrderResult: [
|
|
|
+ 'CouponCodeExpiredError',
|
|
|
+ 'CouponCodeInvalidError',
|
|
|
+ 'CouponCodeLimitError',
|
|
|
+ 'InsufficientStockError',
|
|
|
+ 'NegativeQuantityError',
|
|
|
+ 'NoChangesSpecifiedError',
|
|
|
+ 'Order',
|
|
|
+ 'OrderLimitError',
|
|
|
+ 'OrderModificationStateError',
|
|
|
+ 'PaymentMethodMissingError',
|
|
|
+ 'RefundPaymentIdMissingError',
|
|
|
+ ],
|
|
|
+ NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'],
|
|
|
+ Node: [
|
|
|
+ 'Address',
|
|
|
+ 'Administrator',
|
|
|
+ 'Allocation',
|
|
|
+ 'Asset',
|
|
|
+ 'AuthenticationMethod',
|
|
|
+ 'Cancellation',
|
|
|
+ 'Channel',
|
|
|
+ 'Collection',
|
|
|
+ 'Country',
|
|
|
+ 'Customer',
|
|
|
+ 'CustomerGroup',
|
|
|
+ 'Facet',
|
|
|
+ 'FacetValue',
|
|
|
+ 'Fulfillment',
|
|
|
+ 'HistoryEntry',
|
|
|
+ 'Job',
|
|
|
+ 'Order',
|
|
|
+ 'OrderItem',
|
|
|
+ 'OrderLine',
|
|
|
+ 'OrderModification',
|
|
|
+ 'Payment',
|
|
|
+ 'PaymentMethod',
|
|
|
+ 'Product',
|
|
|
+ 'ProductOption',
|
|
|
+ 'ProductOptionGroup',
|
|
|
+ 'ProductVariant',
|
|
|
+ 'Promotion',
|
|
|
+ 'Refund',
|
|
|
+ 'Release',
|
|
|
+ 'Return',
|
|
|
+ 'Role',
|
|
|
+ 'Sale',
|
|
|
+ 'Seller',
|
|
|
+ 'ShippingMethod',
|
|
|
+ 'StockAdjustment',
|
|
|
+ 'StockLevel',
|
|
|
+ 'StockLocation',
|
|
|
+ 'Surcharge',
|
|
|
+ 'Tag',
|
|
|
+ 'TaxCategory',
|
|
|
+ 'TaxRate',
|
|
|
+ 'User',
|
|
|
+ 'Zone',
|
|
|
+ ],
|
|
|
+ PaginatedList: [
|
|
|
+ 'AdministratorList',
|
|
|
+ 'AssetList',
|
|
|
+ 'CollectionList',
|
|
|
+ 'CountryList',
|
|
|
+ 'CustomerGroupList',
|
|
|
+ 'CustomerList',
|
|
|
+ 'FacetList',
|
|
|
+ 'FacetValueList',
|
|
|
+ 'HistoryEntryList',
|
|
|
+ 'JobList',
|
|
|
+ 'OrderList',
|
|
|
+ 'PaymentMethodList',
|
|
|
+ 'ProductList',
|
|
|
+ 'ProductVariantList',
|
|
|
+ 'PromotionList',
|
|
|
+ 'RoleList',
|
|
|
+ 'SellerList',
|
|
|
+ 'ShippingMethodList',
|
|
|
+ 'TagList',
|
|
|
+ 'TaxRateList',
|
|
|
+ ],
|
|
|
+ RefundOrderResult: [
|
|
|
+ 'AlreadyRefundedError',
|
|
|
+ 'MultipleOrderError',
|
|
|
+ 'NothingToRefundError',
|
|
|
+ 'OrderStateTransitionError',
|
|
|
+ 'PaymentOrderMismatchError',
|
|
|
+ 'QuantityTooGreatError',
|
|
|
+ 'Refund',
|
|
|
+ 'RefundOrderStateError',
|
|
|
+ 'RefundStateTransitionError',
|
|
|
+ ],
|
|
|
+ RemoveFacetFromChannelResult: ['Facet', 'FacetInUseError'],
|
|
|
+ RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
|
+ RemoveOrderItemsResult: ['Order', 'OrderModificationError'],
|
|
|
+ SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
|
+ SetCustomerForDraftOrderResult: ['EmailAddressConflictError', 'Order'],
|
|
|
+ SetOrderShippingMethodResult: [
|
|
|
+ 'IneligibleShippingMethodError',
|
|
|
+ 'NoActiveOrderError',
|
|
|
+ 'Order',
|
|
|
+ 'OrderModificationError',
|
|
|
+ ],
|
|
|
+ SettlePaymentResult: [
|
|
|
+ 'OrderStateTransitionError',
|
|
|
+ 'Payment',
|
|
|
+ 'PaymentStateTransitionError',
|
|
|
+ 'SettlePaymentError',
|
|
|
+ ],
|
|
|
+ SettleRefundResult: ['Refund', 'RefundStateTransitionError'],
|
|
|
+ StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
|
+ StockMovementItem: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
|
+ TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'],
|
|
|
+ TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'],
|
|
|
+ TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'],
|
|
|
+ UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
|
+ UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
|
+ UpdateGlobalSettingsResult: ['ChannelDefaultLanguageError', 'GlobalSettings'],
|
|
|
+ UpdateOrderItemsResult: [
|
|
|
+ 'InsufficientStockError',
|
|
|
+ 'NegativeQuantityError',
|
|
|
+ 'Order',
|
|
|
+ 'OrderLimitError',
|
|
|
+ 'OrderModificationError',
|
|
|
+ ],
|
|
|
+ UpdatePromotionResult: ['MissingConditionsError', 'Promotion'],
|
|
|
+ },
|
|
|
};
|
|
|
- export default result;
|
|
|
-
|
|
|
+export default result;
|