@jsdev_ninja/core 0.13.54 → 0.13.56
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 +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.es.js +28 -26
- 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/Profile.d.ts.map +1 -1
- package/dist/lib/entities/Profile.js +2 -1
- package/dist/lib/entities/SupplierInvoice.d.ts +18 -0
- package/dist/lib/entities/SupplierInvoice.d.ts.map +1 -1
- package/dist/lib/entities/SupplierInvoice.js +3 -0
- package/dist/lib/firebase-api/index.d.ts +6 -12
- package/dist/lib/firebase-api/index.d.ts.map +1 -1
- package/dist/lib/firebase-api/index.js +2 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBxB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export const ProfileSchema = z.object({
|
|
|
8
8
|
companyId: notEmptyTextSchema,
|
|
9
9
|
storeId: notEmptyTextSchema,
|
|
10
10
|
tenantId: notEmptyTextSchema,
|
|
11
|
+
// @deprecated
|
|
11
12
|
clientType: z.enum(["user", "company"]),
|
|
12
13
|
companyName: z.string().optional(),
|
|
13
14
|
displayName: notEmptyTextSchema,
|
|
@@ -16,7 +17,7 @@ export const ProfileSchema = z.object({
|
|
|
16
17
|
address: AddressSchema.optional(),
|
|
17
18
|
isAnonymous: z.boolean(),
|
|
18
19
|
createdDate: z.number(),
|
|
19
|
-
lastActivityDate: z.number(),
|
|
20
|
+
lastActivityDate: z.number(), //todo
|
|
20
21
|
paymentType: PaymentTypeSchema.optional(),
|
|
21
22
|
organizationId: z.string().optional().nullable(),
|
|
22
23
|
});
|
|
@@ -108,6 +108,9 @@ export declare const SupplierInvoiceSchema: z.ZodObject<{
|
|
|
108
108
|
oldProfitPercentage: number;
|
|
109
109
|
newProfitPercentage: number;
|
|
110
110
|
}>, "many">;
|
|
111
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
totalBeforeVat: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
vat: z.ZodOptional<z.ZodNumber>;
|
|
111
114
|
}, "strip", z.ZodTypeAny, {
|
|
112
115
|
type: "SupplierInvoice";
|
|
113
116
|
id: string;
|
|
@@ -147,6 +150,9 @@ export declare const SupplierInvoiceSchema: z.ZodObject<{
|
|
|
147
150
|
oldProfitPercentage: number;
|
|
148
151
|
newProfitPercentage: number;
|
|
149
152
|
}[];
|
|
153
|
+
vat?: number | undefined;
|
|
154
|
+
total?: number | undefined;
|
|
155
|
+
totalBeforeVat?: number | undefined;
|
|
150
156
|
}, {
|
|
151
157
|
type: "SupplierInvoice";
|
|
152
158
|
id: string;
|
|
@@ -186,6 +192,9 @@ export declare const SupplierInvoiceSchema: z.ZodObject<{
|
|
|
186
192
|
oldProfitPercentage: number;
|
|
187
193
|
newProfitPercentage: number;
|
|
188
194
|
}[];
|
|
195
|
+
vat?: number | undefined;
|
|
196
|
+
total?: number | undefined;
|
|
197
|
+
totalBeforeVat?: number | undefined;
|
|
189
198
|
}>;
|
|
190
199
|
export declare const NewSupplierInvoiceSchema: z.ZodObject<Omit<{
|
|
191
200
|
type: z.ZodLiteral<"SupplierInvoice">;
|
|
@@ -296,6 +305,9 @@ export declare const NewSupplierInvoiceSchema: z.ZodObject<Omit<{
|
|
|
296
305
|
oldProfitPercentage: number;
|
|
297
306
|
newProfitPercentage: number;
|
|
298
307
|
}>, "many">;
|
|
308
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
totalBeforeVat: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
vat: z.ZodOptional<z.ZodNumber>;
|
|
299
311
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
300
312
|
type: "SupplierInvoice";
|
|
301
313
|
date: number;
|
|
@@ -334,6 +346,9 @@ export declare const NewSupplierInvoiceSchema: z.ZodObject<Omit<{
|
|
|
334
346
|
oldProfitPercentage: number;
|
|
335
347
|
newProfitPercentage: number;
|
|
336
348
|
}[];
|
|
349
|
+
vat?: number | undefined;
|
|
350
|
+
total?: number | undefined;
|
|
351
|
+
totalBeforeVat?: number | undefined;
|
|
337
352
|
}, {
|
|
338
353
|
type: "SupplierInvoice";
|
|
339
354
|
date: number;
|
|
@@ -372,6 +387,9 @@ export declare const NewSupplierInvoiceSchema: z.ZodObject<Omit<{
|
|
|
372
387
|
oldProfitPercentage: number;
|
|
373
388
|
newProfitPercentage: number;
|
|
374
389
|
}[];
|
|
390
|
+
vat?: number | undefined;
|
|
391
|
+
total?: number | undefined;
|
|
392
|
+
totalBeforeVat?: number | undefined;
|
|
375
393
|
}>;
|
|
376
394
|
export type TNewSupplierInvoice = z.infer<typeof NewSupplierInvoiceSchema>;
|
|
377
395
|
export type TSupplierInvoice = z.infer<typeof SupplierInvoiceSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupplierInvoice.d.ts","sourceRoot":"","sources":["../../../lib/entities/SupplierInvoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"SupplierInvoice.d.ts","sourceRoot":"","sources":["../../../lib/entities/SupplierInvoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ChC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2C,CAAC;AAEjF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -36,5 +36,8 @@ export const SupplierInvoiceSchema = z.object({
|
|
|
36
36
|
oldProfitPercentage: z.number(),
|
|
37
37
|
newProfitPercentage: z.number(),
|
|
38
38
|
})),
|
|
39
|
+
total: z.number().optional(),
|
|
40
|
+
totalBeforeVat: z.number().optional(),
|
|
41
|
+
vat: z.number().optional(),
|
|
39
42
|
});
|
|
40
43
|
export const NewSupplierInvoiceSchema = SupplierInvoiceSchema.omit({ id: true });
|
|
@@ -14,12 +14,10 @@ export declare const storeCollections: {
|
|
|
14
14
|
readonly settings: "settings";
|
|
15
15
|
readonly discounts: "discounts";
|
|
16
16
|
readonly organizations: "organizations";
|
|
17
|
-
readonly organizationGroups: "
|
|
18
|
-
readonly "organization-groups": "organization-groups";
|
|
17
|
+
readonly organizationGroups: "organizationGroups";
|
|
19
18
|
readonly invoices: "invoices";
|
|
20
19
|
readonly suppliers: "suppliers";
|
|
21
|
-
readonly supplierInvoices: "
|
|
22
|
-
readonly "supplier-invoices": "supplier-invoices";
|
|
20
|
+
readonly supplierInvoices: "supplierInvoices";
|
|
23
21
|
};
|
|
24
22
|
export declare const FirestoreApi: {
|
|
25
23
|
systemCollections: {
|
|
@@ -38,12 +36,10 @@ export declare const FirestoreApi: {
|
|
|
38
36
|
readonly settings: "settings";
|
|
39
37
|
readonly discounts: "discounts";
|
|
40
38
|
readonly organizations: "organizations";
|
|
41
|
-
readonly organizationGroups: "
|
|
42
|
-
readonly "organization-groups": "organization-groups";
|
|
39
|
+
readonly organizationGroups: "organizationGroups";
|
|
43
40
|
readonly invoices: "invoices";
|
|
44
41
|
readonly suppliers: "suppliers";
|
|
45
|
-
readonly supplierInvoices: "
|
|
46
|
-
readonly "supplier-invoices": "supplier-invoices";
|
|
42
|
+
readonly supplierInvoices: "supplierInvoices";
|
|
47
43
|
};
|
|
48
44
|
getPath: ({ companyId, storeId, collectionName, id, }: {
|
|
49
45
|
companyId: string;
|
|
@@ -71,12 +67,10 @@ export declare const FirebaseAPI: {
|
|
|
71
67
|
readonly settings: "settings";
|
|
72
68
|
readonly discounts: "discounts";
|
|
73
69
|
readonly organizations: "organizations";
|
|
74
|
-
readonly organizationGroups: "
|
|
75
|
-
readonly "organization-groups": "organization-groups";
|
|
70
|
+
readonly organizationGroups: "organizationGroups";
|
|
76
71
|
readonly invoices: "invoices";
|
|
77
72
|
readonly suppliers: "suppliers";
|
|
78
|
-
readonly supplierInvoices: "
|
|
79
|
-
readonly "supplier-invoices": "supplier-invoices";
|
|
73
|
+
readonly supplierInvoices: "supplierInvoices";
|
|
80
74
|
};
|
|
81
75
|
getPath: ({ companyId, storeId, collectionName, id, }: {
|
|
82
76
|
companyId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/firebase-api/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/firebase-api/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;CAgBnB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;2DASrB;QACF,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,MAAM,OAAO,gBAAgB,CAAC;QAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;KACZ;iCAI4B,MAAM,OAAO,gBAAgB;CAG1D,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;+DAdpB;YACF,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,MAAM,CAAC;YAChB,cAAc,EAAE,MAAM,OAAO,gBAAgB,CAAC;YAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;SACZ;qCAI4B,MAAM,OAAO,gBAAgB;;CAO1D,CAAC"}
|
|
@@ -14,12 +14,10 @@ export const storeCollections = {
|
|
|
14
14
|
settings: "settings",
|
|
15
15
|
discounts: "discounts",
|
|
16
16
|
organizations: "organizations",
|
|
17
|
-
organizationGroups: "
|
|
18
|
-
"organization-groups": "organization-groups", // todo remove
|
|
17
|
+
organizationGroups: "organizationGroups", // todo remove
|
|
19
18
|
invoices: "invoices",
|
|
20
19
|
suppliers: "suppliers",
|
|
21
|
-
supplierInvoices: "
|
|
22
|
-
"supplier-invoices": "supplier-invoices",
|
|
20
|
+
supplierInvoices: "supplierInvoices",
|
|
23
21
|
};
|
|
24
22
|
export const FirestoreApi = {
|
|
25
23
|
systemCollections,
|