@jsdev_ninja/core 0.13.30 → 0.13.32

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.
@@ -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,EAA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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(),
@@ -31,6 +31,32 @@ export declare const OrganizationSchema: z.ZodObject<{
31
31
  name: string;
32
32
  }>, "many">;
33
33
  paymentType: z.ZodEnum<["external", "j5", "none"]>;
34
+ companyNumber: z.ZodOptional<z.ZodString>;
35
+ address: z.ZodOptional<z.ZodObject<{
36
+ country: z.ZodOptional<z.ZodString>;
37
+ city: z.ZodOptional<z.ZodString>;
38
+ street: z.ZodOptional<z.ZodString>;
39
+ streetNumber: z.ZodOptional<z.ZodString>;
40
+ floor: z.ZodOptional<z.ZodString>;
41
+ apartmentEnterNumber: z.ZodOptional<z.ZodString>;
42
+ apartmentNumber: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ country?: string | undefined;
45
+ city?: string | undefined;
46
+ street?: string | undefined;
47
+ streetNumber?: string | undefined;
48
+ floor?: string | undefined;
49
+ apartmentEnterNumber?: string | undefined;
50
+ apartmentNumber?: string | undefined;
51
+ }, {
52
+ country?: string | undefined;
53
+ city?: string | undefined;
54
+ street?: string | undefined;
55
+ streetNumber?: string | undefined;
56
+ floor?: string | undefined;
57
+ apartmentEnterNumber?: string | undefined;
58
+ apartmentNumber?: string | undefined;
59
+ }>>;
34
60
  }, "strip", z.ZodTypeAny, {
35
61
  id: string;
36
62
  name: string;
@@ -40,8 +66,18 @@ export declare const OrganizationSchema: z.ZodObject<{
40
66
  id: string;
41
67
  name: string;
42
68
  }[];
69
+ address?: {
70
+ country?: string | undefined;
71
+ city?: string | undefined;
72
+ street?: string | undefined;
73
+ streetNumber?: string | undefined;
74
+ floor?: string | undefined;
75
+ apartmentEnterNumber?: string | undefined;
76
+ apartmentNumber?: string | undefined;
77
+ } | undefined;
43
78
  discountPercentage?: number | undefined;
44
79
  nameOnInvoice?: string | undefined;
80
+ companyNumber?: string | undefined;
45
81
  }, {
46
82
  id: string;
47
83
  name: string;
@@ -51,8 +87,18 @@ export declare const OrganizationSchema: z.ZodObject<{
51
87
  id: string;
52
88
  name: string;
53
89
  }[];
90
+ address?: {
91
+ country?: string | undefined;
92
+ city?: string | undefined;
93
+ street?: string | undefined;
94
+ streetNumber?: string | undefined;
95
+ floor?: string | undefined;
96
+ apartmentEnterNumber?: string | undefined;
97
+ apartmentNumber?: string | undefined;
98
+ } | undefined;
54
99
  discountPercentage?: number | undefined;
55
100
  nameOnInvoice?: string | undefined;
101
+ companyNumber?: string | undefined;
56
102
  }>;
57
103
  export declare const NewOrganizationSchema: z.ZodObject<Omit<{
58
104
  id: z.ZodString;
@@ -73,6 +119,32 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
73
119
  name: string;
74
120
  }>, "many">;
75
121
  paymentType: z.ZodEnum<["external", "j5", "none"]>;
122
+ companyNumber: z.ZodOptional<z.ZodString>;
123
+ address: z.ZodOptional<z.ZodObject<{
124
+ country: z.ZodOptional<z.ZodString>;
125
+ city: z.ZodOptional<z.ZodString>;
126
+ street: z.ZodOptional<z.ZodString>;
127
+ streetNumber: z.ZodOptional<z.ZodString>;
128
+ floor: z.ZodOptional<z.ZodString>;
129
+ apartmentEnterNumber: z.ZodOptional<z.ZodString>;
130
+ apartmentNumber: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ country?: string | undefined;
133
+ city?: string | undefined;
134
+ street?: string | undefined;
135
+ streetNumber?: string | undefined;
136
+ floor?: string | undefined;
137
+ apartmentEnterNumber?: string | undefined;
138
+ apartmentNumber?: string | undefined;
139
+ }, {
140
+ country?: string | undefined;
141
+ city?: string | undefined;
142
+ street?: string | undefined;
143
+ streetNumber?: string | undefined;
144
+ floor?: string | undefined;
145
+ apartmentEnterNumber?: string | undefined;
146
+ apartmentNumber?: string | undefined;
147
+ }>>;
76
148
  }, "id">, "strip", z.ZodTypeAny, {
77
149
  name: string;
78
150
  paymentType: "none" | "external" | "j5";
@@ -81,8 +153,18 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
81
153
  id: string;
82
154
  name: string;
83
155
  }[];
156
+ address?: {
157
+ country?: string | undefined;
158
+ city?: string | undefined;
159
+ street?: string | undefined;
160
+ streetNumber?: string | undefined;
161
+ floor?: string | undefined;
162
+ apartmentEnterNumber?: string | undefined;
163
+ apartmentNumber?: string | undefined;
164
+ } | undefined;
84
165
  discountPercentage?: number | undefined;
85
166
  nameOnInvoice?: string | undefined;
167
+ companyNumber?: string | undefined;
86
168
  }, {
87
169
  name: string;
88
170
  paymentType: "none" | "external" | "j5";
@@ -91,8 +173,18 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
91
173
  id: string;
92
174
  name: string;
93
175
  }[];
176
+ address?: {
177
+ country?: string | undefined;
178
+ city?: string | undefined;
179
+ street?: string | undefined;
180
+ streetNumber?: string | undefined;
181
+ floor?: string | undefined;
182
+ apartmentEnterNumber?: string | undefined;
183
+ apartmentNumber?: string | undefined;
184
+ } | undefined;
94
185
  discountPercentage?: number | undefined;
95
186
  nameOnInvoice?: string | undefined;
187
+ companyNumber?: string | undefined;
96
188
  }>;
97
189
  export type TBillingAccount = z.infer<typeof BillingAccountSchema>;
98
190
  export type TNewOrganization = z.infer<typeof NewOrganizationSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../lib/entities/Organization.ts"],"names":[],"mappings":"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}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { PaymentTypeSchema } from "./Payment";
3
+ import { AddressSchema } from "./Address";
3
4
  export const BillingAccountSchema = z.object({
4
5
  number: z.string(),
5
6
  name: z.string(),
@@ -12,6 +13,8 @@ export const OrganizationSchema = z.object({
12
13
  discountPercentage: z.number().positive().min(0).max(100).optional(),
13
14
  nameOnInvoice: z.string().optional(),
14
15
  billingAccounts: z.array(BillingAccountSchema),
15
- paymentType: PaymentTypeSchema
16
+ paymentType: PaymentTypeSchema,
17
+ companyNumber: z.string().optional(),
18
+ address: AddressSchema.optional(),
16
19
  });
17
20
  export const NewOrganizationSchema = OrganizationSchema.omit({ id: true });
@@ -60,10 +60,10 @@ export declare const StoreSchema: z.ZodObject<{
60
60
  apartmentEnterNumber?: string | undefined;
61
61
  apartmentNumber?: string | undefined;
62
62
  } | undefined;
63
+ companyNumber?: string | undefined;
63
64
  deliveryPrice?: number | undefined;
64
65
  freeDeliveryPrice?: number | undefined;
65
66
  minimumOrder?: number | undefined;
66
- companyNumber?: string | undefined;
67
67
  }, {
68
68
  id: string;
69
69
  companyId: string;
@@ -84,10 +84,10 @@ export declare const StoreSchema: z.ZodObject<{
84
84
  apartmentEnterNumber?: string | undefined;
85
85
  apartmentNumber?: string | undefined;
86
86
  } | undefined;
87
+ companyNumber?: string | undefined;
87
88
  deliveryPrice?: number | undefined;
88
89
  freeDeliveryPrice?: number | undefined;
89
90
  minimumOrder?: number | undefined;
90
- companyNumber?: string | undefined;
91
91
  }>;
92
92
  export type TStore = z.infer<typeof StoreSchema>;
93
93
  //# sourceMappingURL=Store.d.ts.map