warqadui 0.0.304 → 0.0.306
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -1
- package/dist/index.mjs +17 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -416,6 +416,7 @@ declare const Enums: {
|
|
|
416
416
|
postTypes: readonly ["umrah", "hajj", "visa", "hotel"];
|
|
417
417
|
postStatus: readonly ["draft", "published", "archived"];
|
|
418
418
|
collectionTypes: readonly ["collected", "pending"];
|
|
419
|
+
factories: readonly ["oktay & haji badri & factory"];
|
|
419
420
|
};
|
|
420
421
|
|
|
421
422
|
type CurrencyType$2 = (typeof Enums.currencies)[number];
|
package/dist/index.d.ts
CHANGED
|
@@ -416,6 +416,7 @@ declare const Enums: {
|
|
|
416
416
|
postTypes: readonly ["umrah", "hajj", "visa", "hotel"];
|
|
417
417
|
postStatus: readonly ["draft", "published", "archived"];
|
|
418
418
|
collectionTypes: readonly ["collected", "pending"];
|
|
419
|
+
factories: readonly ["oktay & haji badri & factory"];
|
|
419
420
|
};
|
|
420
421
|
|
|
421
422
|
type CurrencyType$2 = (typeof Enums.currencies)[number];
|
package/dist/index.js
CHANGED
|
@@ -353,7 +353,8 @@ var Enums = {
|
|
|
353
353
|
integrationTypes: ["twilio-whatsapp"],
|
|
354
354
|
postTypes: ["umrah", "hajj", "visa", "hotel"],
|
|
355
355
|
postStatus: ["draft", "published", "archived"],
|
|
356
|
-
collectionTypes: ["collected", "pending"]
|
|
356
|
+
collectionTypes: ["collected", "pending"],
|
|
357
|
+
factories: ["oktay & haji badri & factory"]
|
|
357
358
|
};
|
|
358
359
|
var Enums_default = Enums;
|
|
359
360
|
|
|
@@ -41633,6 +41634,7 @@ var createProductSchema2 = import_zod95.z.object({
|
|
|
41633
41634
|
description: import_zod95.z.string().trim().toLowerCase().optional(),
|
|
41634
41635
|
price: import_zod95.z.coerce.number().min(0, "Price must be positive"),
|
|
41635
41636
|
originalPrice: import_zod95.z.coerce.number().min(0, "Original price must be positive").optional().nullable(),
|
|
41637
|
+
factory: import_zod95.z.enum(Enums_default.factories).optional(),
|
|
41636
41638
|
brand: import_zod95.z.string().optional(),
|
|
41637
41639
|
category: import_zod95.z.string().optional(),
|
|
41638
41640
|
subCategory: import_zod95.z.string().optional(),
|
|
@@ -41695,6 +41697,7 @@ function ProductForm2({
|
|
|
41695
41697
|
description: "",
|
|
41696
41698
|
price: 0,
|
|
41697
41699
|
originalPrice: null,
|
|
41700
|
+
factory: void 0,
|
|
41698
41701
|
brand: void 0,
|
|
41699
41702
|
category: void 0,
|
|
41700
41703
|
subCategory: void 0,
|
|
@@ -41810,6 +41813,7 @@ function ProductForm2({
|
|
|
41810
41813
|
methods.reset({
|
|
41811
41814
|
...res,
|
|
41812
41815
|
wholeSale: res.wholeSale ?? res.wholesalePrice ?? null,
|
|
41816
|
+
factory: res.factory ?? void 0,
|
|
41813
41817
|
sizes: mappedSizes
|
|
41814
41818
|
});
|
|
41815
41819
|
if (res.image) {
|
|
@@ -41876,6 +41880,18 @@ function ProductForm2({
|
|
|
41876
41880
|
type: "number",
|
|
41877
41881
|
placeholder: "0.00"
|
|
41878
41882
|
}
|
|
41883
|
+
),
|
|
41884
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
41885
|
+
Fields_default.Select,
|
|
41886
|
+
{
|
|
41887
|
+
label: "Factory",
|
|
41888
|
+
form: methods,
|
|
41889
|
+
name: "factory",
|
|
41890
|
+
options: Enums_default.factories.map((factory) => ({
|
|
41891
|
+
value: factory,
|
|
41892
|
+
label: factory
|
|
41893
|
+
}))
|
|
41894
|
+
}
|
|
41879
41895
|
)
|
|
41880
41896
|
] })
|
|
41881
41897
|
] }),
|
package/dist/index.mjs
CHANGED
|
@@ -134,7 +134,8 @@ var Enums = {
|
|
|
134
134
|
integrationTypes: ["twilio-whatsapp"],
|
|
135
135
|
postTypes: ["umrah", "hajj", "visa", "hotel"],
|
|
136
136
|
postStatus: ["draft", "published", "archived"],
|
|
137
|
-
collectionTypes: ["collected", "pending"]
|
|
137
|
+
collectionTypes: ["collected", "pending"],
|
|
138
|
+
factories: ["oktay & haji badri & factory"]
|
|
138
139
|
};
|
|
139
140
|
var Enums_default = Enums;
|
|
140
141
|
|
|
@@ -41828,6 +41829,7 @@ var createProductSchema2 = z38.object({
|
|
|
41828
41829
|
description: z38.string().trim().toLowerCase().optional(),
|
|
41829
41830
|
price: z38.coerce.number().min(0, "Price must be positive"),
|
|
41830
41831
|
originalPrice: z38.coerce.number().min(0, "Original price must be positive").optional().nullable(),
|
|
41832
|
+
factory: z38.enum(Enums_default.factories).optional(),
|
|
41831
41833
|
brand: z38.string().optional(),
|
|
41832
41834
|
category: z38.string().optional(),
|
|
41833
41835
|
subCategory: z38.string().optional(),
|
|
@@ -41890,6 +41892,7 @@ function ProductForm2({
|
|
|
41890
41892
|
description: "",
|
|
41891
41893
|
price: 0,
|
|
41892
41894
|
originalPrice: null,
|
|
41895
|
+
factory: void 0,
|
|
41893
41896
|
brand: void 0,
|
|
41894
41897
|
category: void 0,
|
|
41895
41898
|
subCategory: void 0,
|
|
@@ -42005,6 +42008,7 @@ function ProductForm2({
|
|
|
42005
42008
|
methods.reset({
|
|
42006
42009
|
...res,
|
|
42007
42010
|
wholeSale: res.wholeSale ?? res.wholesalePrice ?? null,
|
|
42011
|
+
factory: res.factory ?? void 0,
|
|
42008
42012
|
sizes: mappedSizes
|
|
42009
42013
|
});
|
|
42010
42014
|
if (res.image) {
|
|
@@ -42071,6 +42075,18 @@ function ProductForm2({
|
|
|
42071
42075
|
type: "number",
|
|
42072
42076
|
placeholder: "0.00"
|
|
42073
42077
|
}
|
|
42078
|
+
),
|
|
42079
|
+
/* @__PURE__ */ jsx234(
|
|
42080
|
+
Fields_default.Select,
|
|
42081
|
+
{
|
|
42082
|
+
label: "Factory",
|
|
42083
|
+
form: methods,
|
|
42084
|
+
name: "factory",
|
|
42085
|
+
options: Enums_default.factories.map((factory) => ({
|
|
42086
|
+
value: factory,
|
|
42087
|
+
label: factory
|
|
42088
|
+
}))
|
|
42089
|
+
}
|
|
42074
42090
|
)
|
|
42075
42091
|
] })
|
|
42076
42092
|
] }),
|