@vendure/admin-ui-plugin 2.0.0-next.1 → 2.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/admin-ui/165.6aeb6ecf722558ee.js +2 -0
- package/lib/admin-ui/165.6aeb6ecf722558ee.js.map +1 -0
- package/lib/admin-ui/239.a68e402e10b798f1.js +2 -0
- package/lib/admin-ui/{239.a5ff17f86dbb8ca2.js.map → 239.a68e402e10b798f1.js.map} +1 -1
- package/lib/admin-ui/26.477d6446134d960e.js +2 -0
- package/lib/admin-ui/{26.2b116578fae1ff6d.js.map → 26.477d6446134d960e.js.map} +1 -1
- package/lib/admin-ui/316.07f9c805e4c95dc8.js +2 -0
- package/lib/admin-ui/{316.bc52480ffba2e8c2.js.map → 316.07f9c805e4c95dc8.js.map} +1 -1
- package/lib/admin-ui/349.bf78d0411766ae60.js +2 -0
- package/lib/admin-ui/349.bf78d0411766ae60.js.map +1 -0
- package/lib/admin-ui/356.3a6951fe80b5a001.js +2 -0
- package/lib/admin-ui/{356.52ad52413445b7ae.js.map → 356.3a6951fe80b5a001.js.map} +1 -1
- package/lib/admin-ui/600.8f0165a8d1255cd0.js +2 -0
- package/lib/admin-ui/{600.7fb6e9620c160fac.js.map → 600.8f0165a8d1255cd0.js.map} +1 -1
- package/lib/admin-ui/625.adebc6a7222bde82.js +2 -0
- package/lib/admin-ui/{625.dcecbc707b7d4b98.js.map → 625.adebc6a7222bde82.js.map} +1 -1
- package/lib/admin-ui/849.e407e92bd9a7f25a.js +2 -0
- package/lib/admin-ui/849.e407e92bd9a7f25a.js.map +1 -0
- package/lib/admin-ui/i18n-messages/cs.json +2 -0
- package/lib/admin-ui/i18n-messages/de.json +3 -0
- package/lib/admin-ui/i18n-messages/en.json +3 -1
- package/lib/admin-ui/i18n-messages/es.json +2 -0
- package/lib/admin-ui/i18n-messages/fr.json +2 -0
- package/lib/admin-ui/i18n-messages/it.json +2 -0
- package/lib/admin-ui/i18n-messages/pl.json +2 -0
- package/lib/admin-ui/i18n-messages/pt_BR.json +2 -0
- package/lib/admin-ui/i18n-messages/pt_PT.json +2 -0
- package/lib/admin-ui/i18n-messages/ru.json +2 -0
- package/lib/admin-ui/i18n-messages/uk.json +2 -0
- package/lib/admin-ui/i18n-messages/zh_Hans.json +2 -0
- package/lib/admin-ui/i18n-messages/zh_Hant.json +2 -0
- package/lib/admin-ui/index.html +2 -2
- package/lib/admin-ui/main.4fea565739b4142c.js +2757 -0
- package/lib/admin-ui/main.4fea565739b4142c.js.map +1 -0
- package/lib/admin-ui/runtime.fd9e61c13b055601.js +2 -0
- package/lib/admin-ui/{runtime.8bab7ff9a8ad6db6.js.map → runtime.fd9e61c13b055601.js.map} +1 -1
- package/lib/admin-ui/styles/global/_forms.scss +3 -4
- package/lib/admin-ui/styles/global/_overrides.scss +6 -0
- package/lib/admin-ui/{styles.fb1aaa9a9baed129.css → styles.8ce1757596f10cc1.css} +2 -2
- package/lib/admin-ui/{styles.fb1aaa9a9baed129.css.map → styles.8ce1757596f10cc1.css.map} +1 -1
- package/lib/admin-ui/vendure-ui-config.json +25 -10
- package/lib/src/plugin.js +1 -0
- package/lib/src/plugin.js.map +1 -1
- package/package.json +4 -4
- package/lib/admin-ui/165.acb9630c44bb0271.js +0 -2
- package/lib/admin-ui/165.acb9630c44bb0271.js.map +0 -1
- package/lib/admin-ui/239.a5ff17f86dbb8ca2.js +0 -2
- package/lib/admin-ui/26.2b116578fae1ff6d.js +0 -2
- package/lib/admin-ui/316.bc52480ffba2e8c2.js +0 -2
- package/lib/admin-ui/349.6f8a30060cc86ada.js +0 -2
- package/lib/admin-ui/349.6f8a30060cc86ada.js.map +0 -1
- package/lib/admin-ui/356.52ad52413445b7ae.js +0 -2
- package/lib/admin-ui/600.7fb6e9620c160fac.js +0 -2
- package/lib/admin-ui/625.dcecbc707b7d4b98.js +0 -2
- package/lib/admin-ui/849.56aaa5a0d453cfdf.js +0 -2
- package/lib/admin-ui/849.56aaa5a0d453cfdf.js.map +0 -1
- package/lib/admin-ui/main.8a7673f3d80ec5da.js +0 -2739
- package/lib/admin-ui/main.8a7673f3d80ec5da.js.map +0 -1
- package/lib/admin-ui/runtime.8bab7ff9a8ad6db6.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkvendure_admin=self.webpackChunkvendure_admin||[]).push([[165],{8165:(F,E)=>{var R;E.As=E.y3=E.Fn=E.sp=E.iY=E.Tv=E.jK=E.Pc=E.NE=E.h3=E.S2=void 0,(R=E.S2||(E.S2={})).DISTRIBUTED_ORDER_PROMOTION="DISTRIBUTED_ORDER_PROMOTION",R.OTHER="OTHER",R.PROMOTION="PROMOTION",function(R){R.BINARY="BINARY",R.IMAGE="IMAGE",R.VIDEO="VIDEO"}(E.h3||(E.h3={})),function(R){R.AED="AED",R.AFN="AFN",R.ALL="ALL",R.AMD="AMD",R.ANG="ANG",R.AOA="AOA",R.ARS="ARS",R.AUD="AUD",R.AWG="AWG",R.AZN="AZN",R.BAM="BAM",R.BBD="BBD",R.BDT="BDT",R.BGN="BGN",R.BHD="BHD",R.BIF="BIF",R.BMD="BMD",R.BND="BND",R.BOB="BOB",R.BRL="BRL",R.BSD="BSD",R.BTN="BTN",R.BWP="BWP",R.BYN="BYN",R.BZD="BZD",R.CAD="CAD",R.CDF="CDF",R.CHF="CHF",R.CLP="CLP",R.CNY="CNY",R.COP="COP",R.CRC="CRC",R.CUC="CUC",R.CUP="CUP",R.CVE="CVE",R.CZK="CZK",R.DJF="DJF",R.DKK="DKK",R.DOP="DOP",R.DZD="DZD",R.EGP="EGP",R.ERN="ERN",R.ETB="ETB",R.EUR="EUR",R.FJD="FJD",R.FKP="FKP",R.GBP="GBP",R.GEL="GEL",R.GHS="GHS",R.GIP="GIP",R.GMD="GMD",R.GNF="GNF",R.GTQ="GTQ",R.GYD="GYD",R.HKD="HKD",R.HNL="HNL",R.HRK="HRK",R.HTG="HTG",R.HUF="HUF",R.IDR="IDR",R.ILS="ILS",R.INR="INR",R.IQD="IQD",R.IRR="IRR",R.ISK="ISK",R.JMD="JMD",R.JOD="JOD",R.JPY="JPY",R.KES="KES",R.KGS="KGS",R.KHR="KHR",R.KMF="KMF",R.KPW="KPW",R.KRW="KRW",R.KWD="KWD",R.KYD="KYD",R.KZT="KZT",R.LAK="LAK",R.LBP="LBP",R.LKR="LKR",R.LRD="LRD",R.LSL="LSL",R.LYD="LYD",R.MAD="MAD",R.MDL="MDL",R.MGA="MGA",R.MKD="MKD",R.MMK="MMK",R.MNT="MNT",R.MOP="MOP",R.MRU="MRU",R.MUR="MUR",R.MVR="MVR",R.MWK="MWK",R.MXN="MXN",R.MYR="MYR",R.MZN="MZN",R.NAD="NAD",R.NGN="NGN",R.NIO="NIO",R.NOK="NOK",R.NPR="NPR",R.NZD="NZD",R.OMR="OMR",R.PAB="PAB",R.PEN="PEN",R.PGK="PGK",R.PHP="PHP",R.PKR="PKR",R.PLN="PLN",R.PYG="PYG",R.QAR="QAR",R.RON="RON",R.RSD="RSD",R.RUB="RUB",R.RWF="RWF",R.SAR="SAR",R.SBD="SBD",R.SCR="SCR",R.SDG="SDG",R.SEK="SEK",R.SGD="SGD",R.SHP="SHP",R.SLL="SLL",R.SOS="SOS",R.SRD="SRD",R.SSP="SSP",R.STN="STN",R.SVC="SVC",R.SYP="SYP",R.SZL="SZL",R.THB="THB",R.TJS="TJS",R.TMT="TMT",R.TND="TND",R.TOP="TOP",R.TRY="TRY",R.TTD="TTD",R.TWD="TWD",R.TZS="TZS",R.UAH="UAH",R.UGX="UGX",R.USD="USD",R.UYU="UYU",R.UZS="UZS",R.VES="VES",R.VND="VND",R.VUV="VUV",R.WST="WST",R.XAF="XAF",R.XCD="XCD",R.XOF="XOF",R.XPF="XPF",R.YER="YER",R.ZAR="ZAR",R.ZMW="ZMW",R.ZWL="ZWL"}(E.NE||(E.NE={})),function(R){R.DELETED="DELETED",R.NOT_DELETED="NOT_DELETED"}(E.Pc||(E.Pc={})),function(R){R.ALREADY_LOGGED_IN_ERROR="ALREADY_LOGGED_IN_ERROR",R.COUPON_CODE_EXPIRED_ERROR="COUPON_CODE_EXPIRED_ERROR",R.COUPON_CODE_INVALID_ERROR="COUPON_CODE_INVALID_ERROR",R.COUPON_CODE_LIMIT_ERROR="COUPON_CODE_LIMIT_ERROR",R.EMAIL_ADDRESS_CONFLICT_ERROR="EMAIL_ADDRESS_CONFLICT_ERROR",R.IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR="IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",R.IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR="IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",R.INELIGIBLE_PAYMENT_METHOD_ERROR="INELIGIBLE_PAYMENT_METHOD_ERROR",R.INELIGIBLE_SHIPPING_METHOD_ERROR="INELIGIBLE_SHIPPING_METHOD_ERROR",R.INSUFFICIENT_STOCK_ERROR="INSUFFICIENT_STOCK_ERROR",R.INVALID_CREDENTIALS_ERROR="INVALID_CREDENTIALS_ERROR",R.MISSING_PASSWORD_ERROR="MISSING_PASSWORD_ERROR",R.NATIVE_AUTH_STRATEGY_ERROR="NATIVE_AUTH_STRATEGY_ERROR",R.NEGATIVE_QUANTITY_ERROR="NEGATIVE_QUANTITY_ERROR",R.NOT_VERIFIED_ERROR="NOT_VERIFIED_ERROR",R.NO_ACTIVE_ORDER_ERROR="NO_ACTIVE_ORDER_ERROR",R.ORDER_LIMIT_ERROR="ORDER_LIMIT_ERROR",R.ORDER_MODIFICATION_ERROR="ORDER_MODIFICATION_ERROR",R.ORDER_PAYMENT_STATE_ERROR="ORDER_PAYMENT_STATE_ERROR",R.ORDER_STATE_TRANSITION_ERROR="ORDER_STATE_TRANSITION_ERROR",R.PASSWORD_ALREADY_SET_ERROR="PASSWORD_ALREADY_SET_ERROR",R.PASSWORD_RESET_TOKEN_EXPIRED_ERROR="PASSWORD_RESET_TOKEN_EXPIRED_ERROR",R.PASSWORD_RESET_TOKEN_INVALID_ERROR="PASSWORD_RESET_TOKEN_INVALID_ERROR",R.PASSWORD_VALIDATION_ERROR="PASSWORD_VALIDATION_ERROR",R.PAYMENT_DECLINED_ERROR="PAYMENT_DECLINED_ERROR",R.PAYMENT_FAILED_ERROR="PAYMENT_FAILED_ERROR",R.UNKNOWN_ERROR="UNKNOWN_ERROR",R.VERIFICATION_TOKEN_EXPIRED_ERROR="VERIFICATION_TOKEN_EXPIRED_ERROR",R.VERIFICATION_TOKEN_INVALID_ERROR="VERIFICATION_TOKEN_INVALID_ERROR"}(E.jK||(E.jK={})),function(R){R.FALSE="FALSE",R.INHERIT="INHERIT",R.TRUE="TRUE"}(E.Tv||(E.Tv={})),function(R){R.CUSTOMER_ADDED_TO_GROUP="CUSTOMER_ADDED_TO_GROUP",R.CUSTOMER_ADDRESS_CREATED="CUSTOMER_ADDRESS_CREATED",R.CUSTOMER_ADDRESS_DELETED="CUSTOMER_ADDRESS_DELETED",R.CUSTOMER_ADDRESS_UPDATED="CUSTOMER_ADDRESS_UPDATED",R.CUSTOMER_DETAIL_UPDATED="CUSTOMER_DETAIL_UPDATED",R.CUSTOMER_EMAIL_UPDATE_REQUESTED="CUSTOMER_EMAIL_UPDATE_REQUESTED",R.CUSTOMER_EMAIL_UPDATE_VERIFIED="CUSTOMER_EMAIL_UPDATE_VERIFIED",R.CUSTOMER_NOTE="CUSTOMER_NOTE",R.CUSTOMER_PASSWORD_RESET_REQUESTED="CUSTOMER_PASSWORD_RESET_REQUESTED",R.CUSTOMER_PASSWORD_RESET_VERIFIED="CUSTOMER_PASSWORD_RESET_VERIFIED",R.CUSTOMER_PASSWORD_UPDATED="CUSTOMER_PASSWORD_UPDATED",R.CUSTOMER_REGISTERED="CUSTOMER_REGISTERED",R.CUSTOMER_REMOVED_FROM_GROUP="CUSTOMER_REMOVED_FROM_GROUP",R.CUSTOMER_VERIFIED="CUSTOMER_VERIFIED",R.ORDER_CANCELLATION="ORDER_CANCELLATION",R.ORDER_COUPON_APPLIED="ORDER_COUPON_APPLIED",R.ORDER_COUPON_REMOVED="ORDER_COUPON_REMOVED",R.ORDER_FULFILLMENT="ORDER_FULFILLMENT",R.ORDER_FULFILLMENT_TRANSITION="ORDER_FULFILLMENT_TRANSITION",R.ORDER_MODIFIED="ORDER_MODIFIED",R.ORDER_NOTE="ORDER_NOTE",R.ORDER_PAYMENT_TRANSITION="ORDER_PAYMENT_TRANSITION",R.ORDER_REFUND_TRANSITION="ORDER_REFUND_TRANSITION",R.ORDER_STATE_TRANSITION="ORDER_STATE_TRANSITION"}(E.iY||(E.iY={})),function(R){R.af="af",R.ak="ak",R.am="am",R.ar="ar",R.as="as",R.az="az",R.be="be",R.bg="bg",R.bm="bm",R.bn="bn",R.bo="bo",R.br="br",R.bs="bs",R.ca="ca",R.ce="ce",R.co="co",R.cs="cs",R.cu="cu",R.cy="cy",R.da="da",R.de="de",R.de_AT="de_AT",R.de_CH="de_CH",R.dz="dz",R.ee="ee",R.el="el",R.en="en",R.en_AU="en_AU",R.en_CA="en_CA",R.en_GB="en_GB",R.en_US="en_US",R.eo="eo",R.es="es",R.es_ES="es_ES",R.es_MX="es_MX",R.et="et",R.eu="eu",R.fa="fa",R.fa_AF="fa_AF",R.ff="ff",R.fi="fi",R.fo="fo",R.fr="fr",R.fr_CA="fr_CA",R.fr_CH="fr_CH",R.fy="fy",R.ga="ga",R.gd="gd",R.gl="gl",R.gu="gu",R.gv="gv",R.ha="ha",R.he="he",R.hi="hi",R.hr="hr",R.ht="ht",R.hu="hu",R.hy="hy",R.ia="ia",R.id="id",R.ig="ig",R.ii="ii",R.is="is",R.it="it",R.ja="ja",R.jv="jv",R.ka="ka",R.ki="ki",R.kk="kk",R.kl="kl",R.km="km",R.kn="kn",R.ko="ko",R.ks="ks",R.ku="ku",R.kw="kw",R.ky="ky",R.la="la",R.lb="lb",R.lg="lg",R.ln="ln",R.lo="lo",R.lt="lt",R.lu="lu",R.lv="lv",R.mg="mg",R.mi="mi",R.mk="mk",R.ml="ml",R.mn="mn",R.mr="mr",R.ms="ms",R.mt="mt",R.my="my",R.nb="nb",R.nd="nd",R.ne="ne",R.nl="nl",R.nl_BE="nl_BE",R.nn="nn",R.ny="ny",R.om="om",R.or="or",R.os="os",R.pa="pa",R.pl="pl",R.ps="ps",R.pt="pt",R.pt_BR="pt_BR",R.pt_PT="pt_PT",R.qu="qu",R.rm="rm",R.rn="rn",R.ro="ro",R.ro_MD="ro_MD",R.ru="ru",R.rw="rw",R.sa="sa",R.sd="sd",R.se="se",R.sg="sg",R.si="si",R.sk="sk",R.sl="sl",R.sm="sm",R.sn="sn",R.so="so",R.sq="sq",R.sr="sr",R.st="st",R.su="su",R.sv="sv",R.sw="sw",R.sw_CD="sw_CD",R.ta="ta",R.te="te",R.tg="tg",R.th="th",R.ti="ti",R.tk="tk",R.to="to",R.tr="tr",R.tt="tt",R.ug="ug",R.uk="uk",R.ur="ur",R.uz="uz",R.vi="vi",R.vo="vo",R.wo="wo",R.xh="xh",R.yi="yi",R.yo="yo",R.zh="zh",R.zh_Hans="zh_Hans",R.zh_Hant="zh_Hant",R.zu="zu"}(E.sp||(E.sp={})),function(R){R.AND="AND",R.OR="OR"}(E.Fn||(E.Fn={})),function(R){R.Authenticated="Authenticated",R.CreateAdministrator="CreateAdministrator",R.CreateAsset="CreateAsset",R.CreateCatalog="CreateCatalog",R.CreateChannel="CreateChannel",R.CreateCollection="CreateCollection",R.CreateCountry="CreateCountry",R.CreateCustomer="CreateCustomer",R.CreateCustomerGroup="CreateCustomerGroup",R.CreateFacet="CreateFacet",R.CreateOrder="CreateOrder",R.CreatePaymentMethod="CreatePaymentMethod",R.CreateProduct="CreateProduct",R.CreatePromotion="CreatePromotion",R.CreateSettings="CreateSettings",R.CreateShippingMethod="CreateShippingMethod",R.CreateSystem="CreateSystem",R.CreateTag="CreateTag",R.CreateTaxCategory="CreateTaxCategory",R.CreateTaxRate="CreateTaxRate",R.CreateZone="CreateZone",R.DeleteAdministrator="DeleteAdministrator",R.DeleteAsset="DeleteAsset",R.DeleteCatalog="DeleteCatalog",R.DeleteChannel="DeleteChannel",R.DeleteCollection="DeleteCollection",R.DeleteCountry="DeleteCountry",R.DeleteCustomer="DeleteCustomer",R.DeleteCustomerGroup="DeleteCustomerGroup",R.DeleteFacet="DeleteFacet",R.DeleteOrder="DeleteOrder",R.DeletePaymentMethod="DeletePaymentMethod",R.DeleteProduct="DeleteProduct",R.DeletePromotion="DeletePromotion",R.DeleteSettings="DeleteSettings",R.DeleteShippingMethod="DeleteShippingMethod",R.DeleteSystem="DeleteSystem",R.DeleteTag="DeleteTag",R.DeleteTaxCategory="DeleteTaxCategory",R.DeleteTaxRate="DeleteTaxRate",R.DeleteZone="DeleteZone",R.Owner="Owner",R.Public="Public",R.ReadAdministrator="ReadAdministrator",R.ReadAsset="ReadAsset",R.ReadCatalog="ReadCatalog",R.ReadChannel="ReadChannel",R.ReadCollection="ReadCollection",R.ReadCountry="ReadCountry",R.ReadCustomer="ReadCustomer",R.ReadCustomerGroup="ReadCustomerGroup",R.ReadFacet="ReadFacet",R.ReadOrder="ReadOrder",R.ReadPaymentMethod="ReadPaymentMethod",R.ReadProduct="ReadProduct",R.ReadPromotion="ReadPromotion",R.ReadSettings="ReadSettings",R.ReadShippingMethod="ReadShippingMethod",R.ReadSystem="ReadSystem",R.ReadTag="ReadTag",R.ReadTaxCategory="ReadTaxCategory",R.ReadTaxRate="ReadTaxRate",R.ReadZone="ReadZone",R.SuperAdmin="SuperAdmin",R.UpdateAdministrator="UpdateAdministrator",R.UpdateAsset="UpdateAsset",R.UpdateCatalog="UpdateCatalog",R.UpdateChannel="UpdateChannel",R.UpdateCollection="UpdateCollection",R.UpdateCountry="UpdateCountry",R.UpdateCustomer="UpdateCustomer",R.UpdateCustomerGroup="UpdateCustomerGroup",R.UpdateFacet="UpdateFacet",R.UpdateGlobalSettings="UpdateGlobalSettings",R.UpdateOrder="UpdateOrder",R.UpdatePaymentMethod="UpdatePaymentMethod",R.UpdateProduct="UpdateProduct",R.UpdatePromotion="UpdatePromotion",R.UpdateSettings="UpdateSettings",R.UpdateShippingMethod="UpdateShippingMethod",R.UpdateSystem="UpdateSystem",R.UpdateTag="UpdateTag",R.UpdateTaxCategory="UpdateTaxCategory",R.UpdateTaxRate="UpdateTaxRate",R.UpdateZone="UpdateZone"}(E.y3||(E.y3={})),function(R){R.ASC="ASC",R.DESC="DESC"}(E.As||(E.As={}))}}]);
|
|
2
|
+
//# sourceMappingURL=165.6aeb6ecf722558ee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":"+GAoDYA,+EAAc,KACxBA,0DACAA,gBACAA,wBAmCF,SAAYC,GACVA,kBACAA,gBACAA,gBAHF,CAAYC,YAAS,KA2RrB,SAAYC,GAEVA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YAEAA,YA1TF,CAAYD,YAAY,KAmdxB,SAAYE,GAEVA,oBAEAA,4BAJF,CAAYF,YAAc,KAuB1B,SAAYG,GACVA,oDACAA,wDACAA,wDACAA,oDACAA,8DACAA,gFACAA,gFACAA,oEACAA,sEACAA,sDACAA,wDACAA,kDACAA,0DACAA,oDACAA,0CACAA,gDACAA,wCACAA,sDACAA,wDACAA,8DACAA,0DACAA,0EACAA,0EACAA,wDACAA,kDACAA,8CACAA,gCACAA,sEACAA,sEA7BF,CAAYH,YAAS,KAwKrB,SAAYI,GACVA,gBACAA,oBACAA,cAHF,CAAYJ,YAAU,KA+CtB,SAAYK,GACVA,oDACAA,sDACAA,sDACAA,sDACAA,oDACAA,oEACAA,kEACAA,gCACAA,wEACAA,sEACAA,wDACAA,4CACAA,4DACAA,wCACAA,0CACAA,8CACAA,8CACAA,wCACAA,8DACAA,kCACAA,0BACAA,sDACAA,oDACAA,kDAxBF,CAAYL,YAAgB,KAqH5B,SAAYM,GAEVA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,gBAEAA,gBAEAA,gBAEAA,UAEAA,UAEAA,gBAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,gBAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,UAEAA,oBAEAA,oBAEAA,UA1TF,CAAYN,YAAY,KAkVxB,SAAYO,GACVA,YACAA,UAFF,CAAYP,YAAe,KA+sB3B,SAAYQ,GAEVA,gCAEAA,4CAEAA,4BAEAA,gCAEAA,gCAEAA,sCAEAA,gCAEAA,kCAEAA,4CAEAA,4BAEAA,4BAEAA,4CAEAA,gCAEAA,oCAEAA,kCAEAA,8CAEAA,8BAEAA,wBAEAA,wCAEAA,gCAEAA,0BAEAA,4CAEAA,4BAEAA,gCAEAA,gCAEAA,sCAEAA,gCAEAA,kCAEAA,4CAEAA,4BAEAA,4BAEAA,4CAEAA,gCAEAA,oCAEAA,kCAEAA,8CAEAA,8BAEAA,wBAEAA,wCAEAA,gCAEAA,0BAEAA,gBAEAA,kBAEAA,wCAEAA,wBAEAA,4BAEAA,4BAEAA,kCAEAA,4BAEAA,8BAEAA,wCAEAA,wBAEAA,wBAEAA,wCAEAA,4BAEAA,gCAEAA,8BAEAA,0CAEAA,0BAEAA,oBAEAA,oCAEAA,4BAEAA,sBAEAA,0BAEAA,4CAEAA,4BAEAA,gCAEAA,gCAEAA,sCAEAA,gCAEAA,kCAEAA,4CAEAA,4BAEAA,8CAEAA,4BAEAA,4CAEAA,gCAEAA,oCAEAA,kCAEAA,8CAEAA,8BAEAA,wBAEAA,wCAEAA,gCAEAA,0BA1KF,CAAYR,YAAU,KAwrBtB,SAAYS,GACVA,YACAA,cAFF,CAAYT,YAAS","names":["AdjustmentType","AssetType","exports","CurrencyCode","DeletionResult","ErrorCode","GlobalFlag","HistoryEntryType","LanguageCode","LogicalOperator","Permission","SortOrder"],"sources":["../common/src/generated-shop-types.ts"],"sourcesContent":["// tslint:disable\r\nexport type Maybe<T> = T;\r\nexport type InputMaybe<T> = T;\r\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\r\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\r\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\r\n/** All built-in and custom scalars, mapped to their actual values */\r\nexport type Scalars = {\r\n ID: string | number;\r\n String: string;\r\n Boolean: boolean;\r\n Int: number;\r\n Float: number;\r\n /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */\r\n DateTime: any;\r\n /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */\r\n JSON: any;\r\n /** The `Upload` scalar type represents a file upload. */\r\n Upload: any;\r\n};\r\n\r\nexport type ActiveOrderResult = NoActiveOrderError | Order;\r\n\r\nexport type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError;\r\n\r\nexport type Address = Node & {\r\n __typename?: 'Address';\r\n city?: Maybe<Scalars['String']>;\r\n company?: Maybe<Scalars['String']>;\r\n country: Country;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n defaultBillingAddress?: Maybe<Scalars['Boolean']>;\r\n defaultShippingAddress?: Maybe<Scalars['Boolean']>;\r\n fullName?: Maybe<Scalars['String']>;\r\n id: Scalars['ID'];\r\n phoneNumber?: Maybe<Scalars['String']>;\r\n postalCode?: Maybe<Scalars['String']>;\r\n province?: Maybe<Scalars['String']>;\r\n streetLine1: Scalars['String'];\r\n streetLine2?: Maybe<Scalars['String']>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type Adjustment = {\r\n __typename?: 'Adjustment';\r\n adjustmentSource: Scalars['String'];\r\n amount: Scalars['Int'];\r\n description: Scalars['String'];\r\n type: AdjustmentType;\r\n};\r\n\r\nexport enum AdjustmentType {\r\n DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION',\r\n OTHER = 'OTHER',\r\n PROMOTION = 'PROMOTION'\r\n}\r\n\r\n/** Returned when attempting to set the Customer for an Order when already logged in. */\r\nexport type AlreadyLoggedInError = ErrorResult & {\r\n __typename?: 'AlreadyLoggedInError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order;\r\n\r\nexport type Asset = Node & {\r\n __typename?: 'Asset';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n fileSize: Scalars['Int'];\r\n focalPoint?: Maybe<Coordinate>;\r\n height: Scalars['Int'];\r\n id: Scalars['ID'];\r\n mimeType: Scalars['String'];\r\n name: Scalars['String'];\r\n preview: Scalars['String'];\r\n source: Scalars['String'];\r\n type: AssetType;\r\n updatedAt: Scalars['DateTime'];\r\n width: Scalars['Int'];\r\n};\r\n\r\nexport type AssetList = PaginatedList & {\r\n __typename?: 'AssetList';\r\n items: Array<Asset>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport enum AssetType {\r\n BINARY = 'BINARY',\r\n IMAGE = 'IMAGE',\r\n VIDEO = 'VIDEO'\r\n}\r\n\r\nexport type AuthenticationInput = {\r\n native?: InputMaybe<NativeAuthInput>;\r\n};\r\n\r\nexport type AuthenticationMethod = Node & {\r\n __typename?: 'AuthenticationMethod';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n strategy: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError;\r\n\r\nexport type BooleanCustomFieldConfig = CustomField & {\r\n __typename?: 'BooleanCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\n/** Operators for filtering on a list of Boolean fields */\r\nexport type BooleanListOperators = {\r\n inList: Scalars['Boolean'];\r\n};\r\n\r\n/** Operators for filtering on a Boolean field */\r\nexport type BooleanOperators = {\r\n eq?: InputMaybe<Scalars['Boolean']>;\r\n};\r\n\r\nexport type Channel = Node & {\r\n __typename?: 'Channel';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n currencyCode: CurrencyCode;\r\n customFields?: Maybe<Scalars['JSON']>;\r\n defaultLanguageCode: LanguageCode;\r\n defaultShippingZone?: Maybe<Zone>;\r\n defaultTaxZone?: Maybe<Zone>;\r\n id: Scalars['ID'];\r\n pricesIncludeTax: Scalars['Boolean'];\r\n token: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type Collection = Node & {\r\n __typename?: 'Collection';\r\n assets: Array<Asset>;\r\n breadcrumbs: Array<CollectionBreadcrumb>;\r\n children?: Maybe<Array<Collection>>;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n featuredAsset?: Maybe<Asset>;\r\n filters: Array<ConfigurableOperation>;\r\n id: Scalars['ID'];\r\n languageCode?: Maybe<LanguageCode>;\r\n name: Scalars['String'];\r\n parent?: Maybe<Collection>;\r\n position: Scalars['Int'];\r\n productVariants: ProductVariantList;\r\n slug: Scalars['String'];\r\n translations: Array<CollectionTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n\r\nexport type CollectionProductVariantsArgs = {\r\n options?: InputMaybe<ProductVariantListOptions>;\r\n};\r\n\r\nexport type CollectionBreadcrumb = {\r\n __typename?: 'CollectionBreadcrumb';\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n slug: Scalars['String'];\r\n};\r\n\r\nexport type CollectionFilterParameter = {\r\n createdAt?: InputMaybe<DateOperators>;\r\n description?: InputMaybe<StringOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n languageCode?: InputMaybe<StringOperators>;\r\n name?: InputMaybe<StringOperators>;\r\n position?: InputMaybe<NumberOperators>;\r\n slug?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type CollectionList = PaginatedList & {\r\n __typename?: 'CollectionList';\r\n items: Array<Collection>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type CollectionListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<CollectionFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<CollectionSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\n/**\r\n * Which Collections are present in the products returned\r\n * by the search, and in what quantity.\r\n */\r\nexport type CollectionResult = {\r\n __typename?: 'CollectionResult';\r\n collection: Collection;\r\n count: Scalars['Int'];\r\n};\r\n\r\nexport type CollectionSortParameter = {\r\n createdAt?: InputMaybe<SortOrder>;\r\n description?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n name?: InputMaybe<SortOrder>;\r\n position?: InputMaybe<SortOrder>;\r\n slug?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport type CollectionTranslation = {\r\n __typename?: 'CollectionTranslation';\r\n createdAt: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n slug: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ConfigArg = {\r\n __typename?: 'ConfigArg';\r\n name: Scalars['String'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type ConfigArgDefinition = {\r\n __typename?: 'ConfigArgDefinition';\r\n defaultValue?: Maybe<Scalars['JSON']>;\r\n description?: Maybe<Scalars['String']>;\r\n label?: Maybe<Scalars['String']>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n required: Scalars['Boolean'];\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type ConfigArgInput = {\r\n name: Scalars['String'];\r\n /** A JSON stringified representation of the actual value */\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type ConfigurableOperation = {\r\n __typename?: 'ConfigurableOperation';\r\n args: Array<ConfigArg>;\r\n code: Scalars['String'];\r\n};\r\n\r\nexport type ConfigurableOperationDefinition = {\r\n __typename?: 'ConfigurableOperationDefinition';\r\n args: Array<ConfigArgDefinition>;\r\n code: Scalars['String'];\r\n description: Scalars['String'];\r\n};\r\n\r\nexport type ConfigurableOperationInput = {\r\n arguments: Array<ConfigArgInput>;\r\n code: Scalars['String'];\r\n};\r\n\r\nexport type Coordinate = {\r\n __typename?: 'Coordinate';\r\n x: Scalars['Float'];\r\n y: Scalars['Float'];\r\n};\r\n\r\nexport type Country = Node & {\r\n __typename?: 'Country';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n enabled: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n translations: Array<CountryTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type CountryList = PaginatedList & {\r\n __typename?: 'CountryList';\r\n items: Array<Country>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type CountryTranslation = {\r\n __typename?: 'CountryTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n/** Returned if the provided coupon code is invalid */\r\nexport type CouponCodeExpiredError = ErrorResult & {\r\n __typename?: 'CouponCodeExpiredError';\r\n couponCode: Scalars['String'];\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned if the provided coupon code is invalid */\r\nexport type CouponCodeInvalidError = ErrorResult & {\r\n __typename?: 'CouponCodeInvalidError';\r\n couponCode: Scalars['String'];\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned if the provided coupon code is invalid */\r\nexport type CouponCodeLimitError = ErrorResult & {\r\n __typename?: 'CouponCodeLimitError';\r\n couponCode: Scalars['String'];\r\n errorCode: ErrorCode;\r\n limit: Scalars['Int'];\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type CreateAddressInput = {\r\n city?: InputMaybe<Scalars['String']>;\r\n company?: InputMaybe<Scalars['String']>;\r\n countryCode: Scalars['String'];\r\n customFields?: InputMaybe<Scalars['JSON']>;\r\n defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;\r\n defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;\r\n fullName?: InputMaybe<Scalars['String']>;\r\n phoneNumber?: InputMaybe<Scalars['String']>;\r\n postalCode?: InputMaybe<Scalars['String']>;\r\n province?: InputMaybe<Scalars['String']>;\r\n streetLine1: Scalars['String'];\r\n streetLine2?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\nexport type CreateCustomerInput = {\r\n customFields?: InputMaybe<Scalars['JSON']>;\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n lastName: Scalars['String'];\r\n phoneNumber?: InputMaybe<Scalars['String']>;\r\n title?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\n/**\r\n * @description\r\n * ISO 4217 currency code\r\n *\r\n * @docsCategory common\r\n */\r\nexport enum CurrencyCode {\r\n /** United Arab Emirates dirham */\r\n AED = 'AED',\r\n /** Afghan afghani */\r\n AFN = 'AFN',\r\n /** Albanian lek */\r\n ALL = 'ALL',\r\n /** Armenian dram */\r\n AMD = 'AMD',\r\n /** Netherlands Antillean guilder */\r\n ANG = 'ANG',\r\n /** Angolan kwanza */\r\n AOA = 'AOA',\r\n /** Argentine peso */\r\n ARS = 'ARS',\r\n /** Australian dollar */\r\n AUD = 'AUD',\r\n /** Aruban florin */\r\n AWG = 'AWG',\r\n /** Azerbaijani manat */\r\n AZN = 'AZN',\r\n /** Bosnia and Herzegovina convertible mark */\r\n BAM = 'BAM',\r\n /** Barbados dollar */\r\n BBD = 'BBD',\r\n /** Bangladeshi taka */\r\n BDT = 'BDT',\r\n /** Bulgarian lev */\r\n BGN = 'BGN',\r\n /** Bahraini dinar */\r\n BHD = 'BHD',\r\n /** Burundian franc */\r\n BIF = 'BIF',\r\n /** Bermudian dollar */\r\n BMD = 'BMD',\r\n /** Brunei dollar */\r\n BND = 'BND',\r\n /** Boliviano */\r\n BOB = 'BOB',\r\n /** Brazilian real */\r\n BRL = 'BRL',\r\n /** Bahamian dollar */\r\n BSD = 'BSD',\r\n /** Bhutanese ngultrum */\r\n BTN = 'BTN',\r\n /** Botswana pula */\r\n BWP = 'BWP',\r\n /** Belarusian ruble */\r\n BYN = 'BYN',\r\n /** Belize dollar */\r\n BZD = 'BZD',\r\n /** Canadian dollar */\r\n CAD = 'CAD',\r\n /** Congolese franc */\r\n CDF = 'CDF',\r\n /** Swiss franc */\r\n CHF = 'CHF',\r\n /** Chilean peso */\r\n CLP = 'CLP',\r\n /** Renminbi (Chinese) yuan */\r\n CNY = 'CNY',\r\n /** Colombian peso */\r\n COP = 'COP',\r\n /** Costa Rican colon */\r\n CRC = 'CRC',\r\n /** Cuban convertible peso */\r\n CUC = 'CUC',\r\n /** Cuban peso */\r\n CUP = 'CUP',\r\n /** Cape Verde escudo */\r\n CVE = 'CVE',\r\n /** Czech koruna */\r\n CZK = 'CZK',\r\n /** Djiboutian franc */\r\n DJF = 'DJF',\r\n /** Danish krone */\r\n DKK = 'DKK',\r\n /** Dominican peso */\r\n DOP = 'DOP',\r\n /** Algerian dinar */\r\n DZD = 'DZD',\r\n /** Egyptian pound */\r\n EGP = 'EGP',\r\n /** Eritrean nakfa */\r\n ERN = 'ERN',\r\n /** Ethiopian birr */\r\n ETB = 'ETB',\r\n /** Euro */\r\n EUR = 'EUR',\r\n /** Fiji dollar */\r\n FJD = 'FJD',\r\n /** Falkland Islands pound */\r\n FKP = 'FKP',\r\n /** Pound sterling */\r\n GBP = 'GBP',\r\n /** Georgian lari */\r\n GEL = 'GEL',\r\n /** Ghanaian cedi */\r\n GHS = 'GHS',\r\n /** Gibraltar pound */\r\n GIP = 'GIP',\r\n /** Gambian dalasi */\r\n GMD = 'GMD',\r\n /** Guinean franc */\r\n GNF = 'GNF',\r\n /** Guatemalan quetzal */\r\n GTQ = 'GTQ',\r\n /** Guyanese dollar */\r\n GYD = 'GYD',\r\n /** Hong Kong dollar */\r\n HKD = 'HKD',\r\n /** Honduran lempira */\r\n HNL = 'HNL',\r\n /** Croatian kuna */\r\n HRK = 'HRK',\r\n /** Haitian gourde */\r\n HTG = 'HTG',\r\n /** Hungarian forint */\r\n HUF = 'HUF',\r\n /** Indonesian rupiah */\r\n IDR = 'IDR',\r\n /** Israeli new shekel */\r\n ILS = 'ILS',\r\n /** Indian rupee */\r\n INR = 'INR',\r\n /** Iraqi dinar */\r\n IQD = 'IQD',\r\n /** Iranian rial */\r\n IRR = 'IRR',\r\n /** Icelandic króna */\r\n ISK = 'ISK',\r\n /** Jamaican dollar */\r\n JMD = 'JMD',\r\n /** Jordanian dinar */\r\n JOD = 'JOD',\r\n /** Japanese yen */\r\n JPY = 'JPY',\r\n /** Kenyan shilling */\r\n KES = 'KES',\r\n /** Kyrgyzstani som */\r\n KGS = 'KGS',\r\n /** Cambodian riel */\r\n KHR = 'KHR',\r\n /** Comoro franc */\r\n KMF = 'KMF',\r\n /** North Korean won */\r\n KPW = 'KPW',\r\n /** South Korean won */\r\n KRW = 'KRW',\r\n /** Kuwaiti dinar */\r\n KWD = 'KWD',\r\n /** Cayman Islands dollar */\r\n KYD = 'KYD',\r\n /** Kazakhstani tenge */\r\n KZT = 'KZT',\r\n /** Lao kip */\r\n LAK = 'LAK',\r\n /** Lebanese pound */\r\n LBP = 'LBP',\r\n /** Sri Lankan rupee */\r\n LKR = 'LKR',\r\n /** Liberian dollar */\r\n LRD = 'LRD',\r\n /** Lesotho loti */\r\n LSL = 'LSL',\r\n /** Libyan dinar */\r\n LYD = 'LYD',\r\n /** Moroccan dirham */\r\n MAD = 'MAD',\r\n /** Moldovan leu */\r\n MDL = 'MDL',\r\n /** Malagasy ariary */\r\n MGA = 'MGA',\r\n /** Macedonian denar */\r\n MKD = 'MKD',\r\n /** Myanmar kyat */\r\n MMK = 'MMK',\r\n /** Mongolian tögrög */\r\n MNT = 'MNT',\r\n /** Macanese pataca */\r\n MOP = 'MOP',\r\n /** Mauritanian ouguiya */\r\n MRU = 'MRU',\r\n /** Mauritian rupee */\r\n MUR = 'MUR',\r\n /** Maldivian rufiyaa */\r\n MVR = 'MVR',\r\n /** Malawian kwacha */\r\n MWK = 'MWK',\r\n /** Mexican peso */\r\n MXN = 'MXN',\r\n /** Malaysian ringgit */\r\n MYR = 'MYR',\r\n /** Mozambican metical */\r\n MZN = 'MZN',\r\n /** Namibian dollar */\r\n NAD = 'NAD',\r\n /** Nigerian naira */\r\n NGN = 'NGN',\r\n /** Nicaraguan córdoba */\r\n NIO = 'NIO',\r\n /** Norwegian krone */\r\n NOK = 'NOK',\r\n /** Nepalese rupee */\r\n NPR = 'NPR',\r\n /** New Zealand dollar */\r\n NZD = 'NZD',\r\n /** Omani rial */\r\n OMR = 'OMR',\r\n /** Panamanian balboa */\r\n PAB = 'PAB',\r\n /** Peruvian sol */\r\n PEN = 'PEN',\r\n /** Papua New Guinean kina */\r\n PGK = 'PGK',\r\n /** Philippine peso */\r\n PHP = 'PHP',\r\n /** Pakistani rupee */\r\n PKR = 'PKR',\r\n /** Polish złoty */\r\n PLN = 'PLN',\r\n /** Paraguayan guaraní */\r\n PYG = 'PYG',\r\n /** Qatari riyal */\r\n QAR = 'QAR',\r\n /** Romanian leu */\r\n RON = 'RON',\r\n /** Serbian dinar */\r\n RSD = 'RSD',\r\n /** Russian ruble */\r\n RUB = 'RUB',\r\n /** Rwandan franc */\r\n RWF = 'RWF',\r\n /** Saudi riyal */\r\n SAR = 'SAR',\r\n /** Solomon Islands dollar */\r\n SBD = 'SBD',\r\n /** Seychelles rupee */\r\n SCR = 'SCR',\r\n /** Sudanese pound */\r\n SDG = 'SDG',\r\n /** Swedish krona/kronor */\r\n SEK = 'SEK',\r\n /** Singapore dollar */\r\n SGD = 'SGD',\r\n /** Saint Helena pound */\r\n SHP = 'SHP',\r\n /** Sierra Leonean leone */\r\n SLL = 'SLL',\r\n /** Somali shilling */\r\n SOS = 'SOS',\r\n /** Surinamese dollar */\r\n SRD = 'SRD',\r\n /** South Sudanese pound */\r\n SSP = 'SSP',\r\n /** São Tomé and Príncipe dobra */\r\n STN = 'STN',\r\n /** Salvadoran colón */\r\n SVC = 'SVC',\r\n /** Syrian pound */\r\n SYP = 'SYP',\r\n /** Swazi lilangeni */\r\n SZL = 'SZL',\r\n /** Thai baht */\r\n THB = 'THB',\r\n /** Tajikistani somoni */\r\n TJS = 'TJS',\r\n /** Turkmenistan manat */\r\n TMT = 'TMT',\r\n /** Tunisian dinar */\r\n TND = 'TND',\r\n /** Tongan paʻanga */\r\n TOP = 'TOP',\r\n /** Turkish lira */\r\n TRY = 'TRY',\r\n /** Trinidad and Tobago dollar */\r\n TTD = 'TTD',\r\n /** New Taiwan dollar */\r\n TWD = 'TWD',\r\n /** Tanzanian shilling */\r\n TZS = 'TZS',\r\n /** Ukrainian hryvnia */\r\n UAH = 'UAH',\r\n /** Ugandan shilling */\r\n UGX = 'UGX',\r\n /** United States dollar */\r\n USD = 'USD',\r\n /** Uruguayan peso */\r\n UYU = 'UYU',\r\n /** Uzbekistan som */\r\n UZS = 'UZS',\r\n /** Venezuelan bolívar soberano */\r\n VES = 'VES',\r\n /** Vietnamese đồng */\r\n VND = 'VND',\r\n /** Vanuatu vatu */\r\n VUV = 'VUV',\r\n /** Samoan tala */\r\n WST = 'WST',\r\n /** CFA franc BEAC */\r\n XAF = 'XAF',\r\n /** East Caribbean dollar */\r\n XCD = 'XCD',\r\n /** CFA franc BCEAO */\r\n XOF = 'XOF',\r\n /** CFP franc (franc Pacifique) */\r\n XPF = 'XPF',\r\n /** Yemeni rial */\r\n YER = 'YER',\r\n /** South African rand */\r\n ZAR = 'ZAR',\r\n /** Zambian kwacha */\r\n ZMW = 'ZMW',\r\n /** Zimbabwean dollar */\r\n ZWL = 'ZWL'\r\n}\r\n\r\nexport type CurrentUser = {\r\n __typename?: 'CurrentUser';\r\n channels: Array<CurrentUserChannel>;\r\n id: Scalars['ID'];\r\n identifier: Scalars['String'];\r\n};\r\n\r\nexport type CurrentUserChannel = {\r\n __typename?: 'CurrentUserChannel';\r\n code: Scalars['String'];\r\n id: Scalars['ID'];\r\n permissions: Array<Permission>;\r\n token: Scalars['String'];\r\n};\r\n\r\nexport type CustomField = {\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;\r\n\r\nexport type Customer = Node & {\r\n __typename?: 'Customer';\r\n addresses?: Maybe<Array<Address>>;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n emailAddress: Scalars['String'];\r\n firstName: Scalars['String'];\r\n id: Scalars['ID'];\r\n lastName: Scalars['String'];\r\n orders: OrderList;\r\n phoneNumber?: Maybe<Scalars['String']>;\r\n title?: Maybe<Scalars['String']>;\r\n updatedAt: Scalars['DateTime'];\r\n user?: Maybe<User>;\r\n};\r\n\r\n\r\nexport type CustomerOrdersArgs = {\r\n options?: InputMaybe<OrderListOptions>;\r\n};\r\n\r\nexport type CustomerFilterParameter = {\r\n createdAt?: InputMaybe<DateOperators>;\r\n emailAddress?: InputMaybe<StringOperators>;\r\n firstName?: InputMaybe<StringOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n lastName?: InputMaybe<StringOperators>;\r\n phoneNumber?: InputMaybe<StringOperators>;\r\n title?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type CustomerGroup = Node & {\r\n __typename?: 'CustomerGroup';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n customers: CustomerList;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n\r\nexport type CustomerGroupCustomersArgs = {\r\n options?: InputMaybe<CustomerListOptions>;\r\n};\r\n\r\nexport type CustomerList = PaginatedList & {\r\n __typename?: 'CustomerList';\r\n items: Array<Customer>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type CustomerListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<CustomerFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<CustomerSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\nexport type CustomerSortParameter = {\r\n createdAt?: InputMaybe<SortOrder>;\r\n emailAddress?: InputMaybe<SortOrder>;\r\n firstName?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n lastName?: InputMaybe<SortOrder>;\r\n phoneNumber?: InputMaybe<SortOrder>;\r\n title?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\n/** Operators for filtering on a list of Date fields */\r\nexport type DateListOperators = {\r\n inList: Scalars['DateTime'];\r\n};\r\n\r\n/** Operators for filtering on a DateTime field */\r\nexport type DateOperators = {\r\n after?: InputMaybe<Scalars['DateTime']>;\r\n before?: InputMaybe<Scalars['DateTime']>;\r\n between?: InputMaybe<DateRange>;\r\n eq?: InputMaybe<Scalars['DateTime']>;\r\n};\r\n\r\nexport type DateRange = {\r\n end: Scalars['DateTime'];\r\n start: Scalars['DateTime'];\r\n};\r\n\r\n/**\r\n * Expects the same validation formats as the `<input type=\"datetime-local\">` HTML element.\r\n * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes\r\n */\r\nexport type DateTimeCustomFieldConfig = CustomField & {\r\n __typename?: 'DateTimeCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n max?: Maybe<Scalars['String']>;\r\n min?: Maybe<Scalars['String']>;\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n step?: Maybe<Scalars['Int']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type DeletionResponse = {\r\n __typename?: 'DeletionResponse';\r\n message?: Maybe<Scalars['String']>;\r\n result: DeletionResult;\r\n};\r\n\r\nexport enum DeletionResult {\r\n /** The entity was successfully deleted */\r\n DELETED = 'DELETED',\r\n /** Deletion did not take place, reason given in message */\r\n NOT_DELETED = 'NOT_DELETED'\r\n}\r\n\r\nexport type Discount = {\r\n __typename?: 'Discount';\r\n adjustmentSource: Scalars['String'];\r\n amount: Scalars['Int'];\r\n amountWithTax: Scalars['Int'];\r\n description: Scalars['String'];\r\n type: AdjustmentType;\r\n};\r\n\r\n/** Returned when attempting to create a Customer with an email address already registered to an existing User. */\r\nexport type EmailAddressConflictError = ErrorResult & {\r\n __typename?: 'EmailAddressConflictError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport enum ErrorCode {\r\n ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR',\r\n COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR',\r\n COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR',\r\n COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR',\r\n EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR',\r\n IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR',\r\n IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR',\r\n INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR',\r\n INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR',\r\n INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR',\r\n INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR',\r\n MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR',\r\n NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR',\r\n NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR',\r\n NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR',\r\n NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR',\r\n ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR',\r\n ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR',\r\n ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR',\r\n ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR',\r\n PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR',\r\n PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR',\r\n PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR',\r\n PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR',\r\n PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR',\r\n PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR',\r\n UNKNOWN_ERROR = 'UNKNOWN_ERROR',\r\n VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR',\r\n VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR'\r\n}\r\n\r\nexport type ErrorResult = {\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type Facet = Node & {\r\n __typename?: 'Facet';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n translations: Array<FacetTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n values: Array<FacetValue>;\r\n};\r\n\r\nexport type FacetFilterParameter = {\r\n code?: InputMaybe<StringOperators>;\r\n createdAt?: InputMaybe<DateOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n languageCode?: InputMaybe<StringOperators>;\r\n name?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type FacetList = PaginatedList & {\r\n __typename?: 'FacetList';\r\n items: Array<Facet>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type FacetListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<FacetFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<FacetSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\nexport type FacetSortParameter = {\r\n code?: InputMaybe<SortOrder>;\r\n createdAt?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n name?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport type FacetTranslation = {\r\n __typename?: 'FacetTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type FacetValue = Node & {\r\n __typename?: 'FacetValue';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n facet: Facet;\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n translations: Array<FacetValueTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n/**\r\n * Used to construct boolean expressions for filtering search results\r\n * by FacetValue ID. Examples:\r\n *\r\n * * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`\r\n * * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`\r\n * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`\r\n */\r\nexport type FacetValueFilterInput = {\r\n and?: InputMaybe<Scalars['ID']>;\r\n or?: InputMaybe<Array<Scalars['ID']>>;\r\n};\r\n\r\n/**\r\n * Which FacetValues are present in the products returned\r\n * by the search, and in what quantity.\r\n */\r\nexport type FacetValueResult = {\r\n __typename?: 'FacetValueResult';\r\n count: Scalars['Int'];\r\n facetValue: FacetValue;\r\n};\r\n\r\nexport type FacetValueTranslation = {\r\n __typename?: 'FacetValueTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type FloatCustomFieldConfig = CustomField & {\r\n __typename?: 'FloatCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n max?: Maybe<Scalars['Float']>;\r\n min?: Maybe<Scalars['Float']>;\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n step?: Maybe<Scalars['Float']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type Fulfillment = Node & {\r\n __typename?: 'Fulfillment';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n method: Scalars['String'];\r\n orderItems: Array<OrderItem>;\r\n state: Scalars['String'];\r\n trackingCode?: Maybe<Scalars['String']>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport enum GlobalFlag {\r\n FALSE = 'FALSE',\r\n INHERIT = 'INHERIT',\r\n TRUE = 'TRUE'\r\n}\r\n\r\nexport type HistoryEntry = Node & {\r\n __typename?: 'HistoryEntry';\r\n createdAt: Scalars['DateTime'];\r\n data: Scalars['JSON'];\r\n id: Scalars['ID'];\r\n type: HistoryEntryType;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type HistoryEntryFilterParameter = {\r\n createdAt?: InputMaybe<DateOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n type?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type HistoryEntryList = PaginatedList & {\r\n __typename?: 'HistoryEntryList';\r\n items: Array<HistoryEntry>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type HistoryEntryListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<HistoryEntryFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<HistoryEntrySortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\nexport type HistoryEntrySortParameter = {\r\n createdAt?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport enum HistoryEntryType {\r\n CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP',\r\n CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED',\r\n CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED',\r\n CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED',\r\n CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED',\r\n CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED',\r\n CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED',\r\n CUSTOMER_NOTE = 'CUSTOMER_NOTE',\r\n CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED',\r\n CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED',\r\n CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED',\r\n CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED',\r\n CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP',\r\n CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED',\r\n ORDER_CANCELLATION = 'ORDER_CANCELLATION',\r\n ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED',\r\n ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED',\r\n ORDER_FULFILLMENT = 'ORDER_FULFILLMENT',\r\n ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION',\r\n ORDER_MODIFIED = 'ORDER_MODIFIED',\r\n ORDER_NOTE = 'ORDER_NOTE',\r\n ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION',\r\n ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION',\r\n ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION'\r\n}\r\n\r\n/** Operators for filtering on a list of ID fields */\r\nexport type IdListOperators = {\r\n inList: Scalars['ID'];\r\n};\r\n\r\n/** Operators for filtering on an ID field */\r\nexport type IdOperators = {\r\n eq?: InputMaybe<Scalars['String']>;\r\n in?: InputMaybe<Array<Scalars['String']>>;\r\n notEq?: InputMaybe<Scalars['String']>;\r\n notIn?: InputMaybe<Array<Scalars['String']>>;\r\n};\r\n\r\n/**\r\n * Returned if the token used to change a Customer's email address is valid, but has\r\n * expired according to the `verificationTokenDuration` setting in the AuthOptions.\r\n */\r\nexport type IdentifierChangeTokenExpiredError = ErrorResult & {\r\n __typename?: 'IdentifierChangeTokenExpiredError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * Returned if the token used to change a Customer's email address is either\r\n * invalid or does not match any expected tokens.\r\n */\r\nexport type IdentifierChangeTokenInvalidError = ErrorResult & {\r\n __typename?: 'IdentifierChangeTokenInvalidError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */\r\nexport type IneligiblePaymentMethodError = ErrorResult & {\r\n __typename?: 'IneligiblePaymentMethodError';\r\n eligibilityCheckerMessage?: Maybe<Scalars['String']>;\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting to set a ShippingMethod for which the Order is not eligible */\r\nexport type IneligibleShippingMethodError = ErrorResult & {\r\n __typename?: 'IneligibleShippingMethodError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting to add more items to the Order than are available */\r\nexport type InsufficientStockError = ErrorResult & {\r\n __typename?: 'InsufficientStockError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n order: Order;\r\n quantityAvailable: Scalars['Int'];\r\n};\r\n\r\nexport type IntCustomFieldConfig = CustomField & {\r\n __typename?: 'IntCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n max?: Maybe<Scalars['Int']>;\r\n min?: Maybe<Scalars['Int']>;\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n step?: Maybe<Scalars['Int']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\n/** Returned if the user authentication credentials are not valid */\r\nexport type InvalidCredentialsError = ErrorResult & {\r\n __typename?: 'InvalidCredentialsError';\r\n authenticationError: Scalars['String'];\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * @description\r\n * Languages in the form of a ISO 639-1 language code with optional\r\n * region or script modifier (e.g. de_AT). The selection available is based\r\n * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)\r\n * and includes the major spoken languages of the world and any widely-used variants.\r\n *\r\n * @docsCategory common\r\n */\r\nexport enum LanguageCode {\r\n /** Afrikaans */\r\n af = 'af',\r\n /** Akan */\r\n ak = 'ak',\r\n /** Amharic */\r\n am = 'am',\r\n /** Arabic */\r\n ar = 'ar',\r\n /** Assamese */\r\n as = 'as',\r\n /** Azerbaijani */\r\n az = 'az',\r\n /** Belarusian */\r\n be = 'be',\r\n /** Bulgarian */\r\n bg = 'bg',\r\n /** Bambara */\r\n bm = 'bm',\r\n /** Bangla */\r\n bn = 'bn',\r\n /** Tibetan */\r\n bo = 'bo',\r\n /** Breton */\r\n br = 'br',\r\n /** Bosnian */\r\n bs = 'bs',\r\n /** Catalan */\r\n ca = 'ca',\r\n /** Chechen */\r\n ce = 'ce',\r\n /** Corsican */\r\n co = 'co',\r\n /** Czech */\r\n cs = 'cs',\r\n /** Church Slavic */\r\n cu = 'cu',\r\n /** Welsh */\r\n cy = 'cy',\r\n /** Danish */\r\n da = 'da',\r\n /** German */\r\n de = 'de',\r\n /** Austrian German */\r\n de_AT = 'de_AT',\r\n /** Swiss High German */\r\n de_CH = 'de_CH',\r\n /** Dzongkha */\r\n dz = 'dz',\r\n /** Ewe */\r\n ee = 'ee',\r\n /** Greek */\r\n el = 'el',\r\n /** English */\r\n en = 'en',\r\n /** Australian English */\r\n en_AU = 'en_AU',\r\n /** Canadian English */\r\n en_CA = 'en_CA',\r\n /** British English */\r\n en_GB = 'en_GB',\r\n /** American English */\r\n en_US = 'en_US',\r\n /** Esperanto */\r\n eo = 'eo',\r\n /** Spanish */\r\n es = 'es',\r\n /** European Spanish */\r\n es_ES = 'es_ES',\r\n /** Mexican Spanish */\r\n es_MX = 'es_MX',\r\n /** Estonian */\r\n et = 'et',\r\n /** Basque */\r\n eu = 'eu',\r\n /** Persian */\r\n fa = 'fa',\r\n /** Dari */\r\n fa_AF = 'fa_AF',\r\n /** Fulah */\r\n ff = 'ff',\r\n /** Finnish */\r\n fi = 'fi',\r\n /** Faroese */\r\n fo = 'fo',\r\n /** French */\r\n fr = 'fr',\r\n /** Canadian French */\r\n fr_CA = 'fr_CA',\r\n /** Swiss French */\r\n fr_CH = 'fr_CH',\r\n /** Western Frisian */\r\n fy = 'fy',\r\n /** Irish */\r\n ga = 'ga',\r\n /** Scottish Gaelic */\r\n gd = 'gd',\r\n /** Galician */\r\n gl = 'gl',\r\n /** Gujarati */\r\n gu = 'gu',\r\n /** Manx */\r\n gv = 'gv',\r\n /** Hausa */\r\n ha = 'ha',\r\n /** Hebrew */\r\n he = 'he',\r\n /** Hindi */\r\n hi = 'hi',\r\n /** Croatian */\r\n hr = 'hr',\r\n /** Haitian Creole */\r\n ht = 'ht',\r\n /** Hungarian */\r\n hu = 'hu',\r\n /** Armenian */\r\n hy = 'hy',\r\n /** Interlingua */\r\n ia = 'ia',\r\n /** Indonesian */\r\n id = 'id',\r\n /** Igbo */\r\n ig = 'ig',\r\n /** Sichuan Yi */\r\n ii = 'ii',\r\n /** Icelandic */\r\n is = 'is',\r\n /** Italian */\r\n it = 'it',\r\n /** Japanese */\r\n ja = 'ja',\r\n /** Javanese */\r\n jv = 'jv',\r\n /** Georgian */\r\n ka = 'ka',\r\n /** Kikuyu */\r\n ki = 'ki',\r\n /** Kazakh */\r\n kk = 'kk',\r\n /** Kalaallisut */\r\n kl = 'kl',\r\n /** Khmer */\r\n km = 'km',\r\n /** Kannada */\r\n kn = 'kn',\r\n /** Korean */\r\n ko = 'ko',\r\n /** Kashmiri */\r\n ks = 'ks',\r\n /** Kurdish */\r\n ku = 'ku',\r\n /** Cornish */\r\n kw = 'kw',\r\n /** Kyrgyz */\r\n ky = 'ky',\r\n /** Latin */\r\n la = 'la',\r\n /** Luxembourgish */\r\n lb = 'lb',\r\n /** Ganda */\r\n lg = 'lg',\r\n /** Lingala */\r\n ln = 'ln',\r\n /** Lao */\r\n lo = 'lo',\r\n /** Lithuanian */\r\n lt = 'lt',\r\n /** Luba-Katanga */\r\n lu = 'lu',\r\n /** Latvian */\r\n lv = 'lv',\r\n /** Malagasy */\r\n mg = 'mg',\r\n /** Maori */\r\n mi = 'mi',\r\n /** Macedonian */\r\n mk = 'mk',\r\n /** Malayalam */\r\n ml = 'ml',\r\n /** Mongolian */\r\n mn = 'mn',\r\n /** Marathi */\r\n mr = 'mr',\r\n /** Malay */\r\n ms = 'ms',\r\n /** Maltese */\r\n mt = 'mt',\r\n /** Burmese */\r\n my = 'my',\r\n /** Norwegian Bokmål */\r\n nb = 'nb',\r\n /** North Ndebele */\r\n nd = 'nd',\r\n /** Nepali */\r\n ne = 'ne',\r\n /** Dutch */\r\n nl = 'nl',\r\n /** Flemish */\r\n nl_BE = 'nl_BE',\r\n /** Norwegian Nynorsk */\r\n nn = 'nn',\r\n /** Nyanja */\r\n ny = 'ny',\r\n /** Oromo */\r\n om = 'om',\r\n /** Odia */\r\n or = 'or',\r\n /** Ossetic */\r\n os = 'os',\r\n /** Punjabi */\r\n pa = 'pa',\r\n /** Polish */\r\n pl = 'pl',\r\n /** Pashto */\r\n ps = 'ps',\r\n /** Portuguese */\r\n pt = 'pt',\r\n /** Brazilian Portuguese */\r\n pt_BR = 'pt_BR',\r\n /** European Portuguese */\r\n pt_PT = 'pt_PT',\r\n /** Quechua */\r\n qu = 'qu',\r\n /** Romansh */\r\n rm = 'rm',\r\n /** Rundi */\r\n rn = 'rn',\r\n /** Romanian */\r\n ro = 'ro',\r\n /** Moldavian */\r\n ro_MD = 'ro_MD',\r\n /** Russian */\r\n ru = 'ru',\r\n /** Kinyarwanda */\r\n rw = 'rw',\r\n /** Sanskrit */\r\n sa = 'sa',\r\n /** Sindhi */\r\n sd = 'sd',\r\n /** Northern Sami */\r\n se = 'se',\r\n /** Sango */\r\n sg = 'sg',\r\n /** Sinhala */\r\n si = 'si',\r\n /** Slovak */\r\n sk = 'sk',\r\n /** Slovenian */\r\n sl = 'sl',\r\n /** Samoan */\r\n sm = 'sm',\r\n /** Shona */\r\n sn = 'sn',\r\n /** Somali */\r\n so = 'so',\r\n /** Albanian */\r\n sq = 'sq',\r\n /** Serbian */\r\n sr = 'sr',\r\n /** Southern Sotho */\r\n st = 'st',\r\n /** Sundanese */\r\n su = 'su',\r\n /** Swedish */\r\n sv = 'sv',\r\n /** Swahili */\r\n sw = 'sw',\r\n /** Congo Swahili */\r\n sw_CD = 'sw_CD',\r\n /** Tamil */\r\n ta = 'ta',\r\n /** Telugu */\r\n te = 'te',\r\n /** Tajik */\r\n tg = 'tg',\r\n /** Thai */\r\n th = 'th',\r\n /** Tigrinya */\r\n ti = 'ti',\r\n /** Turkmen */\r\n tk = 'tk',\r\n /** Tongan */\r\n to = 'to',\r\n /** Turkish */\r\n tr = 'tr',\r\n /** Tatar */\r\n tt = 'tt',\r\n /** Uyghur */\r\n ug = 'ug',\r\n /** Ukrainian */\r\n uk = 'uk',\r\n /** Urdu */\r\n ur = 'ur',\r\n /** Uzbek */\r\n uz = 'uz',\r\n /** Vietnamese */\r\n vi = 'vi',\r\n /** Volapük */\r\n vo = 'vo',\r\n /** Wolof */\r\n wo = 'wo',\r\n /** Xhosa */\r\n xh = 'xh',\r\n /** Yiddish */\r\n yi = 'yi',\r\n /** Yoruba */\r\n yo = 'yo',\r\n /** Chinese */\r\n zh = 'zh',\r\n /** Simplified Chinese */\r\n zh_Hans = 'zh_Hans',\r\n /** Traditional Chinese */\r\n zh_Hant = 'zh_Hant',\r\n /** Zulu */\r\n zu = 'zu'\r\n}\r\n\r\nexport type LocaleStringCustomFieldConfig = CustomField & {\r\n __typename?: 'LocaleStringCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n length?: Maybe<Scalars['Int']>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n pattern?: Maybe<Scalars['String']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type LocalizedString = {\r\n __typename?: 'LocalizedString';\r\n languageCode: LanguageCode;\r\n value: Scalars['String'];\r\n};\r\n\r\nexport enum LogicalOperator {\r\n AND = 'AND',\r\n OR = 'OR'\r\n}\r\n\r\n/** Returned when attempting to register or verify a customer account without a password, when one is required. */\r\nexport type MissingPasswordError = ErrorResult & {\r\n __typename?: 'MissingPasswordError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type Mutation = {\r\n __typename?: 'Mutation';\r\n /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */\r\n addItemToOrder: UpdateOrderItemsResult;\r\n /** Add a Payment to the Order */\r\n addPaymentToOrder: AddPaymentToOrderResult;\r\n /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */\r\n adjustOrderLine: UpdateOrderItemsResult;\r\n /** Applies the given coupon code to the active Order */\r\n applyCouponCode: ApplyCouponCodeResult;\r\n /** Authenticates the user using a named authentication strategy */\r\n authenticate: AuthenticationResult;\r\n /** Create a new Customer Address */\r\n createCustomerAddress: Address;\r\n /** Delete an existing Address */\r\n deleteCustomerAddress: Success;\r\n /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */\r\n login: NativeAuthenticationResult;\r\n /** End the current authenticated session */\r\n logout: Success;\r\n /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */\r\n refreshCustomerVerification: RefreshCustomerVerificationResult;\r\n /**\r\n * Register a Customer account with the given credentials. There are three possible registration flows:\r\n *\r\n * _If `authOptions.requireVerification` is set to `true`:_\r\n *\r\n * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That\r\n * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then\r\n * verified and authenticated in one step.\r\n * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That\r\n * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then\r\n * verified and authenticated in one step.\r\n *\r\n * _If `authOptions.requireVerification` is set to `false`:_\r\n *\r\n * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately.\r\n */\r\n registerCustomerAccount: RegisterCustomerAccountResult;\r\n /** Remove all OrderLine from the Order */\r\n removeAllOrderLines: RemoveOrderItemsResult;\r\n /** Removes the given coupon code from the active Order */\r\n removeCouponCode?: Maybe<Order>;\r\n /** Remove an OrderLine from the Order */\r\n removeOrderLine: RemoveOrderItemsResult;\r\n /** Requests a password reset email to be sent */\r\n requestPasswordReset?: Maybe<RequestPasswordResetResult>;\r\n /**\r\n * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled\r\n * (as is the default), then the `identifierChangeToken` will be assigned to the current User and\r\n * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email\r\n * that verification token to the Customer, which is then used to verify the change of email address.\r\n */\r\n requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult;\r\n /** Resets a Customer's password based on the provided token */\r\n resetPassword: ResetPasswordResult;\r\n /** Set the Customer for the Order. Required only if the Customer is not currently logged in */\r\n setCustomerForOrder: SetCustomerForOrderResult;\r\n /** Sets the billing address for this order */\r\n setOrderBillingAddress: ActiveOrderResult;\r\n /** Allows any custom fields to be set for the active order */\r\n setOrderCustomFields: ActiveOrderResult;\r\n /** Sets the shipping address for this order */\r\n setOrderShippingAddress: ActiveOrderResult;\r\n /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */\r\n setOrderShippingMethod: SetOrderShippingMethodResult;\r\n /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */\r\n transitionOrderToState?: Maybe<TransitionOrderToStateResult>;\r\n /** Update an existing Customer */\r\n updateCustomer: Customer;\r\n /** Update an existing Address */\r\n updateCustomerAddress: Address;\r\n /**\r\n * Confirm the update of the emailAddress with the provided token, which has been generated by the\r\n * `requestUpdateCustomerEmailAddress` mutation.\r\n */\r\n updateCustomerEmailAddress: UpdateCustomerEmailAddressResult;\r\n /** Update the password of the active Customer */\r\n updateCustomerPassword: UpdateCustomerPasswordResult;\r\n /**\r\n * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.\r\n *\r\n * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be\r\n * provided here.\r\n */\r\n verifyCustomerAccount: VerifyCustomerAccountResult;\r\n};\r\n\r\n\r\nexport type MutationAddItemToOrderArgs = {\r\n productVariantId: Scalars['ID'];\r\n quantity: Scalars['Int'];\r\n};\r\n\r\n\r\nexport type MutationAddPaymentToOrderArgs = {\r\n input: PaymentInput;\r\n};\r\n\r\n\r\nexport type MutationAdjustOrderLineArgs = {\r\n orderLineId: Scalars['ID'];\r\n quantity: Scalars['Int'];\r\n};\r\n\r\n\r\nexport type MutationApplyCouponCodeArgs = {\r\n couponCode: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationAuthenticateArgs = {\r\n input: AuthenticationInput;\r\n rememberMe?: InputMaybe<Scalars['Boolean']>;\r\n};\r\n\r\n\r\nexport type MutationCreateCustomerAddressArgs = {\r\n input: CreateAddressInput;\r\n};\r\n\r\n\r\nexport type MutationDeleteCustomerAddressArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\n\r\nexport type MutationLoginArgs = {\r\n password: Scalars['String'];\r\n rememberMe?: InputMaybe<Scalars['Boolean']>;\r\n username: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationRefreshCustomerVerificationArgs = {\r\n emailAddress: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationRegisterCustomerAccountArgs = {\r\n input: RegisterCustomerInput;\r\n};\r\n\r\n\r\nexport type MutationRemoveCouponCodeArgs = {\r\n couponCode: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationRemoveOrderLineArgs = {\r\n orderLineId: Scalars['ID'];\r\n};\r\n\r\n\r\nexport type MutationRequestPasswordResetArgs = {\r\n emailAddress: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationRequestUpdateCustomerEmailAddressArgs = {\r\n newEmailAddress: Scalars['String'];\r\n password: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationResetPasswordArgs = {\r\n password: Scalars['String'];\r\n token: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationSetCustomerForOrderArgs = {\r\n input: CreateCustomerInput;\r\n};\r\n\r\n\r\nexport type MutationSetOrderBillingAddressArgs = {\r\n input: CreateAddressInput;\r\n};\r\n\r\n\r\nexport type MutationSetOrderCustomFieldsArgs = {\r\n input: UpdateOrderInput;\r\n};\r\n\r\n\r\nexport type MutationSetOrderShippingAddressArgs = {\r\n input: CreateAddressInput;\r\n};\r\n\r\n\r\nexport type MutationSetOrderShippingMethodArgs = {\r\n shippingMethodId: Scalars['ID'];\r\n};\r\n\r\n\r\nexport type MutationTransitionOrderToStateArgs = {\r\n state: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationUpdateCustomerArgs = {\r\n input: UpdateCustomerInput;\r\n};\r\n\r\n\r\nexport type MutationUpdateCustomerAddressArgs = {\r\n input: UpdateAddressInput;\r\n};\r\n\r\n\r\nexport type MutationUpdateCustomerEmailAddressArgs = {\r\n token: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationUpdateCustomerPasswordArgs = {\r\n currentPassword: Scalars['String'];\r\n newPassword: Scalars['String'];\r\n};\r\n\r\n\r\nexport type MutationVerifyCustomerAccountArgs = {\r\n password?: InputMaybe<Scalars['String']>;\r\n token: Scalars['String'];\r\n};\r\n\r\nexport type NativeAuthInput = {\r\n password: Scalars['String'];\r\n username: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */\r\nexport type NativeAuthStrategyError = ErrorResult & {\r\n __typename?: 'NativeAuthStrategyError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError;\r\n\r\n/** Returned when attempting to set a negative OrderLine quantity. */\r\nexport type NegativeQuantityError = ErrorResult & {\r\n __typename?: 'NegativeQuantityError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * Returned when invoking a mutation which depends on there being an active Order on the\r\n * current session.\r\n */\r\nexport type NoActiveOrderError = ErrorResult & {\r\n __typename?: 'NoActiveOrderError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type Node = {\r\n id: Scalars['ID'];\r\n};\r\n\r\n/**\r\n * Returned if `authOptions.requireVerification` is set to `true` (which is the default)\r\n * and an unverified user attempts to authenticate.\r\n */\r\nexport type NotVerifiedError = ErrorResult & {\r\n __typename?: 'NotVerifiedError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Operators for filtering on a list of Number fields */\r\nexport type NumberListOperators = {\r\n inList: Scalars['Float'];\r\n};\r\n\r\n/** Operators for filtering on a Int or Float field */\r\nexport type NumberOperators = {\r\n between?: InputMaybe<NumberRange>;\r\n eq?: InputMaybe<Scalars['Float']>;\r\n gt?: InputMaybe<Scalars['Float']>;\r\n gte?: InputMaybe<Scalars['Float']>;\r\n lt?: InputMaybe<Scalars['Float']>;\r\n lte?: InputMaybe<Scalars['Float']>;\r\n};\r\n\r\nexport type NumberRange = {\r\n end: Scalars['Float'];\r\n start: Scalars['Float'];\r\n};\r\n\r\nexport type Order = Node & {\r\n __typename?: 'Order';\r\n /** An order is active as long as the payment process has not been completed */\r\n active: Scalars['Boolean'];\r\n billingAddress?: Maybe<OrderAddress>;\r\n /** A unique code for the Order */\r\n code: Scalars['String'];\r\n /** An array of all coupon codes applied to the Order */\r\n couponCodes: Array<Scalars['String']>;\r\n createdAt: Scalars['DateTime'];\r\n currencyCode: CurrencyCode;\r\n customFields?: Maybe<Scalars['JSON']>;\r\n customer?: Maybe<Customer>;\r\n discounts: Array<Discount>;\r\n fulfillments?: Maybe<Array<Fulfillment>>;\r\n history: HistoryEntryList;\r\n id: Scalars['ID'];\r\n lines: Array<OrderLine>;\r\n /**\r\n * The date & time that the Order was placed, i.e. the Customer\r\n * completed the checkout and the Order is no longer \"active\"\r\n */\r\n orderPlacedAt?: Maybe<Scalars['DateTime']>;\r\n payments?: Maybe<Array<Payment>>;\r\n /** Promotions applied to the order. Only gets populated after the payment process has completed. */\r\n promotions: Array<Promotion>;\r\n shipping: Scalars['Int'];\r\n shippingAddress?: Maybe<OrderAddress>;\r\n shippingLines: Array<ShippingLine>;\r\n shippingWithTax: Scalars['Int'];\r\n state: Scalars['String'];\r\n /**\r\n * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level\r\n * discounts which have been prorated (proportionally distributed) amongst the OrderItems.\r\n * To get a total of all OrderLines which does not account for prorated discounts, use the\r\n * sum of `OrderLine.discountedLinePrice` values.\r\n */\r\n subTotal: Scalars['Int'];\r\n /** Same as subTotal, but inclusive of tax */\r\n subTotalWithTax: Scalars['Int'];\r\n /**\r\n * Surcharges are arbitrary modifications to the Order total which are neither\r\n * ProductVariants nor discounts resulting from applied Promotions. For example,\r\n * one-off discounts based on customer interaction, or surcharges based on payment\r\n * methods.\r\n */\r\n surcharges: Array<Surcharge>;\r\n /** A summary of the taxes being applied to this Order */\r\n taxSummary: Array<OrderTaxSummary>;\r\n /** Equal to subTotal plus shipping */\r\n total: Scalars['Int'];\r\n totalQuantity: Scalars['Int'];\r\n /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */\r\n totalWithTax: Scalars['Int'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n\r\nexport type OrderHistoryArgs = {\r\n options?: InputMaybe<HistoryEntryListOptions>;\r\n};\r\n\r\nexport type OrderAddress = {\r\n __typename?: 'OrderAddress';\r\n city?: Maybe<Scalars['String']>;\r\n company?: Maybe<Scalars['String']>;\r\n country?: Maybe<Scalars['String']>;\r\n countryCode?: Maybe<Scalars['String']>;\r\n customFields?: Maybe<Scalars['JSON']>;\r\n fullName?: Maybe<Scalars['String']>;\r\n phoneNumber?: Maybe<Scalars['String']>;\r\n postalCode?: Maybe<Scalars['String']>;\r\n province?: Maybe<Scalars['String']>;\r\n streetLine1?: Maybe<Scalars['String']>;\r\n streetLine2?: Maybe<Scalars['String']>;\r\n};\r\n\r\nexport type OrderFilterParameter = {\r\n active?: InputMaybe<BooleanOperators>;\r\n code?: InputMaybe<StringOperators>;\r\n createdAt?: InputMaybe<DateOperators>;\r\n currencyCode?: InputMaybe<StringOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n orderPlacedAt?: InputMaybe<DateOperators>;\r\n shipping?: InputMaybe<NumberOperators>;\r\n shippingWithTax?: InputMaybe<NumberOperators>;\r\n state?: InputMaybe<StringOperators>;\r\n subTotal?: InputMaybe<NumberOperators>;\r\n subTotalWithTax?: InputMaybe<NumberOperators>;\r\n total?: InputMaybe<NumberOperators>;\r\n totalQuantity?: InputMaybe<NumberOperators>;\r\n totalWithTax?: InputMaybe<NumberOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type OrderItem = Node & {\r\n __typename?: 'OrderItem';\r\n adjustments: Array<Adjustment>;\r\n cancelled: Scalars['Boolean'];\r\n createdAt: Scalars['DateTime'];\r\n /**\r\n * The price of a single unit including discounts, excluding tax.\r\n *\r\n * If Order-level discounts have been applied, this will not be the\r\n * actual taxable unit price (see `proratedUnitPrice`), but is generally the\r\n * correct price to display to customers to avoid confusion\r\n * about the internal handling of distributed Order-level discounts.\r\n */\r\n discountedUnitPrice: Scalars['Int'];\r\n /** The price of a single unit including discounts and tax */\r\n discountedUnitPriceWithTax: Scalars['Int'];\r\n fulfillment?: Maybe<Fulfillment>;\r\n id: Scalars['ID'];\r\n /**\r\n * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)\r\n * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax\r\n * and refund calculations.\r\n */\r\n proratedUnitPrice: Scalars['Int'];\r\n /** The proratedUnitPrice including tax */\r\n proratedUnitPriceWithTax: Scalars['Int'];\r\n refundId?: Maybe<Scalars['ID']>;\r\n taxLines: Array<TaxLine>;\r\n taxRate: Scalars['Float'];\r\n /** The price of a single unit, excluding tax and discounts */\r\n unitPrice: Scalars['Int'];\r\n /** The price of a single unit, including tax but excluding discounts */\r\n unitPriceWithTax: Scalars['Int'];\r\n unitTax: Scalars['Int'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n/** Returned when the maximum order size limit has been reached. */\r\nexport type OrderLimitError = ErrorResult & {\r\n __typename?: 'OrderLimitError';\r\n errorCode: ErrorCode;\r\n maxItems: Scalars['Int'];\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type OrderLine = Node & {\r\n __typename?: 'OrderLine';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n /** The price of the line including discounts, excluding tax */\r\n discountedLinePrice: Scalars['Int'];\r\n /** The price of the line including discounts and tax */\r\n discountedLinePriceWithTax: Scalars['Int'];\r\n /**\r\n * The price of a single unit including discounts, excluding tax.\r\n *\r\n * If Order-level discounts have been applied, this will not be the\r\n * actual taxable unit price (see `proratedUnitPrice`), but is generally the\r\n * correct price to display to customers to avoid confusion\r\n * about the internal handling of distributed Order-level discounts.\r\n */\r\n discountedUnitPrice: Scalars['Int'];\r\n /** The price of a single unit including discounts and tax */\r\n discountedUnitPriceWithTax: Scalars['Int'];\r\n discounts: Array<Discount>;\r\n featuredAsset?: Maybe<Asset>;\r\n id: Scalars['ID'];\r\n items: Array<OrderItem>;\r\n /** The total price of the line excluding tax and discounts. */\r\n linePrice: Scalars['Int'];\r\n /** The total price of the line including tax but excluding discounts. */\r\n linePriceWithTax: Scalars['Int'];\r\n /** The total tax on this line */\r\n lineTax: Scalars['Int'];\r\n order: Order;\r\n productVariant: ProductVariant;\r\n /**\r\n * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)\r\n * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax\r\n * and refund calculations.\r\n */\r\n proratedLinePrice: Scalars['Int'];\r\n /** The proratedLinePrice including tax */\r\n proratedLinePriceWithTax: Scalars['Int'];\r\n /**\r\n * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)\r\n * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax\r\n * and refund calculations.\r\n */\r\n proratedUnitPrice: Scalars['Int'];\r\n /** The proratedUnitPrice including tax */\r\n proratedUnitPriceWithTax: Scalars['Int'];\r\n quantity: Scalars['Int'];\r\n taxLines: Array<TaxLine>;\r\n taxRate: Scalars['Float'];\r\n /** The price of a single unit, excluding tax and discounts */\r\n unitPrice: Scalars['Int'];\r\n /** Non-zero if the unitPrice has changed since it was initially added to Order */\r\n unitPriceChangeSinceAdded: Scalars['Int'];\r\n /** The price of a single unit, including tax but excluding discounts */\r\n unitPriceWithTax: Scalars['Int'];\r\n /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */\r\n unitPriceWithTaxChangeSinceAdded: Scalars['Int'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type OrderList = PaginatedList & {\r\n __typename?: 'OrderList';\r\n items: Array<Order>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type OrderListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<OrderFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<OrderSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\n/** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */\r\nexport type OrderModificationError = ErrorResult & {\r\n __typename?: 'OrderModificationError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */\r\nexport type OrderPaymentStateError = ErrorResult & {\r\n __typename?: 'OrderPaymentStateError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type OrderSortParameter = {\r\n code?: InputMaybe<SortOrder>;\r\n createdAt?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n orderPlacedAt?: InputMaybe<SortOrder>;\r\n shipping?: InputMaybe<SortOrder>;\r\n shippingWithTax?: InputMaybe<SortOrder>;\r\n state?: InputMaybe<SortOrder>;\r\n subTotal?: InputMaybe<SortOrder>;\r\n subTotalWithTax?: InputMaybe<SortOrder>;\r\n total?: InputMaybe<SortOrder>;\r\n totalQuantity?: InputMaybe<SortOrder>;\r\n totalWithTax?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\n/** Returned if there is an error in transitioning the Order state */\r\nexport type OrderStateTransitionError = ErrorResult & {\r\n __typename?: 'OrderStateTransitionError';\r\n errorCode: ErrorCode;\r\n fromState: Scalars['String'];\r\n message: Scalars['String'];\r\n toState: Scalars['String'];\r\n transitionError: Scalars['String'];\r\n};\r\n\r\n/**\r\n * A summary of the taxes being applied to this order, grouped\r\n * by taxRate.\r\n */\r\nexport type OrderTaxSummary = {\r\n __typename?: 'OrderTaxSummary';\r\n /** A description of this tax */\r\n description: Scalars['String'];\r\n /** The total net price or OrderItems to which this taxRate applies */\r\n taxBase: Scalars['Int'];\r\n /** The taxRate as a percentage */\r\n taxRate: Scalars['Float'];\r\n /** The total tax being applied to the Order at this taxRate */\r\n taxTotal: Scalars['Int'];\r\n};\r\n\r\nexport type PaginatedList = {\r\n items: Array<Node>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\n/** Returned when attempting to verify a customer account with a password, when a password has already been set. */\r\nexport type PasswordAlreadySetError = ErrorResult & {\r\n __typename?: 'PasswordAlreadySetError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * Returned if the token used to reset a Customer's password is valid, but has\r\n * expired according to the `verificationTokenDuration` setting in the AuthOptions.\r\n */\r\nexport type PasswordResetTokenExpiredError = ErrorResult & {\r\n __typename?: 'PasswordResetTokenExpiredError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * Returned if the token used to reset a Customer's password is either\r\n * invalid or does not match any expected tokens.\r\n */\r\nexport type PasswordResetTokenInvalidError = ErrorResult & {\r\n __typename?: 'PasswordResetTokenInvalidError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/** Returned when attempting to register or verify a customer account where the given password fails password validation. */\r\nexport type PasswordValidationError = ErrorResult & {\r\n __typename?: 'PasswordValidationError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n validationErrorMessage: Scalars['String'];\r\n};\r\n\r\nexport type Payment = Node & {\r\n __typename?: 'Payment';\r\n amount: Scalars['Int'];\r\n createdAt: Scalars['DateTime'];\r\n errorMessage?: Maybe<Scalars['String']>;\r\n id: Scalars['ID'];\r\n metadata?: Maybe<Scalars['JSON']>;\r\n method: Scalars['String'];\r\n refunds: Array<Refund>;\r\n state: Scalars['String'];\r\n transactionId?: Maybe<Scalars['String']>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n/** Returned when a Payment is declined by the payment provider. */\r\nexport type PaymentDeclinedError = ErrorResult & {\r\n __typename?: 'PaymentDeclinedError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n paymentErrorMessage: Scalars['String'];\r\n};\r\n\r\n/** Returned when a Payment fails due to an error. */\r\nexport type PaymentFailedError = ErrorResult & {\r\n __typename?: 'PaymentFailedError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n paymentErrorMessage: Scalars['String'];\r\n};\r\n\r\n/** Passed as input to the `addPaymentToOrder` mutation. */\r\nexport type PaymentInput = {\r\n /**\r\n * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method\r\n * as the \"metadata\" argument. For example, it could contain an ID for the payment and other\r\n * data generated by the payment provider.\r\n */\r\n metadata: Scalars['JSON'];\r\n /** This field should correspond to the `code` property of a PaymentMethod. */\r\n method: Scalars['String'];\r\n};\r\n\r\nexport type PaymentMethod = Node & {\r\n __typename?: 'PaymentMethod';\r\n checker?: Maybe<ConfigurableOperation>;\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n enabled: Scalars['Boolean'];\r\n handler: ConfigurableOperation;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type PaymentMethodQuote = {\r\n __typename?: 'PaymentMethodQuote';\r\n code: Scalars['String'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n eligibilityMessage?: Maybe<Scalars['String']>;\r\n id: Scalars['ID'];\r\n isEligible: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n};\r\n\r\n/**\r\n * @description\r\n * Permissions for administrators and customers. Used to control access to\r\n * GraphQL resolvers via the {@link Allow} decorator.\r\n *\r\n * ## Understanding Permission.Owner\r\n *\r\n * `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only\r\n * be accessible to the \"owner\" of that resource.\r\n *\r\n * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the \"owner\" of that Customer, i.e.\r\n * based on the activeUserId of the current session. As a result, the resolver code looks like this:\r\n *\r\n * @example\r\n * ```TypeScript\r\n * \\@Query()\r\n * \\@Allow(Permission.Owner)\r\n * async activeCustomer(\\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {\r\n * const userId = ctx.activeUserId;\r\n * if (userId) {\r\n * return this.customerService.findOneByUserId(ctx, userId);\r\n * }\r\n * }\r\n * ```\r\n *\r\n * Here we can see that the \"ownership\" must be enforced by custom logic inside the resolver. Since \"ownership\" cannot be defined generally\r\n * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner\r\n * of the resource has access. If not, then it is the equivalent of using `Permission.Public`.\r\n *\r\n *\r\n * @docsCategory common\r\n */\r\nexport enum Permission {\r\n /** Authenticated means simply that the user is logged in */\r\n Authenticated = 'Authenticated',\r\n /** Grants permission to create Administrator */\r\n CreateAdministrator = 'CreateAdministrator',\r\n /** Grants permission to create Asset */\r\n CreateAsset = 'CreateAsset',\r\n /** Grants permission to create Products, Facets, Assets, Collections */\r\n CreateCatalog = 'CreateCatalog',\r\n /** Grants permission to create Channel */\r\n CreateChannel = 'CreateChannel',\r\n /** Grants permission to create Collection */\r\n CreateCollection = 'CreateCollection',\r\n /** Grants permission to create Country */\r\n CreateCountry = 'CreateCountry',\r\n /** Grants permission to create Customer */\r\n CreateCustomer = 'CreateCustomer',\r\n /** Grants permission to create CustomerGroup */\r\n CreateCustomerGroup = 'CreateCustomerGroup',\r\n /** Grants permission to create Facet */\r\n CreateFacet = 'CreateFacet',\r\n /** Grants permission to create Order */\r\n CreateOrder = 'CreateOrder',\r\n /** Grants permission to create PaymentMethod */\r\n CreatePaymentMethod = 'CreatePaymentMethod',\r\n /** Grants permission to create Product */\r\n CreateProduct = 'CreateProduct',\r\n /** Grants permission to create Promotion */\r\n CreatePromotion = 'CreatePromotion',\r\n /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */\r\n CreateSettings = 'CreateSettings',\r\n /** Grants permission to create ShippingMethod */\r\n CreateShippingMethod = 'CreateShippingMethod',\r\n /** Grants permission to create System */\r\n CreateSystem = 'CreateSystem',\r\n /** Grants permission to create Tag */\r\n CreateTag = 'CreateTag',\r\n /** Grants permission to create TaxCategory */\r\n CreateTaxCategory = 'CreateTaxCategory',\r\n /** Grants permission to create TaxRate */\r\n CreateTaxRate = 'CreateTaxRate',\r\n /** Grants permission to create Zone */\r\n CreateZone = 'CreateZone',\r\n /** Grants permission to delete Administrator */\r\n DeleteAdministrator = 'DeleteAdministrator',\r\n /** Grants permission to delete Asset */\r\n DeleteAsset = 'DeleteAsset',\r\n /** Grants permission to delete Products, Facets, Assets, Collections */\r\n DeleteCatalog = 'DeleteCatalog',\r\n /** Grants permission to delete Channel */\r\n DeleteChannel = 'DeleteChannel',\r\n /** Grants permission to delete Collection */\r\n DeleteCollection = 'DeleteCollection',\r\n /** Grants permission to delete Country */\r\n DeleteCountry = 'DeleteCountry',\r\n /** Grants permission to delete Customer */\r\n DeleteCustomer = 'DeleteCustomer',\r\n /** Grants permission to delete CustomerGroup */\r\n DeleteCustomerGroup = 'DeleteCustomerGroup',\r\n /** Grants permission to delete Facet */\r\n DeleteFacet = 'DeleteFacet',\r\n /** Grants permission to delete Order */\r\n DeleteOrder = 'DeleteOrder',\r\n /** Grants permission to delete PaymentMethod */\r\n DeletePaymentMethod = 'DeletePaymentMethod',\r\n /** Grants permission to delete Product */\r\n DeleteProduct = 'DeleteProduct',\r\n /** Grants permission to delete Promotion */\r\n DeletePromotion = 'DeletePromotion',\r\n /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */\r\n DeleteSettings = 'DeleteSettings',\r\n /** Grants permission to delete ShippingMethod */\r\n DeleteShippingMethod = 'DeleteShippingMethod',\r\n /** Grants permission to delete System */\r\n DeleteSystem = 'DeleteSystem',\r\n /** Grants permission to delete Tag */\r\n DeleteTag = 'DeleteTag',\r\n /** Grants permission to delete TaxCategory */\r\n DeleteTaxCategory = 'DeleteTaxCategory',\r\n /** Grants permission to delete TaxRate */\r\n DeleteTaxRate = 'DeleteTaxRate',\r\n /** Grants permission to delete Zone */\r\n DeleteZone = 'DeleteZone',\r\n /** Owner means the user owns this entity, e.g. a Customer's own Order */\r\n Owner = 'Owner',\r\n /** Public means any unauthenticated user may perform the operation */\r\n Public = 'Public',\r\n /** Grants permission to read Administrator */\r\n ReadAdministrator = 'ReadAdministrator',\r\n /** Grants permission to read Asset */\r\n ReadAsset = 'ReadAsset',\r\n /** Grants permission to read Products, Facets, Assets, Collections */\r\n ReadCatalog = 'ReadCatalog',\r\n /** Grants permission to read Channel */\r\n ReadChannel = 'ReadChannel',\r\n /** Grants permission to read Collection */\r\n ReadCollection = 'ReadCollection',\r\n /** Grants permission to read Country */\r\n ReadCountry = 'ReadCountry',\r\n /** Grants permission to read Customer */\r\n ReadCustomer = 'ReadCustomer',\r\n /** Grants permission to read CustomerGroup */\r\n ReadCustomerGroup = 'ReadCustomerGroup',\r\n /** Grants permission to read Facet */\r\n ReadFacet = 'ReadFacet',\r\n /** Grants permission to read Order */\r\n ReadOrder = 'ReadOrder',\r\n /** Grants permission to read PaymentMethod */\r\n ReadPaymentMethod = 'ReadPaymentMethod',\r\n /** Grants permission to read Product */\r\n ReadProduct = 'ReadProduct',\r\n /** Grants permission to read Promotion */\r\n ReadPromotion = 'ReadPromotion',\r\n /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */\r\n ReadSettings = 'ReadSettings',\r\n /** Grants permission to read ShippingMethod */\r\n ReadShippingMethod = 'ReadShippingMethod',\r\n /** Grants permission to read System */\r\n ReadSystem = 'ReadSystem',\r\n /** Grants permission to read Tag */\r\n ReadTag = 'ReadTag',\r\n /** Grants permission to read TaxCategory */\r\n ReadTaxCategory = 'ReadTaxCategory',\r\n /** Grants permission to read TaxRate */\r\n ReadTaxRate = 'ReadTaxRate',\r\n /** Grants permission to read Zone */\r\n ReadZone = 'ReadZone',\r\n /** SuperAdmin has unrestricted access to all operations */\r\n SuperAdmin = 'SuperAdmin',\r\n /** Grants permission to update Administrator */\r\n UpdateAdministrator = 'UpdateAdministrator',\r\n /** Grants permission to update Asset */\r\n UpdateAsset = 'UpdateAsset',\r\n /** Grants permission to update Products, Facets, Assets, Collections */\r\n UpdateCatalog = 'UpdateCatalog',\r\n /** Grants permission to update Channel */\r\n UpdateChannel = 'UpdateChannel',\r\n /** Grants permission to update Collection */\r\n UpdateCollection = 'UpdateCollection',\r\n /** Grants permission to update Country */\r\n UpdateCountry = 'UpdateCountry',\r\n /** Grants permission to update Customer */\r\n UpdateCustomer = 'UpdateCustomer',\r\n /** Grants permission to update CustomerGroup */\r\n UpdateCustomerGroup = 'UpdateCustomerGroup',\r\n /** Grants permission to update Facet */\r\n UpdateFacet = 'UpdateFacet',\r\n /** Grants permission to update GlobalSettings */\r\n UpdateGlobalSettings = 'UpdateGlobalSettings',\r\n /** Grants permission to update Order */\r\n UpdateOrder = 'UpdateOrder',\r\n /** Grants permission to update PaymentMethod */\r\n UpdatePaymentMethod = 'UpdatePaymentMethod',\r\n /** Grants permission to update Product */\r\n UpdateProduct = 'UpdateProduct',\r\n /** Grants permission to update Promotion */\r\n UpdatePromotion = 'UpdatePromotion',\r\n /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */\r\n UpdateSettings = 'UpdateSettings',\r\n /** Grants permission to update ShippingMethod */\r\n UpdateShippingMethod = 'UpdateShippingMethod',\r\n /** Grants permission to update System */\r\n UpdateSystem = 'UpdateSystem',\r\n /** Grants permission to update Tag */\r\n UpdateTag = 'UpdateTag',\r\n /** Grants permission to update TaxCategory */\r\n UpdateTaxCategory = 'UpdateTaxCategory',\r\n /** Grants permission to update TaxRate */\r\n UpdateTaxRate = 'UpdateTaxRate',\r\n /** Grants permission to update Zone */\r\n UpdateZone = 'UpdateZone'\r\n}\r\n\r\n/** The price range where the result has more than one price */\r\nexport type PriceRange = {\r\n __typename?: 'PriceRange';\r\n max: Scalars['Int'];\r\n min: Scalars['Int'];\r\n};\r\n\r\nexport type Product = Node & {\r\n __typename?: 'Product';\r\n assets: Array<Asset>;\r\n collections: Array<Collection>;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n facetValues: Array<FacetValue>;\r\n featuredAsset?: Maybe<Asset>;\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n optionGroups: Array<ProductOptionGroup>;\r\n slug: Scalars['String'];\r\n translations: Array<ProductTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n /** Returns a paginated, sortable, filterable list of ProductVariants */\r\n variantList: ProductVariantList;\r\n /** Returns all ProductVariants */\r\n variants: Array<ProductVariant>;\r\n};\r\n\r\n\r\nexport type ProductVariantListArgs = {\r\n options?: InputMaybe<ProductVariantListOptions>;\r\n};\r\n\r\nexport type ProductFilterParameter = {\r\n createdAt?: InputMaybe<DateOperators>;\r\n description?: InputMaybe<StringOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n languageCode?: InputMaybe<StringOperators>;\r\n name?: InputMaybe<StringOperators>;\r\n slug?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type ProductList = PaginatedList & {\r\n __typename?: 'ProductList';\r\n items: Array<Product>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type ProductListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<ProductFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<ProductSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\nexport type ProductOption = Node & {\r\n __typename?: 'ProductOption';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n group: ProductOptionGroup;\r\n groupId: Scalars['ID'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n translations: Array<ProductOptionTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductOptionGroup = Node & {\r\n __typename?: 'ProductOptionGroup';\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n options: Array<ProductOption>;\r\n translations: Array<ProductOptionGroupTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductOptionGroupTranslation = {\r\n __typename?: 'ProductOptionGroupTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductOptionTranslation = {\r\n __typename?: 'ProductOptionTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductSortParameter = {\r\n createdAt?: InputMaybe<SortOrder>;\r\n description?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n name?: InputMaybe<SortOrder>;\r\n slug?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport type ProductTranslation = {\r\n __typename?: 'ProductTranslation';\r\n createdAt: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n slug: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductVariant = Node & {\r\n __typename?: 'ProductVariant';\r\n assets: Array<Asset>;\r\n createdAt: Scalars['DateTime'];\r\n currencyCode: CurrencyCode;\r\n customFields?: Maybe<Scalars['JSON']>;\r\n facetValues: Array<FacetValue>;\r\n featuredAsset?: Maybe<Asset>;\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n options: Array<ProductOption>;\r\n price: Scalars['Int'];\r\n priceWithTax: Scalars['Int'];\r\n product: Product;\r\n productId: Scalars['ID'];\r\n sku: Scalars['String'];\r\n stockLevel: Scalars['String'];\r\n taxCategory: TaxCategory;\r\n taxRateApplied: TaxRate;\r\n translations: Array<ProductVariantTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ProductVariantFilterParameter = {\r\n createdAt?: InputMaybe<DateOperators>;\r\n currencyCode?: InputMaybe<StringOperators>;\r\n id?: InputMaybe<IdOperators>;\r\n languageCode?: InputMaybe<StringOperators>;\r\n name?: InputMaybe<StringOperators>;\r\n price?: InputMaybe<NumberOperators>;\r\n priceWithTax?: InputMaybe<NumberOperators>;\r\n productId?: InputMaybe<IdOperators>;\r\n sku?: InputMaybe<StringOperators>;\r\n stockLevel?: InputMaybe<StringOperators>;\r\n updatedAt?: InputMaybe<DateOperators>;\r\n};\r\n\r\nexport type ProductVariantList = PaginatedList & {\r\n __typename?: 'ProductVariantList';\r\n items: Array<ProductVariant>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type ProductVariantListOptions = {\r\n /** Allows the results to be filtered */\r\n filter?: InputMaybe<ProductVariantFilterParameter>;\r\n /** Specifies whether multiple \"filter\" arguments should be combines with a logical AND or OR operation. Defaults to AND. */\r\n filterOperator?: InputMaybe<LogicalOperator>;\r\n /** Skips the first n results, for use in pagination */\r\n skip?: InputMaybe<Scalars['Int']>;\r\n /** Specifies which properties to sort the results by */\r\n sort?: InputMaybe<ProductVariantSortParameter>;\r\n /** Takes n results, for use in pagination */\r\n take?: InputMaybe<Scalars['Int']>;\r\n};\r\n\r\nexport type ProductVariantSortParameter = {\r\n createdAt?: InputMaybe<SortOrder>;\r\n id?: InputMaybe<SortOrder>;\r\n name?: InputMaybe<SortOrder>;\r\n price?: InputMaybe<SortOrder>;\r\n priceWithTax?: InputMaybe<SortOrder>;\r\n productId?: InputMaybe<SortOrder>;\r\n sku?: InputMaybe<SortOrder>;\r\n stockLevel?: InputMaybe<SortOrder>;\r\n updatedAt?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport type ProductVariantTranslation = {\r\n __typename?: 'ProductVariantTranslation';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type Promotion = Node & {\r\n __typename?: 'Promotion';\r\n actions: Array<ConfigurableOperation>;\r\n conditions: Array<ConfigurableOperation>;\r\n couponCode?: Maybe<Scalars['String']>;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n enabled: Scalars['Boolean'];\r\n endsAt?: Maybe<Scalars['DateTime']>;\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n perCustomerUsageLimit?: Maybe<Scalars['Int']>;\r\n startsAt?: Maybe<Scalars['DateTime']>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type PromotionList = PaginatedList & {\r\n __typename?: 'PromotionList';\r\n items: Array<Promotion>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type Query = {\r\n __typename?: 'Query';\r\n /** The active Channel */\r\n activeChannel: Channel;\r\n /** The active Customer */\r\n activeCustomer?: Maybe<Customer>;\r\n /**\r\n * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the\r\n * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered \"active\" and this\r\n * query will once again return `null`.\r\n */\r\n activeOrder?: Maybe<Order>;\r\n /** An array of supported Countries */\r\n availableCountries: Array<Country>;\r\n /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */\r\n collection?: Maybe<Collection>;\r\n /** A list of Collections available to the shop */\r\n collections: CollectionList;\r\n /** Returns a list of payment methods and their eligibility based on the current active Order */\r\n eligiblePaymentMethods: Array<PaymentMethodQuote>;\r\n /** Returns a list of eligible shipping methods based on the current active Order */\r\n eligibleShippingMethods: Array<ShippingMethodQuote>;\r\n /** Returns a Facet by its id */\r\n facet?: Maybe<Facet>;\r\n /** A list of Facets available to the shop */\r\n facets: FacetList;\r\n /** Returns information about the current authenticated User */\r\n me?: Maybe<CurrentUser>;\r\n /** Returns the possible next states that the activeOrder can transition to */\r\n nextOrderStates: Array<Scalars['String']>;\r\n /**\r\n * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the\r\n * currently-authenticated User may be queried.\r\n */\r\n order?: Maybe<Order>;\r\n /**\r\n * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers)\r\n * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation\r\n * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing\r\n * general anonymous access to Order data.\r\n */\r\n orderByCode?: Maybe<Order>;\r\n /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */\r\n product?: Maybe<Product>;\r\n /** Get a list of Products */\r\n products: ProductList;\r\n /** Search Products based on the criteria set by the `SearchInput` */\r\n search: SearchResponse;\r\n};\r\n\r\n\r\nexport type QueryCollectionArgs = {\r\n id?: InputMaybe<Scalars['ID']>;\r\n slug?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\n\r\nexport type QueryCollectionsArgs = {\r\n options?: InputMaybe<CollectionListOptions>;\r\n};\r\n\r\n\r\nexport type QueryFacetArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\n\r\nexport type QueryFacetsArgs = {\r\n options?: InputMaybe<FacetListOptions>;\r\n};\r\n\r\n\r\nexport type QueryOrderArgs = {\r\n id: Scalars['ID'];\r\n};\r\n\r\n\r\nexport type QueryOrderByCodeArgs = {\r\n code: Scalars['String'];\r\n};\r\n\r\n\r\nexport type QueryProductArgs = {\r\n id?: InputMaybe<Scalars['ID']>;\r\n slug?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\n\r\nexport type QueryProductsArgs = {\r\n options?: InputMaybe<ProductListOptions>;\r\n};\r\n\r\n\r\nexport type QuerySearchArgs = {\r\n input: SearchInput;\r\n};\r\n\r\nexport type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success;\r\n\r\nexport type Refund = Node & {\r\n __typename?: 'Refund';\r\n adjustment: Scalars['Int'];\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n items: Scalars['Int'];\r\n metadata?: Maybe<Scalars['JSON']>;\r\n method?: Maybe<Scalars['String']>;\r\n orderItems: Array<OrderItem>;\r\n paymentId: Scalars['ID'];\r\n reason?: Maybe<Scalars['String']>;\r\n shipping: Scalars['Int'];\r\n state: Scalars['String'];\r\n total: Scalars['Int'];\r\n transactionId?: Maybe<Scalars['String']>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success;\r\n\r\nexport type RegisterCustomerInput = {\r\n emailAddress: Scalars['String'];\r\n firstName?: InputMaybe<Scalars['String']>;\r\n lastName?: InputMaybe<Scalars['String']>;\r\n password?: InputMaybe<Scalars['String']>;\r\n phoneNumber?: InputMaybe<Scalars['String']>;\r\n title?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\nexport type RelationCustomFieldConfig = CustomField & {\r\n __typename?: 'RelationCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n entity: Scalars['String'];\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n scalarFields: Array<Scalars['String']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type RemoveOrderItemsResult = Order | OrderModificationError;\r\n\r\nexport type RequestPasswordResetResult = NativeAuthStrategyError | Success;\r\n\r\nexport type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success;\r\n\r\nexport type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError;\r\n\r\nexport type Role = Node & {\r\n __typename?: 'Role';\r\n channels: Array<Channel>;\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n permissions: Array<Permission>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type RoleList = PaginatedList & {\r\n __typename?: 'RoleList';\r\n items: Array<Role>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type SearchInput = {\r\n collectionId?: InputMaybe<Scalars['ID']>;\r\n collectionSlug?: InputMaybe<Scalars['String']>;\r\n facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;\r\n facetValueIds?: InputMaybe<Array<Scalars['ID']>>;\r\n facetValueOperator?: InputMaybe<LogicalOperator>;\r\n groupByProduct?: InputMaybe<Scalars['Boolean']>;\r\n skip?: InputMaybe<Scalars['Int']>;\r\n sort?: InputMaybe<SearchResultSortParameter>;\r\n take?: InputMaybe<Scalars['Int']>;\r\n term?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\nexport type SearchReindexResponse = {\r\n __typename?: 'SearchReindexResponse';\r\n success: Scalars['Boolean'];\r\n};\r\n\r\nexport type SearchResponse = {\r\n __typename?: 'SearchResponse';\r\n collections: Array<CollectionResult>;\r\n facetValues: Array<FacetValueResult>;\r\n items: Array<SearchResult>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type SearchResult = {\r\n __typename?: 'SearchResult';\r\n /** An array of ids of the Collections in which this result appears */\r\n collectionIds: Array<Scalars['ID']>;\r\n currencyCode: CurrencyCode;\r\n description: Scalars['String'];\r\n facetIds: Array<Scalars['ID']>;\r\n facetValueIds: Array<Scalars['ID']>;\r\n price: SearchResultPrice;\r\n priceWithTax: SearchResultPrice;\r\n productAsset?: Maybe<SearchResultAsset>;\r\n productId: Scalars['ID'];\r\n productName: Scalars['String'];\r\n productVariantAsset?: Maybe<SearchResultAsset>;\r\n productVariantId: Scalars['ID'];\r\n productVariantName: Scalars['String'];\r\n /** A relevance score for the result. Differs between database implementations */\r\n score: Scalars['Float'];\r\n sku: Scalars['String'];\r\n slug: Scalars['String'];\r\n};\r\n\r\nexport type SearchResultAsset = {\r\n __typename?: 'SearchResultAsset';\r\n focalPoint?: Maybe<Coordinate>;\r\n id: Scalars['ID'];\r\n preview: Scalars['String'];\r\n};\r\n\r\n/** The price of a search result product, either as a range or as a single price */\r\nexport type SearchResultPrice = PriceRange | SinglePrice;\r\n\r\nexport type SearchResultSortParameter = {\r\n name?: InputMaybe<SortOrder>;\r\n price?: InputMaybe<SortOrder>;\r\n};\r\n\r\nexport type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order;\r\n\r\nexport type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;\r\n\r\nexport type ShippingLine = {\r\n __typename?: 'ShippingLine';\r\n discountedPrice: Scalars['Int'];\r\n discountedPriceWithTax: Scalars['Int'];\r\n discounts: Array<Discount>;\r\n price: Scalars['Int'];\r\n priceWithTax: Scalars['Int'];\r\n shippingMethod: ShippingMethod;\r\n};\r\n\r\nexport type ShippingMethod = Node & {\r\n __typename?: 'ShippingMethod';\r\n calculator: ConfigurableOperation;\r\n checker: ConfigurableOperation;\r\n code: Scalars['String'];\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n fulfillmentHandlerCode: Scalars['String'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n translations: Array<ShippingMethodTranslation>;\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type ShippingMethodList = PaginatedList & {\r\n __typename?: 'ShippingMethodList';\r\n items: Array<ShippingMethod>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type ShippingMethodQuote = {\r\n __typename?: 'ShippingMethodQuote';\r\n code: Scalars['String'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */\r\n metadata?: Maybe<Scalars['JSON']>;\r\n name: Scalars['String'];\r\n price: Scalars['Int'];\r\n priceWithTax: Scalars['Int'];\r\n};\r\n\r\nexport type ShippingMethodTranslation = {\r\n __typename?: 'ShippingMethodTranslation';\r\n createdAt: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n languageCode: LanguageCode;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\n/** The price value where the result has a single price */\r\nexport type SinglePrice = {\r\n __typename?: 'SinglePrice';\r\n value: Scalars['Int'];\r\n};\r\n\r\nexport enum SortOrder {\r\n ASC = 'ASC',\r\n DESC = 'DESC'\r\n}\r\n\r\nexport type StringCustomFieldConfig = CustomField & {\r\n __typename?: 'StringCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n length?: Maybe<Scalars['Int']>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n options?: Maybe<Array<StringFieldOption>>;\r\n pattern?: Maybe<Scalars['String']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type StringFieldOption = {\r\n __typename?: 'StringFieldOption';\r\n label?: Maybe<Array<LocalizedString>>;\r\n value: Scalars['String'];\r\n};\r\n\r\n/** Operators for filtering on a list of String fields */\r\nexport type StringListOperators = {\r\n inList: Scalars['String'];\r\n};\r\n\r\n/** Operators for filtering on a String field */\r\nexport type StringOperators = {\r\n contains?: InputMaybe<Scalars['String']>;\r\n eq?: InputMaybe<Scalars['String']>;\r\n in?: InputMaybe<Array<Scalars['String']>>;\r\n notContains?: InputMaybe<Scalars['String']>;\r\n notEq?: InputMaybe<Scalars['String']>;\r\n notIn?: InputMaybe<Array<Scalars['String']>>;\r\n regex?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\n/** Indicates that an operation succeeded, where we do not want to return any more specific information. */\r\nexport type Success = {\r\n __typename?: 'Success';\r\n success: Scalars['Boolean'];\r\n};\r\n\r\nexport type Surcharge = Node & {\r\n __typename?: 'Surcharge';\r\n createdAt: Scalars['DateTime'];\r\n description: Scalars['String'];\r\n id: Scalars['ID'];\r\n price: Scalars['Int'];\r\n priceWithTax: Scalars['Int'];\r\n sku?: Maybe<Scalars['String']>;\r\n taxLines: Array<TaxLine>;\r\n taxRate: Scalars['Float'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type Tag = Node & {\r\n __typename?: 'Tag';\r\n createdAt: Scalars['DateTime'];\r\n id: Scalars['ID'];\r\n updatedAt: Scalars['DateTime'];\r\n value: Scalars['String'];\r\n};\r\n\r\nexport type TagList = PaginatedList & {\r\n __typename?: 'TagList';\r\n items: Array<Tag>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type TaxCategory = Node & {\r\n __typename?: 'TaxCategory';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n isDefault: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n\r\nexport type TaxLine = {\r\n __typename?: 'TaxLine';\r\n description: Scalars['String'];\r\n taxRate: Scalars['Float'];\r\n};\r\n\r\nexport type TaxRate = Node & {\r\n __typename?: 'TaxRate';\r\n category: TaxCategory;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n customerGroup?: Maybe<CustomerGroup>;\r\n enabled: Scalars['Boolean'];\r\n id: Scalars['ID'];\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n value: Scalars['Float'];\r\n zone: Zone;\r\n};\r\n\r\nexport type TaxRateList = PaginatedList & {\r\n __typename?: 'TaxRateList';\r\n items: Array<TaxRate>;\r\n totalItems: Scalars['Int'];\r\n};\r\n\r\nexport type TextCustomFieldConfig = CustomField & {\r\n __typename?: 'TextCustomFieldConfig';\r\n description?: Maybe<Array<LocalizedString>>;\r\n internal?: Maybe<Scalars['Boolean']>;\r\n label?: Maybe<Array<LocalizedString>>;\r\n list: Scalars['Boolean'];\r\n name: Scalars['String'];\r\n nullable?: Maybe<Scalars['Boolean']>;\r\n readonly?: Maybe<Scalars['Boolean']>;\r\n type: Scalars['String'];\r\n ui?: Maybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type TransitionOrderToStateResult = Order | OrderStateTransitionError;\r\n\r\nexport type UpdateAddressInput = {\r\n city?: InputMaybe<Scalars['String']>;\r\n company?: InputMaybe<Scalars['String']>;\r\n countryCode?: InputMaybe<Scalars['String']>;\r\n customFields?: InputMaybe<Scalars['JSON']>;\r\n defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;\r\n defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;\r\n fullName?: InputMaybe<Scalars['String']>;\r\n id: Scalars['ID'];\r\n phoneNumber?: InputMaybe<Scalars['String']>;\r\n postalCode?: InputMaybe<Scalars['String']>;\r\n province?: InputMaybe<Scalars['String']>;\r\n streetLine1?: InputMaybe<Scalars['String']>;\r\n streetLine2?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\nexport type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success;\r\n\r\nexport type UpdateCustomerInput = {\r\n customFields?: InputMaybe<Scalars['JSON']>;\r\n firstName?: InputMaybe<Scalars['String']>;\r\n lastName?: InputMaybe<Scalars['String']>;\r\n phoneNumber?: InputMaybe<Scalars['String']>;\r\n title?: InputMaybe<Scalars['String']>;\r\n};\r\n\r\nexport type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success;\r\n\r\nexport type UpdateOrderInput = {\r\n customFields?: InputMaybe<Scalars['JSON']>;\r\n};\r\n\r\nexport type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;\r\n\r\nexport type User = Node & {\r\n __typename?: 'User';\r\n authenticationMethods: Array<AuthenticationMethod>;\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n identifier: Scalars['String'];\r\n lastLogin?: Maybe<Scalars['DateTime']>;\r\n roles: Array<Role>;\r\n updatedAt: Scalars['DateTime'];\r\n verified: Scalars['Boolean'];\r\n};\r\n\r\n/**\r\n * Returned if the verification token (used to verify a Customer's email address) is valid, but has\r\n * expired according to the `verificationTokenDuration` setting in the AuthOptions.\r\n */\r\nexport type VerificationTokenExpiredError = ErrorResult & {\r\n __typename?: 'VerificationTokenExpiredError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\n/**\r\n * Returned if the verification token (used to verify a Customer's email address) is either\r\n * invalid or does not match any expected tokens.\r\n */\r\nexport type VerificationTokenInvalidError = ErrorResult & {\r\n __typename?: 'VerificationTokenInvalidError';\r\n errorCode: ErrorCode;\r\n message: Scalars['String'];\r\n};\r\n\r\nexport type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError;\r\n\r\nexport type Zone = Node & {\r\n __typename?: 'Zone';\r\n createdAt: Scalars['DateTime'];\r\n customFields?: Maybe<Scalars['JSON']>;\r\n id: Scalars['ID'];\r\n members: Array<Country>;\r\n name: Scalars['String'];\r\n updatedAt: Scalars['DateTime'];\r\n};\r\n"],"sourceRoot":"webpack:///","file":"165.6aeb6ecf722558ee.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkvendure_admin=self.webpackChunkvendure_admin||[]).push([[239],{9239:(Zo,x,r)=>{r.r(x),r.d(x,{MarketingModule:()=>Z,PromotionDetailComponent:()=>h,PromotionListComponent:()=>v,PromotionResolver:()=>g,marketingRoutes:()=>N,promotionBreadcrumb:()=>Q});var c=r(587),l=r(8270),d=r(279),I=r(9295),k=r(9525),o=r(3184),u=r(9720),f=r(7346),q=r(3146),P=r(9416),A=r(2748),y=r(7890),T=r(8276),C=r(6362),Y=r(4652),w=r(6852),j=r(837),M=r(2505),S=r(8931),F=r(735),L=r(1519),U=r(8854),J=r(5111),D=r(7514),O=r(7388);const $=function(){return["enabled"]};function E(e,t){if(1&e&&(o.TgZ(0,"clr-toggle-wrapper"),o._UZ(1,"input",25),o.TgZ(2,"label"),o._uU(3),o.ALo(4,"translate"),o.qZA()()),2&e){const n=o.oxw();o.xp6(1),o.Q6J("formControl",n.detailForm.get(o.DdM(4,$))),o.xp6(2),o.Oqu(o.lcZ(4,2,"common.enabled"))}}function B(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"button",26),o.NdJ("click",function(){return o.CHM(n),o.oxw().create()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&e){const n=o.oxw();o.Q6J("disabled",!n.saveButtonEnabled()),o.xp6(1),o.hij(" ",o.lcZ(2,2,"common.create")," ")}}function H(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"button",26),o.NdJ("click",function(){return o.CHM(n),o.oxw(2).save()}),o._uU(1),o.ALo(2,"translate"),o.qZA()}if(2&e){const n=o.oxw(2);o.Q6J("disabled",!n.saveButtonEnabled()),o.xp6(1),o.hij(" ",o.lcZ(2,2,"common.update")," ")}}function G(e,t){1&e&&o.YNc(0,H,3,4,"button",27),2&e&&o.Q6J("vdrIfPermissions","UpdatePromotion")}function V(e,t){if(1&e&&(o.TgZ(0,"section",28)(1,"label"),o._uU(2),o.ALo(3,"translate"),o.qZA(),o._UZ(4,"vdr-tabbed-custom-fields",29),o.ALo(5,"hasPermission"),o.qZA()),2&e){const n=o.oxw();o.xp6(2),o.Oqu(o.lcZ(3,4,"common.custom-fields")),o.xp6(2),o.Q6J("customFields",n.customFields)("customFieldsFormGroup",n.detailForm.get("customFields"))("readonly",!o.lcZ(5,6,"UpdatePromotion"))}}function R(e,t){if(1&e){const n=o.EpF();o.ynx(0),o.TgZ(1,"vdr-configurable-input",30),o.NdJ("remove",function(a){return o.CHM(n),o.oxw().removeCondition(a)}),o.ALo(2,"hasPermission"),o.qZA(),o.BQk()}if(2&e){const n=t.$implicit,i=t.index,a=o.oxw();o.xp6(1),o.Q6J("readonly",!o.lcZ(2,4,"UpdatePromotion"))("operation",n)("operationDefinition",a.getConditionDefinition(n))("formControlName",i)}}function z(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"button",35),o.NdJ("click",function(){const s=o.CHM(n).$implicit;return o.oxw(2).addCondition(s)}),o._uU(1),o.qZA()}if(2&e){const n=t.$implicit;o.xp6(1),o.hij(" ",n.description," ")}}function K(e,t){if(1&e&&(o.TgZ(0,"vdr-dropdown")(1,"button",31),o._UZ(2,"clr-icon",32),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"vdr-dropdown-menu",33),o.YNc(6,z,2,1,"button",34),o.qZA()()),2&e){const n=o.oxw();o.xp6(3),o.hij(" ",o.lcZ(4,2,"marketing.add-condition")," "),o.xp6(3),o.Q6J("ngForOf",n.getAvailableConditions())}}function W(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"vdr-configurable-input",36),o.NdJ("remove",function(a){return o.CHM(n),o.oxw().removeAction(a)}),o.ALo(1,"hasPermission"),o.qZA()}if(2&e){const n=t.$implicit,i=t.index,a=o.oxw();o.Q6J("operation",n)("readonly",!o.lcZ(1,4,"UpdatePromotion"))("operationDefinition",a.getActionDefinition(n))("formControlName",i)}}function X(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"button",35),o.NdJ("click",function(){const s=o.CHM(n).$implicit;return o.oxw(2).addAction(s)}),o._uU(1),o.qZA()}if(2&e){const n=t.$implicit;o.xp6(1),o.hij(" ",n.description," ")}}function oo(e,t){if(1&e&&(o.TgZ(0,"vdr-dropdown")(1,"button",31),o._UZ(2,"clr-icon",32),o._uU(3),o.ALo(4,"translate"),o.qZA(),o.TgZ(5,"vdr-dropdown-menu",33),o.YNc(6,X,2,1,"button",34),o.qZA()()),2&e){const n=o.oxw();o.xp6(3),o.hij(" ",o.lcZ(4,2,"marketing.add-action")," "),o.xp6(3),o.Q6J("ngForOf",n.getAvailableActions())}}class h extends d.UT_{constructor(t,n,i,a,s,m,p){super(n,t,i,s),this.changeDetector=a,this.dataService=s,this.formBuilder=m,this.notificationService=p,this.conditions=[],this.actions=[],this.allConditions=[],this.allActions=[],this.customFields=this.getCustomFieldConfig("Promotion"),this.detailForm=this.formBuilder.group({name:["",c.kI.required],enabled:!0,couponCode:null,perCustomerUsageLimit:null,startsAt:null,endsAt:null,conditions:this.formBuilder.array([]),actions:this.formBuilder.array([]),customFields:this.formBuilder.group(this.customFields.reduce((_,b)=>Object.assign(Object.assign({},_),{[b.name]:""}),{}))})}ngOnInit(){this.init(),this.promotion$=this.entity$,this.dataService.promotion.getPromotionActionsAndConditions().single$.subscribe(t=>{this.allActions=t.promotionActions,this.allConditions=t.promotionConditions,this.changeDetector.markForCheck()})}ngOnDestroy(){this.destroy()}getAvailableConditions(){return this.allConditions.filter(t=>!this.conditions.find(n=>n.code===t.code))}getConditionDefinition(t){return this.allConditions.find(n=>n.code===t.code)}getAvailableActions(){return this.allActions.filter(t=>!this.actions.find(n=>n.code===t.code))}getActionDefinition(t){return this.allActions.find(n=>n.code===t.code)}saveButtonEnabled(){return this.detailForm.dirty&&this.detailForm.valid&&(0!==this.conditions.length||this.detailForm.value.couponCode)&&0!==this.actions.length}addCondition(t){this.addOperation("conditions",t),this.detailForm.markAsDirty()}addAction(t){this.addOperation("actions",t),this.detailForm.markAsDirty()}removeCondition(t){this.removeOperation("conditions",t),this.detailForm.markAsDirty()}removeAction(t){this.removeOperation("actions",t),this.detailForm.markAsDirty()}formArrayOf(t){return this.detailForm.get(t)}create(){if(!this.detailForm.dirty)return;const t=this.detailForm.value,n={name:t.name,enabled:!0,couponCode:t.couponCode,perCustomerUsageLimit:t.perCustomerUsageLimit,startsAt:t.startsAt,endsAt:t.endsAt,conditions:this.mapOperationsToInputs(this.conditions,t.conditions),actions:this.mapOperationsToInputs(this.actions,t.actions),customFields:t.customFields};this.dataService.promotion.createPromotion(n).subscribe(({createPromotion:i})=>{switch(i.__typename){case"Promotion":this.notificationService.success((0,l.J)("common.notify-create-success"),{entity:"Promotion"}),this.detailForm.markAsPristine(),this.changeDetector.markForCheck(),this.router.navigate(["../",i.id],{relativeTo:this.route});break;case"MissingConditionsError":this.notificationService.error(i.message)}},i=>{this.notificationService.error((0,l.J)("common.notify-create-error"),{entity:"Promotion"})})}save(){if(!this.detailForm.dirty)return;const t=this.detailForm.value;this.promotion$.pipe((0,I.q)(1),(0,k.z)(n=>{const i={id:n.id,name:t.name,enabled:t.enabled,couponCode:t.couponCode,perCustomerUsageLimit:t.perCustomerUsageLimit,startsAt:t.startsAt,endsAt:t.endsAt,conditions:this.mapOperationsToInputs(this.conditions,t.conditions),actions:this.mapOperationsToInputs(this.actions,t.actions),customFields:t.customFields};return this.dataService.promotion.updatePromotion(i)})).subscribe(n=>{this.notificationService.success((0,l.J)("common.notify-update-success"),{entity:"Promotion"}),this.detailForm.markAsPristine(),this.changeDetector.markForCheck()},n=>{this.notificationService.error((0,l.J)("common.notify-update-error"),{entity:"Promotion"})})}setFormValues(t,n){this.detailForm.patchValue({name:t.name,enabled:t.enabled,couponCode:t.couponCode,perCustomerUsageLimit:t.perCustomerUsageLimit,startsAt:t.startsAt,endsAt:t.endsAt}),t.conditions.forEach(i=>{this.addOperation("conditions",i)}),t.actions.forEach(i=>this.addOperation("actions",i)),this.customFields.length&&this.setCustomFieldFormValues(this.customFields,this.detailForm.get("customFields"),t)}mapOperationsToInputs(t,n){return t.map((i,a)=>({code:i.code,arguments:Object.values(n[a].args).map((s,m)=>({name:i.args[m].name,value:(0,d.qrw)(s)}))}))}addOperation(t,n){const i=this.formArrayOf(t),a="conditions"===t?this.conditions:this.actions;if(-1===i.value.findIndex(m=>m.code===n.code)){const m=n.args.reduce((p,_)=>{var b;return Object.assign(Object.assign({},p),{[_.name]:null!==(b=(0,d.sux)(_.value))&&void 0!==b?b:this.getDefaultArgValue(t,n,_.name)})},{});i.push(this.formBuilder.control({code:n.code,args:m})),a.push({code:n.code,args:n.args.map(p=>({name:p.name,value:(0,d.sux)(p.value)}))})}}getDefaultArgValue(t,n,i){const a="conditions"===t?this.allConditions.find(s=>s.code===n.code):this.allActions.find(s=>s.code===n.code);if(a){const s=a.args.find(m=>m.name===i);if(s)return(0,d.NWQ)(s)}throw new Error('Could not determine default value for "argName"')}removeOperation(t,n){const i=this.formArrayOf(t),a="conditions"===t?this.conditions:this.actions,s=i.value.findIndex(m=>m.code===n.code);-1!==s&&(i.removeAt(s),a.splice(s,1))}}h.\u0275fac=function(t){return new(t||h)(o.Y36(u.F0),o.Y36(u.gz),o.Y36(d.iHG),o.Y36(o.sBO),o.Y36(d.DoR),o.Y36(c.qu),o.Y36(d.gqp))},h.\u0275cmp=o.Xpm({type:h,selectors:[["vdr-promotion-detail"]],features:[o.qOj],decls:48,vars:46,consts:[[1,"flex","clr-align-items-center"],[3,"entity"],[4,"vdrIfPermissions"],["locationId","promotion-detail"],["class","btn btn-primary",3,"disabled","click",4,"ngIf","ngIfElse"],["updateButton",""],[1,"form",3,"formGroup"],["for","name",3,"label"],["id","name","type","text","formControlName","name",3,"readonly"],["for","startsAt",3,"label"],["formControlName","startsAt"],["for","endsAt",3,"label"],["formControlName","endsAt"],["for","couponCode",3,"label"],["id","couponCode","type","text","formControlName","couponCode",3,"readonly"],["for","perCustomerUsageLimit",3,"label"],["id","perCustomerUsageLimit","type","number","min","1","max","999","formControlName","perCustomerUsageLimit",3,"readonly"],["formGroupName","customFields",4,"ngIf"],["locationId","promotion-detail",3,"entity$","detailForm"],[1,"clr-row"],["formArrayName","conditions",1,"clr-col"],[1,"clr-control-label"],[4,"ngFor","ngForOf"],["formArrayName","actions",1,"clr-col"],[3,"operation","readonly","operationDefinition","formControlName","remove",4,"ngFor","ngForOf"],["type","checkbox","clrToggle","","name","enabled",3,"formControl"],[1,"btn","btn-primary",3,"disabled","click"],["class","btn btn-primary",3,"disabled","click",4,"vdrIfPermissions"],["formGroupName","customFields"],["entityName","Promotion",3,"customFields","customFieldsFormGroup","readonly"],[3,"readonly","operation","operationDefinition","formControlName","remove"],["vdrDropdownTrigger","",1,"btn","btn-outline"],["shape","plus"],["vdrPosition","bottom-left"],["type","button","vdrDropdownItem","",3,"click",4,"ngFor","ngForOf"],["type","button","vdrDropdownItem","",3,"click"],[3,"operation","readonly","operationDefinition","formControlName","remove"]],template:function(t,n){if(1&t&&(o.TgZ(0,"vdr-action-bar")(1,"vdr-ab-left")(2,"div",0),o._UZ(3,"vdr-entity-info",1),o.ALo(4,"async"),o.YNc(5,E,5,5,"clr-toggle-wrapper",2),o.qZA()(),o.TgZ(6,"vdr-ab-right"),o._UZ(7,"vdr-action-bar-items",3),o.YNc(8,B,3,4,"button",4),o.ALo(9,"async"),o.YNc(10,G,1,1,"ng-template",null,5,o.W1O),o.qZA()(),o.TgZ(12,"form",6)(13,"vdr-form-field",7),o.ALo(14,"translate"),o._UZ(15,"input",8),o.ALo(16,"hasPermission"),o.qZA(),o.TgZ(17,"vdr-form-field",9),o.ALo(18,"translate"),o._UZ(19,"vdr-datetime-picker",10),o.qZA(),o.TgZ(20,"vdr-form-field",11),o.ALo(21,"translate"),o._UZ(22,"vdr-datetime-picker",12),o.qZA(),o.TgZ(23,"vdr-form-field",13),o.ALo(24,"translate"),o._UZ(25,"input",14),o.ALo(26,"hasPermission"),o.qZA(),o.TgZ(27,"vdr-form-field",15),o.ALo(28,"translate"),o._UZ(29,"input",16),o.ALo(30,"hasPermission"),o.qZA(),o.YNc(31,V,6,8,"section",17),o._UZ(32,"vdr-custom-detail-component-host",18),o.TgZ(33,"div",19)(34,"div",20)(35,"label",21),o._uU(36),o.ALo(37,"translate"),o.qZA(),o.YNc(38,R,3,6,"ng-container",22),o.TgZ(39,"div"),o.YNc(40,K,7,4,"vdr-dropdown",2),o.qZA()(),o.TgZ(41,"div",23)(42,"label",21),o._uU(43),o.ALo(44,"translate"),o.qZA(),o.YNc(45,W,2,6,"vdr-configurable-input",24),o.TgZ(46,"div"),o.YNc(47,oo,7,4,"vdr-dropdown",2),o.qZA()()()()),2&t){const i=o.MAs(11);o.xp6(3),o.Q6J("entity",o.lcZ(4,22,n.entity$)),o.xp6(2),o.Q6J("vdrIfPermissions","UpdatePromotion"),o.xp6(3),o.Q6J("ngIf",o.lcZ(9,24,n.isNew$))("ngIfElse",i),o.xp6(4),o.Q6J("formGroup",n.detailForm),o.xp6(1),o.Q6J("label",o.lcZ(14,26,"common.name")),o.xp6(2),o.Q6J("readonly",!o.lcZ(16,28,"UpdatePromotion")),o.xp6(2),o.Q6J("label",o.lcZ(18,30,"marketing.starts-at")),o.xp6(3),o.Q6J("label",o.lcZ(21,32,"marketing.ends-at")),o.xp6(3),o.Q6J("label",o.lcZ(24,34,"marketing.coupon-code")),o.xp6(2),o.Q6J("readonly",!o.lcZ(26,36,"UpdatePromotion")),o.xp6(2),o.Q6J("label",o.lcZ(28,38,"marketing.per-customer-limit")),o.xp6(2),o.Q6J("readonly",!o.lcZ(30,40,"UpdatePromotion")),o.xp6(2),o.Q6J("ngIf",n.customFields.length),o.xp6(1),o.Q6J("entity$",n.entity$)("detailForm",n.detailForm),o.xp6(4),o.Oqu(o.lcZ(37,42,"marketing.conditions")),o.xp6(2),o.Q6J("ngForOf",n.conditions),o.xp6(2),o.Q6J("vdrIfPermissions","UpdatePromotion"),o.xp6(3),o.Oqu(o.lcZ(44,44,"marketing.actions")),o.xp6(2),o.Q6J("ngForOf",n.actions),o.xp6(2),o.Q6J("vdrIfPermissions","UpdatePromotion")}},directives:[f.Kk,f.BN,q.V,P.H,A.PEh,y.y,c.Wl,A.KKC,c.JJ,c.oH,A.MgK,f.mz,T.W,C.O5,c._Y,c.JL,c.sg,Y.h,c.Fj,c.u,w.I,c.qQ,c.Fd,c.wV,c.x0,j.y,M.C,c.CE,C.sg,S.q,F.J,L.U,A.qvL,U.N,J.H],pipes:[C.Ov,D.X$,O.j],styles:[""],changeDetection:0});var to=r(6646),no=r(591),eo=r(1989),io=r(8951),ro=r(2673),ao=r(365),so=r(901),co=r(4447),mo=r(8899),lo=r(2651);const po=function(){return["./create"]};function uo(e,t){1&e&&(o.TgZ(0,"a",6),o._UZ(1,"clr-icon",7),o._uU(2),o.ALo(3,"translate"),o.qZA()),2&e&&(o.Q6J("routerLink",o.DdM(4,po)),o.xp6(2),o.hij(" ",o.lcZ(3,2,"marketing.create-new-promotion")," "))}function go(e,t){if(1&e&&(o.TgZ(0,"vdr-chip"),o._uU(1),o.qZA()),2&e){const n=o.oxw().item;o.xp6(1),o.hij(" ",n.couponCode," ")}}function fo(e,t){1&e&&(o.TgZ(0,"vdr-chip"),o._uU(1),o.ALo(2,"translate"),o.qZA()),2&e&&(o.xp6(1),o.Oqu(o.lcZ(2,1,"common.disabled")))}const ho=function(e){return["./",e]};function vo(e,t){if(1&e){const n=o.EpF();o.TgZ(0,"td",8),o._uU(1),o.qZA(),o.TgZ(2,"td",8),o.YNc(3,go,2,1,"vdr-chip",9),o.qZA(),o.TgZ(4,"td",8),o._uU(5),o.ALo(6,"localeDate"),o.qZA(),o.TgZ(7,"td",8),o._uU(8),o.ALo(9,"localeDate"),o.qZA(),o.TgZ(10,"td",10),o.YNc(11,fo,3,3,"vdr-chip",9),o.qZA(),o.TgZ(12,"td",11),o._UZ(13,"vdr-table-row-action",12),o.ALo(14,"translate"),o.qZA(),o.TgZ(15,"td",11)(16,"vdr-dropdown")(17,"button",13),o._uU(18),o.ALo(19,"translate"),o._UZ(20,"clr-icon",14),o.qZA(),o.TgZ(21,"vdr-dropdown-menu",15)(22,"button",16),o.NdJ("click",function(){const s=o.CHM(n).item;return o.oxw().deletePromotion(s.id)}),o.ALo(23,"hasPermission"),o._UZ(24,"clr-icon",17),o._uU(25),o.ALo(26,"translate"),o.qZA()()()()}if(2&e){const n=t.item;o.xp6(1),o.Oqu(n.name),o.xp6(2),o.Q6J("ngIf",n.couponCode),o.xp6(2),o.Oqu(o.xi3(6,10,n.startsAt,"longDate")),o.xp6(3),o.Oqu(o.xi3(9,13,n.endsAt,"longDate")),o.xp6(3),o.Q6J("ngIf",!n.enabled),o.xp6(2),o.Q6J("label",o.lcZ(14,16,"common.edit"))("linkTo",o.VKq(24,ho,n.id)),o.xp6(5),o.hij(" ",o.lcZ(19,18,"common.actions")," "),o.xp6(4),o.Q6J("disabled",!o.lcZ(23,20,"DeletePromotion")),o.xp6(3),o.hij(" ",o.lcZ(26,22,"common.delete")," ")}}class v extends d.t7C{constructor(t,n,i,a,s){super(n,i),this.dataService=t,this.notificationService=a,this.modalService=s,this.searchForm=new c.cw({name:new c.NI(""),couponCode:new c.NI("")}),super.setQueryFn((...m)=>this.dataService.promotion.getPromotions(...m).refetchOnChannelChange(),m=>m.promotions,(m,p)=>this.createQueryOptions(m,p,this.searchForm.value))}ngOnInit(){super.ngOnInit(),(0,to.T)(this.searchForm.valueChanges.pipe((0,eo.b)(250)),this.route.queryParamMap).pipe((0,io.R)(this.destroy$)).subscribe(t=>{t.params||this.setPageNumber(1),this.refresh()})}deletePromotion(t){this.modalService.dialog({title:(0,l.J)("catalog.confirm-delete-promotion"),buttons:[{type:"secondary",label:(0,l.J)("common.cancel")},{type:"danger",label:(0,l.J)("common.delete"),returnValue:!0}]}).pipe((0,ro.w)(n=>n?this.dataService.promotion.deletePromotion(t):no.E)).subscribe(()=>{this.notificationService.success((0,l.J)("common.notify-delete-success"),{entity:"Promotion"}),this.refresh()},n=>{this.notificationService.error((0,l.J)("common.notify-delete-error"),{entity:"Promotion"})})}createQueryOptions(t,n,i){const a={};return i.couponCode&&(a.couponCode={contains:i.couponCode}),i.name&&(a.name={contains:i.name}),{options:{skip:t,take:n,filter:a}}}}v.\u0275fac=function(t){return new(t||v)(o.Y36(d.DoR),o.Y36(u.F0),o.Y36(u.gz),o.Y36(d.gqp),o.Y36(d.Z7U))},v.\u0275cmp=o.Xpm({type:v,selectors:[["vdr-promotion-list"]],features:[o.qOj],decls:31,vars:32,consts:[[1,"search-form",3,"formGroup"],["type","text","formControlName","name",1,"search-input",3,"placeholder"],["type","text","formControlName","couponCode",1,"search-input",3,"placeholder"],["locationId","promotion-list"],["class","btn btn-primary",3,"routerLink",4,"vdrIfPermissions"],[3,"items","itemsPerPage","totalItems","currentPage","pageChange","itemsPerPageChange"],[1,"btn","btn-primary",3,"routerLink"],["shape","plus"],[1,"left","align-middle"],[4,"ngIf"],[1,"align-middle"],[1,"right","align-middle"],["iconShape","edit",3,"label","linkTo"],["type","button","vdrDropdownTrigger","",1,"btn","btn-link","btn-sm"],["shape","caret down"],["vdrPosition","bottom-right"],["type","button","vdrDropdownItem","",1,"delete-button",3,"disabled","click"],["shape","trash",1,"is-danger"]],template:function(t,n){1&t&&(o.TgZ(0,"vdr-action-bar")(1,"vdr-ab-left")(2,"form",0),o._UZ(3,"input",1),o.ALo(4,"translate"),o._UZ(5,"input",2),o.ALo(6,"translate"),o.qZA()(),o.TgZ(7,"vdr-ab-right"),o._UZ(8,"vdr-action-bar-items",3),o.YNc(9,uo,4,5,"a",4),o.qZA()(),o.TgZ(10,"vdr-data-table",5),o.NdJ("pageChange",function(a){return n.setPageNumber(a)})("itemsPerPageChange",function(a){return n.setItemsPerPage(a)}),o.ALo(11,"async"),o.ALo(12,"async"),o.ALo(13,"async"),o.ALo(14,"async"),o.TgZ(15,"vdr-dt-column"),o._uU(16),o.ALo(17,"translate"),o.qZA(),o.TgZ(18,"vdr-dt-column"),o._uU(19),o.ALo(20,"translate"),o.qZA(),o.TgZ(21,"vdr-dt-column"),o._uU(22),o.ALo(23,"translate"),o.qZA(),o.TgZ(24,"vdr-dt-column"),o._uU(25),o.ALo(26,"translate"),o.qZA(),o._UZ(27,"vdr-dt-column")(28,"vdr-dt-column")(29,"vdr-dt-column"),o.YNc(30,vo,27,26,"ng-template"),o.qZA()),2&t&&(o.xp6(2),o.Q6J("formGroup",n.searchForm),o.xp6(1),o.Q6J("placeholder",o.lcZ(4,12,"marketing.search-by-name")),o.xp6(2),o.Q6J("placeholder",o.lcZ(6,14,"marketing.search-by-coupon-code")),o.xp6(4),o.Q6J("vdrIfPermissions","CreatePromotion"),o.xp6(1),o.Q6J("items",o.lcZ(11,16,n.items$))("itemsPerPage",o.lcZ(12,18,n.itemsPerPage$))("totalItems",o.lcZ(13,20,n.totalItems$))("currentPage",o.lcZ(14,22,n.currentPage$)),o.xp6(6),o.Oqu(o.lcZ(17,24,"common.name")),o.xp6(3),o.Oqu(o.lcZ(20,26,"marketing.coupon-code")),o.xp6(3),o.Oqu(o.lcZ(23,28,"marketing.starts-at")),o.xp6(3),o.Oqu(o.lcZ(26,30,"marketing.ends-at")))},directives:[f.Kk,f.BN,c._Y,c.JL,c.sg,y.y,c.Fj,c.JJ,c.u,f.mz,T.W,P.H,u.yS,A.qvL,ao.Q,so.E,C.O5,co.Y,mo.v,F.J,L.U,U.N,J.H],pipes:[D.X$,C.Ov,lo.H,O.j],styles:[".search-form[_ngcontent-%COMP%]{padding:0}.search-input[_ngcontent-%COMP%]{margin:6px 8px 0 0;min-width:200px}"],changeDetection:0});class g extends d.p_9{constructor(t,n){super(t,{__typename:"Promotion",id:"",createdAt:"",updatedAt:"",name:"",enabled:!1,conditions:[],actions:[]},i=>n.promotion.getPromotion(i).mapStream(a=>a.promotion))}}g.\u0275fac=function(t){return new(t||g)(o.LFG(u.F0),o.LFG(d.DoR))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"});const N=[{path:"promotions",component:v,data:{breadcrumb:(0,l.J)("breadcrumb.promotions")}},{path:"promotions/:id",component:h,resolve:(0,d.Po4)(g),canDeactivate:[d.TSp],data:{breadcrumb:Q}}];function Q(e,t){return(0,d.YWC)({entity:e.entity,id:t.id,breadcrumbKey:"breadcrumb.promotions",getName:n=>n.name,route:"promotions"})}class Z{}Z.\u0275fac=function(t){return new(t||Z)},Z.\u0275mod=o.oAB({type:Z}),Z.\u0275inj=o.cJS({imports:[[d.m81,u.Bz.forChild(N)]]})}}]);
|
|
2
|
+
//# sourceMappingURL=239.a68e402e10b798f1.js.map
|