@vendure/common
Advanced tools
Comparing version 1.2.0-beta.43 to 1.2.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LanguageCode = exports.HistoryEntryType = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.AssetType = void 0; | ||
exports.SortOrder = exports.Permission = exports.LogicalOperator = exports.LanguageCode = exports.HistoryEntryType = exports.GlobalFlag = exports.ErrorCode = exports.DeletionResult = exports.CurrencyCode = exports.AssetType = exports.AdjustmentType = void 0; | ||
var AdjustmentType; | ||
(function (AdjustmentType) { | ||
AdjustmentType["PROMOTION"] = "PROMOTION"; | ||
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION"; | ||
})(AdjustmentType = exports.AdjustmentType || (exports.AdjustmentType = {})); | ||
var AssetType; | ||
@@ -10,243 +15,4 @@ (function (AssetType) { | ||
})(AssetType = exports.AssetType || (exports.AssetType = {})); | ||
var GlobalFlag; | ||
(function (GlobalFlag) { | ||
GlobalFlag["TRUE"] = "TRUE"; | ||
GlobalFlag["FALSE"] = "FALSE"; | ||
GlobalFlag["INHERIT"] = "INHERIT"; | ||
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {})); | ||
var AdjustmentType; | ||
(function (AdjustmentType) { | ||
AdjustmentType["PROMOTION"] = "PROMOTION"; | ||
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION"; | ||
})(AdjustmentType = exports.AdjustmentType || (exports.AdjustmentType = {})); | ||
var DeletionResult; | ||
(function (DeletionResult) { | ||
/** The entity was successfully deleted */ | ||
DeletionResult["DELETED"] = "DELETED"; | ||
/** Deletion did not take place, reason given in message */ | ||
DeletionResult["NOT_DELETED"] = "NOT_DELETED"; | ||
})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {})); | ||
/** | ||
* @description | ||
* Permissions for administrators and customers. Used to control access to | ||
* GraphQL resolvers via the {@link Allow} decorator. | ||
* | ||
* @docsCategory common | ||
*/ | ||
var Permission; | ||
(function (Permission) { | ||
/** Authenticated means simply that the user is logged in */ | ||
Permission["Authenticated"] = "Authenticated"; | ||
/** SuperAdmin has unrestricted access to all operations */ | ||
Permission["SuperAdmin"] = "SuperAdmin"; | ||
/** Owner means the user owns this entity, e.g. a Customer's own Order */ | ||
Permission["Owner"] = "Owner"; | ||
/** Public means any unauthenticated user may perform the operation */ | ||
Permission["Public"] = "Public"; | ||
/** Grants permission to update GlobalSettings */ | ||
Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings"; | ||
/** Grants permission to create Products, Facets, Assets, Collections */ | ||
Permission["CreateCatalog"] = "CreateCatalog"; | ||
/** Grants permission to read Products, Facets, Assets, Collections */ | ||
Permission["ReadCatalog"] = "ReadCatalog"; | ||
/** Grants permission to update Products, Facets, Assets, Collections */ | ||
Permission["UpdateCatalog"] = "UpdateCatalog"; | ||
/** Grants permission to delete Products, Facets, Assets, Collections */ | ||
Permission["DeleteCatalog"] = "DeleteCatalog"; | ||
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["CreateSettings"] = "CreateSettings"; | ||
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["ReadSettings"] = "ReadSettings"; | ||
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["UpdateSettings"] = "UpdateSettings"; | ||
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["DeleteSettings"] = "DeleteSettings"; | ||
/** Grants permission to create Administrator */ | ||
Permission["CreateAdministrator"] = "CreateAdministrator"; | ||
/** Grants permission to read Administrator */ | ||
Permission["ReadAdministrator"] = "ReadAdministrator"; | ||
/** Grants permission to update Administrator */ | ||
Permission["UpdateAdministrator"] = "UpdateAdministrator"; | ||
/** Grants permission to delete Administrator */ | ||
Permission["DeleteAdministrator"] = "DeleteAdministrator"; | ||
/** Grants permission to create Asset */ | ||
Permission["CreateAsset"] = "CreateAsset"; | ||
/** Grants permission to read Asset */ | ||
Permission["ReadAsset"] = "ReadAsset"; | ||
/** Grants permission to update Asset */ | ||
Permission["UpdateAsset"] = "UpdateAsset"; | ||
/** Grants permission to delete Asset */ | ||
Permission["DeleteAsset"] = "DeleteAsset"; | ||
/** Grants permission to create Channel */ | ||
Permission["CreateChannel"] = "CreateChannel"; | ||
/** Grants permission to read Channel */ | ||
Permission["ReadChannel"] = "ReadChannel"; | ||
/** Grants permission to update Channel */ | ||
Permission["UpdateChannel"] = "UpdateChannel"; | ||
/** Grants permission to delete Channel */ | ||
Permission["DeleteChannel"] = "DeleteChannel"; | ||
/** Grants permission to create Collection */ | ||
Permission["CreateCollection"] = "CreateCollection"; | ||
/** Grants permission to read Collection */ | ||
Permission["ReadCollection"] = "ReadCollection"; | ||
/** Grants permission to update Collection */ | ||
Permission["UpdateCollection"] = "UpdateCollection"; | ||
/** Grants permission to delete Collection */ | ||
Permission["DeleteCollection"] = "DeleteCollection"; | ||
/** Grants permission to create Country */ | ||
Permission["CreateCountry"] = "CreateCountry"; | ||
/** Grants permission to read Country */ | ||
Permission["ReadCountry"] = "ReadCountry"; | ||
/** Grants permission to update Country */ | ||
Permission["UpdateCountry"] = "UpdateCountry"; | ||
/** Grants permission to delete Country */ | ||
Permission["DeleteCountry"] = "DeleteCountry"; | ||
/** Grants permission to create Customer */ | ||
Permission["CreateCustomer"] = "CreateCustomer"; | ||
/** Grants permission to read Customer */ | ||
Permission["ReadCustomer"] = "ReadCustomer"; | ||
/** Grants permission to update Customer */ | ||
Permission["UpdateCustomer"] = "UpdateCustomer"; | ||
/** Grants permission to delete Customer */ | ||
Permission["DeleteCustomer"] = "DeleteCustomer"; | ||
/** Grants permission to create CustomerGroup */ | ||
Permission["CreateCustomerGroup"] = "CreateCustomerGroup"; | ||
/** Grants permission to read CustomerGroup */ | ||
Permission["ReadCustomerGroup"] = "ReadCustomerGroup"; | ||
/** Grants permission to update CustomerGroup */ | ||
Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup"; | ||
/** Grants permission to delete CustomerGroup */ | ||
Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup"; | ||
/** Grants permission to create Facet */ | ||
Permission["CreateFacet"] = "CreateFacet"; | ||
/** Grants permission to read Facet */ | ||
Permission["ReadFacet"] = "ReadFacet"; | ||
/** Grants permission to update Facet */ | ||
Permission["UpdateFacet"] = "UpdateFacet"; | ||
/** Grants permission to delete Facet */ | ||
Permission["DeleteFacet"] = "DeleteFacet"; | ||
/** Grants permission to create Order */ | ||
Permission["CreateOrder"] = "CreateOrder"; | ||
/** Grants permission to read Order */ | ||
Permission["ReadOrder"] = "ReadOrder"; | ||
/** Grants permission to update Order */ | ||
Permission["UpdateOrder"] = "UpdateOrder"; | ||
/** Grants permission to delete Order */ | ||
Permission["DeleteOrder"] = "DeleteOrder"; | ||
/** Grants permission to create PaymentMethod */ | ||
Permission["CreatePaymentMethod"] = "CreatePaymentMethod"; | ||
/** Grants permission to read PaymentMethod */ | ||
Permission["ReadPaymentMethod"] = "ReadPaymentMethod"; | ||
/** Grants permission to update PaymentMethod */ | ||
Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod"; | ||
/** Grants permission to delete PaymentMethod */ | ||
Permission["DeletePaymentMethod"] = "DeletePaymentMethod"; | ||
/** Grants permission to create Product */ | ||
Permission["CreateProduct"] = "CreateProduct"; | ||
/** Grants permission to read Product */ | ||
Permission["ReadProduct"] = "ReadProduct"; | ||
/** Grants permission to update Product */ | ||
Permission["UpdateProduct"] = "UpdateProduct"; | ||
/** Grants permission to delete Product */ | ||
Permission["DeleteProduct"] = "DeleteProduct"; | ||
/** Grants permission to create Promotion */ | ||
Permission["CreatePromotion"] = "CreatePromotion"; | ||
/** Grants permission to read Promotion */ | ||
Permission["ReadPromotion"] = "ReadPromotion"; | ||
/** Grants permission to update Promotion */ | ||
Permission["UpdatePromotion"] = "UpdatePromotion"; | ||
/** Grants permission to delete Promotion */ | ||
Permission["DeletePromotion"] = "DeletePromotion"; | ||
/** Grants permission to create ShippingMethod */ | ||
Permission["CreateShippingMethod"] = "CreateShippingMethod"; | ||
/** Grants permission to read ShippingMethod */ | ||
Permission["ReadShippingMethod"] = "ReadShippingMethod"; | ||
/** Grants permission to update ShippingMethod */ | ||
Permission["UpdateShippingMethod"] = "UpdateShippingMethod"; | ||
/** Grants permission to delete ShippingMethod */ | ||
Permission["DeleteShippingMethod"] = "DeleteShippingMethod"; | ||
/** Grants permission to create Tag */ | ||
Permission["CreateTag"] = "CreateTag"; | ||
/** Grants permission to read Tag */ | ||
Permission["ReadTag"] = "ReadTag"; | ||
/** Grants permission to update Tag */ | ||
Permission["UpdateTag"] = "UpdateTag"; | ||
/** Grants permission to delete Tag */ | ||
Permission["DeleteTag"] = "DeleteTag"; | ||
/** Grants permission to create TaxCategory */ | ||
Permission["CreateTaxCategory"] = "CreateTaxCategory"; | ||
/** Grants permission to read TaxCategory */ | ||
Permission["ReadTaxCategory"] = "ReadTaxCategory"; | ||
/** Grants permission to update TaxCategory */ | ||
Permission["UpdateTaxCategory"] = "UpdateTaxCategory"; | ||
/** Grants permission to delete TaxCategory */ | ||
Permission["DeleteTaxCategory"] = "DeleteTaxCategory"; | ||
/** Grants permission to create TaxRate */ | ||
Permission["CreateTaxRate"] = "CreateTaxRate"; | ||
/** Grants permission to read TaxRate */ | ||
Permission["ReadTaxRate"] = "ReadTaxRate"; | ||
/** Grants permission to update TaxRate */ | ||
Permission["UpdateTaxRate"] = "UpdateTaxRate"; | ||
/** Grants permission to delete TaxRate */ | ||
Permission["DeleteTaxRate"] = "DeleteTaxRate"; | ||
/** Grants permission to create System */ | ||
Permission["CreateSystem"] = "CreateSystem"; | ||
/** Grants permission to read System */ | ||
Permission["ReadSystem"] = "ReadSystem"; | ||
/** Grants permission to update System */ | ||
Permission["UpdateSystem"] = "UpdateSystem"; | ||
/** Grants permission to delete System */ | ||
Permission["DeleteSystem"] = "DeleteSystem"; | ||
/** Grants permission to create Zone */ | ||
Permission["CreateZone"] = "CreateZone"; | ||
/** Grants permission to read Zone */ | ||
Permission["ReadZone"] = "ReadZone"; | ||
/** Grants permission to update Zone */ | ||
Permission["UpdateZone"] = "UpdateZone"; | ||
/** Grants permission to delete Zone */ | ||
Permission["DeleteZone"] = "DeleteZone"; | ||
})(Permission = exports.Permission || (exports.Permission = {})); | ||
var SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["ASC"] = "ASC"; | ||
SortOrder["DESC"] = "DESC"; | ||
})(SortOrder = exports.SortOrder || (exports.SortOrder = {})); | ||
var ErrorCode; | ||
(function (ErrorCode) { | ||
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; | ||
ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR"; | ||
ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR"; | ||
ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR"; | ||
ErrorCode["EMAIL_ADDRESS_CONFLICT_ERROR"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; | ||
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR"; | ||
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR"; | ||
ErrorCode["ORDER_MODIFICATION_ERROR"] = "ORDER_MODIFICATION_ERROR"; | ||
ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR"; | ||
ErrorCode["ORDER_PAYMENT_STATE_ERROR"] = "ORDER_PAYMENT_STATE_ERROR"; | ||
ErrorCode["INELIGIBLE_PAYMENT_METHOD_ERROR"] = "INELIGIBLE_PAYMENT_METHOD_ERROR"; | ||
ErrorCode["PAYMENT_FAILED_ERROR"] = "PAYMENT_FAILED_ERROR"; | ||
ErrorCode["PAYMENT_DECLINED_ERROR"] = "PAYMENT_DECLINED_ERROR"; | ||
ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR"; | ||
ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR"; | ||
ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR"; | ||
ErrorCode["ALREADY_LOGGED_IN_ERROR"] = "ALREADY_LOGGED_IN_ERROR"; | ||
ErrorCode["MISSING_PASSWORD_ERROR"] = "MISSING_PASSWORD_ERROR"; | ||
ErrorCode["PASSWORD_ALREADY_SET_ERROR"] = "PASSWORD_ALREADY_SET_ERROR"; | ||
ErrorCode["VERIFICATION_TOKEN_INVALID_ERROR"] = "VERIFICATION_TOKEN_INVALID_ERROR"; | ||
ErrorCode["VERIFICATION_TOKEN_EXPIRED_ERROR"] = "VERIFICATION_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"; | ||
ErrorCode["IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["PASSWORD_RESET_TOKEN_INVALID_ERROR"] = "PASSWORD_RESET_TOKEN_INVALID_ERROR"; | ||
ErrorCode["PASSWORD_RESET_TOKEN_EXPIRED_ERROR"] = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["NOT_VERIFIED_ERROR"] = "NOT_VERIFIED_ERROR"; | ||
ErrorCode["NO_ACTIVE_ORDER_ERROR"] = "NO_ACTIVE_ORDER_ERROR"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
var LogicalOperator; | ||
(function (LogicalOperator) { | ||
LogicalOperator["AND"] = "AND"; | ||
LogicalOperator["OR"] = "OR"; | ||
})(LogicalOperator = exports.LogicalOperator || (exports.LogicalOperator = {})); | ||
/** | ||
* @description | ||
* ISO 4217 currency code | ||
@@ -573,2 +339,46 @@ * | ||
})(CurrencyCode = exports.CurrencyCode || (exports.CurrencyCode = {})); | ||
var DeletionResult; | ||
(function (DeletionResult) { | ||
/** The entity was successfully deleted */ | ||
DeletionResult["DELETED"] = "DELETED"; | ||
/** Deletion did not take place, reason given in message */ | ||
DeletionResult["NOT_DELETED"] = "NOT_DELETED"; | ||
})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {})); | ||
var ErrorCode; | ||
(function (ErrorCode) { | ||
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; | ||
ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR"; | ||
ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR"; | ||
ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR"; | ||
ErrorCode["EMAIL_ADDRESS_CONFLICT_ERROR"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; | ||
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR"; | ||
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR"; | ||
ErrorCode["ORDER_MODIFICATION_ERROR"] = "ORDER_MODIFICATION_ERROR"; | ||
ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR"; | ||
ErrorCode["ORDER_PAYMENT_STATE_ERROR"] = "ORDER_PAYMENT_STATE_ERROR"; | ||
ErrorCode["INELIGIBLE_PAYMENT_METHOD_ERROR"] = "INELIGIBLE_PAYMENT_METHOD_ERROR"; | ||
ErrorCode["PAYMENT_FAILED_ERROR"] = "PAYMENT_FAILED_ERROR"; | ||
ErrorCode["PAYMENT_DECLINED_ERROR"] = "PAYMENT_DECLINED_ERROR"; | ||
ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR"; | ||
ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR"; | ||
ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR"; | ||
ErrorCode["ALREADY_LOGGED_IN_ERROR"] = "ALREADY_LOGGED_IN_ERROR"; | ||
ErrorCode["MISSING_PASSWORD_ERROR"] = "MISSING_PASSWORD_ERROR"; | ||
ErrorCode["PASSWORD_ALREADY_SET_ERROR"] = "PASSWORD_ALREADY_SET_ERROR"; | ||
ErrorCode["VERIFICATION_TOKEN_INVALID_ERROR"] = "VERIFICATION_TOKEN_INVALID_ERROR"; | ||
ErrorCode["VERIFICATION_TOKEN_EXPIRED_ERROR"] = "VERIFICATION_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"; | ||
ErrorCode["IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["PASSWORD_RESET_TOKEN_INVALID_ERROR"] = "PASSWORD_RESET_TOKEN_INVALID_ERROR"; | ||
ErrorCode["PASSWORD_RESET_TOKEN_EXPIRED_ERROR"] = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["NOT_VERIFIED_ERROR"] = "NOT_VERIFIED_ERROR"; | ||
ErrorCode["NO_ACTIVE_ORDER_ERROR"] = "NO_ACTIVE_ORDER_ERROR"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
var GlobalFlag; | ||
(function (GlobalFlag) { | ||
GlobalFlag["TRUE"] = "TRUE"; | ||
GlobalFlag["FALSE"] = "FALSE"; | ||
GlobalFlag["INHERIT"] = "INHERIT"; | ||
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {})); | ||
var HistoryEntryType; | ||
@@ -927,2 +737,192 @@ (function (HistoryEntryType) { | ||
})(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {})); | ||
var LogicalOperator; | ||
(function (LogicalOperator) { | ||
LogicalOperator["AND"] = "AND"; | ||
LogicalOperator["OR"] = "OR"; | ||
})(LogicalOperator = exports.LogicalOperator || (exports.LogicalOperator = {})); | ||
/** | ||
* @description | ||
* Permissions for administrators and customers. Used to control access to | ||
* GraphQL resolvers via the {@link Allow} decorator. | ||
* | ||
* @docsCategory common | ||
*/ | ||
var Permission; | ||
(function (Permission) { | ||
/** Authenticated means simply that the user is logged in */ | ||
Permission["Authenticated"] = "Authenticated"; | ||
/** SuperAdmin has unrestricted access to all operations */ | ||
Permission["SuperAdmin"] = "SuperAdmin"; | ||
/** Owner means the user owns this entity, e.g. a Customer's own Order */ | ||
Permission["Owner"] = "Owner"; | ||
/** Public means any unauthenticated user may perform the operation */ | ||
Permission["Public"] = "Public"; | ||
/** Grants permission to update GlobalSettings */ | ||
Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings"; | ||
/** Grants permission to create Products, Facets, Assets, Collections */ | ||
Permission["CreateCatalog"] = "CreateCatalog"; | ||
/** Grants permission to read Products, Facets, Assets, Collections */ | ||
Permission["ReadCatalog"] = "ReadCatalog"; | ||
/** Grants permission to update Products, Facets, Assets, Collections */ | ||
Permission["UpdateCatalog"] = "UpdateCatalog"; | ||
/** Grants permission to delete Products, Facets, Assets, Collections */ | ||
Permission["DeleteCatalog"] = "DeleteCatalog"; | ||
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["CreateSettings"] = "CreateSettings"; | ||
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["ReadSettings"] = "ReadSettings"; | ||
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["UpdateSettings"] = "UpdateSettings"; | ||
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["DeleteSettings"] = "DeleteSettings"; | ||
/** Grants permission to create Administrator */ | ||
Permission["CreateAdministrator"] = "CreateAdministrator"; | ||
/** Grants permission to read Administrator */ | ||
Permission["ReadAdministrator"] = "ReadAdministrator"; | ||
/** Grants permission to update Administrator */ | ||
Permission["UpdateAdministrator"] = "UpdateAdministrator"; | ||
/** Grants permission to delete Administrator */ | ||
Permission["DeleteAdministrator"] = "DeleteAdministrator"; | ||
/** Grants permission to create Asset */ | ||
Permission["CreateAsset"] = "CreateAsset"; | ||
/** Grants permission to read Asset */ | ||
Permission["ReadAsset"] = "ReadAsset"; | ||
/** Grants permission to update Asset */ | ||
Permission["UpdateAsset"] = "UpdateAsset"; | ||
/** Grants permission to delete Asset */ | ||
Permission["DeleteAsset"] = "DeleteAsset"; | ||
/** Grants permission to create Channel */ | ||
Permission["CreateChannel"] = "CreateChannel"; | ||
/** Grants permission to read Channel */ | ||
Permission["ReadChannel"] = "ReadChannel"; | ||
/** Grants permission to update Channel */ | ||
Permission["UpdateChannel"] = "UpdateChannel"; | ||
/** Grants permission to delete Channel */ | ||
Permission["DeleteChannel"] = "DeleteChannel"; | ||
/** Grants permission to create Collection */ | ||
Permission["CreateCollection"] = "CreateCollection"; | ||
/** Grants permission to read Collection */ | ||
Permission["ReadCollection"] = "ReadCollection"; | ||
/** Grants permission to update Collection */ | ||
Permission["UpdateCollection"] = "UpdateCollection"; | ||
/** Grants permission to delete Collection */ | ||
Permission["DeleteCollection"] = "DeleteCollection"; | ||
/** Grants permission to create Country */ | ||
Permission["CreateCountry"] = "CreateCountry"; | ||
/** Grants permission to read Country */ | ||
Permission["ReadCountry"] = "ReadCountry"; | ||
/** Grants permission to update Country */ | ||
Permission["UpdateCountry"] = "UpdateCountry"; | ||
/** Grants permission to delete Country */ | ||
Permission["DeleteCountry"] = "DeleteCountry"; | ||
/** Grants permission to create Customer */ | ||
Permission["CreateCustomer"] = "CreateCustomer"; | ||
/** Grants permission to read Customer */ | ||
Permission["ReadCustomer"] = "ReadCustomer"; | ||
/** Grants permission to update Customer */ | ||
Permission["UpdateCustomer"] = "UpdateCustomer"; | ||
/** Grants permission to delete Customer */ | ||
Permission["DeleteCustomer"] = "DeleteCustomer"; | ||
/** Grants permission to create CustomerGroup */ | ||
Permission["CreateCustomerGroup"] = "CreateCustomerGroup"; | ||
/** Grants permission to read CustomerGroup */ | ||
Permission["ReadCustomerGroup"] = "ReadCustomerGroup"; | ||
/** Grants permission to update CustomerGroup */ | ||
Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup"; | ||
/** Grants permission to delete CustomerGroup */ | ||
Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup"; | ||
/** Grants permission to create Facet */ | ||
Permission["CreateFacet"] = "CreateFacet"; | ||
/** Grants permission to read Facet */ | ||
Permission["ReadFacet"] = "ReadFacet"; | ||
/** Grants permission to update Facet */ | ||
Permission["UpdateFacet"] = "UpdateFacet"; | ||
/** Grants permission to delete Facet */ | ||
Permission["DeleteFacet"] = "DeleteFacet"; | ||
/** Grants permission to create Order */ | ||
Permission["CreateOrder"] = "CreateOrder"; | ||
/** Grants permission to read Order */ | ||
Permission["ReadOrder"] = "ReadOrder"; | ||
/** Grants permission to update Order */ | ||
Permission["UpdateOrder"] = "UpdateOrder"; | ||
/** Grants permission to delete Order */ | ||
Permission["DeleteOrder"] = "DeleteOrder"; | ||
/** Grants permission to create PaymentMethod */ | ||
Permission["CreatePaymentMethod"] = "CreatePaymentMethod"; | ||
/** Grants permission to read PaymentMethod */ | ||
Permission["ReadPaymentMethod"] = "ReadPaymentMethod"; | ||
/** Grants permission to update PaymentMethod */ | ||
Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod"; | ||
/** Grants permission to delete PaymentMethod */ | ||
Permission["DeletePaymentMethod"] = "DeletePaymentMethod"; | ||
/** Grants permission to create Product */ | ||
Permission["CreateProduct"] = "CreateProduct"; | ||
/** Grants permission to read Product */ | ||
Permission["ReadProduct"] = "ReadProduct"; | ||
/** Grants permission to update Product */ | ||
Permission["UpdateProduct"] = "UpdateProduct"; | ||
/** Grants permission to delete Product */ | ||
Permission["DeleteProduct"] = "DeleteProduct"; | ||
/** Grants permission to create Promotion */ | ||
Permission["CreatePromotion"] = "CreatePromotion"; | ||
/** Grants permission to read Promotion */ | ||
Permission["ReadPromotion"] = "ReadPromotion"; | ||
/** Grants permission to update Promotion */ | ||
Permission["UpdatePromotion"] = "UpdatePromotion"; | ||
/** Grants permission to delete Promotion */ | ||
Permission["DeletePromotion"] = "DeletePromotion"; | ||
/** Grants permission to create ShippingMethod */ | ||
Permission["CreateShippingMethod"] = "CreateShippingMethod"; | ||
/** Grants permission to read ShippingMethod */ | ||
Permission["ReadShippingMethod"] = "ReadShippingMethod"; | ||
/** Grants permission to update ShippingMethod */ | ||
Permission["UpdateShippingMethod"] = "UpdateShippingMethod"; | ||
/** Grants permission to delete ShippingMethod */ | ||
Permission["DeleteShippingMethod"] = "DeleteShippingMethod"; | ||
/** Grants permission to create Tag */ | ||
Permission["CreateTag"] = "CreateTag"; | ||
/** Grants permission to read Tag */ | ||
Permission["ReadTag"] = "ReadTag"; | ||
/** Grants permission to update Tag */ | ||
Permission["UpdateTag"] = "UpdateTag"; | ||
/** Grants permission to delete Tag */ | ||
Permission["DeleteTag"] = "DeleteTag"; | ||
/** Grants permission to create TaxCategory */ | ||
Permission["CreateTaxCategory"] = "CreateTaxCategory"; | ||
/** Grants permission to read TaxCategory */ | ||
Permission["ReadTaxCategory"] = "ReadTaxCategory"; | ||
/** Grants permission to update TaxCategory */ | ||
Permission["UpdateTaxCategory"] = "UpdateTaxCategory"; | ||
/** Grants permission to delete TaxCategory */ | ||
Permission["DeleteTaxCategory"] = "DeleteTaxCategory"; | ||
/** Grants permission to create TaxRate */ | ||
Permission["CreateTaxRate"] = "CreateTaxRate"; | ||
/** Grants permission to read TaxRate */ | ||
Permission["ReadTaxRate"] = "ReadTaxRate"; | ||
/** Grants permission to update TaxRate */ | ||
Permission["UpdateTaxRate"] = "UpdateTaxRate"; | ||
/** Grants permission to delete TaxRate */ | ||
Permission["DeleteTaxRate"] = "DeleteTaxRate"; | ||
/** Grants permission to create System */ | ||
Permission["CreateSystem"] = "CreateSystem"; | ||
/** Grants permission to read System */ | ||
Permission["ReadSystem"] = "ReadSystem"; | ||
/** Grants permission to update System */ | ||
Permission["UpdateSystem"] = "UpdateSystem"; | ||
/** Grants permission to delete System */ | ||
Permission["DeleteSystem"] = "DeleteSystem"; | ||
/** Grants permission to create Zone */ | ||
Permission["CreateZone"] = "CreateZone"; | ||
/** Grants permission to read Zone */ | ||
Permission["ReadZone"] = "ReadZone"; | ||
/** Grants permission to update Zone */ | ||
Permission["UpdateZone"] = "UpdateZone"; | ||
/** Grants permission to delete Zone */ | ||
Permission["DeleteZone"] = "DeleteZone"; | ||
})(Permission = exports.Permission || (exports.Permission = {})); | ||
var SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["ASC"] = "ASC"; | ||
SortOrder["DESC"] = "DESC"; | ||
})(SortOrder = exports.SortOrder || (exports.SortOrder = {})); | ||
//# sourceMappingURL=generated-shop-types.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LanguageCode = exports.HistoryEntryType = exports.CurrencyCode = exports.LogicalOperator = exports.ErrorCode = exports.SortOrder = exports.Permission = exports.DeletionResult = exports.AdjustmentType = exports.GlobalFlag = exports.AssetType = exports.StockMovementType = exports.JobState = void 0; | ||
/** | ||
* @description | ||
* The state of a Job in the JobQueue | ||
* | ||
* @docsCategory common | ||
*/ | ||
var JobState; | ||
(function (JobState) { | ||
JobState["PENDING"] = "PENDING"; | ||
JobState["RUNNING"] = "RUNNING"; | ||
JobState["COMPLETED"] = "COMPLETED"; | ||
JobState["RETRYING"] = "RETRYING"; | ||
JobState["FAILED"] = "FAILED"; | ||
JobState["CANCELLED"] = "CANCELLED"; | ||
})(JobState = exports.JobState || (exports.JobState = {})); | ||
var StockMovementType; | ||
(function (StockMovementType) { | ||
StockMovementType["ADJUSTMENT"] = "ADJUSTMENT"; | ||
StockMovementType["ALLOCATION"] = "ALLOCATION"; | ||
StockMovementType["RELEASE"] = "RELEASE"; | ||
StockMovementType["SALE"] = "SALE"; | ||
StockMovementType["CANCELLATION"] = "CANCELLATION"; | ||
StockMovementType["RETURN"] = "RETURN"; | ||
})(StockMovementType = exports.StockMovementType || (exports.StockMovementType = {})); | ||
exports.StockMovementType = exports.SortOrder = exports.Permission = exports.LogicalOperator = exports.LanguageCode = exports.JobState = exports.HistoryEntryType = exports.GlobalFlag = exports.ErrorCode = exports.DeletionResult = exports.CurrencyCode = exports.AssetType = exports.AdjustmentType = void 0; | ||
var AdjustmentType; | ||
(function (AdjustmentType) { | ||
AdjustmentType["PROMOTION"] = "PROMOTION"; | ||
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION"; | ||
})(AdjustmentType = exports.AdjustmentType || (exports.AdjustmentType = {})); | ||
var AssetType; | ||
@@ -34,249 +15,4 @@ (function (AssetType) { | ||
})(AssetType = exports.AssetType || (exports.AssetType = {})); | ||
var GlobalFlag; | ||
(function (GlobalFlag) { | ||
GlobalFlag["TRUE"] = "TRUE"; | ||
GlobalFlag["FALSE"] = "FALSE"; | ||
GlobalFlag["INHERIT"] = "INHERIT"; | ||
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {})); | ||
var AdjustmentType; | ||
(function (AdjustmentType) { | ||
AdjustmentType["PROMOTION"] = "PROMOTION"; | ||
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION"; | ||
})(AdjustmentType = exports.AdjustmentType || (exports.AdjustmentType = {})); | ||
var DeletionResult; | ||
(function (DeletionResult) { | ||
/** The entity was successfully deleted */ | ||
DeletionResult["DELETED"] = "DELETED"; | ||
/** Deletion did not take place, reason given in message */ | ||
DeletionResult["NOT_DELETED"] = "NOT_DELETED"; | ||
})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {})); | ||
/** | ||
* @description | ||
* Permissions for administrators and customers. Used to control access to | ||
* GraphQL resolvers via the {@link Allow} decorator. | ||
* | ||
* @docsCategory common | ||
*/ | ||
var Permission; | ||
(function (Permission) { | ||
/** Authenticated means simply that the user is logged in */ | ||
Permission["Authenticated"] = "Authenticated"; | ||
/** SuperAdmin has unrestricted access to all operations */ | ||
Permission["SuperAdmin"] = "SuperAdmin"; | ||
/** Owner means the user owns this entity, e.g. a Customer's own Order */ | ||
Permission["Owner"] = "Owner"; | ||
/** Public means any unauthenticated user may perform the operation */ | ||
Permission["Public"] = "Public"; | ||
/** Grants permission to update GlobalSettings */ | ||
Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings"; | ||
/** Grants permission to create Products, Facets, Assets, Collections */ | ||
Permission["CreateCatalog"] = "CreateCatalog"; | ||
/** Grants permission to read Products, Facets, Assets, Collections */ | ||
Permission["ReadCatalog"] = "ReadCatalog"; | ||
/** Grants permission to update Products, Facets, Assets, Collections */ | ||
Permission["UpdateCatalog"] = "UpdateCatalog"; | ||
/** Grants permission to delete Products, Facets, Assets, Collections */ | ||
Permission["DeleteCatalog"] = "DeleteCatalog"; | ||
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["CreateSettings"] = "CreateSettings"; | ||
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["ReadSettings"] = "ReadSettings"; | ||
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["UpdateSettings"] = "UpdateSettings"; | ||
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["DeleteSettings"] = "DeleteSettings"; | ||
/** Grants permission to create Administrator */ | ||
Permission["CreateAdministrator"] = "CreateAdministrator"; | ||
/** Grants permission to read Administrator */ | ||
Permission["ReadAdministrator"] = "ReadAdministrator"; | ||
/** Grants permission to update Administrator */ | ||
Permission["UpdateAdministrator"] = "UpdateAdministrator"; | ||
/** Grants permission to delete Administrator */ | ||
Permission["DeleteAdministrator"] = "DeleteAdministrator"; | ||
/** Grants permission to create Asset */ | ||
Permission["CreateAsset"] = "CreateAsset"; | ||
/** Grants permission to read Asset */ | ||
Permission["ReadAsset"] = "ReadAsset"; | ||
/** Grants permission to update Asset */ | ||
Permission["UpdateAsset"] = "UpdateAsset"; | ||
/** Grants permission to delete Asset */ | ||
Permission["DeleteAsset"] = "DeleteAsset"; | ||
/** Grants permission to create Channel */ | ||
Permission["CreateChannel"] = "CreateChannel"; | ||
/** Grants permission to read Channel */ | ||
Permission["ReadChannel"] = "ReadChannel"; | ||
/** Grants permission to update Channel */ | ||
Permission["UpdateChannel"] = "UpdateChannel"; | ||
/** Grants permission to delete Channel */ | ||
Permission["DeleteChannel"] = "DeleteChannel"; | ||
/** Grants permission to create Collection */ | ||
Permission["CreateCollection"] = "CreateCollection"; | ||
/** Grants permission to read Collection */ | ||
Permission["ReadCollection"] = "ReadCollection"; | ||
/** Grants permission to update Collection */ | ||
Permission["UpdateCollection"] = "UpdateCollection"; | ||
/** Grants permission to delete Collection */ | ||
Permission["DeleteCollection"] = "DeleteCollection"; | ||
/** Grants permission to create Country */ | ||
Permission["CreateCountry"] = "CreateCountry"; | ||
/** Grants permission to read Country */ | ||
Permission["ReadCountry"] = "ReadCountry"; | ||
/** Grants permission to update Country */ | ||
Permission["UpdateCountry"] = "UpdateCountry"; | ||
/** Grants permission to delete Country */ | ||
Permission["DeleteCountry"] = "DeleteCountry"; | ||
/** Grants permission to create Customer */ | ||
Permission["CreateCustomer"] = "CreateCustomer"; | ||
/** Grants permission to read Customer */ | ||
Permission["ReadCustomer"] = "ReadCustomer"; | ||
/** Grants permission to update Customer */ | ||
Permission["UpdateCustomer"] = "UpdateCustomer"; | ||
/** Grants permission to delete Customer */ | ||
Permission["DeleteCustomer"] = "DeleteCustomer"; | ||
/** Grants permission to create CustomerGroup */ | ||
Permission["CreateCustomerGroup"] = "CreateCustomerGroup"; | ||
/** Grants permission to read CustomerGroup */ | ||
Permission["ReadCustomerGroup"] = "ReadCustomerGroup"; | ||
/** Grants permission to update CustomerGroup */ | ||
Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup"; | ||
/** Grants permission to delete CustomerGroup */ | ||
Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup"; | ||
/** Grants permission to create Facet */ | ||
Permission["CreateFacet"] = "CreateFacet"; | ||
/** Grants permission to read Facet */ | ||
Permission["ReadFacet"] = "ReadFacet"; | ||
/** Grants permission to update Facet */ | ||
Permission["UpdateFacet"] = "UpdateFacet"; | ||
/** Grants permission to delete Facet */ | ||
Permission["DeleteFacet"] = "DeleteFacet"; | ||
/** Grants permission to create Order */ | ||
Permission["CreateOrder"] = "CreateOrder"; | ||
/** Grants permission to read Order */ | ||
Permission["ReadOrder"] = "ReadOrder"; | ||
/** Grants permission to update Order */ | ||
Permission["UpdateOrder"] = "UpdateOrder"; | ||
/** Grants permission to delete Order */ | ||
Permission["DeleteOrder"] = "DeleteOrder"; | ||
/** Grants permission to create PaymentMethod */ | ||
Permission["CreatePaymentMethod"] = "CreatePaymentMethod"; | ||
/** Grants permission to read PaymentMethod */ | ||
Permission["ReadPaymentMethod"] = "ReadPaymentMethod"; | ||
/** Grants permission to update PaymentMethod */ | ||
Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod"; | ||
/** Grants permission to delete PaymentMethod */ | ||
Permission["DeletePaymentMethod"] = "DeletePaymentMethod"; | ||
/** Grants permission to create Product */ | ||
Permission["CreateProduct"] = "CreateProduct"; | ||
/** Grants permission to read Product */ | ||
Permission["ReadProduct"] = "ReadProduct"; | ||
/** Grants permission to update Product */ | ||
Permission["UpdateProduct"] = "UpdateProduct"; | ||
/** Grants permission to delete Product */ | ||
Permission["DeleteProduct"] = "DeleteProduct"; | ||
/** Grants permission to create Promotion */ | ||
Permission["CreatePromotion"] = "CreatePromotion"; | ||
/** Grants permission to read Promotion */ | ||
Permission["ReadPromotion"] = "ReadPromotion"; | ||
/** Grants permission to update Promotion */ | ||
Permission["UpdatePromotion"] = "UpdatePromotion"; | ||
/** Grants permission to delete Promotion */ | ||
Permission["DeletePromotion"] = "DeletePromotion"; | ||
/** Grants permission to create ShippingMethod */ | ||
Permission["CreateShippingMethod"] = "CreateShippingMethod"; | ||
/** Grants permission to read ShippingMethod */ | ||
Permission["ReadShippingMethod"] = "ReadShippingMethod"; | ||
/** Grants permission to update ShippingMethod */ | ||
Permission["UpdateShippingMethod"] = "UpdateShippingMethod"; | ||
/** Grants permission to delete ShippingMethod */ | ||
Permission["DeleteShippingMethod"] = "DeleteShippingMethod"; | ||
/** Grants permission to create Tag */ | ||
Permission["CreateTag"] = "CreateTag"; | ||
/** Grants permission to read Tag */ | ||
Permission["ReadTag"] = "ReadTag"; | ||
/** Grants permission to update Tag */ | ||
Permission["UpdateTag"] = "UpdateTag"; | ||
/** Grants permission to delete Tag */ | ||
Permission["DeleteTag"] = "DeleteTag"; | ||
/** Grants permission to create TaxCategory */ | ||
Permission["CreateTaxCategory"] = "CreateTaxCategory"; | ||
/** Grants permission to read TaxCategory */ | ||
Permission["ReadTaxCategory"] = "ReadTaxCategory"; | ||
/** Grants permission to update TaxCategory */ | ||
Permission["UpdateTaxCategory"] = "UpdateTaxCategory"; | ||
/** Grants permission to delete TaxCategory */ | ||
Permission["DeleteTaxCategory"] = "DeleteTaxCategory"; | ||
/** Grants permission to create TaxRate */ | ||
Permission["CreateTaxRate"] = "CreateTaxRate"; | ||
/** Grants permission to read TaxRate */ | ||
Permission["ReadTaxRate"] = "ReadTaxRate"; | ||
/** Grants permission to update TaxRate */ | ||
Permission["UpdateTaxRate"] = "UpdateTaxRate"; | ||
/** Grants permission to delete TaxRate */ | ||
Permission["DeleteTaxRate"] = "DeleteTaxRate"; | ||
/** Grants permission to create System */ | ||
Permission["CreateSystem"] = "CreateSystem"; | ||
/** Grants permission to read System */ | ||
Permission["ReadSystem"] = "ReadSystem"; | ||
/** Grants permission to update System */ | ||
Permission["UpdateSystem"] = "UpdateSystem"; | ||
/** Grants permission to delete System */ | ||
Permission["DeleteSystem"] = "DeleteSystem"; | ||
/** Grants permission to create Zone */ | ||
Permission["CreateZone"] = "CreateZone"; | ||
/** Grants permission to read Zone */ | ||
Permission["ReadZone"] = "ReadZone"; | ||
/** Grants permission to update Zone */ | ||
Permission["UpdateZone"] = "UpdateZone"; | ||
/** Grants permission to delete Zone */ | ||
Permission["DeleteZone"] = "DeleteZone"; | ||
})(Permission = exports.Permission || (exports.Permission = {})); | ||
var SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["ASC"] = "ASC"; | ||
SortOrder["DESC"] = "DESC"; | ||
})(SortOrder = exports.SortOrder || (exports.SortOrder = {})); | ||
var ErrorCode; | ||
(function (ErrorCode) { | ||
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; | ||
ErrorCode["MIME_TYPE_ERROR"] = "MIME_TYPE_ERROR"; | ||
ErrorCode["LANGUAGE_NOT_AVAILABLE_ERROR"] = "LANGUAGE_NOT_AVAILABLE_ERROR"; | ||
ErrorCode["CHANNEL_DEFAULT_LANGUAGE_ERROR"] = "CHANNEL_DEFAULT_LANGUAGE_ERROR"; | ||
ErrorCode["SETTLE_PAYMENT_ERROR"] = "SETTLE_PAYMENT_ERROR"; | ||
ErrorCode["EMPTY_ORDER_LINE_SELECTION_ERROR"] = "EMPTY_ORDER_LINE_SELECTION_ERROR"; | ||
ErrorCode["ITEMS_ALREADY_FULFILLED_ERROR"] = "ITEMS_ALREADY_FULFILLED_ERROR"; | ||
ErrorCode["INVALID_FULFILLMENT_HANDLER_ERROR"] = "INVALID_FULFILLMENT_HANDLER_ERROR"; | ||
ErrorCode["CREATE_FULFILLMENT_ERROR"] = "CREATE_FULFILLMENT_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ON_HAND_ERROR"] = "INSUFFICIENT_STOCK_ON_HAND_ERROR"; | ||
ErrorCode["MULTIPLE_ORDER_ERROR"] = "MULTIPLE_ORDER_ERROR"; | ||
ErrorCode["CANCEL_ACTIVE_ORDER_ERROR"] = "CANCEL_ACTIVE_ORDER_ERROR"; | ||
ErrorCode["PAYMENT_ORDER_MISMATCH_ERROR"] = "PAYMENT_ORDER_MISMATCH_ERROR"; | ||
ErrorCode["REFUND_ORDER_STATE_ERROR"] = "REFUND_ORDER_STATE_ERROR"; | ||
ErrorCode["NOTHING_TO_REFUND_ERROR"] = "NOTHING_TO_REFUND_ERROR"; | ||
ErrorCode["ALREADY_REFUNDED_ERROR"] = "ALREADY_REFUNDED_ERROR"; | ||
ErrorCode["QUANTITY_TOO_GREAT_ERROR"] = "QUANTITY_TOO_GREAT_ERROR"; | ||
ErrorCode["REFUND_STATE_TRANSITION_ERROR"] = "REFUND_STATE_TRANSITION_ERROR"; | ||
ErrorCode["PAYMENT_STATE_TRANSITION_ERROR"] = "PAYMENT_STATE_TRANSITION_ERROR"; | ||
ErrorCode["FULFILLMENT_STATE_TRANSITION_ERROR"] = "FULFILLMENT_STATE_TRANSITION_ERROR"; | ||
ErrorCode["ORDER_MODIFICATION_STATE_ERROR"] = "ORDER_MODIFICATION_STATE_ERROR"; | ||
ErrorCode["NO_CHANGES_SPECIFIED_ERROR"] = "NO_CHANGES_SPECIFIED_ERROR"; | ||
ErrorCode["PAYMENT_METHOD_MISSING_ERROR"] = "PAYMENT_METHOD_MISSING_ERROR"; | ||
ErrorCode["REFUND_PAYMENT_ID_MISSING_ERROR"] = "REFUND_PAYMENT_ID_MISSING_ERROR"; | ||
ErrorCode["MANUAL_PAYMENT_STATE_ERROR"] = "MANUAL_PAYMENT_STATE_ERROR"; | ||
ErrorCode["PRODUCT_OPTION_IN_USE_ERROR"] = "PRODUCT_OPTION_IN_USE_ERROR"; | ||
ErrorCode["MISSING_CONDITIONS_ERROR"] = "MISSING_CONDITIONS_ERROR"; | ||
ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR"; | ||
ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR"; | ||
ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR"; | ||
ErrorCode["EMAIL_ADDRESS_CONFLICT_ERROR"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; | ||
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR"; | ||
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
var LogicalOperator; | ||
(function (LogicalOperator) { | ||
LogicalOperator["AND"] = "AND"; | ||
LogicalOperator["OR"] = "OR"; | ||
})(LogicalOperator = exports.LogicalOperator || (exports.LogicalOperator = {})); | ||
/** | ||
* @description | ||
* ISO 4217 currency code | ||
@@ -603,2 +339,52 @@ * | ||
})(CurrencyCode = exports.CurrencyCode || (exports.CurrencyCode = {})); | ||
var DeletionResult; | ||
(function (DeletionResult) { | ||
/** The entity was successfully deleted */ | ||
DeletionResult["DELETED"] = "DELETED"; | ||
/** Deletion did not take place, reason given in message */ | ||
DeletionResult["NOT_DELETED"] = "NOT_DELETED"; | ||
})(DeletionResult = exports.DeletionResult || (exports.DeletionResult = {})); | ||
var ErrorCode; | ||
(function (ErrorCode) { | ||
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; | ||
ErrorCode["MIME_TYPE_ERROR"] = "MIME_TYPE_ERROR"; | ||
ErrorCode["LANGUAGE_NOT_AVAILABLE_ERROR"] = "LANGUAGE_NOT_AVAILABLE_ERROR"; | ||
ErrorCode["CHANNEL_DEFAULT_LANGUAGE_ERROR"] = "CHANNEL_DEFAULT_LANGUAGE_ERROR"; | ||
ErrorCode["SETTLE_PAYMENT_ERROR"] = "SETTLE_PAYMENT_ERROR"; | ||
ErrorCode["EMPTY_ORDER_LINE_SELECTION_ERROR"] = "EMPTY_ORDER_LINE_SELECTION_ERROR"; | ||
ErrorCode["ITEMS_ALREADY_FULFILLED_ERROR"] = "ITEMS_ALREADY_FULFILLED_ERROR"; | ||
ErrorCode["INVALID_FULFILLMENT_HANDLER_ERROR"] = "INVALID_FULFILLMENT_HANDLER_ERROR"; | ||
ErrorCode["CREATE_FULFILLMENT_ERROR"] = "CREATE_FULFILLMENT_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ON_HAND_ERROR"] = "INSUFFICIENT_STOCK_ON_HAND_ERROR"; | ||
ErrorCode["MULTIPLE_ORDER_ERROR"] = "MULTIPLE_ORDER_ERROR"; | ||
ErrorCode["CANCEL_ACTIVE_ORDER_ERROR"] = "CANCEL_ACTIVE_ORDER_ERROR"; | ||
ErrorCode["PAYMENT_ORDER_MISMATCH_ERROR"] = "PAYMENT_ORDER_MISMATCH_ERROR"; | ||
ErrorCode["REFUND_ORDER_STATE_ERROR"] = "REFUND_ORDER_STATE_ERROR"; | ||
ErrorCode["NOTHING_TO_REFUND_ERROR"] = "NOTHING_TO_REFUND_ERROR"; | ||
ErrorCode["ALREADY_REFUNDED_ERROR"] = "ALREADY_REFUNDED_ERROR"; | ||
ErrorCode["QUANTITY_TOO_GREAT_ERROR"] = "QUANTITY_TOO_GREAT_ERROR"; | ||
ErrorCode["REFUND_STATE_TRANSITION_ERROR"] = "REFUND_STATE_TRANSITION_ERROR"; | ||
ErrorCode["PAYMENT_STATE_TRANSITION_ERROR"] = "PAYMENT_STATE_TRANSITION_ERROR"; | ||
ErrorCode["FULFILLMENT_STATE_TRANSITION_ERROR"] = "FULFILLMENT_STATE_TRANSITION_ERROR"; | ||
ErrorCode["ORDER_MODIFICATION_STATE_ERROR"] = "ORDER_MODIFICATION_STATE_ERROR"; | ||
ErrorCode["NO_CHANGES_SPECIFIED_ERROR"] = "NO_CHANGES_SPECIFIED_ERROR"; | ||
ErrorCode["PAYMENT_METHOD_MISSING_ERROR"] = "PAYMENT_METHOD_MISSING_ERROR"; | ||
ErrorCode["REFUND_PAYMENT_ID_MISSING_ERROR"] = "REFUND_PAYMENT_ID_MISSING_ERROR"; | ||
ErrorCode["MANUAL_PAYMENT_STATE_ERROR"] = "MANUAL_PAYMENT_STATE_ERROR"; | ||
ErrorCode["PRODUCT_OPTION_IN_USE_ERROR"] = "PRODUCT_OPTION_IN_USE_ERROR"; | ||
ErrorCode["MISSING_CONDITIONS_ERROR"] = "MISSING_CONDITIONS_ERROR"; | ||
ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR"; | ||
ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR"; | ||
ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR"; | ||
ErrorCode["EMAIL_ADDRESS_CONFLICT_ERROR"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; | ||
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR"; | ||
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR"; | ||
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR"; | ||
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {})); | ||
var GlobalFlag; | ||
(function (GlobalFlag) { | ||
GlobalFlag["TRUE"] = "TRUE"; | ||
GlobalFlag["FALSE"] = "FALSE"; | ||
GlobalFlag["INHERIT"] = "INHERIT"; | ||
})(GlobalFlag = exports.GlobalFlag || (exports.GlobalFlag = {})); | ||
var HistoryEntryType; | ||
@@ -633,2 +419,17 @@ (function (HistoryEntryType) { | ||
* @description | ||
* The state of a Job in the JobQueue | ||
* | ||
* @docsCategory common | ||
*/ | ||
var JobState; | ||
(function (JobState) { | ||
JobState["PENDING"] = "PENDING"; | ||
JobState["RUNNING"] = "RUNNING"; | ||
JobState["COMPLETED"] = "COMPLETED"; | ||
JobState["RETRYING"] = "RETRYING"; | ||
JobState["FAILED"] = "FAILED"; | ||
JobState["CANCELLED"] = "CANCELLED"; | ||
})(JobState = exports.JobState || (exports.JobState = {})); | ||
/** | ||
* @description | ||
* Languages in the form of a ISO 639-1 language code with optional | ||
@@ -958,2 +759,201 @@ * region or script modifier (e.g. de_AT). The selection available is based | ||
})(LanguageCode = exports.LanguageCode || (exports.LanguageCode = {})); | ||
var LogicalOperator; | ||
(function (LogicalOperator) { | ||
LogicalOperator["AND"] = "AND"; | ||
LogicalOperator["OR"] = "OR"; | ||
})(LogicalOperator = exports.LogicalOperator || (exports.LogicalOperator = {})); | ||
/** | ||
* @description | ||
* Permissions for administrators and customers. Used to control access to | ||
* GraphQL resolvers via the {@link Allow} decorator. | ||
* | ||
* @docsCategory common | ||
*/ | ||
var Permission; | ||
(function (Permission) { | ||
/** Authenticated means simply that the user is logged in */ | ||
Permission["Authenticated"] = "Authenticated"; | ||
/** SuperAdmin has unrestricted access to all operations */ | ||
Permission["SuperAdmin"] = "SuperAdmin"; | ||
/** Owner means the user owns this entity, e.g. a Customer's own Order */ | ||
Permission["Owner"] = "Owner"; | ||
/** Public means any unauthenticated user may perform the operation */ | ||
Permission["Public"] = "Public"; | ||
/** Grants permission to update GlobalSettings */ | ||
Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings"; | ||
/** Grants permission to create Products, Facets, Assets, Collections */ | ||
Permission["CreateCatalog"] = "CreateCatalog"; | ||
/** Grants permission to read Products, Facets, Assets, Collections */ | ||
Permission["ReadCatalog"] = "ReadCatalog"; | ||
/** Grants permission to update Products, Facets, Assets, Collections */ | ||
Permission["UpdateCatalog"] = "UpdateCatalog"; | ||
/** Grants permission to delete Products, Facets, Assets, Collections */ | ||
Permission["DeleteCatalog"] = "DeleteCatalog"; | ||
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["CreateSettings"] = "CreateSettings"; | ||
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["ReadSettings"] = "ReadSettings"; | ||
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["UpdateSettings"] = "UpdateSettings"; | ||
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ | ||
Permission["DeleteSettings"] = "DeleteSettings"; | ||
/** Grants permission to create Administrator */ | ||
Permission["CreateAdministrator"] = "CreateAdministrator"; | ||
/** Grants permission to read Administrator */ | ||
Permission["ReadAdministrator"] = "ReadAdministrator"; | ||
/** Grants permission to update Administrator */ | ||
Permission["UpdateAdministrator"] = "UpdateAdministrator"; | ||
/** Grants permission to delete Administrator */ | ||
Permission["DeleteAdministrator"] = "DeleteAdministrator"; | ||
/** Grants permission to create Asset */ | ||
Permission["CreateAsset"] = "CreateAsset"; | ||
/** Grants permission to read Asset */ | ||
Permission["ReadAsset"] = "ReadAsset"; | ||
/** Grants permission to update Asset */ | ||
Permission["UpdateAsset"] = "UpdateAsset"; | ||
/** Grants permission to delete Asset */ | ||
Permission["DeleteAsset"] = "DeleteAsset"; | ||
/** Grants permission to create Channel */ | ||
Permission["CreateChannel"] = "CreateChannel"; | ||
/** Grants permission to read Channel */ | ||
Permission["ReadChannel"] = "ReadChannel"; | ||
/** Grants permission to update Channel */ | ||
Permission["UpdateChannel"] = "UpdateChannel"; | ||
/** Grants permission to delete Channel */ | ||
Permission["DeleteChannel"] = "DeleteChannel"; | ||
/** Grants permission to create Collection */ | ||
Permission["CreateCollection"] = "CreateCollection"; | ||
/** Grants permission to read Collection */ | ||
Permission["ReadCollection"] = "ReadCollection"; | ||
/** Grants permission to update Collection */ | ||
Permission["UpdateCollection"] = "UpdateCollection"; | ||
/** Grants permission to delete Collection */ | ||
Permission["DeleteCollection"] = "DeleteCollection"; | ||
/** Grants permission to create Country */ | ||
Permission["CreateCountry"] = "CreateCountry"; | ||
/** Grants permission to read Country */ | ||
Permission["ReadCountry"] = "ReadCountry"; | ||
/** Grants permission to update Country */ | ||
Permission["UpdateCountry"] = "UpdateCountry"; | ||
/** Grants permission to delete Country */ | ||
Permission["DeleteCountry"] = "DeleteCountry"; | ||
/** Grants permission to create Customer */ | ||
Permission["CreateCustomer"] = "CreateCustomer"; | ||
/** Grants permission to read Customer */ | ||
Permission["ReadCustomer"] = "ReadCustomer"; | ||
/** Grants permission to update Customer */ | ||
Permission["UpdateCustomer"] = "UpdateCustomer"; | ||
/** Grants permission to delete Customer */ | ||
Permission["DeleteCustomer"] = "DeleteCustomer"; | ||
/** Grants permission to create CustomerGroup */ | ||
Permission["CreateCustomerGroup"] = "CreateCustomerGroup"; | ||
/** Grants permission to read CustomerGroup */ | ||
Permission["ReadCustomerGroup"] = "ReadCustomerGroup"; | ||
/** Grants permission to update CustomerGroup */ | ||
Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup"; | ||
/** Grants permission to delete CustomerGroup */ | ||
Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup"; | ||
/** Grants permission to create Facet */ | ||
Permission["CreateFacet"] = "CreateFacet"; | ||
/** Grants permission to read Facet */ | ||
Permission["ReadFacet"] = "ReadFacet"; | ||
/** Grants permission to update Facet */ | ||
Permission["UpdateFacet"] = "UpdateFacet"; | ||
/** Grants permission to delete Facet */ | ||
Permission["DeleteFacet"] = "DeleteFacet"; | ||
/** Grants permission to create Order */ | ||
Permission["CreateOrder"] = "CreateOrder"; | ||
/** Grants permission to read Order */ | ||
Permission["ReadOrder"] = "ReadOrder"; | ||
/** Grants permission to update Order */ | ||
Permission["UpdateOrder"] = "UpdateOrder"; | ||
/** Grants permission to delete Order */ | ||
Permission["DeleteOrder"] = "DeleteOrder"; | ||
/** Grants permission to create PaymentMethod */ | ||
Permission["CreatePaymentMethod"] = "CreatePaymentMethod"; | ||
/** Grants permission to read PaymentMethod */ | ||
Permission["ReadPaymentMethod"] = "ReadPaymentMethod"; | ||
/** Grants permission to update PaymentMethod */ | ||
Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod"; | ||
/** Grants permission to delete PaymentMethod */ | ||
Permission["DeletePaymentMethod"] = "DeletePaymentMethod"; | ||
/** Grants permission to create Product */ | ||
Permission["CreateProduct"] = "CreateProduct"; | ||
/** Grants permission to read Product */ | ||
Permission["ReadProduct"] = "ReadProduct"; | ||
/** Grants permission to update Product */ | ||
Permission["UpdateProduct"] = "UpdateProduct"; | ||
/** Grants permission to delete Product */ | ||
Permission["DeleteProduct"] = "DeleteProduct"; | ||
/** Grants permission to create Promotion */ | ||
Permission["CreatePromotion"] = "CreatePromotion"; | ||
/** Grants permission to read Promotion */ | ||
Permission["ReadPromotion"] = "ReadPromotion"; | ||
/** Grants permission to update Promotion */ | ||
Permission["UpdatePromotion"] = "UpdatePromotion"; | ||
/** Grants permission to delete Promotion */ | ||
Permission["DeletePromotion"] = "DeletePromotion"; | ||
/** Grants permission to create ShippingMethod */ | ||
Permission["CreateShippingMethod"] = "CreateShippingMethod"; | ||
/** Grants permission to read ShippingMethod */ | ||
Permission["ReadShippingMethod"] = "ReadShippingMethod"; | ||
/** Grants permission to update ShippingMethod */ | ||
Permission["UpdateShippingMethod"] = "UpdateShippingMethod"; | ||
/** Grants permission to delete ShippingMethod */ | ||
Permission["DeleteShippingMethod"] = "DeleteShippingMethod"; | ||
/** Grants permission to create Tag */ | ||
Permission["CreateTag"] = "CreateTag"; | ||
/** Grants permission to read Tag */ | ||
Permission["ReadTag"] = "ReadTag"; | ||
/** Grants permission to update Tag */ | ||
Permission["UpdateTag"] = "UpdateTag"; | ||
/** Grants permission to delete Tag */ | ||
Permission["DeleteTag"] = "DeleteTag"; | ||
/** Grants permission to create TaxCategory */ | ||
Permission["CreateTaxCategory"] = "CreateTaxCategory"; | ||
/** Grants permission to read TaxCategory */ | ||
Permission["ReadTaxCategory"] = "ReadTaxCategory"; | ||
/** Grants permission to update TaxCategory */ | ||
Permission["UpdateTaxCategory"] = "UpdateTaxCategory"; | ||
/** Grants permission to delete TaxCategory */ | ||
Permission["DeleteTaxCategory"] = "DeleteTaxCategory"; | ||
/** Grants permission to create TaxRate */ | ||
Permission["CreateTaxRate"] = "CreateTaxRate"; | ||
/** Grants permission to read TaxRate */ | ||
Permission["ReadTaxRate"] = "ReadTaxRate"; | ||
/** Grants permission to update TaxRate */ | ||
Permission["UpdateTaxRate"] = "UpdateTaxRate"; | ||
/** Grants permission to delete TaxRate */ | ||
Permission["DeleteTaxRate"] = "DeleteTaxRate"; | ||
/** Grants permission to create System */ | ||
Permission["CreateSystem"] = "CreateSystem"; | ||
/** Grants permission to read System */ | ||
Permission["ReadSystem"] = "ReadSystem"; | ||
/** Grants permission to update System */ | ||
Permission["UpdateSystem"] = "UpdateSystem"; | ||
/** Grants permission to delete System */ | ||
Permission["DeleteSystem"] = "DeleteSystem"; | ||
/** Grants permission to create Zone */ | ||
Permission["CreateZone"] = "CreateZone"; | ||
/** Grants permission to read Zone */ | ||
Permission["ReadZone"] = "ReadZone"; | ||
/** Grants permission to update Zone */ | ||
Permission["UpdateZone"] = "UpdateZone"; | ||
/** Grants permission to delete Zone */ | ||
Permission["DeleteZone"] = "DeleteZone"; | ||
})(Permission = exports.Permission || (exports.Permission = {})); | ||
var SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["ASC"] = "ASC"; | ||
SortOrder["DESC"] = "DESC"; | ||
})(SortOrder = exports.SortOrder || (exports.SortOrder = {})); | ||
var StockMovementType; | ||
(function (StockMovementType) { | ||
StockMovementType["ADJUSTMENT"] = "ADJUSTMENT"; | ||
StockMovementType["ALLOCATION"] = "ALLOCATION"; | ||
StockMovementType["RELEASE"] = "RELEASE"; | ||
StockMovementType["SALE"] = "SALE"; | ||
StockMovementType["CANCELLATION"] = "CANCELLATION"; | ||
StockMovementType["RETURN"] = "RETURN"; | ||
})(StockMovementType = exports.StockMovementType || (exports.StockMovementType = {})); | ||
//# sourceMappingURL=generated-types.js.map |
{ | ||
"name": "@vendure/common", | ||
"version": "1.2.0-beta.43+f6cdcba1a", | ||
"version": "1.2.0", | ||
"main": "index.js", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "f6cdcba1abb2db9a59da9b9e5e867c24a67de476" | ||
"gitHead": "76547940282ffb44ab9430d1b7d29c2d3fc3c2ee" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
0
366138