@pinelab/vendure-order-client
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -0,1 +1,6 @@ | ||
# 2.5.0 (2023-13-09) | ||
- Export vendure graphql types | ||
- Fixed outdated readme | ||
# 2.4.0 (2023-11-09) | ||
@@ -2,0 +7,0 @@ |
export * from './vendure-order-client'; | ||
export * from './vendure-order-events'; | ||
export * from './graphql-generated-types'; |
974
lib/index.js
@@ -825,2 +825,974 @@ import { gql, GraphQLClient } from 'graphql-request'; | ||
export { VendureOrderClient }; | ||
var AdjustmentType; | ||
(function (AdjustmentType) { | ||
AdjustmentType["DistributedOrderPromotion"] = "DISTRIBUTED_ORDER_PROMOTION"; | ||
AdjustmentType["Other"] = "OTHER"; | ||
AdjustmentType["Promotion"] = "PROMOTION"; | ||
})(AdjustmentType || (AdjustmentType = {})); | ||
var AssetType; | ||
(function (AssetType) { | ||
AssetType["Binary"] = "BINARY"; | ||
AssetType["Image"] = "IMAGE"; | ||
AssetType["Video"] = "VIDEO"; | ||
})(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 || (CurrencyCode = {})); | ||
var DeletionResult; | ||
(function (DeletionResult) { | ||
/** The entity was successfully deleted */ | ||
DeletionResult["Deleted"] = "DELETED"; | ||
/** Deletion did not take place, reason given in message */ | ||
DeletionResult["NotDeleted"] = "NOT_DELETED"; | ||
})(DeletionResult || (DeletionResult = {})); | ||
var ErrorCode; | ||
(function (ErrorCode) { | ||
ErrorCode["AlreadyLoggedInError"] = "ALREADY_LOGGED_IN_ERROR"; | ||
ErrorCode["CouponCodeExpiredError"] = "COUPON_CODE_EXPIRED_ERROR"; | ||
ErrorCode["CouponCodeInvalidError"] = "COUPON_CODE_INVALID_ERROR"; | ||
ErrorCode["CouponCodeLimitError"] = "COUPON_CODE_LIMIT_ERROR"; | ||
ErrorCode["EmailAddressConflictError"] = "EMAIL_ADDRESS_CONFLICT_ERROR"; | ||
ErrorCode["GuestCheckoutError"] = "GUEST_CHECKOUT_ERROR"; | ||
ErrorCode["IdentifierChangeTokenExpiredError"] = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["IdentifierChangeTokenInvalidError"] = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR"; | ||
ErrorCode["IneligiblePaymentMethodError"] = "INELIGIBLE_PAYMENT_METHOD_ERROR"; | ||
ErrorCode["IneligibleShippingMethodError"] = "INELIGIBLE_SHIPPING_METHOD_ERROR"; | ||
ErrorCode["InsufficientStockError"] = "INSUFFICIENT_STOCK_ERROR"; | ||
ErrorCode["InvalidCredentialsError"] = "INVALID_CREDENTIALS_ERROR"; | ||
ErrorCode["MissingPasswordError"] = "MISSING_PASSWORD_ERROR"; | ||
ErrorCode["NativeAuthStrategyError"] = "NATIVE_AUTH_STRATEGY_ERROR"; | ||
ErrorCode["NegativeQuantityError"] = "NEGATIVE_QUANTITY_ERROR"; | ||
ErrorCode["NotVerifiedError"] = "NOT_VERIFIED_ERROR"; | ||
ErrorCode["NoActiveOrderError"] = "NO_ACTIVE_ORDER_ERROR"; | ||
ErrorCode["OrderLimitError"] = "ORDER_LIMIT_ERROR"; | ||
ErrorCode["OrderModificationError"] = "ORDER_MODIFICATION_ERROR"; | ||
ErrorCode["OrderPaymentStateError"] = "ORDER_PAYMENT_STATE_ERROR"; | ||
ErrorCode["OrderStateTransitionError"] = "ORDER_STATE_TRANSITION_ERROR"; | ||
ErrorCode["PasswordAlreadySetError"] = "PASSWORD_ALREADY_SET_ERROR"; | ||
ErrorCode["PasswordResetTokenExpiredError"] = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["PasswordResetTokenInvalidError"] = "PASSWORD_RESET_TOKEN_INVALID_ERROR"; | ||
ErrorCode["PasswordValidationError"] = "PASSWORD_VALIDATION_ERROR"; | ||
ErrorCode["PaymentDeclinedError"] = "PAYMENT_DECLINED_ERROR"; | ||
ErrorCode["PaymentFailedError"] = "PAYMENT_FAILED_ERROR"; | ||
ErrorCode["UnknownError"] = "UNKNOWN_ERROR"; | ||
ErrorCode["VerificationTokenExpiredError"] = "VERIFICATION_TOKEN_EXPIRED_ERROR"; | ||
ErrorCode["VerificationTokenInvalidError"] = "VERIFICATION_TOKEN_INVALID_ERROR"; | ||
})(ErrorCode || (ErrorCode = {})); | ||
var GlobalFlag; | ||
(function (GlobalFlag) { | ||
GlobalFlag["False"] = "FALSE"; | ||
GlobalFlag["Inherit"] = "INHERIT"; | ||
GlobalFlag["True"] = "TRUE"; | ||
})(GlobalFlag || (GlobalFlag = {})); | ||
var HistoryEntryType; | ||
(function (HistoryEntryType) { | ||
HistoryEntryType["CustomerAddedToGroup"] = "CUSTOMER_ADDED_TO_GROUP"; | ||
HistoryEntryType["CustomerAddressCreated"] = "CUSTOMER_ADDRESS_CREATED"; | ||
HistoryEntryType["CustomerAddressDeleted"] = "CUSTOMER_ADDRESS_DELETED"; | ||
HistoryEntryType["CustomerAddressUpdated"] = "CUSTOMER_ADDRESS_UPDATED"; | ||
HistoryEntryType["CustomerDetailUpdated"] = "CUSTOMER_DETAIL_UPDATED"; | ||
HistoryEntryType["CustomerEmailUpdateRequested"] = "CUSTOMER_EMAIL_UPDATE_REQUESTED"; | ||
HistoryEntryType["CustomerEmailUpdateVerified"] = "CUSTOMER_EMAIL_UPDATE_VERIFIED"; | ||
HistoryEntryType["CustomerNote"] = "CUSTOMER_NOTE"; | ||
HistoryEntryType["CustomerPasswordResetRequested"] = "CUSTOMER_PASSWORD_RESET_REQUESTED"; | ||
HistoryEntryType["CustomerPasswordResetVerified"] = "CUSTOMER_PASSWORD_RESET_VERIFIED"; | ||
HistoryEntryType["CustomerPasswordUpdated"] = "CUSTOMER_PASSWORD_UPDATED"; | ||
HistoryEntryType["CustomerRegistered"] = "CUSTOMER_REGISTERED"; | ||
HistoryEntryType["CustomerRemovedFromGroup"] = "CUSTOMER_REMOVED_FROM_GROUP"; | ||
HistoryEntryType["CustomerVerified"] = "CUSTOMER_VERIFIED"; | ||
HistoryEntryType["OrderCancellation"] = "ORDER_CANCELLATION"; | ||
HistoryEntryType["OrderCouponApplied"] = "ORDER_COUPON_APPLIED"; | ||
HistoryEntryType["OrderCouponRemoved"] = "ORDER_COUPON_REMOVED"; | ||
HistoryEntryType["OrderFulfillment"] = "ORDER_FULFILLMENT"; | ||
HistoryEntryType["OrderFulfillmentTransition"] = "ORDER_FULFILLMENT_TRANSITION"; | ||
HistoryEntryType["OrderModified"] = "ORDER_MODIFIED"; | ||
HistoryEntryType["OrderNote"] = "ORDER_NOTE"; | ||
HistoryEntryType["OrderPaymentTransition"] = "ORDER_PAYMENT_TRANSITION"; | ||
HistoryEntryType["OrderRefundTransition"] = "ORDER_REFUND_TRANSITION"; | ||
HistoryEntryType["OrderStateTransition"] = "ORDER_STATE_TRANSITION"; | ||
})(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["DeAt"] = "de_AT"; | ||
/** Swiss High German */ | ||
LanguageCode["DeCh"] = "de_CH"; | ||
/** Dzongkha */ | ||
LanguageCode["Dz"] = "dz"; | ||
/** Ewe */ | ||
LanguageCode["Ee"] = "ee"; | ||
/** Greek */ | ||
LanguageCode["El"] = "el"; | ||
/** English */ | ||
LanguageCode["En"] = "en"; | ||
/** Australian English */ | ||
LanguageCode["EnAu"] = "en_AU"; | ||
/** Canadian English */ | ||
LanguageCode["EnCa"] = "en_CA"; | ||
/** British English */ | ||
LanguageCode["EnGb"] = "en_GB"; | ||
/** American English */ | ||
LanguageCode["EnUs"] = "en_US"; | ||
/** Esperanto */ | ||
LanguageCode["Eo"] = "eo"; | ||
/** Spanish */ | ||
LanguageCode["Es"] = "es"; | ||
/** European Spanish */ | ||
LanguageCode["EsEs"] = "es_ES"; | ||
/** Mexican Spanish */ | ||
LanguageCode["EsMx"] = "es_MX"; | ||
/** Estonian */ | ||
LanguageCode["Et"] = "et"; | ||
/** Basque */ | ||
LanguageCode["Eu"] = "eu"; | ||
/** Persian */ | ||
LanguageCode["Fa"] = "fa"; | ||
/** Dari */ | ||
LanguageCode["FaAf"] = "fa_AF"; | ||
/** Fulah */ | ||
LanguageCode["Ff"] = "ff"; | ||
/** Finnish */ | ||
LanguageCode["Fi"] = "fi"; | ||
/** Faroese */ | ||
LanguageCode["Fo"] = "fo"; | ||
/** French */ | ||
LanguageCode["Fr"] = "fr"; | ||
/** Canadian French */ | ||
LanguageCode["FrCa"] = "fr_CA"; | ||
/** Swiss French */ | ||
LanguageCode["FrCh"] = "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["NlBe"] = "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["PtBr"] = "pt_BR"; | ||
/** European Portuguese */ | ||
LanguageCode["PtPt"] = "pt_PT"; | ||
/** Quechua */ | ||
LanguageCode["Qu"] = "qu"; | ||
/** Romansh */ | ||
LanguageCode["Rm"] = "rm"; | ||
/** Rundi */ | ||
LanguageCode["Rn"] = "rn"; | ||
/** Romanian */ | ||
LanguageCode["Ro"] = "ro"; | ||
/** Moldavian */ | ||
LanguageCode["RoMd"] = "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["SwCd"] = "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["ZhHans"] = "zh_Hans"; | ||
/** Traditional Chinese */ | ||
LanguageCode["ZhHant"] = "zh_Hant"; | ||
/** Zulu */ | ||
LanguageCode["Zu"] = "zu"; | ||
})(LanguageCode || (LanguageCode = {})); | ||
var LogicalOperator; | ||
(function (LogicalOperator) { | ||
LogicalOperator["And"] = "AND"; | ||
LogicalOperator["Or"] = "OR"; | ||
})(LogicalOperator || (LogicalOperator = {})); | ||
var OrderType; | ||
(function (OrderType) { | ||
OrderType["Aggregate"] = "Aggregate"; | ||
OrderType["Regular"] = "Regular"; | ||
OrderType["Seller"] = "Seller"; | ||
})(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 || (Permission = {})); | ||
var SortOrder; | ||
(function (SortOrder) { | ||
SortOrder["Asc"] = "ASC"; | ||
SortOrder["Desc"] = "DESC"; | ||
})(SortOrder || (SortOrder = {})); | ||
export { AdjustmentType, AssetType, CurrencyCode, DeletionResult, ErrorCode, GlobalFlag, HistoryEntryType, LanguageCode, LogicalOperator, OrderType, Permission, SortOrder, VendureOrderClient }; |
@@ -9,3 +9,2 @@ import { GraphQLClient } from 'graphql-request'; | ||
export type EligibleShippingMethod<T> = ShippingMethodQuote & T; | ||
export type CurrentUser = CurrentUserFieldsFragment; | ||
/** | ||
@@ -57,4 +56,4 @@ * @example | ||
requestPasswordReset(emailAddress: string): Promise<Success | ErrorResult | undefined>; | ||
resetPassword(password: string, token: string): Promise<CurrentUser>; | ||
login(username: string, password: string, rememberMe?: boolean): Promise<CurrentUser>; | ||
resetPassword(password: string, token: string): Promise<CurrentUserFieldsFragment>; | ||
login(username: string, password: string, rememberMe?: boolean): Promise<CurrentUserFieldsFragment>; | ||
/** | ||
@@ -61,0 +60,0 @@ * Throw if result is an ErrorResult |
{ | ||
"name": "@pinelab/vendure-order-client", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "A tiny, framework agnostic client for managing active orders and checkout with Vendure.", | ||
@@ -40,3 +40,3 @@ "author": "Martijn van de Brug <martijn@pinelab.studio>", | ||
}, | ||
"gitHead": "91269e33ee94c5f14b2282aea734632344f96225" | ||
"gitHead": "23fff139c43f73505867fe448d377f3b2acd9baf" | ||
} |
@@ -30,3 +30,3 @@ # Vendure Client | ||
<script setup lang="ts"> | ||
import { VendureOrderClient } from 'vendure-order-client'; | ||
import { VendureOrderClient } from '@pinelab/vendure-order-client'; | ||
import { useStore } from '@nanostores/vue'; | ||
@@ -49,3 +49,3 @@ | ||
```ts | ||
import { VendureOrderClient } from 'vendure-order-client'; | ||
import { VendureOrderClient } from '@pinelab/vendure-order-client'; | ||
@@ -84,3 +84,3 @@ // Make sure the fragment name is 'AdditionalOrderFields' | ||
```ts | ||
import { Id, VendureOrderClient } from 'vendure-order-client'; | ||
import { Id, VendureOrderClient } from '@pinelab/vendure-order-client'; | ||
import { gql } from 'graphql-request'; | ||
@@ -110,3 +110,6 @@ | ||
```ts | ||
import { VendureOrderClient, VendureOrderEvents } from 'vendure-order-client'; | ||
import { | ||
VendureOrderClient, | ||
VendureOrderEvents, | ||
} from '@pinelab/vendure-order-client'; | ||
@@ -131,3 +134,3 @@ function showNotification(type: string, e: VendureOrderEvents['item-added']) { | ||
// Checkout VendureOrderEvents for all available events | ||
import { VendureOrderEvents } from 'vendure-order-client'; | ||
import { VendureOrderEvents } from '@pinelab/vendure-order-client'; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229936
6601
132