@jsdev_ninja/core 0.13.18 → 0.13.19
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 +5 -3
- 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/entities/DeliveryNote.d.ts +3 -0
- package/dist/entities/DeliveryNote.d.ts.map +1 -1
- package/dist/entities/DeliveryNote.js +1 -0
- package/dist/entities/Invoice.d.ts +3 -0
- package/dist/entities/Invoice.d.ts.map +1 -1
- package/dist/entities/Invoice.js +1 -0
- package/dist/entities/Order.d.ts +15 -5
- package/dist/entities/Order.d.ts.map +1 -1
- package/dist/entities/Profile.d.ts +3 -3
- package/dist/entities/Profile.js +1 -1
- package/lib/entities/DeliveryNote.ts +1 -0
- package/lib/entities/Invoice.ts +1 -0
- package/package.json +1 -1
|
@@ -82,6 +82,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
|
|
|
82
82
|
_COMMENT?: string | undefined;
|
|
83
83
|
}>;
|
|
84
84
|
warning: z.ZodOptional<z.ZodString>;
|
|
85
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
85
86
|
}, "strip", z.ZodTypeAny, {
|
|
86
87
|
doc_uuid: string;
|
|
87
88
|
pdf_link: string;
|
|
@@ -103,6 +104,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
|
|
|
103
104
|
price_total_in_currency: number;
|
|
104
105
|
_COMMENT?: string | undefined;
|
|
105
106
|
};
|
|
107
|
+
date?: number | undefined;
|
|
106
108
|
warning?: string | undefined;
|
|
107
109
|
}, {
|
|
108
110
|
doc_uuid: string;
|
|
@@ -125,6 +127,7 @@ export declare const DeliveryNoteSchema: z.ZodObject<{
|
|
|
125
127
|
price_total_in_currency: number;
|
|
126
128
|
_COMMENT?: string | undefined;
|
|
127
129
|
};
|
|
130
|
+
date?: number | undefined;
|
|
128
131
|
warning?: string | undefined;
|
|
129
132
|
}>;
|
|
130
133
|
export type TDeliveryNote = z.infer<typeof DeliveryNoteSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeliveryNote.d.ts","sourceRoot":"","sources":["../../lib/entities/DeliveryNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAGH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"DeliveryNote.d.ts","sourceRoot":"","sources":["../../lib/entities/DeliveryNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AAGH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAEvE"}
|
|
@@ -24,6 +24,7 @@ export const DeliveryNoteSchema = z.object({
|
|
|
24
24
|
ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
|
|
25
25
|
calculatedData: CalculatedDataSchema,
|
|
26
26
|
warning: z.string().optional(),
|
|
27
|
+
date: z.number().optional(),
|
|
27
28
|
});
|
|
28
29
|
// Validation functions
|
|
29
30
|
export function isDeliveryNote(data) {
|
|
@@ -45,6 +45,7 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
45
45
|
_COMMENT?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
warning: z.ZodOptional<z.ZodString>;
|
|
48
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
48
49
|
}, "strip", z.ZodTypeAny, {
|
|
49
50
|
doc_uuid: string;
|
|
50
51
|
pdf_link: string;
|
|
@@ -66,6 +67,7 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
66
67
|
price_total_in_currency: number;
|
|
67
68
|
_COMMENT?: string | undefined;
|
|
68
69
|
};
|
|
70
|
+
date?: number | undefined;
|
|
69
71
|
warning?: string | undefined;
|
|
70
72
|
}, {
|
|
71
73
|
doc_uuid: string;
|
|
@@ -88,6 +90,7 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
88
90
|
price_total_in_currency: number;
|
|
89
91
|
_COMMENT?: string | undefined;
|
|
90
92
|
};
|
|
93
|
+
date?: number | undefined;
|
|
91
94
|
warning?: string | undefined;
|
|
92
95
|
}>;
|
|
93
96
|
export type TInvoice = z.infer<typeof InvoiceSchema>;
|
|
@@ -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,aAAa
|
|
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,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGrD,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,QAAQ,CAEzD"}
|
package/dist/entities/Invoice.js
CHANGED
|
@@ -11,6 +11,7 @@ export const InvoiceSchema = z.object({
|
|
|
11
11
|
ua_uuid: z.string().uuid("UA UUID must be a valid UUID"),
|
|
12
12
|
calculatedData: CalculatedDataSchema,
|
|
13
13
|
warning: z.string().optional(),
|
|
14
|
+
date: z.number().optional(),
|
|
14
15
|
});
|
|
15
16
|
// Validation functions
|
|
16
17
|
export function isInvoice(data) {
|
package/dist/entities/Order.d.ts
CHANGED
|
@@ -789,7 +789,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
789
789
|
createdDate: z.ZodNumber;
|
|
790
790
|
lastActivityDate: z.ZodNumber;
|
|
791
791
|
paymentType: z.ZodEnum<["default", "delayed"]>;
|
|
792
|
-
organizationId: z.ZodOptional<z.ZodString
|
|
792
|
+
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
794
|
type: "Profile";
|
|
795
795
|
id: string;
|
|
@@ -814,7 +814,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
814
814
|
apartmentEnterNumber: string;
|
|
815
815
|
apartmentNumber: string;
|
|
816
816
|
} | undefined;
|
|
817
|
-
organizationId?: string | undefined;
|
|
817
|
+
organizationId?: string | null | undefined;
|
|
818
818
|
}, {
|
|
819
819
|
type: "Profile";
|
|
820
820
|
id: string;
|
|
@@ -839,7 +839,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
839
839
|
apartmentEnterNumber: string;
|
|
840
840
|
apartmentNumber: string;
|
|
841
841
|
} | undefined;
|
|
842
|
-
organizationId?: string | undefined;
|
|
842
|
+
organizationId?: string | null | undefined;
|
|
843
843
|
}>;
|
|
844
844
|
nameOnInvoice: z.ZodOptional<z.ZodString>;
|
|
845
845
|
clientComment: z.ZodOptional<z.ZodString>;
|
|
@@ -889,6 +889,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
889
889
|
_COMMENT?: string | undefined;
|
|
890
890
|
}>;
|
|
891
891
|
warning: z.ZodOptional<z.ZodString>;
|
|
892
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
892
893
|
}, "strip", z.ZodTypeAny, {
|
|
893
894
|
doc_uuid: string;
|
|
894
895
|
pdf_link: string;
|
|
@@ -910,6 +911,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
910
911
|
price_total_in_currency: number;
|
|
911
912
|
_COMMENT?: string | undefined;
|
|
912
913
|
};
|
|
914
|
+
date?: number | undefined;
|
|
913
915
|
warning?: string | undefined;
|
|
914
916
|
}, {
|
|
915
917
|
doc_uuid: string;
|
|
@@ -932,6 +934,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
932
934
|
price_total_in_currency: number;
|
|
933
935
|
_COMMENT?: string | undefined;
|
|
934
936
|
};
|
|
937
|
+
date?: number | undefined;
|
|
935
938
|
warning?: string | undefined;
|
|
936
939
|
}>>;
|
|
937
940
|
invoice: z.ZodOptional<z.ZodObject<{
|
|
@@ -980,6 +983,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
980
983
|
_COMMENT?: string | undefined;
|
|
981
984
|
}>;
|
|
982
985
|
warning: z.ZodOptional<z.ZodString>;
|
|
986
|
+
date: z.ZodOptional<z.ZodNumber>;
|
|
983
987
|
}, "strip", z.ZodTypeAny, {
|
|
984
988
|
doc_uuid: string;
|
|
985
989
|
pdf_link: string;
|
|
@@ -1001,6 +1005,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1001
1005
|
price_total_in_currency: number;
|
|
1002
1006
|
_COMMENT?: string | undefined;
|
|
1003
1007
|
};
|
|
1008
|
+
date?: number | undefined;
|
|
1004
1009
|
warning?: string | undefined;
|
|
1005
1010
|
}, {
|
|
1006
1011
|
doc_uuid: string;
|
|
@@ -1023,6 +1028,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1023
1028
|
price_total_in_currency: number;
|
|
1024
1029
|
_COMMENT?: string | undefined;
|
|
1025
1030
|
};
|
|
1031
|
+
date?: number | undefined;
|
|
1026
1032
|
warning?: string | undefined;
|
|
1027
1033
|
}>>;
|
|
1028
1034
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
@@ -1173,7 +1179,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1173
1179
|
apartmentEnterNumber: string;
|
|
1174
1180
|
apartmentNumber: string;
|
|
1175
1181
|
} | undefined;
|
|
1176
|
-
organizationId?: string | undefined;
|
|
1182
|
+
organizationId?: string | null | undefined;
|
|
1177
1183
|
};
|
|
1178
1184
|
organizationId?: string | undefined;
|
|
1179
1185
|
nameOnInvoice?: string | undefined;
|
|
@@ -1201,6 +1207,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1201
1207
|
price_total_in_currency: number;
|
|
1202
1208
|
_COMMENT?: string | undefined;
|
|
1203
1209
|
};
|
|
1210
|
+
date?: number | undefined;
|
|
1204
1211
|
warning?: string | undefined;
|
|
1205
1212
|
} | undefined;
|
|
1206
1213
|
invoice?: {
|
|
@@ -1224,6 +1231,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1224
1231
|
price_total_in_currency: number;
|
|
1225
1232
|
_COMMENT?: string | undefined;
|
|
1226
1233
|
};
|
|
1234
|
+
date?: number | undefined;
|
|
1227
1235
|
warning?: string | undefined;
|
|
1228
1236
|
} | undefined;
|
|
1229
1237
|
billingAccount?: {
|
|
@@ -1365,7 +1373,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1365
1373
|
apartmentEnterNumber: string;
|
|
1366
1374
|
apartmentNumber: string;
|
|
1367
1375
|
} | undefined;
|
|
1368
|
-
organizationId?: string | undefined;
|
|
1376
|
+
organizationId?: string | null | undefined;
|
|
1369
1377
|
};
|
|
1370
1378
|
organizationId?: string | undefined;
|
|
1371
1379
|
nameOnInvoice?: string | undefined;
|
|
@@ -1393,6 +1401,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1393
1401
|
price_total_in_currency: number;
|
|
1394
1402
|
_COMMENT?: string | undefined;
|
|
1395
1403
|
};
|
|
1404
|
+
date?: number | undefined;
|
|
1396
1405
|
warning?: string | undefined;
|
|
1397
1406
|
} | undefined;
|
|
1398
1407
|
invoice?: {
|
|
@@ -1416,6 +1425,7 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
1416
1425
|
price_total_in_currency: number;
|
|
1417
1426
|
_COMMENT?: string | undefined;
|
|
1418
1427
|
};
|
|
1428
|
+
date?: number | undefined;
|
|
1419
1429
|
warning?: string | undefined;
|
|
1420
1430
|
} | undefined;
|
|
1421
1431
|
billingAccount?: {
|
|
@@ -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;AAgBxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../lib/entities/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCtB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -41,7 +41,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
41
41
|
createdDate: z.ZodNumber;
|
|
42
42
|
lastActivityDate: z.ZodNumber;
|
|
43
43
|
paymentType: z.ZodEnum<["default", "delayed"]>;
|
|
44
|
-
organizationId: z.ZodOptional<z.ZodString
|
|
44
|
+
organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
type: "Profile";
|
|
47
47
|
id: string;
|
|
@@ -66,7 +66,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
66
66
|
apartmentEnterNumber: string;
|
|
67
67
|
apartmentNumber: string;
|
|
68
68
|
} | undefined;
|
|
69
|
-
organizationId?: string | undefined;
|
|
69
|
+
organizationId?: string | null | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
type: "Profile";
|
|
72
72
|
id: string;
|
|
@@ -91,7 +91,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
91
91
|
apartmentEnterNumber: string;
|
|
92
92
|
apartmentNumber: string;
|
|
93
93
|
} | undefined;
|
|
94
|
-
organizationId?: string | undefined;
|
|
94
|
+
organizationId?: string | null | undefined;
|
|
95
95
|
}>;
|
|
96
96
|
export type TProfile = z.infer<typeof ProfileSchema>;
|
|
97
97
|
export declare function createEmptyProfile(): TProfile;
|
package/dist/entities/Profile.js
CHANGED
|
@@ -20,7 +20,7 @@ export const ProfileSchema = z.object({
|
|
|
20
20
|
createdDate: z.number(),
|
|
21
21
|
lastActivityDate: z.number(),
|
|
22
22
|
paymentType: ProfilePaymentTypeSchema,
|
|
23
|
-
organizationId: z.string().optional(),
|
|
23
|
+
organizationId: z.string().optional().nullable(),
|
|
24
24
|
});
|
|
25
25
|
export function createEmptyProfile() {
|
|
26
26
|
return {
|
package/lib/entities/Invoice.ts
CHANGED