@medusajs/dashboard 3.0.0-preview-20250211091350 → 3.0.0-preview-20250406164537
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/dist/{add-campaign-promotions-YQ6JJK6I.mjs → add-campaign-promotions-EYK2OY7B.mjs} +19 -18
- package/dist/{adjust-inventory-42AT6TIZ.mjs → adjust-inventory-WYNH75F7.mjs} +10 -9
- package/dist/{api-key-management-create-FCTZ6A46.mjs → api-key-management-create-HWBQGG6O.mjs} +10 -9
- package/dist/{api-key-management-detail-V6UELD25.mjs → api-key-management-detail-2TXLKXOT.mjs} +42 -44
- package/dist/{api-key-management-edit-WTS63YJS.mjs → api-key-management-edit-UX47FHWV.mjs} +11 -10
- package/dist/{api-key-management-list-MKVE46ZE.mjs → api-key-management-list-DGPEFCW2.mjs} +17 -19
- package/dist/{api-key-management-sales-channels-SHHZXVPP.mjs → api-key-management-sales-channels-SYEJXQLU.mjs} +19 -18
- package/dist/app.css +44 -30
- package/dist/app.js +64876 -57524
- package/dist/app.mjs +56 -4597
- package/dist/{campaign-budget-edit-7MSDQ3MH.mjs → campaign-budget-edit-57NSOYJ3.mjs} +9 -8
- package/dist/{campaign-configuration-XITAHVHN.mjs → campaign-configuration-QV3OHWBZ.mjs} +9 -8
- package/dist/{campaign-create-WKVDJFQC.mjs → campaign-create-NYJ4HILG.mjs} +8 -7
- package/dist/{campaign-detail-PGM2SOEA.mjs → campaign-detail-BMKKY4FI.mjs} +43 -45
- package/dist/{campaign-edit-NRN4EBJC.mjs → campaign-edit-3D5WFWCT.mjs} +9 -8
- package/dist/{campaign-list-6TW2SO7C.mjs → campaign-list-OADDBYVB.mjs} +17 -19
- package/dist/{categories-metadata-D3EM5VK2.mjs → categories-metadata-TE7B2OJY.mjs} +35 -35
- package/dist/{category-create-ULKTNF7N.mjs → category-create-NVRG7B6E.mjs} +10 -9
- package/dist/{category-detail-Z6GWCJUW.mjs → category-detail-MTVNR43M.mjs} +44 -46
- package/dist/{category-edit-HTC6237J.mjs → category-edit-JBZQKNL7.mjs} +10 -9
- package/dist/{category-list-6WTV4T7D.mjs → category-list-2XIIEFBU.mjs} +16 -18
- package/dist/{category-organize-OPDZY4YR.mjs → category-organize-HUXXVJAB.mjs} +7 -6
- package/dist/{category-products-ND7PSI4Q.mjs → category-products-F3I4B7TM.mjs} +44 -43
- package/dist/{chunk-NRUKBT5S.mjs → chunk-2MPQMCLO.mjs} +4 -4
- package/dist/{chunk-ZYBB636P.mjs → chunk-2VTICXJR.mjs} +1 -1
- package/dist/{chunk-IPEN5VX6.mjs → chunk-2WQFRVK5.mjs} +3 -3
- package/dist/{chunk-ZMMQPAR2.mjs → chunk-2ZKVRTBW.mjs} +1 -1
- package/dist/{chunk-QDC5CTTV.mjs → chunk-32IQRUVY.mjs} +1 -1
- package/dist/{chunk-YXEAWUSX.mjs → chunk-3KLERXD7.mjs} +15 -1
- package/dist/{chunk-NDQ77BA4.mjs → chunk-3OHH43G6.mjs} +2 -2
- package/dist/{chunk-GT4RPCDE.mjs → chunk-4GJJIXM6.mjs} +2 -2
- package/dist/{chunk-EI45S6ZK.mjs → chunk-4HLCNNIC.mjs} +1 -1
- package/dist/{chunk-5ZZZZK7A.mjs → chunk-6I62UDJA.mjs} +4 -1
- package/dist/{chunk-AODKPQIG.mjs → chunk-6LA2RGO4.mjs} +3 -3
- package/dist/{chunk-77TK23EH.mjs → chunk-7I5DQGWY.mjs} +1 -0
- package/dist/{chunk-YJPZZD5Z.mjs → chunk-7MM5L2ZM.mjs} +1 -1
- package/dist/{chunk-HVUHNRLX.mjs → chunk-A2UMBW3V.mjs} +1 -1
- package/dist/{chunk-QX7ANQDG.mjs → chunk-AL4WDQTN.mjs} +23 -17
- package/dist/{chunk-S4HBRQEC.mjs → chunk-B4GODIOW.mjs} +1 -1
- package/dist/{chunk-5EJJE3NE.mjs → chunk-BC3M3N6P.mjs} +2 -2
- package/dist/{chunk-OCNMY23F.mjs → chunk-C5LYZZZ5.mjs} +1 -1
- package/dist/chunk-C5P5PL3E.mjs +31 -0
- package/dist/chunk-CDQY5XPE.mjs +5241 -0
- package/dist/{chunk-JXBMQ4SZ.mjs → chunk-CF64SRBE.mjs} +6 -6
- package/dist/{chunk-QE3BG56P.mjs → chunk-CLRTJ6DI.mjs} +2 -2
- package/dist/{chunk-CBJWO6K6.mjs → chunk-D7H6ZNK4.mjs} +12 -5
- package/dist/{chunk-LM3FXIYT.mjs → chunk-DDV2HJEV.mjs} +2 -2
- package/dist/chunk-DEQUVHHE.mjs +17 -0
- package/dist/{chunk-EMNHBSFU.mjs → chunk-DFA6WGYO.mjs} +34 -0
- package/dist/{chunk-S5X4EFD4.mjs → chunk-DRAV7IQC.mjs} +6 -6
- package/dist/{chunk-AFDSZWCS.mjs → chunk-DXOEDXLQ.mjs} +5 -5
- package/dist/{chunk-MAWEQJDF.mjs → chunk-EAX5QFXH.mjs} +1 -1
- package/dist/{chunk-WX2SMNCD.mjs → chunk-EMIHDNB7.mjs} +4 -3
- package/dist/{chunk-GVRV2SOJ.mjs → chunk-ENV6YVOM.mjs} +3 -3
- package/dist/{chunk-N6PBCMOV.mjs → chunk-EYMDU2JD.mjs} +9 -9
- package/dist/{chunk-6SDR2EUC.mjs → chunk-F6IJV2I2.mjs} +2 -2
- package/dist/{chunk-S3MWIWV4.mjs → chunk-F6PXCY3N.mjs} +34 -1
- package/dist/{chunk-BOR5HF2M.mjs → chunk-FP5F2XCU.mjs} +2 -2
- package/dist/{chunk-KLXXECPX.mjs → chunk-FVC7M755.mjs} +2 -2
- package/dist/{chunk-MRJ6KQAL.mjs → chunk-FVK4ZYYM.mjs} +2 -2
- package/dist/{chunk-ZVVQK46Y.mjs → chunk-FZANNV6G.mjs} +1 -1
- package/dist/{chunk-SWYL3QGB.mjs → chunk-G2H6MAK7.mjs} +1 -14
- package/dist/{chunk-RAKBTSZ7.mjs → chunk-GIQRSI5I.mjs} +2 -2
- package/dist/{chunk-BF3VCHXD.mjs → chunk-GRT22PE5.mjs} +2 -2
- package/dist/{chunk-IC72XMDJ.mjs → chunk-GXXQ33F7.mjs} +1 -1
- package/dist/{chunk-W6N53UNG.mjs → chunk-GZBFGV7Y.mjs} +14 -1
- package/dist/{chunk-HP4JZCP4.mjs → chunk-HDSWPQLG.mjs} +11 -12
- package/dist/{chunk-QWU4TCQ7.mjs → chunk-HGKRB5AS.mjs} +8 -8
- package/dist/{chunk-ODVOHYAS.mjs → chunk-HGUTDEW5.mjs} +26 -28
- package/dist/{chunk-QFAUOMG6.mjs → chunk-HUGE7T5V.mjs} +3 -3
- package/dist/{chunk-A2MEYV4D.mjs → chunk-ICR3D7SB.mjs} +2 -2
- package/dist/{chunk-DJPQV344.mjs → chunk-IVB3LUGL.mjs} +1 -1
- package/dist/{chunk-TKREK46F.mjs → chunk-IXQKZGD4.mjs} +1 -1
- package/dist/{chunk-3OJ4LCJL.mjs → chunk-KHN4RXLS.mjs} +1 -1
- package/dist/{chunk-TXPNGFWJ.mjs → chunk-KOSCMAIC.mjs} +1 -1
- package/dist/{chunk-VJRTPNEA.mjs → chunk-LDJKJLBJ.mjs} +1 -1
- package/dist/{chunk-CJ3L6MQZ.mjs → chunk-LIWT6YHM.mjs} +1 -1
- package/dist/{chunk-FX3ZJWB6.mjs → chunk-LTC6LGS4.mjs} +1 -1
- package/dist/{chunk-IQ2LC4FN.mjs → chunk-NGEWNLV7.mjs} +41 -54
- package/dist/{chunk-FPVDKY3X.mjs → chunk-NLC6AFB4.mjs} +23 -24
- package/dist/{chunk-WAYDNCEG.mjs → chunk-OBQI23QM.mjs} +1 -16
- package/dist/{chunk-4M3ZY7KA.mjs → chunk-PCFUZKDS.mjs} +3 -1
- package/dist/{chunk-JKKJMCX3.mjs → chunk-PEGJVODH.mjs} +1 -1
- package/dist/{chunk-JGKUKVRC.mjs → chunk-PFTU26LC.mjs} +1 -1
- package/dist/{chunk-O3US4QMC.mjs → chunk-PIR2H25N.mjs} +1 -1
- package/dist/{chunk-UQUJ5W2Q.mjs → chunk-PNU5HPGY.mjs} +2 -2
- package/dist/{chunk-B4FQDBC3.mjs → chunk-PW2G3HGL.mjs} +9 -10
- package/dist/{chunk-HYULYW73.mjs → chunk-QL4XKIVL.mjs} +1 -1
- package/dist/{chunk-SFPKA7H3.mjs → chunk-QTCZFYFH.mjs} +1 -1
- package/dist/{chunk-SY6HAFQV.mjs → chunk-QZ6PT4QV.mjs} +2 -2
- package/dist/{chunk-NAC6TXKN.mjs → chunk-RLY2SL5E.mjs} +1 -1
- package/dist/{chunk-IUIZA5UF.mjs → chunk-RWU2ZKWZ.mjs} +3 -3
- package/dist/{chunk-CLOHNZKZ.mjs → chunk-RZD5DU5K.mjs} +2 -2
- package/dist/{chunk-6FJ2PJHE.mjs → chunk-S22NYSST.mjs} +7 -4
- package/dist/{chunk-6XTDCUWJ.mjs → chunk-SKR2YX52.mjs} +2 -2
- package/dist/{chunk-UGE5SYTC.mjs → chunk-TDDYKNA2.mjs} +4 -4
- package/dist/{chunk-F7H5DLUU.mjs → chunk-TP7N4YBP.mjs} +1 -1
- package/dist/{chunk-5OOAHPXU.mjs → chunk-UAZEQNCO.mjs} +2 -2
- package/dist/{chunk-UT3IS7J3.mjs → chunk-URDECN5D.mjs} +43597 -37277
- package/dist/{chunk-23LLRBGF.mjs → chunk-V2LANK5S.mjs} +2 -2
- package/dist/{chunk-AS54JDUL.mjs → chunk-W7KW2VOI.mjs} +27 -27
- package/dist/{chunk-BKWQ2FHJ.mjs → chunk-WL7NJCWV.mjs} +1 -1
- package/dist/{chunk-JHNHXN7U.mjs → chunk-X2Y4KNQI.mjs} +2 -2
- package/dist/{chunk-YYGNAECV.mjs → chunk-X66KDK4I.mjs} +1 -1
- package/dist/{chunk-NOL65OUL.mjs → chunk-XM6J2DWV.mjs} +1 -1
- package/dist/{chunk-6CNRNROJ.mjs → chunk-YIZSVS2R.mjs} +6 -4
- package/dist/{chunk-JJ3UWAUO.mjs → chunk-YS65UGPC.mjs} +3 -3
- package/dist/{chunk-AYRG2MQL.mjs → chunk-ZCO6EK4W.mjs} +24 -7
- package/dist/{chunk-6TVXQXDC.mjs → chunk-ZIHOMEGZ.mjs} +2 -2
- package/dist/{chunk-WHZIEWSQ.mjs → chunk-ZJ3OFMHB.mjs} +2 -2
- package/dist/{collection-add-products-KGBBZFCE.mjs → collection-add-products-BAX6JOLN.mjs} +44 -43
- package/dist/{collection-create-NLRAIKZP.mjs → collection-create-PXO6DJS3.mjs} +9 -8
- package/dist/{collection-detail-AZZ2NT4L.mjs → collection-detail-YE42DHWS.mjs} +43 -45
- package/dist/{collection-edit-WO54XZLV.mjs → collection-edit-D7OGD4MC.mjs} +10 -9
- package/dist/{collection-list-2AFD2BXW.mjs → collection-list-KTS4LVM2.mjs} +54 -58
- package/dist/collection-metadata-244B7424.mjs +69 -0
- package/dist/{customer-create-AJYD5CIA.mjs → customer-create-TKKVS4LF.mjs} +8 -7
- package/dist/customer-create-address-P4YQFUI5.mjs +291 -0
- package/dist/{customer-detail-MWT2NNQK.mjs → customer-detail-HJPJLMMO.mjs} +246 -129
- package/dist/{customer-edit-566R4FAT.mjs → customer-edit-I4K3LK66.mjs} +12 -11
- package/dist/{customer-group-add-customers-6IANRPQ6.mjs → customer-group-add-customers-U3ENH6JX.mjs} +19 -18
- package/dist/{customer-group-create-XTXMFKFX.mjs → customer-group-create-5EILGGLH.mjs} +8 -7
- package/dist/{customer-group-detail-ULS2F7OQ.mjs → customer-group-detail-JRPGZBVS.mjs} +44 -46
- package/dist/{customer-group-edit-KVEBH5N2.mjs → customer-group-edit-NBVNSBMX.mjs} +9 -8
- package/dist/{customer-group-list-LZSSOYBR.mjs → customer-group-list-643IECH3.mjs} +38 -40
- package/dist/{customer-group-metadata-MTAZJYBH.mjs → customer-group-metadata-IRTI56TA.mjs} +7 -7
- package/dist/{customer-list-JAKCVGFG.mjs → customer-list-544N5LA5.mjs} +18 -20
- package/dist/{customer-metadata-RO5DVFXZ.mjs → customer-metadata-TPIFKFIQ.mjs} +7 -7
- package/dist/{customers-add-customer-group-6TEWBPIE.mjs → customers-add-customer-group-CTBHD33Y.mjs} +43 -42
- package/dist/{edit-inventory-item-N6JQUIYO.mjs → edit-inventory-item-KQUKSOGO.mjs} +6 -5
- package/dist/{edit-inventory-item-attributes-D5SSHDVI.mjs → edit-inventory-item-attributes-I55BRBWC.mjs} +23 -6
- package/dist/{edit-reservation-E6JRXRAL.mjs → edit-reservation-GEJHV6OI.mjs} +13 -12
- package/dist/{edit-rules-6XNJL6AE.mjs → edit-rules-7MMNZKEQ.mjs} +15 -13
- package/dist/index.d.ts +4 -4
- package/dist/{inventory-create-KYURNZS6.mjs → inventory-create-NZ67QMNB.mjs} +38 -36
- package/dist/{inventory-detail-S56TNEU5.mjs → inventory-detail-GO2QWKV7.mjs} +47 -48
- package/dist/{inventory-list-P2ZZH6EN.mjs → inventory-list-X7BACFKE.mjs} +15 -17
- package/dist/{inventory-metadata-IDMV4XVV.mjs → inventory-metadata-AG5IVFBR.mjs} +33 -33
- package/dist/{inventory-stock-4R73ZT3V.mjs → inventory-stock-XZWLARFE.mjs} +34 -33
- package/dist/{invite-W2J3H5L6.mjs → invite-3KXZ7ZZI.mjs} +9 -8
- package/dist/{location-create-3FROOIXF.mjs → location-create-G3CYBYOF.mjs} +9 -8
- package/dist/{location-detail-IEGCZTAI.mjs → location-detail-GHY3DXRP.mjs} +48 -42
- package/dist/{location-edit-AQUHRPQ6.mjs → location-edit-IMBG32Z4.mjs} +10 -9
- package/dist/{location-fulfillment-providers-37FS5TYU.mjs → location-fulfillment-providers-IFPDR2YN.mjs} +44 -43
- package/dist/{location-list-ITU5AOC7.mjs → location-list-5UJ6CSA7.mjs} +13 -15
- package/dist/{location-sales-channels-TSOI2JYI.mjs → location-sales-channels-HERXGXG2.mjs} +18 -17
- package/dist/{location-service-zone-create-2JT4IKFH.mjs → location-service-zone-create-DXKD3F26.mjs} +22 -24
- package/dist/{location-service-zone-edit-LKYVVXDR.mjs → location-service-zone-edit-W3G7XOC7.mjs} +13 -15
- package/dist/{location-service-zone-manage-areas-PT4R2I3K.mjs → location-service-zone-manage-areas-IFT2GCAD.mjs} +21 -20
- package/dist/{location-service-zone-shipping-option-create-KXZIUIZQ.mjs → location-service-zone-shipping-option-create-7KOH5VVW.mjs} +89 -57
- package/dist/{location-service-zone-shipping-option-edit-SC4HD6LU.mjs → location-service-zone-shipping-option-edit-ODUEKZON.mjs} +25 -16
- package/dist/{location-service-zone-shipping-option-pricing-FOET7XJC.mjs → location-service-zone-shipping-option-pricing-SKUSE5YE.mjs} +20 -19
- package/dist/{login-TN5VDDLW.mjs → login-OYY6LIPR.mjs} +37 -37
- package/dist/{manage-locations-PSPBWN5X.mjs → manage-locations-E7YAZVH2.mjs} +7 -6
- package/dist/{order-allocate-items-6HPR2T5L.mjs → order-allocate-items-TMQ5M7TG.mjs} +16 -15
- package/dist/{order-create-claim-FFWV762A.mjs → order-create-claim-AHFF4YNW.mjs} +95 -82
- package/dist/{order-create-edit-LS3ARJDM.mjs → order-create-edit-NLXEFK77.mjs} +52 -51
- package/dist/{order-create-exchange-3OVNNNW3.mjs → order-create-exchange-33STYVYU.mjs} +96 -83
- package/dist/{order-create-fulfillment-K5DFAWHB.mjs → order-create-fulfillment-62OZHL3L.mjs} +53 -51
- package/dist/{order-create-refund-2D46DG3T.mjs → order-create-refund-FXUURAS7.mjs} +60 -64
- package/dist/{order-create-return-PJ3LFXDG.mjs → order-create-return-PONHUZVN.mjs} +41 -37
- package/dist/{order-create-shipment-CCH6V3U6.mjs → order-create-shipment-REC24C7Y.mjs} +35 -34
- package/dist/{order-detail-YYP4INKH.mjs → order-detail-SYXNI7WK.mjs} +72 -85
- package/dist/{order-edit-billing-address-3PYGDUWT.mjs → order-edit-billing-address-XDNORAHG.mjs} +37 -36
- package/dist/{order-edit-email-C5AMYZDN.mjs → order-edit-email-V4DC4GJV.mjs} +36 -35
- package/dist/{order-edit-shipping-address-T6I4D234.mjs → order-edit-shipping-address-NWT5LDKC.mjs} +37 -36
- package/dist/{order-list-IMVPWMTQ.mjs → order-list-X6ETGR3A.mjs} +23 -25
- package/dist/order-metadata-4YNV2NWH.mjs +69 -0
- package/dist/{order-receive-return-2NBMNVBR.mjs → order-receive-return-AXAZNUIB.mjs} +43 -42
- package/dist/{order-request-transfer-U5OYJEI6.mjs → order-request-transfer-OZNQQL3N.mjs} +38 -36
- package/dist/{price-list-configuration-6OHKVV2W.mjs → price-list-configuration-C7QXYPBJ.mjs} +22 -21
- package/dist/{price-list-create-QKTF4G3M.mjs → price-list-create-2VI6JXLQ.mjs} +49 -48
- package/dist/{price-list-detail-G5Y3VVRK.mjs → price-list-detail-2HRWG7KP.mjs} +47 -49
- package/dist/{price-list-edit-OFFEMUHG.mjs → price-list-edit-TMZCXEFR.mjs} +11 -10
- package/dist/{price-list-list-XPNVK6IC.mjs → price-list-list-DDQYCK4O.mjs} +18 -20
- package/dist/{price-list-prices-add-NIFFLI7Y.mjs → price-list-prices-add-IQZO6P4N.mjs} +46 -45
- package/dist/{price-list-prices-edit-KAEE6YLB.mjs → price-list-prices-edit-JUS5FBBN.mjs} +16 -15
- package/dist/{product-attributes-WLWSFTCO.mjs → product-attributes-OT373EPY.mjs} +50 -11
- package/dist/{product-create-P7U26TXX.mjs → product-create-2TKUBQEH.mjs} +77 -72
- package/dist/{product-create-option-ISAGA5KO.mjs → product-create-option-E2GRTBWP.mjs} +6 -5
- package/dist/{product-create-variant-ZQKPGLQQ.mjs → product-create-variant-3B32EC76.mjs} +42 -40
- package/dist/{product-detail-6LXT2IIU.mjs → product-detail-HZBEXKBU.mjs} +105 -66
- package/dist/{product-edit-IDL5IGVQ.mjs → product-edit-V4XTHXKI.mjs} +51 -11
- package/dist/{product-edit-option-6ZGZKU5G.mjs → product-edit-option-RHMF3YKT.mjs} +6 -5
- package/dist/{product-export-JGH4CULP.mjs → product-export-EWO37XJF.mjs} +37 -51
- package/dist/{product-import-YY2EXFLI.mjs → product-import-JCEJKM3F.mjs} +35 -34
- package/dist/{product-list-XOFUYF5S.mjs → product-list-YW3UTPME.mjs} +51 -48
- package/dist/{product-media-RSCMACQU.mjs → product-media-JLPIJRET.mjs} +6 -5
- package/dist/product-metadata-PQQ7XV63.mjs +67 -0
- package/dist/{product-organization-6N7JBWH5.mjs → product-organization-D5AK5F5W.mjs} +53 -14
- package/dist/{product-prices-NPJIYAIK.mjs → product-prices-BBTCM3XR.mjs} +16 -17
- package/dist/{product-sales-channels-MKWZD4NM.mjs → product-sales-channels-7Y3D3C7Q.mjs} +14 -13
- package/dist/{product-shipping-profile-EK6G3NTZ.mjs → product-shipping-profile-3NVF3DW2.mjs} +58 -10
- package/dist/{product-stock-L3FRYPQS.mjs → product-stock-TZS75EG7.mjs} +42 -41
- package/dist/{product-tag-create-CLWQPP7D.mjs → product-tag-create-LE4MZ5BW.mjs} +34 -33
- package/dist/{product-tag-detail-NDZJLI2Q.mjs → product-tag-detail-3EOHF4Z7.mjs} +63 -66
- package/dist/{product-tag-edit-QHHZYHCG.mjs → product-tag-edit-E6WEFNFQ.mjs} +35 -34
- package/dist/{product-tag-list-A73PYQRI.mjs → product-tag-list-RUTJQUCX.mjs} +63 -66
- package/dist/product-type-create-GU5IYXQB.mjs +101 -0
- package/dist/{product-type-detail-AQ5SUXFF.mjs → product-type-detail-3X5ME5WA.mjs} +48 -47
- package/dist/{product-type-edit-5ETUUK7N.mjs → product-type-edit-S53VUBU3.mjs} +9 -8
- package/dist/{product-type-list-TUHBNIIB.mjs → product-type-list-IJI5WEYY.mjs} +22 -21
- package/dist/{product-variant-detail-3XZBP2QJ.mjs → product-variant-detail-UN6GESYO.mjs} +37 -39
- package/dist/{product-variant-edit-7FZ7PQ6U.mjs → product-variant-edit-G6AM27AT.mjs} +36 -34
- package/dist/{product-variant-manage-inventory-items-PRFQHHZD.mjs → product-variant-manage-inventory-items-BKFYUODS.mjs} +9 -7
- package/dist/{product-variant-metadata-PY76KWCU.mjs → product-variant-metadata-2V27ZMDS.mjs} +33 -33
- package/dist/{profile-detail-EYSOSXIU.mjs → profile-detail-YLKHVSGO.mjs} +7 -9
- package/dist/{profile-edit-KZGW3D7V.mjs → profile-edit-EGWJGTXV.mjs} +12 -11
- package/dist/{promotion-add-campaign-YG4T32AU.mjs → promotion-add-campaign-4VNRQF52.mjs} +11 -10
- package/dist/{promotion-create-DUY3VRR7.mjs → promotion-create-PLDWDZMZ.mjs} +17 -15
- package/dist/{promotion-detail-KUVY3KBM.mjs → promotion-detail-BRQXNXUL.mjs} +39 -41
- package/dist/{promotion-edit-details-6BZF724F.mjs → promotion-edit-details-D6M646E6.mjs} +9 -8
- package/dist/{promotion-list-6PKG7DBB.mjs → promotion-list-BSYPXZNW.mjs} +16 -18
- package/dist/{region-add-countries-5VS6OSZW.mjs → region-add-countries-D6N7ISOZ.mjs} +17 -16
- package/dist/{region-create-3UVS7VHZ.mjs → region-create-EOZTZIP5.mjs} +28 -27
- package/dist/{region-detail-SGGN2NPK.mjs → region-detail-HL4UQGTJ.mjs} +13 -15
- package/dist/{region-edit-GPMEIHUM.mjs → region-edit-PXIMLBFB.mjs} +19 -18
- package/dist/{region-list-ETVUX5R3.mjs → region-list-A7Z5XJUW.mjs} +17 -19
- package/dist/{region-metadata-J4QDEISD.mjs → region-metadata-4S6FEUXA.mjs} +35 -35
- package/dist/{reservation-create-O3ALBX5F.mjs → reservation-create-INUIVD55.mjs} +13 -12
- package/dist/{reservation-detail-X46PRDBS.mjs → reservation-detail-I4DM7TQ4.mjs} +32 -34
- package/dist/{reservation-list-HF5TGB2X.mjs → reservation-list-NID2SFUF.mjs} +17 -19
- package/dist/{reservation-metadata-GBTOI33G.mjs → reservation-metadata-5ZABNMJP.mjs} +35 -35
- package/dist/{reset-password-CXIAZ6KT.mjs → reset-password-XTYYQVM4.mjs} +7 -6
- package/dist/{return-reason-create-7DOM36PA.mjs → return-reason-create-YANSYS43.mjs} +8 -7
- package/dist/{return-reason-edit-U2DRNMRP.mjs → return-reason-edit-4FSM4H3M.mjs} +9 -8
- package/dist/{return-reason-list-R2B2M5F3.mjs → return-reason-list-PHUB3SD5.mjs} +37 -40
- package/dist/{sales-channel-add-products-XX6XXL67.mjs → sales-channel-add-products-OJR2UYTQ.mjs} +44 -43
- package/dist/{sales-channel-create-5NVNETJO.mjs → sales-channel-create-HVZPII6E.mjs} +9 -8
- package/dist/{sales-channel-detail-A5LWMTIW.mjs → sales-channel-detail-ZTX3GVHN.mjs} +43 -45
- package/dist/{sales-channel-edit-ZHU2WG4C.mjs → sales-channel-edit-BK7O3ZFI.mjs} +10 -9
- package/dist/{sales-channel-list-WIDZSTDW.mjs → sales-channel-list-HOPPCB5U.mjs} +38 -40
- package/dist/{sales-channel-metadata-EU2OLGZU.mjs → sales-channel-metadata-UH4QYASI.mjs} +35 -35
- package/dist/{shipping-profile-create-A5NGBX2U.mjs → shipping-profile-create-PBDONCGJ.mjs} +8 -7
- package/dist/{shipping-profile-detail-E2ZVCQB5.mjs → shipping-profile-detail-EORJZ7NX.mjs} +6 -8
- package/dist/{shipping-profile-metadata-B3XD5644.mjs → shipping-profile-metadata-UB73OBPJ.mjs} +33 -33
- package/dist/{shipping-profiles-list-QF6YVBB6.mjs → shipping-profiles-list-WRKLRQR7.mjs} +14 -16
- package/dist/{store-add-currencies-SSEOM5WZ.mjs → store-add-currencies-CPWMKSFB.mjs} +19 -18
- package/dist/{store-detail-RK42OQIJ.mjs → store-detail-WLC4RF2Y.mjs} +136 -138
- package/dist/{store-edit-VP2ZK6DB.mjs → store-edit-JNSWFWIG.mjs} +12 -10
- package/dist/store-metadata-GLAZZPP6.mjs +68 -0
- package/dist/{tax-region-create-OLUBBICW.mjs → tax-region-create-EW5USMNY.mjs} +35 -34
- package/dist/{tax-region-detail-MUS2Q44R.mjs → tax-region-detail-MVSV7BWW.mjs} +45 -47
- package/dist/{tax-region-list-OAH2FFY2.mjs → tax-region-list-FNVPRMTQ.mjs} +13 -15
- package/dist/{tax-region-province-create-TAQQLOAS.mjs → tax-region-province-create-LQ5SPSXW.mjs} +10 -9
- package/dist/{tax-region-province-detail-WENPM2PD.mjs → tax-region-province-detail-4G2WUUBB.mjs} +40 -42
- package/dist/{tax-region-tax-override-create-VANMBRAP.mjs → tax-region-tax-override-create-TMMFKM7B.mjs} +67 -67
- package/dist/{tax-region-tax-override-edit-IY5SXK2S.mjs → tax-region-tax-override-edit-R2G2M4PQ.mjs} +72 -72
- package/dist/{tax-region-tax-rate-create-GU7QEL3V.mjs → tax-region-tax-rate-create-7GNLSDJ2.mjs} +12 -11
- package/dist/{tax-region-tax-rate-edit-JZO6CSAX.mjs → tax-region-tax-rate-edit-6U2BQMIE.mjs} +11 -10
- package/dist/{user-detail-I53MPAAS.mjs → user-detail-X2Z2IYNI.mjs} +7 -9
- package/dist/{user-edit-5OL3L6IX.mjs → user-edit-HFSJM4QT.mjs} +9 -8
- package/dist/{user-invite-HKO52FHN.mjs → user-invite-5S2HHL2P.mjs} +23 -22
- package/dist/{user-list-6DWTXQUP.mjs → user-list-LI27NZLQ.mjs} +12 -14
- package/dist/user-metadata-GJ6PIXLU.mjs +70 -0
- package/dist/{workflow-execution-detail-ERZLGDON.mjs → workflow-execution-detail-D26MDYFC.mjs} +32 -34
- package/dist/{workflow-execution-list-VEHTWIZD.mjs → workflow-execution-list-4QDXZ3N5.mjs} +12 -14
- package/package.json +11 -12
- package/src/app.tsx +19 -14
- package/src/components/common/empty-table-content/empty-table-content.tsx +5 -2
- package/src/components/common/infinite-list/infinite-list.tsx +18 -8
- package/src/components/common/listicle/index.ts +1 -0
- package/src/components/common/listicle/listicle.tsx +34 -0
- package/src/components/common/sidebar-link/sidebar-link.tsx +2 -2
- package/src/components/common/switch-box/switch-box.tsx +15 -11
- package/src/components/data-table/data-table.tsx +19 -17
- package/src/components/forms/metadata-form/metadata-form.tsx +19 -8
- package/src/components/inputs/combobox/combobox.tsx +15 -1
- package/src/components/layout/main-layout/main-layout.tsx +3 -3
- package/src/components/layout/nav-item/nav-item.tsx +1 -1
- package/src/components/layout/notifications/notifications.tsx +1 -0
- package/src/components/layout/settings-layout/settings-layout.tsx +2 -3
- package/src/components/modals/hooks/use-state-aware-to.tsx +26 -0
- package/src/components/modals/route-drawer/route-drawer.tsx +7 -4
- package/src/components/modals/route-focus-modal/route-focus-modal.tsx +7 -4
- package/src/components/modals/route-modal-provider/route-provider.tsx +2 -2
- package/src/components/table/table-cells/common/date-cell/date-cell.tsx +10 -12
- package/src/{extensions/dashboard-extension-manager/dashboard-extension-manager.tsx → dashboard-app/dashboard-app.tsx} +168 -58
- package/src/{extensions → dashboard-app}/forms/form-extension-zone/form-extension-zone.tsx +5 -3
- package/src/{extensions → dashboard-app}/index.ts +1 -2
- package/src/dashboard-app/routes/get-route.map.tsx +1742 -0
- package/src/dashboard-app/routes/utils.ts +221 -0
- package/src/{extensions → dashboard-app}/types.ts +15 -0
- package/src/hooks/api/auth.tsx +1 -1
- package/src/hooks/api/customers.tsx +113 -0
- package/src/hooks/api/inventory.tsx +3 -0
- package/src/hooks/api/order-edits.tsx +1 -1
- package/src/hooks/table/query/use-product-table-query.tsx +4 -0
- package/src/hooks/use-combobox-data.tsx +6 -2
- package/src/i18n/languages.ts +15 -1
- package/src/i18n/translations/$schema.json +149 -5
- package/src/i18n/translations/__tests__/validate-translations.spec.ts +1 -0
- package/src/i18n/translations/bg.json +2983 -0
- package/src/i18n/translations/en.json +64 -25
- package/src/i18n/translations/index.ts +8 -0
- package/src/i18n/translations/lt.json +3003 -0
- package/src/i18n/translations/pl.json +359 -74
- package/src/index.ts +2 -0
- package/src/lib/payment.ts +8 -6
- package/src/providers/extension-provider/extension-context.tsx +8 -0
- package/src/providers/extension-provider/extension-provider.tsx +18 -0
- package/src/providers/extension-provider/index.ts +2 -0
- package/src/providers/extension-provider/use-extension.tsx +10 -0
- package/src/providers/providers.tsx +5 -7
- package/src/routes/api-key-management/api-key-management-detail/api-key-management-detail.tsx +2 -2
- package/src/routes/api-key-management/api-key-management-detail/components/api-key-general-section/api-key-general-section.tsx +3 -1
- package/src/routes/api-key-management/api-key-management-list/api-key-management-list.tsx +2 -2
- package/src/routes/campaigns/campaign-detail/campaign-detail.tsx +2 -2
- package/src/routes/campaigns/campaign-list/campaign-list.tsx +2 -2
- package/src/routes/categories/category-detail/category-detail.tsx +2 -2
- package/src/routes/categories/category-list/category-list.tsx +2 -2
- package/src/routes/collections/collection-detail/collection-detail.tsx +2 -2
- package/src/routes/collections/collection-list/collection-list.tsx +2 -2
- package/src/routes/customer-groups/customer-group-detail/customer-group-detail.tsx +2 -2
- package/src/routes/customer-groups/customer-group-list/components/customer-group-list-table/customer-group-list-table.tsx +8 -8
- package/src/routes/customer-groups/customer-group-list/customer-group-list.tsx +2 -2
- package/src/routes/customers/customer-create-address/components/create-customer-address-form/create-customer-address-form.tsx +282 -0
- package/src/routes/customers/customer-create-address/components/create-customer-address-form/index.ts +1 -0
- package/src/routes/customers/customer-create-address/customer-create-address.tsx +10 -0
- package/src/routes/customers/customer-create-address/index.ts +1 -0
- package/src/routes/customers/customer-detail/components/customer-address-section/customer-address-section.tsx +104 -0
- package/src/routes/customers/customer-detail/components/customer-address-section/index.ts +1 -0
- package/src/routes/customers/customer-detail/customer-detail.tsx +21 -11
- package/src/routes/customers/customer-detail/loader.ts +4 -1
- package/src/routes/customers/customer-list/customer-list.tsx +2 -2
- package/src/routes/inventory/inventory-detail/components/adjust-inventory/adjust-inventory-drawer.tsx +1 -1
- package/src/routes/inventory/inventory-detail/components/edit-inventory-item-attributes/components/edit-item-attributes-form.tsx +17 -0
- package/src/routes/inventory/inventory-detail/components/inventory-item-attributes/attributes-section.tsx +1 -0
- package/src/routes/inventory/inventory-detail/inventory-detail.tsx +2 -2
- package/src/routes/inventory/inventory-list/inventory-list.tsx +2 -2
- package/src/routes/locations/location-detail/components/location-general-section/location-general-section.tsx +13 -3
- package/src/routes/locations/location-detail/location-detail.tsx +2 -2
- package/src/routes/locations/location-list/location-list.tsx +10 -12
- package/src/routes/locations/location-service-zone-create/components/create-service-zone-form/create-service-zone-form.tsx +2 -3
- package/src/routes/locations/location-service-zone-edit/components/edit-region-form/edit-service-zone-form.tsx +4 -3
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +54 -46
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +8 -2
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-prices-form.tsx +27 -2
- package/src/routes/locations/location-service-zone-shipping-option-create/location-service-zone-shipping-option-create.tsx +14 -3
- package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +50 -42
- package/src/routes/locations/location-service-zone-shipping-option-edit/location-service-zone-shipping-option-edit.tsx +15 -1
- package/src/routes/login/login.tsx +2 -2
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +22 -18
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-outbound-section.tsx +29 -16
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx +20 -15
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx +30 -17
- package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +25 -18
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +22 -25
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +9 -7
- package/src/routes/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx +27 -5
- package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +21 -28
- package/src/routes/orders/order-detail/constants.ts +1 -0
- package/src/routes/orders/order-detail/order-detail.tsx +2 -2
- package/src/routes/orders/order-list/order-list.tsx +2 -2
- package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -2
- package/src/routes/price-lists/price-list-detail/components/price-list-configuration-section/price-list-configuration-section.tsx +1 -1
- package/src/routes/price-lists/price-list-detail/price-list-detail.tsx +2 -2
- package/src/routes/price-lists/price-list-list/price-list-list.tsx +2 -2
- package/src/routes/product-tags/product-tag-detail/product-tag-detail.tsx +2 -2
- package/src/routes/product-tags/product-tag-list/product-tag-list.tsx +2 -2
- package/src/routes/product-types/common/hooks/use-delete-product-type-action.tsx +7 -3
- package/src/routes/product-types/product-type-create/components/create-product-type-form/create-product-type-form.tsx +20 -23
- package/src/routes/product-types/product-type-detail/components/product-type-general-section/product-type-general-section.tsx +4 -1
- package/src/routes/product-types/product-type-detail/product-type-detail.tsx +2 -2
- package/src/routes/product-types/product-type-list/components/product-type-list-table/product-table-row-actions.tsx +4 -1
- package/src/routes/product-types/product-type-list/product-type-list.tsx +2 -2
- package/src/routes/product-variants/product-variant-detail/product-variant-detail.tsx +2 -2
- package/src/routes/product-variants/product-variant-manage-inventory-items/components/manage-variant-inventory-items-form/manage-variant-inventory-items-form.tsx +1 -1
- package/src/routes/products/product-attributes/components/product-attributes-form/product-attributes-form.tsx +3 -3
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +2 -2
- package/src/routes/products/product-create/components/product-create-details-form/product-create-details-form.tsx +3 -5
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +10 -14
- package/src/routes/products/product-create/components/product-create-inventory-kit-form/components/product-create-inventory-kit-section/product-create-inventory-kit-section.tsx +1 -1
- package/src/routes/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx +3 -1
- package/src/routes/products/product-create/components/product-create-organize-form/product-create-organize-form.tsx +3 -5
- package/src/routes/products/product-create/constants.ts +4 -4
- package/src/routes/products/product-create/utils.ts +6 -6
- package/src/routes/products/product-detail/components/product-attribute-section/product-attribute-section.tsx +2 -2
- package/src/routes/products/product-detail/components/product-general-section/product-general-section.tsx +2 -2
- package/src/routes/products/product-detail/components/product-organization-section/product-organization-section.tsx +2 -2
- package/src/routes/products/product-detail/components/product-variant-section/product-variant-section.tsx +53 -16
- package/src/routes/products/product-detail/constants.ts +1 -1
- package/src/routes/products/product-detail/product-detail.tsx +2 -2
- package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +4 -6
- package/src/routes/products/product-export/product-export.tsx +1 -3
- package/src/routes/products/product-list/components/product-list-table/product-list-table.tsx +1 -0
- package/src/routes/products/product-list/loader.ts +7 -2
- package/src/routes/products/product-list/product-list.tsx +2 -2
- package/src/routes/products/product-organization/components/product-organization-form/product-organization-form.tsx +3 -3
- package/src/routes/products/product-prices/product-prices.tsx +1 -3
- package/src/routes/products/product-shipping-profile/components/product-organization-form/product-shipping-profile-form.tsx +13 -2
- package/src/routes/products/product-stock/components/product-stock-form/product-stock-form.tsx +2 -2
- package/src/routes/profile/profile-detail/profile-detail.tsx +2 -2
- package/src/routes/promotions/common/edit-rules/components/rule-value-form-field/rule-value-form-field.tsx +30 -54
- package/src/routes/promotions/promotion-detail/promotion-detail.tsx +2 -2
- package/src/routes/promotions/promotion-list/promotions-list.tsx +2 -2
- package/src/routes/regions/region-detail/region-detail.tsx +2 -2
- package/src/routes/regions/region-list/region-list.tsx +2 -2
- package/src/routes/reservations/reservation-detail/reservation-detail.tsx +3 -3
- package/src/routes/reservations/reservation-list/reservation-list.tsx +2 -2
- package/src/routes/return-reasons/return-reason-list/return-reason-list.tsx +2 -2
- package/src/routes/sales-channels/sales-channel-detail/sales-channel-detail.tsx +2 -2
- package/src/routes/sales-channels/sales-channel-list/sales-channel-list.tsx +2 -2
- package/src/routes/shipping-profiles/shipping-profile-detail/shipping-profile-detail.tsx +2 -2
- package/src/routes/shipping-profiles/shipping-profiles-list/shipping-profile-list.tsx +2 -2
- package/src/routes/store/store-detail/components/store-currency-section/{store-currencies-section.tsx/store-currency-section.tsx → store-currency-section.tsx} +9 -9
- package/src/routes/store/store-detail/store-detail.tsx +8 -8
- package/src/routes/tax-regions/tax-region-detail/tax-region-detail.tsx +2 -2
- package/src/routes/tax-regions/tax-region-list/tax-region-list.tsx +2 -2
- package/src/routes/tax-regions/tax-region-province-detail/tax-region-detail.tsx +2 -2
- package/src/routes/users/user-detail/user-detail.tsx +2 -2
- package/src/routes/users/user-list/user-list.tsx +2 -2
- package/src/routes/workflow-executions/workflow-execution-detail/workflow-detail.tsx +2 -2
- package/src/routes/workflow-executions/workflow-execution-list/workflow-execution-list.tsx +2 -2
- package/src/vite-env.d.ts +3 -0
- package/dist/chunk-53IEL2PE.mjs +0 -46
- package/dist/chunk-VIJAVLIU.mjs +0 -551
- package/dist/chunk-XWO5BP42.mjs +0 -37
- package/dist/collection-metadata-XSJPOGIP.mjs +0 -69
- package/dist/order-metadata-DRR355QQ.mjs +0 -69
- package/dist/product-metadata-EW6JGOKL.mjs +0 -67
- package/dist/product-type-create-5AWIC2HY.mjs +0 -107
- package/dist/store-metadata-Z2PO4TKS.mjs +0 -68
- package/dist/user-metadata-ISZ5VACI.mjs +0 -70
- package/index.html +0 -13
- package/src/components/common/inline-tip/index.ts +0 -1
- package/src/components/common/inline-tip/inline-tip.tsx +0 -60
- package/src/extensions/dashboard-extension-manager/index.ts +0 -2
- package/src/extensions/dashboard-extension-provider/dashboard-extension-context.tsx +0 -7
- package/src/extensions/dashboard-extension-provider/dashboard-extension-provider.tsx +0 -18
- package/src/extensions/dashboard-extension-provider/index.ts +0 -2
- package/src/extensions/dashboard-extension-provider/use-dashboard-extension.tsx +0 -12
- package/src/extensions/routes/utils.ts +0 -71
- package/src/providers/router-provider/index.ts +0 -1
- package/src/providers/router-provider/route-extensions.tsx +0 -12
- package/src/providers/router-provider/route-map.tsx +0 -1688
- package/src/providers/router-provider/router-provider.tsx +0 -14
- package/src/providers/router-provider/settings-extensions.tsx +0 -12
- package/dist/{chunk-RNCCSLPH.mjs → chunk-LBIOZZPA.mjs} +1 -1
- /package/src/{extensions → dashboard-app}/forms/form-extension-zone/index.ts +0 -0
- /package/src/{extensions → dashboard-app}/forms/form-extension-zone/types.ts +0 -0
- /package/src/{extensions → dashboard-app}/forms/form-extension-zone/utils.ts +0 -0
- /package/src/{extensions → dashboard-app}/forms/hooks.tsx +0 -0
- /package/src/{extensions → dashboard-app}/forms/index.ts +0 -0
- /package/src/{extensions → dashboard-app}/links/utils.ts +0 -0
- /package/src/routes/store/store-detail/components/store-currency-section/{store-currencies-section.tsx/index.ts → index.ts} +0 -0
@@ -0,0 +1,1742 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types"
|
2
|
+
import { t } from "i18next"
|
3
|
+
import { Outlet, RouteObject, UIMatch } from "react-router-dom"
|
4
|
+
import { ProtectedRoute } from "../../components/authentication/protected-route"
|
5
|
+
import { MainLayout } from "../../components/layout/main-layout"
|
6
|
+
import { PublicLayout } from "../../components/layout/public-layout"
|
7
|
+
import { SettingsLayout } from "../../components/layout/settings-layout"
|
8
|
+
import { ErrorBoundary } from "../../components/utilities/error-boundary"
|
9
|
+
import { TaxRegionDetailBreadcrumb } from "../../routes/tax-regions/tax-region-detail/breadcrumb"
|
10
|
+
import { taxRegionLoader } from "../../routes/tax-regions/tax-region-detail/loader"
|
11
|
+
|
12
|
+
export function getRouteMap({
|
13
|
+
settingsRoutes,
|
14
|
+
coreRoutes,
|
15
|
+
}: {
|
16
|
+
settingsRoutes: RouteObject[]
|
17
|
+
coreRoutes: RouteObject[]
|
18
|
+
}) {
|
19
|
+
return [
|
20
|
+
{
|
21
|
+
element: <ProtectedRoute />,
|
22
|
+
errorElement: <ErrorBoundary />,
|
23
|
+
children: [
|
24
|
+
{
|
25
|
+
element: <MainLayout />,
|
26
|
+
children: [
|
27
|
+
{
|
28
|
+
path: "/",
|
29
|
+
errorElement: <ErrorBoundary />,
|
30
|
+
lazy: () => import("../../routes/home"),
|
31
|
+
},
|
32
|
+
{
|
33
|
+
path: "/products",
|
34
|
+
errorElement: <ErrorBoundary />,
|
35
|
+
handle: {
|
36
|
+
breadcrumb: () => t("products.domain"),
|
37
|
+
},
|
38
|
+
children: [
|
39
|
+
{
|
40
|
+
path: "",
|
41
|
+
lazy: () => import("../../routes/products/product-list"),
|
42
|
+
children: [
|
43
|
+
{
|
44
|
+
path: "create",
|
45
|
+
lazy: () =>
|
46
|
+
import("../../routes/products/product-create"),
|
47
|
+
},
|
48
|
+
{
|
49
|
+
path: "import",
|
50
|
+
lazy: () =>
|
51
|
+
import("../../routes/products/product-import"),
|
52
|
+
},
|
53
|
+
{
|
54
|
+
path: "export",
|
55
|
+
lazy: () =>
|
56
|
+
import("../../routes/products/product-export"),
|
57
|
+
},
|
58
|
+
],
|
59
|
+
},
|
60
|
+
{
|
61
|
+
path: ":id",
|
62
|
+
errorElement: <ErrorBoundary />,
|
63
|
+
lazy: async () => {
|
64
|
+
const { Breadcrumb, loader } = await import(
|
65
|
+
"../../routes/products/product-detail"
|
66
|
+
)
|
67
|
+
|
68
|
+
return {
|
69
|
+
Component: Outlet,
|
70
|
+
loader,
|
71
|
+
handle: {
|
72
|
+
breadcrumb: (
|
73
|
+
match: UIMatch<HttpTypes.AdminProductResponse>
|
74
|
+
) => <Breadcrumb {...match} />,
|
75
|
+
},
|
76
|
+
}
|
77
|
+
},
|
78
|
+
children: [
|
79
|
+
{
|
80
|
+
path: "",
|
81
|
+
lazy: () =>
|
82
|
+
import("../../routes/products/product-detail"),
|
83
|
+
children: [
|
84
|
+
{
|
85
|
+
path: "edit",
|
86
|
+
lazy: () =>
|
87
|
+
import("../../routes/products/product-edit"),
|
88
|
+
},
|
89
|
+
{
|
90
|
+
path: "edit-variant",
|
91
|
+
lazy: () =>
|
92
|
+
import(
|
93
|
+
"../../routes/product-variants/product-variant-edit"
|
94
|
+
),
|
95
|
+
},
|
96
|
+
{
|
97
|
+
path: "sales-channels",
|
98
|
+
lazy: () =>
|
99
|
+
import(
|
100
|
+
"../../routes/products/product-sales-channels"
|
101
|
+
),
|
102
|
+
},
|
103
|
+
{
|
104
|
+
path: "attributes",
|
105
|
+
lazy: () =>
|
106
|
+
import("../../routes/products/product-attributes"),
|
107
|
+
},
|
108
|
+
{
|
109
|
+
path: "organization",
|
110
|
+
lazy: () =>
|
111
|
+
import(
|
112
|
+
"../../routes/products/product-organization"
|
113
|
+
),
|
114
|
+
},
|
115
|
+
{
|
116
|
+
path: "shipping-profile",
|
117
|
+
lazy: () =>
|
118
|
+
import(
|
119
|
+
"../../routes/products/product-shipping-profile"
|
120
|
+
),
|
121
|
+
},
|
122
|
+
{
|
123
|
+
path: "media",
|
124
|
+
lazy: () =>
|
125
|
+
import("../../routes/products/product-media"),
|
126
|
+
},
|
127
|
+
{
|
128
|
+
path: "prices",
|
129
|
+
lazy: () =>
|
130
|
+
import("../../routes/products/product-prices"),
|
131
|
+
},
|
132
|
+
{
|
133
|
+
path: "options/create",
|
134
|
+
lazy: () =>
|
135
|
+
import(
|
136
|
+
"../../routes/products/product-create-option"
|
137
|
+
),
|
138
|
+
},
|
139
|
+
{
|
140
|
+
path: "options/:option_id/edit",
|
141
|
+
lazy: () =>
|
142
|
+
import("../../routes/products/product-edit-option"),
|
143
|
+
},
|
144
|
+
{
|
145
|
+
path: "variants/create",
|
146
|
+
lazy: () =>
|
147
|
+
import(
|
148
|
+
"../../routes/products/product-create-variant"
|
149
|
+
),
|
150
|
+
},
|
151
|
+
{
|
152
|
+
path: "stock",
|
153
|
+
lazy: () =>
|
154
|
+
import("../../routes/products/product-stock"),
|
155
|
+
},
|
156
|
+
{
|
157
|
+
path: "metadata/edit",
|
158
|
+
lazy: () =>
|
159
|
+
import("../../routes/products/product-metadata"),
|
160
|
+
},
|
161
|
+
],
|
162
|
+
},
|
163
|
+
{
|
164
|
+
path: "variants/:variant_id",
|
165
|
+
lazy: async () => {
|
166
|
+
const { Component, Breadcrumb, loader } = await import(
|
167
|
+
"../../routes/product-variants/product-variant-detail"
|
168
|
+
)
|
169
|
+
|
170
|
+
return {
|
171
|
+
Component,
|
172
|
+
loader,
|
173
|
+
handle: {
|
174
|
+
breadcrumb: (
|
175
|
+
// eslint-disable-next-line max-len
|
176
|
+
match: UIMatch<HttpTypes.AdminProductVariantResponse>
|
177
|
+
) => <Breadcrumb {...match} />,
|
178
|
+
},
|
179
|
+
}
|
180
|
+
},
|
181
|
+
children: [
|
182
|
+
{
|
183
|
+
path: "edit",
|
184
|
+
lazy: () =>
|
185
|
+
import(
|
186
|
+
"../../routes/product-variants/product-variant-edit"
|
187
|
+
),
|
188
|
+
},
|
189
|
+
{
|
190
|
+
path: "prices",
|
191
|
+
lazy: () =>
|
192
|
+
import("../../routes/products/product-prices"),
|
193
|
+
},
|
194
|
+
{
|
195
|
+
path: "manage-items",
|
196
|
+
lazy: () =>
|
197
|
+
import(
|
198
|
+
"../../routes/product-variants/product-variant-manage-inventory-items"
|
199
|
+
),
|
200
|
+
},
|
201
|
+
{
|
202
|
+
path: "metadata/edit",
|
203
|
+
lazy: () =>
|
204
|
+
import(
|
205
|
+
"../../routes/product-variants/product-variant-metadata"
|
206
|
+
),
|
207
|
+
},
|
208
|
+
],
|
209
|
+
},
|
210
|
+
],
|
211
|
+
},
|
212
|
+
],
|
213
|
+
},
|
214
|
+
{
|
215
|
+
path: "/categories",
|
216
|
+
errorElement: <ErrorBoundary />,
|
217
|
+
handle: {
|
218
|
+
breadcrumb: () => t("categories.domain"),
|
219
|
+
},
|
220
|
+
children: [
|
221
|
+
{
|
222
|
+
path: "",
|
223
|
+
lazy: () => import("../../routes/categories/category-list"),
|
224
|
+
children: [
|
225
|
+
{
|
226
|
+
path: "create",
|
227
|
+
lazy: () =>
|
228
|
+
import("../../routes/categories/category-create"),
|
229
|
+
},
|
230
|
+
{
|
231
|
+
path: "organize",
|
232
|
+
lazy: () =>
|
233
|
+
import("../../routes/categories/category-organize"),
|
234
|
+
},
|
235
|
+
],
|
236
|
+
},
|
237
|
+
{
|
238
|
+
path: ":id",
|
239
|
+
lazy: async () => {
|
240
|
+
const { Component, Breadcrumb, loader } = await import(
|
241
|
+
"../../routes/categories/category-detail"
|
242
|
+
)
|
243
|
+
|
244
|
+
return {
|
245
|
+
Component,
|
246
|
+
loader,
|
247
|
+
handle: {
|
248
|
+
breadcrumb: (
|
249
|
+
match: UIMatch<HttpTypes.AdminProductCategoryResponse>
|
250
|
+
) => <Breadcrumb {...match} />,
|
251
|
+
},
|
252
|
+
}
|
253
|
+
},
|
254
|
+
children: [
|
255
|
+
{
|
256
|
+
path: "edit",
|
257
|
+
lazy: () =>
|
258
|
+
import("../../routes/categories/category-edit"),
|
259
|
+
},
|
260
|
+
{
|
261
|
+
path: "products",
|
262
|
+
lazy: () =>
|
263
|
+
import("../../routes/categories/category-products"),
|
264
|
+
},
|
265
|
+
{
|
266
|
+
path: "organize",
|
267
|
+
lazy: () =>
|
268
|
+
import("../../routes/categories/category-organize"),
|
269
|
+
},
|
270
|
+
{
|
271
|
+
path: "metadata/edit",
|
272
|
+
lazy: () =>
|
273
|
+
import("../../routes/categories/categories-metadata"),
|
274
|
+
},
|
275
|
+
],
|
276
|
+
},
|
277
|
+
],
|
278
|
+
},
|
279
|
+
{
|
280
|
+
path: "/orders",
|
281
|
+
errorElement: <ErrorBoundary />,
|
282
|
+
handle: {
|
283
|
+
breadcrumb: () => t("orders.domain"),
|
284
|
+
},
|
285
|
+
children: [
|
286
|
+
{
|
287
|
+
path: "",
|
288
|
+
lazy: () => import("../../routes/orders/order-list"),
|
289
|
+
},
|
290
|
+
{
|
291
|
+
path: ":id",
|
292
|
+
lazy: async () => {
|
293
|
+
const { Component, Breadcrumb, loader } = await import(
|
294
|
+
"../../routes/orders/order-detail"
|
295
|
+
)
|
296
|
+
|
297
|
+
return {
|
298
|
+
Component,
|
299
|
+
loader,
|
300
|
+
handle: {
|
301
|
+
breadcrumb: (
|
302
|
+
match: UIMatch<HttpTypes.AdminOrderResponse>
|
303
|
+
) => <Breadcrumb {...match} />,
|
304
|
+
},
|
305
|
+
}
|
306
|
+
},
|
307
|
+
children: [
|
308
|
+
{
|
309
|
+
path: "fulfillment",
|
310
|
+
lazy: () =>
|
311
|
+
import("../../routes/orders/order-create-fulfillment"),
|
312
|
+
},
|
313
|
+
{
|
314
|
+
path: "returns/:return_id/receive",
|
315
|
+
lazy: () =>
|
316
|
+
import("../../routes/orders/order-receive-return"),
|
317
|
+
},
|
318
|
+
{
|
319
|
+
path: "allocate-items",
|
320
|
+
lazy: () =>
|
321
|
+
import("../../routes/orders/order-allocate-items"),
|
322
|
+
},
|
323
|
+
{
|
324
|
+
path: ":f_id/create-shipment",
|
325
|
+
lazy: () =>
|
326
|
+
import("../../routes/orders/order-create-shipment"),
|
327
|
+
},
|
328
|
+
{
|
329
|
+
path: "returns",
|
330
|
+
lazy: () =>
|
331
|
+
import("../../routes/orders/order-create-return"),
|
332
|
+
},
|
333
|
+
{
|
334
|
+
path: "claims",
|
335
|
+
lazy: () =>
|
336
|
+
import("../../routes/orders/order-create-claim"),
|
337
|
+
},
|
338
|
+
{
|
339
|
+
path: "exchanges",
|
340
|
+
lazy: () =>
|
341
|
+
import("../../routes/orders/order-create-exchange"),
|
342
|
+
},
|
343
|
+
{
|
344
|
+
path: "edits",
|
345
|
+
lazy: () =>
|
346
|
+
import("../../routes/orders/order-create-edit"),
|
347
|
+
},
|
348
|
+
{
|
349
|
+
path: "refund",
|
350
|
+
lazy: () =>
|
351
|
+
import("../../routes/orders/order-create-refund"),
|
352
|
+
},
|
353
|
+
{
|
354
|
+
path: "transfer",
|
355
|
+
lazy: () =>
|
356
|
+
import("../../routes/orders/order-request-transfer"),
|
357
|
+
},
|
358
|
+
{
|
359
|
+
path: "email",
|
360
|
+
lazy: () =>
|
361
|
+
import("../../routes/orders/order-edit-email"),
|
362
|
+
},
|
363
|
+
{
|
364
|
+
path: "shipping-address",
|
365
|
+
lazy: () =>
|
366
|
+
import(
|
367
|
+
"../../routes/orders/order-edit-shipping-address"
|
368
|
+
),
|
369
|
+
},
|
370
|
+
{
|
371
|
+
path: "billing-address",
|
372
|
+
lazy: () =>
|
373
|
+
import(
|
374
|
+
"../../routes/orders/order-edit-billing-address"
|
375
|
+
),
|
376
|
+
},
|
377
|
+
{
|
378
|
+
path: "metadata/edit",
|
379
|
+
lazy: () => import("../../routes/orders/order-metadata"),
|
380
|
+
},
|
381
|
+
],
|
382
|
+
},
|
383
|
+
],
|
384
|
+
},
|
385
|
+
{
|
386
|
+
path: "/promotions",
|
387
|
+
errorElement: <ErrorBoundary />,
|
388
|
+
handle: {
|
389
|
+
breadcrumb: () => t("promotions.domain"),
|
390
|
+
},
|
391
|
+
children: [
|
392
|
+
{
|
393
|
+
path: "",
|
394
|
+
lazy: () => import("../../routes/promotions/promotion-list"),
|
395
|
+
},
|
396
|
+
{
|
397
|
+
path: "create",
|
398
|
+
lazy: () =>
|
399
|
+
import("../../routes/promotions/promotion-create"),
|
400
|
+
},
|
401
|
+
{
|
402
|
+
path: ":id",
|
403
|
+
lazy: async () => {
|
404
|
+
const { Component, Breadcrumb, loader } = await import(
|
405
|
+
"../../routes/promotions/promotion-detail"
|
406
|
+
)
|
407
|
+
|
408
|
+
return {
|
409
|
+
Component,
|
410
|
+
loader,
|
411
|
+
handle: {
|
412
|
+
breadcrumb: (
|
413
|
+
match: UIMatch<HttpTypes.AdminPromotionResponse>
|
414
|
+
) => <Breadcrumb {...match} />,
|
415
|
+
},
|
416
|
+
}
|
417
|
+
},
|
418
|
+
children: [
|
419
|
+
{
|
420
|
+
path: "edit",
|
421
|
+
lazy: () =>
|
422
|
+
import(
|
423
|
+
"../../routes/promotions/promotion-edit-details"
|
424
|
+
),
|
425
|
+
},
|
426
|
+
{
|
427
|
+
path: "add-to-campaign",
|
428
|
+
lazy: () =>
|
429
|
+
import(
|
430
|
+
"../../routes/promotions/promotion-add-campaign"
|
431
|
+
),
|
432
|
+
},
|
433
|
+
{
|
434
|
+
path: ":ruleType/edit",
|
435
|
+
lazy: () =>
|
436
|
+
import("../../routes/promotions/common/edit-rules"),
|
437
|
+
},
|
438
|
+
],
|
439
|
+
},
|
440
|
+
],
|
441
|
+
},
|
442
|
+
{
|
443
|
+
path: "/campaigns",
|
444
|
+
errorElement: <ErrorBoundary />,
|
445
|
+
handle: {
|
446
|
+
breadcrumb: () => t("campaigns.domain"),
|
447
|
+
},
|
448
|
+
children: [
|
449
|
+
{
|
450
|
+
path: "",
|
451
|
+
lazy: () => import("../../routes/campaigns/campaign-list"),
|
452
|
+
children: [],
|
453
|
+
},
|
454
|
+
{
|
455
|
+
path: "create",
|
456
|
+
lazy: () => import("../../routes/campaigns/campaign-create"),
|
457
|
+
},
|
458
|
+
{
|
459
|
+
path: ":id",
|
460
|
+
lazy: async () => {
|
461
|
+
const { Component, Breadcrumb, loader } = await import(
|
462
|
+
"../../routes/campaigns/campaign-detail"
|
463
|
+
)
|
464
|
+
|
465
|
+
return {
|
466
|
+
Component,
|
467
|
+
loader,
|
468
|
+
handle: {
|
469
|
+
breadcrumb: (
|
470
|
+
match: UIMatch<HttpTypes.AdminCampaignResponse>
|
471
|
+
) => <Breadcrumb {...match} />,
|
472
|
+
},
|
473
|
+
}
|
474
|
+
},
|
475
|
+
children: [
|
476
|
+
{
|
477
|
+
path: "edit",
|
478
|
+
lazy: () =>
|
479
|
+
import("../../routes/campaigns/campaign-edit"),
|
480
|
+
},
|
481
|
+
{
|
482
|
+
path: "configuration",
|
483
|
+
lazy: () =>
|
484
|
+
import("../../routes/campaigns/campaign-configuration"),
|
485
|
+
},
|
486
|
+
{
|
487
|
+
path: "edit-budget",
|
488
|
+
lazy: () =>
|
489
|
+
import("../../routes/campaigns/campaign-budget-edit"),
|
490
|
+
},
|
491
|
+
{
|
492
|
+
path: "add-promotions",
|
493
|
+
lazy: () =>
|
494
|
+
import(
|
495
|
+
"../../routes/campaigns/add-campaign-promotions"
|
496
|
+
),
|
497
|
+
},
|
498
|
+
],
|
499
|
+
},
|
500
|
+
],
|
501
|
+
},
|
502
|
+
{
|
503
|
+
path: "/collections",
|
504
|
+
errorElement: <ErrorBoundary />,
|
505
|
+
handle: {
|
506
|
+
breadcrumb: () => t("collections.domain"),
|
507
|
+
},
|
508
|
+
children: [
|
509
|
+
{
|
510
|
+
path: "",
|
511
|
+
lazy: () =>
|
512
|
+
import("../../routes/collections/collection-list"),
|
513
|
+
children: [
|
514
|
+
{
|
515
|
+
path: "create",
|
516
|
+
lazy: () =>
|
517
|
+
import("../../routes/collections/collection-create"),
|
518
|
+
},
|
519
|
+
],
|
520
|
+
},
|
521
|
+
{
|
522
|
+
path: ":id",
|
523
|
+
lazy: async () => {
|
524
|
+
const { Component, Breadcrumb, loader } = await import(
|
525
|
+
"../../routes/collections/collection-detail"
|
526
|
+
)
|
527
|
+
|
528
|
+
return {
|
529
|
+
Component,
|
530
|
+
loader,
|
531
|
+
handle: {
|
532
|
+
breadcrumb: (
|
533
|
+
match: UIMatch<HttpTypes.AdminCollectionResponse>
|
534
|
+
) => <Breadcrumb {...match} />,
|
535
|
+
},
|
536
|
+
}
|
537
|
+
},
|
538
|
+
children: [
|
539
|
+
{
|
540
|
+
path: "edit",
|
541
|
+
lazy: () =>
|
542
|
+
import("../../routes/collections/collection-edit"),
|
543
|
+
},
|
544
|
+
{
|
545
|
+
path: "products",
|
546
|
+
lazy: () =>
|
547
|
+
import(
|
548
|
+
"../../routes/collections/collection-add-products"
|
549
|
+
),
|
550
|
+
},
|
551
|
+
{
|
552
|
+
path: "metadata/edit",
|
553
|
+
lazy: () =>
|
554
|
+
import("../../routes/collections/collection-metadata"),
|
555
|
+
},
|
556
|
+
],
|
557
|
+
},
|
558
|
+
],
|
559
|
+
},
|
560
|
+
{
|
561
|
+
path: "/price-lists",
|
562
|
+
errorElement: <ErrorBoundary />,
|
563
|
+
handle: {
|
564
|
+
breadcrumb: () => t("priceLists.domain"),
|
565
|
+
},
|
566
|
+
children: [
|
567
|
+
{
|
568
|
+
path: "",
|
569
|
+
lazy: () =>
|
570
|
+
import("../../routes/price-lists/price-list-list"),
|
571
|
+
children: [
|
572
|
+
{
|
573
|
+
path: "create",
|
574
|
+
lazy: () =>
|
575
|
+
import("../../routes/price-lists/price-list-create"),
|
576
|
+
},
|
577
|
+
],
|
578
|
+
},
|
579
|
+
{
|
580
|
+
path: ":id",
|
581
|
+
lazy: async () => {
|
582
|
+
const { Component, Breadcrumb, loader } = await import(
|
583
|
+
"../../routes/price-lists/price-list-detail"
|
584
|
+
)
|
585
|
+
|
586
|
+
return {
|
587
|
+
Component,
|
588
|
+
loader,
|
589
|
+
handle: {
|
590
|
+
breadcrumb: (
|
591
|
+
match: UIMatch<HttpTypes.AdminPriceListResponse>
|
592
|
+
) => <Breadcrumb {...match} />,
|
593
|
+
},
|
594
|
+
}
|
595
|
+
},
|
596
|
+
children: [
|
597
|
+
{
|
598
|
+
path: "edit",
|
599
|
+
lazy: () =>
|
600
|
+
import("../../routes/price-lists/price-list-edit"),
|
601
|
+
},
|
602
|
+
{
|
603
|
+
path: "configuration",
|
604
|
+
lazy: () =>
|
605
|
+
import(
|
606
|
+
"../../routes/price-lists/price-list-configuration"
|
607
|
+
),
|
608
|
+
},
|
609
|
+
{
|
610
|
+
path: "products/add",
|
611
|
+
lazy: () =>
|
612
|
+
import(
|
613
|
+
"../../routes/price-lists/price-list-prices-add"
|
614
|
+
),
|
615
|
+
},
|
616
|
+
{
|
617
|
+
path: "products/edit",
|
618
|
+
lazy: () =>
|
619
|
+
import(
|
620
|
+
"../../routes/price-lists/price-list-prices-edit"
|
621
|
+
),
|
622
|
+
},
|
623
|
+
],
|
624
|
+
},
|
625
|
+
],
|
626
|
+
},
|
627
|
+
{
|
628
|
+
path: "/customers",
|
629
|
+
errorElement: <ErrorBoundary />,
|
630
|
+
handle: {
|
631
|
+
breadcrumb: () => t("customers.domain"),
|
632
|
+
},
|
633
|
+
children: [
|
634
|
+
{
|
635
|
+
path: "",
|
636
|
+
lazy: () => import("../../routes/customers/customer-list"),
|
637
|
+
children: [
|
638
|
+
{
|
639
|
+
path: "create",
|
640
|
+
lazy: () =>
|
641
|
+
import("../../routes/customers/customer-create"),
|
642
|
+
},
|
643
|
+
],
|
644
|
+
},
|
645
|
+
{
|
646
|
+
path: ":id",
|
647
|
+
lazy: async () => {
|
648
|
+
const { Component, Breadcrumb, loader } = await import(
|
649
|
+
"../../routes/customers/customer-detail"
|
650
|
+
)
|
651
|
+
|
652
|
+
return {
|
653
|
+
Component,
|
654
|
+
loader,
|
655
|
+
handle: {
|
656
|
+
breadcrumb: (
|
657
|
+
match: UIMatch<HttpTypes.AdminCustomerResponse>
|
658
|
+
) => <Breadcrumb {...match} />,
|
659
|
+
},
|
660
|
+
}
|
661
|
+
},
|
662
|
+
children: [
|
663
|
+
{
|
664
|
+
path: "edit",
|
665
|
+
lazy: () =>
|
666
|
+
import("../../routes/customers/customer-edit"),
|
667
|
+
},
|
668
|
+
{
|
669
|
+
path: "create-address",
|
670
|
+
lazy: () =>
|
671
|
+
import(
|
672
|
+
"../../routes/customers/customer-create-address"
|
673
|
+
),
|
674
|
+
},
|
675
|
+
{
|
676
|
+
path: "add-customer-groups",
|
677
|
+
lazy: () =>
|
678
|
+
import(
|
679
|
+
"../../routes/customers/customers-add-customer-group"
|
680
|
+
),
|
681
|
+
},
|
682
|
+
{
|
683
|
+
path: ":order_id/transfer",
|
684
|
+
lazy: () =>
|
685
|
+
import("../../routes/orders/order-request-transfer"),
|
686
|
+
},
|
687
|
+
{
|
688
|
+
path: "metadata/edit",
|
689
|
+
lazy: () =>
|
690
|
+
import("../../routes/customers/customer-metadata"),
|
691
|
+
},
|
692
|
+
],
|
693
|
+
},
|
694
|
+
],
|
695
|
+
},
|
696
|
+
{
|
697
|
+
path: "/customer-groups",
|
698
|
+
errorElement: <ErrorBoundary />,
|
699
|
+
handle: {
|
700
|
+
breadcrumb: () => t("customerGroups.domain"),
|
701
|
+
},
|
702
|
+
children: [
|
703
|
+
{
|
704
|
+
path: "",
|
705
|
+
lazy: () =>
|
706
|
+
import("../../routes/customer-groups/customer-group-list"),
|
707
|
+
children: [
|
708
|
+
{
|
709
|
+
path: "create",
|
710
|
+
lazy: () =>
|
711
|
+
import(
|
712
|
+
"../../routes/customer-groups/customer-group-create"
|
713
|
+
),
|
714
|
+
},
|
715
|
+
],
|
716
|
+
},
|
717
|
+
{
|
718
|
+
path: ":id",
|
719
|
+
lazy: async () => {
|
720
|
+
const { Component, Breadcrumb, loader } = await import(
|
721
|
+
"../../routes/customer-groups/customer-group-detail"
|
722
|
+
)
|
723
|
+
|
724
|
+
return {
|
725
|
+
Component,
|
726
|
+
loader,
|
727
|
+
handle: {
|
728
|
+
breadcrumb: (
|
729
|
+
match: UIMatch<HttpTypes.AdminCustomerGroupResponse>
|
730
|
+
) => <Breadcrumb {...match} />,
|
731
|
+
},
|
732
|
+
}
|
733
|
+
},
|
734
|
+
children: [
|
735
|
+
{
|
736
|
+
path: "edit",
|
737
|
+
lazy: () =>
|
738
|
+
import(
|
739
|
+
"../../routes/customer-groups/customer-group-edit"
|
740
|
+
),
|
741
|
+
},
|
742
|
+
{
|
743
|
+
path: "add-customers",
|
744
|
+
lazy: () =>
|
745
|
+
import(
|
746
|
+
"../../routes/customer-groups/customer-group-add-customers"
|
747
|
+
),
|
748
|
+
},
|
749
|
+
{
|
750
|
+
path: "metadata/edit",
|
751
|
+
lazy: () =>
|
752
|
+
import(
|
753
|
+
"../../routes/customer-groups/customer-group-metadata"
|
754
|
+
),
|
755
|
+
},
|
756
|
+
],
|
757
|
+
},
|
758
|
+
],
|
759
|
+
},
|
760
|
+
{
|
761
|
+
path: "/reservations",
|
762
|
+
errorElement: <ErrorBoundary />,
|
763
|
+
handle: {
|
764
|
+
breadcrumb: () => t("reservations.domain"),
|
765
|
+
},
|
766
|
+
children: [
|
767
|
+
{
|
768
|
+
path: "",
|
769
|
+
lazy: () =>
|
770
|
+
import("../../routes/reservations/reservation-list"),
|
771
|
+
children: [
|
772
|
+
{
|
773
|
+
path: "create",
|
774
|
+
lazy: () =>
|
775
|
+
import("../../routes/reservations/reservation-create"),
|
776
|
+
},
|
777
|
+
],
|
778
|
+
},
|
779
|
+
{
|
780
|
+
path: ":id",
|
781
|
+
lazy: async () => {
|
782
|
+
const { Component, Breadcrumb, loader } = await import(
|
783
|
+
"../../routes/reservations/reservation-detail"
|
784
|
+
)
|
785
|
+
|
786
|
+
return {
|
787
|
+
Component,
|
788
|
+
loader,
|
789
|
+
handle: {
|
790
|
+
breadcrumb: (
|
791
|
+
match: UIMatch<HttpTypes.AdminReservationResponse>
|
792
|
+
) => <Breadcrumb {...match} />,
|
793
|
+
},
|
794
|
+
}
|
795
|
+
},
|
796
|
+
children: [
|
797
|
+
{
|
798
|
+
path: "edit",
|
799
|
+
lazy: () =>
|
800
|
+
import(
|
801
|
+
"../../routes/reservations/reservation-detail/components/edit-reservation"
|
802
|
+
),
|
803
|
+
},
|
804
|
+
{
|
805
|
+
path: "metadata/edit",
|
806
|
+
lazy: () =>
|
807
|
+
import(
|
808
|
+
"../../routes/reservations/reservation-metadata"
|
809
|
+
),
|
810
|
+
},
|
811
|
+
],
|
812
|
+
},
|
813
|
+
],
|
814
|
+
},
|
815
|
+
{
|
816
|
+
path: "/inventory",
|
817
|
+
errorElement: <ErrorBoundary />,
|
818
|
+
handle: {
|
819
|
+
breadcrumb: () => t("inventory.domain"),
|
820
|
+
},
|
821
|
+
children: [
|
822
|
+
{
|
823
|
+
path: "",
|
824
|
+
lazy: () => import("../../routes/inventory/inventory-list"),
|
825
|
+
children: [
|
826
|
+
{
|
827
|
+
path: "create",
|
828
|
+
lazy: () =>
|
829
|
+
import("../../routes/inventory/inventory-create"),
|
830
|
+
},
|
831
|
+
{
|
832
|
+
path: "stock",
|
833
|
+
lazy: () =>
|
834
|
+
import("../../routes/inventory/inventory-stock"),
|
835
|
+
},
|
836
|
+
],
|
837
|
+
},
|
838
|
+
{
|
839
|
+
path: ":id",
|
840
|
+
lazy: async () => {
|
841
|
+
const { Component, Breadcrumb, loader } = await import(
|
842
|
+
"../../routes/inventory/inventory-detail"
|
843
|
+
)
|
844
|
+
|
845
|
+
return {
|
846
|
+
Component,
|
847
|
+
loader,
|
848
|
+
handle: {
|
849
|
+
breadcrumb: (
|
850
|
+
match: UIMatch<HttpTypes.AdminInventoryItemResponse>
|
851
|
+
) => <Breadcrumb {...match} />,
|
852
|
+
},
|
853
|
+
}
|
854
|
+
},
|
855
|
+
children: [
|
856
|
+
{
|
857
|
+
path: "edit",
|
858
|
+
lazy: () =>
|
859
|
+
import(
|
860
|
+
"../../routes/inventory/inventory-detail/components/edit-inventory-item"
|
861
|
+
),
|
862
|
+
},
|
863
|
+
{
|
864
|
+
path: "attributes",
|
865
|
+
lazy: () =>
|
866
|
+
import(
|
867
|
+
"../../routes/inventory/inventory-detail/components/edit-inventory-item-attributes"
|
868
|
+
),
|
869
|
+
},
|
870
|
+
{
|
871
|
+
path: "metadata/edit",
|
872
|
+
lazy: () =>
|
873
|
+
import("../../routes/inventory/inventory-metadata"),
|
874
|
+
},
|
875
|
+
{
|
876
|
+
path: "locations",
|
877
|
+
lazy: () =>
|
878
|
+
import(
|
879
|
+
"../../routes/inventory/inventory-detail/components/manage-locations"
|
880
|
+
),
|
881
|
+
},
|
882
|
+
{
|
883
|
+
path: "locations/:location_id",
|
884
|
+
lazy: () =>
|
885
|
+
import(
|
886
|
+
"../../routes/inventory/inventory-detail/components/adjust-inventory"
|
887
|
+
),
|
888
|
+
},
|
889
|
+
],
|
890
|
+
},
|
891
|
+
],
|
892
|
+
},
|
893
|
+
...coreRoutes,
|
894
|
+
],
|
895
|
+
},
|
896
|
+
],
|
897
|
+
},
|
898
|
+
{
|
899
|
+
element: <ProtectedRoute />,
|
900
|
+
errorElement: <ErrorBoundary />,
|
901
|
+
children: [
|
902
|
+
{
|
903
|
+
path: "/settings",
|
904
|
+
handle: {
|
905
|
+
breadcrumb: () => t("app.nav.settings.header"),
|
906
|
+
},
|
907
|
+
element: <SettingsLayout />,
|
908
|
+
children: [
|
909
|
+
{
|
910
|
+
index: true,
|
911
|
+
errorElement: <ErrorBoundary />,
|
912
|
+
lazy: () => import("../../routes/settings"),
|
913
|
+
},
|
914
|
+
{
|
915
|
+
path: "profile",
|
916
|
+
errorElement: <ErrorBoundary />,
|
917
|
+
lazy: () => import("../../routes/profile/profile-detail"),
|
918
|
+
handle: {
|
919
|
+
breadcrumb: () => t("profile.domain"),
|
920
|
+
},
|
921
|
+
children: [
|
922
|
+
{
|
923
|
+
path: "edit",
|
924
|
+
lazy: () => import("../../routes/profile/profile-edit"),
|
925
|
+
},
|
926
|
+
],
|
927
|
+
},
|
928
|
+
{
|
929
|
+
path: "regions",
|
930
|
+
errorElement: <ErrorBoundary />,
|
931
|
+
element: <Outlet />,
|
932
|
+
handle: {
|
933
|
+
breadcrumb: () => t("regions.domain"),
|
934
|
+
},
|
935
|
+
children: [
|
936
|
+
{
|
937
|
+
path: "",
|
938
|
+
lazy: () => import("../../routes/regions/region-list"),
|
939
|
+
children: [
|
940
|
+
{
|
941
|
+
path: "create",
|
942
|
+
lazy: () => import("../../routes/regions/region-create"),
|
943
|
+
},
|
944
|
+
],
|
945
|
+
},
|
946
|
+
{
|
947
|
+
path: ":id",
|
948
|
+
lazy: async () => {
|
949
|
+
const { Component, Breadcrumb, loader } = await import(
|
950
|
+
"../../routes/regions/region-detail"
|
951
|
+
)
|
952
|
+
|
953
|
+
return {
|
954
|
+
Component,
|
955
|
+
loader,
|
956
|
+
handle: {
|
957
|
+
breadcrumb: (
|
958
|
+
match: UIMatch<HttpTypes.AdminRegionResponse>
|
959
|
+
) => <Breadcrumb {...match} />,
|
960
|
+
},
|
961
|
+
}
|
962
|
+
},
|
963
|
+
children: [
|
964
|
+
{
|
965
|
+
path: "edit",
|
966
|
+
lazy: () => import("../../routes/regions/region-edit"),
|
967
|
+
},
|
968
|
+
{
|
969
|
+
path: "countries/add",
|
970
|
+
lazy: () =>
|
971
|
+
import("../../routes/regions/region-add-countries"),
|
972
|
+
},
|
973
|
+
{
|
974
|
+
path: "metadata/edit",
|
975
|
+
lazy: () =>
|
976
|
+
import("../../routes/regions/region-metadata"),
|
977
|
+
},
|
978
|
+
],
|
979
|
+
},
|
980
|
+
],
|
981
|
+
},
|
982
|
+
{
|
983
|
+
path: "store",
|
984
|
+
errorElement: <ErrorBoundary />,
|
985
|
+
lazy: () => import("../../routes/store/store-detail"),
|
986
|
+
handle: {
|
987
|
+
breadcrumb: () => t("store.domain"),
|
988
|
+
},
|
989
|
+
children: [
|
990
|
+
{
|
991
|
+
path: "edit",
|
992
|
+
lazy: () => import("../../routes/store/store-edit"),
|
993
|
+
},
|
994
|
+
{
|
995
|
+
path: "currencies",
|
996
|
+
lazy: () => import("../../routes/store/store-add-currencies"),
|
997
|
+
},
|
998
|
+
{
|
999
|
+
path: "metadata/edit",
|
1000
|
+
lazy: () => import("../../routes/store/store-metadata"),
|
1001
|
+
},
|
1002
|
+
],
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
path: "users",
|
1006
|
+
errorElement: <ErrorBoundary />,
|
1007
|
+
element: <Outlet />,
|
1008
|
+
handle: {
|
1009
|
+
breadcrumb: () => t("users.domain"),
|
1010
|
+
},
|
1011
|
+
children: [
|
1012
|
+
{
|
1013
|
+
path: "",
|
1014
|
+
lazy: () => import("../../routes/users/user-list"),
|
1015
|
+
children: [
|
1016
|
+
{
|
1017
|
+
path: "invite",
|
1018
|
+
lazy: () => import("../../routes/users/user-invite"),
|
1019
|
+
},
|
1020
|
+
],
|
1021
|
+
},
|
1022
|
+
{
|
1023
|
+
path: ":id",
|
1024
|
+
lazy: async () => {
|
1025
|
+
const { Component, Breadcrumb, loader } = await import(
|
1026
|
+
"../../routes/users/user-detail"
|
1027
|
+
)
|
1028
|
+
|
1029
|
+
return {
|
1030
|
+
Component,
|
1031
|
+
loader,
|
1032
|
+
handle: {
|
1033
|
+
breadcrumb: (
|
1034
|
+
match: UIMatch<HttpTypes.AdminUserResponse>
|
1035
|
+
) => <Breadcrumb {...match} />,
|
1036
|
+
},
|
1037
|
+
}
|
1038
|
+
},
|
1039
|
+
children: [
|
1040
|
+
{
|
1041
|
+
path: "edit",
|
1042
|
+
lazy: () => import("../../routes/users/user-edit"),
|
1043
|
+
},
|
1044
|
+
{
|
1045
|
+
path: "metadata/edit",
|
1046
|
+
lazy: () => import("../../routes/users/user-metadata"),
|
1047
|
+
},
|
1048
|
+
],
|
1049
|
+
},
|
1050
|
+
],
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
path: "sales-channels",
|
1054
|
+
errorElement: <ErrorBoundary />,
|
1055
|
+
element: <Outlet />,
|
1056
|
+
handle: {
|
1057
|
+
breadcrumb: () => t("salesChannels.domain"),
|
1058
|
+
},
|
1059
|
+
children: [
|
1060
|
+
{
|
1061
|
+
path: "",
|
1062
|
+
lazy: () =>
|
1063
|
+
import("../../routes/sales-channels/sales-channel-list"),
|
1064
|
+
children: [
|
1065
|
+
{
|
1066
|
+
path: "create",
|
1067
|
+
lazy: () =>
|
1068
|
+
import(
|
1069
|
+
"../../routes/sales-channels/sales-channel-create"
|
1070
|
+
),
|
1071
|
+
},
|
1072
|
+
],
|
1073
|
+
},
|
1074
|
+
{
|
1075
|
+
path: ":id",
|
1076
|
+
lazy: async () => {
|
1077
|
+
const { Component, Breadcrumb, loader } = await import(
|
1078
|
+
"../../routes/sales-channels/sales-channel-detail"
|
1079
|
+
)
|
1080
|
+
|
1081
|
+
return {
|
1082
|
+
Component,
|
1083
|
+
loader,
|
1084
|
+
handle: {
|
1085
|
+
breadcrumb: (
|
1086
|
+
match: UIMatch<HttpTypes.AdminSalesChannelResponse>
|
1087
|
+
) => <Breadcrumb {...match} />,
|
1088
|
+
},
|
1089
|
+
}
|
1090
|
+
},
|
1091
|
+
children: [
|
1092
|
+
{
|
1093
|
+
path: "edit",
|
1094
|
+
lazy: () =>
|
1095
|
+
import(
|
1096
|
+
"../../routes/sales-channels/sales-channel-edit"
|
1097
|
+
),
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
path: "add-products",
|
1101
|
+
lazy: () =>
|
1102
|
+
import(
|
1103
|
+
"../../routes/sales-channels/sales-channel-add-products"
|
1104
|
+
),
|
1105
|
+
},
|
1106
|
+
{
|
1107
|
+
path: "metadata/edit",
|
1108
|
+
lazy: () =>
|
1109
|
+
import(
|
1110
|
+
"../../routes/sales-channels/sales-channel-metadata"
|
1111
|
+
),
|
1112
|
+
},
|
1113
|
+
],
|
1114
|
+
},
|
1115
|
+
],
|
1116
|
+
},
|
1117
|
+
{
|
1118
|
+
path: "locations",
|
1119
|
+
errorElement: <ErrorBoundary />,
|
1120
|
+
element: <Outlet />,
|
1121
|
+
handle: {
|
1122
|
+
breadcrumb: () => t("locations.domain"),
|
1123
|
+
},
|
1124
|
+
children: [
|
1125
|
+
{
|
1126
|
+
path: "",
|
1127
|
+
lazy: () => import("../../routes/locations/location-list"),
|
1128
|
+
},
|
1129
|
+
{
|
1130
|
+
path: "create",
|
1131
|
+
lazy: () => import("../../routes/locations/location-create"),
|
1132
|
+
},
|
1133
|
+
{
|
1134
|
+
path: "shipping-profiles",
|
1135
|
+
element: <Outlet />,
|
1136
|
+
handle: {
|
1137
|
+
breadcrumb: () => t("shippingProfile.domain"),
|
1138
|
+
},
|
1139
|
+
children: [
|
1140
|
+
{
|
1141
|
+
path: "",
|
1142
|
+
lazy: () =>
|
1143
|
+
import(
|
1144
|
+
"../../routes/shipping-profiles/shipping-profiles-list"
|
1145
|
+
),
|
1146
|
+
children: [
|
1147
|
+
{
|
1148
|
+
path: "create",
|
1149
|
+
lazy: () =>
|
1150
|
+
import(
|
1151
|
+
"../../routes/shipping-profiles/shipping-profile-create"
|
1152
|
+
),
|
1153
|
+
},
|
1154
|
+
],
|
1155
|
+
},
|
1156
|
+
{
|
1157
|
+
path: ":shipping_profile_id",
|
1158
|
+
lazy: async () => {
|
1159
|
+
const { Component, Breadcrumb, loader } = await import(
|
1160
|
+
"../../routes/shipping-profiles/shipping-profile-detail"
|
1161
|
+
)
|
1162
|
+
|
1163
|
+
return {
|
1164
|
+
Component,
|
1165
|
+
loader,
|
1166
|
+
handle: {
|
1167
|
+
breadcrumb: (
|
1168
|
+
// eslint-disable-next-line max-len
|
1169
|
+
match: UIMatch<HttpTypes.AdminShippingProfileResponse>
|
1170
|
+
) => <Breadcrumb {...match} />,
|
1171
|
+
},
|
1172
|
+
}
|
1173
|
+
},
|
1174
|
+
children: [
|
1175
|
+
{
|
1176
|
+
path: "metadata/edit",
|
1177
|
+
lazy: () =>
|
1178
|
+
import(
|
1179
|
+
"../../routes/shipping-profiles/shipping-profile-metadata"
|
1180
|
+
),
|
1181
|
+
},
|
1182
|
+
],
|
1183
|
+
},
|
1184
|
+
],
|
1185
|
+
},
|
1186
|
+
{
|
1187
|
+
path: ":location_id",
|
1188
|
+
lazy: async () => {
|
1189
|
+
const { Component, Breadcrumb, loader } = await import(
|
1190
|
+
"../../routes/locations/location-detail"
|
1191
|
+
)
|
1192
|
+
|
1193
|
+
return {
|
1194
|
+
Component,
|
1195
|
+
loader,
|
1196
|
+
handle: {
|
1197
|
+
breadcrumb: (
|
1198
|
+
match: UIMatch<HttpTypes.AdminStockLocationResponse>
|
1199
|
+
) => <Breadcrumb {...match} />,
|
1200
|
+
},
|
1201
|
+
}
|
1202
|
+
},
|
1203
|
+
children: [
|
1204
|
+
{
|
1205
|
+
path: "edit",
|
1206
|
+
lazy: () =>
|
1207
|
+
import("../../routes/locations/location-edit"),
|
1208
|
+
},
|
1209
|
+
{
|
1210
|
+
path: "sales-channels",
|
1211
|
+
lazy: () =>
|
1212
|
+
import(
|
1213
|
+
"../../routes/locations/location-sales-channels"
|
1214
|
+
),
|
1215
|
+
},
|
1216
|
+
{
|
1217
|
+
path: "fulfillment-providers",
|
1218
|
+
lazy: () =>
|
1219
|
+
import(
|
1220
|
+
"../../routes/locations/location-fulfillment-providers"
|
1221
|
+
),
|
1222
|
+
},
|
1223
|
+
{
|
1224
|
+
path: "fulfillment-set/:fset_id",
|
1225
|
+
children: [
|
1226
|
+
{
|
1227
|
+
path: "service-zones/create",
|
1228
|
+
lazy: () =>
|
1229
|
+
import(
|
1230
|
+
"../../routes/locations/location-service-zone-create"
|
1231
|
+
),
|
1232
|
+
},
|
1233
|
+
{
|
1234
|
+
path: "service-zone/:zone_id",
|
1235
|
+
children: [
|
1236
|
+
{
|
1237
|
+
path: "edit",
|
1238
|
+
lazy: () =>
|
1239
|
+
import(
|
1240
|
+
"../../routes/locations/location-service-zone-edit"
|
1241
|
+
),
|
1242
|
+
},
|
1243
|
+
{
|
1244
|
+
path: "areas",
|
1245
|
+
lazy: () =>
|
1246
|
+
import(
|
1247
|
+
"../../routes/locations/location-service-zone-manage-areas"
|
1248
|
+
),
|
1249
|
+
},
|
1250
|
+
{
|
1251
|
+
path: "shipping-option",
|
1252
|
+
children: [
|
1253
|
+
{
|
1254
|
+
path: "create",
|
1255
|
+
lazy: () =>
|
1256
|
+
import(
|
1257
|
+
"../../routes/locations/location-service-zone-shipping-option-create"
|
1258
|
+
),
|
1259
|
+
},
|
1260
|
+
{
|
1261
|
+
path: ":so_id",
|
1262
|
+
children: [
|
1263
|
+
{
|
1264
|
+
path: "edit",
|
1265
|
+
lazy: () =>
|
1266
|
+
import(
|
1267
|
+
"../../routes/locations/location-service-zone-shipping-option-edit"
|
1268
|
+
),
|
1269
|
+
},
|
1270
|
+
{
|
1271
|
+
path: "pricing",
|
1272
|
+
lazy: () =>
|
1273
|
+
import(
|
1274
|
+
"../../routes/locations/location-service-zone-shipping-option-pricing"
|
1275
|
+
),
|
1276
|
+
},
|
1277
|
+
],
|
1278
|
+
},
|
1279
|
+
],
|
1280
|
+
},
|
1281
|
+
],
|
1282
|
+
},
|
1283
|
+
],
|
1284
|
+
},
|
1285
|
+
],
|
1286
|
+
},
|
1287
|
+
],
|
1288
|
+
},
|
1289
|
+
{
|
1290
|
+
path: "product-tags",
|
1291
|
+
errorElement: <ErrorBoundary />,
|
1292
|
+
element: <Outlet />,
|
1293
|
+
handle: {
|
1294
|
+
breadcrumb: () => t("productTags.domain"),
|
1295
|
+
},
|
1296
|
+
children: [
|
1297
|
+
{
|
1298
|
+
path: "",
|
1299
|
+
lazy: () =>
|
1300
|
+
import("../../routes/product-tags/product-tag-list"),
|
1301
|
+
children: [
|
1302
|
+
{
|
1303
|
+
path: "create",
|
1304
|
+
lazy: () =>
|
1305
|
+
import("../../routes/product-tags/product-tag-create"),
|
1306
|
+
},
|
1307
|
+
],
|
1308
|
+
},
|
1309
|
+
{
|
1310
|
+
path: ":id",
|
1311
|
+
lazy: async () => {
|
1312
|
+
const { Component, Breadcrumb, loader } = await import(
|
1313
|
+
"../../routes/product-tags/product-tag-detail"
|
1314
|
+
)
|
1315
|
+
|
1316
|
+
return {
|
1317
|
+
Component,
|
1318
|
+
loader,
|
1319
|
+
handle: {
|
1320
|
+
breadcrumb: (
|
1321
|
+
match: UIMatch<HttpTypes.AdminProductTagResponse>
|
1322
|
+
) => <Breadcrumb {...match} />,
|
1323
|
+
},
|
1324
|
+
}
|
1325
|
+
},
|
1326
|
+
children: [
|
1327
|
+
{
|
1328
|
+
path: "edit",
|
1329
|
+
lazy: () =>
|
1330
|
+
import("../../routes/product-tags/product-tag-edit"),
|
1331
|
+
},
|
1332
|
+
],
|
1333
|
+
},
|
1334
|
+
],
|
1335
|
+
},
|
1336
|
+
{
|
1337
|
+
path: "workflows",
|
1338
|
+
errorElement: <ErrorBoundary />,
|
1339
|
+
element: <Outlet />,
|
1340
|
+
handle: {
|
1341
|
+
breadcrumb: () => t("workflowExecutions.domain"),
|
1342
|
+
},
|
1343
|
+
children: [
|
1344
|
+
{
|
1345
|
+
path: "",
|
1346
|
+
lazy: () =>
|
1347
|
+
import(
|
1348
|
+
"../../routes/workflow-executions/workflow-execution-list"
|
1349
|
+
),
|
1350
|
+
},
|
1351
|
+
{
|
1352
|
+
path: ":id",
|
1353
|
+
lazy: async () => {
|
1354
|
+
const { Component, Breadcrumb, loader } = await import(
|
1355
|
+
"../../routes/workflow-executions/workflow-execution-detail"
|
1356
|
+
)
|
1357
|
+
|
1358
|
+
return {
|
1359
|
+
Component,
|
1360
|
+
loader,
|
1361
|
+
handle: {
|
1362
|
+
breadcrumb: (
|
1363
|
+
// eslint-disable-next-line max-len
|
1364
|
+
match: UIMatch<HttpTypes.AdminWorkflowExecutionResponse>
|
1365
|
+
) => <Breadcrumb {...match} />,
|
1366
|
+
},
|
1367
|
+
}
|
1368
|
+
},
|
1369
|
+
},
|
1370
|
+
],
|
1371
|
+
},
|
1372
|
+
{
|
1373
|
+
path: "product-types",
|
1374
|
+
errorElement: <ErrorBoundary />,
|
1375
|
+
element: <Outlet />,
|
1376
|
+
handle: {
|
1377
|
+
breadcrumb: () => t("productTypes.domain"),
|
1378
|
+
},
|
1379
|
+
children: [
|
1380
|
+
{
|
1381
|
+
path: "",
|
1382
|
+
lazy: () =>
|
1383
|
+
import("../../routes/product-types/product-type-list"),
|
1384
|
+
children: [
|
1385
|
+
{
|
1386
|
+
path: "create",
|
1387
|
+
lazy: () =>
|
1388
|
+
import(
|
1389
|
+
"../../routes/product-types/product-type-create"
|
1390
|
+
),
|
1391
|
+
},
|
1392
|
+
],
|
1393
|
+
},
|
1394
|
+
{
|
1395
|
+
path: ":id",
|
1396
|
+
lazy: async () => {
|
1397
|
+
const { Component, Breadcrumb, loader } = await import(
|
1398
|
+
"../../routes/product-types/product-type-detail"
|
1399
|
+
)
|
1400
|
+
|
1401
|
+
return {
|
1402
|
+
Component,
|
1403
|
+
loader,
|
1404
|
+
handle: {
|
1405
|
+
breadcrumb: (
|
1406
|
+
match: UIMatch<HttpTypes.AdminProductTypeResponse>
|
1407
|
+
) => <Breadcrumb {...match} />,
|
1408
|
+
},
|
1409
|
+
}
|
1410
|
+
},
|
1411
|
+
children: [
|
1412
|
+
{
|
1413
|
+
path: "edit",
|
1414
|
+
lazy: () =>
|
1415
|
+
import("../../routes/product-types/product-type-edit"),
|
1416
|
+
},
|
1417
|
+
],
|
1418
|
+
},
|
1419
|
+
],
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
path: "publishable-api-keys",
|
1423
|
+
element: <Outlet />,
|
1424
|
+
handle: {
|
1425
|
+
breadcrumb: () => t("apiKeyManagement.domain.publishable"),
|
1426
|
+
},
|
1427
|
+
children: [
|
1428
|
+
{
|
1429
|
+
path: "",
|
1430
|
+
element: <Outlet />,
|
1431
|
+
children: [
|
1432
|
+
{
|
1433
|
+
path: "",
|
1434
|
+
lazy: () =>
|
1435
|
+
import(
|
1436
|
+
"../../routes/api-key-management/api-key-management-list"
|
1437
|
+
),
|
1438
|
+
children: [
|
1439
|
+
{
|
1440
|
+
path: "create",
|
1441
|
+
lazy: () =>
|
1442
|
+
import(
|
1443
|
+
"../../routes/api-key-management/api-key-management-create"
|
1444
|
+
),
|
1445
|
+
},
|
1446
|
+
],
|
1447
|
+
},
|
1448
|
+
],
|
1449
|
+
},
|
1450
|
+
{
|
1451
|
+
path: ":id",
|
1452
|
+
lazy: async () => {
|
1453
|
+
const { Component, Breadcrumb, loader } = await import(
|
1454
|
+
"../../routes/api-key-management/api-key-management-detail"
|
1455
|
+
)
|
1456
|
+
|
1457
|
+
return {
|
1458
|
+
Component,
|
1459
|
+
loader,
|
1460
|
+
handle: {
|
1461
|
+
breadcrumb: (
|
1462
|
+
match: UIMatch<HttpTypes.AdminApiKeyResponse>
|
1463
|
+
) => <Breadcrumb {...match} />,
|
1464
|
+
},
|
1465
|
+
}
|
1466
|
+
},
|
1467
|
+
children: [
|
1468
|
+
{
|
1469
|
+
path: "edit",
|
1470
|
+
lazy: () =>
|
1471
|
+
import(
|
1472
|
+
"../../routes/api-key-management/api-key-management-edit"
|
1473
|
+
),
|
1474
|
+
},
|
1475
|
+
{
|
1476
|
+
path: "sales-channels",
|
1477
|
+
lazy: () =>
|
1478
|
+
import(
|
1479
|
+
"../../routes/api-key-management/api-key-management-sales-channels"
|
1480
|
+
),
|
1481
|
+
},
|
1482
|
+
],
|
1483
|
+
},
|
1484
|
+
],
|
1485
|
+
},
|
1486
|
+
{
|
1487
|
+
path: "secret-api-keys",
|
1488
|
+
element: <Outlet />,
|
1489
|
+
handle: {
|
1490
|
+
breadcrumb: () => t("apiKeyManagement.domain.secret"),
|
1491
|
+
},
|
1492
|
+
children: [
|
1493
|
+
{
|
1494
|
+
path: "",
|
1495
|
+
element: <Outlet />,
|
1496
|
+
children: [
|
1497
|
+
{
|
1498
|
+
path: "",
|
1499
|
+
lazy: () =>
|
1500
|
+
import(
|
1501
|
+
"../../routes/api-key-management/api-key-management-list"
|
1502
|
+
),
|
1503
|
+
children: [
|
1504
|
+
{
|
1505
|
+
path: "create",
|
1506
|
+
lazy: () =>
|
1507
|
+
import(
|
1508
|
+
"../../routes/api-key-management/api-key-management-create"
|
1509
|
+
),
|
1510
|
+
},
|
1511
|
+
],
|
1512
|
+
},
|
1513
|
+
],
|
1514
|
+
},
|
1515
|
+
{
|
1516
|
+
path: ":id",
|
1517
|
+
lazy: async () => {
|
1518
|
+
const { Component, Breadcrumb, loader } = await import(
|
1519
|
+
"../../routes/api-key-management/api-key-management-detail"
|
1520
|
+
)
|
1521
|
+
|
1522
|
+
return {
|
1523
|
+
Component,
|
1524
|
+
loader,
|
1525
|
+
handle: {
|
1526
|
+
breadcrumb: (
|
1527
|
+
match: UIMatch<HttpTypes.AdminApiKeyResponse>
|
1528
|
+
) => <Breadcrumb {...match} />,
|
1529
|
+
},
|
1530
|
+
}
|
1531
|
+
},
|
1532
|
+
children: [
|
1533
|
+
{
|
1534
|
+
path: "edit",
|
1535
|
+
lazy: () =>
|
1536
|
+
import(
|
1537
|
+
"../../routes/api-key-management/api-key-management-edit"
|
1538
|
+
),
|
1539
|
+
},
|
1540
|
+
],
|
1541
|
+
},
|
1542
|
+
],
|
1543
|
+
},
|
1544
|
+
{
|
1545
|
+
path: "tax-regions",
|
1546
|
+
element: <Outlet />,
|
1547
|
+
handle: {
|
1548
|
+
breadcrumb: () => t("taxRegions.domain"),
|
1549
|
+
},
|
1550
|
+
children: [
|
1551
|
+
{
|
1552
|
+
path: "",
|
1553
|
+
lazy: () =>
|
1554
|
+
import("../../routes/tax-regions/tax-region-list"),
|
1555
|
+
children: [
|
1556
|
+
{
|
1557
|
+
path: "create",
|
1558
|
+
lazy: () =>
|
1559
|
+
import("../../routes/tax-regions/tax-region-create"),
|
1560
|
+
},
|
1561
|
+
],
|
1562
|
+
},
|
1563
|
+
{
|
1564
|
+
path: ":id",
|
1565
|
+
Component: Outlet,
|
1566
|
+
loader: taxRegionLoader,
|
1567
|
+
handle: {
|
1568
|
+
breadcrumb: (
|
1569
|
+
match: UIMatch<HttpTypes.AdminTaxRegionResponse>
|
1570
|
+
) => <TaxRegionDetailBreadcrumb {...match} />,
|
1571
|
+
},
|
1572
|
+
children: [
|
1573
|
+
{
|
1574
|
+
path: "",
|
1575
|
+
lazy: async () => {
|
1576
|
+
const { Component } = await import(
|
1577
|
+
"../../routes/tax-regions/tax-region-detail"
|
1578
|
+
)
|
1579
|
+
|
1580
|
+
return {
|
1581
|
+
Component,
|
1582
|
+
}
|
1583
|
+
},
|
1584
|
+
children: [
|
1585
|
+
{
|
1586
|
+
path: "provinces/create",
|
1587
|
+
lazy: () =>
|
1588
|
+
import(
|
1589
|
+
"../../routes/tax-regions/tax-region-province-create"
|
1590
|
+
),
|
1591
|
+
},
|
1592
|
+
{
|
1593
|
+
path: "overrides/create",
|
1594
|
+
lazy: () =>
|
1595
|
+
import(
|
1596
|
+
"../../routes/tax-regions/tax-region-tax-override-create"
|
1597
|
+
),
|
1598
|
+
},
|
1599
|
+
{
|
1600
|
+
path: "overrides/:tax_rate_id/edit",
|
1601
|
+
lazy: () =>
|
1602
|
+
import(
|
1603
|
+
"../../routes/tax-regions/tax-region-tax-override-edit"
|
1604
|
+
),
|
1605
|
+
},
|
1606
|
+
{
|
1607
|
+
path: "tax-rates/create",
|
1608
|
+
lazy: () =>
|
1609
|
+
import(
|
1610
|
+
"../../routes/tax-regions/tax-region-tax-rate-create"
|
1611
|
+
),
|
1612
|
+
},
|
1613
|
+
{
|
1614
|
+
path: "tax-rates/:tax_rate_id/edit",
|
1615
|
+
lazy: () =>
|
1616
|
+
import(
|
1617
|
+
"../../routes/tax-regions/tax-region-tax-rate-edit"
|
1618
|
+
),
|
1619
|
+
},
|
1620
|
+
],
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
path: "provinces/:province_id",
|
1624
|
+
lazy: async () => {
|
1625
|
+
const { Component, Breadcrumb, loader } = await import(
|
1626
|
+
"../../routes/tax-regions/tax-region-province-detail"
|
1627
|
+
)
|
1628
|
+
|
1629
|
+
return {
|
1630
|
+
Component,
|
1631
|
+
loader,
|
1632
|
+
handle: {
|
1633
|
+
breadcrumb: (
|
1634
|
+
match: UIMatch<HttpTypes.AdminTaxRegionResponse>
|
1635
|
+
) => <Breadcrumb {...match} />,
|
1636
|
+
},
|
1637
|
+
}
|
1638
|
+
},
|
1639
|
+
children: [
|
1640
|
+
{
|
1641
|
+
path: "tax-rates/create",
|
1642
|
+
lazy: () =>
|
1643
|
+
import(
|
1644
|
+
"../../routes/tax-regions/tax-region-tax-rate-create"
|
1645
|
+
),
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
path: "tax-rates/:tax_rate_id/edit",
|
1649
|
+
lazy: () =>
|
1650
|
+
import(
|
1651
|
+
"../../routes/tax-regions/tax-region-tax-rate-edit"
|
1652
|
+
),
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
path: "overrides/create",
|
1656
|
+
lazy: () =>
|
1657
|
+
import(
|
1658
|
+
"../../routes/tax-regions/tax-region-tax-override-create"
|
1659
|
+
),
|
1660
|
+
},
|
1661
|
+
{
|
1662
|
+
path: "overrides/:tax_rate_id/edit",
|
1663
|
+
lazy: () =>
|
1664
|
+
import(
|
1665
|
+
"../../routes/tax-regions/tax-region-tax-override-edit"
|
1666
|
+
),
|
1667
|
+
},
|
1668
|
+
],
|
1669
|
+
},
|
1670
|
+
],
|
1671
|
+
},
|
1672
|
+
],
|
1673
|
+
},
|
1674
|
+
{
|
1675
|
+
path: "return-reasons",
|
1676
|
+
element: <Outlet />,
|
1677
|
+
handle: {
|
1678
|
+
breadcrumb: () => t("returnReasons.domain"),
|
1679
|
+
},
|
1680
|
+
children: [
|
1681
|
+
{
|
1682
|
+
path: "",
|
1683
|
+
lazy: () =>
|
1684
|
+
import("../../routes/return-reasons/return-reason-list"),
|
1685
|
+
children: [
|
1686
|
+
{
|
1687
|
+
path: "create",
|
1688
|
+
lazy: () =>
|
1689
|
+
import(
|
1690
|
+
"../../routes/return-reasons/return-reason-create"
|
1691
|
+
),
|
1692
|
+
},
|
1693
|
+
|
1694
|
+
{
|
1695
|
+
path: ":id",
|
1696
|
+
children: [
|
1697
|
+
{
|
1698
|
+
path: "edit",
|
1699
|
+
lazy: () =>
|
1700
|
+
import(
|
1701
|
+
"../../routes/return-reasons/return-reason-edit"
|
1702
|
+
),
|
1703
|
+
},
|
1704
|
+
],
|
1705
|
+
},
|
1706
|
+
],
|
1707
|
+
},
|
1708
|
+
],
|
1709
|
+
},
|
1710
|
+
...settingsRoutes,
|
1711
|
+
],
|
1712
|
+
},
|
1713
|
+
],
|
1714
|
+
},
|
1715
|
+
{
|
1716
|
+
element: <PublicLayout />,
|
1717
|
+
children: [
|
1718
|
+
{
|
1719
|
+
errorElement: <ErrorBoundary />,
|
1720
|
+
children: [
|
1721
|
+
{
|
1722
|
+
path: "/login",
|
1723
|
+
lazy: () => import("../../routes/login"),
|
1724
|
+
},
|
1725
|
+
{
|
1726
|
+
path: "/reset-password",
|
1727
|
+
lazy: () => import("../../routes/reset-password"),
|
1728
|
+
},
|
1729
|
+
{
|
1730
|
+
path: "/invite",
|
1731
|
+
lazy: () => import("../../routes/invite"),
|
1732
|
+
},
|
1733
|
+
{
|
1734
|
+
path: "*",
|
1735
|
+
lazy: () => import("../../routes/no-match"),
|
1736
|
+
},
|
1737
|
+
],
|
1738
|
+
},
|
1739
|
+
],
|
1740
|
+
},
|
1741
|
+
]
|
1742
|
+
}
|