@medusajs/dashboard 2.10.4-snapshot-20250929154835 → 2.10.4-snapshot-20250929174531
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-campaign-promotions-TFNUPW6A.mjs → add-campaign-promotions-3BB3BLFD.mjs} +3 -3
- package/dist/{api-key-management-detail-6URA7AKM.mjs → api-key-management-detail-ZQLQKGYF.mjs} +2 -1
- package/dist/app.js +4 -71
- package/dist/app.mjs +4 -3
- package/dist/{campaign-detail-6TPA4ERV.mjs → campaign-detail-LASOFZ2O.mjs} +5 -4
- package/dist/{categories-metadata-LISTDI2Y.mjs → categories-metadata-HUIY6V4F.mjs} +2 -1
- package/dist/{category-detail-K3GNLMQZ.mjs → category-detail-ZJJBYVFX.mjs} +3 -2
- package/dist/{category-products-EGGFU5IA.mjs → category-products-7N4TITQ4.mjs} +3 -2
- package/dist/chunk-5U3FFMC7.mjs +84 -0
- package/dist/{chunk-4KGC42TY.mjs → chunk-5WMJLYEP.mjs} +1 -1
- package/dist/{chunk-QPBS3GN3.mjs → chunk-7DFTLGA5.mjs} +100 -100
- package/dist/{chunk-S34JJVBQ.mjs → chunk-7JJTWGHU.mjs} +0 -7
- package/dist/{chunk-VLNUSUNX.mjs → chunk-CXTAH75K.mjs} +1 -1
- package/dist/{chunk-H4ASVW4A.mjs → chunk-DKOCYXB5.mjs} +0 -4
- package/dist/{chunk-6IQV6XRM.mjs → chunk-IP2QPPWC.mjs} +1 -1
- package/dist/{chunk-FLPX3C4H.mjs → chunk-NFQXNOP7.mjs} +1 -1
- package/dist/{chunk-LFSI4NJU.mjs → chunk-PAG2HG6I.mjs} +22 -94
- package/dist/{chunk-4W6YIY7C.mjs → chunk-QPLPGRYF.mjs} +1 -1
- package/dist/{chunk-AHHACBNF.mjs → chunk-U4R5MBF2.mjs} +1 -1
- package/dist/{chunk-ZEED3CMI.mjs → chunk-VWQYN2RW.mjs} +1 -1
- package/dist/{chunk-WKSE3SCT.mjs → chunk-XR7I5HGZ.mjs} +1 -1
- package/dist/{collection-add-products-3FN6PUXN.mjs → collection-add-products-WKMNYPLS.mjs} +3 -2
- package/dist/{collection-detail-3XJA3YAW.mjs → collection-detail-NONKXELG.mjs} +3 -2
- package/dist/{collection-list-SDEPSNRJ.mjs → collection-list-3ZHLS2LP.mjs} +3 -2
- package/dist/{collection-metadata-U3U5IAXY.mjs → collection-metadata-J6P3K7U6.mjs} +2 -1
- package/dist/{customer-detail-3LRBZ3JI.mjs → customer-detail-5Y7ICDMA.mjs} +2 -1
- package/dist/{customer-group-detail-PSWUMSNT.mjs → customer-group-detail-PXP73BFA.mjs} +2 -1
- package/dist/{customer-group-list-CWMPWYDT.mjs → customer-group-list-3DB643XQ.mjs} +2 -1
- package/dist/{customers-add-customer-group-B2A4NE3V.mjs → customers-add-customer-group-BVUVU46N.mjs} +2 -1
- package/dist/{edit-rules-5IC62HEP.mjs → edit-rules-3MSTPCE5.mjs} +2 -1
- package/dist/{inventory-create-W5TWRGTB.mjs → inventory-create-NEYX7PZJ.mjs} +2 -1
- package/dist/{inventory-detail-NA3TYSDI.mjs → inventory-detail-66HDQL3W.mjs} +2 -1
- package/dist/{inventory-metadata-IHX3PKUU.mjs → inventory-metadata-OSTUWM23.mjs} +2 -1
- package/dist/{inventory-stock-N63HVL4Y.mjs → inventory-stock-XY2OCAY3.mjs} +2 -1
- package/dist/{location-detail-LTPCPYBB.mjs → location-detail-UZHD3IKW.mjs} +2 -1
- package/dist/{location-fulfillment-providers-D7RUW43H.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +3 -2
- package/dist/{location-service-zone-shipping-option-create-7OWIMXRU.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +2 -1
- package/dist/{login-35YVS44T.mjs → login-LQRL2ZDY.mjs} +2 -1
- package/dist/{order-create-claim-IL5IJQDA.mjs → order-create-claim-7UF734QH.mjs} +2 -1
- package/dist/{order-create-edit-MZZBDG2K.mjs → order-create-edit-MZHUVTGE.mjs} +2 -1
- package/dist/{order-create-exchange-CWS4HFYS.mjs → order-create-exchange-2UGEF65S.mjs} +2 -1
- package/dist/{order-create-fulfillment-I22AFZNL.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +2 -1
- package/dist/{order-create-refund-OQ7OZAA6.mjs → order-create-refund-CJDKVBSE.mjs} +8 -4
- package/dist/{order-create-shipment-DQ2MGT73.mjs → order-create-shipment-3FDVQ6WT.mjs} +2 -1
- package/dist/{order-detail-NPB65EAD.mjs → order-detail-SEPCRJW5.mjs} +2 -1
- package/dist/{order-edit-billing-address-LBI4BH2D.mjs → order-edit-billing-address-J75NQFRY.mjs} +2 -1
- package/dist/{order-edit-email-LZIAGMIQ.mjs → order-edit-email-ABFQKE6A.mjs} +2 -1
- package/dist/{order-edit-shipping-address-7ASMMZHB.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +2 -1
- package/dist/{order-metadata-WKPBFYBS.mjs → order-metadata-5NF3ICQL.mjs} +2 -1
- package/dist/{order-receive-return-5NEE4MCK.mjs → order-receive-return-IM65P7XQ.mjs} +2 -1
- package/dist/{order-request-transfer-3VT2ZUA7.mjs → order-request-transfer-LZ25KEDA.mjs} +2 -1
- package/dist/{price-list-create-RSXHRPDW.mjs → price-list-create-EC5VGCMW.mjs} +3 -2
- package/dist/{price-list-detail-27WN2S6M.mjs → price-list-detail-CRTJA5O4.mjs} +3 -2
- package/dist/{price-list-prices-add-P76O76X3.mjs → price-list-prices-add-HYCM4QDY.mjs} +3 -2
- package/dist/{product-attributes-L2E6JYWT.mjs → product-attributes-WVQRK3GQ.mjs} +5 -4
- package/dist/{product-create-CDTVJV6K.mjs → product-create-PWSPOVUS.mjs} +5 -4
- package/dist/{product-create-variant-3A7UARG7.mjs → product-create-variant-V2QGXFEF.mjs} +2 -1
- package/dist/{product-detail-Q6BGZV5H.mjs → product-detail-EBPCCBI4.mjs} +5 -4
- package/dist/{product-edit-2C3PYCU5.mjs → product-edit-5E6D43KE.mjs} +5 -4
- package/dist/{product-export-EIIBIYBL.mjs → product-export-VFC3I5DK.mjs} +3 -2
- package/dist/{product-import-WXFKSQMH.mjs → product-import-V7EZJ2TU.mjs} +2 -1
- package/dist/{product-list-KEND4NTM.mjs → product-list-FFZO57JG.mjs} +3 -2
- package/dist/{product-media-OEV3BHUK.mjs → product-media-TRKQTA4G.mjs} +2 -2
- package/dist/{product-metadata-6WVU7KCL.mjs → product-metadata-VYQ65KYI.mjs} +2 -1
- package/dist/{product-organization-JCDB6V2Z.mjs → product-organization-OCVSTKEK.mjs} +5 -4
- package/dist/{product-shipping-profile-SL55OQ7S.mjs → product-shipping-profile-SG6NDHF4.mjs} +5 -4
- package/dist/{product-stock-EYYSNQN6.mjs → product-stock-LJRYRSKN.mjs} +2 -1
- package/dist/{product-tag-create-LZJJQDDN.mjs → product-tag-create-EB5CVUOP.mjs} +2 -1
- package/dist/{product-tag-detail-IZWWHAL4.mjs → product-tag-detail-V5CZY4R4.mjs} +5 -4
- package/dist/{product-tag-edit-GJ7T5EWE.mjs → product-tag-edit-YATSW5OK.mjs} +2 -1
- package/dist/{product-tag-list-CT5SDORF.mjs → product-tag-list-2LFGEFGL.mjs} +5 -4
- package/dist/{product-tag-metadata-2PE6F6PT.mjs → product-tag-metadata-R5P5FWAZ.mjs} +2 -1
- package/dist/{product-type-detail-X7TH5D5P.mjs → product-type-detail-BZNI5GJ5.mjs} +3 -2
- package/dist/{product-type-metadata-UBVJNWEL.mjs → product-type-metadata-SUQHWLWA.mjs} +2 -1
- package/dist/{product-variant-detail-IUAHUIF3.mjs → product-variant-detail-W2JHQQQJ.mjs} +2 -1
- package/dist/{product-variant-edit-7QDJ2IRD.mjs → product-variant-edit-DSY77FF4.mjs} +2 -1
- package/dist/{product-variant-metadata-VNDDDM3T.mjs → product-variant-metadata-HE3MRTJB.mjs} +2 -1
- package/dist/{promotion-create-SWL2YAZR.mjs → promotion-create-NBFV4XQV.mjs} +2 -1
- package/dist/{promotion-detail-T5Y3LGZN.mjs → promotion-detail-247QD6DA.mjs} +4 -3
- package/dist/{promotion-list-4YQXF4JL.mjs → promotion-list-WDHOSD55.mjs} +3 -3
- package/dist/{refund-reason-create-77GSQ4W5.mjs → refund-reason-create-45ZZOX7F.mjs} +3 -38
- package/dist/{refund-reason-edit-UHR7VTDK.mjs → refund-reason-edit-E2HDAQZI.mjs} +1 -49
- package/dist/{refund-reason-list-WIIPT75C.mjs → refund-reason-list-WI7NHRDS.mjs} +4 -3
- package/dist/{region-metadata-6VLWB5VQ.mjs → region-metadata-3JIGHAUI.mjs} +2 -1
- package/dist/{reservation-detail-3ATQ33U7.mjs → reservation-detail-FENCNQDA.mjs} +2 -1
- package/dist/{reservation-metadata-2SVXKSIC.mjs → reservation-metadata-DQ3A7MHU.mjs} +2 -1
- package/dist/{reset-password-IRRCZOIH.mjs → reset-password-LCVV4NOA.mjs} +1 -1
- package/dist/{return-reason-list-T7KQHIYV.mjs → return-reason-list-FW7OYUOW.mjs} +1 -1
- package/dist/{sales-channel-add-products-UFRCO4JR.mjs → sales-channel-add-products-G4EUOCWY.mjs} +3 -2
- package/dist/{sales-channel-detail-4B6KT7EU.mjs → sales-channel-detail-NT7PEVVH.mjs} +3 -2
- package/dist/{sales-channel-list-3KAKOZV7.mjs → sales-channel-list-REV2RETE.mjs} +2 -1
- package/dist/{sales-channel-metadata-VWG77T3Y.mjs → sales-channel-metadata-O5O6ADG5.mjs} +2 -1
- package/dist/{shipping-option-type-create-ZSUEJDPC.mjs → shipping-option-type-create-7FSJNHHA.mjs} +2 -1
- package/dist/{shipping-option-type-detail-LUIV6WLP.mjs → shipping-option-type-detail-6UQST7RY.mjs} +3 -2
- package/dist/{shipping-option-type-edit-MC4UYHRM.mjs → shipping-option-type-edit-B475WRRR.mjs} +2 -1
- package/dist/{shipping-option-type-list-AA3VLD4U.mjs → shipping-option-type-list-DTETSFSA.mjs} +3 -2
- package/dist/{shipping-profile-metadata-37X46LSP.mjs → shipping-profile-metadata-PRINFNSY.mjs} +2 -1
- package/dist/{store-detail-PGMGDA2T.mjs → store-detail-QKF2TVNW.mjs} +2 -1
- package/dist/{store-metadata-DPM7CH4C.mjs → store-metadata-M6GIKI5P.mjs} +2 -1
- package/dist/{tax-region-create-GCKJ6LII.mjs → tax-region-create-4DTM3RTZ.mjs} +3 -2
- package/dist/{tax-region-detail-HNTTGBII.mjs → tax-region-detail-SLCI3JYL.mjs} +2 -1
- package/dist/{tax-region-edit-ECTOKAGZ.mjs → tax-region-edit-CJ63JXFQ.mjs} +2 -1
- package/dist/{tax-region-province-detail-7DEEXMWA.mjs → tax-region-province-detail-BGL2USQF.mjs} +2 -1
- package/dist/{tax-region-tax-override-create-6EHKZAZ4.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +5 -4
- package/dist/{tax-region-tax-override-edit-AZBQQPYI.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +5 -4
- package/dist/{user-metadata-HPKKLNTP.mjs → user-metadata-DFTGB46F.mjs} +2 -1
- package/dist/{workflow-execution-detail-Z6JEL2HO.mjs → workflow-execution-detail-YNT2RKIP.mjs} +2 -1
- package/package.json +9 -9
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +0 -7
- package/src/i18n/translations/$schema.json +1 -14
- package/src/i18n/translations/en.json +0 -4
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +2 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +0 -46
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +1 -23
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
usePromotionTableColumns,
|
3
3
|
usePromotionTableQuery
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
4
|
+
} from "./chunk-U4R5MBF2.mjs";
|
5
|
+
import "./chunk-IP2QPPWC.mjs";
|
6
6
|
import "./chunk-MSDRGCRR.mjs";
|
7
7
|
import "./chunk-ADOCJB6L.mjs";
|
8
8
|
import "./chunk-LQTHYS2Z.mjs";
|
@@ -30,7 +30,7 @@ import {
|
|
30
30
|
useRouteModal
|
31
31
|
} from "./chunk-4TC5YS65.mjs";
|
32
32
|
import "./chunk-4GQOUCX6.mjs";
|
33
|
-
import "./chunk-
|
33
|
+
import "./chunk-DKOCYXB5.mjs";
|
34
34
|
import "./chunk-LPEUYMRK.mjs";
|
35
35
|
import "./chunk-OC7BQLYI.mjs";
|
36
36
|
import "./chunk-S4DMV3ZT.mjs";
|
package/dist/{api-key-management-detail-6URA7AKM.mjs → api-key-management-detail-ZQLQKGYF.mjs}
RENAMED
@@ -38,8 +38,9 @@ import {
|
|
38
38
|
import "./chunk-OC7BQLYI.mjs";
|
39
39
|
import "./chunk-S4DMV3ZT.mjs";
|
40
40
|
import "./chunk-67ORSRVT.mjs";
|
41
|
-
import "./chunk-
|
41
|
+
import "./chunk-PAG2HG6I.mjs";
|
42
42
|
import "./chunk-KOSCMAIC.mjs";
|
43
|
+
import "./chunk-5U3FFMC7.mjs";
|
43
44
|
import "./chunk-X6DSNTTX.mjs";
|
44
45
|
import "./chunk-I6E6CALJ.mjs";
|
45
46
|
import {
|
package/dist/app.js
CHANGED
@@ -11571,10 +11571,6 @@ var init_en = __esm({
|
|
11571
11571
|
label: "Label",
|
11572
11572
|
placeholder: "Gesture of goodwill"
|
11573
11573
|
},
|
11574
|
-
code: {
|
11575
|
-
label: "Code",
|
11576
|
-
placeholder: "gesture_of_goodwill"
|
11577
|
-
},
|
11578
11574
|
description: {
|
11579
11575
|
label: "Description",
|
11580
11576
|
placeholder: "Customer had a bad shopping experience"
|
@@ -136709,7 +136705,9 @@ var init_create_refund_form = __esm({
|
|
136709
136705
|
amount: {
|
136710
136706
|
value: paymentAmount.toFixed(currency.decimal_digits),
|
136711
136707
|
float: paymentAmount
|
136712
|
-
}
|
136708
|
+
},
|
136709
|
+
note: "",
|
136710
|
+
refund_reason_id: ""
|
136713
136711
|
},
|
136714
136712
|
resolver: (0, import_zod45.zodResolver)(CreateRefundSchema)
|
136715
136713
|
});
|
@@ -169736,13 +169734,6 @@ var init_use_refund_reason_table_columns = __esm({
|
|
169736
169734
|
sortAscLabel: t5("filters.sorting.alphabeticallyAsc"),
|
169737
169735
|
sortDescLabel: t5("filters.sorting.alphabeticallyDesc")
|
169738
169736
|
}),
|
169739
|
-
columnHelper78.accessor("code", {
|
169740
|
-
header: () => t5("fields.code"),
|
169741
|
-
enableSorting: true,
|
169742
|
-
sortLabel: t5("fields.code"),
|
169743
|
-
sortAscLabel: t5("filters.sorting.alphabeticallyAsc"),
|
169744
|
-
sortDescLabel: t5("filters.sorting.alphabeticallyDesc")
|
169745
|
-
}),
|
169746
169737
|
columnHelper78.accessor("description", {
|
169747
169738
|
header: () => t5("fields.description"),
|
169748
169739
|
cell: ({ getValue: getValue2 }) => /* @__PURE__ */ (0, import_jsx_runtime574.jsx)(DescriptionCell, { description: getValue2() }),
|
@@ -180649,7 +180640,6 @@ var init_refund_reason_create_form = __esm({
|
|
180649
180640
|
import_jsx_runtime668 = require("react/jsx-runtime");
|
180650
180641
|
RefundReasonCreateSchema = import_zod158.z.object({
|
180651
180642
|
label: import_zod158.z.string().min(1),
|
180652
|
-
code: import_zod158.z.string().min(1),
|
180653
180643
|
description: import_zod158.z.string().optional()
|
180654
180644
|
});
|
180655
180645
|
RefundReasonCreateForm = () => {
|
@@ -180658,14 +180648,10 @@ var init_refund_reason_create_form = __esm({
|
|
180658
180648
|
const form = (0, import_react_hook_form138.useForm)({
|
180659
180649
|
defaultValues: {
|
180660
180650
|
label: "",
|
180661
|
-
code: "",
|
180662
180651
|
description: ""
|
180663
180652
|
},
|
180664
180653
|
resolver: (0, import_zod157.zodResolver)(RefundReasonCreateSchema)
|
180665
180654
|
});
|
180666
|
-
const generateCodeFromLabel = (label) => {
|
180667
|
-
return label.toLowerCase().replace(/[^a-z0-9]/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
|
180668
|
-
};
|
180669
180655
|
const { mutateAsync, isPending } = useCreateRefundReason();
|
180670
180656
|
const handleSubmit = form.handleSubmit(async (data) => {
|
180671
180657
|
await mutateAsync(data, {
|
@@ -180708,37 +180694,6 @@ var init_refund_reason_create_form = __esm({
|
|
180708
180694
|
...field,
|
180709
180695
|
placeholder: t5(
|
180710
180696
|
"refundReasons.fields.label.placeholder"
|
180711
|
-
),
|
180712
|
-
onChange: (e) => {
|
180713
|
-
if (!form.getFieldState("code").isTouched || !form.getValues("code")) {
|
180714
|
-
form.setValue(
|
180715
|
-
"code",
|
180716
|
-
generateCodeFromLabel(e.target.value)
|
180717
|
-
);
|
180718
|
-
}
|
180719
|
-
field.onChange(e);
|
180720
|
-
}
|
180721
|
-
}
|
180722
|
-
) }),
|
180723
|
-
/* @__PURE__ */ (0, import_jsx_runtime668.jsx)(Form.ErrorMessage, {})
|
180724
|
-
] });
|
180725
|
-
}
|
180726
|
-
}
|
180727
|
-
) }),
|
180728
|
-
/* @__PURE__ */ (0, import_jsx_runtime668.jsx)("div", { className: "grid gap-4 md:grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime668.jsx)(
|
180729
|
-
Form.Field,
|
180730
|
-
{
|
180731
|
-
control: form.control,
|
180732
|
-
name: "code",
|
180733
|
-
render: ({ field }) => {
|
180734
|
-
return /* @__PURE__ */ (0, import_jsx_runtime668.jsxs)(Form.Item, { children: [
|
180735
|
-
/* @__PURE__ */ (0, import_jsx_runtime668.jsx)(Form.Label, { children: t5("refundReasons.fields.code.label") }),
|
180736
|
-
/* @__PURE__ */ (0, import_jsx_runtime668.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime668.jsx)(
|
180737
|
-
import_ui438.Input,
|
180738
|
-
{
|
180739
|
-
...field,
|
180740
|
-
placeholder: t5(
|
180741
|
-
"refundReasons.fields.code.placeholder"
|
180742
180697
|
)
|
180743
180698
|
}
|
180744
180699
|
) }),
|
@@ -180828,11 +180783,10 @@ var init_refund_reason_edit_form = __esm({
|
|
180828
180783
|
init_form2();
|
180829
180784
|
init_modals();
|
180830
180785
|
init_keybound_form2();
|
180831
|
-
|
180786
|
+
init_refund_reasons();
|
180832
180787
|
import_jsx_runtime670 = require("react/jsx-runtime");
|
180833
180788
|
RefundReasonEditSchema = import_zod160.z.object({
|
180834
180789
|
label: import_zod160.z.string().min(1),
|
180835
|
-
code: import_zod160.z.string().min(1),
|
180836
180790
|
description: import_zod160.z.string().optional()
|
180837
180791
|
});
|
180838
180792
|
RefundReasonEditForm = ({
|
@@ -180843,7 +180797,6 @@ var init_refund_reason_edit_form = __esm({
|
|
180843
180797
|
const form = (0, import_react_hook_form139.useForm)({
|
180844
180798
|
defaultValues: {
|
180845
180799
|
label: refundReason.label,
|
180846
|
-
code: refundReason.code,
|
180847
180800
|
description: refundReason.description ?? void 0
|
180848
180801
|
},
|
180849
180802
|
resolver: (0, import_zod159.zodResolver)(RefundReasonEditSchema)
|
@@ -180891,26 +180844,6 @@ var init_refund_reason_edit_form = __esm({
|
|
180891
180844
|
}
|
180892
180845
|
}
|
180893
180846
|
),
|
180894
|
-
/* @__PURE__ */ (0, import_jsx_runtime670.jsx)(
|
180895
|
-
Form.Field,
|
180896
|
-
{
|
180897
|
-
control: form.control,
|
180898
|
-
name: "code",
|
180899
|
-
render: ({ field }) => {
|
180900
|
-
return /* @__PURE__ */ (0, import_jsx_runtime670.jsxs)(Form.Item, { children: [
|
180901
|
-
/* @__PURE__ */ (0, import_jsx_runtime670.jsx)(Form.Label, { children: t5("refundReasons.fields.code.label") }),
|
180902
|
-
/* @__PURE__ */ (0, import_jsx_runtime670.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime670.jsx)(
|
180903
|
-
import_ui439.Input,
|
180904
|
-
{
|
180905
|
-
...field,
|
180906
|
-
placeholder: t5("refundReasons.fields.code.placeholder")
|
180907
|
-
}
|
180908
|
-
) }),
|
180909
|
-
/* @__PURE__ */ (0, import_jsx_runtime670.jsx)(Form.ErrorMessage, {})
|
180910
|
-
] });
|
180911
|
-
}
|
180912
|
-
}
|
180913
|
-
),
|
180914
180847
|
/* @__PURE__ */ (0, import_jsx_runtime670.jsx)(
|
180915
180848
|
Form.Field,
|
180916
180849
|
{
|
package/dist/app.mjs
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
DashboardApp
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-7DFTLGA5.mjs";
|
4
4
|
import "./chunk-NQIC7ZFS.mjs";
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
6
6
|
import "./chunk-VLOA5XAC.mjs";
|
7
7
|
import "./chunk-4GQOUCX6.mjs";
|
8
8
|
import "./chunk-2VTICXJR.mjs";
|
9
9
|
import "./chunk-D3YQN7HV.mjs";
|
10
|
-
import "./chunk-
|
10
|
+
import "./chunk-DKOCYXB5.mjs";
|
11
11
|
import "./chunk-MNXC6Q4F.mjs";
|
12
12
|
import "./chunk-C5P5PL3E.mjs";
|
13
13
|
import "./chunk-DG7J63J2.mjs";
|
@@ -19,8 +19,9 @@ import "./chunk-OC7BQLYI.mjs";
|
|
19
19
|
import "./chunk-S4DMV3ZT.mjs";
|
20
20
|
import "./chunk-67ORSRVT.mjs";
|
21
21
|
import "./chunk-OBQI23QM.mjs";
|
22
|
-
import "./chunk-
|
22
|
+
import "./chunk-PAG2HG6I.mjs";
|
23
23
|
import "./chunk-KOSCMAIC.mjs";
|
24
|
+
import "./chunk-5U3FFMC7.mjs";
|
24
25
|
import "./chunk-X6DSNTTX.mjs";
|
25
26
|
import "./chunk-I6E6CALJ.mjs";
|
26
27
|
import "./chunk-RGP3IXX4.mjs";
|
@@ -4,8 +4,8 @@ import {
|
|
4
4
|
import {
|
5
5
|
usePromotionTableColumns,
|
6
6
|
usePromotionTableQuery
|
7
|
-
} from "./chunk-
|
8
|
-
import "./chunk-
|
7
|
+
} from "./chunk-U4R5MBF2.mjs";
|
8
|
+
import "./chunk-IP2QPPWC.mjs";
|
9
9
|
import "./chunk-MSDRGCRR.mjs";
|
10
10
|
import "./chunk-ADOCJB6L.mjs";
|
11
11
|
import "./chunk-LQTHYS2Z.mjs";
|
@@ -31,7 +31,7 @@ import {
|
|
31
31
|
import "./chunk-C76H5USB.mjs";
|
32
32
|
import "./chunk-PFKKVLZX.mjs";
|
33
33
|
import "./chunk-4GQOUCX6.mjs";
|
34
|
-
import "./chunk-
|
34
|
+
import "./chunk-DKOCYXB5.mjs";
|
35
35
|
import {
|
36
36
|
useExtension
|
37
37
|
} from "./chunk-C5P5PL3E.mjs";
|
@@ -44,8 +44,9 @@ import {
|
|
44
44
|
import "./chunk-OC7BQLYI.mjs";
|
45
45
|
import "./chunk-S4DMV3ZT.mjs";
|
46
46
|
import "./chunk-67ORSRVT.mjs";
|
47
|
-
import "./chunk-
|
47
|
+
import "./chunk-PAG2HG6I.mjs";
|
48
48
|
import "./chunk-KOSCMAIC.mjs";
|
49
|
+
import "./chunk-5U3FFMC7.mjs";
|
49
50
|
import "./chunk-X6DSNTTX.mjs";
|
50
51
|
import "./chunk-I6E6CALJ.mjs";
|
51
52
|
import "./chunk-RGP3IXX4.mjs";
|
@@ -11,8 +11,9 @@ import "./chunk-LPEUYMRK.mjs";
|
|
11
11
|
import "./chunk-OC7BQLYI.mjs";
|
12
12
|
import "./chunk-S4DMV3ZT.mjs";
|
13
13
|
import "./chunk-OBQI23QM.mjs";
|
14
|
-
import "./chunk-
|
14
|
+
import "./chunk-PAG2HG6I.mjs";
|
15
15
|
import "./chunk-KOSCMAIC.mjs";
|
16
|
+
import "./chunk-5U3FFMC7.mjs";
|
16
17
|
import "./chunk-X6DSNTTX.mjs";
|
17
18
|
import "./chunk-I6E6CALJ.mjs";
|
18
19
|
import "./chunk-RGP3IXX4.mjs";
|
@@ -30,7 +30,7 @@ import "./chunk-HQKGZADC.mjs";
|
|
30
30
|
import "./chunk-EMIHDNB7.mjs";
|
31
31
|
import {
|
32
32
|
useProductTableFilters
|
33
|
-
} from "./chunk-
|
33
|
+
} from "./chunk-5WMJLYEP.mjs";
|
34
34
|
import "./chunk-Z26G6WFJ.mjs";
|
35
35
|
import "./chunk-M3VFKDXJ.mjs";
|
36
36
|
import {
|
@@ -52,8 +52,9 @@ import {
|
|
52
52
|
import "./chunk-OC7BQLYI.mjs";
|
53
53
|
import "./chunk-S4DMV3ZT.mjs";
|
54
54
|
import "./chunk-67ORSRVT.mjs";
|
55
|
-
import "./chunk-
|
55
|
+
import "./chunk-PAG2HG6I.mjs";
|
56
56
|
import "./chunk-KOSCMAIC.mjs";
|
57
|
+
import "./chunk-5U3FFMC7.mjs";
|
57
58
|
import "./chunk-X6DSNTTX.mjs";
|
58
59
|
import "./chunk-I6E6CALJ.mjs";
|
59
60
|
import "./chunk-RGP3IXX4.mjs";
|
@@ -18,7 +18,7 @@ import "./chunk-HQKGZADC.mjs";
|
|
18
18
|
import "./chunk-EMIHDNB7.mjs";
|
19
19
|
import {
|
20
20
|
useProductTableFilters
|
21
|
-
} from "./chunk-
|
21
|
+
} from "./chunk-5WMJLYEP.mjs";
|
22
22
|
import "./chunk-Z26G6WFJ.mjs";
|
23
23
|
import "./chunk-M3VFKDXJ.mjs";
|
24
24
|
import "./chunk-C76H5USB.mjs";
|
@@ -36,8 +36,9 @@ import "./chunk-LPEUYMRK.mjs";
|
|
36
36
|
import "./chunk-S4DMV3ZT.mjs";
|
37
37
|
import "./chunk-67ORSRVT.mjs";
|
38
38
|
import "./chunk-OBQI23QM.mjs";
|
39
|
-
import "./chunk-
|
39
|
+
import "./chunk-PAG2HG6I.mjs";
|
40
40
|
import "./chunk-KOSCMAIC.mjs";
|
41
|
+
import "./chunk-5U3FFMC7.mjs";
|
41
42
|
import "./chunk-X6DSNTTX.mjs";
|
42
43
|
import "./chunk-I6E6CALJ.mjs";
|
43
44
|
import "./chunk-RGP3IXX4.mjs";
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import {
|
2
|
+
queryClient
|
3
|
+
} from "./chunk-FXYH54JP.mjs";
|
4
|
+
import {
|
5
|
+
queryKeysFactory
|
6
|
+
} from "./chunk-774WSTCC.mjs";
|
7
|
+
import {
|
8
|
+
sdk
|
9
|
+
} from "./chunk-DEQUVHHE.mjs";
|
10
|
+
|
11
|
+
// src/hooks/api/refund-reasons.tsx
|
12
|
+
import {
|
13
|
+
useMutation,
|
14
|
+
useQuery
|
15
|
+
} from "@tanstack/react-query";
|
16
|
+
var REFUND_REASONS_QUERY_KEY = "refund_reasons";
|
17
|
+
var refundReasonsQueryKeys = queryKeysFactory(REFUND_REASONS_QUERY_KEY);
|
18
|
+
var useRefundReasons = (query, options) => {
|
19
|
+
const { data, ...rest } = useQuery({
|
20
|
+
queryFn: () => sdk.admin.refundReason.list(query),
|
21
|
+
queryKey: refundReasonsQueryKeys.list(query),
|
22
|
+
...options
|
23
|
+
});
|
24
|
+
return { ...data, ...rest };
|
25
|
+
};
|
26
|
+
var useRefundReason = (id, query, options) => {
|
27
|
+
const { data, ...rest } = useQuery({
|
28
|
+
queryFn: () => sdk.admin.refundReason.retrieve(id, query),
|
29
|
+
queryKey: refundReasonsQueryKeys.detail(id),
|
30
|
+
...options
|
31
|
+
});
|
32
|
+
return { ...data, ...rest };
|
33
|
+
};
|
34
|
+
var useCreateRefundReason = (query, options) => {
|
35
|
+
return useMutation({
|
36
|
+
mutationFn: async (data) => sdk.admin.refundReason.create(data, query),
|
37
|
+
onSuccess: (data, variables, context) => {
|
38
|
+
queryClient.invalidateQueries({
|
39
|
+
queryKey: refundReasonsQueryKeys.lists()
|
40
|
+
});
|
41
|
+
options?.onSuccess?.(data, variables, context);
|
42
|
+
},
|
43
|
+
...options
|
44
|
+
});
|
45
|
+
};
|
46
|
+
var useUpdateRefundReason = (id, options) => {
|
47
|
+
return useMutation({
|
48
|
+
mutationFn: async (data) => sdk.admin.refundReason.update(id, data),
|
49
|
+
onSuccess: (data, variables, context) => {
|
50
|
+
queryClient.invalidateQueries({
|
51
|
+
queryKey: refundReasonsQueryKeys.lists()
|
52
|
+
});
|
53
|
+
queryClient.invalidateQueries({
|
54
|
+
queryKey: refundReasonsQueryKeys.detail(data.refund_reason.id)
|
55
|
+
});
|
56
|
+
options?.onSuccess?.(data, variables, context);
|
57
|
+
},
|
58
|
+
...options
|
59
|
+
});
|
60
|
+
};
|
61
|
+
var useDeleteRefundReasonLazy = (options) => {
|
62
|
+
return useMutation({
|
63
|
+
mutationFn: (id) => sdk.admin.refundReason.delete(id),
|
64
|
+
onSuccess: (data, variables, context) => {
|
65
|
+
queryClient.invalidateQueries({
|
66
|
+
queryKey: refundReasonsQueryKeys.lists()
|
67
|
+
});
|
68
|
+
queryClient.invalidateQueries({
|
69
|
+
queryKey: refundReasonsQueryKeys.details()
|
70
|
+
});
|
71
|
+
options?.onSuccess?.(data, variables, context);
|
72
|
+
},
|
73
|
+
...options
|
74
|
+
});
|
75
|
+
};
|
76
|
+
|
77
|
+
export {
|
78
|
+
refundReasonsQueryKeys,
|
79
|
+
useRefundReasons,
|
80
|
+
useRefundReason,
|
81
|
+
useCreateRefundReason,
|
82
|
+
useUpdateRefundReason,
|
83
|
+
useDeleteRefundReasonLazy
|
84
|
+
};
|