@unchainedshop/admin-ui 5.0.0-alpha.10 → 5.0.0-alpha.12
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/README.md +1 -1
- package/dist/{chunk-WPLOTFGW.js → chunk-2HTCKO4E.js} +12 -3
- package/dist/{chunk-HTPSKUXQ.js → chunk-33ZO52Z7.js} +3337 -1778
- package/dist/{chunk-AE5LOZGH.js → chunk-4MXPTVDL.js} +16 -58
- package/dist/{chunk-I64TXIE7.js → chunk-ATZJXTRA.js} +1 -1
- package/dist/{chunk-AOR2B5N5.js → chunk-BOMSMJF2.js} +4 -1
- package/dist/{chunk-QHR23GVH.js → chunk-CUYIP5XG.js} +1 -1
- package/dist/{chunk-5WPFHQZN.js → chunk-E6HDJYA6.js} +3 -3
- package/dist/{chunk-FDHXLNZQ.js → chunk-EAVP6XZQ.js} +1 -1
- package/dist/{chunk-E7BVYJ3R.js → chunk-ED2FP42R.js} +2 -2
- package/dist/{chunk-H6G4UTZ5.js → chunk-GWMLIF3C.js} +5 -11
- package/dist/chunk-IWKDBADX.js +73 -0
- package/dist/{chunk-3L6EZQ6P.js → chunk-NFJE5EJG.js} +1 -1
- package/dist/chunk-VYEXPG3M.js +107 -0
- package/dist/{chunk-DTJ2DTKS.js → chunk-YUXHILXY.js} +15 -3
- package/dist/{chunk-VDKQGOMV.js → chunk-ZUOVKRKC.js} +118 -1
- package/dist/components/ui/Badge.d.ts.map +1 -1
- package/dist/components/ui/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/ui/Loading.d.ts +8 -1
- package/dist/components/ui/Loading.d.ts.map +1 -1
- package/dist/components/ui/Pagination.d.ts.map +1 -1
- package/dist/components/ui/form/Combobox.d.ts.map +1 -1
- package/dist/components/ui/form/TextField.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/form.js +814 -292
- package/dist/gql/operation-types.d.ts +195 -19
- package/dist/gql/operation-types.d.ts.map +1 -1
- package/dist/gql/schema-types.d.ts +65 -9
- package/dist/gql/schema-types.d.ts.map +1 -1
- package/dist/hooks.js +5 -5
- package/dist/modal.js +5 -5
- package/dist/modules/accounts.js +183 -3
- package/dist/modules/assortment.js +82 -3
- package/dist/modules/common/components/AppContext.d.ts.map +1 -1
- package/dist/modules/common/components/FormWrapper.d.ts.map +1 -1
- package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -1
- package/dist/modules/common/data/miscellaneous.d.ts +1 -0
- package/dist/modules/common/data/miscellaneous.d.ts.map +1 -1
- package/dist/modules/country.js +1 -1
- package/dist/modules/currency.js +1 -1
- package/dist/modules/delivery-provider.js +1 -1
- package/dist/modules/enrollment.js +66 -9
- package/dist/modules/event.js +1 -1
- package/dist/modules/filter.js +52 -3
- package/dist/modules/language.js +1 -1
- package/dist/modules/order.js +2 -2
- package/dist/modules/payment-providers.js +1 -1
- package/dist/modules/product-review.js +3 -3
- package/dist/modules/product.js +261 -13
- package/dist/modules/quotation.js +8 -1
- package/dist/modules/token.js +2 -2
- package/dist/modules/warehousing-providers.js +1 -1
- package/dist/modules/work.js +18 -102
- package/dist/plugins.js +1 -1
- package/dist/providers.js +6 -6
- package/dist/shims/admin-ui-plugins.js +1 -1
- package/dist/shims/apollo-client-react.js +1 -1
- package/dist/shims/apollo-client.js +1 -1
- package/dist/shims/next-head.js +1 -1
- package/dist/shims/next-image.js +1 -1
- package/dist/shims/next-link.js +1 -1
- package/dist/shims/next-router.js +1 -1
- package/dist/shims/react-dom-client.js +1 -1
- package/dist/shims/react-dom.js +1 -1
- package/dist/shims/react-hook-form.js +1 -1
- package/dist/shims/react-intl.js +1 -1
- package/dist/shims/react-jsx-runtime.js +1 -1
- package/dist/shims/react-toastify.js +1 -1
- package/dist/shims/react.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/ui.js +3965 -3417
- package/out/403/index.html +3 -2
- package/out/404/index.html +3 -2
- package/out/404.html +3 -2
- package/out/423/index.html +3 -2
- package/out/500/index.html +3 -2
- package/out/_next/static/bg3Z_ZBjStiTvJAHlsPDE/_buildManifest.js +262 -0
- package/out/_next/static/chunks/0-kvzk5p0hp-4.js +11 -0
- package/out/_next/static/chunks/0-nzk-g6k41e-.js +119 -0
- package/out/_next/static/chunks/00wlebfe9j80r.js +24 -0
- package/out/_next/static/chunks/01isyk4v59s_4.js +5 -0
- package/out/_next/static/chunks/01otzjqxk372n.js +1 -0
- package/out/_next/static/chunks/03x_mgpai_kbn.js +1 -0
- package/out/_next/static/chunks/04327_1fq5i7-.js +9 -0
- package/out/_next/static/chunks/04_r4qnsjmy81.js +4 -0
- package/out/_next/static/chunks/04egfa7kckou_.js +165 -0
- package/out/_next/static/chunks/05474mknnr_tw.js +4 -0
- package/out/_next/static/chunks/{2kzyda4a6mqut.js → 06kqbwwnuu3te.js} +1 -1
- package/out/_next/static/chunks/0728622u98g6r.js +1 -0
- package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
- package/out/_next/static/chunks/0_3suta3t3lus.js +5 -0
- package/out/_next/static/chunks/0_a5fzdztv84p.js +272 -0
- package/out/_next/static/chunks/0_ppdn6x6ci0v.js +31 -0
- package/out/_next/static/chunks/0br42_xli8-2x.js +6 -0
- package/out/_next/static/chunks/0cdk-eqghrgee.js +5 -0
- package/out/_next/static/chunks/0d54jo566j9ka.js +12 -0
- package/out/_next/static/chunks/0gfia1t8drmnx.js +182 -0
- package/out/_next/static/chunks/0gwd6ju8j_bwr.js +39 -0
- package/out/_next/static/chunks/0hv3x0mo1tt7i.js +5 -0
- package/out/_next/static/chunks/0i481ym5-ss1t.js +5 -0
- package/out/_next/static/chunks/0iohwbogpxe5r.js +1 -0
- package/out/_next/static/chunks/0j46qnxaxeqk_.js +1 -0
- package/out/_next/static/chunks/0mcu2o1ir2t_w.js +7 -0
- package/out/_next/static/chunks/0o4aj3bm49d_h.js +61 -0
- package/out/_next/static/chunks/0op3htrvd-ix6.js +5 -0
- package/out/_next/static/chunks/0p55j-ysba0wq.js +63 -0
- package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
- package/out/_next/static/chunks/0qv2nce7okzy5.js +103 -0
- package/out/_next/static/chunks/0rrhyxuk32t3n.js +95 -0
- package/out/_next/static/chunks/0rt4le6syjqdj.js +21 -0
- package/out/_next/static/chunks/0s2jvi6_qj0lc.js +16 -0
- package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
- package/out/_next/static/chunks/0v1tb34y7e1y4.js +5 -0
- package/out/_next/static/chunks/0w9d4swf95hvu.js +33 -0
- package/out/_next/static/chunks/0we1tw4xvdb7o.js +7 -0
- package/out/_next/static/chunks/0zlzflyq18hhy.js +4 -0
- package/out/_next/static/chunks/0zqdvl0b4w5nc.js +7 -0
- package/out/_next/static/chunks/1-wbp_4f-c4-3.js +837 -0
- package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
- package/out/_next/static/chunks/12cy_5m_0fj96.js +44 -0
- package/out/_next/static/chunks/131uuhqexo4si.js +4 -0
- package/out/_next/static/chunks/14eqp21pspjud.js +234 -0
- package/out/_next/static/chunks/14jd75j8ij4u2.js +3 -0
- package/out/_next/static/chunks/153-_av1r1ssb.js +4 -0
- package/out/_next/static/chunks/157ndq6b9jcvv.js +342 -0
- package/out/_next/static/chunks/177p92k5pdloo.js +1 -0
- package/out/_next/static/chunks/19-1z6h5eeq_w.js +134 -0
- package/out/_next/static/chunks/1bxznw06g-5u2.js +5 -0
- package/out/_next/static/chunks/1bypzyw5fs3w2.js +59 -0
- package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
- package/out/_next/static/chunks/1e2jykfql801f.js +16 -0
- package/out/_next/static/chunks/1eokbzdgdicpa.js +33 -0
- package/out/_next/static/chunks/1f0t23r6y0hni.js +1 -0
- package/out/_next/static/chunks/1fehej_7rgmmo.js +5 -0
- package/out/_next/static/chunks/1gl4h7w9t850f.js +1 -0
- package/out/_next/static/chunks/1gv0k-w7m83om.js +41 -0
- package/out/_next/static/chunks/1hzt0aoixrv4_.js +7 -0
- package/out/_next/static/chunks/1ia6hdgf7pj9y.js +174 -0
- package/out/_next/static/chunks/1in8spfokcjsp.js +8 -0
- package/out/_next/static/chunks/1j2gw9gyg8j80.js +5 -0
- package/out/_next/static/chunks/1k06h8wbfrx_v.js +5 -0
- package/out/_next/static/chunks/1kdcu-0jkya-b.js +61 -0
- package/out/_next/static/chunks/1msc4qrgaanh7.js +43 -0
- package/out/_next/static/chunks/1mx0p6r-9c5u_.js +4 -0
- package/out/_next/static/chunks/1oqc8etm-romv.js +1 -0
- package/out/_next/static/chunks/1p5lt4tkyouxz.js +4 -0
- package/out/_next/static/chunks/1q7wxp4rlhy0x.js +12 -0
- package/out/_next/static/chunks/1r61kgm2ct0nf.js +74 -0
- package/out/_next/static/chunks/1rmlm4404fsge.js +15 -0
- package/out/_next/static/chunks/1s3ool53utm9o.js +39 -0
- package/out/_next/static/chunks/1sc2ug6_szd_d.js +2 -0
- package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
- package/out/_next/static/chunks/1t8jj0-6g8uyd.js +1 -0
- package/out/_next/static/chunks/1tbd6m-xvx0um.js +353 -0
- package/out/_next/static/chunks/1th1-x1szvnq8.js +5 -0
- package/out/_next/static/chunks/1tosw188dr9d6.js +44 -0
- package/out/_next/static/chunks/1tw97cvdosb89.js +5 -0
- package/out/_next/static/chunks/1ubmbegreszhk.js +1 -0
- package/out/_next/static/chunks/1ug1ie2lrhi0a.js +7 -0
- package/out/_next/static/chunks/1ulje1tawz8fl.js +1 -0
- package/out/_next/static/chunks/1uw7hr3o4w5cj.js +8 -0
- package/out/_next/static/chunks/1vzs8hvrsoslf.js +5 -0
- package/out/_next/static/chunks/1w6gc_cygbi6h.js +5 -0
- package/out/_next/static/chunks/1xybsisfyvqrj.js +115 -0
- package/out/_next/static/chunks/1yvl8l5yx1rj8.js +4 -0
- package/out/_next/static/chunks/1z-etrje5tsj6.js +7 -0
- package/out/_next/static/chunks/1z1d11slpalrq.js +4 -0
- package/out/_next/static/chunks/1z1mbux-7g74d.js +1 -0
- package/out/_next/static/chunks/1zdral15la_p7.js +99 -0
- package/out/_next/static/chunks/2-4610weysas_.js +1 -0
- package/out/_next/static/chunks/2-qo63s4vlxol.js +156 -0
- package/out/_next/static/chunks/20au-bdji0nu2.js +14 -0
- package/out/_next/static/chunks/21zghy5-42i1e.js +1 -0
- package/out/_next/static/chunks/22duvsj-priip.js +7 -0
- package/out/_next/static/chunks/22rdge7enz4nd.js +12 -0
- package/out/_next/static/chunks/249b4cg2ev597.js +187 -0
- package/out/_next/static/chunks/24caedynuzux0.js +5 -0
- package/out/_next/static/chunks/25ite4-jpq_mo.js +4 -0
- package/out/_next/static/chunks/25vdihxswn7dy.js +1 -0
- package/out/_next/static/chunks/26guwpx1_pkxv.js +1 -0
- package/out/_next/static/chunks/28o6402k4vuky.js +11 -0
- package/out/_next/static/chunks/28oppyg7ev102.js +1 -0
- package/out/_next/static/chunks/29x7cj-318eaa.js +1 -0
- package/out/_next/static/chunks/2_0v0fw6x71zy.js +46 -0
- package/out/_next/static/chunks/2a9dpzjx5mfjp.js +4 -0
- package/out/_next/static/chunks/2apnv1hcv-4zc.js +23 -0
- package/out/_next/static/chunks/2b4k5t_myq-pa.js +1 -0
- package/out/_next/static/chunks/2bugi3kot5jtu.js +1 -0
- package/out/_next/static/chunks/2bxdh-td1el8z.js +5 -0
- package/out/_next/static/chunks/2dz0_3jf4m9cy.js +31 -0
- package/out/_next/static/chunks/2ege1545af18d.js +4 -0
- package/out/_next/static/chunks/2erqawjj0rnih.js +117 -0
- package/out/_next/static/chunks/2gfzt_fdr-h96.js +81 -0
- package/out/_next/static/chunks/2grm6dtosrvoq.js +1 -0
- package/out/_next/static/chunks/2hc3d38gb0q-v.js +1 -0
- package/out/_next/static/chunks/2hci18oosfv5d.js +5 -0
- package/out/_next/static/chunks/2imf3_f1_ex86.js +1 -0
- package/out/_next/static/chunks/2ipcn3vy6d4_6.js +2 -0
- package/out/_next/static/chunks/2iwst7mjldlcz.js +1 -0
- package/out/_next/static/chunks/2ja0dztzyw8zw.js +1 -0
- package/out/_next/static/chunks/2ja1--2x_gs49.js +83 -0
- package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
- package/out/_next/static/chunks/2lec5u8obskt6.js +5 -0
- package/out/_next/static/chunks/2m38nntt3z8zi.js +103 -0
- package/out/_next/static/chunks/2pogx3xggqd8y.js +1 -0
- package/out/_next/static/chunks/2q988j4vovsiy.js +8 -0
- package/out/_next/static/chunks/2s-0q8i8lr2p2.js +5 -0
- package/out/_next/static/chunks/2u64ldp2xfy8a.js +709 -0
- package/out/_next/static/chunks/2ud5j0_nqocf4.js +5 -0
- package/out/_next/static/chunks/2uo6puoi0y082.js +5 -0
- package/out/_next/static/chunks/2w3z7kqh6nbmw.js +23 -0
- package/out/_next/static/chunks/2y11qf38baxpu.js +14 -0
- package/out/_next/static/chunks/2y8uau15r3p-o.js +1 -0
- package/out/_next/static/chunks/2zb-xmda5rbn0.js +1 -0
- package/out/_next/static/chunks/2zsvxbghbsuz1.js +4 -0
- package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
- package/out/_next/static/chunks/3205eg3ochzp4.js +297 -0
- package/out/_next/static/chunks/32g5gxee1kcdc.js +28 -0
- package/out/_next/static/chunks/32whi9clpxjd0.js +5 -0
- package/out/_next/static/chunks/3368kg846t33d.js +57 -0
- package/out/_next/static/chunks/33oz-znvi5-m6.js +1 -0
- package/out/_next/static/chunks/345s7967cwd02.js +5 -0
- package/out/_next/static/chunks/34wf3lz_fft3k.js +2 -0
- package/out/_next/static/chunks/36x7q29atus_r.js +161 -0
- package/out/_next/static/chunks/37jjn1wguhj-a.js +5 -0
- package/out/_next/static/chunks/393--hagnnm97.js +39 -0
- package/out/_next/static/chunks/39moagn46hde9.js +5 -0
- package/out/_next/static/chunks/3_0q-dmk8few_.css +1 -0
- package/out/_next/static/chunks/3_adkt8r_brx4.js +165 -0
- package/out/_next/static/chunks/3b1kt-r_75q1a.js +43 -0
- package/out/_next/static/chunks/3e38rrs6dszgt.js +8 -0
- package/out/_next/static/chunks/3e7d8sb4289js.js +5 -0
- package/out/_next/static/chunks/3ek1bahoqa_ll.js +5 -0
- package/out/_next/static/chunks/3ek680kdzjdr7.js +1 -0
- package/out/_next/static/chunks/3eth7s2-06yuz.js +1 -0
- package/out/_next/static/chunks/3exy4ii5maq4x.js +54 -0
- package/out/_next/static/chunks/3fevbt4ysloo8.js +8 -0
- package/out/_next/static/chunks/3fu072xwkf88o.js +6 -0
- package/out/_next/static/chunks/3h6a3clw5m5ro.js +4 -0
- package/out/_next/static/chunks/3hmoy4f23y1s4.js +147 -0
- package/out/_next/static/chunks/3i4_3b36nutw7.js +33 -0
- package/out/_next/static/chunks/3jfe0uesrzz7a.js +1 -0
- package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
- package/out/_next/static/chunks/3k01tdsm6l20w.js +54 -0
- package/out/_next/static/chunks/3lr6hkso67d68.js +6 -0
- package/out/_next/static/chunks/3lzin6_25n8rs.js +30 -0
- package/out/_next/static/chunks/3nrrzhhoy8amt.js +4 -0
- package/out/_next/static/chunks/3o-h2po9z09dk.js +4 -0
- package/out/_next/static/chunks/3onharcadlou0.js +327 -0
- package/out/_next/static/chunks/3pls-kicv4xu9.js +175 -0
- package/out/_next/static/chunks/3t48n1yk76zoa.js +1 -0
- package/out/_next/static/chunks/3t_520l4ihlg3.js +54 -0
- package/out/_next/static/chunks/3tg_clsx6ux4o.js +1 -0
- package/out/_next/static/chunks/3ttz1zgoq3xmp.js +1 -0
- package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
- package/out/_next/static/chunks/3ujdligrod612.js +5 -0
- package/out/_next/static/chunks/3www97fxyknos.js +4 -0
- package/out/_next/static/chunks/3x_gia2m5w9_l.js +147 -0
- package/out/_next/static/chunks/3xs_undkbcqp7.js +367 -0
- package/out/_next/static/chunks/3yktizlgzr6vc.js +4 -0
- package/out/_next/static/chunks/3ytp87o76hzmx.js +100 -0
- package/out/_next/static/chunks/40kvu3lk3s9h2.js +276 -0
- package/out/_next/static/chunks/41c4n9whpyrjc.js +7 -0
- package/out/_next/static/chunks/42dygj7ul4k54.js +33 -0
- package/out/_next/static/chunks/449x6nw2kd7l6.js +119 -0
- package/out/_next/static/chunks/44b7_q6pkf1k9.js +5 -0
- package/out/_next/static/chunks/44qc0zn0tudui.js +2 -0
- package/out/_next/static/chunks/45c05mbjow5wz.js +4 -0
- package/out/_next/static/chunks/turbopack-077hmtqrhcoji.js +1 -0
- package/out/_offline/index.html +3 -2
- package/out/account/forgot-password/index.html +3 -2
- package/out/account/index.html +3 -2
- package/out/assortments/AssortmentDetailPage/index.html +3 -2
- package/out/assortments/index.html +3 -2
- package/out/assortments/new/index.html +3 -2
- package/out/copilot/index.html +3 -2
- package/out/country/CountryDetailPage/index.html +3 -2
- package/out/country/index.html +3 -2
- package/out/country/new/index.html +3 -2
- package/out/currency/CurrencyDetailPage/index.html +3 -2
- package/out/currency/index.html +3 -2
- package/out/currency/new/index.html +3 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
- package/out/delivery-provider/index.html +3 -2
- package/out/delivery-provider/new/index.html +3 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
- package/out/enrollments/index.html +3 -2
- package/out/events/EventDetailPage/index.html +3 -2
- package/out/events/index.html +3 -2
- package/out/exports/index.html +3 -2
- package/out/ext/[[...slug]]/index.html +3 -2
- package/out/external/index.html +3 -2
- package/out/filters/FilterDetailPage/index.html +3 -2
- package/out/filters/index.html +3 -2
- package/out/filters/new/index.html +3 -2
- package/out/index.html +3 -2
- package/out/install/index.html +3 -2
- package/out/language/LanguageDetailPage/index.html +3 -2
- package/out/language/index.html +3 -2
- package/out/language/new/index.html +3 -2
- package/out/log-in/index.html +3 -2
- package/out/orders/OrderDetailPage/index.html +3 -2
- package/out/orders/index.html +3 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
- package/out/payment-provider/index.html +3 -2
- package/out/payment-provider/new/index.html +3 -2
- package/out/products/ProductDetailPage/index.html +3 -2
- package/out/products/index.html +3 -2
- package/out/products/new/index.html +3 -2
- package/out/quotations/QuotationDetailPage/index.html +3 -2
- package/out/quotations/index.html +3 -2
- package/out/reset-password/index.html +3 -2
- package/out/sign-up/index.html +3 -2
- package/out/styleguide/index.html +3 -2
- package/out/tokens/TokenDetailPage/index.html +3 -2
- package/out/tokens/index.html +3 -2
- package/out/users/UserDetailPage/index.html +3 -2
- package/out/users/index.html +3 -2
- package/out/users/new/index.html +3 -2
- package/out/verify-email/index.html +3 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
- package/out/warehousing-provider/index.html +3 -2
- package/out/warehousing-provider/new/index.html +3 -2
- package/out/works/WorkDetailPage/index.html +3 -2
- package/out/works/WorkQueueListView/index.html +3 -2
- package/out/works/index.html +3 -2
- package/out/works/management/index.html +3 -2
- package/package.json +10 -10
- package/src/modules/accounts/hooks/logOut.ts +26 -0
- package/src/modules/accounts/hooks/useAddEmail.ts +34 -0
- package/src/modules/accounts/hooks/useAddWeb3Address.ts +38 -0
- package/src/modules/accounts/hooks/useAddWebAuthnCredentials.ts +48 -0
- package/src/modules/accounts/hooks/useBulkUserOperations.ts +91 -0
- package/src/modules/accounts/hooks/useChangePassword.ts +36 -0
- package/src/modules/accounts/hooks/useCreateUser.ts +74 -0
- package/src/modules/accounts/hooks/useCreateWebAuthnCredentialCreationOptions.ts +31 -0
- package/src/modules/accounts/hooks/useCreateWebAuthnCredentialRequestOptions.ts +30 -0
- package/src/modules/accounts/hooks/useCurrentUser.ts +44 -0
- package/src/modules/accounts/hooks/useDeleteUser.ts +26 -0
- package/src/modules/accounts/hooks/useEnrollUser.ts +48 -0
- package/src/modules/accounts/hooks/useForgotPassword.ts +35 -0
- package/src/modules/accounts/hooks/useGenerateLoginCredentials.ts +80 -0
- package/src/modules/accounts/hooks/useGenerateWebAuthCredentials.ts +102 -0
- package/src/modules/accounts/hooks/useLoginWithPassword.ts +65 -0
- package/src/modules/accounts/hooks/useLoginWithWebAuthn.ts +38 -0
- package/src/modules/accounts/hooks/useLogoutAllSessions.ts +27 -0
- package/src/modules/accounts/hooks/useRemoveBookmark.ts +36 -0
- package/src/modules/accounts/hooks/useRemoveEmail.ts +40 -0
- package/src/modules/accounts/hooks/useRemoveWeb3Address.ts +38 -0
- package/src/modules/accounts/hooks/useRemoveWebAuthCredentials.ts +36 -0
- package/src/modules/accounts/hooks/useResetPassword.ts +46 -0
- package/src/modules/accounts/hooks/useSendVerificationEmail.ts +35 -0
- package/src/modules/accounts/hooks/useSetPassword.ts +38 -0
- package/src/modules/accounts/hooks/useSetRoles.ts +40 -0
- package/src/modules/accounts/hooks/useSetUserTags.ts +48 -0
- package/src/modules/accounts/hooks/useSetUsername.ts +40 -0
- package/src/modules/accounts/hooks/useUpdateUserAvatar.ts +49 -0
- package/src/modules/accounts/hooks/useUpdateUserProfile.ts +40 -0
- package/src/modules/accounts/hooks/useUser.ts +201 -0
- package/src/modules/accounts/hooks/useUserBookmarks.ts +51 -0
- package/src/modules/accounts/hooks/useUserExport.ts +107 -0
- package/src/modules/accounts/hooks/useUserWebAuthnCredentials.ts +44 -0
- package/src/modules/accounts/hooks/useUsers.ts +82 -0
- package/src/modules/accounts/hooks/useUsersCount.ts +50 -0
- package/src/modules/accounts/hooks/useValidateEmailVerificationToken.ts +34 -0
- package/src/modules/accounts/hooks/useValidateResetPasswordToken.ts +35 -0
- package/src/modules/accounts/hooks/useVerifyEmail.ts +41 -0
- package/src/modules/accounts/hooks/useVerifyWeb3Address.ts +40 -0
- package/src/modules/accounts/index.ts +6 -0
- package/src/modules/assortment/fragments/AssortmentChildrenFragment.ts +16 -0
- package/src/modules/assortment/fragments/AssortmentFragment.ts +31 -0
- package/src/modules/assortment/fragments/AssortmentLinkFragment.ts +18 -0
- package/src/modules/assortment/fragments/AssortmentMediaFragment.ts +19 -0
- package/src/modules/assortment/fragments/AssortmentMediaTextsFragment.ts +12 -0
- package/src/modules/assortment/fragments/AssortmentTextsFragment.ts +14 -0
- package/src/modules/assortment/hooks/useAddAssortmentFilter.ts +46 -0
- package/src/modules/assortment/hooks/useAddAssortmentLink.ts +46 -0
- package/src/modules/assortment/hooks/useAddAssortmentMedia.ts +52 -0
- package/src/modules/assortment/hooks/useAddAssortmentProduct.ts +46 -0
- package/src/modules/assortment/hooks/useAssortment.ts +56 -0
- package/src/modules/assortment/hooks/useAssortmentChildren.ts +58 -0
- package/src/modules/assortment/hooks/useAssortmentExport.ts +60 -0
- package/src/modules/assortment/hooks/useAssortmentFilters.ts +51 -0
- package/src/modules/assortment/hooks/useAssortmentLinks.ts +54 -0
- package/src/modules/assortment/hooks/useAssortmentMedia.ts +57 -0
- package/src/modules/assortment/hooks/useAssortmentPaths.ts +39 -0
- package/src/modules/assortment/hooks/useAssortmentProducts.ts +62 -0
- package/src/modules/assortment/hooks/useAssortments.ts +103 -0
- package/src/modules/assortment/hooks/useAssortmentsCount.ts +51 -0
- package/src/modules/assortment/hooks/useBulkAssortmentOperations.ts +100 -0
- package/src/modules/assortment/hooks/useCreateAssortment.ts +55 -0
- package/src/modules/assortment/hooks/usePrepareAssortmentImport.ts +211 -0
- package/src/modules/assortment/hooks/useRemoveAssortment.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentFilter.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentLink.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentMedia.ts +36 -0
- package/src/modules/assortment/hooks/useRemoveAssortmentProduct.ts +36 -0
- package/src/modules/assortment/hooks/useReorderAssortmentFilters.ts +39 -0
- package/src/modules/assortment/hooks/useReorderAssortmentLinks.ts +37 -0
- package/src/modules/assortment/hooks/useReorderAssortmentMedia.ts +37 -0
- package/src/modules/assortment/hooks/useReorderAssortmentProducts.ts +39 -0
- package/src/modules/assortment/hooks/useTranslatedAssortmentMediaTexts.ts +41 -0
- package/src/modules/assortment/hooks/useTranslatedAssortmentTexts.ts +40 -0
- package/src/modules/assortment/hooks/useUpdateAssortment.ts +43 -0
- package/src/modules/assortment/hooks/useUpdateAssortmentMediaTexts.ts +45 -0
- package/src/modules/assortment/hooks/useUpdateAssortmentTexts.ts +42 -0
- package/src/modules/assortment/index.ts +2 -0
- package/src/modules/common/fragments/AddressFragment.ts +16 -0
- package/src/modules/common/hooks/useApp.ts +11 -0
- package/src/modules/common/hooks/useBulkActionConfirmation.tsx +68 -0
- package/src/modules/common/hooks/useBulkResultHandler.ts +83 -0
- package/src/modules/common/hooks/useBulkSelection.ts +86 -0
- package/src/modules/common/hooks/useCSVExport.ts +94 -0
- package/src/modules/common/hooks/useCSVImport.ts +69 -0
- package/src/modules/common/hooks/useChatEndpointChecker.ts +25 -0
- package/src/modules/common/hooks/useConfirmMediaUpload.ts +45 -0
- package/src/modules/common/hooks/useDashboardMetrics.ts +42 -0
- package/src/modules/common/hooks/useLocalStorage.ts +34 -0
- package/src/modules/common/hooks/useOrderAnalytics.ts +139 -0
- package/src/modules/common/hooks/useOrderItemsAnalytics.ts +107 -0
- package/src/modules/common/hooks/useOutsideClick.ts +29 -0
- package/src/modules/common/hooks/usePortal.ts +54 -0
- package/src/modules/common/hooks/useScrollRestoration.ts +123 -0
- package/src/modules/common/hooks/useShopConfiguration.ts +83 -0
- package/src/modules/common/hooks/useShopInfo.ts +65 -0
- package/src/modules/common/hooks/useStatusTypes.ts +29 -0
- package/src/modules/common/hooks/useSystemRoles.ts +29 -0
- package/src/modules/common/hooks/useTheme.ts +14 -0
- package/src/modules/copilot/hooks/useAvailableTools.ts +92 -0
- package/src/modules/copilot/hooks/useChatManager.ts +169 -0
- package/src/modules/copilot/hooks/useToolTextNormalizer.ts +84 -0
- package/src/modules/country/fragments/CountryFragment.ts +17 -0
- package/src/modules/country/hooks/useCountries.ts +66 -0
- package/src/modules/country/hooks/useCountry.ts +34 -0
- package/src/modules/country/hooks/useCreateCountry.ts +41 -0
- package/src/modules/country/hooks/useRemoveCountry.ts +38 -0
- package/src/modules/country/hooks/useUpdateCountry.ts +42 -0
- package/src/modules/currency/fragments/CurrencyFragment.ts +13 -0
- package/src/modules/currency/hooks/useCreateCurrency.ts +48 -0
- package/src/modules/currency/hooks/useCurrencies.ts +68 -0
- package/src/modules/currency/hooks/useCurrency.ts +34 -0
- package/src/modules/currency/hooks/useRemoveCurrency.ts +38 -0
- package/src/modules/currency/hooks/useUpdateCurrency.ts +47 -0
- package/src/modules/delivery-provider/hooks/useCreateDeliveryProvider.ts +67 -0
- package/src/modules/delivery-provider/hooks/useDeliveryInterfacesByType.ts +38 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProvider.ts +60 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProviderTypes.ts +34 -0
- package/src/modules/delivery-provider/hooks/useDeliveryProviders.ts +59 -0
- package/src/modules/delivery-provider/hooks/useRemoveDeliveryProvider.ts +38 -0
- package/src/modules/delivery-provider/hooks/useUpdateDeliveryProvider.ts +68 -0
- package/src/modules/enrollment/fragments/EnrollmentDetailFragment.ts +110 -0
- package/src/modules/enrollment/fragments/EnrollmentFragment.ts +66 -0
- package/src/modules/enrollment/hooks/useActivateEnrollment.ts +36 -0
- package/src/modules/enrollment/hooks/useEnrollment.ts +39 -0
- package/src/modules/enrollment/hooks/useEnrollments.ts +70 -0
- package/src/modules/enrollment/hooks/useSendEnrollmentEmail.ts +35 -0
- package/src/modules/enrollment/hooks/useSuspendEnrollment.ts +29 -0
- package/src/modules/enrollment/hooks/useTerminateEnrollment.ts +36 -0
- package/src/modules/enrollment/hooks/useUpdateEnrollmentPlan.ts +45 -0
- package/src/modules/enrollment/hooks/useUserEnrollments.ts +61 -0
- package/src/modules/enrollment/index.ts +2 -0
- package/src/modules/event/fragments/EventFragment.ts +12 -0
- package/src/modules/event/hooks/useEvent.ts +32 -0
- package/src/modules/event/hooks/useEventTypes.ts +29 -0
- package/src/modules/event/hooks/useEvents.ts +77 -0
- package/src/modules/filter/fragments/FilterFragment.ts +24 -0
- package/src/modules/filter/fragments/FilterOptionFragment.ts +16 -0
- package/src/modules/filter/fragments/FilterTextsFragment.ts +12 -0
- package/src/modules/filter/hooks/useBulkFilterOperations.ts +59 -0
- package/src/modules/filter/hooks/useCreateFilter.ts +44 -0
- package/src/modules/filter/hooks/useCreateFilterOption.ts +42 -0
- package/src/modules/filter/hooks/useFilter.ts +44 -0
- package/src/modules/filter/hooks/useFilterExport.ts +35 -0
- package/src/modules/filter/hooks/useFilterOptions.ts +40 -0
- package/src/modules/filter/hooks/useFilterTypes.ts +34 -0
- package/src/modules/filter/hooks/useFilters.ts +78 -0
- package/src/modules/filter/hooks/useFiltersCount.ts +37 -0
- package/src/modules/filter/hooks/usePrepareFilterImport.ts +142 -0
- package/src/modules/filter/hooks/useRemoveFilter.ts +34 -0
- package/src/modules/filter/hooks/useRemoveFilterOption.ts +40 -0
- package/src/modules/filter/hooks/useTranslatedFilterTexts.ts +40 -0
- package/src/modules/filter/hooks/useUpdateFilter.ts +38 -0
- package/src/modules/filter/hooks/useUpdateFilterTexts.ts +48 -0
- package/src/modules/filter/index.ts +2 -0
- package/src/modules/forms/hooks/useField.ts +151 -0
- package/src/modules/forms/hooks/useForm.ts +210 -0
- package/src/modules/forms/hooks/useFormContext.ts +7 -0
- package/src/modules/language/fragments/LanguageFragment.ts +13 -0
- package/src/modules/language/hooks/useCreateLanguage.ts +40 -0
- package/src/modules/language/hooks/useLanguage.ts +34 -0
- package/src/modules/language/hooks/useLanguages.ts +64 -0
- package/src/modules/language/hooks/useRemoveLanguage.ts +38 -0
- package/src/modules/language/hooks/useUpdateLanguage.ts +42 -0
- package/src/modules/modal/hooks/useModal.ts +8 -0
- package/src/modules/order/fragments/OrderDetailFragment.ts +255 -0
- package/src/modules/order/fragments/OrderFragment.ts +42 -0
- package/src/modules/order/hooks/useConfirmOrder.ts +36 -0
- package/src/modules/order/hooks/useDeliverOrder.ts +36 -0
- package/src/modules/order/hooks/useOrder.ts +35 -0
- package/src/modules/order/hooks/useOrders.ts +105 -0
- package/src/modules/order/hooks/usePayOrder.ts +36 -0
- package/src/modules/order/hooks/useRejectOrder.ts +36 -0
- package/src/modules/order/hooks/useRemoveOrder.ts +36 -0
- package/src/modules/order/hooks/useUserCart.ts +71 -0
- package/src/modules/order/hooks/useUserOrders.ts +65 -0
- package/src/modules/payment-providers/fragments/PaymentProviderFragment.ts +21 -0
- package/src/modules/payment-providers/hooks/useCreatePaymentProvider.ts +43 -0
- package/src/modules/payment-providers/hooks/usePaymentInterfacesByType.ts +38 -0
- package/src/modules/payment-providers/hooks/usePaymentProvider.ts +39 -0
- package/src/modules/payment-providers/hooks/usePaymentProviderTypes.ts +34 -0
- package/src/modules/payment-providers/hooks/usePaymentProviders.ts +42 -0
- package/src/modules/payment-providers/hooks/useRemovePaymentProvider.ts +38 -0
- package/src/modules/payment-providers/hooks/useUpdatePaymentProvider.ts +47 -0
- package/src/modules/product/fragments/ProductAssignmentFragment.ts +39 -0
- package/src/modules/product/fragments/ProductBriefFragment.ts +57 -0
- package/src/modules/product/fragments/ProductCatalogPriceFragment.ts +23 -0
- package/src/modules/product/fragments/ProductDetailFragment.ts +51 -0
- package/src/modules/product/fragments/ProductDimensionFragment.ts +12 -0
- package/src/modules/product/fragments/ProductMediaFragment.ts +24 -0
- package/src/modules/product/fragments/ProductMediaTextsFragment.ts +12 -0
- package/src/modules/product/fragments/ProductPlanConfigurationFragment.ts +14 -0
- package/src/modules/product/fragments/ProductTextsFragment.ts +17 -0
- package/src/modules/product/fragments/ProductVariationFragment.ts +27 -0
- package/src/modules/product/fragments/TokenFragment.ts +24 -0
- package/src/modules/product/hooks/useAddProductAssignment.ts +46 -0
- package/src/modules/product/hooks/useAddProductMedia.ts +47 -0
- package/src/modules/product/hooks/useBulkProductOperations.ts +123 -0
- package/src/modules/product/hooks/useCreateProduct.ts +72 -0
- package/src/modules/product/hooks/useCreateProductBundleItem.ts +40 -0
- package/src/modules/product/hooks/useCreateProductVariation.ts +46 -0
- package/src/modules/product/hooks/useCreateProductVariationOption.ts +46 -0
- package/src/modules/product/hooks/useExportToken.ts +51 -0
- package/src/modules/product/hooks/useMenuPosition.ts +34 -0
- package/src/modules/product/hooks/usePrepareProductImport.ts +350 -0
- package/src/modules/product/hooks/useProduct.ts +93 -0
- package/src/modules/product/hooks/useProductAssignments.ts +71 -0
- package/src/modules/product/hooks/useProductBundleItems.ts +61 -0
- package/src/modules/product/hooks/useProductCatalogPrices.ts +39 -0
- package/src/modules/product/hooks/useProductExport.ts +90 -0
- package/src/modules/product/hooks/useProductFulfillmentSimulation.ts +137 -0
- package/src/modules/product/hooks/useProductMedia.ts +44 -0
- package/src/modules/product/hooks/useProductPlan.ts +50 -0
- package/src/modules/product/hooks/useProductPlanConfigurationOptions.ts +42 -0
- package/src/modules/product/hooks/useProductReviews.ts +62 -0
- package/src/modules/product/hooks/useProductSupply.ts +52 -0
- package/src/modules/product/hooks/useProductTokenization.ts +51 -0
- package/src/modules/product/hooks/useProductVariationTypes.ts +34 -0
- package/src/modules/product/hooks/useProductVariations.ts +50 -0
- package/src/modules/product/hooks/useProductWarehousing.ts +45 -0
- package/src/modules/product/hooks/useProducts.ts +111 -0
- package/src/modules/product/hooks/useProductsCount.ts +50 -0
- package/src/modules/product/hooks/usePublishProduct.ts +39 -0
- package/src/modules/product/hooks/useReOrderProductMedia.ts +36 -0
- package/src/modules/product/hooks/useRemoveBundleItem.ts +37 -0
- package/src/modules/product/hooks/useRemoveProduct.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductAssignment.ts +40 -0
- package/src/modules/product/hooks/useRemoveProductMedia.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductVariation.ts +36 -0
- package/src/modules/product/hooks/useRemoveProductVariationOption.ts +43 -0
- package/src/modules/product/hooks/useScaffoldBundleItem.ts +38 -0
- package/src/modules/product/hooks/useScaffoldVariationProduct.ts +50 -0
- package/src/modules/product/hooks/useSmartContractStandards.ts +34 -0
- package/src/modules/product/hooks/useTranslatedProductMediaTexts.ts +39 -0
- package/src/modules/product/hooks/useTranslatedProductTexts.ts +42 -0
- package/src/modules/product/hooks/useUnPublishProduct.ts +39 -0
- package/src/modules/product/hooks/useUpdateProduct.ts +46 -0
- package/src/modules/product/hooks/useUpdateProductCommerce.ts +61 -0
- package/src/modules/product/hooks/useUpdateProductMediaTexts.ts +42 -0
- package/src/modules/product/hooks/useUpdateProductPlan.ts +54 -0
- package/src/modules/product/hooks/useUpdateProductSupply.ts +60 -0
- package/src/modules/product/hooks/useUpdateProductTexts.ts +39 -0
- package/src/modules/product/hooks/useUpdateProductTokenization.ts +51 -0
- package/src/modules/product/hooks/useUpdateProductVariationTexts.ts +50 -0
- package/src/modules/product/hooks/useUpdateProductWarehousing.ts +50 -0
- package/src/modules/product/hooks/useUserTokens.ts +48 -0
- package/src/modules/product/index.ts +4 -0
- package/src/modules/product-review/fragments/ProductReviewDetailFragment.ts +55 -0
- package/src/modules/product-review/hooks/useAddProductReviewVote.ts +55 -0
- package/src/modules/product-review/hooks/useCreateProductReview.ts +47 -0
- package/src/modules/product-review/hooks/useProductReviewsByProductId.ts +70 -0
- package/src/modules/product-review/hooks/useRemoveProductReview.ts +38 -0
- package/src/modules/product-review/hooks/useRemoveProductReviewVote.ts +43 -0
- package/src/modules/product-review/hooks/useUserProductReviews.ts +92 -0
- package/src/modules/quotation/fragments/QuotationDetailFragment.ts +70 -0
- package/src/modules/quotation/fragments/QuotationFragment.ts +54 -0
- package/src/modules/quotation/hooks/useMakeQuotationProposal.ts +41 -0
- package/src/modules/quotation/hooks/useQuotation.ts +37 -0
- package/src/modules/quotation/hooks/useQuotations.ts +61 -0
- package/src/modules/quotation/hooks/useRejectQuotation.ts +41 -0
- package/src/modules/quotation/hooks/useUserQuotations.ts +60 -0
- package/src/modules/quotation/hooks/useVerifyQuotation.ts +41 -0
- package/src/modules/search/fragments/GlobalSearchFragment.ts +20 -0
- package/src/modules/search/hooks/useGlobalSearch.ts +168 -0
- package/src/modules/token/hooks/useInvalidateTicket.ts +27 -0
- package/src/modules/token/hooks/useToken.ts +64 -0
- package/src/modules/token/hooks/useTokens.ts +72 -0
- package/src/modules/warehousing-providers/fragments/WarehousingProviderFragment.ts +21 -0
- package/src/modules/warehousing-providers/hooks/useCreateWarehousingProvider.ts +46 -0
- package/src/modules/warehousing-providers/hooks/useRemoveWarehousingProvider.ts +38 -0
- package/src/modules/warehousing-providers/hooks/useUpdateWarehousingProvider.ts +47 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingInterfacesByType.ts +38 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProvider.ts +39 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProviderTypes.ts +34 -0
- package/src/modules/warehousing-providers/hooks/useWarehousingProviders.ts +41 -0
- package/src/modules/work/fragments/WorkFragment.ts +24 -0
- package/src/modules/work/hooks/useActiveWorkTypes.ts +29 -0
- package/src/modules/work/hooks/useAddWork.ts +62 -0
- package/src/modules/work/hooks/useAllocateWork.ts +40 -0
- package/src/modules/work/hooks/useRecentExports.ts +129 -0
- package/src/modules/work/hooks/useRegisteredWorkTypes.ts +27 -0
- package/src/modules/work/hooks/useRemoveWork.ts +36 -0
- package/src/modules/work/hooks/useWork.ts +42 -0
- package/src/modules/work/hooks/useWorkQueue.ts +98 -0
- package/src/modules/work/index.ts +1 -0
- package/src/sdk/README.md +12 -3
- package/src/sdk/plugin-navigation.test.mjs +59 -0
- package/out/_next/static/chunks/0-2b37ubdpy0o.js +0 -7
- package/out/_next/static/chunks/012cafv-4m7rj.js +0 -807
- package/out/_next/static/chunks/02dnhll1bce87.js +0 -46
- package/out/_next/static/chunks/02ptvddfjlsxb.js +0 -1
- package/out/_next/static/chunks/03ebenjfvoj8n.js +0 -1
- package/out/_next/static/chunks/03r347235l6c4.js +0 -7
- package/out/_next/static/chunks/05au-xyt__0f2.js +0 -3
- package/out/_next/static/chunks/05nn5xr3ufcsh.js +0 -1
- package/out/_next/static/chunks/05o_q7jg8wucs.js +0 -44
- package/out/_next/static/chunks/05scroolqe8fu.js +0 -234
- package/out/_next/static/chunks/072qxdqjtqvn9.js +0 -11
- package/out/_next/static/chunks/0752goe9_9g2s.js +0 -110
- package/out/_next/static/chunks/07e-sk6v9u-qh.js +0 -807
- package/out/_next/static/chunks/07evy5u8ldd1y.js +0 -50
- package/out/_next/static/chunks/083ylavob4a8d.js +0 -3
- package/out/_next/static/chunks/08jrw03_vxllg.js +0 -54
- package/out/_next/static/chunks/08pag0k09j2b3.js +0 -807
- package/out/_next/static/chunks/09n6h-_l73rez.js +0 -13
- package/out/_next/static/chunks/0_b5faks_mrvi.js +0 -14
- package/out/_next/static/chunks/0a_bg-ub3r2eo.js +0 -60
- package/out/_next/static/chunks/0aqxsjssb0dh9.js +0 -21
- package/out/_next/static/chunks/0aw4jxe6zcc0c.js +0 -32
- package/out/_next/static/chunks/0b0hrx3sbbs70.js +0 -807
- package/out/_next/static/chunks/0bg4_y1qh5y5h.js +0 -47
- package/out/_next/static/chunks/0bgz44wi1lidl.js +0 -13
- package/out/_next/static/chunks/0dcpvidzyamvk.js +0 -100
- package/out/_next/static/chunks/0dnh0kr83_tj0.js +0 -1
- package/out/_next/static/chunks/0dxp17sbyy_dr.js +0 -22
- package/out/_next/static/chunks/0dxu94yin5gdn.js +0 -35
- package/out/_next/static/chunks/0e2c-jlh2q_eq.js +0 -74
- package/out/_next/static/chunks/0el7gr-83bm5j.js +0 -3
- package/out/_next/static/chunks/0f_ofo__wyqsp.js +0 -22
- package/out/_next/static/chunks/0gx9t6j5kx_ho.js +0 -9
- package/out/_next/static/chunks/0h0r_q6xa9qr_.js +0 -1
- package/out/_next/static/chunks/0i9ymn9xxs0nx.js +0 -18
- package/out/_next/static/chunks/0iy11ws57hzzr.js +0 -99
- package/out/_next/static/chunks/0j8_uikfyrn1f.js +0 -1
- package/out/_next/static/chunks/0jeddko6bac8h.js +0 -1
- package/out/_next/static/chunks/0jzx7vxh13cpi.js +0 -15
- package/out/_next/static/chunks/0kody3217__os.js +0 -16
- package/out/_next/static/chunks/0kwo-m1-mo-s-.js +0 -31
- package/out/_next/static/chunks/0lp_pnq1t06sl.js +0 -104
- package/out/_next/static/chunks/0m6jydfuy_4o3.js +0 -1
- package/out/_next/static/chunks/0mez27zlo26ni.js +0 -103
- package/out/_next/static/chunks/0nj8vn3509oe-.js +0 -9
- package/out/_next/static/chunks/0np9pcbt6dmxe.js +0 -25
- package/out/_next/static/chunks/0o7k5vanq57ch.js +0 -807
- package/out/_next/static/chunks/0r5wwinf72z4g.js +0 -1
- package/out/_next/static/chunks/0rqjr_lmrk4pz.js +0 -5
- package/out/_next/static/chunks/0swe0fkt4vyzn.js +0 -136
- package/out/_next/static/chunks/0u4st428hgv1v.js +0 -27
- package/out/_next/static/chunks/0u7--d8_-qyne.js +0 -83
- package/out/_next/static/chunks/0ubzi2s1spm4e.js +0 -342
- package/out/_next/static/chunks/0uecw_5mn0zvr.js +0 -110
- package/out/_next/static/chunks/0uw9cbq0ivaz0.js +0 -1
- package/out/_next/static/chunks/0uxwblyj0htyb.js +0 -1
- package/out/_next/static/chunks/0uyhr7vs9ltp0.js +0 -141
- package/out/_next/static/chunks/0vr19nswhvt2-.js +0 -14
- package/out/_next/static/chunks/0vyvc19p87f_r.js +0 -234
- package/out/_next/static/chunks/0wznlnzc2xsbz.js +0 -16
- package/out/_next/static/chunks/0ycu-q8fcc8ta.js +0 -1
- package/out/_next/static/chunks/0ytserk6fuf71.js +0 -175
- package/out/_next/static/chunks/0zoum0jzrtu0s.js +0 -145
- package/out/_next/static/chunks/1-6s62fsl_z_7.js +0 -126
- package/out/_next/static/chunks/10b6et0qn-pa0.js +0 -59
- package/out/_next/static/chunks/13m7st62a61df.js +0 -25
- package/out/_next/static/chunks/13u_a5l2xngm4.js +0 -1
- package/out/_next/static/chunks/15vz50rks0o2-.js +0 -238
- package/out/_next/static/chunks/1647yxi4ymq0z.js +0 -14
- package/out/_next/static/chunks/16hd7xvkocqxs.js +0 -807
- package/out/_next/static/chunks/16t18hhd4ax36.js +0 -2
- package/out/_next/static/chunks/17wle25pg9jkp.js +0 -11
- package/out/_next/static/chunks/18juy_eauk94g.js +0 -58
- package/out/_next/static/chunks/19eflki8bmivb.js +0 -81
- package/out/_next/static/chunks/19eu5d-wm2hfr.js +0 -23
- package/out/_next/static/chunks/19izcjxrrapb3.js +0 -9
- package/out/_next/static/chunks/1_jbj-c1d2606.js +0 -21
- package/out/_next/static/chunks/1_pwqdjxb6oou.js +0 -226
- package/out/_next/static/chunks/1ae-9ft5cgojf.js +0 -1
- package/out/_next/static/chunks/1bftmuhck_-7b.js +0 -1
- package/out/_next/static/chunks/1bww_2og01jxh.js +0 -807
- package/out/_next/static/chunks/1c0cemuv_tf6i.js +0 -16
- package/out/_next/static/chunks/1c4a2qxtb3r4_.js +0 -16
- package/out/_next/static/chunks/1cjd95y23a9qx.js +0 -1
- package/out/_next/static/chunks/1cy-2yb5j5_9b.js +0 -157
- package/out/_next/static/chunks/1dkv555kaccbl.js +0 -13
- package/out/_next/static/chunks/1dt9_bzfioi8a.js +0 -24
- package/out/_next/static/chunks/1fd7ewfb7bi_g.js +0 -234
- package/out/_next/static/chunks/1gncrqljnmqjn.js +0 -43
- package/out/_next/static/chunks/1gt65pz91hyuz.js +0 -1
- package/out/_next/static/chunks/1iewktf-9h_n8.js +0 -15
- package/out/_next/static/chunks/1l7p7exnzd0c2.js +0 -12
- package/out/_next/static/chunks/1nqu3ymv6lgev.js +0 -3
- package/out/_next/static/chunks/1o_8g-kpuqi9h.js +0 -1
- package/out/_next/static/chunks/1oent0-9-0rgb.js +0 -20
- package/out/_next/static/chunks/1og09fg689_nc.js +0 -180
- package/out/_next/static/chunks/1pj279k5ntty3.js +0 -13
- package/out/_next/static/chunks/1q_sewe1wbxsk.js +0 -54
- package/out/_next/static/chunks/1qvs4gd4rbhb2.js +0 -15
- package/out/_next/static/chunks/1rtv3c_klo0jk.js +0 -1
- package/out/_next/static/chunks/1sdqr2_r6o46f.js +0 -16
- package/out/_next/static/chunks/1vti949e9wuhz.js +0 -15
- package/out/_next/static/chunks/1x-yucftdml28.js +0 -1
- package/out/_next/static/chunks/1xbofs3ibkjvj.js +0 -1
- package/out/_next/static/chunks/1ylgjha1c0ua_.js +0 -124
- package/out/_next/static/chunks/1yp98n-n4gxwy.js +0 -15
- package/out/_next/static/chunks/1zcm_9oew7412.js +0 -14
- package/out/_next/static/chunks/2-e0d1qpp7rk9.js +0 -14
- package/out/_next/static/chunks/20ubrczdsehfm.js +0 -879
- package/out/_next/static/chunks/23m--gc-gjenm.js +0 -3
- package/out/_next/static/chunks/24-pobk4qjjvp.js +0 -3
- package/out/_next/static/chunks/24jptulqn322i.js +0 -15
- package/out/_next/static/chunks/24jyi7e2pq4gy.js +0 -15
- package/out/_next/static/chunks/252jebodi67kg.js +0 -1
- package/out/_next/static/chunks/26eux546aoag5.js +0 -58
- package/out/_next/static/chunks/270ua9t85a7ev.js +0 -5
- package/out/_next/static/chunks/28r_j2kquxrjn.js +0 -807
- package/out/_next/static/chunks/2_ccruvok3u8j.js +0 -16
- package/out/_next/static/chunks/2_ojfjgg8do9t.js +0 -1
- package/out/_next/static/chunks/2aj5aq_c0b4r_.js +0 -13
- package/out/_next/static/chunks/2ba3n9zx9e9q9.js +0 -807
- package/out/_next/static/chunks/2d-hxb31pgpn7.js +0 -13
- package/out/_next/static/chunks/2df2cqwidgpan.js +0 -15
- package/out/_next/static/chunks/2djnsowjy3p8y.js +0 -1
- package/out/_next/static/chunks/2dyj8q92_k5el.js +0 -708
- package/out/_next/static/chunks/2e0k9dt1emjfm.js +0 -1
- package/out/_next/static/chunks/2e3gba1n-yyuj.js +0 -15
- package/out/_next/static/chunks/2e_p1vqr0g_-_.js +0 -7
- package/out/_next/static/chunks/2e_te6sbs_5uw.js +0 -1
- package/out/_next/static/chunks/2f16josk9b_cl.js +0 -8
- package/out/_next/static/chunks/2fo2ki1egxbah.js +0 -39
- package/out/_next/static/chunks/2g8gzs8wpsofk.js +0 -2
- package/out/_next/static/chunks/2gh355-kh19zx.js +0 -13
- package/out/_next/static/chunks/2gr4t5xe0atdr.js +0 -15
- package/out/_next/static/chunks/2ib6fee-nqe-z.js +0 -23
- package/out/_next/static/chunks/2kjux30i3gg-c.js +0 -5
- package/out/_next/static/chunks/2ljoq6sr-g2da.js +0 -1
- package/out/_next/static/chunks/2ll_mqee86g8c.js +0 -1
- package/out/_next/static/chunks/2lx_iig9xewfj.js +0 -52
- package/out/_next/static/chunks/2lylr4-3tu1_t.js +0 -15
- package/out/_next/static/chunks/2n1v8ph2nt43w.js +0 -17
- package/out/_next/static/chunks/2o9hdz0gk1-s7.js +0 -165
- package/out/_next/static/chunks/2oadogfqpak51.js +0 -1
- package/out/_next/static/chunks/2oogwntgnu9rf.js +0 -17
- package/out/_next/static/chunks/2p4e3kh8sa8iq.js +0 -13
- package/out/_next/static/chunks/2q-mpau-4gsvd.js +0 -1
- package/out/_next/static/chunks/2rddaar-ns45d.js +0 -116
- package/out/_next/static/chunks/2s3qhuh87mu_w.js +0 -126
- package/out/_next/static/chunks/2s6u8274_jzk2.js +0 -105
- package/out/_next/static/chunks/2skfzjx2g9hkk.js +0 -134
- package/out/_next/static/chunks/2u6jwsqz0uhes.js +0 -24
- package/out/_next/static/chunks/2v4k4vpb2id7m.js +0 -44
- package/out/_next/static/chunks/2xctb084h1lyg.js +0 -329
- package/out/_next/static/chunks/2xgpwzpd6-tdb.js +0 -234
- package/out/_next/static/chunks/3-soz24u9483h.js +0 -15
- package/out/_next/static/chunks/30_ns6urg1dkn.js +0 -41
- package/out/_next/static/chunks/30nxkqu5mcga3.js +0 -1
- package/out/_next/static/chunks/313i1x81q2xj1.js +0 -1
- package/out/_next/static/chunks/31qwglme02a_r.js +0 -807
- package/out/_next/static/chunks/31sk60zzj3bc5.js +0 -17
- package/out/_next/static/chunks/325a7n__tfxy_.js +0 -61
- package/out/_next/static/chunks/33emlry70k-lv.js +0 -2
- package/out/_next/static/chunks/33v8la4hkia7j.js +0 -1
- package/out/_next/static/chunks/34ar-34flu6bu.js +0 -43
- package/out/_next/static/chunks/34z48lfdm9u0l.js +0 -9
- package/out/_next/static/chunks/351jscvbk_wb9.js +0 -13
- package/out/_next/static/chunks/357odtev0t245.js +0 -59
- package/out/_next/static/chunks/360g4b1clnt45.js +0 -142
- package/out/_next/static/chunks/360uyru28azf6.js +0 -20
- package/out/_next/static/chunks/366apf6d0xh2u.js +0 -30
- package/out/_next/static/chunks/36_zbuqpk5cpj.js +0 -14
- package/out/_next/static/chunks/36aqs7u7s-lb1.js +0 -119
- package/out/_next/static/chunks/36beon3q8orx2.js +0 -1
- package/out/_next/static/chunks/37703j9_zf5_h.js +0 -13
- package/out/_next/static/chunks/37rwzuocwsv_k.js +0 -16
- package/out/_next/static/chunks/37w6b3h04uc4c.js +0 -19
- package/out/_next/static/chunks/38ffn8gazqz8_.js +0 -3
- package/out/_next/static/chunks/38xse6_r51yqp.js +0 -234
- package/out/_next/static/chunks/39s8xbnm9f08v.js +0 -14
- package/out/_next/static/chunks/39x-p8r_sl0ng.js +0 -15
- package/out/_next/static/chunks/39zisxvmik0t_.js +0 -34
- package/out/_next/static/chunks/3_97tge0xvvon.js +0 -11
- package/out/_next/static/chunks/3aw-ri7876ngd.js +0 -39
- package/out/_next/static/chunks/3bv7gi3o6-41h.js +0 -11
- package/out/_next/static/chunks/3cdfuacs4_0d-.js +0 -1
- package/out/_next/static/chunks/3cxpx38ycu7u2.js +0 -9
- package/out/_next/static/chunks/3d1ofcqmlbg-5.js +0 -52
- package/out/_next/static/chunks/3e3i3qqkv_my7.js +0 -15
- package/out/_next/static/chunks/3ex71q3pp_ekc.js +0 -247
- package/out/_next/static/chunks/3g1lpkudwo8kg.js +0 -1
- package/out/_next/static/chunks/3h68t22714to5.js +0 -3
- package/out/_next/static/chunks/3jpzhwqgdnobq.js +0 -103
- package/out/_next/static/chunks/3jxuqt_2-j_uc.js +0 -18
- package/out/_next/static/chunks/3kqqv33l7ssn0.js +0 -16
- package/out/_next/static/chunks/3l-9xxd1i1sya.js +0 -1
- package/out/_next/static/chunks/3mancxzz8c7hl.js +0 -51
- package/out/_next/static/chunks/3mq2s9rfy78je.js +0 -27
- package/out/_next/static/chunks/3om1fkw-lrmng.js +0 -1
- package/out/_next/static/chunks/3oynij37wfjb2.js +0 -119
- package/out/_next/static/chunks/3pbyo5kkko3wh.js +0 -1
- package/out/_next/static/chunks/3pjja1obml896.js +0 -15
- package/out/_next/static/chunks/3qaiz-jwi7q2x.js +0 -1
- package/out/_next/static/chunks/3rh3nigvg06yu.js +0 -337
- package/out/_next/static/chunks/3rppjab6j3_k9.js +0 -1
- package/out/_next/static/chunks/3t_3vlnk1ntkb.js +0 -95
- package/out/_next/static/chunks/3tpo2ho54vtth.js +0 -807
- package/out/_next/static/chunks/3tqspv0ggt8j0.js +0 -17
- package/out/_next/static/chunks/3um54w4ca27n_.js +0 -17
- package/out/_next/static/chunks/3vet2a9q9rf2c.js +0 -61
- package/out/_next/static/chunks/3vjgbl76cgrmt.js +0 -1
- package/out/_next/static/chunks/3vz3gqmojh7sx.js +0 -4
- package/out/_next/static/chunks/3w2e5xa061qou.js +0 -9
- package/out/_next/static/chunks/3w9xrlkiztuwi.js +0 -23
- package/out/_next/static/chunks/3x4xfy_av3o0d.js +0 -1
- package/out/_next/static/chunks/3x9k13s5fam4j.js +0 -22
- package/out/_next/static/chunks/3xmtbqm0gddn8.js +0 -3
- package/out/_next/static/chunks/3z5uyt9mc9_fd.js +0 -2
- package/out/_next/static/chunks/3zlwp96x3hoy9.js +0 -16
- package/out/_next/static/chunks/3zr_sumh1g7il.js +0 -22
- package/out/_next/static/chunks/40jl8yfmy6tp6.js +0 -234
- package/out/_next/static/chunks/40xhwnc_48o73.js +0 -297
- package/out/_next/static/chunks/41-iysd7qkyg1.js +0 -16
- package/out/_next/static/chunks/4105a9rejv_p4.js +0 -1
- package/out/_next/static/chunks/41e2wlkp9_pvk.js +0 -28
- package/out/_next/static/chunks/41g7mv3yuhz6k.js +0 -68
- package/out/_next/static/chunks/43jyzccx6x0lw.js +0 -1
- package/out/_next/static/chunks/43vuxh3wdo567.js +0 -10
- package/out/_next/static/chunks/44daaafswok67.css +0 -1
- package/out/_next/static/chunks/452fv7r-tie6t.js +0 -1
- package/out/_next/static/chunks/457j51b69odrw.js +0 -1
- package/out/_next/static/chunks/turbopack-02vysfmmbped5.js +0 -1
- package/out/_next/static/chunks/turbopack-03fj2scz_09ul.js +0 -1
- package/out/_next/static/chunks/turbopack-07wtduwtfqsl_.js +0 -1
- package/out/_next/static/chunks/turbopack-0_zihh5ueb_wj.js +0 -1
- package/out/_next/static/chunks/turbopack-0b8-ww_z1vgvn.js +0 -1
- package/out/_next/static/chunks/turbopack-0beql_u-wc_3e.js +0 -1
- package/out/_next/static/chunks/turbopack-0dxdn-gyy3_qj.js +0 -1
- package/out/_next/static/chunks/turbopack-0hqw81t-42tbj.js +0 -1
- package/out/_next/static/chunks/turbopack-0jsdrr-oq87lm.js +0 -1
- package/out/_next/static/chunks/turbopack-0jxa33q3ikjqg.js +0 -1
- package/out/_next/static/chunks/turbopack-0k9zths9zte_8.js +0 -1
- package/out/_next/static/chunks/turbopack-0pa42wgwsv141.js +0 -1
- package/out/_next/static/chunks/turbopack-0te09_mp07k1x.js +0 -1
- package/out/_next/static/chunks/turbopack-0xsxl45thi-35.js +0 -1
- package/out/_next/static/chunks/turbopack-10-8q-q2zomxa.js +0 -1
- package/out/_next/static/chunks/turbopack-142w-8owzbg7_.js +0 -1
- package/out/_next/static/chunks/turbopack-18tezl3vagvil.js +0 -1
- package/out/_next/static/chunks/turbopack-1_1a-_v7vml72.js +0 -1
- package/out/_next/static/chunks/turbopack-1_k-7s9lmntml.js +0 -1
- package/out/_next/static/chunks/turbopack-1a47di2tss4e-.js +0 -1
- package/out/_next/static/chunks/turbopack-1c60gn7g-uduw.js +0 -1
- package/out/_next/static/chunks/turbopack-1e1yk3pkaodr5.js +0 -1
- package/out/_next/static/chunks/turbopack-1jtk1c9w2axlk.js +0 -1
- package/out/_next/static/chunks/turbopack-1k2ukl9u-7ovo.js +0 -1
- package/out/_next/static/chunks/turbopack-1lkz81ntcp1zv.js +0 -1
- package/out/_next/static/chunks/turbopack-1pkw_r5dvv20d.js +0 -1
- package/out/_next/static/chunks/turbopack-1pu2s2k3szn0s.js +0 -1
- package/out/_next/static/chunks/turbopack-1rxz_6lqtls5b.js +0 -1
- package/out/_next/static/chunks/turbopack-1uf07pugrv1fy.js +0 -1
- package/out/_next/static/chunks/turbopack-1uobzdn2r7ebw.js +0 -1
- package/out/_next/static/chunks/turbopack-1wv610ktbtzka.js +0 -1
- package/out/_next/static/chunks/turbopack-1wz4te1fj20zp.js +0 -1
- package/out/_next/static/chunks/turbopack-1zi2ss8eiiyfx.js +0 -1
- package/out/_next/static/chunks/turbopack-207p7bsc5wea7.js +0 -1
- package/out/_next/static/chunks/turbopack-21zngkzhonfcm.js +0 -1
- package/out/_next/static/chunks/turbopack-23y20ll8n-nwk.js +0 -1
- package/out/_next/static/chunks/turbopack-26wtylwa4_s95.js +0 -1
- package/out/_next/static/chunks/turbopack-27l7xplqpifq6.js +0 -1
- package/out/_next/static/chunks/turbopack-285oyoobdo21x.js +0 -1
- package/out/_next/static/chunks/turbopack-28b0zyhf3uqaq.js +0 -1
- package/out/_next/static/chunks/turbopack-28m_9eg3draop.js +0 -1
- package/out/_next/static/chunks/turbopack-29h9fgcal-fng.js +0 -1
- package/out/_next/static/chunks/turbopack-2a84kh6nmf_78.js +0 -1
- package/out/_next/static/chunks/turbopack-2b73dx1bsdg5f.js +0 -1
- package/out/_next/static/chunks/turbopack-2bslf96g-y1vv.js +0 -1
- package/out/_next/static/chunks/turbopack-2d-2wg8-_f9-v.js +0 -1
- package/out/_next/static/chunks/turbopack-2ez-mfb63qve0.js +0 -1
- package/out/_next/static/chunks/turbopack-2g7u83j1wlswz.js +0 -1
- package/out/_next/static/chunks/turbopack-2m4gns1_64-7_.js +0 -1
- package/out/_next/static/chunks/turbopack-2n4ba44aafc4x.js +0 -1
- package/out/_next/static/chunks/turbopack-2t3zb47_j-ahd.js +0 -1
- package/out/_next/static/chunks/turbopack-2tf6rdek5zvm6.js +0 -1
- package/out/_next/static/chunks/turbopack-2vb0p2htqo4nd.js +0 -1
- package/out/_next/static/chunks/turbopack-30-bi-9_7jd01.js +0 -1
- package/out/_next/static/chunks/turbopack-32pjcar5xpn1o.js +0 -1
- package/out/_next/static/chunks/turbopack-3a3skasosq9-4.js +0 -1
- package/out/_next/static/chunks/turbopack-3d2rk8-5wcgrs.js +0 -1
- package/out/_next/static/chunks/turbopack-3i91g2le3tkne.js +0 -1
- package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +0 -1
- package/out/_next/static/chunks/turbopack-3m47jybfw85nc.js +0 -1
- package/out/_next/static/chunks/turbopack-3yfksvslbm14s.js +0 -1
- package/out/_next/static/chunks/turbopack-414roft8p92hp.js +0 -1
- package/out/_next/static/chunks/turbopack-424slv1lqxh_5.js +0 -1
- package/out/_next/static/chunks/turbopack-444yt6auyioxn.js +0 -1
- package/out/_next/static/z5KrmhOz2mLscINN5EbUf/_buildManifest.js +0 -262
- /package/dist/{chunk-JED6SHHG.js → chunk-PUI5BIKO.js} +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → bg3Z_ZBjStiTvJAHlsPDE}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{z5KrmhOz2mLscINN5EbUf → bg3Z_ZBjStiTvJAHlsPDE}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
IAddWorkMutation,
|
|
5
|
+
IAddWorkMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const AddWorkMutation = gql`
|
|
9
|
+
mutation AddWork(
|
|
10
|
+
$type: WorkType!
|
|
11
|
+
$priority: Int! = 0
|
|
12
|
+
$input: JSON
|
|
13
|
+
$originalWorkId: ID
|
|
14
|
+
$scheduled: Timestamp
|
|
15
|
+
$retries: Int! = 20
|
|
16
|
+
) {
|
|
17
|
+
addWork(
|
|
18
|
+
type: $type
|
|
19
|
+
priority: $priority
|
|
20
|
+
input: $input
|
|
21
|
+
originalWorkId: $originalWorkId
|
|
22
|
+
scheduled: $scheduled
|
|
23
|
+
retries: $retries
|
|
24
|
+
) {
|
|
25
|
+
_id
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
const useAddWork = () => {
|
|
31
|
+
const [addWorkMutation] = useMutation<
|
|
32
|
+
IAddWorkMutation,
|
|
33
|
+
IAddWorkMutationVariables
|
|
34
|
+
>(AddWorkMutation);
|
|
35
|
+
|
|
36
|
+
const addWork = async ({
|
|
37
|
+
type,
|
|
38
|
+
priority,
|
|
39
|
+
input,
|
|
40
|
+
originalWorkId,
|
|
41
|
+
scheduled = null,
|
|
42
|
+
retries,
|
|
43
|
+
}: IAddWorkMutationVariables) => {
|
|
44
|
+
return addWorkMutation({
|
|
45
|
+
variables: {
|
|
46
|
+
type,
|
|
47
|
+
priority,
|
|
48
|
+
input,
|
|
49
|
+
originalWorkId,
|
|
50
|
+
scheduled,
|
|
51
|
+
retries,
|
|
52
|
+
},
|
|
53
|
+
refetchQueries: ['WorkQueue'],
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
addWork,
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default useAddWork;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
IAllocateWorkMutation,
|
|
5
|
+
IAllocateWorkMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const AllocateWorkMutation = gql`
|
|
9
|
+
mutation AllocateWork($types: [WorkType], $worker: String) {
|
|
10
|
+
allocateWork(types: $types, worker: $worker) {
|
|
11
|
+
_id
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
const useAllocateWork = () => {
|
|
17
|
+
const [allocateWorkMutation] = useMutation<
|
|
18
|
+
IAllocateWorkMutation,
|
|
19
|
+
IAllocateWorkMutationVariables
|
|
20
|
+
>(AllocateWorkMutation);
|
|
21
|
+
|
|
22
|
+
const allocateWork = async ({
|
|
23
|
+
types,
|
|
24
|
+
worker,
|
|
25
|
+
}: IAllocateWorkMutationVariables) => {
|
|
26
|
+
return allocateWorkMutation({
|
|
27
|
+
variables: {
|
|
28
|
+
types,
|
|
29
|
+
worker,
|
|
30
|
+
},
|
|
31
|
+
refetchQueries: ['WorkQueue'],
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
allocateWork,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default useAllocateWork;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { ISortOptionInput, IWorkStatus, IWorkType } from '../../../gql/types';
|
|
3
|
+
import useWorkQueue from './useWorkQueue';
|
|
4
|
+
|
|
5
|
+
interface ExportFileInfo {
|
|
6
|
+
url: string;
|
|
7
|
+
expires: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface ExportedWork {
|
|
11
|
+
_id: string;
|
|
12
|
+
type: IWorkType;
|
|
13
|
+
status: IWorkStatus;
|
|
14
|
+
input: { type: string };
|
|
15
|
+
result: { files: Record<string, ExportFileInfo | null> };
|
|
16
|
+
finished: Date;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface ActiveFile {
|
|
20
|
+
name: string;
|
|
21
|
+
url: string;
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface ExportGroup {
|
|
26
|
+
id: string;
|
|
27
|
+
type: string;
|
|
28
|
+
finished: string;
|
|
29
|
+
files: ActiveFile[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface RecentExportsResult {
|
|
33
|
+
count: number;
|
|
34
|
+
exports: ExportGroup[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type FormatDateTime = (
|
|
38
|
+
date: unknown,
|
|
39
|
+
options?: Intl.DateTimeFormatOptions,
|
|
40
|
+
) => string;
|
|
41
|
+
|
|
42
|
+
// The Admin UI passes its locale-aware formatter; keep the hook free of Admin UI internals so
|
|
43
|
+
// it can be shipped in @unchainedshop/client.
|
|
44
|
+
const defaultFormatDateTime: FormatDateTime = (date, options) =>
|
|
45
|
+
new Intl.DateTimeFormat(undefined, options).format(
|
|
46
|
+
new Date(date as string | number | Date),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const getActiveFilesAndCount = (
|
|
50
|
+
workQueue: ExportedWork[],
|
|
51
|
+
formatDateTime: FormatDateTime,
|
|
52
|
+
): RecentExportsResult => {
|
|
53
|
+
if (!workQueue?.length) {
|
|
54
|
+
return { exports: [], count: 0 };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const now = Date.now();
|
|
58
|
+
const formatTimestamp = (timestamp: number | string | Date) =>
|
|
59
|
+
formatDateTime(timestamp, {
|
|
60
|
+
dateStyle: 'medium',
|
|
61
|
+
timeStyle: 'short',
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const groupedData = workQueue
|
|
65
|
+
.map((work): ExportGroup | null => {
|
|
66
|
+
const finishedTime = new Date(work.finished).getTime();
|
|
67
|
+
|
|
68
|
+
const activeFiles = Object.entries(work.result?.files || {})
|
|
69
|
+
.filter(([, file]) => {
|
|
70
|
+
if (!file?.url) return false;
|
|
71
|
+
if (!file?.expires) return true;
|
|
72
|
+
return file.expires > now;
|
|
73
|
+
})
|
|
74
|
+
.map(([key, file]) => ({
|
|
75
|
+
name: key.toUpperCase(),
|
|
76
|
+
url: file!.url,
|
|
77
|
+
expiresAt: formatTimestamp(finishedTime + file!.expires),
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
if (activeFiles.length === 0) return null;
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
id: work._id,
|
|
84
|
+
type: work.input?.type,
|
|
85
|
+
finished: formatTimestamp(work.finished),
|
|
86
|
+
files: activeFiles,
|
|
87
|
+
};
|
|
88
|
+
})
|
|
89
|
+
.filter((item): item is ExportGroup => item !== null);
|
|
90
|
+
|
|
91
|
+
const totalFiles = groupedData.reduce(
|
|
92
|
+
(acc, work) => acc + work.files.length,
|
|
93
|
+
0,
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
return { count: totalFiles, exports: groupedData };
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
interface UseRecentExportsParams {
|
|
100
|
+
sortOptions?: ISortOptionInput[];
|
|
101
|
+
queryString?: string | null;
|
|
102
|
+
skip?: boolean;
|
|
103
|
+
formatDateTime?: FormatDateTime;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const useRecentExports = ({
|
|
107
|
+
queryString = null,
|
|
108
|
+
sortOptions,
|
|
109
|
+
skip = false,
|
|
110
|
+
formatDateTime = defaultFormatDateTime,
|
|
111
|
+
}: UseRecentExportsParams = {}): RecentExportsResult => {
|
|
112
|
+
const twentyFourHoursAgo = useMemo(
|
|
113
|
+
() => new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString(),
|
|
114
|
+
[],
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
const { workQueue } = useWorkQueue({
|
|
118
|
+
types: [IWorkType.BulkExport],
|
|
119
|
+
queryString,
|
|
120
|
+
created: { start: twentyFourHoursAgo },
|
|
121
|
+
status: [IWorkStatus.Success],
|
|
122
|
+
pollInterval: 60000,
|
|
123
|
+
skip,
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
return getActiveFilesAndCount(workQueue as ExportedWork[], formatDateTime);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export default useRecentExports;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useQuery } from '@apollo/client/react';
|
|
3
|
+
|
|
4
|
+
const ActiveWorkTypesQuery = gql`
|
|
5
|
+
query ActiveWorkTypes {
|
|
6
|
+
activeWorkTypes
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
const useRegisteredWorkTypes = () => {
|
|
11
|
+
const { data, loading, error } = useQuery<{ activeWorkTypes: string[] }>(
|
|
12
|
+
ActiveWorkTypesQuery,
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const workTypes = (data?.activeWorkTypes || []).map((value: string) => ({
|
|
16
|
+
value,
|
|
17
|
+
label: value,
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
workTypes,
|
|
22
|
+
loading,
|
|
23
|
+
error,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default useRegisteredWorkTypes;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useMutation } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
IRemoveWorkMutation,
|
|
5
|
+
IRemoveWorkMutationVariables,
|
|
6
|
+
} from '../../../gql/types';
|
|
7
|
+
|
|
8
|
+
const RemoveWorkMutation = gql`
|
|
9
|
+
mutation RemoveWork($workId: ID!) {
|
|
10
|
+
removeWork(workId: $workId) {
|
|
11
|
+
_id
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
const useRemoveWork = () => {
|
|
17
|
+
const [removeWorkMutation] = useMutation<
|
|
18
|
+
IRemoveWorkMutation,
|
|
19
|
+
IRemoveWorkMutationVariables
|
|
20
|
+
>(RemoveWorkMutation);
|
|
21
|
+
|
|
22
|
+
const removeWork = async ({ workId }: IRemoveWorkMutationVariables) => {
|
|
23
|
+
return removeWorkMutation({
|
|
24
|
+
variables: {
|
|
25
|
+
workId,
|
|
26
|
+
},
|
|
27
|
+
refetchQueries: ['WorkQueue'],
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
removeWork,
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default useRemoveWork;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useQuery } from '@apollo/client/react';
|
|
3
|
+
import { IWorkQuery, IWorkQueryVariables } from '../../../gql/types';
|
|
4
|
+
import useUnchainedContext from '../../UnchainedContext/useUnchainedContext';
|
|
5
|
+
import WorkFragment from '../fragments/WorkFragment';
|
|
6
|
+
|
|
7
|
+
export const GetWorkQuery = (inlineFragment = '') => gql`
|
|
8
|
+
query Work($workId: ID!) {
|
|
9
|
+
work(workId: $workId) {
|
|
10
|
+
...WorkFragment
|
|
11
|
+
${inlineFragment}
|
|
12
|
+
error
|
|
13
|
+
priority
|
|
14
|
+
worker
|
|
15
|
+
timeout
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
${WorkFragment}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
const useWork = ({
|
|
22
|
+
workId = null,
|
|
23
|
+
...options
|
|
24
|
+
}: IWorkQueryVariables & { pollInterval?: number }) => {
|
|
25
|
+
const { customProperties } = useUnchainedContext();
|
|
26
|
+
const { data, loading, error, previousData } = useQuery<
|
|
27
|
+
IWorkQuery,
|
|
28
|
+
IWorkQueryVariables
|
|
29
|
+
>(GetWorkQuery(customProperties?.Work), {
|
|
30
|
+
skip: !workId,
|
|
31
|
+
variables: { workId },
|
|
32
|
+
...options,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
work: data?.work || previousData?.work,
|
|
37
|
+
loading,
|
|
38
|
+
error,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default useWork;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
import { useQuery } from '@apollo/client/react';
|
|
3
|
+
import {
|
|
4
|
+
ISortDirection,
|
|
5
|
+
IWorkQueueQuery,
|
|
6
|
+
IWorkQueueQueryVariables,
|
|
7
|
+
} from '../../../gql/types';
|
|
8
|
+
import WorkFragment from '../fragments/WorkFragment';
|
|
9
|
+
|
|
10
|
+
const WorkQueueQuery = gql`
|
|
11
|
+
query WorkQueue(
|
|
12
|
+
$queryString: String
|
|
13
|
+
$offset: Int
|
|
14
|
+
$limit: Int
|
|
15
|
+
$status: [WorkStatus!]
|
|
16
|
+
$types: [WorkType!]
|
|
17
|
+
$created: DateFilterInput
|
|
18
|
+
$sort: [SortOptionInput!]
|
|
19
|
+
) {
|
|
20
|
+
workQueue(
|
|
21
|
+
queryString: $queryString
|
|
22
|
+
offset: $offset
|
|
23
|
+
limit: $limit
|
|
24
|
+
status: $status
|
|
25
|
+
types: $types
|
|
26
|
+
created: $created
|
|
27
|
+
sort: $sort
|
|
28
|
+
) {
|
|
29
|
+
...WorkFragment
|
|
30
|
+
}
|
|
31
|
+
activeWorkTypes
|
|
32
|
+
workQueueCount(
|
|
33
|
+
status: $status
|
|
34
|
+
types: $types
|
|
35
|
+
created: $created
|
|
36
|
+
queryString: $queryString
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
${WorkFragment}
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const useWorkQueue = ({
|
|
43
|
+
queryString = '',
|
|
44
|
+
|
|
45
|
+
limit = 50,
|
|
46
|
+
status = undefined,
|
|
47
|
+
types = undefined,
|
|
48
|
+
created = null,
|
|
49
|
+
sort: sortOptions = [],
|
|
50
|
+
offset = 0,
|
|
51
|
+
pollInterval = 1000,
|
|
52
|
+
skip = false,
|
|
53
|
+
}: IWorkQueueQueryVariables & { pollInterval?: number; skip?: boolean }) => {
|
|
54
|
+
const { data, loading, error, fetchMore, previousData } = useQuery<
|
|
55
|
+
IWorkQueueQuery,
|
|
56
|
+
IWorkQueueQueryVariables
|
|
57
|
+
>(WorkQueueQuery, {
|
|
58
|
+
fetchPolicy: 'cache-and-network',
|
|
59
|
+
pollInterval: skip ? 0 : pollInterval,
|
|
60
|
+
skip,
|
|
61
|
+
variables: {
|
|
62
|
+
queryString,
|
|
63
|
+
offset,
|
|
64
|
+
limit,
|
|
65
|
+
status,
|
|
66
|
+
types,
|
|
67
|
+
created: Object.fromEntries(
|
|
68
|
+
Object.entries(created || {})
|
|
69
|
+
.filter(([, value]) => value)
|
|
70
|
+
.map(([key, value]) => [key, value]),
|
|
71
|
+
),
|
|
72
|
+
sort: (sortOptions || []).length
|
|
73
|
+
? sortOptions
|
|
74
|
+
: [{ key: 'scheduled', value: ISortDirection.Desc }],
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
const workQueue = data?.workQueue || previousData?.workQueue || [];
|
|
78
|
+
const activeWorkTypes = data?.activeWorkTypes || [];
|
|
79
|
+
const total = data?.workQueueCount || 0;
|
|
80
|
+
const hasMore = workQueue?.length < total;
|
|
81
|
+
|
|
82
|
+
const loadMore = () => {
|
|
83
|
+
fetchMore({
|
|
84
|
+
variables: { offset: workQueue.length },
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
return {
|
|
88
|
+
workQueue,
|
|
89
|
+
total,
|
|
90
|
+
activeWorkTypes,
|
|
91
|
+
hasMore,
|
|
92
|
+
loading,
|
|
93
|
+
error,
|
|
94
|
+
loadMore,
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export default useWorkQueue;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as useActiveWorkTypes } from './hooks/useActiveWorkTypes';
|
|
1
2
|
export { default as useAddWork } from './hooks/useAddWork';
|
|
2
3
|
export { default as useAllocateWork } from './hooks/useAllocateWork';
|
|
3
4
|
export { default as useRecentExports } from './hooks/useRecentExports';
|
package/src/sdk/README.md
CHANGED
|
@@ -44,10 +44,10 @@ my-plugin/
|
|
|
44
44
|
"scripts": { "build": "tsup", "build:watch": "tsup --watch" },
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/react": "^19.0.0",
|
|
47
|
-
"@unchainedshop/admin-ui": "^5.0.0-alpha.
|
|
47
|
+
"@unchainedshop/admin-ui": "^5.0.0-alpha.12",
|
|
48
48
|
"esbuild": "^0.25.0",
|
|
49
49
|
"react": "^19.0.0",
|
|
50
|
-
"tsup": "^
|
|
50
|
+
"tsup": "^9.0.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
```
|
|
@@ -167,7 +167,16 @@ Slot types: `entities` (list/detail/create pages under `/ext/<path>`),
|
|
|
167
167
|
hidden without it.
|
|
168
168
|
- `sortOrder` — position in the sidebar. Built-in items use 0–130 in steps of
|
|
169
169
|
10 (Orders 30, Products 40, Users 70, System settings 110, ...). Items
|
|
170
|
-
without a `sortOrder` keep their relative order after ordered ones.
|
|
170
|
+
without a `sortOrder` keep their relative order after ordered ones. Inside a
|
|
171
|
+
navigation group, the `sortOrder` of the entities and pages orders the
|
|
172
|
+
submenu.
|
|
173
|
+
|
|
174
|
+
Plugins with the same `navigation.label` share one submenu: the first plugin's
|
|
175
|
+
icon is used, the group takes the lowest `sortOrder`, and a group
|
|
176
|
+
`requiredRole` only applies if every plugin of the group sets the same one.
|
|
177
|
+
Each page still comes from the bundle of the plugin that declares it, so a
|
|
178
|
+
project can add its own pages to the submenu of a package plugin, for example
|
|
179
|
+
`navigation: ticketingNavigation` from `@unchainedshop/ticketing/admin-plugin`.
|
|
171
180
|
|
|
172
181
|
At startup the engine validates the manifest against the bundle and logs a
|
|
173
182
|
warning if a referenced component is not exported, if two plugins share a
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { test } from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { buildPluginNavigation } from '../modules/plugins/pluginNavigation.ts';
|
|
4
|
+
|
|
5
|
+
const icon = (name) => name;
|
|
6
|
+
|
|
7
|
+
test('plugins with the same navigation label share one group', () => {
|
|
8
|
+
const nav = buildPluginNavigation(
|
|
9
|
+
[
|
|
10
|
+
{
|
|
11
|
+
name: 'ticketing',
|
|
12
|
+
navigation: { label: 'Ticketing', icon: 'ticket', sortOrder: 90 },
|
|
13
|
+
slots: {
|
|
14
|
+
entities: [{ path: '/ticketing', label: 'Events', sortOrder: 90 }],
|
|
15
|
+
pages: [{ path: '/gate-control', label: 'Gate Control', sortOrder: 92 }],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'shop',
|
|
20
|
+
navigation: { label: 'Ticketing', icon: 'tag', sortOrder: 95 },
|
|
21
|
+
slots: {
|
|
22
|
+
entities: [{ path: '/promo-codes', label: 'Promo codes', sortOrder: 91 }],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
icon,
|
|
27
|
+
);
|
|
28
|
+
assert.equal(nav.length, 1);
|
|
29
|
+
assert.equal(nav[0].name, 'Ticketing');
|
|
30
|
+
assert.equal(nav[0].icon, 'ticket');
|
|
31
|
+
assert.equal(nav[0]._sortOrder, 90);
|
|
32
|
+
assert.deepEqual(
|
|
33
|
+
nav[0].children.map(({ href }) => href),
|
|
34
|
+
['/ext/ticketing', '/ext/promo-codes', '/ext/gate-control'],
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test('a group role applies only if every plugin of the group sets it', () => {
|
|
39
|
+
const manifest = (requiredRole) => ({
|
|
40
|
+
navigation: { label: 'Group', requiredRole },
|
|
41
|
+
slots: { pages: [{ path: `/${requiredRole}`, label: String(requiredRole) }] },
|
|
42
|
+
});
|
|
43
|
+
assert.equal(buildPluginNavigation([manifest('a'), manifest('a')], icon)[0].requiredRole, 'a');
|
|
44
|
+
assert.equal(buildPluginNavigation([manifest('a'), manifest('b')], icon)[0].requiredRole, undefined);
|
|
45
|
+
assert.equal(buildPluginNavigation([manifest('a'), manifest()], icon)[0].requiredRole, undefined);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('plugins without navigation add their entries at the top level', () => {
|
|
49
|
+
const nav = buildPluginNavigation(
|
|
50
|
+
[
|
|
51
|
+
{ slots: { pages: [{ path: 'reports', label: 'Reports', sortOrder: 5 }] } },
|
|
52
|
+
{ navigation: { label: 'Empty' }, slots: {} },
|
|
53
|
+
],
|
|
54
|
+
icon,
|
|
55
|
+
);
|
|
56
|
+
assert.deepEqual(nav, [
|
|
57
|
+
{ name: 'Reports', icon: undefined, href: '/ext/reports', requiredRole: undefined, _sortOrder: 5 },
|
|
58
|
+
]);
|
|
59
|
+
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86610,e=>{"use strict";var t=e.i(59080);let r=async(e,r=null)=>{await e.mutate({mutation:t.gql`
|
|
2
|
-
mutation Logout {
|
|
3
|
-
logout {
|
|
4
|
-
success
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
`});try{await e.resetStore()}catch(e){if(e?.name!=="AbortError")throw e}r?r.push("/log-in"):window.location.href="/log-in"};e.s(["default",0,r])},42763,e=>{"use strict";let t;var r=e.i(91788),n=e.i(57965),o=e.i(19134),i=e.i(76362),a=e.i(62979),s=e.i(71596),u=e.i(78538),c=a;class l extends c.ApolloLink{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new u.Observable(o=>{let i=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{i||r(t).subscribe(o)}).catch(o.error.bind(o)),()=>{i=!0}})})}}var f=e.i(22422),d=e.i(27764),p=a;class y extends p.ApolloLink{constructor(e){super((t,r)=>new u.Observable(n=>{let o,i,a;try{o=r(t).subscribe({next:o=>{let s=t.client.queryManager.incrementalHandler,u=s.isIncrementalResult(o)?s.extractErrors(o):o.errors;u?a=e({error:new f.CombinedGraphQLErrors(o,u),result:o,operation:t,forward:r}):(0,d.graphQLResultHasProtocolErrors)(o)&&(a=e({error:o.extensions[d.PROTOCOL_ERRORS_SYMBOL],result:o,operation:t,forward:r})),(i=a?.subscribe(n))||n.next(o)},error:o=>{a=e({operation:t,error:(0,d.toErrorLike)(o),forward:r}),(i=a?.subscribe(n))||n.error(o)},complete:()=>{a||n.complete()}})}catch(o){e({error:(0,d.toErrorLike)(o),operation:t,forward:r}),n.error(o)}return()=>{o&&o.unsubscribe(),i&&i.unsubscribe()}}))}}var h=e.i(84936),_=e.i(31221);function b(e=!1){return{keyArgs:e,merge(e,t,{args:r}){let n=e?e.slice(0):[];if(t)if(r){let{offset:e=0}=r;for(let r=0;r<t.length;++r)n[e+r]=t[r]}else n.push(...t);return n}}}e.i(89280);let v={...{UserEmail:{merge:!0},Query:{fields:{assortments:{...b(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...b(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:b()}},user:{keyArgs:["userId"],fields:{reviews:b()}},countries:{...b(["includeInactive","queryString","sort","limit"])},currencies:{...b(["includeInactive","queryString","sort","limit"])},enrollments:{...b(["queryString","status","sort","limit"])},quotations:{...b(["queryString","sort","limit"])},workQueue:{...b(["status","types","created","queryString","limit"])},languages:{...b(["includeInactive","queryString","sort","limit"])},events:{...b(["types","queryString","sort","limit","created"])},users:{...b(["includeGuests","queryString","emailVerified","lastLogin","limit","tags"])},filters:{...b(["queryString","includeInactive","sort","limit"])},orders:{...b(["includeCarts","queryString","sort","limit","dateRange","status","deliveryProviderIds","paymentProviderIds"])}}}},keyFields:e=>e?._id&&e?.__typename?`${e?.__typename}:${e?._id}`:e?.id&&e?.__typename?`${e.__typename}:${e.id}`:null},g=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"];e.s(["useApollo",0,function(e,{endpoint:u=null,...c}={}){let d=e?.__APOLLO_STATE__;return(0,r.useMemo)(()=>((e=null,{headers:r={},locale:u=""}={})=>{let c=t??(({headers:e={},locale:t})=>{let r=new l(r=>{var n;return n={...e,...r.headers},{headers:{...Object.fromEntries(Object.entries(n).filter(([e])=>g.includes(e?.toLowerCase()))),"accept-language":n?.forceLocale||t}}}),n=`${window.location.origin}/graphql`,o=new s.HttpLink({uri:n,credentials:"include",includeExtensions:!0}),u=new y(({error:e,operation:t})=>{f.CombinedGraphQLErrors.is(e)&&e.errors.forEach(({message:e,locations:r,path:n,extensions:o})=>{console.error(`[GraphQL error]: Message: ${e}, Location: ${JSON.stringify(r)}, Path: ${n}, Extensions: ${JSON.stringify(o)}, Operation: ${t.operationName}`)}),e&&console.error(`[Network error]: ${e.message}, ${e.name} Operation: ${t.operationName}`)}),c=new h.InMemoryCache({typePolicies:v,possibleTypes:_.default});return new i.ApolloClient({defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"}},ssrMode:!1,link:a.ApolloLink.from([u,r,o].filter(Boolean)),cache:c,devtools:{enabled:!1}})})({headers:r,locale:u});if(e){let t=c.extract(),r=(0,n.default)(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!(0,o.default)(e,t)))]});c.cache.restore(r)}return t=c,c})(d,{...c}),[d,u])}],42763)},31221,(e,t,r)=>{t.exports={DeliveryProvider:["DeliveryProviderPickUp","DeliveryProviderShipping"],Product:["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],ConfigurableOrBundleProduct:["BundleProduct","ConfigurableProduct"],OrderDiscountable:["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],OrderDelivery:["OrderDeliveryPickUp","OrderDeliveryShipping"],OrderPayment:["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}},79354,e=>{"use strict";var t=e.i(91398),r=e.i(69322),n=e.i(3828),o=e.i(51870),i=e.i(50595),a=e.i(25327),s=e.i(62274),u=e.i(23745),c=e.i(6607),l=e.i(15971),f=e.i(28401),d=e.i(42763),p=e.i(86610);e.i(51523);var y=e.i(19518),h=e.i(72419);e.s(["default",0,()=>{let{formatMessage:e}=(0,r.useIntl)(),_=(0,n.useRouter)(),{currentUser:b,extendedData:v}=(0,o.default)(),{deleteUser:g}=(0,u.default)(),{setModal:m}=(0,c.default)(),j=(0,d.useApollo)({}),w=b?.viewerAllowedActions?.includes(y.IRoleAction.RemoveUser),O=async()=>{await m((0,t.jsx)(l.default,{onCancelClick:async()=>m(""),message:e({id:"delete_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{m("");try{await g(),f.toast.success(e({id:"account_deleted",defaultMessage:"Account deleted successfully"})),await (0,p.default)(j,_)}catch(t){f.toast.error((0,h.default)(t,e))}},okText:e({id:"delete_account",defaultMessage:"Delete account"})}))};return(0,t.jsxs)("div",{className:" max-w-6xl",children:[(0,t.jsx)(i.default,{}),(0,t.jsx)(a.default,{headerText:e({id:"account",defaultMessage:"Account"}),onDelete:w?O:null}),(0,t.jsx)(s.default,{user:b,extendedData:v})]})}])},51585,(e,t,r)=>{let n="/account";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(79354)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},57965,(e,t,r)=>{"use strict";var n=function(e){var t,r,n;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==o)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function a(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function s(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=i;var o,l,f=Array.isArray(t);return f!==Array.isArray(e)?i(t,r):f?r.arrayMerge(e,t,r):(l={},(o=r).isMergeableObject(e)&&s(e).forEach(function(t){l[t]=i(e[t],o)}),s(t).forEach(function(r){u(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))||(u(e,r)&&o.isMergeableObject(t[r])?l[r]=(function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c})(r,o)(e[r],t[r],o):l[r]=i(t[r],o))}),l)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return c(e,r,t)},{})},t.exports=c},19134,(e,t,r)=>{var n,o,i,a="__lodash_hash_undefined__",s="[object Arguments]",u="[object Array]",c="[object Boolean]",l="[object Date]",f="[object Error]",d="[object Function]",p="[object Map]",y="[object Number]",h="[object Object]",_="[object Promise]",b="[object RegExp]",v="[object Set]",g="[object String]",m="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",O=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[s]=P[u]=P[j]=P[c]=P[w]=P[l]=P[f]=P[d]=P[p]=P[y]=P[h]=P[b]=P[v]=P[g]=P[m]=!1;var x=e.g&&e.g.Object===Object&&e.g,S="object"==typeof self&&self&&self.Object===Object&&self,k=x||S||Function("return this")(),E=r&&!r.nodeType&&r,z=E&&t&&!t.nodeType&&t,L=z&&z.exports===E,M=L&&x.process,I=function(){try{return M&&M.binding&&M.binding("util")}catch(e){}}(),$=I&&I.isTypedArray;function C(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var T=Array.prototype,q=Function.prototype,R=Object.prototype,U=k["__core-js_shared__"],B=q.toString,N=R.hasOwnProperty,F=(n=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",G=R.toString,Q=RegExp("^"+B.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=L?k.Buffer:void 0,V=k.Symbol,X=k.Uint8Array,J=R.propertyIsEnumerable,K=T.splice,W=V?V.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=H?H.isBuffer:void 0,ee=(o=Object.keys,i=Object,function(e){return o(i(e))}),et=eP(k,"DataView"),er=eP(k,"Map"),en=eP(k,"Promise"),eo=eP(k,"Set"),ei=eP(k,"WeakMap"),ea=eP(Object,"create"),es=ek(et),eu=ek(er),ec=ek(en),el=ek(eo),ef=ek(ei),ed=V?V.prototype:void 0,ep=ed?ed.valueOf:void 0;function ey(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function e_(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eb(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new e_;++t<r;)this.add(e[t])}function ev(e){var t=this.__data__=new eh(e);this.size=t.size}function eg(e,t){for(var r=e.length;r--;)if(eE(e[r][0],t))return r;return -1}function em(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=N.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(e){}var o=G.call(e);return n&&(t?e[W]=r:delete e[W]),o}(e):(t=e,G.call(t))}function ej(e){return eD(e)&&em(e)==s}function ew(e,t,r,n,o,i){var a=1&r,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&r?new eb:void 0;for(i.set(e,t),i.set(t,e);++l<s;){var p=e[l],y=t[l];if(n)var h=a?n(y,p,l,t,e,i):n(p,y,l,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(d){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!d.has(t)&&(p===e||o(p,e,r,n,i)))return d.push(t)})){f=!1;break}}else if(!(p===y||o(p,y,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function eO(e){var t;return t=eq(e),eL(e)?t:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(t,ex(e))}function eA(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function eP(e,t){var r,n=null==e?void 0:e[t];return!(!eC(n)||(r=n,F&&F in r))&&(eI(n)?Q:O).test(ek(n))?n:void 0}ey.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ey.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ey.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return N.call(t,e)?t[e]:void 0},ey.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:N.call(t,e)},ey.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ea&&void 0===t?a:t,this},eh.prototype.clear=function(){this.__data__=[],this.size=0},eh.prototype.delete=function(e){var t=this.__data__,r=eg(t,e);return!(r<0)&&(r==t.length-1?t.pop():K.call(t,r,1),--this.size,!0)},eh.prototype.get=function(e){var t=this.__data__,r=eg(t,e);return r<0?void 0:t[r][1]},eh.prototype.has=function(e){return eg(this.__data__,e)>-1},eh.prototype.set=function(e,t){var r=this.__data__,n=eg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},e_.prototype.clear=function(){this.size=0,this.__data__={hash:new ey,map:new(er||eh),string:new ey}},e_.prototype.delete=function(e){var t=eA(this,e).delete(e);return this.size-=!!t,t},e_.prototype.get=function(e){return eA(this,e).get(e)},e_.prototype.has=function(e){return eA(this,e).has(e)},e_.prototype.set=function(e,t){var r=eA(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eb.prototype.add=eb.prototype.push=function(e){return this.__data__.set(e,a),this},eb.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.clear=function(){this.__data__=new eh,this.size=0},ev.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ev.prototype.get=function(e){return this.__data__.get(e)},ev.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eh){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new e_(n)}return r.set(e,t),this.size=r.size,this};var ex=Y?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(Y(e=Object(e)),function(t){return J.call(e,t)})}:function(){return[]},eS=em;function ek(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eE(e,t){return e===t||e!=e&&t!=t}(et&&eS(new et(new ArrayBuffer(1)))!=w||er&&eS(new er)!=p||en&&eS(en.resolve())!=_||eo&&eS(new eo)!=v||ei&&eS(new ei)!=m)&&(eS=function(e){var t=em(e),r=t==h?e.constructor:void 0,n=r?ek(r):"";if(n)switch(n){case es:return w;case eu:return p;case ec:return _;case el:return v;case ef:return m}return t});var ez=ej(function(){return arguments}())?ej:function(e){return eD(e)&&N.call(e,"callee")&&!J.call(e,"callee")},eL=Array.isArray,eM=Z||function(){return!1};function eI(e){if(!eC(e))return!1;var t=em(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function e$(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eC(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eD(e){return null!=e&&"object"==typeof e}var eT=$?function(e){return $(e)}:function(e){return eD(e)&&e$(e.length)&&!!P[em(e)]};function eq(e){return null!=e&&e$(e.length)&&!eI(e)?function(e){var t,r,n=eL(e),o=!n&&ez(e),i=!n&&!o&&eM(e),a=!n&&!o&&!i&&eT(e),s=n||o||i||a,u=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e){N.call(e,l)&&!(s&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||(t=l,(r=null==(r=c)?0x1fffffffffffff:r)&&("number"==typeof t||A.test(t))&&t>-1&&t%1==0&&t<r)))&&u.push(l)}return u}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||R))return ee(e);var t,r,n=[];for(var o in Object(e))N.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e)}t.exports=function(e,t){return function e(t,r,n,o,i){return t===r||(null!=t&&null!=r&&(eD(t)||eD(r))?function(e,t,r,n,o,i){var a=eL(e),d=eL(t),_=a?u:eS(e),m=d?u:eS(t);_=_==s?h:_,m=m==s?h:m;var O=_==h,A=m==h,P=_==m;if(P&&eM(e)){if(!eM(t))return!1;a=!0,O=!1}if(P&&!O)return i||(i=new ev),a||eT(e)?ew(e,t,r,n,o,i):function(e,t,r,n,o,i,a){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case j:if(e.byteLength!=t.byteLength||!i(new X(e),new X(t)))break;return!0;case c:case l:case y:return eE(+e,+t);case f:return e.name==t.name&&e.message==t.message;case b:case g:return e==t+"";case p:var s=C;case v:var u=1&n;if(s||(s=D),e.size!=t.size&&!u)break;var d=a.get(e);if(d)return d==t;n|=2,a.set(e,t);var h=ew(s(e),s(t),n,o,i,a);return a.delete(e),h;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,_,r,n,o,i);if(!(1&r)){var x=O&&N.call(e,"__wrapped__"),S=A&&N.call(t,"__wrapped__");if(x||S){var k=x?e.value():e,E=S?t.value():t;return i||(i=new ev),o(k,E,r,n,i)}}return!!P&&(i||(i=new ev),function(e,t,r,n,o,i){var a=1&r,s=eO(e),u=s.length;if(u!=eO(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:N.call(t,l)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<u;){var y=e[l=s[c]],h=t[l];if(n)var _=a?n(h,y,l,t,e,i):n(y,h,l,e,t,i);if(!(void 0===_?y===h||o(y,h,r,n,i):_)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var b=e.constructor,v=t.constructor;b!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v)&&(d=!1)}return i.delete(e),i.delete(t),d}(e,t,r,n,o,i))}(t,r,n,o,e,i):t!=t&&r!=r)}(e,t)}}]);
|