@jsdev_ninja/core 0.16.0 → 0.18.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.
@@ -7,6 +7,7 @@ export declare const AddressSchema: z.ZodObject<{
7
7
  floor: z.ZodOptional<z.ZodString>;
8
8
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
9
9
  apartmentNumber: z.ZodOptional<z.ZodString>;
10
+ zip: z.ZodOptional<z.ZodString>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  country?: string | undefined;
12
13
  city?: string | undefined;
@@ -15,6 +16,7 @@ export declare const AddressSchema: z.ZodObject<{
15
16
  floor?: string | undefined;
16
17
  apartmentEnterNumber?: string | undefined;
17
18
  apartmentNumber?: string | undefined;
19
+ zip?: string | undefined;
18
20
  }, {
19
21
  country?: string | undefined;
20
22
  city?: string | undefined;
@@ -23,6 +25,7 @@ export declare const AddressSchema: z.ZodObject<{
23
25
  floor?: string | undefined;
24
26
  apartmentEnterNumber?: string | undefined;
25
27
  apartmentNumber?: string | undefined;
28
+ zip?: string | undefined;
26
29
  }>;
27
30
  export type TAddress = z.infer<typeof AddressSchema>;
28
31
  //# sourceMappingURL=Address.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../lib/entities/Address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../lib/entities/Address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -7,4 +7,5 @@ export const AddressSchema = z.object({
7
7
  floor: z.string().optional(),
8
8
  apartmentEnterNumber: z.string().optional(),
9
9
  apartmentNumber: z.string().optional(),
10
+ zip: z.string().optional(),
10
11
  });
@@ -93,6 +93,7 @@ export declare const EzInvoiceSchema: z.ZodObject<{
93
93
  date?: number | undefined;
94
94
  warning?: string | undefined;
95
95
  }>;
96
+ export type TEzInvoice = z.infer<typeof EzInvoiceSchema>;
96
97
  export declare const InvoiceSchema: z.ZodObject<{
97
98
  id: z.ZodString;
98
99
  number: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../lib/entities/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCxB,CAAC"}
1
+ {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../lib/entities/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCxB,CAAC"}
@@ -1755,6 +1755,7 @@ export declare const OrderSchema: z.ZodObject<{
1755
1755
  floor: z.ZodOptional<z.ZodString>;
1756
1756
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
1757
1757
  apartmentNumber: z.ZodOptional<z.ZodString>;
1758
+ zip: z.ZodOptional<z.ZodString>;
1758
1759
  }, "strip", z.ZodTypeAny, {
1759
1760
  country?: string | undefined;
1760
1761
  city?: string | undefined;
@@ -1763,6 +1764,7 @@ export declare const OrderSchema: z.ZodObject<{
1763
1764
  floor?: string | undefined;
1764
1765
  apartmentEnterNumber?: string | undefined;
1765
1766
  apartmentNumber?: string | undefined;
1767
+ zip?: string | undefined;
1766
1768
  }, {
1767
1769
  country?: string | undefined;
1768
1770
  city?: string | undefined;
@@ -1771,6 +1773,7 @@ export declare const OrderSchema: z.ZodObject<{
1771
1773
  floor?: string | undefined;
1772
1774
  apartmentEnterNumber?: string | undefined;
1773
1775
  apartmentNumber?: string | undefined;
1776
+ zip?: string | undefined;
1774
1777
  }>>;
1775
1778
  isAnonymous: z.ZodBoolean;
1776
1779
  createdDate: z.ZodNumber;
@@ -1800,6 +1803,7 @@ export declare const OrderSchema: z.ZodObject<{
1800
1803
  floor?: string | undefined;
1801
1804
  apartmentEnterNumber?: string | undefined;
1802
1805
  apartmentNumber?: string | undefined;
1806
+ zip?: string | undefined;
1803
1807
  } | undefined;
1804
1808
  paymentType?: "none" | "external" | "j5" | undefined;
1805
1809
  organizationId?: string | null | undefined;
@@ -1826,6 +1830,7 @@ export declare const OrderSchema: z.ZodObject<{
1826
1830
  floor?: string | undefined;
1827
1831
  apartmentEnterNumber?: string | undefined;
1828
1832
  apartmentNumber?: string | undefined;
1833
+ zip?: string | undefined;
1829
1834
  } | undefined;
1830
1835
  paymentType?: "none" | "external" | "j5" | undefined;
1831
1836
  organizationId?: string | null | undefined;
@@ -1839,6 +1844,7 @@ export declare const OrderSchema: z.ZodObject<{
1839
1844
  floor: z.ZodOptional<z.ZodString>;
1840
1845
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
1841
1846
  apartmentNumber: z.ZodOptional<z.ZodString>;
1847
+ zip: z.ZodOptional<z.ZodString>;
1842
1848
  }, "strip", z.ZodTypeAny, {
1843
1849
  country?: string | undefined;
1844
1850
  city?: string | undefined;
@@ -1847,6 +1853,7 @@ export declare const OrderSchema: z.ZodObject<{
1847
1853
  floor?: string | undefined;
1848
1854
  apartmentEnterNumber?: string | undefined;
1849
1855
  apartmentNumber?: string | undefined;
1856
+ zip?: string | undefined;
1850
1857
  }, {
1851
1858
  country?: string | undefined;
1852
1859
  city?: string | undefined;
@@ -1855,6 +1862,7 @@ export declare const OrderSchema: z.ZodObject<{
1855
1862
  floor?: string | undefined;
1856
1863
  apartmentEnterNumber?: string | undefined;
1857
1864
  apartmentNumber?: string | undefined;
1865
+ zip?: string | undefined;
1858
1866
  }>>;
1859
1867
  nameOnInvoice: z.ZodOptional<z.ZodString>;
1860
1868
  emailOnInvoice: z.ZodOptional<z.ZodString>;
@@ -2306,6 +2314,111 @@ export declare const OrderSchema: z.ZodObject<{
2306
2314
  date?: number | undefined;
2307
2315
  warning?: string | undefined;
2308
2316
  }>>;
2317
+ /**
2318
+ * Set when an admin records a full payment against o.invoice / o.ezInvoice.
2319
+ * Epoch millis. Absent means no payment has been recorded via the admin payment flow.
2320
+ * A row is "open" iff: invoice exists AND invoicePaidAt is unset AND ezReceipt is unset.
2321
+ */
2322
+ invoicePaidAt: z.ZodOptional<z.ZodNumber>;
2323
+ /**
2324
+ * EZcount receipt stored after recording payment.
2325
+ * Mirrors EzInvoiceSchema shape (doc_uuid, pdf_link, doc_number, …).
2326
+ * Present only after a successful recordInvoicePayment call.
2327
+ */
2328
+ ezReceipt: z.ZodOptional<z.ZodObject<{
2329
+ doc_uuid: z.ZodString;
2330
+ pdf_link: z.ZodString;
2331
+ pdf_link_copy: z.ZodString;
2332
+ doc_number: z.ZodString;
2333
+ sent_mails: z.ZodArray<z.ZodString, "many">;
2334
+ success: z.ZodBoolean;
2335
+ ua_uuid: z.ZodString;
2336
+ calculatedData: z.ZodObject<{
2337
+ _COMMENT: z.ZodOptional<z.ZodString>;
2338
+ transaction_id: z.ZodString;
2339
+ date: z.ZodString;
2340
+ currency: z.ZodString;
2341
+ rate: z.ZodNumber;
2342
+ vat: z.ZodString;
2343
+ vat_price: z.ZodNumber;
2344
+ price_discount: z.ZodNumber;
2345
+ price_discount_in_currency: z.ZodNumber;
2346
+ price_total: z.ZodString;
2347
+ price_total_in_currency: z.ZodNumber;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ date: string;
2350
+ vat: string;
2351
+ currency: string;
2352
+ transaction_id: string;
2353
+ rate: number;
2354
+ vat_price: number;
2355
+ price_discount: number;
2356
+ price_discount_in_currency: number;
2357
+ price_total: string;
2358
+ price_total_in_currency: number;
2359
+ _COMMENT?: string | undefined;
2360
+ }, {
2361
+ date: string;
2362
+ vat: string;
2363
+ currency: string;
2364
+ transaction_id: string;
2365
+ rate: number;
2366
+ vat_price: number;
2367
+ price_discount: number;
2368
+ price_discount_in_currency: number;
2369
+ price_total: string;
2370
+ price_total_in_currency: number;
2371
+ _COMMENT?: string | undefined;
2372
+ }>;
2373
+ warning: z.ZodOptional<z.ZodString>;
2374
+ date: z.ZodOptional<z.ZodNumber>;
2375
+ }, "strip", z.ZodTypeAny, {
2376
+ doc_uuid: string;
2377
+ pdf_link: string;
2378
+ pdf_link_copy: string;
2379
+ doc_number: string;
2380
+ sent_mails: string[];
2381
+ success: boolean;
2382
+ ua_uuid: string;
2383
+ calculatedData: {
2384
+ date: string;
2385
+ vat: string;
2386
+ currency: string;
2387
+ transaction_id: string;
2388
+ rate: number;
2389
+ vat_price: number;
2390
+ price_discount: number;
2391
+ price_discount_in_currency: number;
2392
+ price_total: string;
2393
+ price_total_in_currency: number;
2394
+ _COMMENT?: string | undefined;
2395
+ };
2396
+ date?: number | undefined;
2397
+ warning?: string | undefined;
2398
+ }, {
2399
+ doc_uuid: string;
2400
+ pdf_link: string;
2401
+ pdf_link_copy: string;
2402
+ doc_number: string;
2403
+ sent_mails: string[];
2404
+ success: boolean;
2405
+ ua_uuid: string;
2406
+ calculatedData: {
2407
+ date: string;
2408
+ vat: string;
2409
+ currency: string;
2410
+ transaction_id: string;
2411
+ rate: number;
2412
+ vat_price: number;
2413
+ price_discount: number;
2414
+ price_discount_in_currency: number;
2415
+ price_total: string;
2416
+ price_total_in_currency: number;
2417
+ _COMMENT?: string | undefined;
2418
+ };
2419
+ date?: number | undefined;
2420
+ warning?: string | undefined;
2421
+ }>>;
2309
2422
  updatedBy: z.ZodOptional<z.ZodString>;
2310
2423
  updatedAt: z.ZodOptional<z.ZodNumber>;
2311
2424
  }, "strip", z.ZodTypeAny, {
@@ -2527,6 +2640,7 @@ export declare const OrderSchema: z.ZodObject<{
2527
2640
  floor?: string | undefined;
2528
2641
  apartmentEnterNumber?: string | undefined;
2529
2642
  apartmentNumber?: string | undefined;
2643
+ zip?: string | undefined;
2530
2644
  } | undefined;
2531
2645
  paymentType?: "none" | "external" | "j5" | undefined;
2532
2646
  organizationId?: string | undefined;
@@ -2562,6 +2676,7 @@ export declare const OrderSchema: z.ZodObject<{
2562
2676
  floor?: string | undefined;
2563
2677
  apartmentEnterNumber?: string | undefined;
2564
2678
  apartmentNumber?: string | undefined;
2679
+ zip?: string | undefined;
2565
2680
  } | undefined;
2566
2681
  paymentType?: "none" | "external" | "j5" | undefined;
2567
2682
  organizationId?: string | null | undefined;
@@ -2687,6 +2802,31 @@ export declare const OrderSchema: z.ZodObject<{
2687
2802
  date?: number | undefined;
2688
2803
  warning?: string | undefined;
2689
2804
  } | undefined;
2805
+ invoicePaidAt?: number | undefined;
2806
+ ezReceipt?: {
2807
+ doc_uuid: string;
2808
+ pdf_link: string;
2809
+ pdf_link_copy: string;
2810
+ doc_number: string;
2811
+ sent_mails: string[];
2812
+ success: boolean;
2813
+ ua_uuid: string;
2814
+ calculatedData: {
2815
+ date: string;
2816
+ vat: string;
2817
+ currency: string;
2818
+ transaction_id: string;
2819
+ rate: number;
2820
+ vat_price: number;
2821
+ price_discount: number;
2822
+ price_discount_in_currency: number;
2823
+ price_total: string;
2824
+ price_total_in_currency: number;
2825
+ _COMMENT?: string | undefined;
2826
+ };
2827
+ date?: number | undefined;
2828
+ warning?: string | undefined;
2829
+ } | undefined;
2690
2830
  updatedBy?: string | undefined;
2691
2831
  updatedAt?: number | undefined;
2692
2832
  }, {
@@ -2908,6 +3048,7 @@ export declare const OrderSchema: z.ZodObject<{
2908
3048
  floor?: string | undefined;
2909
3049
  apartmentEnterNumber?: string | undefined;
2910
3050
  apartmentNumber?: string | undefined;
3051
+ zip?: string | undefined;
2911
3052
  } | undefined;
2912
3053
  paymentType?: "none" | "external" | "j5" | undefined;
2913
3054
  organizationId?: string | undefined;
@@ -2943,6 +3084,7 @@ export declare const OrderSchema: z.ZodObject<{
2943
3084
  floor?: string | undefined;
2944
3085
  apartmentEnterNumber?: string | undefined;
2945
3086
  apartmentNumber?: string | undefined;
3087
+ zip?: string | undefined;
2946
3088
  } | undefined;
2947
3089
  paymentType?: "none" | "external" | "j5" | undefined;
2948
3090
  organizationId?: string | null | undefined;
@@ -3068,6 +3210,31 @@ export declare const OrderSchema: z.ZodObject<{
3068
3210
  date?: number | undefined;
3069
3211
  warning?: string | undefined;
3070
3212
  } | undefined;
3213
+ invoicePaidAt?: number | undefined;
3214
+ ezReceipt?: {
3215
+ doc_uuid: string;
3216
+ pdf_link: string;
3217
+ pdf_link_copy: string;
3218
+ doc_number: string;
3219
+ sent_mails: string[];
3220
+ success: boolean;
3221
+ ua_uuid: string;
3222
+ calculatedData: {
3223
+ date: string;
3224
+ vat: string;
3225
+ currency: string;
3226
+ transaction_id: string;
3227
+ rate: number;
3228
+ vat_price: number;
3229
+ price_discount: number;
3230
+ price_discount_in_currency: number;
3231
+ price_total: string;
3232
+ price_total_in_currency: number;
3233
+ _COMMENT?: string | undefined;
3234
+ };
3235
+ date?: number | undefined;
3236
+ warning?: string | undefined;
3237
+ } | undefined;
3071
3238
  updatedBy?: string | undefined;
3072
3239
  updatedAt?: number | undefined;
3073
3240
  }>;
@@ -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;AAkBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKF,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -76,6 +76,18 @@ export const OrderSchema = z.object({
76
76
  invoice: InvoiceSchema.optional(),
77
77
  ezInvoice: EzInvoiceSchema.optional(),
78
78
  ezDeliveryNote: EzDeliveryNoteSchema.optional(),
79
+ /**
80
+ * Set when an admin records a full payment against o.invoice / o.ezInvoice.
81
+ * Epoch millis. Absent means no payment has been recorded via the admin payment flow.
82
+ * A row is "open" iff: invoice exists AND invoicePaidAt is unset AND ezReceipt is unset.
83
+ */
84
+ invoicePaidAt: z.number().int().positive().optional(),
85
+ /**
86
+ * EZcount receipt stored after recording payment.
87
+ * Mirrors EzInvoiceSchema shape (doc_uuid, pdf_link, doc_number, …).
88
+ * Present only after a successful recordInvoicePayment call.
89
+ */
90
+ ezReceipt: EzInvoiceSchema.optional(),
79
91
  // Audit: who last changed the order + when (epoch millis). Stamped by admin writes.
80
92
  updatedBy: z.string().optional(),
81
93
  updatedAt: z.number().optional(),
@@ -40,6 +40,7 @@ export declare const OrganizationSchema: z.ZodObject<{
40
40
  floor: z.ZodOptional<z.ZodString>;
41
41
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
42
42
  apartmentNumber: z.ZodOptional<z.ZodString>;
43
+ zip: z.ZodOptional<z.ZodString>;
43
44
  }, "strip", z.ZodTypeAny, {
44
45
  country?: string | undefined;
45
46
  city?: string | undefined;
@@ -48,6 +49,7 @@ export declare const OrganizationSchema: z.ZodObject<{
48
49
  floor?: string | undefined;
49
50
  apartmentEnterNumber?: string | undefined;
50
51
  apartmentNumber?: string | undefined;
52
+ zip?: string | undefined;
51
53
  }, {
52
54
  country?: string | undefined;
53
55
  city?: string | undefined;
@@ -56,8 +58,13 @@ export declare const OrganizationSchema: z.ZodObject<{
56
58
  floor?: string | undefined;
57
59
  apartmentEnterNumber?: string | undefined;
58
60
  apartmentNumber?: string | undefined;
61
+ zip?: string | undefined;
59
62
  }>>;
60
63
  groupId: z.ZodOptional<z.ZodString>;
64
+ phone: z.ZodOptional<z.ZodString>;
65
+ email: z.ZodOptional<z.ZodString>;
66
+ notes: z.ZodOptional<z.ZodString>;
67
+ freeShipping: z.ZodOptional<z.ZodBoolean>;
61
68
  }, "strip", z.ZodTypeAny, {
62
69
  id: string;
63
70
  name: string;
@@ -67,6 +74,7 @@ export declare const OrganizationSchema: z.ZodObject<{
67
74
  id: string;
68
75
  name: string;
69
76
  }[];
77
+ email?: string | undefined;
70
78
  address?: {
71
79
  country?: string | undefined;
72
80
  city?: string | undefined;
@@ -75,11 +83,15 @@ export declare const OrganizationSchema: z.ZodObject<{
75
83
  floor?: string | undefined;
76
84
  apartmentEnterNumber?: string | undefined;
77
85
  apartmentNumber?: string | undefined;
86
+ zip?: string | undefined;
78
87
  } | undefined;
88
+ phone?: string | undefined;
79
89
  discountPercentage?: number | undefined;
80
90
  nameOnInvoice?: string | undefined;
81
91
  companyNumber?: string | undefined;
82
92
  groupId?: string | undefined;
93
+ notes?: string | undefined;
94
+ freeShipping?: boolean | undefined;
83
95
  }, {
84
96
  id: string;
85
97
  name: string;
@@ -89,6 +101,7 @@ export declare const OrganizationSchema: z.ZodObject<{
89
101
  id: string;
90
102
  name: string;
91
103
  }[];
104
+ email?: string | undefined;
92
105
  address?: {
93
106
  country?: string | undefined;
94
107
  city?: string | undefined;
@@ -97,11 +110,15 @@ export declare const OrganizationSchema: z.ZodObject<{
97
110
  floor?: string | undefined;
98
111
  apartmentEnterNumber?: string | undefined;
99
112
  apartmentNumber?: string | undefined;
113
+ zip?: string | undefined;
100
114
  } | undefined;
115
+ phone?: string | undefined;
101
116
  discountPercentage?: number | undefined;
102
117
  nameOnInvoice?: string | undefined;
103
118
  companyNumber?: string | undefined;
104
119
  groupId?: string | undefined;
120
+ notes?: string | undefined;
121
+ freeShipping?: boolean | undefined;
105
122
  }>;
106
123
  export declare const NewOrganizationSchema: z.ZodObject<Omit<{
107
124
  id: z.ZodString;
@@ -131,6 +148,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
131
148
  floor: z.ZodOptional<z.ZodString>;
132
149
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
133
150
  apartmentNumber: z.ZodOptional<z.ZodString>;
151
+ zip: z.ZodOptional<z.ZodString>;
134
152
  }, "strip", z.ZodTypeAny, {
135
153
  country?: string | undefined;
136
154
  city?: string | undefined;
@@ -139,6 +157,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
139
157
  floor?: string | undefined;
140
158
  apartmentEnterNumber?: string | undefined;
141
159
  apartmentNumber?: string | undefined;
160
+ zip?: string | undefined;
142
161
  }, {
143
162
  country?: string | undefined;
144
163
  city?: string | undefined;
@@ -147,8 +166,13 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
147
166
  floor?: string | undefined;
148
167
  apartmentEnterNumber?: string | undefined;
149
168
  apartmentNumber?: string | undefined;
169
+ zip?: string | undefined;
150
170
  }>>;
151
171
  groupId: z.ZodOptional<z.ZodString>;
172
+ phone: z.ZodOptional<z.ZodString>;
173
+ email: z.ZodOptional<z.ZodString>;
174
+ notes: z.ZodOptional<z.ZodString>;
175
+ freeShipping: z.ZodOptional<z.ZodBoolean>;
152
176
  }, "id">, "strip", z.ZodTypeAny, {
153
177
  name: string;
154
178
  paymentType: "none" | "external" | "j5";
@@ -157,6 +181,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
157
181
  id: string;
158
182
  name: string;
159
183
  }[];
184
+ email?: string | undefined;
160
185
  address?: {
161
186
  country?: string | undefined;
162
187
  city?: string | undefined;
@@ -165,11 +190,15 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
165
190
  floor?: string | undefined;
166
191
  apartmentEnterNumber?: string | undefined;
167
192
  apartmentNumber?: string | undefined;
193
+ zip?: string | undefined;
168
194
  } | undefined;
195
+ phone?: string | undefined;
169
196
  discountPercentage?: number | undefined;
170
197
  nameOnInvoice?: string | undefined;
171
198
  companyNumber?: string | undefined;
172
199
  groupId?: string | undefined;
200
+ notes?: string | undefined;
201
+ freeShipping?: boolean | undefined;
173
202
  }, {
174
203
  name: string;
175
204
  paymentType: "none" | "external" | "j5";
@@ -178,6 +207,7 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
178
207
  id: string;
179
208
  name: string;
180
209
  }[];
210
+ email?: string | undefined;
181
211
  address?: {
182
212
  country?: string | undefined;
183
213
  city?: string | undefined;
@@ -186,11 +216,15 @@ export declare const NewOrganizationSchema: z.ZodObject<Omit<{
186
216
  floor?: string | undefined;
187
217
  apartmentEnterNumber?: string | undefined;
188
218
  apartmentNumber?: string | undefined;
219
+ zip?: string | undefined;
189
220
  } | undefined;
221
+ phone?: string | undefined;
190
222
  discountPercentage?: number | undefined;
191
223
  nameOnInvoice?: string | undefined;
192
224
  companyNumber?: string | undefined;
193
225
  groupId?: string | undefined;
226
+ notes?: string | undefined;
227
+ freeShipping?: boolean | undefined;
194
228
  }>;
195
229
  export type TBillingAccount = z.infer<typeof BillingAccountSchema>;
196
230
  export type TNewOrganization = z.infer<typeof NewOrganizationSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"Organization.d.ts","sourceRoot":"","sources":["../../../lib/entities/Organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -17,5 +17,10 @@ export const OrganizationSchema = z.object({
17
17
  companyNumber: z.string().optional(),
18
18
  address: AddressSchema.optional(),
19
19
  groupId: z.string().optional(),
20
+ // Contact / billing details (admin-managed, optional — see company-edit-like-demo plan)
21
+ phone: z.string().optional(),
22
+ email: z.string().optional(),
23
+ notes: z.string().optional(),
24
+ freeShipping: z.boolean().optional(),
20
25
  });
21
26
  export const NewOrganizationSchema = OrganizationSchema.omit({ id: true });
@@ -18,6 +18,7 @@ export declare const ProfileSchema: z.ZodObject<{
18
18
  floor: z.ZodOptional<z.ZodString>;
19
19
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
20
20
  apartmentNumber: z.ZodOptional<z.ZodString>;
21
+ zip: z.ZodOptional<z.ZodString>;
21
22
  }, "strip", z.ZodTypeAny, {
22
23
  country?: string | undefined;
23
24
  city?: string | undefined;
@@ -26,6 +27,7 @@ export declare const ProfileSchema: z.ZodObject<{
26
27
  floor?: string | undefined;
27
28
  apartmentEnterNumber?: string | undefined;
28
29
  apartmentNumber?: string | undefined;
30
+ zip?: string | undefined;
29
31
  }, {
30
32
  country?: string | undefined;
31
33
  city?: string | undefined;
@@ -34,6 +36,7 @@ export declare const ProfileSchema: z.ZodObject<{
34
36
  floor?: string | undefined;
35
37
  apartmentEnterNumber?: string | undefined;
36
38
  apartmentNumber?: string | undefined;
39
+ zip?: string | undefined;
37
40
  }>>;
38
41
  isAnonymous: z.ZodBoolean;
39
42
  createdDate: z.ZodNumber;
@@ -65,6 +68,7 @@ export declare const ProfileSchema: z.ZodObject<{
65
68
  floor?: string | undefined;
66
69
  apartmentEnterNumber?: string | undefined;
67
70
  apartmentNumber?: string | undefined;
71
+ zip?: string | undefined;
68
72
  } | undefined;
69
73
  paymentType?: "none" | "external" | "j5" | undefined;
70
74
  organizationId?: string | null | undefined;
@@ -91,6 +95,7 @@ export declare const ProfileSchema: z.ZodObject<{
91
95
  floor?: string | undefined;
92
96
  apartmentEnterNumber?: string | undefined;
93
97
  apartmentNumber?: string | undefined;
98
+ zip?: string | undefined;
94
99
  } | undefined;
95
100
  paymentType?: "none" | "external" | "j5" | undefined;
96
101
  organizationId?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../lib/entities/Profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBzB,8CAA8C;;IAE9C,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpD,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../lib/entities/Profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBzB,8CAA8C;;IAE9C,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpD,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -22,6 +22,7 @@ export declare const StoreSchema: z.ZodObject<{
22
22
  floor: z.ZodOptional<z.ZodString>;
23
23
  apartmentEnterNumber: z.ZodOptional<z.ZodString>;
24
24
  apartmentNumber: z.ZodOptional<z.ZodString>;
25
+ zip: z.ZodOptional<z.ZodString>;
25
26
  }, "strip", z.ZodTypeAny, {
26
27
  country?: string | undefined;
27
28
  city?: string | undefined;
@@ -30,6 +31,7 @@ export declare const StoreSchema: z.ZodObject<{
30
31
  floor?: string | undefined;
31
32
  apartmentEnterNumber?: string | undefined;
32
33
  apartmentNumber?: string | undefined;
34
+ zip?: string | undefined;
33
35
  }, {
34
36
  country?: string | undefined;
35
37
  city?: string | undefined;
@@ -38,6 +40,7 @@ export declare const StoreSchema: z.ZodObject<{
38
40
  floor?: string | undefined;
39
41
  apartmentEnterNumber?: string | undefined;
40
42
  apartmentNumber?: string | undefined;
43
+ zip?: string | undefined;
41
44
  }>>;
42
45
  companyNumber: z.ZodOptional<z.ZodString>;
43
46
  }, "strip", z.ZodTypeAny, {
@@ -59,6 +62,7 @@ export declare const StoreSchema: z.ZodObject<{
59
62
  floor?: string | undefined;
60
63
  apartmentEnterNumber?: string | undefined;
61
64
  apartmentNumber?: string | undefined;
65
+ zip?: string | undefined;
62
66
  } | undefined;
63
67
  companyNumber?: string | undefined;
64
68
  deliveryPrice?: number | undefined;
@@ -83,6 +87,7 @@ export declare const StoreSchema: z.ZodObject<{
83
87
  floor?: string | undefined;
84
88
  apartmentEnterNumber?: string | undefined;
85
89
  apartmentNumber?: string | undefined;
90
+ zip?: string | undefined;
86
91
  } | undefined;
87
92
  companyNumber?: string | undefined;
88
93
  deliveryPrice?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB,sCAAoC,CAAC;AAEnE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"Store.d.ts","sourceRoot":"","sources":["../../../lib/entities/Store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB,sCAAoC,CAAC;AAEnE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -13,6 +13,7 @@ export * from "./Discount";
13
13
  export * from "./Organization";
14
14
  export * from "./OrganizationGroup";
15
15
  export * from "./DeliveryNote";
16
+ export * from "./Invoice";
16
17
  export * from "./Payment";
17
18
  export * from "./Supplier";
18
19
  export * from "./SupplierInvoice";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC"}
@@ -13,6 +13,7 @@ export * from "./Discount";
13
13
  export * from "./Organization";
14
14
  export * from "./OrganizationGroup";
15
15
  export * from "./DeliveryNote";
16
+ export * from "./Invoice";
16
17
  export * from "./Payment";
17
18
  export * from "./Supplier";
18
19
  export * from "./SupplierInvoice";
package/dist/lib/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./utils";
3
3
  export { FirebaseAPI, storeCollections, systemCollections } from "./firebase-api";
4
4
  export * from "./utils/math/math";
5
5
  export * from "./utils/storeCalculator/storeCalculator";
6
+ //