@medusajs/dashboard 3.0.0-snapshot-20251114155958 → 3.0.0-snapshot-20251126221441
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/{adjust-inventory-ZB3AVET7.mjs → adjust-inventory-WZOCLB5V.mjs} +1 -1
- package/dist/{api-key-management-create-U6VGZK7R.mjs → api-key-management-create-W7NL2IYN.mjs} +3 -3
- package/dist/{api-key-management-detail-B5XNEGKF.mjs → api-key-management-detail-3F77JKQT.mjs} +13 -13
- package/dist/{api-key-management-edit-TJM737A7.mjs → api-key-management-edit-TLVLXAVK.mjs} +3 -3
- package/dist/{api-key-management-list-ZRYMMTF5.mjs → api-key-management-list-FTLC3ELT.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-D2RAHI7W.mjs → api-key-management-sales-channels-NYY3NZOE.mjs} +4 -4
- package/dist/app.css +3 -3
- package/dist/app.js +16021 -17376
- package/dist/app.mjs +11 -11
- package/dist/{campaign-create-IXOWJQ4L.mjs → campaign-create-LHL7FKQK.mjs} +3 -3
- package/dist/{campaign-detail-RCA3TBE4.mjs → campaign-detail-G2FIHVM2.mjs} +10 -10
- package/dist/{categories-metadata-5NBC7HX4.mjs → categories-metadata-YEF2WFML.mjs} +10 -10
- package/dist/{category-create-BTMZYQ5R.mjs → category-create-ELMCLH4J.mjs} +5 -5
- package/dist/{category-detail-RBUJVFPN.mjs → category-detail-ORXA4DBA.mjs} +14 -14
- package/dist/{category-edit-Q3KEELHO.mjs → category-edit-TYKLEYGE.mjs} +2 -2
- package/dist/{category-list-Z6HS6N75.mjs → category-list-IJ3DLPYQ.mjs} +5 -5
- package/dist/{category-organize-45NPSRNG.mjs → category-organize-PDLC54E2.mjs} +2 -2
- package/dist/{category-products-KREOO2KQ.mjs → category-products-GXTUJNT6.mjs} +13 -13
- package/dist/{chunk-SAZHCRHS.mjs → chunk-2PZVZSZW.mjs} +1 -1
- package/dist/{chunk-NFEW5CVI.mjs → chunk-3C6WQ7NH.mjs} +3 -37
- package/dist/{chunk-KF22R23X.mjs → chunk-3UOOSL7Y.mjs} +1 -1
- package/dist/{chunk-BYZSMXJ7.mjs → chunk-4DDI2KIE.mjs} +1 -1
- package/dist/{chunk-5N33TBBX.mjs → chunk-56TDUOXV.mjs} +1 -1
- package/dist/{chunk-67RC6SEX.mjs → chunk-5LGRZSEH.mjs} +1 -1
- package/dist/{chunk-W4TIFG3A.mjs → chunk-6KMZSZIA.mjs} +5 -5
- package/dist/{chunk-P23S5LDK.mjs → chunk-7V2JZU2B.mjs} +2 -2
- package/dist/{chunk-GHBURGZC.mjs → chunk-A6PWH2CK.mjs} +1 -1
- package/dist/{chunk-KJU3T6BK.mjs → chunk-AEMKNDRM.mjs} +2 -2
- package/dist/{chunk-QW4SQVMT.mjs → chunk-AENRV3N7.mjs} +50 -109
- package/dist/{chunk-O5DGX2NZ.mjs → chunk-AF7A24XI.mjs} +1 -1
- package/dist/{chunk-F7LJJHQT.mjs → chunk-C7F7MMXS.mjs} +1 -0
- package/dist/{chunk-CWIMWR6L.mjs → chunk-D6DIMX3W.mjs} +15 -15
- package/dist/{chunk-3RRA56WC.mjs → chunk-DODQ3KJT.mjs} +3 -8
- package/dist/{chunk-FJHAGJ5G.mjs → chunk-ETOJCN3Q.mjs} +1 -1
- package/dist/{chunk-YVQIO3JS.mjs → chunk-GYHQTVXN.mjs} +236 -318
- package/dist/{chunk-FNQ227BC.mjs → chunk-K5QWNI6V.mjs} +1 -1
- package/dist/{chunk-ZOJRDXH3.mjs → chunk-KC64IT2X.mjs} +1 -1
- package/dist/{chunk-K75OQ7QA.mjs → chunk-KHNOLBMA.mjs} +2 -2
- package/dist/{chunk-MOGV3UZD.mjs → chunk-KLNRCI3K.mjs} +1 -1
- package/dist/{chunk-YGEJFHC3.mjs → chunk-M3CKVBZC.mjs} +1 -1
- package/dist/{chunk-VW34SZWE.mjs → chunk-MDVO5GXZ.mjs} +2 -2
- package/dist/{chunk-7H6DB666.mjs → chunk-O4RZ3Y65.mjs} +1 -1
- package/dist/{chunk-5AM254NB.mjs → chunk-OFN7DIZA.mjs} +3 -83
- package/dist/{chunk-42TMWI76.mjs → chunk-OXPE5TAY.mjs} +1 -1
- package/dist/{chunk-NZNJSGGE.mjs → chunk-SIR4PJ4E.mjs} +3 -3
- package/dist/{chunk-QPJUVTKW.mjs → chunk-SWS2BE3M.mjs} +1 -1
- package/dist/{chunk-OMRGW7JS.mjs → chunk-T2ANPJ36.mjs} +3 -3
- package/dist/{chunk-ZE34KAKV.mjs → chunk-U63NCO35.mjs} +2 -2
- package/dist/{chunk-2WLOIS3L.mjs → chunk-WGRVE7KY.mjs} +21 -2
- package/dist/{chunk-BKJMQ6RP.mjs → chunk-WYITLR2E.mjs} +1 -1
- package/dist/{chunk-Y5TTJDGO.mjs → chunk-ZT7CR32D.mjs} +1 -1
- package/dist/{collection-add-products-KM4VO5G5.mjs → collection-add-products-D2KOVZPZ.mjs} +14 -14
- package/dist/{collection-create-RIGJHEX5.mjs → collection-create-I2A2X4VK.mjs} +2 -2
- package/dist/{collection-detail-MLVNULUS.mjs → collection-detail-ZT535E5T.mjs} +14 -14
- package/dist/{collection-edit-WX5G3FHR.mjs → collection-edit-RGH7NCUE.mjs} +2 -2
- package/dist/{collection-list-KWAHQGFE.mjs → collection-list-53JPFHPN.mjs} +23 -24
- package/dist/{collection-metadata-OMFOP3LA.mjs → collection-metadata-SQCA35II.mjs} +11 -11
- package/dist/{customer-detail-SVDGB2QD.mjs → customer-detail-W55EJ6LX.mjs} +14 -14
- package/dist/{customer-group-detail-OCQTI4GG.mjs → customer-group-detail-2WFTU5KU.mjs} +13 -13
- package/dist/{customer-group-list-K5MTMFLG.mjs → customer-group-list-GLF37WEN.mjs} +13 -13
- package/dist/{customers-add-customer-group-2LLBHTX3.mjs → customers-add-customer-group-KXT7RDV3.mjs} +13 -13
- package/dist/{edit-inventory-item-O6JLGZE4.mjs → edit-inventory-item-LMDNUI6M.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-AUVR3GYY.mjs → edit-inventory-item-attributes-DPJIHBP3.mjs} +1 -1
- package/dist/{edit-reservation-GQ6R6GVA.mjs → edit-reservation-IOOZBJ2T.mjs} +2 -2
- package/dist/{edit-rules-G7YMD5RC.mjs → edit-rules-7TG76PR3.mjs} +12 -12
- package/dist/en.json +3 -49
- package/dist/{inventory-create-GMFEGLE4.mjs → inventory-create-NQUETR3V.mjs} +10 -10
- package/dist/{inventory-detail-3BTAVXLJ.mjs → inventory-detail-ADLVUQJM.mjs} +10 -10
- package/dist/{inventory-list-ADJQDNX5.mjs → inventory-list-RQBI7UJX.mjs} +1 -1
- package/dist/{inventory-metadata-JJBXLQJG.mjs → inventory-metadata-45YATS7H.mjs} +10 -10
- package/dist/{inventory-stock-RHLN6ARK.mjs → inventory-stock-UG3CW3TM.mjs} +10 -10
- package/dist/{location-detail-F5QYFPUH.mjs → location-detail-BBPTVSP5.mjs} +15 -15
- package/dist/{location-fulfillment-providers-7JXNE6YT.mjs → location-fulfillment-providers-6AHWONY4.mjs} +14 -15
- package/dist/{location-sales-channels-JPH5BTUY.mjs → location-sales-channels-UVYT52SH.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-7VTPJAPA.mjs → location-service-zone-shipping-option-create-WEIDYZZT.mjs} +11 -11
- package/dist/{location-service-zone-shipping-option-edit-OYTEZGGC.mjs → location-service-zone-shipping-option-edit-TQNTCYII.mjs} +4 -4
- package/dist/{login-BGH5LSM4.mjs → login-VQ7YFW6V.mjs} +10 -10
- package/dist/{manage-locations-ATCDVTSR.mjs → manage-locations-2VDQ3ILT.mjs} +1 -1
- package/dist/{order-allocate-items-PHIW64XK.mjs → order-allocate-items-SSDLHV7A.mjs} +3 -3
- package/dist/{order-create-claim-NPQ6E5DR.mjs → order-create-claim-RAGNQ2RR.mjs} +18 -18
- package/dist/{order-create-edit-R4ZITC5I.mjs → order-create-edit-PRJWTWWE.mjs} +31 -16
- package/dist/{order-create-exchange-6XPYKVYN.mjs → order-create-exchange-DRSFEEL3.mjs} +60 -34
- package/dist/{order-create-fulfillment-7DVPBUES.mjs → order-create-fulfillment-URKHLFR7.mjs} +14 -14
- package/dist/{order-create-refund-7KEOYZTF.mjs → order-create-refund-VZG3UXLV.mjs} +15 -15
- package/dist/{order-create-return-J23AFCKP.mjs → order-create-return-P3OCXJSI.mjs} +6 -6
- package/dist/{order-create-shipment-KNXCANID.mjs → order-create-shipment-QZBUE342.mjs} +10 -10
- package/dist/{order-detail-7ATBL7GN.mjs → order-detail-32Y6JK42.mjs} +31 -31
- package/dist/{order-edit-billing-address-VS75YMUY.mjs → order-edit-billing-address-MUICLYNN.mjs} +11 -11
- package/dist/{order-edit-email-GEE7SF2E.mjs → order-edit-email-ADNCGCS3.mjs} +11 -11
- package/dist/{order-edit-shipping-address-HSRXSRLU.mjs → order-edit-shipping-address-NZF3KMVV.mjs} +11 -11
- package/dist/{order-list-GJTJHLZF.mjs → order-list-33SMDKZD.mjs} +5 -4
- package/dist/{order-metadata-LUBKP5Y4.mjs → order-metadata-UEKHMTAD.mjs} +10 -10
- package/dist/{order-receive-return-FLI44JN2.mjs → order-receive-return-5SB26KCQ.mjs} +11 -11
- package/dist/{order-request-transfer-NH2XCHMV.mjs → order-request-transfer-QS3LMEBW.mjs} +12 -12
- package/dist/{price-list-configuration-SS2VMD4N.mjs → price-list-configuration-CZPMKLNL.mjs} +4 -4
- package/dist/{price-list-create-DZR7JCDG.mjs → price-list-create-2YZRNBRI.mjs} +17 -17
- package/dist/{price-list-detail-4INABJQQ.mjs → price-list-detail-EGGLDH5B.mjs} +24 -20
- package/dist/{price-list-edit-VRI5T4W3.mjs → price-list-edit-3VNSZH4F.mjs} +2 -2
- package/dist/{price-list-list-S2HWTXKV.mjs → price-list-list-AU4IVCQN.mjs} +34 -18
- package/dist/{price-list-prices-add-DO43IEAD.mjs → price-list-prices-add-YRXYOXUG.mjs} +16 -14
- package/dist/{price-list-prices-edit-TRCLLGU4.mjs → price-list-prices-edit-UHOZKA75.mjs} +5 -3
- package/dist/{product-attributes-D6MNCAJB.mjs → product-attributes-W2PIZ6AU.mjs} +12 -12
- package/dist/{product-create-JQQTUEQL.mjs → product-create-UY3QXGNY.mjs} +554 -377
- package/dist/product-create-option-GAEPSU6J.mjs +145 -0
- package/dist/{product-create-variant-6UQRMACE.mjs → product-create-variant-RQEPRPG5.mjs} +11 -11
- package/dist/{product-detail-JMOULY3O.mjs → product-detail-FOLQUXCM.mjs} +54 -38
- package/dist/{product-edit-CC4OUBEC.mjs → product-edit-WRONAZ5F.mjs} +12 -12
- package/dist/product-edit-option-VIU3ZICO.mjs +150 -0
- package/dist/{product-export-BVREOXJT.mjs → product-export-ITQPBLG7.mjs} +22 -23
- package/dist/{product-image-variants-edit-7BBTFZO7.mjs → product-image-variants-edit-P2ZWO6DN.mjs} +10 -10
- package/dist/{product-import-UEXWOHOZ.mjs → product-import-WEHFNQXM.mjs} +10 -10
- package/dist/{product-list-RHHY3NAS.mjs → product-list-7QL2GZEA.mjs} +17 -17
- package/dist/{product-media-EKXMOSO4.mjs → product-media-WCLPCVR3.mjs} +2 -2
- package/dist/{product-metadata-DU2CNDKQ.mjs → product-metadata-LP3B3LXR.mjs} +10 -10
- package/dist/{product-organization-HU6YVPPV.mjs → product-organization-GKKUOJQV.mjs} +14 -14
- package/dist/{product-prices-UMEIS5AZ.mjs → product-prices-MKMKBH6P.mjs} +1 -1
- package/dist/{product-sales-channels-2SALTLTF.mjs → product-sales-channels-5YIO22UW.mjs} +3 -3
- package/dist/{product-shipping-profile-T4ZKHINJ.mjs → product-shipping-profile-GOESXQYV.mjs} +13 -13
- package/dist/{product-stock-CKBS4YDA.mjs → product-stock-KZ5NJINL.mjs} +10 -10
- package/dist/{product-tag-create-GFGPI7ML.mjs → product-tag-create-KOTNIDPO.mjs} +10 -10
- package/dist/{product-tag-detail-TTEWVF3I.mjs → product-tag-detail-4NEU4CQ4.mjs} +27 -28
- package/dist/{product-tag-edit-3XNTLATZ.mjs → product-tag-edit-UBVJB75M.mjs} +10 -10
- package/dist/{product-tag-list-24IJRVFR.mjs → product-tag-list-2JDK7DBC.mjs} +25 -26
- package/dist/{product-tag-metadata-JANWHZ3K.mjs → product-tag-metadata-H4QYJB5I.mjs} +10 -10
- package/dist/{product-type-detail-MAUHCM3C.mjs → product-type-detail-QSKBQZOO.mjs} +13 -13
- package/dist/{product-type-metadata-FAKUWQQF.mjs → product-type-metadata-OSGO33SD.mjs} +10 -10
- package/dist/{product-variant-detail-WHPECDUY.mjs → product-variant-detail-ATHRI3BX.mjs} +10 -10
- package/dist/{product-variant-edit-GR4RNE5G.mjs → product-variant-edit-457GNHH5.mjs} +11 -11
- package/dist/{product-variant-manage-inventory-items-IGDCLZQE.mjs → product-variant-manage-inventory-items-B7TUBSD5.mjs} +2 -2
- package/dist/{product-variant-media-EKI4BTEV.mjs → product-variant-media-6WWLRINP.mjs} +1 -1
- package/dist/{product-variant-metadata-DA2HKXXB.mjs → product-variant-metadata-GOUTYBDT.mjs} +10 -10
- package/dist/{promotion-add-campaign-DOALJUKJ.mjs → promotion-add-campaign-MKDYE7MW.mjs} +3 -3
- package/dist/{promotion-create-GGZULF2B.mjs → promotion-create-WCECPK2G.mjs} +18 -18
- package/dist/{promotion-detail-XK7U73XH.mjs → promotion-detail-JBM2LBZ4.mjs} +10 -10
- package/dist/{refund-reason-create-H7MHJ5C5.mjs → refund-reason-create-IAOKE37M.mjs} +10 -10
- package/dist/{refund-reason-edit-QY36CQVS.mjs → refund-reason-edit-D2VDINGV.mjs} +10 -10
- package/dist/{refund-reason-list-KSQW33QC.mjs → refund-reason-list-Q4TU7OVA.mjs} +13 -13
- package/dist/{region-create-UVJICJRX.mjs → region-create-QLPSK6TX.mjs} +1 -1
- package/dist/{region-edit-3NVXQECN.mjs → region-edit-JCJHA6TY.mjs} +1 -1
- package/dist/{region-metadata-4KQG6UL6.mjs → region-metadata-YLNPW7CL.mjs} +10 -10
- package/dist/{reservation-create-Z7TWUE2L.mjs → reservation-create-BW4CDTWR.mjs} +3 -3
- package/dist/{reservation-detail-W3FULMXT.mjs → reservation-detail-SMO3C2R5.mjs} +10 -10
- package/dist/{reservation-list-MN22JYAW.mjs → reservation-list-RGL67CIU.mjs} +2 -2
- package/dist/{reservation-metadata-AKAN5XNE.mjs → reservation-metadata-KU5AJF7S.mjs} +10 -10
- package/dist/{sales-channel-add-products-POHTQHMV.mjs → sales-channel-add-products-WGRIVVJA.mjs} +13 -13
- package/dist/{sales-channel-create-UFFXX5HK.mjs → sales-channel-create-TOBEDYFD.mjs} +2 -2
- package/dist/{sales-channel-detail-AACIFU2E.mjs → sales-channel-detail-VSTGXEZD.mjs} +13 -13
- package/dist/{sales-channel-edit-SP2HF4E3.mjs → sales-channel-edit-XUTE5GB5.mjs} +2 -2
- package/dist/{sales-channel-list-BY3KTVV6.mjs → sales-channel-list-2LXIRNZP.mjs} +11 -11
- package/dist/{sales-channel-metadata-KGOLI4BZ.mjs → sales-channel-metadata-RZMQYG4F.mjs} +10 -10
- package/dist/{shipping-option-type-create-PSQZW3RN.mjs → shipping-option-type-create-EQPBH6EA.mjs} +10 -10
- package/dist/{shipping-option-type-detail-WAW6TKJU.mjs → shipping-option-type-detail-BCCCVIIJ.mjs} +11 -11
- package/dist/{shipping-option-type-edit-2I44YHND.mjs → shipping-option-type-edit-CGTJ3HAR.mjs} +10 -10
- package/dist/{shipping-option-type-list-F4FRLW3P.mjs → shipping-option-type-list-3TLR4QZF.mjs} +11 -11
- package/dist/{shipping-profile-metadata-AZXPMPHG.mjs → shipping-profile-metadata-JSRQPOAD.mjs} +10 -10
- package/dist/{store-detail-AKRR64I6.mjs → store-detail-H53F5ESM.mjs} +10 -10
- package/dist/{store-edit-Q25HCMCQ.mjs → store-edit-3XS6IC2Z.mjs} +1 -1
- package/dist/{store-metadata-VLEDLAIJ.mjs → store-metadata-GHSJRHAV.mjs} +10 -10
- package/dist/{tax-region-create-JTM53LCS.mjs → tax-region-create-HYT3EOQO.mjs} +11 -11
- package/dist/{tax-region-detail-XBFYCVSH.mjs → tax-region-detail-TQS5425G.mjs} +28 -29
- package/dist/{tax-region-edit-2RRF7C7P.mjs → tax-region-edit-ZB36A456.mjs} +11 -11
- package/dist/{tax-region-province-detail-LGCYSFKE.mjs → tax-region-province-detail-CABVSQRU.mjs} +28 -29
- package/dist/{tax-region-tax-override-create-2W25EZNZ.mjs → tax-region-tax-override-create-ROK47GNE.mjs} +27 -28
- package/dist/{tax-region-tax-override-edit-ZSYNTYUG.mjs → tax-region-tax-override-edit-WRODO4LC.mjs} +26 -27
- package/dist/{user-detail-K5UMPO2L.mjs → user-detail-N6PT3KRP.mjs} +1 -1
- package/dist/{user-metadata-KOGHOQTW.mjs → user-metadata-DKZHLCPN.mjs} +10 -10
- package/dist/{workflow-execution-detail-4QAQ44YB.mjs → workflow-execution-detail-BQEMJSH6.mjs} +10 -10
- package/package.json +11 -11
- package/src/components/inputs/combobox/combobox.tsx +92 -173
- package/src/components/layout/main-layout/main-layout.tsx +4 -7
- package/src/dashboard-app/routes/get-route.map.tsx +12 -64
- package/src/hooks/api/index.ts +0 -1
- package/src/hooks/api/price-lists.tsx +32 -1
- package/src/hooks/api/products.tsx +66 -26
- package/src/hooks/table/filters/index.ts +0 -1
- package/src/i18n/translations/$schema.json +4 -172
- package/src/i18n/translations/en.json +3 -49
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-item.tsx +28 -3
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx +29 -4
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-item.tsx +23 -4
- package/src/routes/orders/order-detail/constants.ts +1 -0
- package/src/routes/orders/order-list/const.ts +1 -0
- package/src/routes/price-lists/price-list-detail/components/price-list-general-section/price-list-general-section.tsx +10 -4
- package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-count-cell.tsx +19 -0
- package/src/routes/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-columns.tsx +5 -6
- package/src/routes/price-lists/price-list-prices-add/price-list-prices-add.tsx +4 -1
- package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +3 -1
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +4 -16
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +198 -220
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +7 -4
- package/src/routes/products/product-create/constants.ts +0 -2
- package/src/routes/products/product-create/utils.ts +1 -6
- package/src/routes/products/product-create-option/components/create-product-option-form/create-product-option-form.tsx +122 -0
- package/src/routes/products/product-create-option/components/create-product-option-form/index.ts +1 -0
- package/src/routes/products/product-create-option/index.ts +1 -0
- package/src/routes/products/product-create-option/product-create-option.tsx +26 -0
- package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +49 -31
- package/src/routes/products/product-edit-option/components/edit-product-option-form/edit-product-option-form.tsx +123 -0
- package/src/routes/products/product-edit-option/components/edit-product-option-form/index.ts +1 -0
- package/src/routes/products/product-edit-option/index.ts +1 -0
- package/src/routes/products/product-edit-option/product-edit-option.tsx +32 -0
- package/dist/chunk-ZHH3W7CN.mjs +0 -171
- package/dist/product-option-create-ML66ZKF3.mjs +0 -336
- package/dist/product-option-detail-DT7HJF5Q.mjs +0 -322
- package/dist/product-option-edit-GUKWRQQH.mjs +0 -324
- package/dist/product-option-list-KF3JSQ6Y.mjs +0 -262
- package/dist/product-option-metadata-BWWRRSAW.mjs +0 -71
- package/dist/product-options-manage-QYWBIHJA.mjs +0 -304
- package/src/hooks/api/product-options.tsx +0 -151
- package/src/hooks/table/columns/use-product-option-table-columns.tsx +0 -44
- package/src/hooks/table/filters/use-product-option-table-filters.tsx +0 -33
- package/src/hooks/table/query/use-product-option-table-query.tsx +0 -34
- package/src/routes/product-options/common/hooks/use-delete-product-option-action.tsx +0 -41
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-details.tsx +0 -71
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-form.tsx +0 -192
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-organize.tsx +0 -77
- package/src/routes/product-options/product-option-create/components/create-product-option-form/index.ts +0 -1
- package/src/routes/product-options/product-option-create/components/create-product-option-form/schema.ts +0 -15
- package/src/routes/product-options/product-option-create/index.ts +0 -1
- package/src/routes/product-options/product-option-create/product-option-create.tsx +0 -10
- package/src/routes/product-options/product-option-detail/breadcrumb.tsx +0 -14
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/index.ts +0 -1
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/product-option-general-section.tsx +0 -81
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/index.ts +0 -1
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/product-option-product-section.tsx +0 -74
- package/src/routes/product-options/product-option-detail/index.ts +0 -3
- package/src/routes/product-options/product-option-detail/loader.ts +0 -17
- package/src/routes/product-options/product-option-detail/product-option-detail.tsx +0 -50
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-details.tsx +0 -94
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-form.tsx +0 -116
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-organize.tsx +0 -77
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/index.ts +0 -1
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/schema.ts +0 -13
- package/src/routes/product-options/product-option-edit/index.ts +0 -1
- package/src/routes/product-options/product-option-edit/product-option-edit.tsx +0 -34
- package/src/routes/product-options/product-option-list/components/product-option-list-table/index.ts +0 -1
- package/src/routes/product-options/product-option-list/components/product-option-list-table/product-option-list-table.tsx +0 -131
- package/src/routes/product-options/product-option-list/index.ts +0 -1
- package/src/routes/product-options/product-option-list/product-option-list.tsx +0 -19
- package/src/routes/product-options/product-option-metadata/index.ts +0 -1
- package/src/routes/product-options/product-option-metadata/product-option-metadata.tsx +0 -27
- package/src/routes/products/product-options-manage/components/product-options-manage-form/index.ts +0 -1
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +0 -284
- package/src/routes/products/product-options-manage/index.ts +0 -1
- package/src/routes/products/product-options-manage/product-options-manage.tsx +0 -35
- package/dist/{chunk-2QH2TBJ2.mjs → chunk-ACJ3PPQJ.mjs} +3 -3
- package/dist/{customer-group-add-customers-2Y2GVCDV.mjs → customer-group-add-customers-QU4Q56SS.mjs} +3 -3
- package/dist/{customer-list-TG4D4QOT.mjs → customer-list-ZXCGIXJC.mjs} +3 -3
- package/dist/{location-list-ZJMZZ6T3.mjs → location-list-OYBI7EGV.mjs} +1 -1
- package/dist/{product-type-list-7WQ5D2KV.mjs → product-type-list-QX7QC6RI.mjs} +3 -3
- package/dist/{region-list-JAQXIBYD.mjs → region-list-XQRIBDMF.mjs} +3 -3
- package/dist/{return-reason-list-ATE2XU4H.mjs → return-reason-list-VYLLXDG4.mjs} +3 -3
- package/dist/{user-list-KPI3BTOA.mjs → user-list-6KATHOTJ.mjs} +3 -3
|
@@ -9,107 +9,69 @@ import {
|
|
|
9
9
|
} from "./chunk-NFEK63OE.mjs";
|
|
10
10
|
|
|
11
11
|
// src/hooks/api/inventory.tsx
|
|
12
|
-
import {
|
|
13
|
-
useMutation as useMutation3,
|
|
14
|
-
useQuery as useQuery3
|
|
15
|
-
} from "@tanstack/react-query";
|
|
16
|
-
|
|
17
|
-
// src/hooks/api/products.tsx
|
|
18
12
|
import {
|
|
19
13
|
useMutation as useMutation2,
|
|
20
14
|
useQuery as useQuery2
|
|
21
15
|
} from "@tanstack/react-query";
|
|
22
16
|
|
|
23
|
-
// src/hooks/api/
|
|
17
|
+
// src/hooks/api/products.tsx
|
|
24
18
|
import {
|
|
25
19
|
useMutation,
|
|
26
20
|
useQuery
|
|
27
21
|
} from "@tanstack/react-query";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
);
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
queryFn: () => sdk.admin.productOption.retrieve(id, query),
|
|
36
|
-
...options
|
|
37
|
-
});
|
|
38
|
-
return { ...data, ...rest };
|
|
39
|
-
};
|
|
40
|
-
var useProductOptions = (query, options) => {
|
|
41
|
-
const { data, ...rest } = useQuery({
|
|
42
|
-
queryFn: () => sdk.admin.productOption.list(query),
|
|
43
|
-
queryKey: productOptionsQueryKeys.list(query),
|
|
44
|
-
...options
|
|
45
|
-
});
|
|
46
|
-
return { ...data, ...rest };
|
|
47
|
-
};
|
|
48
|
-
var useCreateProductOption = (options) => {
|
|
49
|
-
return useMutation({
|
|
50
|
-
mutationFn: (payload) => sdk.admin.productOption.create(payload),
|
|
51
|
-
onSuccess: (data, variables, context) => {
|
|
52
|
-
queryClient.invalidateQueries({
|
|
53
|
-
queryKey: productOptionsQueryKeys.lists()
|
|
54
|
-
});
|
|
55
|
-
options?.onSuccess?.(data, variables, context);
|
|
56
|
-
},
|
|
57
|
-
...options
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var useUpdateProductOption = (id, options) => {
|
|
22
|
+
var PRODUCTS_QUERY_KEY = "products";
|
|
23
|
+
var productsQueryKeys = queryKeysFactory(PRODUCTS_QUERY_KEY);
|
|
24
|
+
var VARIANTS_QUERY_KEY = "product_variants";
|
|
25
|
+
var variantsQueryKeys = queryKeysFactory(VARIANTS_QUERY_KEY);
|
|
26
|
+
var OPTIONS_QUERY_KEY = "product_options";
|
|
27
|
+
var optionsQueryKeys = queryKeysFactory(OPTIONS_QUERY_KEY);
|
|
28
|
+
var useCreateProductOption = (productId, options) => {
|
|
61
29
|
return useMutation({
|
|
62
|
-
mutationFn: (payload) => sdk.admin.
|
|
30
|
+
mutationFn: (payload) => sdk.admin.product.createOption(productId, payload),
|
|
63
31
|
onSuccess: (data, variables, context) => {
|
|
32
|
+
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
64
33
|
queryClient.invalidateQueries({
|
|
65
|
-
queryKey:
|
|
66
|
-
});
|
|
67
|
-
queryClient.invalidateQueries({
|
|
68
|
-
queryKey: productOptionsQueryKeys.detail(id)
|
|
34
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
69
35
|
});
|
|
70
36
|
options?.onSuccess?.(data, variables, context);
|
|
71
37
|
},
|
|
72
38
|
...options
|
|
73
39
|
});
|
|
74
40
|
};
|
|
75
|
-
var
|
|
41
|
+
var useUpdateProductOption = (productId, optionId, options) => {
|
|
76
42
|
return useMutation({
|
|
77
|
-
mutationFn: () => sdk.admin.
|
|
43
|
+
mutationFn: (payload) => sdk.admin.product.updateOption(productId, optionId, payload),
|
|
78
44
|
onSuccess: (data, variables, context) => {
|
|
45
|
+
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
79
46
|
queryClient.invalidateQueries({
|
|
80
|
-
queryKey:
|
|
47
|
+
queryKey: optionsQueryKeys.detail(optionId)
|
|
81
48
|
});
|
|
82
49
|
queryClient.invalidateQueries({
|
|
83
|
-
queryKey:
|
|
50
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
84
51
|
});
|
|
85
52
|
options?.onSuccess?.(data, variables, context);
|
|
86
53
|
},
|
|
87
54
|
...options
|
|
88
55
|
});
|
|
89
56
|
};
|
|
90
|
-
var
|
|
57
|
+
var useDeleteProductOption = (productId, optionId, options) => {
|
|
91
58
|
return useMutation({
|
|
92
|
-
mutationFn: (
|
|
59
|
+
mutationFn: () => sdk.admin.product.deleteOption(productId, optionId),
|
|
93
60
|
onSuccess: (data, variables, context) => {
|
|
61
|
+
queryClient.invalidateQueries({ queryKey: optionsQueryKeys.lists() });
|
|
94
62
|
queryClient.invalidateQueries({
|
|
95
|
-
queryKey:
|
|
63
|
+
queryKey: optionsQueryKeys.detail(optionId)
|
|
96
64
|
});
|
|
97
65
|
queryClient.invalidateQueries({
|
|
98
|
-
queryKey:
|
|
66
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
99
67
|
});
|
|
100
68
|
options?.onSuccess?.(data, variables, context);
|
|
101
69
|
},
|
|
102
70
|
...options
|
|
103
71
|
});
|
|
104
72
|
};
|
|
105
|
-
|
|
106
|
-
// src/hooks/api/products.tsx
|
|
107
|
-
var PRODUCTS_QUERY_KEY = "products";
|
|
108
|
-
var productsQueryKeys = queryKeysFactory(PRODUCTS_QUERY_KEY);
|
|
109
|
-
var VARIANTS_QUERY_KEY = "product_variants";
|
|
110
|
-
var variantsQueryKeys = queryKeysFactory(VARIANTS_QUERY_KEY);
|
|
111
73
|
var useProductVariant = (productId, variantId, query, options) => {
|
|
112
|
-
const { data, ...rest } =
|
|
74
|
+
const { data, ...rest } = useQuery({
|
|
113
75
|
queryFn: () => sdk.admin.product.retrieveVariant(productId, variantId, query),
|
|
114
76
|
queryKey: variantsQueryKeys.detail(variantId, query),
|
|
115
77
|
...options
|
|
@@ -117,7 +79,7 @@ var useProductVariant = (productId, variantId, query, options) => {
|
|
|
117
79
|
return { ...data, ...rest };
|
|
118
80
|
};
|
|
119
81
|
var useProductVariants = (productId, query, options) => {
|
|
120
|
-
const { data, ...rest } =
|
|
82
|
+
const { data, ...rest } = useQuery({
|
|
121
83
|
queryFn: () => sdk.admin.product.listVariants(productId, query),
|
|
122
84
|
queryKey: variantsQueryKeys.list({ productId, ...query }),
|
|
123
85
|
...options
|
|
@@ -125,7 +87,7 @@ var useProductVariants = (productId, query, options) => {
|
|
|
125
87
|
return { ...data, ...rest };
|
|
126
88
|
};
|
|
127
89
|
var useCreateProductVariant = (productId, options) => {
|
|
128
|
-
return
|
|
90
|
+
return useMutation({
|
|
129
91
|
mutationFn: (payload) => sdk.admin.product.createVariant(productId, payload),
|
|
130
92
|
onSuccess: (data, variables, context) => {
|
|
131
93
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -138,7 +100,7 @@ var useCreateProductVariant = (productId, options) => {
|
|
|
138
100
|
});
|
|
139
101
|
};
|
|
140
102
|
var useUpdateProductVariant = (productId, variantId, options) => {
|
|
141
|
-
return
|
|
103
|
+
return useMutation({
|
|
142
104
|
mutationFn: (payload) => sdk.admin.product.updateVariant(productId, variantId, payload),
|
|
143
105
|
onSuccess: (data, variables, context) => {
|
|
144
106
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -154,7 +116,7 @@ var useUpdateProductVariant = (productId, variantId, options) => {
|
|
|
154
116
|
});
|
|
155
117
|
};
|
|
156
118
|
var useUpdateProductVariantsBatch = (productId, options) => {
|
|
157
|
-
return
|
|
119
|
+
return useMutation({
|
|
158
120
|
mutationFn: (payload) => sdk.admin.product.batchVariants(productId, {
|
|
159
121
|
update: payload
|
|
160
122
|
}),
|
|
@@ -170,7 +132,7 @@ var useUpdateProductVariantsBatch = (productId, options) => {
|
|
|
170
132
|
});
|
|
171
133
|
};
|
|
172
134
|
var useProductVariantsInventoryItemsBatch = (productId, options) => {
|
|
173
|
-
return
|
|
135
|
+
return useMutation({
|
|
174
136
|
mutationFn: (payload) => sdk.admin.product.batchVariantInventoryItems(productId, payload),
|
|
175
137
|
onSuccess: (data, variables, context) => {
|
|
176
138
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -184,7 +146,7 @@ var useProductVariantsInventoryItemsBatch = (productId, options) => {
|
|
|
184
146
|
});
|
|
185
147
|
};
|
|
186
148
|
var useDeleteVariant = (productId, variantId, options) => {
|
|
187
|
-
return
|
|
149
|
+
return useMutation({
|
|
188
150
|
mutationFn: () => sdk.admin.product.deleteVariant(productId, variantId),
|
|
189
151
|
onSuccess: (data, variables, context) => {
|
|
190
152
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -200,7 +162,7 @@ var useDeleteVariant = (productId, variantId, options) => {
|
|
|
200
162
|
});
|
|
201
163
|
};
|
|
202
164
|
var useDeleteVariantLazy = (productId, options) => {
|
|
203
|
-
return
|
|
165
|
+
return useMutation({
|
|
204
166
|
mutationFn: ({ variantId }) => sdk.admin.product.deleteVariant(productId, variantId),
|
|
205
167
|
onSuccess: (data, variables, context) => {
|
|
206
168
|
queryClient.invalidateQueries({ queryKey: variantsQueryKeys.lists() });
|
|
@@ -216,7 +178,7 @@ var useDeleteVariantLazy = (productId, options) => {
|
|
|
216
178
|
});
|
|
217
179
|
};
|
|
218
180
|
var useProduct = (id, query, options) => {
|
|
219
|
-
const { data, ...rest } =
|
|
181
|
+
const { data, ...rest } = useQuery({
|
|
220
182
|
queryFn: () => sdk.admin.product.retrieve(id, query),
|
|
221
183
|
queryKey: productsQueryKeys.detail(id, query),
|
|
222
184
|
...options
|
|
@@ -224,7 +186,7 @@ var useProduct = (id, query, options) => {
|
|
|
224
186
|
return { ...data, ...rest };
|
|
225
187
|
};
|
|
226
188
|
var useProducts = (query, options) => {
|
|
227
|
-
const { data, ...rest } =
|
|
189
|
+
const { data, ...rest } = useQuery({
|
|
228
190
|
queryFn: () => sdk.admin.product.list(query),
|
|
229
191
|
queryKey: productsQueryKeys.list(query),
|
|
230
192
|
...options
|
|
@@ -232,7 +194,7 @@ var useProducts = (query, options) => {
|
|
|
232
194
|
return { ...data, ...rest };
|
|
233
195
|
};
|
|
234
196
|
var useCreateProduct = (options) => {
|
|
235
|
-
return
|
|
197
|
+
return useMutation({
|
|
236
198
|
mutationFn: (payload) => sdk.admin.product.create(payload),
|
|
237
199
|
onSuccess: (data, variables, context) => {
|
|
238
200
|
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
@@ -245,7 +207,7 @@ var useCreateProduct = (options) => {
|
|
|
245
207
|
});
|
|
246
208
|
};
|
|
247
209
|
var useUpdateProduct = (id, options) => {
|
|
248
|
-
return
|
|
210
|
+
return useMutation({
|
|
249
211
|
mutationFn: (payload) => sdk.admin.product.update(id, payload),
|
|
250
212
|
onSuccess: async (data, variables, context) => {
|
|
251
213
|
await queryClient.invalidateQueries({
|
|
@@ -260,7 +222,7 @@ var useUpdateProduct = (id, options) => {
|
|
|
260
222
|
});
|
|
261
223
|
};
|
|
262
224
|
var useDeleteProduct = (id, options) => {
|
|
263
|
-
return
|
|
225
|
+
return useMutation({
|
|
264
226
|
mutationFn: () => sdk.admin.product.delete(id),
|
|
265
227
|
onSuccess: (data, variables, context) => {
|
|
266
228
|
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
@@ -270,24 +232,8 @@ var useDeleteProduct = (id, options) => {
|
|
|
270
232
|
...options
|
|
271
233
|
});
|
|
272
234
|
};
|
|
273
|
-
var useLinkProductOptions = (productId, options) => {
|
|
274
|
-
return useMutation2({
|
|
275
|
-
mutationFn: (payload) => sdk.admin.product.linkOptions(productId, payload),
|
|
276
|
-
onSuccess: (data, variables, context) => {
|
|
277
|
-
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
278
|
-
queryClient.invalidateQueries({
|
|
279
|
-
queryKey: productsQueryKeys.detail(productId)
|
|
280
|
-
});
|
|
281
|
-
queryClient.invalidateQueries({
|
|
282
|
-
queryKey: productOptionsQueryKeys.lists()
|
|
283
|
-
});
|
|
284
|
-
options?.onSuccess?.(data, variables, context);
|
|
285
|
-
},
|
|
286
|
-
...options
|
|
287
|
-
});
|
|
288
|
-
};
|
|
289
235
|
var useExportProducts = (query, options) => {
|
|
290
|
-
return
|
|
236
|
+
return useMutation({
|
|
291
237
|
mutationFn: (payload) => sdk.admin.product.export(payload, query),
|
|
292
238
|
onSuccess: (data, variables, context) => {
|
|
293
239
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -296,7 +242,7 @@ var useExportProducts = (query, options) => {
|
|
|
296
242
|
});
|
|
297
243
|
};
|
|
298
244
|
var useImportProducts = (options) => {
|
|
299
|
-
return
|
|
245
|
+
return useMutation({
|
|
300
246
|
mutationFn: (payload) => sdk.admin.product.createImport(payload),
|
|
301
247
|
onSuccess: (data, variables, context) => {
|
|
302
248
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -305,7 +251,7 @@ var useImportProducts = (options) => {
|
|
|
305
251
|
});
|
|
306
252
|
};
|
|
307
253
|
var useConfirmImportProducts = (options) => {
|
|
308
|
-
return
|
|
254
|
+
return useMutation({
|
|
309
255
|
mutationFn: (payload) => sdk.admin.product.confirmImport(payload),
|
|
310
256
|
onSuccess: (data, variables, context) => {
|
|
311
257
|
options?.onSuccess?.(data, variables, context);
|
|
@@ -314,7 +260,7 @@ var useConfirmImportProducts = (options) => {
|
|
|
314
260
|
});
|
|
315
261
|
};
|
|
316
262
|
var useBatchImageVariants = (productId, imageId, options) => {
|
|
317
|
-
return
|
|
263
|
+
return useMutation({
|
|
318
264
|
mutationFn: (payload) => sdk.admin.product.batchImageVariants(productId, imageId, payload),
|
|
319
265
|
onSuccess: (data, variables, context) => {
|
|
320
266
|
queryClient.invalidateQueries({
|
|
@@ -328,7 +274,7 @@ var useBatchImageVariants = (productId, imageId, options) => {
|
|
|
328
274
|
});
|
|
329
275
|
};
|
|
330
276
|
var useBatchVariantImages = (productId, variantId, options) => {
|
|
331
|
-
return
|
|
277
|
+
return useMutation({
|
|
332
278
|
mutationFn: (payload) => sdk.admin.product.batchVariantImages(productId, variantId, payload),
|
|
333
279
|
onSuccess: (data, variables, context) => {
|
|
334
280
|
queryClient.invalidateQueries({
|
|
@@ -356,7 +302,7 @@ var inventoryItemLevelsQueryKeys = queryKeysFactory(
|
|
|
356
302
|
INVENTORY_ITEM_LEVELS_QUERY_KEY
|
|
357
303
|
);
|
|
358
304
|
var useInventoryItems = (query, options) => {
|
|
359
|
-
const { data, ...rest } =
|
|
305
|
+
const { data, ...rest } = useQuery2({
|
|
360
306
|
queryFn: () => sdk.admin.inventoryItem.list(query),
|
|
361
307
|
queryKey: inventoryItemsQueryKeys.list(query),
|
|
362
308
|
...options
|
|
@@ -364,7 +310,7 @@ var useInventoryItems = (query, options) => {
|
|
|
364
310
|
return { ...data, ...rest };
|
|
365
311
|
};
|
|
366
312
|
var useInventoryItem = (id, query, options) => {
|
|
367
|
-
const { data, ...rest } =
|
|
313
|
+
const { data, ...rest } = useQuery2({
|
|
368
314
|
queryFn: () => sdk.admin.inventoryItem.retrieve(id, query),
|
|
369
315
|
queryKey: inventoryItemsQueryKeys.detail(id),
|
|
370
316
|
...options
|
|
@@ -372,7 +318,7 @@ var useInventoryItem = (id, query, options) => {
|
|
|
372
318
|
return { ...data, ...rest };
|
|
373
319
|
};
|
|
374
320
|
var useCreateInventoryItem = (options) => {
|
|
375
|
-
return
|
|
321
|
+
return useMutation2({
|
|
376
322
|
mutationFn: (payload) => sdk.admin.inventoryItem.create(payload),
|
|
377
323
|
onSuccess: (data, variables, context) => {
|
|
378
324
|
queryClient.invalidateQueries({
|
|
@@ -384,7 +330,7 @@ var useCreateInventoryItem = (options) => {
|
|
|
384
330
|
});
|
|
385
331
|
};
|
|
386
332
|
var useUpdateInventoryItem = (id, options) => {
|
|
387
|
-
return
|
|
333
|
+
return useMutation2({
|
|
388
334
|
mutationFn: (payload) => sdk.admin.inventoryItem.update(id, payload),
|
|
389
335
|
onSuccess: (data, variables, context) => {
|
|
390
336
|
queryClient.invalidateQueries({
|
|
@@ -399,7 +345,7 @@ var useUpdateInventoryItem = (id, options) => {
|
|
|
399
345
|
});
|
|
400
346
|
};
|
|
401
347
|
var useDeleteInventoryItem = (id, options) => {
|
|
402
|
-
return
|
|
348
|
+
return useMutation2({
|
|
403
349
|
mutationFn: () => sdk.admin.inventoryItem.delete(id),
|
|
404
350
|
onSuccess: (data, variables, context) => {
|
|
405
351
|
queryClient.invalidateQueries({
|
|
@@ -414,7 +360,7 @@ var useDeleteInventoryItem = (id, options) => {
|
|
|
414
360
|
});
|
|
415
361
|
};
|
|
416
362
|
var useInventoryItemLevels = (inventoryItemId, query, options) => {
|
|
417
|
-
const { data, ...rest } =
|
|
363
|
+
const { data, ...rest } = useQuery2({
|
|
418
364
|
queryFn: () => sdk.admin.inventoryItem.listLevels(inventoryItemId, query),
|
|
419
365
|
queryKey: inventoryItemLevelsQueryKeys.list({
|
|
420
366
|
...query || {},
|
|
@@ -425,7 +371,7 @@ var useInventoryItemLevels = (inventoryItemId, query, options) => {
|
|
|
425
371
|
return { ...data, ...rest };
|
|
426
372
|
};
|
|
427
373
|
var useUpdateInventoryLevel = (inventoryItemId, locationId, options) => {
|
|
428
|
-
return
|
|
374
|
+
return useMutation2({
|
|
429
375
|
mutationFn: (payload) => sdk.admin.inventoryItem.updateLevel(inventoryItemId, locationId, payload),
|
|
430
376
|
onSuccess: (data, variables, context) => {
|
|
431
377
|
queryClient.invalidateQueries({
|
|
@@ -446,7 +392,7 @@ var useUpdateInventoryLevel = (inventoryItemId, locationId, options) => {
|
|
|
446
392
|
});
|
|
447
393
|
};
|
|
448
394
|
var useBatchInventoryItemLocationLevels = (inventoryItemId, options) => {
|
|
449
|
-
return
|
|
395
|
+
return useMutation2({
|
|
450
396
|
mutationFn: (payload) => sdk.admin.inventoryItem.batchInventoryItemLocationLevels(
|
|
451
397
|
inventoryItemId,
|
|
452
398
|
payload
|
|
@@ -470,7 +416,7 @@ var useBatchInventoryItemLocationLevels = (inventoryItemId, options) => {
|
|
|
470
416
|
});
|
|
471
417
|
};
|
|
472
418
|
var useBatchInventoryItemsLocationLevels = (options) => {
|
|
473
|
-
return
|
|
419
|
+
return useMutation2({
|
|
474
420
|
mutationFn: (payload) => sdk.admin.inventoryItem.batchInventoryItemsLocationLevels(payload),
|
|
475
421
|
onSuccess: (data, variables, context) => {
|
|
476
422
|
queryClient.invalidateQueries({
|
|
@@ -497,15 +443,11 @@ export {
|
|
|
497
443
|
useUpdateInventoryLevel,
|
|
498
444
|
useBatchInventoryItemLocationLevels,
|
|
499
445
|
useBatchInventoryItemsLocationLevels,
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
useProductOptions,
|
|
446
|
+
productsQueryKeys,
|
|
447
|
+
variantsQueryKeys,
|
|
503
448
|
useCreateProductOption,
|
|
504
449
|
useUpdateProductOption,
|
|
505
450
|
useDeleteProductOption,
|
|
506
|
-
useDeleteProductOptionLazy,
|
|
507
|
-
productsQueryKeys,
|
|
508
|
-
variantsQueryKeys,
|
|
509
451
|
useProductVariant,
|
|
510
452
|
useProductVariants,
|
|
511
453
|
useCreateProductVariant,
|
|
@@ -519,7 +461,6 @@ export {
|
|
|
519
461
|
useCreateProduct,
|
|
520
462
|
useUpdateProduct,
|
|
521
463
|
useDeleteProduct,
|
|
522
|
-
useLinkProductOptions,
|
|
523
464
|
useExportProducts,
|
|
524
465
|
useImportProducts,
|
|
525
466
|
useConfirmImportProducts,
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getFormattedShippingOptionLocationName
|
|
3
|
-
} from "./chunk-UC26CCHZ.mjs";
|
|
4
1
|
import {
|
|
5
2
|
useProductTypeTableColumns
|
|
6
3
|
} from "./chunk-PVW6M64S.mjs";
|
|
4
|
+
import {
|
|
5
|
+
getFormattedShippingOptionLocationName
|
|
6
|
+
} from "./chunk-UC26CCHZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
TextCell
|
|
9
9
|
} from "./chunk-MSDRGCRR.mjs";
|
|
10
|
-
import {
|
|
11
|
-
useProductTableColumns
|
|
12
|
-
} from "./chunk-BW322BVH.mjs";
|
|
13
10
|
import {
|
|
14
11
|
DateCell
|
|
15
12
|
} from "./chunk-ROKB75YP.mjs";
|
|
13
|
+
import {
|
|
14
|
+
useProductTableColumns
|
|
15
|
+
} from "./chunk-BW322BVH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
_DataTable,
|
|
18
18
|
useDataTable
|
|
19
19
|
} from "./chunk-YTN73JYH.mjs";
|
|
20
|
-
import {
|
|
21
|
-
useShippingOptionTableFilters
|
|
22
|
-
} from "./chunk-NFEW5CVI.mjs";
|
|
23
|
-
import {
|
|
24
|
-
useProductTypeTableFilters
|
|
25
|
-
} from "./chunk-CBSCX7RE.mjs";
|
|
26
20
|
import {
|
|
27
21
|
useShippingOptionTableQuery
|
|
28
22
|
} from "./chunk-MFALVTRQ.mjs";
|
|
@@ -30,11 +24,17 @@ import {
|
|
|
30
24
|
useProductTypeTableQuery
|
|
31
25
|
} from "./chunk-TDK3JDOB.mjs";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
useShippingOptionTableFilters
|
|
28
|
+
} from "./chunk-3C6WQ7NH.mjs";
|
|
29
|
+
import {
|
|
30
|
+
useProductTypeTableFilters
|
|
31
|
+
} from "./chunk-CBSCX7RE.mjs";
|
|
35
32
|
import {
|
|
36
33
|
useProductTableQuery
|
|
37
34
|
} from "./chunk-PCFUZKDS.mjs";
|
|
35
|
+
import {
|
|
36
|
+
useProductTableFilters
|
|
37
|
+
} from "./chunk-KHNOLBMA.mjs";
|
|
38
38
|
import {
|
|
39
39
|
StackedDrawer,
|
|
40
40
|
StackedFocusModal
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
useProduct,
|
|
53
53
|
useProducts
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-AENRV3N7.mjs";
|
|
55
55
|
|
|
56
56
|
// src/routes/tax-regions/common/constants.ts
|
|
57
57
|
var TaxRateRuleReferenceType = /* @__PURE__ */ ((TaxRateRuleReferenceType2) => {
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
var normalizeProductFormValues = (values) => {
|
|
20
20
|
const thumbnail = values.media?.find((media) => media.isThumbnail)?.url;
|
|
21
21
|
const images = values.media?.filter((media) => !media.isThumbnail).map((media) => ({ url: media.url }));
|
|
22
|
-
const options = values.options.filter((o) => o.title);
|
|
23
22
|
return {
|
|
24
23
|
status: values.status,
|
|
25
24
|
is_giftcard: false,
|
|
@@ -44,10 +43,8 @@ var normalizeProductFormValues = (values) => {
|
|
|
44
43
|
length: values.length ? parseFloat(values.length) : void 0,
|
|
45
44
|
height: values.height ? parseFloat(values.height) : void 0,
|
|
46
45
|
weight: values.weight ? parseFloat(values.weight) : void 0,
|
|
47
|
-
options: options.
|
|
48
|
-
|
|
49
|
-
return id ? { id, value_ids } : { ...rest, is_exclusive: true };
|
|
50
|
-
}),
|
|
46
|
+
options: values.options.filter((o) => o.title),
|
|
47
|
+
// clean temp. values
|
|
51
48
|
variants: normalizeVariants(
|
|
52
49
|
values.variants.filter((variant) => variant.should_create),
|
|
53
50
|
values.regionsCurrencyMap
|
|
@@ -143,10 +140,8 @@ var ProductCreateVariantSchema = z.object({
|
|
|
143
140
|
).optional()
|
|
144
141
|
});
|
|
145
142
|
var ProductCreateOptionSchema = z.object({
|
|
146
|
-
id: z.string().optional(),
|
|
147
143
|
title: z.string(),
|
|
148
|
-
values: z.array(z.string()).min(1)
|
|
149
|
-
value_ids: z.array(z.string()).optional()
|
|
144
|
+
values: z.array(z.string()).min(1)
|
|
150
145
|
});
|
|
151
146
|
var ProductCreateSchema = z.object({
|
|
152
147
|
title: z.string().min(1),
|