@aibrains/shared-types 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.
- package/dist/schemas/academics/course.schema.d.ts +10 -10
- package/dist/schemas/common.d.ts +3 -2
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +5 -4
- package/dist/schemas/common.js.map +1 -1
- package/dist/schemas/enrollment/enrollment.schema.d.ts +12 -12
- package/dist/schemas/finance/common.d.ts +3 -0
- package/dist/schemas/finance/common.d.ts.map +1 -1
- package/dist/schemas/finance/common.js +6 -1
- package/dist/schemas/finance/common.js.map +1 -1
- package/dist/schemas/finance/dashboard.schema.d.ts +335 -0
- package/dist/schemas/finance/dashboard.schema.d.ts.map +1 -0
- package/dist/schemas/finance/dashboard.schema.js +74 -0
- package/dist/schemas/finance/dashboard.schema.js.map +1 -0
- package/dist/schemas/finance/discount-rule.schema.d.ts +97 -2
- package/dist/schemas/finance/discount-rule.schema.d.ts.map +1 -1
- package/dist/schemas/finance/discount-rule.schema.js +3 -2
- package/dist/schemas/finance/discount-rule.schema.js.map +1 -1
- package/dist/schemas/finance/fee-structure.schema.d.ts +92 -0
- package/dist/schemas/finance/fee-structure.schema.d.ts.map +1 -1
- package/dist/schemas/finance/fee-structure.schema.js +15 -1
- package/dist/schemas/finance/fee-structure.schema.js.map +1 -1
- package/dist/schemas/finance/index.d.ts +1 -0
- package/dist/schemas/finance/index.d.ts.map +1 -1
- package/dist/schemas/finance/index.js +1 -0
- package/dist/schemas/finance/index.js.map +1 -1
- package/dist/schemas/finance/invoice.schema.d.ts +71 -0
- package/dist/schemas/finance/invoice.schema.d.ts.map +1 -1
- package/dist/schemas/finance/invoice.schema.js +18 -1
- package/dist/schemas/finance/invoice.schema.js.map +1 -1
- package/dist/schemas/finance/payment.schema.d.ts +4 -0
- package/dist/schemas/finance/payment.schema.d.ts.map +1 -1
- package/dist/schemas/finance/payment.schema.js +2 -0
- package/dist/schemas/finance/payment.schema.js.map +1 -1
- package/dist/schemas/finance/refund.schema.d.ts +2 -0
- package/dist/schemas/finance/refund.schema.d.ts.map +1 -1
- package/dist/schemas/finance/refund.schema.js.map +1 -1
- package/dist/schemas/identity/role.schema.d.ts +12 -12
- package/dist/schemas/identity/staff-assignment.schema.d.ts +22 -14
- package/dist/schemas/identity/staff-assignment.schema.d.ts.map +1 -1
- package/dist/schemas/identity/staff-assignment.schema.js +4 -3
- package/dist/schemas/identity/staff-assignment.schema.js.map +1 -1
- package/dist/schemas/identity/staff.schema.d.ts +85 -50
- package/dist/schemas/identity/staff.schema.d.ts.map +1 -1
- package/dist/schemas/identity/staff.schema.js +7 -5
- package/dist/schemas/identity/staff.schema.js.map +1 -1
- package/dist/schemas/identity/user.schema.d.ts +3 -3
- package/dist/schemas/identity/user.schema.js +1 -1
- package/dist/schemas/identity/user.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard Summary Schema
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for finance dashboard API responses.
|
|
5
|
+
* Mirrors the DashboardSummary interface in dashboard.service.ts.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export declare const gradeLevelBreakdownSchema: z.ZodObject<{
|
|
9
|
+
gradeLevel: z.ZodString;
|
|
10
|
+
invoiceCount: z.ZodNumber;
|
|
11
|
+
totalInvoiced: z.ZodNumber;
|
|
12
|
+
totalCollected: z.ZodNumber;
|
|
13
|
+
outstanding: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
gradeLevel: string;
|
|
16
|
+
invoiceCount: number;
|
|
17
|
+
totalInvoiced: number;
|
|
18
|
+
totalCollected: number;
|
|
19
|
+
outstanding: number;
|
|
20
|
+
}, {
|
|
21
|
+
gradeLevel: string;
|
|
22
|
+
invoiceCount: number;
|
|
23
|
+
totalInvoiced: number;
|
|
24
|
+
totalCollected: number;
|
|
25
|
+
outstanding: number;
|
|
26
|
+
}>;
|
|
27
|
+
export type GradeLevelBreakdown = z.infer<typeof gradeLevelBreakdownSchema>;
|
|
28
|
+
export declare const feeTypeBreakdownSchema: z.ZodObject<{
|
|
29
|
+
feeType: z.ZodString;
|
|
30
|
+
invoiceCount: z.ZodNumber;
|
|
31
|
+
totalAmount: z.ZodNumber;
|
|
32
|
+
collectedAmount: z.ZodNumber;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
feeType: string;
|
|
35
|
+
invoiceCount: number;
|
|
36
|
+
totalAmount: number;
|
|
37
|
+
collectedAmount: number;
|
|
38
|
+
}, {
|
|
39
|
+
feeType: string;
|
|
40
|
+
invoiceCount: number;
|
|
41
|
+
totalAmount: number;
|
|
42
|
+
collectedAmount: number;
|
|
43
|
+
}>;
|
|
44
|
+
export type FeeTypeBreakdown = z.infer<typeof feeTypeBreakdownSchema>;
|
|
45
|
+
export declare const agingBucketSchema: z.ZodObject<{
|
|
46
|
+
label: z.ZodString;
|
|
47
|
+
minDays: z.ZodNumber;
|
|
48
|
+
maxDays: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
count: z.ZodNumber;
|
|
50
|
+
amount: z.ZodNumber;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
label: string;
|
|
53
|
+
count: number;
|
|
54
|
+
amount: number;
|
|
55
|
+
minDays: number;
|
|
56
|
+
maxDays: number | null;
|
|
57
|
+
}, {
|
|
58
|
+
label: string;
|
|
59
|
+
count: number;
|
|
60
|
+
amount: number;
|
|
61
|
+
minDays: number;
|
|
62
|
+
maxDays: number | null;
|
|
63
|
+
}>;
|
|
64
|
+
export type AgingBucket = z.infer<typeof agingBucketSchema>;
|
|
65
|
+
export declare const monthlyCollectionSchema: z.ZodObject<{
|
|
66
|
+
month: z.ZodString;
|
|
67
|
+
collected: z.ZodNumber;
|
|
68
|
+
invoiced: z.ZodNumber;
|
|
69
|
+
paymentCount: z.ZodNumber;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
month: string;
|
|
72
|
+
collected: number;
|
|
73
|
+
invoiced: number;
|
|
74
|
+
paymentCount: number;
|
|
75
|
+
}, {
|
|
76
|
+
month: string;
|
|
77
|
+
collected: number;
|
|
78
|
+
invoiced: number;
|
|
79
|
+
paymentCount: number;
|
|
80
|
+
}>;
|
|
81
|
+
export type MonthlyCollection = z.infer<typeof monthlyCollectionSchema>;
|
|
82
|
+
export declare const dashboardSummarySchema: z.ZodObject<{
|
|
83
|
+
totalInvoiced: z.ZodNumber;
|
|
84
|
+
totalCollected: z.ZodNumber;
|
|
85
|
+
outstanding: z.ZodNumber;
|
|
86
|
+
overdue: z.ZodNumber;
|
|
87
|
+
collectionRate: z.ZodNumber;
|
|
88
|
+
invoicesByStatus: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
89
|
+
paymentsByGateway: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
90
|
+
byGradeLevel: z.ZodArray<z.ZodObject<{
|
|
91
|
+
gradeLevel: z.ZodString;
|
|
92
|
+
invoiceCount: z.ZodNumber;
|
|
93
|
+
totalInvoiced: z.ZodNumber;
|
|
94
|
+
totalCollected: z.ZodNumber;
|
|
95
|
+
outstanding: z.ZodNumber;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
gradeLevel: string;
|
|
98
|
+
invoiceCount: number;
|
|
99
|
+
totalInvoiced: number;
|
|
100
|
+
totalCollected: number;
|
|
101
|
+
outstanding: number;
|
|
102
|
+
}, {
|
|
103
|
+
gradeLevel: string;
|
|
104
|
+
invoiceCount: number;
|
|
105
|
+
totalInvoiced: number;
|
|
106
|
+
totalCollected: number;
|
|
107
|
+
outstanding: number;
|
|
108
|
+
}>, "many">;
|
|
109
|
+
byFeeType: z.ZodArray<z.ZodObject<{
|
|
110
|
+
feeType: z.ZodString;
|
|
111
|
+
invoiceCount: z.ZodNumber;
|
|
112
|
+
totalAmount: z.ZodNumber;
|
|
113
|
+
collectedAmount: z.ZodNumber;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
feeType: string;
|
|
116
|
+
invoiceCount: number;
|
|
117
|
+
totalAmount: number;
|
|
118
|
+
collectedAmount: number;
|
|
119
|
+
}, {
|
|
120
|
+
feeType: string;
|
|
121
|
+
invoiceCount: number;
|
|
122
|
+
totalAmount: number;
|
|
123
|
+
collectedAmount: number;
|
|
124
|
+
}>, "many">;
|
|
125
|
+
agingReport: z.ZodArray<z.ZodObject<{
|
|
126
|
+
label: z.ZodString;
|
|
127
|
+
minDays: z.ZodNumber;
|
|
128
|
+
maxDays: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
count: z.ZodNumber;
|
|
130
|
+
amount: z.ZodNumber;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
label: string;
|
|
133
|
+
count: number;
|
|
134
|
+
amount: number;
|
|
135
|
+
minDays: number;
|
|
136
|
+
maxDays: number | null;
|
|
137
|
+
}, {
|
|
138
|
+
label: string;
|
|
139
|
+
count: number;
|
|
140
|
+
amount: number;
|
|
141
|
+
minDays: number;
|
|
142
|
+
maxDays: number | null;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
monthlyCollections: z.ZodArray<z.ZodObject<{
|
|
145
|
+
month: z.ZodString;
|
|
146
|
+
collected: z.ZodNumber;
|
|
147
|
+
invoiced: z.ZodNumber;
|
|
148
|
+
paymentCount: z.ZodNumber;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
month: string;
|
|
151
|
+
collected: number;
|
|
152
|
+
invoiced: number;
|
|
153
|
+
paymentCount: number;
|
|
154
|
+
}, {
|
|
155
|
+
month: string;
|
|
156
|
+
collected: number;
|
|
157
|
+
invoiced: number;
|
|
158
|
+
paymentCount: number;
|
|
159
|
+
}>, "many">;
|
|
160
|
+
recentPayments: z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
amount: z.ZodNumber;
|
|
163
|
+
gateway: z.ZodString;
|
|
164
|
+
status: z.ZodString;
|
|
165
|
+
receiptNumber: z.ZodOptional<z.ZodString>;
|
|
166
|
+
paidAt: z.ZodOptional<z.ZodString>;
|
|
167
|
+
createdAt: z.ZodString;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
status: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
id: string;
|
|
172
|
+
amount: number;
|
|
173
|
+
gateway: string;
|
|
174
|
+
paidAt?: string | undefined;
|
|
175
|
+
receiptNumber?: string | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
status: string;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
id: string;
|
|
180
|
+
amount: number;
|
|
181
|
+
gateway: string;
|
|
182
|
+
paidAt?: string | undefined;
|
|
183
|
+
receiptNumber?: string | undefined;
|
|
184
|
+
}>, "many">;
|
|
185
|
+
recentInvoices: z.ZodArray<z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
invoiceNumber: z.ZodString;
|
|
188
|
+
studentName: z.ZodString;
|
|
189
|
+
grandTotal: z.ZodNumber;
|
|
190
|
+
amountDue: z.ZodNumber;
|
|
191
|
+
status: z.ZodString;
|
|
192
|
+
issuedDate: z.ZodString;
|
|
193
|
+
createdAt: z.ZodString;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
status: string;
|
|
196
|
+
createdAt: string;
|
|
197
|
+
id: string;
|
|
198
|
+
studentName: string;
|
|
199
|
+
invoiceNumber: string;
|
|
200
|
+
grandTotal: number;
|
|
201
|
+
amountDue: number;
|
|
202
|
+
issuedDate: string;
|
|
203
|
+
}, {
|
|
204
|
+
status: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
id: string;
|
|
207
|
+
studentName: string;
|
|
208
|
+
invoiceNumber: string;
|
|
209
|
+
grandTotal: number;
|
|
210
|
+
amountDue: number;
|
|
211
|
+
issuedDate: string;
|
|
212
|
+
}>, "many">;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
byGradeLevel: {
|
|
215
|
+
gradeLevel: string;
|
|
216
|
+
invoiceCount: number;
|
|
217
|
+
totalInvoiced: number;
|
|
218
|
+
totalCollected: number;
|
|
219
|
+
outstanding: number;
|
|
220
|
+
}[];
|
|
221
|
+
overdue: number;
|
|
222
|
+
totalInvoiced: number;
|
|
223
|
+
totalCollected: number;
|
|
224
|
+
outstanding: number;
|
|
225
|
+
collectionRate: number;
|
|
226
|
+
invoicesByStatus: Record<string, number>;
|
|
227
|
+
paymentsByGateway: Record<string, number>;
|
|
228
|
+
byFeeType: {
|
|
229
|
+
feeType: string;
|
|
230
|
+
invoiceCount: number;
|
|
231
|
+
totalAmount: number;
|
|
232
|
+
collectedAmount: number;
|
|
233
|
+
}[];
|
|
234
|
+
agingReport: {
|
|
235
|
+
label: string;
|
|
236
|
+
count: number;
|
|
237
|
+
amount: number;
|
|
238
|
+
minDays: number;
|
|
239
|
+
maxDays: number | null;
|
|
240
|
+
}[];
|
|
241
|
+
monthlyCollections: {
|
|
242
|
+
month: string;
|
|
243
|
+
collected: number;
|
|
244
|
+
invoiced: number;
|
|
245
|
+
paymentCount: number;
|
|
246
|
+
}[];
|
|
247
|
+
recentPayments: {
|
|
248
|
+
status: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
id: string;
|
|
251
|
+
amount: number;
|
|
252
|
+
gateway: string;
|
|
253
|
+
paidAt?: string | undefined;
|
|
254
|
+
receiptNumber?: string | undefined;
|
|
255
|
+
}[];
|
|
256
|
+
recentInvoices: {
|
|
257
|
+
status: string;
|
|
258
|
+
createdAt: string;
|
|
259
|
+
id: string;
|
|
260
|
+
studentName: string;
|
|
261
|
+
invoiceNumber: string;
|
|
262
|
+
grandTotal: number;
|
|
263
|
+
amountDue: number;
|
|
264
|
+
issuedDate: string;
|
|
265
|
+
}[];
|
|
266
|
+
}, {
|
|
267
|
+
byGradeLevel: {
|
|
268
|
+
gradeLevel: string;
|
|
269
|
+
invoiceCount: number;
|
|
270
|
+
totalInvoiced: number;
|
|
271
|
+
totalCollected: number;
|
|
272
|
+
outstanding: number;
|
|
273
|
+
}[];
|
|
274
|
+
overdue: number;
|
|
275
|
+
totalInvoiced: number;
|
|
276
|
+
totalCollected: number;
|
|
277
|
+
outstanding: number;
|
|
278
|
+
collectionRate: number;
|
|
279
|
+
invoicesByStatus: Record<string, number>;
|
|
280
|
+
paymentsByGateway: Record<string, number>;
|
|
281
|
+
byFeeType: {
|
|
282
|
+
feeType: string;
|
|
283
|
+
invoiceCount: number;
|
|
284
|
+
totalAmount: number;
|
|
285
|
+
collectedAmount: number;
|
|
286
|
+
}[];
|
|
287
|
+
agingReport: {
|
|
288
|
+
label: string;
|
|
289
|
+
count: number;
|
|
290
|
+
amount: number;
|
|
291
|
+
minDays: number;
|
|
292
|
+
maxDays: number | null;
|
|
293
|
+
}[];
|
|
294
|
+
monthlyCollections: {
|
|
295
|
+
month: string;
|
|
296
|
+
collected: number;
|
|
297
|
+
invoiced: number;
|
|
298
|
+
paymentCount: number;
|
|
299
|
+
}[];
|
|
300
|
+
recentPayments: {
|
|
301
|
+
status: string;
|
|
302
|
+
createdAt: string;
|
|
303
|
+
id: string;
|
|
304
|
+
amount: number;
|
|
305
|
+
gateway: string;
|
|
306
|
+
paidAt?: string | undefined;
|
|
307
|
+
receiptNumber?: string | undefined;
|
|
308
|
+
}[];
|
|
309
|
+
recentInvoices: {
|
|
310
|
+
status: string;
|
|
311
|
+
createdAt: string;
|
|
312
|
+
id: string;
|
|
313
|
+
studentName: string;
|
|
314
|
+
invoiceNumber: string;
|
|
315
|
+
grandTotal: number;
|
|
316
|
+
amountDue: number;
|
|
317
|
+
issuedDate: string;
|
|
318
|
+
}[];
|
|
319
|
+
}>;
|
|
320
|
+
export type DashboardSummary = z.infer<typeof dashboardSummarySchema>;
|
|
321
|
+
export declare const dashboardFiltersSchema: z.ZodObject<{
|
|
322
|
+
from: z.ZodOptional<z.ZodString>;
|
|
323
|
+
to: z.ZodOptional<z.ZodString>;
|
|
324
|
+
academicYear: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
326
|
+
from?: string | undefined;
|
|
327
|
+
to?: string | undefined;
|
|
328
|
+
academicYear?: string | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
from?: string | undefined;
|
|
331
|
+
to?: string | undefined;
|
|
332
|
+
academicYear?: string | undefined;
|
|
333
|
+
}>;
|
|
334
|
+
export type DashboardFilters = z.infer<typeof dashboardFiltersSchema>;
|
|
335
|
+
//# sourceMappingURL=dashboard.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/dashboard.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAMpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Dashboard Summary Schema
|
|
4
|
+
*
|
|
5
|
+
* Zod schemas for finance dashboard API responses.
|
|
6
|
+
* Mirrors the DashboardSummary interface in dashboard.service.ts.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.dashboardFiltersSchema = exports.dashboardSummarySchema = exports.monthlyCollectionSchema = exports.agingBucketSchema = exports.feeTypeBreakdownSchema = exports.gradeLevelBreakdownSchema = void 0;
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
exports.gradeLevelBreakdownSchema = zod_1.z.object({
|
|
12
|
+
gradeLevel: zod_1.z.string(),
|
|
13
|
+
invoiceCount: zod_1.z.number().int(),
|
|
14
|
+
totalInvoiced: zod_1.z.number(),
|
|
15
|
+
totalCollected: zod_1.z.number(),
|
|
16
|
+
outstanding: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
exports.feeTypeBreakdownSchema = zod_1.z.object({
|
|
19
|
+
feeType: zod_1.z.string(),
|
|
20
|
+
invoiceCount: zod_1.z.number().int(),
|
|
21
|
+
totalAmount: zod_1.z.number(),
|
|
22
|
+
collectedAmount: zod_1.z.number(),
|
|
23
|
+
});
|
|
24
|
+
exports.agingBucketSchema = zod_1.z.object({
|
|
25
|
+
label: zod_1.z.string(),
|
|
26
|
+
minDays: zod_1.z.number().int(),
|
|
27
|
+
maxDays: zod_1.z.number().int().nullable(),
|
|
28
|
+
count: zod_1.z.number().int(),
|
|
29
|
+
amount: zod_1.z.number(),
|
|
30
|
+
});
|
|
31
|
+
exports.monthlyCollectionSchema = zod_1.z.object({
|
|
32
|
+
month: zod_1.z.string(), // YYYY-MM
|
|
33
|
+
collected: zod_1.z.number(),
|
|
34
|
+
invoiced: zod_1.z.number(),
|
|
35
|
+
paymentCount: zod_1.z.number().int(),
|
|
36
|
+
});
|
|
37
|
+
exports.dashboardSummarySchema = zod_1.z.object({
|
|
38
|
+
totalInvoiced: zod_1.z.number(),
|
|
39
|
+
totalCollected: zod_1.z.number(),
|
|
40
|
+
outstanding: zod_1.z.number(),
|
|
41
|
+
overdue: zod_1.z.number(),
|
|
42
|
+
collectionRate: zod_1.z.number(),
|
|
43
|
+
invoicesByStatus: zod_1.z.record(zod_1.z.number()),
|
|
44
|
+
paymentsByGateway: zod_1.z.record(zod_1.z.number()),
|
|
45
|
+
byGradeLevel: zod_1.z.array(exports.gradeLevelBreakdownSchema),
|
|
46
|
+
byFeeType: zod_1.z.array(exports.feeTypeBreakdownSchema),
|
|
47
|
+
agingReport: zod_1.z.array(exports.agingBucketSchema),
|
|
48
|
+
monthlyCollections: zod_1.z.array(exports.monthlyCollectionSchema),
|
|
49
|
+
recentPayments: zod_1.z.array(zod_1.z.object({
|
|
50
|
+
id: zod_1.z.string(),
|
|
51
|
+
amount: zod_1.z.number(),
|
|
52
|
+
gateway: zod_1.z.string(),
|
|
53
|
+
status: zod_1.z.string(),
|
|
54
|
+
receiptNumber: zod_1.z.string().optional(),
|
|
55
|
+
paidAt: zod_1.z.string().optional(),
|
|
56
|
+
createdAt: zod_1.z.string(),
|
|
57
|
+
})),
|
|
58
|
+
recentInvoices: zod_1.z.array(zod_1.z.object({
|
|
59
|
+
id: zod_1.z.string(),
|
|
60
|
+
invoiceNumber: zod_1.z.string(),
|
|
61
|
+
studentName: zod_1.z.string(),
|
|
62
|
+
grandTotal: zod_1.z.number(),
|
|
63
|
+
amountDue: zod_1.z.number(),
|
|
64
|
+
status: zod_1.z.string(),
|
|
65
|
+
issuedDate: zod_1.z.string(),
|
|
66
|
+
createdAt: zod_1.z.string(),
|
|
67
|
+
})),
|
|
68
|
+
});
|
|
69
|
+
exports.dashboardFiltersSchema = zod_1.z.object({
|
|
70
|
+
from: zod_1.z.string().optional(),
|
|
71
|
+
to: zod_1.z.string().optional(),
|
|
72
|
+
academicYear: zod_1.z.string().optional(),
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=dashboard.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.schema.js","sourceRoot":"","sources":["../../../src/schemas/finance/dashboard.schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAIU,QAAA,i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
159
159
|
}>;
|
|
160
160
|
export type DiscountRule = z.infer<typeof discountRuleResponseSchema>;
|
|
161
|
-
export declare const createDiscountRuleSchema: z.ZodObject<{
|
|
161
|
+
export declare const createDiscountRuleSchema: z.ZodEffects<z.ZodObject<{
|
|
162
162
|
name: z.ZodString;
|
|
163
163
|
description: z.ZodOptional<z.ZodString>;
|
|
164
164
|
academicYearId: z.ZodString;
|
|
@@ -253,11 +253,58 @@ export declare const createDiscountRuleSchema: z.ZodObject<{
|
|
|
253
253
|
description?: string | undefined;
|
|
254
254
|
priority?: number | undefined;
|
|
255
255
|
maxDiscountAmount?: number | undefined;
|
|
256
|
+
}>, {
|
|
257
|
+
type: "percentage" | "fixed";
|
|
258
|
+
value: number;
|
|
259
|
+
name: string;
|
|
260
|
+
academicYearId: string;
|
|
261
|
+
priority: number;
|
|
262
|
+
applicableFeeTypes: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[];
|
|
263
|
+
condition: {
|
|
264
|
+
type: "sibling";
|
|
265
|
+
minSiblings: number;
|
|
266
|
+
} | {
|
|
267
|
+
type: "early_payment";
|
|
268
|
+
daysBefore: number;
|
|
269
|
+
} | {
|
|
270
|
+
type: "scholarship";
|
|
271
|
+
scholarshipId: string;
|
|
272
|
+
} | {
|
|
273
|
+
type: "staff_child";
|
|
274
|
+
} | {
|
|
275
|
+
type: "manual";
|
|
276
|
+
};
|
|
277
|
+
description?: string | undefined;
|
|
278
|
+
maxDiscountAmount?: number | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
type: "percentage" | "fixed";
|
|
281
|
+
value: number;
|
|
282
|
+
name: string;
|
|
283
|
+
academicYearId: string;
|
|
284
|
+
applicableFeeTypes: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[];
|
|
285
|
+
condition: {
|
|
286
|
+
type: "sibling";
|
|
287
|
+
minSiblings?: number | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
type: "early_payment";
|
|
290
|
+
daysBefore: number;
|
|
291
|
+
} | {
|
|
292
|
+
type: "scholarship";
|
|
293
|
+
scholarshipId: string;
|
|
294
|
+
} | {
|
|
295
|
+
type: "staff_child";
|
|
296
|
+
} | {
|
|
297
|
+
type: "manual";
|
|
298
|
+
};
|
|
299
|
+
description?: string | undefined;
|
|
300
|
+
priority?: number | undefined;
|
|
301
|
+
maxDiscountAmount?: number | undefined;
|
|
256
302
|
}>;
|
|
257
303
|
export type CreateDiscountRuleDto = z.infer<typeof createDiscountRuleSchema>;
|
|
258
|
-
export declare const updateDiscountRuleSchema: z.ZodObject<{
|
|
304
|
+
export declare const updateDiscountRuleSchema: z.ZodEffects<z.ZodObject<{
|
|
259
305
|
name: z.ZodOptional<z.ZodString>;
|
|
260
306
|
description: z.ZodOptional<z.ZodString>;
|
|
307
|
+
type: z.ZodOptional<z.ZodEnum<["percentage", "fixed"]>>;
|
|
261
308
|
value: z.ZodOptional<z.ZodNumber>;
|
|
262
309
|
applicableFeeTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["tuition", "admission", "exam", "transport", "library", "lab", "hostel", "uniform", "miscellaneous", "custom"]>, "many">>;
|
|
263
310
|
condition: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -304,6 +351,53 @@ export declare const updateDiscountRuleSchema: z.ZodObject<{
|
|
|
304
351
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
305
352
|
maxDiscountAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
306
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
type?: "percentage" | "fixed" | undefined;
|
|
355
|
+
value?: number | undefined;
|
|
356
|
+
name?: string | undefined;
|
|
357
|
+
isActive?: boolean | undefined;
|
|
358
|
+
description?: string | undefined;
|
|
359
|
+
priority?: number | undefined;
|
|
360
|
+
applicableFeeTypes?: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[] | undefined;
|
|
361
|
+
condition?: {
|
|
362
|
+
type: "sibling";
|
|
363
|
+
minSiblings: number;
|
|
364
|
+
} | {
|
|
365
|
+
type: "early_payment";
|
|
366
|
+
daysBefore: number;
|
|
367
|
+
} | {
|
|
368
|
+
type: "scholarship";
|
|
369
|
+
scholarshipId: string;
|
|
370
|
+
} | {
|
|
371
|
+
type: "staff_child";
|
|
372
|
+
} | {
|
|
373
|
+
type: "manual";
|
|
374
|
+
} | undefined;
|
|
375
|
+
maxDiscountAmount?: number | null | undefined;
|
|
376
|
+
}, {
|
|
377
|
+
type?: "percentage" | "fixed" | undefined;
|
|
378
|
+
value?: number | undefined;
|
|
379
|
+
name?: string | undefined;
|
|
380
|
+
isActive?: boolean | undefined;
|
|
381
|
+
description?: string | undefined;
|
|
382
|
+
priority?: number | undefined;
|
|
383
|
+
applicableFeeTypes?: ("custom" | "lab" | "library" | "exam" | "tuition" | "admission" | "transport" | "hostel" | "uniform" | "miscellaneous")[] | undefined;
|
|
384
|
+
condition?: {
|
|
385
|
+
type: "sibling";
|
|
386
|
+
minSiblings?: number | undefined;
|
|
387
|
+
} | {
|
|
388
|
+
type: "early_payment";
|
|
389
|
+
daysBefore: number;
|
|
390
|
+
} | {
|
|
391
|
+
type: "scholarship";
|
|
392
|
+
scholarshipId: string;
|
|
393
|
+
} | {
|
|
394
|
+
type: "staff_child";
|
|
395
|
+
} | {
|
|
396
|
+
type: "manual";
|
|
397
|
+
} | undefined;
|
|
398
|
+
maxDiscountAmount?: number | null | undefined;
|
|
399
|
+
}>, {
|
|
400
|
+
type?: "percentage" | "fixed" | undefined;
|
|
307
401
|
value?: number | undefined;
|
|
308
402
|
name?: string | undefined;
|
|
309
403
|
isActive?: boolean | undefined;
|
|
@@ -326,6 +420,7 @@ export declare const updateDiscountRuleSchema: z.ZodObject<{
|
|
|
326
420
|
} | undefined;
|
|
327
421
|
maxDiscountAmount?: number | null | undefined;
|
|
328
422
|
}, {
|
|
423
|
+
type?: "percentage" | "fixed" | undefined;
|
|
329
424
|
value?: number | undefined;
|
|
330
425
|
name?: string | undefined;
|
|
331
426
|
isActive?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-rule.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/discount-rule.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"discount-rule.schema.d.ts","sourceRoot":"","sources":["../../../src/schemas/finance/discount-rule.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAapC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAapC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -43,15 +43,16 @@ exports.createDiscountRuleSchema = zod_1.z.object({
|
|
|
43
43
|
condition: exports.discountConditionSchema,
|
|
44
44
|
priority: zod_1.z.number().int().min(0).default(0),
|
|
45
45
|
maxDiscountAmount: zod_1.z.number().min(0).optional(),
|
|
46
|
-
});
|
|
46
|
+
}).refine((data) => data.type !== 'percentage' || data.value <= 100, { message: 'Percentage discount value cannot exceed 100', path: ['value'] });
|
|
47
47
|
exports.updateDiscountRuleSchema = zod_1.z.object({
|
|
48
48
|
name: zod_1.z.string().min(1).max(200).optional(),
|
|
49
49
|
description: zod_1.z.string().max(1000).optional(),
|
|
50
|
+
type: zod_1.z.enum(['percentage', 'fixed']).optional(),
|
|
50
51
|
value: zod_1.z.number().min(0).optional(),
|
|
51
52
|
applicableFeeTypes: zod_1.z.array(common_1.feeTypeEnum).optional(),
|
|
52
53
|
condition: exports.discountConditionSchema.optional(),
|
|
53
54
|
priority: zod_1.z.number().int().min(0).optional(),
|
|
54
55
|
isActive: zod_1.z.boolean().optional(),
|
|
55
56
|
maxDiscountAmount: zod_1.z.number().min(0).optional().nullable(),
|
|
56
|
-
});
|
|
57
|
+
}).refine((data) => data.type !== 'percentage' || data.value === undefined || data.value <= 100, { message: 'Percentage discount value cannot exceed 100', path: ['value'] });
|
|
57
58
|
//# sourceMappingURL=discount-rule.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-rule.schema.js","sourceRoot":"","sources":["../../../src/schemas/finance/discount-rule.schema.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAwB;AACxB,qCAAmE;AACnE,sCAAuC;AAE1B,QAAA,uBAAuB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAClE,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9E,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;IAC5C,OAAC,CAAC,MA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