@jsdev_ninja/core 0.13.30 → 0.13.31
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/core.cjs.js +1 -1
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.es.js +68 -69
- package/dist/core.es.js.map +1 -1
- package/dist/core.umd.js +1 -1
- package/dist/core.umd.js.map +1 -1
- package/dist/lib/entities/Order.d.ts +43 -3
- package/dist/lib/entities/Order.d.ts.map +1 -1
- package/dist/lib/entities/Order.js +2 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -760,7 +760,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
760
760
|
freeDeliveryPrice?: number | undefined;
|
|
761
761
|
isVatIncludedInPrice?: boolean | undefined;
|
|
762
762
|
}>>;
|
|
763
|
-
orderDeliveryPrice: z.ZodOptional<z.ZodNumber>;
|
|
764
763
|
originalAmount: z.ZodOptional<z.ZodNumber>;
|
|
765
764
|
actualAmount: z.ZodOptional<z.ZodNumber>;
|
|
766
765
|
date: z.ZodNumber;
|
|
@@ -857,6 +856,31 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
857
856
|
} | undefined;
|
|
858
857
|
organizationId?: string | null | undefined;
|
|
859
858
|
}>>;
|
|
859
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
860
|
+
country: z.ZodOptional<z.ZodString>;
|
|
861
|
+
city: z.ZodOptional<z.ZodString>;
|
|
862
|
+
street: z.ZodOptional<z.ZodString>;
|
|
863
|
+
streetNumber: z.ZodOptional<z.ZodString>;
|
|
864
|
+
floor: z.ZodOptional<z.ZodString>;
|
|
865
|
+
apartmentEnterNumber: z.ZodOptional<z.ZodString>;
|
|
866
|
+
apartmentNumber: z.ZodOptional<z.ZodString>;
|
|
867
|
+
}, "strip", z.ZodTypeAny, {
|
|
868
|
+
country?: string | undefined;
|
|
869
|
+
city?: string | undefined;
|
|
870
|
+
street?: string | undefined;
|
|
871
|
+
streetNumber?: string | undefined;
|
|
872
|
+
floor?: string | undefined;
|
|
873
|
+
apartmentEnterNumber?: string | undefined;
|
|
874
|
+
apartmentNumber?: string | undefined;
|
|
875
|
+
}, {
|
|
876
|
+
country?: string | undefined;
|
|
877
|
+
city?: string | undefined;
|
|
878
|
+
street?: string | undefined;
|
|
879
|
+
streetNumber?: string | undefined;
|
|
880
|
+
floor?: string | undefined;
|
|
881
|
+
apartmentEnterNumber?: string | undefined;
|
|
882
|
+
apartmentNumber?: string | undefined;
|
|
883
|
+
}>>;
|
|
860
884
|
nameOnInvoice: z.ZodOptional<z.ZodString>;
|
|
861
885
|
clientComment: z.ZodOptional<z.ZodString>;
|
|
862
886
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
@@ -1395,6 +1419,15 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1395
1419
|
deliveryPrice?: number | undefined;
|
|
1396
1420
|
};
|
|
1397
1421
|
deliveryDate: number;
|
|
1422
|
+
address?: {
|
|
1423
|
+
country?: string | undefined;
|
|
1424
|
+
city?: string | undefined;
|
|
1425
|
+
street?: string | undefined;
|
|
1426
|
+
streetNumber?: string | undefined;
|
|
1427
|
+
floor?: string | undefined;
|
|
1428
|
+
apartmentEnterNumber?: string | undefined;
|
|
1429
|
+
apartmentNumber?: string | undefined;
|
|
1430
|
+
} | undefined;
|
|
1398
1431
|
paymentType?: "none" | "external" | "j5" | undefined;
|
|
1399
1432
|
organizationId?: string | undefined;
|
|
1400
1433
|
nameOnInvoice?: string | undefined;
|
|
@@ -1404,7 +1437,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1404
1437
|
freeDeliveryPrice?: number | undefined;
|
|
1405
1438
|
isVatIncludedInPrice?: boolean | undefined;
|
|
1406
1439
|
} | undefined;
|
|
1407
|
-
orderDeliveryPrice?: number | undefined;
|
|
1408
1440
|
originalAmount?: number | undefined;
|
|
1409
1441
|
actualAmount?: number | undefined;
|
|
1410
1442
|
client?: {
|
|
@@ -1653,6 +1685,15 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1653
1685
|
deliveryPrice?: number | undefined;
|
|
1654
1686
|
};
|
|
1655
1687
|
deliveryDate: number;
|
|
1688
|
+
address?: {
|
|
1689
|
+
country?: string | undefined;
|
|
1690
|
+
city?: string | undefined;
|
|
1691
|
+
street?: string | undefined;
|
|
1692
|
+
streetNumber?: string | undefined;
|
|
1693
|
+
floor?: string | undefined;
|
|
1694
|
+
apartmentEnterNumber?: string | undefined;
|
|
1695
|
+
apartmentNumber?: string | undefined;
|
|
1696
|
+
} | undefined;
|
|
1656
1697
|
paymentType?: "none" | "external" | "j5" | undefined;
|
|
1657
1698
|
organizationId?: string | undefined;
|
|
1658
1699
|
nameOnInvoice?: string | undefined;
|
|
@@ -1662,7 +1703,6 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1662
1703
|
freeDeliveryPrice?: number | undefined;
|
|
1663
1704
|
isVatIncludedInPrice?: boolean | undefined;
|
|
1664
1705
|
} | undefined;
|
|
1665
|
-
orderDeliveryPrice?: number | undefined;
|
|
1666
1706
|
originalAmount?: number | undefined;
|
|
1667
1707
|
actualAmount?: number | undefined;
|
|
1668
1708
|
client?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { DeliveryNoteSchema, EzDeliveryNoteSchema } from "./DeliveryNote";
|
|
|
6
6
|
import { BillingAccountSchema } from "./Organization";
|
|
7
7
|
import { EzInvoiceSchema, InvoiceSchema } from "./Invoice";
|
|
8
8
|
import { PaymentTypeSchema } from "./Payment";
|
|
9
|
+
import { AddressSchema } from "./Address";
|
|
9
10
|
// pending - order created / by user
|
|
10
11
|
// processing order accepted by store by admin
|
|
11
12
|
// delivered - order delivered by admin
|
|
@@ -46,12 +47,12 @@ export const OrderSchema = z.object({
|
|
|
46
47
|
isVatIncludedInPrice: z.boolean().optional(),
|
|
47
48
|
})
|
|
48
49
|
.optional(),
|
|
49
|
-
orderDeliveryPrice: z.number().optional(), // delivery price for order
|
|
50
50
|
originalAmount: z.number().positive().optional(), // what client pay
|
|
51
51
|
actualAmount: z.number().positive().optional(), // what store charge
|
|
52
52
|
date: z.number(),
|
|
53
53
|
deliveryDate: z.coerce.number(),
|
|
54
54
|
client: ProfileSchema.optional(),
|
|
55
|
+
address: AddressSchema.optional(),
|
|
55
56
|
nameOnInvoice: z.string().optional(),
|
|
56
57
|
clientComment: z.string().optional(),
|
|
57
58
|
organizationId: z.string().optional(),
|