warqadui 0.0.305 → 0.0.307
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +19 -2
- package/dist/index.mjs +19 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -403,7 +403,7 @@ declare const Enums: {
|
|
|
403
403
|
purchase: readonly ["cash", "credit"];
|
|
404
404
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
405
405
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
406
|
-
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online"];
|
|
406
|
+
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online", "shipping"];
|
|
407
407
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
408
408
|
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
409
409
|
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
|
@@ -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
|
@@ -403,7 +403,7 @@ declare const Enums: {
|
|
|
403
403
|
purchase: readonly ["cash", "credit"];
|
|
404
404
|
stockTransferTypes: readonly ["pack", "product", "pack to product"];
|
|
405
405
|
forexTypes: readonly ["direct", "exchange", "supplier exchange"];
|
|
406
|
-
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online"];
|
|
406
|
+
branchTypes: readonly ["shop", "store", "office", "apartment", "website", "online", "shipping"];
|
|
407
407
|
documentTypes: readonly ["none", "id", "passport", "license"];
|
|
408
408
|
whatsappMessageTypes: readonly ["greeting", "payment", "invoice"];
|
|
409
409
|
whatsappMessageStatuses: readonly ["queued", "sent", "delivered", "read", "failed", "undelivered"];
|
|
@@ -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
|
@@ -333,7 +333,8 @@ var Enums = {
|
|
|
333
333
|
"office",
|
|
334
334
|
"apartment",
|
|
335
335
|
"website",
|
|
336
|
-
"online"
|
|
336
|
+
"online",
|
|
337
|
+
"shipping"
|
|
337
338
|
],
|
|
338
339
|
documentTypes: ["none", "id", "passport", "license"],
|
|
339
340
|
whatsappMessageTypes: ["greeting", "payment", "invoice"],
|
|
@@ -353,7 +354,8 @@ var Enums = {
|
|
|
353
354
|
integrationTypes: ["twilio-whatsapp"],
|
|
354
355
|
postTypes: ["umrah", "hajj", "visa", "hotel"],
|
|
355
356
|
postStatus: ["draft", "published", "archived"],
|
|
356
|
-
collectionTypes: ["collected", "pending"]
|
|
357
|
+
collectionTypes: ["collected", "pending"],
|
|
358
|
+
factories: ["oktay & haji badri & factory"]
|
|
357
359
|
};
|
|
358
360
|
var Enums_default = Enums;
|
|
359
361
|
|
|
@@ -41633,6 +41635,7 @@ var createProductSchema2 = import_zod95.z.object({
|
|
|
41633
41635
|
description: import_zod95.z.string().trim().toLowerCase().optional(),
|
|
41634
41636
|
price: import_zod95.z.coerce.number().min(0, "Price must be positive"),
|
|
41635
41637
|
originalPrice: import_zod95.z.coerce.number().min(0, "Original price must be positive").optional().nullable(),
|
|
41638
|
+
factory: import_zod95.z.enum(Enums_default.factories).optional(),
|
|
41636
41639
|
brand: import_zod95.z.string().optional(),
|
|
41637
41640
|
category: import_zod95.z.string().optional(),
|
|
41638
41641
|
subCategory: import_zod95.z.string().optional(),
|
|
@@ -41695,6 +41698,7 @@ function ProductForm2({
|
|
|
41695
41698
|
description: "",
|
|
41696
41699
|
price: 0,
|
|
41697
41700
|
originalPrice: null,
|
|
41701
|
+
factory: void 0,
|
|
41698
41702
|
brand: void 0,
|
|
41699
41703
|
category: void 0,
|
|
41700
41704
|
subCategory: void 0,
|
|
@@ -41810,6 +41814,7 @@ function ProductForm2({
|
|
|
41810
41814
|
methods.reset({
|
|
41811
41815
|
...res,
|
|
41812
41816
|
wholeSale: res.wholeSale ?? res.wholesalePrice ?? null,
|
|
41817
|
+
factory: res.factory ?? void 0,
|
|
41813
41818
|
sizes: mappedSizes
|
|
41814
41819
|
});
|
|
41815
41820
|
if (res.image) {
|
|
@@ -41876,6 +41881,18 @@ function ProductForm2({
|
|
|
41876
41881
|
type: "number",
|
|
41877
41882
|
placeholder: "0.00"
|
|
41878
41883
|
}
|
|
41884
|
+
),
|
|
41885
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
41886
|
+
Fields_default.Select,
|
|
41887
|
+
{
|
|
41888
|
+
label: "Factory",
|
|
41889
|
+
form: methods,
|
|
41890
|
+
name: "factory",
|
|
41891
|
+
options: Enums_default.factories.map((factory) => ({
|
|
41892
|
+
value: factory,
|
|
41893
|
+
label: factory
|
|
41894
|
+
}))
|
|
41895
|
+
}
|
|
41879
41896
|
)
|
|
41880
41897
|
] })
|
|
41881
41898
|
] }),
|
package/dist/index.mjs
CHANGED
|
@@ -114,7 +114,8 @@ var Enums = {
|
|
|
114
114
|
"office",
|
|
115
115
|
"apartment",
|
|
116
116
|
"website",
|
|
117
|
-
"online"
|
|
117
|
+
"online",
|
|
118
|
+
"shipping"
|
|
118
119
|
],
|
|
119
120
|
documentTypes: ["none", "id", "passport", "license"],
|
|
120
121
|
whatsappMessageTypes: ["greeting", "payment", "invoice"],
|
|
@@ -134,7 +135,8 @@ var Enums = {
|
|
|
134
135
|
integrationTypes: ["twilio-whatsapp"],
|
|
135
136
|
postTypes: ["umrah", "hajj", "visa", "hotel"],
|
|
136
137
|
postStatus: ["draft", "published", "archived"],
|
|
137
|
-
collectionTypes: ["collected", "pending"]
|
|
138
|
+
collectionTypes: ["collected", "pending"],
|
|
139
|
+
factories: ["oktay & haji badri & factory"]
|
|
138
140
|
};
|
|
139
141
|
var Enums_default = Enums;
|
|
140
142
|
|
|
@@ -41828,6 +41830,7 @@ var createProductSchema2 = z38.object({
|
|
|
41828
41830
|
description: z38.string().trim().toLowerCase().optional(),
|
|
41829
41831
|
price: z38.coerce.number().min(0, "Price must be positive"),
|
|
41830
41832
|
originalPrice: z38.coerce.number().min(0, "Original price must be positive").optional().nullable(),
|
|
41833
|
+
factory: z38.enum(Enums_default.factories).optional(),
|
|
41831
41834
|
brand: z38.string().optional(),
|
|
41832
41835
|
category: z38.string().optional(),
|
|
41833
41836
|
subCategory: z38.string().optional(),
|
|
@@ -41890,6 +41893,7 @@ function ProductForm2({
|
|
|
41890
41893
|
description: "",
|
|
41891
41894
|
price: 0,
|
|
41892
41895
|
originalPrice: null,
|
|
41896
|
+
factory: void 0,
|
|
41893
41897
|
brand: void 0,
|
|
41894
41898
|
category: void 0,
|
|
41895
41899
|
subCategory: void 0,
|
|
@@ -42005,6 +42009,7 @@ function ProductForm2({
|
|
|
42005
42009
|
methods.reset({
|
|
42006
42010
|
...res,
|
|
42007
42011
|
wholeSale: res.wholeSale ?? res.wholesalePrice ?? null,
|
|
42012
|
+
factory: res.factory ?? void 0,
|
|
42008
42013
|
sizes: mappedSizes
|
|
42009
42014
|
});
|
|
42010
42015
|
if (res.image) {
|
|
@@ -42071,6 +42076,18 @@ function ProductForm2({
|
|
|
42071
42076
|
type: "number",
|
|
42072
42077
|
placeholder: "0.00"
|
|
42073
42078
|
}
|
|
42079
|
+
),
|
|
42080
|
+
/* @__PURE__ */ jsx234(
|
|
42081
|
+
Fields_default.Select,
|
|
42082
|
+
{
|
|
42083
|
+
label: "Factory",
|
|
42084
|
+
form: methods,
|
|
42085
|
+
name: "factory",
|
|
42086
|
+
options: Enums_default.factories.map((factory) => ({
|
|
42087
|
+
value: factory,
|
|
42088
|
+
label: factory
|
|
42089
|
+
}))
|
|
42090
|
+
}
|
|
42074
42091
|
)
|
|
42075
42092
|
] })
|
|
42076
42093
|
] }),
|