UNPKG

@vendure/common

Version:
977 lines 36.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SortOrder = exports.Permission = exports.OrderType = 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["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION"; AdjustmentType["OTHER"] = "OTHER"; AdjustmentType["PROMOTION"] = "PROMOTION"; })(AdjustmentType || (exports.AdjustmentType = AdjustmentType = {})); var AssetType; (function (AssetType) { AssetType["BINARY"] = "BINARY"; AssetType["IMAGE"] = "IMAGE"; AssetType["VIDEO"] = "VIDEO"; })(AssetType || (exports.AssetType = AssetType = {})); /** * @description * ISO 4217 currency code * * @docsCategory common */ var CurrencyCode; (function (CurrencyCode) { /** United Arab Emirates dirham */ CurrencyCode["AED"] = "AED"; /** Afghan afghani */ CurrencyCode["AFN"] = "AFN"; /** Albanian lek */ CurrencyCode["ALL"] = "ALL"; /** Armenian dram */ CurrencyCode["AMD"] = "AMD"; /** Netherlands Antillean guilder */ CurrencyCode["ANG"] = "ANG"; /** Angolan kwanza */ CurrencyCode["AOA"] = "AOA"; /** Argentine peso */ CurrencyCode["ARS"] = "ARS"; /** Australian dollar */ CurrencyCode["AUD"] = "AUD"; /** Aruban florin */ CurrencyCode["AWG"] = "AWG"; /** Azerbaijani manat */ CurrencyCode["AZN"] = "AZN"; /** Bosnia and Herzegovina convertible mark */ CurrencyCode["BAM"] = "BAM"; /** Barbados dollar */ CurrencyCode["BBD"] = "BBD"; /** Bangladeshi taka */ CurrencyCode["BDT"] = "BDT"; /** Bulgarian lev */ CurrencyCode["BGN"] = "BGN"; /** Bahraini dinar */ CurrencyCode["BHD"] = "BHD"; /** Burundian franc */ CurrencyCode["BIF"] = "BIF"; /** Bermudian dollar */ CurrencyCode["BMD"] = "BMD"; /** Brunei dollar */ CurrencyCode["BND"] = "BND"; /** Boliviano */ CurrencyCode["BOB"] = "BOB"; /** Brazilian real */ CurrencyCode["BRL"] = "BRL"; /** Bahamian dollar */ CurrencyCode["BSD"] = "BSD"; /** Bhutanese ngultrum */ CurrencyCode["BTN"] = "BTN"; /** Botswana pula */ CurrencyCode["BWP"] = "BWP"; /** Belarusian ruble */ CurrencyCode["BYN"] = "BYN"; /** Belize dollar */ CurrencyCode["BZD"] = "BZD"; /** Canadian dollar */ CurrencyCode["CAD"] = "CAD"; /** Congolese franc */ CurrencyCode["CDF"] = "CDF"; /** Swiss franc */ CurrencyCode["CHF"] = "CHF"; /** Chilean peso */ CurrencyCode["CLP"] = "CLP"; /** Renminbi (Chinese) yuan */ CurrencyCode["CNY"] = "CNY"; /** Colombian peso */ CurrencyCode["COP"] = "COP"; /** Costa Rican colon */ CurrencyCode["CRC"] = "CRC"; /** Cuban convertible peso */ CurrencyCode["CUC"] = "CUC"; /** Cuban peso */ CurrencyCode["CUP"] = "CUP"; /** Cape Verde escudo */ CurrencyCode["CVE"] = "CVE"; /** Czech koruna */ CurrencyCode["CZK"] = "CZK"; /** Djiboutian franc */ CurrencyCode["DJF"] = "DJF"; /** Danish krone */ CurrencyCode["DKK"] = "DKK"; /** Dominican peso */ CurrencyCode["DOP"] = "DOP"; /** Algerian dinar */ CurrencyCode["DZD"] = "DZD"; /** Egyptian pound */ CurrencyCode["EGP"] = "EGP"; /** Eritrean nakfa */ CurrencyCode["ERN"] = "ERN"; /** Ethiopian birr */ CurrencyCode["ETB"] = "ETB"; /** Euro */ CurrencyCode["EUR"] = "EUR"; /** Fiji dollar */ CurrencyCode["FJD"] = "FJD"; /** Falkland Islands pound */ CurrencyCode["FKP"] = "FKP"; /** Pound sterling */ CurrencyCode["GBP"] = "GBP"; /** Georgian lari */ CurrencyCode["GEL"] = "GEL"; /** Ghanaian cedi */ CurrencyCode["GHS"] = "GHS"; /** Gibraltar pound */ CurrencyCode["GIP"] = "GIP"; /** Gambian dalasi */ CurrencyCode["GMD"] = "GMD"; /** Guinean franc */ CurrencyCode["GNF"] = "GNF"; /** Guatemalan quetzal */ CurrencyCode["GTQ"] = "GTQ"; /** Guyanese dollar */ CurrencyCode["GYD"] = "GYD"; /** Hong Kong dollar */ CurrencyCode["HKD"] = "HKD"; /** Honduran lempira */ CurrencyCode["HNL"] = "HNL"; /** Croatian kuna */ CurrencyCode["HRK"] = "HRK"; /** Haitian gourde */ CurrencyCode["HTG"] = "HTG"; /** Hungarian forint */ CurrencyCode["HUF"] = "HUF"; /** Indonesian rupiah */ CurrencyCode["IDR"] = "IDR"; /** Israeli new shekel */ CurrencyCode["ILS"] = "ILS"; /** Indian rupee */ CurrencyCode["INR"] = "INR"; /** Iraqi dinar */ CurrencyCode["IQD"] = "IQD"; /** Iranian rial */ CurrencyCode["IRR"] = "IRR"; /** Icelandic króna */ CurrencyCode["ISK"] = "ISK"; /** Jamaican dollar */ CurrencyCode["JMD"] = "JMD"; /** Jordanian dinar */ CurrencyCode["JOD"] = "JOD"; /** Japanese yen */ CurrencyCode["JPY"] = "JPY"; /** Kenyan shilling */ CurrencyCode["KES"] = "KES"; /** Kyrgyzstani som */ CurrencyCode["KGS"] = "KGS"; /** Cambodian riel */ CurrencyCode["KHR"] = "KHR"; /** Comoro franc */ CurrencyCode["KMF"] = "KMF"; /** North Korean won */ CurrencyCode["KPW"] = "KPW"; /** South Korean won */ CurrencyCode["KRW"] = "KRW"; /** Kuwaiti dinar */ CurrencyCode["KWD"] = "KWD"; /** Cayman Islands dollar */ CurrencyCode["KYD"] = "KYD"; /** Kazakhstani tenge */ CurrencyCode["KZT"] = "KZT"; /** Lao kip */ CurrencyCode["LAK"] = "LAK"; /** Lebanese pound */ CurrencyCode["LBP"] = "LBP"; /** Sri Lankan rupee */ CurrencyCode["LKR"] = "LKR"; /** Liberian dollar */ CurrencyCode["LRD"] = "LRD"; /** Lesotho loti */ CurrencyCode["LSL"] = "LSL"; /** Libyan dinar */ CurrencyCode["LYD"] = "LYD"; /** Moroccan dirham */ CurrencyCode["MAD"] = "MAD"; /** Moldovan leu */ CurrencyCode["MDL"] = "MDL"; /** Malagasy ariary */ CurrencyCode["MGA"] = "MGA"; /** Macedonian denar */ CurrencyCode["MKD"] = "MKD"; /** Myanmar kyat */ CurrencyCode["MMK"] = "MMK"; /** Mongolian tögrög */ CurrencyCode["MNT"] = "MNT"; /** Macanese pataca */ CurrencyCode["MOP"] = "MOP"; /** Mauritanian ouguiya */ CurrencyCode["MRU"] = "MRU"; /** Mauritian rupee */ CurrencyCode["MUR"] = "MUR"; /** Maldivian rufiyaa */ CurrencyCode["MVR"] = "MVR"; /** Malawian kwacha */ CurrencyCode["MWK"] = "MWK"; /** Mexican peso */ CurrencyCode["MXN"] = "MXN"; /** Malaysian ringgit */ CurrencyCode["MYR"] = "MYR"; /** Mozambican metical */ CurrencyCode["MZN"] = "MZN"; /** Namibian dollar */ CurrencyCode["NAD"] = "NAD"; /** Nigerian naira */ CurrencyCode["NGN"] = "NGN"; /** Nicaraguan córdoba */ CurrencyCode["NIO"] = "NIO"; /** Norwegian krone */ CurrencyCode["NOK"] = "NOK"; /** Nepalese rupee */ CurrencyCode["NPR"] = "NPR"; /** New Zealand dollar */ CurrencyCode["NZD"] = "NZD"; /** Omani rial */ CurrencyCode["OMR"] = "OMR"; /** Panamanian balboa */ CurrencyCode["PAB"] = "PAB"; /** Peruvian sol */ CurrencyCode["PEN"] = "PEN"; /** Papua New Guinean kina */ CurrencyCode["PGK"] = "PGK"; /** Philippine peso */ CurrencyCode["PHP"] = "PHP"; /** Pakistani rupee */ CurrencyCode["PKR"] = "PKR"; /** Polish złoty */ CurrencyCode["PLN"] = "PLN"; /** Paraguayan guaraní */ CurrencyCode["PYG"] = "PYG"; /** Qatari riyal */ CurrencyCode["QAR"] = "QAR"; /** Romanian leu */ CurrencyCode["RON"] = "RON"; /** Serbian dinar */ CurrencyCode["RSD"] = "RSD"; /** Russian ruble */ CurrencyCode["RUB"] = "RUB"; /** Rwandan franc */ CurrencyCode["RWF"] = "RWF"; /** Saudi riyal */ CurrencyCode["SAR"] = "SAR"; /** Solomon Islands dollar */ CurrencyCode["SBD"] = "SBD"; /** Seychelles rupee */ CurrencyCode["SCR"] = "SCR"; /** Sudanese pound */ CurrencyCode["SDG"] = "SDG"; /** Swedish krona/kronor */ CurrencyCode["SEK"] = "SEK"; /** Singapore dollar */ CurrencyCode["SGD"] = "SGD"; /** Saint Helena pound */ CurrencyCode["SHP"] = "SHP"; /** Sierra Leonean leone */ CurrencyCode["SLL"] = "SLL"; /** Somali shilling */ CurrencyCode["SOS"] = "SOS"; /** Surinamese dollar */ CurrencyCode["SRD"] = "SRD"; /** South Sudanese pound */ CurrencyCode["SSP"] = "SSP"; /** São Tomé and Príncipe dobra */ CurrencyCode["STN"] = "STN"; /** Salvadoran colón */ CurrencyCode["SVC"] = "SVC"; /** Syrian pound */ CurrencyCode["SYP"] = "SYP"; /** Swazi lilangeni */ CurrencyCode["SZL"] = "SZL"; /** Thai baht */ CurrencyCode["THB"] = "THB"; /** Tajikistani somoni */ CurrencyCode["TJS"] = "TJS"; /** Turkmenistan manat */ CurrencyCode["TMT"] = "TMT"; /** Tunisian dinar */ CurrencyCode["TND"] = "TND"; /** Tongan paʻanga */ CurrencyCode["TOP"] = "TOP"; /** Turkish lira */ CurrencyCode["TRY"] = "TRY"; /** Trinidad and Tobago dollar */ CurrencyCode["TTD"] = "TTD"; /** New Taiwan dollar */ CurrencyCode["TWD"] = "TWD"; /** Tanzanian shilling */ CurrencyCode["TZS"] = "TZS"; /** Ukrainian hryvnia */ CurrencyCode["UAH"] = "UAH"; /** Ugandan shilling */ CurrencyCode["UGX"] = "UGX"; /** United States dollar */ CurrencyCode["USD"] = "USD"; /** Uruguayan peso */ CurrencyCode["UYU"] = "UYU"; /** Uzbekistan som */ CurrencyCode["UZS"] = "UZS"; /** Venezuelan bolívar soberano */ CurrencyCode["VES"] = "VES"; /** Vietnamese đồng */ CurrencyCode["VND"] = "VND"; /** Vanuatu vatu */ CurrencyCode["VUV"] = "VUV"; /** Samoan tala */ CurrencyCode["WST"] = "WST"; /** CFA franc BEAC */ CurrencyCode["XAF"] = "XAF"; /** East Caribbean dollar */ CurrencyCode["XCD"] = "XCD"; /** CFA franc BCEAO */ CurrencyCode["XOF"] = "XOF"; /** CFP franc (franc Pacifique) */ CurrencyCode["XPF"] = "XPF"; /** Yemeni rial */ CurrencyCode["YER"] = "YER"; /** South African rand */ CurrencyCode["ZAR"] = "ZAR"; /** Zambian kwacha */ CurrencyCode["ZMW"] = "ZMW"; /** Zimbabwean dollar */ CurrencyCode["ZWL"] = "ZWL"; })(CurrencyCode || (exports.CurrencyCode = 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 = DeletionResult = {})); var ErrorCode; (function (ErrorCode) { ErrorCode["ALREADY_LOGGED_IN_ERROR"] = "ALREADY_LOGGED_IN_ERROR"; ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR"; ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR"; ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR"; ErrorCode["EMAIL_ADDRESS_CONFLICT_ERROR"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; ErrorCode["GUEST_CHECKOUT_ERROR"] = "GUEST_CHECKOUT_ERROR"; ErrorCode["IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"; ErrorCode["IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"] = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"; ErrorCode["INELIGIBLE_PAYMENT_METHOD_ERROR"] = "INELIGIBLE_PAYMENT_METHOD_ERROR"; ErrorCode["INELIGIBLE_SHIPPING_METHOD_ERROR"] = "INELIGIBLE_SHIPPING_METHOD_ERROR"; ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR"; ErrorCode["INVALID_CREDENTIALS_ERROR"] = "INVALID_CREDENTIALS_ERROR"; ErrorCode["MISSING_PASSWORD_ERROR"] = "MISSING_PASSWORD_ERROR"; ErrorCode["NATIVE_AUTH_STRATEGY_ERROR"] = "NATIVE_AUTH_STRATEGY_ERROR"; ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR"; ErrorCode["NOT_VERIFIED_ERROR"] = "NOT_VERIFIED_ERROR"; ErrorCode["NO_ACTIVE_ORDER_ERROR"] = "NO_ACTIVE_ORDER_ERROR"; ErrorCode["ORDER_INTERCEPTOR_ERROR"] = "ORDER_INTERCEPTOR_ERROR"; ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR"; ErrorCode["ORDER_MODIFICATION_ERROR"] = "ORDER_MODIFICATION_ERROR"; ErrorCode["ORDER_PAYMENT_STATE_ERROR"] = "ORDER_PAYMENT_STATE_ERROR"; ErrorCode["ORDER_STATE_TRANSITION_ERROR"] = "ORDER_STATE_TRANSITION_ERROR"; ErrorCode["PASSWORD_ALREADY_SET_ERROR"] = "PASSWORD_ALREADY_SET_ERROR"; ErrorCode["PASSWORD_RESET_TOKEN_EXPIRED_ERROR"] = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR"; ErrorCode["PASSWORD_RESET_TOKEN_INVALID_ERROR"] = "PASSWORD_RESET_TOKEN_INVALID_ERROR"; ErrorCode["PASSWORD_VALIDATION_ERROR"] = "PASSWORD_VALIDATION_ERROR"; ErrorCode["PAYMENT_DECLINED_ERROR"] = "PAYMENT_DECLINED_ERROR"; ErrorCode["PAYMENT_FAILED_ERROR"] = "PAYMENT_FAILED_ERROR"; ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; ErrorCode["VERIFICATION_TOKEN_EXPIRED_ERROR"] = "VERIFICATION_TOKEN_EXPIRED_ERROR"; ErrorCode["VERIFICATION_TOKEN_INVALID_ERROR"] = "VERIFICATION_TOKEN_INVALID_ERROR"; })(ErrorCode || (exports.ErrorCode = ErrorCode = {})); var GlobalFlag; (function (GlobalFlag) { GlobalFlag["FALSE"] = "FALSE"; GlobalFlag["INHERIT"] = "INHERIT"; GlobalFlag["TRUE"] = "TRUE"; })(GlobalFlag || (exports.GlobalFlag = GlobalFlag = {})); var HistoryEntryType; (function (HistoryEntryType) { HistoryEntryType["CUSTOMER_ADDED_TO_GROUP"] = "CUSTOMER_ADDED_TO_GROUP"; HistoryEntryType["CUSTOMER_ADDRESS_CREATED"] = "CUSTOMER_ADDRESS_CREATED"; HistoryEntryType["CUSTOMER_ADDRESS_DELETED"] = "CUSTOMER_ADDRESS_DELETED"; HistoryEntryType["CUSTOMER_ADDRESS_UPDATED"] = "CUSTOMER_ADDRESS_UPDATED"; HistoryEntryType["CUSTOMER_DETAIL_UPDATED"] = "CUSTOMER_DETAIL_UPDATED"; HistoryEntryType["CUSTOMER_EMAIL_UPDATE_REQUESTED"] = "CUSTOMER_EMAIL_UPDATE_REQUESTED"; HistoryEntryType["CUSTOMER_EMAIL_UPDATE_VERIFIED"] = "CUSTOMER_EMAIL_UPDATE_VERIFIED"; HistoryEntryType["CUSTOMER_NOTE"] = "CUSTOMER_NOTE"; HistoryEntryType["CUSTOMER_PASSWORD_RESET_REQUESTED"] = "CUSTOMER_PASSWORD_RESET_REQUESTED"; HistoryEntryType["CUSTOMER_PASSWORD_RESET_VERIFIED"] = "CUSTOMER_PASSWORD_RESET_VERIFIED"; HistoryEntryType["CUSTOMER_PASSWORD_UPDATED"] = "CUSTOMER_PASSWORD_UPDATED"; HistoryEntryType["CUSTOMER_REGISTERED"] = "CUSTOMER_REGISTERED"; HistoryEntryType["CUSTOMER_REMOVED_FROM_GROUP"] = "CUSTOMER_REMOVED_FROM_GROUP"; HistoryEntryType["CUSTOMER_VERIFIED"] = "CUSTOMER_VERIFIED"; HistoryEntryType["ORDER_CANCELLATION"] = "ORDER_CANCELLATION"; HistoryEntryType["ORDER_COUPON_APPLIED"] = "ORDER_COUPON_APPLIED"; HistoryEntryType["ORDER_COUPON_REMOVED"] = "ORDER_COUPON_REMOVED"; HistoryEntryType["ORDER_CUSTOMER_UPDATED"] = "ORDER_CUSTOMER_UPDATED"; HistoryEntryType["ORDER_FULFILLMENT"] = "ORDER_FULFILLMENT"; HistoryEntryType["ORDER_FULFILLMENT_TRANSITION"] = "ORDER_FULFILLMENT_TRANSITION"; HistoryEntryType["ORDER_MODIFIED"] = "ORDER_MODIFIED"; HistoryEntryType["ORDER_NOTE"] = "ORDER_NOTE"; HistoryEntryType["ORDER_PAYMENT_TRANSITION"] = "ORDER_PAYMENT_TRANSITION"; HistoryEntryType["ORDER_REFUND_TRANSITION"] = "ORDER_REFUND_TRANSITION"; HistoryEntryType["ORDER_STATE_TRANSITION"] = "ORDER_STATE_TRANSITION"; })(HistoryEntryType || (exports.HistoryEntryType = HistoryEntryType = {})); /** * @description * Languages in the form of a ISO 639-1 language code with optional * region or script modifier (e.g. de_AT). The selection available is based * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html) * and includes the major spoken languages of the world and any widely-used variants. * * @docsCategory common */ var LanguageCode; (function (LanguageCode) { /** Afrikaans */ LanguageCode["af"] = "af"; /** Akan */ LanguageCode["ak"] = "ak"; /** Amharic */ LanguageCode["am"] = "am"; /** Arabic */ LanguageCode["ar"] = "ar"; /** Assamese */ LanguageCode["as"] = "as"; /** Azerbaijani */ LanguageCode["az"] = "az"; /** Belarusian */ LanguageCode["be"] = "be"; /** Bulgarian */ LanguageCode["bg"] = "bg"; /** Bambara */ LanguageCode["bm"] = "bm"; /** Bangla */ LanguageCode["bn"] = "bn"; /** Tibetan */ LanguageCode["bo"] = "bo"; /** Breton */ LanguageCode["br"] = "br"; /** Bosnian */ LanguageCode["bs"] = "bs"; /** Catalan */ LanguageCode["ca"] = "ca"; /** Chechen */ LanguageCode["ce"] = "ce"; /** Corsican */ LanguageCode["co"] = "co"; /** Czech */ LanguageCode["cs"] = "cs"; /** Church Slavic */ LanguageCode["cu"] = "cu"; /** Welsh */ LanguageCode["cy"] = "cy"; /** Danish */ LanguageCode["da"] = "da"; /** German */ LanguageCode["de"] = "de"; /** Austrian German */ LanguageCode["de_AT"] = "de_AT"; /** Swiss High German */ LanguageCode["de_CH"] = "de_CH"; /** Dzongkha */ LanguageCode["dz"] = "dz"; /** Ewe */ LanguageCode["ee"] = "ee"; /** Greek */ LanguageCode["el"] = "el"; /** English */ LanguageCode["en"] = "en"; /** Australian English */ LanguageCode["en_AU"] = "en_AU"; /** Canadian English */ LanguageCode["en_CA"] = "en_CA"; /** British English */ LanguageCode["en_GB"] = "en_GB"; /** American English */ LanguageCode["en_US"] = "en_US"; /** Esperanto */ LanguageCode["eo"] = "eo"; /** Spanish */ LanguageCode["es"] = "es"; /** European Spanish */ LanguageCode["es_ES"] = "es_ES"; /** Mexican Spanish */ LanguageCode["es_MX"] = "es_MX"; /** Estonian */ LanguageCode["et"] = "et"; /** Basque */ LanguageCode["eu"] = "eu"; /** Persian */ LanguageCode["fa"] = "fa"; /** Dari */ LanguageCode["fa_AF"] = "fa_AF"; /** Fulah */ LanguageCode["ff"] = "ff"; /** Finnish */ LanguageCode["fi"] = "fi"; /** Faroese */ LanguageCode["fo"] = "fo"; /** French */ LanguageCode["fr"] = "fr"; /** Canadian French */ LanguageCode["fr_CA"] = "fr_CA"; /** Swiss French */ LanguageCode["fr_CH"] = "fr_CH"; /** Western Frisian */ LanguageCode["fy"] = "fy"; /** Irish */ LanguageCode["ga"] = "ga"; /** Scottish Gaelic */ LanguageCode["gd"] = "gd"; /** Galician */ LanguageCode["gl"] = "gl"; /** Gujarati */ LanguageCode["gu"] = "gu"; /** Manx */ LanguageCode["gv"] = "gv"; /** Hausa */ LanguageCode["ha"] = "ha"; /** Hebrew */ LanguageCode["he"] = "he"; /** Hindi */ LanguageCode["hi"] = "hi"; /** Croatian */ LanguageCode["hr"] = "hr"; /** Haitian Creole */ LanguageCode["ht"] = "ht"; /** Hungarian */ LanguageCode["hu"] = "hu"; /** Armenian */ LanguageCode["hy"] = "hy"; /** Interlingua */ LanguageCode["ia"] = "ia"; /** Indonesian */ LanguageCode["id"] = "id"; /** Igbo */ LanguageCode["ig"] = "ig"; /** Sichuan Yi */ LanguageCode["ii"] = "ii"; /** Icelandic */ LanguageCode["is"] = "is"; /** Italian */ LanguageCode["it"] = "it"; /** Japanese */ LanguageCode["ja"] = "ja"; /** Javanese */ LanguageCode["jv"] = "jv"; /** Georgian */ LanguageCode["ka"] = "ka"; /** Kikuyu */ LanguageCode["ki"] = "ki"; /** Kazakh */ LanguageCode["kk"] = "kk"; /** Kalaallisut */ LanguageCode["kl"] = "kl"; /** Khmer */ LanguageCode["km"] = "km"; /** Kannada */ LanguageCode["kn"] = "kn"; /** Korean */ LanguageCode["ko"] = "ko"; /** Kashmiri */ LanguageCode["ks"] = "ks"; /** Kurdish */ LanguageCode["ku"] = "ku"; /** Cornish */ LanguageCode["kw"] = "kw"; /** Kyrgyz */ LanguageCode["ky"] = "ky"; /** Latin */ LanguageCode["la"] = "la"; /** Luxembourgish */ LanguageCode["lb"] = "lb"; /** Ganda */ LanguageCode["lg"] = "lg"; /** Lingala */ LanguageCode["ln"] = "ln"; /** Lao */ LanguageCode["lo"] = "lo"; /** Lithuanian */ LanguageCode["lt"] = "lt"; /** Luba-Katanga */ LanguageCode["lu"] = "lu"; /** Latvian */ LanguageCode["lv"] = "lv"; /** Malagasy */ LanguageCode["mg"] = "mg"; /** Maori */ LanguageCode["mi"] = "mi"; /** Macedonian */ LanguageCode["mk"] = "mk"; /** Malayalam */ LanguageCode["ml"] = "ml"; /** Mongolian */ LanguageCode["mn"] = "mn"; /** Marathi */ LanguageCode["mr"] = "mr"; /** Malay */ LanguageCode["ms"] = "ms"; /** Maltese */ LanguageCode["mt"] = "mt"; /** Burmese */ LanguageCode["my"] = "my"; /** Norwegian Bokmål */ LanguageCode["nb"] = "nb"; /** North Ndebele */ LanguageCode["nd"] = "nd"; /** Nepali */ LanguageCode["ne"] = "ne"; /** Dutch */ LanguageCode["nl"] = "nl"; /** Flemish */ LanguageCode["nl_BE"] = "nl_BE"; /** Norwegian Nynorsk */ LanguageCode["nn"] = "nn"; /** Nyanja */ LanguageCode["ny"] = "ny"; /** Oromo */ LanguageCode["om"] = "om"; /** Odia */ LanguageCode["or"] = "or"; /** Ossetic */ LanguageCode["os"] = "os"; /** Punjabi */ LanguageCode["pa"] = "pa"; /** Polish */ LanguageCode["pl"] = "pl"; /** Pashto */ LanguageCode["ps"] = "ps"; /** Portuguese */ LanguageCode["pt"] = "pt"; /** Brazilian Portuguese */ LanguageCode["pt_BR"] = "pt_BR"; /** European Portuguese */ LanguageCode["pt_PT"] = "pt_PT"; /** Quechua */ LanguageCode["qu"] = "qu"; /** Romansh */ LanguageCode["rm"] = "rm"; /** Rundi */ LanguageCode["rn"] = "rn"; /** Romanian */ LanguageCode["ro"] = "ro"; /** Moldavian */ LanguageCode["ro_MD"] = "ro_MD"; /** Russian */ LanguageCode["ru"] = "ru"; /** Kinyarwanda */ LanguageCode["rw"] = "rw"; /** Sanskrit */ LanguageCode["sa"] = "sa"; /** Sindhi */ LanguageCode["sd"] = "sd"; /** Northern Sami */ LanguageCode["se"] = "se"; /** Sango */ LanguageCode["sg"] = "sg"; /** Sinhala */ LanguageCode["si"] = "si"; /** Slovak */ LanguageCode["sk"] = "sk"; /** Slovenian */ LanguageCode["sl"] = "sl"; /** Samoan */ LanguageCode["sm"] = "sm"; /** Shona */ LanguageCode["sn"] = "sn"; /** Somali */ LanguageCode["so"] = "so"; /** Albanian */ LanguageCode["sq"] = "sq"; /** Serbian */ LanguageCode["sr"] = "sr"; /** Southern Sotho */ LanguageCode["st"] = "st"; /** Sundanese */ LanguageCode["su"] = "su"; /** Swedish */ LanguageCode["sv"] = "sv"; /** Swahili */ LanguageCode["sw"] = "sw"; /** Congo Swahili */ LanguageCode["sw_CD"] = "sw_CD"; /** Tamil */ LanguageCode["ta"] = "ta"; /** Telugu */ LanguageCode["te"] = "te"; /** Tajik */ LanguageCode["tg"] = "tg"; /** Thai */ LanguageCode["th"] = "th"; /** Tigrinya */ LanguageCode["ti"] = "ti"; /** Turkmen */ LanguageCode["tk"] = "tk"; /** Tongan */ LanguageCode["to"] = "to"; /** Turkish */ LanguageCode["tr"] = "tr"; /** Tatar */ LanguageCode["tt"] = "tt"; /** Uyghur */ LanguageCode["ug"] = "ug"; /** Ukrainian */ LanguageCode["uk"] = "uk"; /** Urdu */ LanguageCode["ur"] = "ur"; /** Uzbek */ LanguageCode["uz"] = "uz"; /** Vietnamese */ LanguageCode["vi"] = "vi"; /** Volapük */ LanguageCode["vo"] = "vo"; /** Wolof */ LanguageCode["wo"] = "wo"; /** Xhosa */ LanguageCode["xh"] = "xh"; /** Yiddish */ LanguageCode["yi"] = "yi"; /** Yoruba */ LanguageCode["yo"] = "yo"; /** Chinese */ LanguageCode["zh"] = "zh"; /** Simplified Chinese */ LanguageCode["zh_Hans"] = "zh_Hans"; /** Traditional Chinese */ LanguageCode["zh_Hant"] = "zh_Hant"; /** Zulu */ LanguageCode["zu"] = "zu"; })(LanguageCode || (exports.LanguageCode = LanguageCode = {})); var LogicalOperator; (function (LogicalOperator) { LogicalOperator["AND"] = "AND"; LogicalOperator["OR"] = "OR"; })(LogicalOperator || (exports.LogicalOperator = LogicalOperator = {})); var OrderType; (function (OrderType) { OrderType["Aggregate"] = "Aggregate"; OrderType["Regular"] = "Regular"; OrderType["Seller"] = "Seller"; })(OrderType || (exports.OrderType = OrderType = {})); /** * @description * Permissions for administrators and customers. Used to control access to * GraphQL resolvers via the {@link Allow} decorator. * * ## Understanding Permission.Owner * * `Permission.Owner` is a special permission which is used in some Vendure resolvers to indicate that that resolver should only * be accessible to the "owner" of that resource. * * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e. * based on the activeUserId of the current session. As a result, the resolver code looks like this: * * @example * ```TypeScript * \@Query() * \@Allow(Permission.Owner) * async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> { * const userId = ctx.activeUserId; * if (userId) { * return this.customerService.findOneByUserId(ctx, userId); * } * } * ``` * * Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner * of the resource has access. If not, then it is the equivalent of using `Permission.Public`. * * * @docsCategory common */ var Permission; (function (Permission) { /** Authenticated means simply that the user is logged in */ Permission["Authenticated"] = "Authenticated"; /** Grants permission to create Administrator */ Permission["CreateAdministrator"] = "CreateAdministrator"; /** Grants permission to create Asset */ Permission["CreateAsset"] = "CreateAsset"; /** Grants permission to create Products, Facets, Assets, Collections */ Permission["CreateCatalog"] = "CreateCatalog"; /** Grants permission to create Channel */ Permission["CreateChannel"] = "CreateChannel"; /** Grants permission to create Collection */ Permission["CreateCollection"] = "CreateCollection"; /** Grants permission to create Country */ Permission["CreateCountry"] = "CreateCountry"; /** Grants permission to create Customer */ Permission["CreateCustomer"] = "CreateCustomer"; /** Grants permission to create CustomerGroup */ Permission["CreateCustomerGroup"] = "CreateCustomerGroup"; /** Grants permission to create Facet */ Permission["CreateFacet"] = "CreateFacet"; /** Grants permission to create Order */ Permission["CreateOrder"] = "CreateOrder"; /** Grants permission to create PaymentMethod */ Permission["CreatePaymentMethod"] = "CreatePaymentMethod"; /** Grants permission to create Product */ Permission["CreateProduct"] = "CreateProduct"; /** Grants permission to create Promotion */ Permission["CreatePromotion"] = "CreatePromotion"; /** Grants permission to create Seller */ Permission["CreateSeller"] = "CreateSeller"; /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ Permission["CreateSettings"] = "CreateSettings"; /** Grants permission to create ShippingMethod */ Permission["CreateShippingMethod"] = "CreateShippingMethod"; /** Grants permission to create StockLocation */ Permission["CreateStockLocation"] = "CreateStockLocation"; /** Grants permission to create System */ Permission["CreateSystem"] = "CreateSystem"; /** Grants permission to create Tag */ Permission["CreateTag"] = "CreateTag"; /** Grants permission to create TaxCategory */ Permission["CreateTaxCategory"] = "CreateTaxCategory"; /** Grants permission to create TaxRate */ Permission["CreateTaxRate"] = "CreateTaxRate"; /** Grants permission to create Zone */ Permission["CreateZone"] = "CreateZone"; /** Grants permission to delete Administrator */ Permission["DeleteAdministrator"] = "DeleteAdministrator"; /** Grants permission to delete Asset */ Permission["DeleteAsset"] = "DeleteAsset"; /** Grants permission to delete Products, Facets, Assets, Collections */ Permission["DeleteCatalog"] = "DeleteCatalog"; /** Grants permission to delete Channel */ Permission["DeleteChannel"] = "DeleteChannel"; /** Grants permission to delete Collection */ Permission["DeleteCollection"] = "DeleteCollection"; /** Grants permission to delete Country */ Permission["DeleteCountry"] = "DeleteCountry"; /** Grants permission to delete Customer */ Permission["DeleteCustomer"] = "DeleteCustomer"; /** Grants permission to delete CustomerGroup */ Permission["DeleteCustomerGroup"] = "DeleteCustomerGroup"; /** Grants permission to delete Facet */ Permission["DeleteFacet"] = "DeleteFacet"; /** Grants permission to delete Order */ Permission["DeleteOrder"] = "DeleteOrder"; /** Grants permission to delete PaymentMethod */ Permission["DeletePaymentMethod"] = "DeletePaymentMethod"; /** Grants permission to delete Product */ Permission["DeleteProduct"] = "DeleteProduct"; /** Grants permission to delete Promotion */ Permission["DeletePromotion"] = "DeletePromotion"; /** Grants permission to delete Seller */ Permission["DeleteSeller"] = "DeleteSeller"; /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ Permission["DeleteSettings"] = "DeleteSettings"; /** Grants permission to delete ShippingMethod */ Permission["DeleteShippingMethod"] = "DeleteShippingMethod"; /** Grants permission to delete StockLocation */ Permission["DeleteStockLocation"] = "DeleteStockLocation"; /** Grants permission to delete System */ Permission["DeleteSystem"] = "DeleteSystem"; /** Grants permission to delete Tag */ Permission["DeleteTag"] = "DeleteTag"; /** Grants permission to delete TaxCategory */ Permission["DeleteTaxCategory"] = "DeleteTaxCategory"; /** Grants permission to delete TaxRate */ Permission["DeleteTaxRate"] = "DeleteTaxRate"; /** Grants permission to delete Zone */ Permission["DeleteZone"] = "DeleteZone"; /** 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 read Administrator */ Permission["ReadAdministrator"] = "ReadAdministrator"; /** Grants permission to read Asset */ Permission["ReadAsset"] = "ReadAsset"; /** Grants permission to read Products, Facets, Assets, Collections */ Permission["ReadCatalog"] = "ReadCatalog"; /** Grants permission to read Channel */ Permission["ReadChannel"] = "ReadChannel"; /** Grants permission to read Collection */ Permission["ReadCollection"] = "ReadCollection"; /** Grants permission to read Country */ Permission["ReadCountry"] = "ReadCountry"; /** Grants permission to read Customer */ Permission["ReadCustomer"] = "ReadCustomer"; /** Grants permission to read CustomerGroup */ Permission["ReadCustomerGroup"] = "ReadCustomerGroup"; /** Grants permission to read Facet */ Permission["ReadFacet"] = "ReadFacet"; /** Grants permission to read Order */ Permission["ReadOrder"] = "ReadOrder"; /** Grants permission to read PaymentMethod */ Permission["ReadPaymentMethod"] = "ReadPaymentMethod"; /** Grants permission to read Product */ Permission["ReadProduct"] = "ReadProduct"; /** Grants permission to read Promotion */ Permission["ReadPromotion"] = "ReadPromotion"; /** Grants permission to read Seller */ Permission["ReadSeller"] = "ReadSeller"; /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ Permission["ReadSettings"] = "ReadSettings"; /** Grants permission to read ShippingMethod */ Permission["ReadShippingMethod"] = "ReadShippingMethod"; /** Grants permission to read StockLocation */ Permission["ReadStockLocation"] = "ReadStockLocation"; /** Grants permission to read System */ Permission["ReadSystem"] = "ReadSystem"; /** Grants permission to read Tag */ Permission["ReadTag"] = "ReadTag"; /** Grants permission to read TaxCategory */ Permission["ReadTaxCategory"] = "ReadTaxCategory"; /** Grants permission to read TaxRate */ Permission["ReadTaxRate"] = "ReadTaxRate"; /** Grants permission to read Zone */ Permission["ReadZone"] = "ReadZone"; /** SuperAdmin has unrestricted access to all operations */ Permission["SuperAdmin"] = "SuperAdmin"; /** Grants permission to update Administrator */ Permission["UpdateAdministrator"] = "UpdateAdministrator"; /** Grants permission to update Asset */ Permission["UpdateAsset"] = "UpdateAsset"; /** Grants permission to update Products, Facets, Assets, Collections */ Permission["UpdateCatalog"] = "UpdateCatalog"; /** Grants permission to update Channel */ Permission["UpdateChannel"] = "UpdateChannel"; /** Grants permission to update Collection */ Permission["UpdateCollection"] = "UpdateCollection"; /** Grants permission to update Country */ Permission["UpdateCountry"] = "UpdateCountry"; /** Grants permission to update Customer */ Permission["UpdateCustomer"] = "UpdateCustomer"; /** Grants permission to update CustomerGroup */ Permission["UpdateCustomerGroup"] = "UpdateCustomerGroup"; /** Grants permission to update Facet */ Permission["UpdateFacet"] = "UpdateFacet"; /** Grants permission to update GlobalSettings */ Permission["UpdateGlobalSettings"] = "UpdateGlobalSettings"; /** Grants permission to update Order */ Permission["UpdateOrder"] = "UpdateOrder"; /** Grants permission to update PaymentMethod */ Permission["UpdatePaymentMethod"] = "UpdatePaymentMethod"; /** Grants permission to update Product */ Permission["UpdateProduct"] = "UpdateProduct"; /** Grants permission to update Promotion */ Permission["UpdatePromotion"] = "UpdatePromotion"; /** Grants permission to update Seller */ Permission["UpdateSeller"] = "UpdateSeller"; /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ Permission["UpdateSettings"] = "UpdateSettings"; /** Grants permission to update ShippingMethod */ Permission["UpdateShippingMethod"] = "UpdateShippingMethod"; /** Grants permission to update StockLocation */ Permission["UpdateStockLocation"] = "UpdateStockLocation"; /** Grants permission to update System */ Permission["UpdateSystem"] = "UpdateSystem"; /** Grants permission to update Tag */ Permission["UpdateTag"] = "UpdateTag"; /** Grants permission to update TaxCategory */ Permission["UpdateTaxCategory"] = "UpdateTaxCategory"; /** Grants permission to update TaxRate */ Permission["UpdateTaxRate"] = "UpdateTaxRate"; /** Grants permission to update Zone */ Permission["UpdateZone"] = "UpdateZone"; })(Permission || (exports.Permission = Permission = {})); var SortOrder; (function (SortOrder) { SortOrder["ASC"] = "ASC"; SortOrder["DESC"] = "DESC"; })(SortOrder || (exports.SortOrder = SortOrder = {})); //# sourceMappingURL=generated-shop-types.js.map