@deepintel-ltd/farmpro-contracts 1.5.21 → 1.5.23
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/routes/invoices.routes.d.ts +336 -0
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +436 -8
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +19 -2
- package/dist/routes/waybills.routes.d.ts +455 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.d.ts +285 -0
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +11 -0
- package/dist/schemas/waybills.schemas.d.ts +361 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +19 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/invoices.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"invoices.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/invoices.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCV,CAAC;AAG3B,eAAO,MAAM,6BAA6B;;;;;;;;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kB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -10,6 +10,9 @@ export const invoiceItemSchema = z.object({
|
|
|
10
10
|
unitPrice: z.number().nonnegative(),
|
|
11
11
|
amount: z.number().nonnegative(),
|
|
12
12
|
taxRate: z.number().min(0).max(100).optional(),
|
|
13
|
+
truckPlateNumber: z.string().optional(),
|
|
14
|
+
weight: z.number().positive().optional(),
|
|
15
|
+
remark: z.string().optional(),
|
|
13
16
|
});
|
|
14
17
|
// Invoice attributes schema
|
|
15
18
|
export const invoiceAttributesSchema = z.object({
|
|
@@ -38,6 +41,10 @@ export const invoiceAttributesSchema = z.object({
|
|
|
38
41
|
paidAt: z.string().datetime().optional().nullable(),
|
|
39
42
|
notes: z.string().optional().nullable(),
|
|
40
43
|
pdfUrl: z.string().url().optional().nullable(),
|
|
44
|
+
// Additional fields
|
|
45
|
+
bankAccountId: z.string().uuid().optional().nullable(),
|
|
46
|
+
waybillNumber: z.string().optional().nullable(),
|
|
47
|
+
totalInWords: z.string().optional().nullable(),
|
|
41
48
|
organizationId: z.string().uuid(),
|
|
42
49
|
createdAt: z.string().datetime(),
|
|
43
50
|
updatedAt: z.string().datetime(),
|
|
@@ -62,6 +69,10 @@ export const createInvoiceAttributesSchema = z.object({
|
|
|
62
69
|
currency: z.string().length(3).default('NGN'),
|
|
63
70
|
paymentTerms: z.string().optional(),
|
|
64
71
|
notes: z.string().optional(),
|
|
72
|
+
// Additional fields
|
|
73
|
+
bankAccountId: z.string().uuid().optional(),
|
|
74
|
+
waybillNumber: z.string().optional(),
|
|
75
|
+
totalInWords: z.string().optional(),
|
|
65
76
|
});
|
|
66
77
|
// Invoice attributes for update (input)
|
|
67
78
|
export const updateInvoiceAttributesSchema = createInvoiceAttributesSchema.partial().extend({
|