@mercurjs/admin 2.3.5 → 2.3.6-canary.0
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/{attribute-create-7YTZXJV4.js → attribute-create-C435ZHB2.js} +2 -2
- package/dist/{attribute-detail-SXF6Z3B7.js → attribute-detail-SPYDB3I5.js} +1 -1
- package/dist/{attribute-edit-4HMUAWXB.js → attribute-edit-AAEAOP5B.js} +2 -2
- package/dist/{attribute-edit-possible-value-RVXOKCBF.js → attribute-edit-possible-value-BJSQCTNO.js} +2 -2
- package/dist/{category-detail-ADUIZLD2.js → category-detail-GVEDFNM7.js} +5 -5
- package/dist/{category-products-QKO7R74I.js → category-products-VVF5NXCE.js} +4 -4
- package/dist/{chunk-BJT7DXPM.js → chunk-3KRUGI6C.js} +1 -1
- package/dist/{chunk-3AJ26Y7Y.js → chunk-5SNW2DCY.js} +2 -2
- package/dist/{chunk-O4VAUFC4.js → chunk-5TIADRZ7.js} +1 -1
- package/dist/{chunk-43UJRKIQ.js → chunk-6AQYZWOC.js} +3 -3
- package/dist/{chunk-P2L3454Z.js → chunk-6P7HBAUM.js} +2 -2
- package/dist/{chunk-2PEUXNN2.js → chunk-6UYV7B42.js} +1 -1
- package/dist/{chunk-XAF5YRCD.js → chunk-7ECQXPOG.js} +2 -1
- package/dist/{chunk-MJUHCGUM.js → chunk-7I7G5ZJE.js} +2 -2
- package/dist/{chunk-X66JG3MJ.js → chunk-7YBZ2PEZ.js} +2 -2
- package/dist/{chunk-XUSQNYGA.js → chunk-A2UTT4YX.js} +1 -1
- package/dist/{chunk-FOOFDZXP.js → chunk-B6KT5U7W.js} +2 -2
- package/dist/{chunk-GLMIYNXS.js → chunk-BQZ5P3IA.js} +3 -3
- package/dist/{chunk-P2LX6VRL.js → chunk-BZPOERWW.js} +12 -8
- package/dist/{chunk-SRF2L4MR.js → chunk-D7E6HL5O.js} +2 -2
- package/dist/{chunk-XG6V24T7.js → chunk-EJGGX3ON.js} +2 -2
- package/dist/{chunk-6CIWAMKA.js → chunk-ENKVW7JW.js} +4 -4
- package/dist/{chunk-GAOSCJQT.js → chunk-G2KWNZV6.js} +1 -1
- package/dist/{chunk-AYDWW5IL.js → chunk-HFM6N7R3.js} +2 -2
- package/dist/{chunk-4WCI7Z2E.js → chunk-KWFSBUD6.js} +1405 -1396
- package/dist/{chunk-GDLOID54.js → chunk-MM5RRCPX.js} +1 -1
- package/dist/{chunk-3NZGVRWE.js → chunk-NCDKLTDP.js} +3 -3
- package/dist/{chunk-XY22AUN2.js → chunk-NQEXDESI.js} +2 -2
- package/dist/{chunk-7CUMT7BE.js → chunk-OWWE5Y6T.js} +1 -1
- package/dist/{chunk-EPIFCCE7.js → chunk-QEBISX7V.js} +1 -1
- package/dist/{chunk-YBFLE6HW.js → chunk-R2ODJ3D3.js} +2 -2
- package/dist/{chunk-CVHSVKHR.js → chunk-VE5FQQTG.js} +1 -1
- package/dist/{chunk-RJTMPBRN.js → chunk-VVIJHBKM.js} +1 -1
- package/dist/{chunk-OPLFDHKG.js → chunk-W62DN2I2.js} +5 -5
- package/dist/{chunk-CVTRLAPB.js → chunk-XMIDY45X.js} +1 -1
- package/dist/{chunk-DIF3LIGG.js → chunk-YUL4ES52.js} +1 -1
- package/dist/{collection-add-products-O57OBPNL.js → collection-add-products-HCY2YT3W.js} +4 -4
- package/dist/{collection-detail-MTKPUOT5.js → collection-detail-QAEPOJZX.js} +5 -5
- package/dist/{collection-list-KHLO6D2Q.js → collection-list-AWLZYMWL.js} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +53 -53
- package/dist/{inventory-stock-ASIGAL2Z.js → inventory-stock-PZ2ENOGF.js} +2 -2
- package/dist/{location-fulfillment-providers-JSO4KA2L.js → location-fulfillment-providers-XIYMIEFN.js} +2 -2
- package/dist/{offer-detail-page-DYTD4MGP.js → offer-detail-page-WWEUCEFC.js} +1 -1
- package/dist/{offer-variant-detail-page-YBQ3ZDCK.js → offer-variant-detail-page-FVJE5WLV.js} +1 -1
- package/dist/{offers-ICELN2UZ.js → offers-VG334CFD.js} +3 -3
- package/dist/{order-list-ZACAUPST.js → order-list-I6JZT6JK.js} +2 -2
- package/dist/pages/index.d.ts +365 -1658
- package/dist/pages/index.js +27 -27
- package/dist/{price-list-create-2KEYK2ER.js → price-list-create-JFXLTNOJ.js} +5 -5
- package/dist/{price-list-detail-NTQSV6BX.js → price-list-detail-5YTX66KF.js} +4 -4
- package/dist/{price-list-prices-add-IRV2A5IW.js → price-list-prices-add-HVTEQOWQ.js} +5 -5
- package/dist/{price-list-prices-edit-QQUJPIUM.js → price-list-prices-edit-OVHIDATP.js} +1 -1
- package/dist/{product-add-existing-attributes-2HXY7KGZ.js → product-add-existing-attributes-2UFTXE2N.js} +2 -2
- package/dist/{product-create-2YWZX7DK.js → product-create-SHIGHLQN.js} +3 -3
- package/dist/{product-create-attribute-CXCDBUF6.js → product-create-attribute-QYRCPUFC.js} +1 -1
- package/dist/{product-create-variant-E2SEV4Q4.js → product-create-variant-MZLHG5JF.js} +3 -3
- package/dist/{product-detail-HHOTRDUN.js → product-detail-UGSTCK7J.js} +2 -2
- package/dist/{product-list-6AHYHRAJ.js → product-list-XDJB3HX7.js} +5 -5
- package/dist/{product-media-RHIHFK55.js → product-media-CO3F57JT.js} +2 -2
- package/dist/{product-tag-detail-MTCL2XBF.js → product-tag-detail-CDSYBTAM.js} +6 -6
- package/dist/{product-tag-list-LTBWGZWV.js → product-tag-list-RKLCU3UE.js} +6 -6
- package/dist/{product-type-detail-GOG3FDY5.js → product-type-detail-IY7TWXUQ.js} +5 -5
- package/dist/{product-variant-edit-TB2VC63E.js → product-variant-edit-4DPXTYPT.js} +3 -3
- package/dist/{refund-reason-list-EBG7CCYY.js → refund-reason-list-ABRFC3OQ.js} +5 -5
- package/dist/{return-reason-list-OQBRH3PU.js → return-reason-list-6MQKG72S.js} +5 -5
- package/dist/{sales-channel-add-products-BGV3V327.js → sales-channel-add-products-MPJ7UCEJ.js} +4 -4
- package/dist/{sales-channel-detail-V2VBFNLX.js → sales-channel-detail-F37LBP6R.js} +5 -5
- package/dist/{store-bulk-edit-3RHVHSYO.js → store-bulk-edit-NBWZMDP7.js} +1 -1
- package/dist/{store-details-TEWRGD33.js → store-details-ITYKAZSI.js} +5 -5
- package/dist/{store-edit-NVILHPML.js → store-edit-NZMI7PNS.js} +2 -2
- package/dist/{store-list-IHQUDNWF.js → store-list-RXPN3VVO.js} +4 -4
- package/dist/{store-member-invite-FUWVTF6K.js → store-member-invite-IEUG54XA.js} +1 -1
- package/dist/{tax-region-tax-override-create-W7WLHFR3.js → tax-region-tax-override-create-Z6S43XQ6.js} +6 -6
- package/dist/{tax-region-tax-override-edit-GPE6K7HE.js → tax-region-tax-override-edit-4EOURL2M.js} +6 -6
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ATTRIBUTE_TYPE_OPTIONS,
|
|
3
3
|
createAttributeSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W62DN2I2.js";
|
|
5
5
|
import {
|
|
6
6
|
SortableList
|
|
7
7
|
} from "./chunk-IIFQ7KYL.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-3QSRE5LS.js";
|
|
32
32
|
import {
|
|
33
33
|
require_dist
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KWFSBUD6.js";
|
|
35
35
|
import "./chunk-MXM5ZD4Y.js";
|
|
36
36
|
import "./chunk-DSQRFZCO.js";
|
|
37
37
|
import "./chunk-LHE6LM6S.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UpdateAttributeSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W62DN2I2.js";
|
|
4
4
|
import {
|
|
5
5
|
HandleInput
|
|
6
6
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
Form
|
|
20
20
|
} from "./chunk-3QSRE5LS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-KWFSBUD6.js";
|
|
22
22
|
import {
|
|
23
23
|
useProductAttribute,
|
|
24
24
|
useUpdateProductAttribute
|
package/dist/{attribute-edit-possible-value-RVXOKCBF.js → attribute-edit-possible-value-BJSQCTNO.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UpdatePossibleValueSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W62DN2I2.js";
|
|
4
4
|
import "./chunk-TKGWSUEI.js";
|
|
5
5
|
import {
|
|
6
6
|
KeyboundForm
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
Form
|
|
14
14
|
} from "./chunk-3QSRE5LS.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KWFSBUD6.js";
|
|
16
16
|
import {
|
|
17
17
|
useProductAttribute,
|
|
18
18
|
useUpdateProductAttributeValue
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryDetailPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HFM6N7R3.js";
|
|
4
4
|
import "./chunk-7AV5EJJ5.js";
|
|
5
5
|
import "./chunk-VOTOLN64.js";
|
|
6
6
|
import "./chunk-Y456KVIN.js";
|
|
7
7
|
import "./chunk-2HV33DOE.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-3KRUGI6C.js";
|
|
9
|
+
import "./chunk-VVIJHBKM.js";
|
|
10
|
+
import "./chunk-5TIADRZ7.js";
|
|
11
11
|
import "./chunk-SANVDYAL.js";
|
|
12
12
|
import "./chunk-S4IDR46L.js";
|
|
13
13
|
import "./chunk-DB6ANJBO.js";
|
|
@@ -17,7 +17,7 @@ import "./chunk-E74OUNA3.js";
|
|
|
17
17
|
import "./chunk-U3I6S3RO.js";
|
|
18
18
|
import "./chunk-H6MYB7GB.js";
|
|
19
19
|
import "./chunk-THHRRYRS.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KWFSBUD6.js";
|
|
21
21
|
import "./chunk-FQERBIVS.js";
|
|
22
22
|
import "./chunk-ZOU25JF6.js";
|
|
23
23
|
import "./chunk-YN3FGNJM.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3KRUGI6C.js";
|
|
4
|
+
import "./chunk-VVIJHBKM.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableFilters
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5TIADRZ7.js";
|
|
8
8
|
import "./chunk-SANVDYAL.js";
|
|
9
9
|
import {
|
|
10
10
|
useProductTableQuery
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import "./chunk-3QSRE5LS.js";
|
|
23
23
|
import "./chunk-U3I6S3RO.js";
|
|
24
24
|
import "./chunk-THHRRYRS.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-KWFSBUD6.js";
|
|
26
26
|
import "./chunk-FQERBIVS.js";
|
|
27
27
|
import {
|
|
28
28
|
_DataTable,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
buildOfferGridData,
|
|
5
5
|
usePriceListCurrencyData,
|
|
6
6
|
usePriceListGridColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BZPOERWW.js";
|
|
8
8
|
import {
|
|
9
9
|
useCustomerGroupTableColumns
|
|
10
10
|
} from "./chunk-54EPH67T.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useOfferTableColumns,
|
|
13
13
|
useOfferTableFilters,
|
|
14
14
|
useOfferTableQuery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NQEXDESI.js";
|
|
16
16
|
import {
|
|
17
17
|
extractPricesFromOffers
|
|
18
18
|
} from "./chunk-KVAD5JGS.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AttributeValueInput
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MM5RRCPX.js";
|
|
4
4
|
import {
|
|
5
5
|
TabbedForm,
|
|
6
6
|
defineTabMeta,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-6BAPAIQM.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KWFSBUD6.js";
|
|
22
22
|
import {
|
|
23
23
|
useCreateProductVariant,
|
|
24
24
|
useProduct
|
|
@@ -32,7 +32,7 @@ import { z } from "zod";
|
|
|
32
32
|
var CreateProductVariantSchema = z.object({
|
|
33
33
|
title: z.string().min(1),
|
|
34
34
|
sku: z.string().optional(),
|
|
35
|
-
options: z.record(z.string()).optional()
|
|
35
|
+
options: z.record(z.string(), z.string()).optional()
|
|
36
36
|
});
|
|
37
37
|
var CreateVariantDetailsSchema = CreateProductVariantSchema.pick({
|
|
38
38
|
title: true,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-YWMY2I7B.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3KRUGI6C.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableFilters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5TIADRZ7.js";
|
|
11
11
|
import {
|
|
12
12
|
useProductTableQuery
|
|
13
13
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -162,13 +162,14 @@ import { useTranslation as useTranslation2 } from "react-i18next";
|
|
|
162
162
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
163
163
|
var PAGE_STEP = 3;
|
|
164
164
|
var isBaseRow = (price) => {
|
|
165
|
+
if (!price) return false;
|
|
165
166
|
const rules = price.price_rules ?? [];
|
|
166
167
|
const extraRules = rules.filter((r) => r.attribute !== "offer_id");
|
|
167
168
|
return extraRules.length === 0;
|
|
168
169
|
};
|
|
169
170
|
var OfferPricingSection = ({ offer }) => {
|
|
170
171
|
const { t } = useTranslation2();
|
|
171
|
-
const prices = (offer.prices ?? []).filter(isBaseRow).sort(
|
|
172
|
+
const prices = (offer.prices ?? []).filter((p) => Boolean(p) && isBaseRow(p)).sort(
|
|
172
173
|
(a, b) => (a.currency_code ?? "").localeCompare(b.currency_code ?? "")
|
|
173
174
|
);
|
|
174
175
|
const hasPrices = prices.length > 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3KRUGI6C.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5TIADRZ7.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
9
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G2KWNZV6.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-3QSRE5LS.js";
|
|
56
56
|
import {
|
|
57
57
|
require_dist
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KWFSBUD6.js";
|
|
59
59
|
import {
|
|
60
60
|
_DataTable,
|
|
61
61
|
useDataTable
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-2HTCCPOG.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KRUGI6C.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5TIADRZ7.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useOfferTableColumns,
|
|
9
9
|
useOfferTableFilters,
|
|
10
10
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQEXDESI.js";
|
|
12
12
|
import {
|
|
13
13
|
IconAvatar
|
|
14
14
|
} from "./chunk-U2EI2ZLM.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-GNNOFJAK.js";
|
|
21
21
|
import {
|
|
22
22
|
useMemberTableQuery
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QEBISX7V.js";
|
|
24
24
|
import {
|
|
25
25
|
useOrderTableQuery
|
|
26
26
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-E74OUNA3.js";
|
|
39
39
|
import {
|
|
40
40
|
require_dist
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KWFSBUD6.js";
|
|
42
42
|
import {
|
|
43
43
|
_DataTable,
|
|
44
44
|
useDataTable
|
|
@@ -82,23 +82,25 @@ var PriceListCreateRegionPriceSchema = z.object({
|
|
|
82
82
|
amount: z.string().or(z.number()).optional()
|
|
83
83
|
});
|
|
84
84
|
var PriceListCreateProductVariantSchema = z.object({
|
|
85
|
-
currency_prices: z.record(PriceListCreateCurrencyPriceSchema.optional()),
|
|
86
|
-
region_prices: z.record(PriceListCreateRegionPriceSchema.optional())
|
|
85
|
+
currency_prices: z.record(z.string(), PriceListCreateCurrencyPriceSchema.optional()),
|
|
86
|
+
region_prices: z.record(z.string(), PriceListCreateRegionPriceSchema.optional())
|
|
87
87
|
});
|
|
88
88
|
var PriceListCreateProductVariantsSchema = z.record(
|
|
89
|
+
z.string(),
|
|
89
90
|
PriceListCreateProductVariantSchema
|
|
90
91
|
);
|
|
91
92
|
var PriceListCreateProductsSchema = z.record(
|
|
93
|
+
z.string(),
|
|
92
94
|
z.object({
|
|
93
95
|
variants: PriceListCreateProductVariantsSchema
|
|
94
96
|
})
|
|
95
97
|
);
|
|
96
98
|
var PriceListCreateOfferSchema = z.object({
|
|
97
99
|
variant_id: z.string(),
|
|
98
|
-
currency_prices: z.record(PriceListCreateCurrencyPriceSchema.optional()),
|
|
99
|
-
region_prices: z.record(PriceListCreateRegionPriceSchema.optional())
|
|
100
|
+
currency_prices: z.record(z.string(), PriceListCreateCurrencyPriceSchema.optional()),
|
|
101
|
+
region_prices: z.record(z.string(), PriceListCreateRegionPriceSchema.optional())
|
|
100
102
|
});
|
|
101
|
-
var PriceListCreateOffersSchema = z.record(PriceListCreateOfferSchema);
|
|
103
|
+
var PriceListCreateOffersSchema = z.record(z.string(), PriceListCreateOfferSchema);
|
|
102
104
|
var PriceListUpdateCurrencyPriceSchema = z.object({
|
|
103
105
|
amount: z.string().or(z.number()).optional(),
|
|
104
106
|
id: z.string().nullish()
|
|
@@ -108,22 +110,24 @@ var PriceListUpdateRegionPriceSchema = z.object({
|
|
|
108
110
|
id: z.string().nullish()
|
|
109
111
|
});
|
|
110
112
|
var PriceListUpdateProductVariantsSchema = z.record(
|
|
113
|
+
z.string(),
|
|
111
114
|
z.object({
|
|
112
115
|
currency_prices: z.record(PriceListUpdateCurrencyPriceSchema.optional()),
|
|
113
116
|
region_prices: z.record(PriceListUpdateRegionPriceSchema.optional())
|
|
114
117
|
})
|
|
115
118
|
);
|
|
116
119
|
var PriceListUpdateProductsSchema = z.record(
|
|
120
|
+
z.string(),
|
|
117
121
|
z.object({
|
|
118
122
|
variants: PriceListUpdateProductVariantsSchema
|
|
119
123
|
})
|
|
120
124
|
);
|
|
121
125
|
var PriceListUpdateOfferSchema = z.object({
|
|
122
126
|
variant_id: z.string(),
|
|
123
|
-
currency_prices: z.record(PriceListUpdateCurrencyPriceSchema.optional()),
|
|
124
|
-
region_prices: z.record(PriceListUpdateRegionPriceSchema.optional())
|
|
127
|
+
currency_prices: z.record(z.string(), PriceListUpdateCurrencyPriceSchema.optional()),
|
|
128
|
+
region_prices: z.record(z.string(), PriceListUpdateRegionPriceSchema.optional())
|
|
125
129
|
});
|
|
126
|
-
var PriceListUpdateOffersSchema = z.record(PriceListUpdateOfferSchema);
|
|
130
|
+
var PriceListUpdateOffersSchema = z.record(z.string(), PriceListUpdateOfferSchema);
|
|
127
131
|
|
|
128
132
|
// src/pages/price-lists/common/hooks/use-price-list-grid-columns.tsx
|
|
129
133
|
import { useMemo } from "react";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KOURHC2N.js";
|
|
4
4
|
import {
|
|
5
5
|
useSellersTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QEBISX7V.js";
|
|
7
7
|
import {
|
|
8
8
|
DateCell
|
|
9
9
|
} from "./chunk-F3XPA5ID.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-H6MYB7GB.js";
|
|
16
16
|
import {
|
|
17
17
|
require_dist
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KWFSBUD6.js";
|
|
19
19
|
import {
|
|
20
20
|
_DataTable,
|
|
21
21
|
useDataTable
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-VWPX7GLC.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3KRUGI6C.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5TIADRZ7.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTableQuery
|
|
12
12
|
} from "./chunk-S4IDR46L.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
buildOfferGridData,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BZPOERWW.js";
|
|
7
7
|
import {
|
|
8
8
|
useOfferTableColumns,
|
|
9
9
|
useOfferTableFilters,
|
|
10
10
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQEXDESI.js";
|
|
12
12
|
import {
|
|
13
13
|
extractPricesFromOffers
|
|
14
14
|
} from "./chunk-KVAD5JGS.js";
|
|
@@ -43,8 +43,8 @@ import {
|
|
|
43
43
|
import { z } from "zod";
|
|
44
44
|
var PriceListPricesAddSchema = z.object({
|
|
45
45
|
product_ids: z.array(z.object({ id: z.string() })).min(1),
|
|
46
|
-
offer_ids: z.array(z.string())
|
|
47
|
-
offers: PriceListCreateOffersSchema
|
|
46
|
+
offer_ids: z.array(z.string()),
|
|
47
|
+
offers: PriceListCreateOffersSchema
|
|
48
48
|
});
|
|
49
49
|
var PriceListPricesAddProductIdsSchema = PriceListPricesAddSchema.pick(
|
|
50
50
|
{
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "./chunk-2HV33DOE.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableColumns
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3KRUGI6C.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableFilters
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5TIADRZ7.js";
|
|
23
23
|
import {
|
|
24
24
|
useProductTableQuery
|
|
25
25
|
} from "./chunk-S4IDR46L.js";
|