@classytic/payroll 1.0.0 → 1.0.2

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.

Potentially problematic release.


This version of @classytic/payroll might be problematic. Click here for more details.

@@ -0,0 +1,959 @@
1
+ export namespace employmentFields {
2
+ export namespace userId {
3
+ let type: typeof mongoose.Schema.Types.ObjectId;
4
+ let ref: string;
5
+ let required: boolean;
6
+ }
7
+ export namespace organizationId {
8
+ let type_1: typeof mongoose.Schema.Types.ObjectId;
9
+ export { type_1 as type };
10
+ let ref_1: string;
11
+ export { ref_1 as ref };
12
+ let required_1: boolean;
13
+ export { required_1 as required };
14
+ }
15
+ export namespace employeeId {
16
+ let type_2: StringConstructor;
17
+ export { type_2 as type };
18
+ let required_2: boolean;
19
+ export { required_2 as required };
20
+ }
21
+ export namespace employmentType {
22
+ let type_3: StringConstructor;
23
+ export { type_3 as type };
24
+ export { EMPLOYMENT_TYPE_VALUES as enum };
25
+ let _default: string;
26
+ export { _default as default };
27
+ }
28
+ export namespace status {
29
+ let type_4: StringConstructor;
30
+ export { type_4 as type };
31
+ export { EMPLOYEE_STATUS_VALUES as enum };
32
+ let _default_1: string;
33
+ export { _default_1 as default };
34
+ }
35
+ export namespace department {
36
+ let type_5: StringConstructor;
37
+ export { type_5 as type };
38
+ export { DEPARTMENT_VALUES as enum };
39
+ }
40
+ export namespace position {
41
+ let type_6: StringConstructor;
42
+ export { type_6 as type };
43
+ let required_3: boolean;
44
+ export { required_3 as required };
45
+ }
46
+ export namespace hireDate {
47
+ let type_7: DateConstructor;
48
+ export { type_7 as type };
49
+ let required_4: boolean;
50
+ export { required_4 as required };
51
+ }
52
+ export namespace terminationDate {
53
+ let type_8: DateConstructor;
54
+ export { type_8 as type };
55
+ }
56
+ export namespace probationEndDate {
57
+ let type_9: DateConstructor;
58
+ export { type_9 as type };
59
+ }
60
+ export let employmentHistory: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
61
+ timestamps: true;
62
+ }, {
63
+ hireDate: NativeDate;
64
+ terminationDate: NativeDate;
65
+ department?: string;
66
+ position?: string;
67
+ reason?: string;
68
+ notes?: string;
69
+ finalSalary?: number;
70
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
71
+ hireDate: NativeDate;
72
+ terminationDate: NativeDate;
73
+ department?: string;
74
+ position?: string;
75
+ reason?: string;
76
+ notes?: string;
77
+ finalSalary?: number;
78
+ } & mongoose.DefaultTimestampProps, {
79
+ id: string;
80
+ }, mongoose.ResolveSchemaOptions<{
81
+ timestamps: true;
82
+ }>> & Omit<{
83
+ hireDate: NativeDate;
84
+ terminationDate: NativeDate;
85
+ department?: string;
86
+ position?: string;
87
+ reason?: string;
88
+ notes?: string;
89
+ finalSalary?: number;
90
+ } & mongoose.DefaultTimestampProps & {
91
+ _id: mongoose.Types.ObjectId;
92
+ } & {
93
+ __v: number;
94
+ }, "id"> & {
95
+ id: string;
96
+ }, {
97
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
98
+ } | {
99
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
100
+ hireDate: NativeDate;
101
+ terminationDate: NativeDate;
102
+ department?: string;
103
+ position?: string;
104
+ reason?: string;
105
+ notes?: string;
106
+ finalSalary?: number;
107
+ } & mongoose.DefaultTimestampProps, {
108
+ id: string;
109
+ }, mongoose.ResolveSchemaOptions<{
110
+ timestamps: true;
111
+ }>> & Omit<{
112
+ hireDate: NativeDate;
113
+ terminationDate: NativeDate;
114
+ department?: string;
115
+ position?: string;
116
+ reason?: string;
117
+ notes?: string;
118
+ finalSalary?: number;
119
+ } & mongoose.DefaultTimestampProps & {
120
+ _id: mongoose.Types.ObjectId;
121
+ } & {
122
+ __v: number;
123
+ }, "id"> & {
124
+ id: string;
125
+ }>;
126
+ }, {
127
+ hireDate: NativeDate;
128
+ terminationDate: NativeDate;
129
+ department?: string;
130
+ position?: string;
131
+ reason?: string;
132
+ notes?: string;
133
+ finalSalary?: number;
134
+ createdAt: NativeDate;
135
+ updatedAt: NativeDate;
136
+ } & {
137
+ _id: mongoose.Types.ObjectId;
138
+ } & {
139
+ __v: number;
140
+ }>[];
141
+ export namespace compensation {
142
+ export { compensationSchema as type };
143
+ let required_5: boolean;
144
+ export { required_5 as required };
145
+ }
146
+ export { workScheduleSchema as workSchedule };
147
+ export { bankDetailsSchema as bankDetails };
148
+ export namespace payrollStats {
149
+ export { payrollStatsSchema as type };
150
+ function _default_2(): {};
151
+ export { _default_2 as default };
152
+ }
153
+ }
154
+ export default employmentFields;
155
+ import mongoose from 'mongoose';
156
+ import { EMPLOYMENT_TYPE_VALUES } from '../enums.js';
157
+ import { EMPLOYEE_STATUS_VALUES } from '../enums.js';
158
+ import { DEPARTMENT_VALUES } from '../enums.js';
159
+ export const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
160
+ _id: false;
161
+ }, {
162
+ baseAmount: number;
163
+ frequency: string;
164
+ currency: string;
165
+ allowances: mongoose.Types.DocumentArray<{
166
+ type: string;
167
+ amount: number;
168
+ effectiveFrom: NativeDate;
169
+ taxable: boolean;
170
+ recurring: boolean;
171
+ effectiveTo?: NativeDate;
172
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
173
+ type: string;
174
+ amount: number;
175
+ effectiveFrom: NativeDate;
176
+ taxable: boolean;
177
+ recurring: boolean;
178
+ effectiveTo?: NativeDate;
179
+ }> & {
180
+ type: string;
181
+ amount: number;
182
+ effectiveFrom: NativeDate;
183
+ taxable: boolean;
184
+ recurring: boolean;
185
+ effectiveTo?: NativeDate;
186
+ }>;
187
+ deductions: mongoose.Types.DocumentArray<{
188
+ type: string;
189
+ amount: number;
190
+ effectiveFrom: NativeDate;
191
+ recurring: boolean;
192
+ auto: boolean;
193
+ effectiveTo?: NativeDate;
194
+ description?: string;
195
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
196
+ type: string;
197
+ amount: number;
198
+ effectiveFrom: NativeDate;
199
+ recurring: boolean;
200
+ auto: boolean;
201
+ effectiveTo?: NativeDate;
202
+ description?: string;
203
+ }> & {
204
+ type: string;
205
+ amount: number;
206
+ effectiveFrom: NativeDate;
207
+ recurring: boolean;
208
+ auto: boolean;
209
+ effectiveTo?: NativeDate;
210
+ description?: string;
211
+ }>;
212
+ effectiveFrom: NativeDate;
213
+ grossSalary: number;
214
+ netSalary: number;
215
+ lastModified: NativeDate;
216
+ }, mongoose.Document<unknown, {}, {
217
+ baseAmount: number;
218
+ frequency: string;
219
+ currency: string;
220
+ allowances: mongoose.Types.DocumentArray<{
221
+ type: string;
222
+ amount: number;
223
+ effectiveFrom: NativeDate;
224
+ taxable: boolean;
225
+ recurring: boolean;
226
+ effectiveTo?: NativeDate;
227
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
228
+ type: string;
229
+ amount: number;
230
+ effectiveFrom: NativeDate;
231
+ taxable: boolean;
232
+ recurring: boolean;
233
+ effectiveTo?: NativeDate;
234
+ }> & {
235
+ type: string;
236
+ amount: number;
237
+ effectiveFrom: NativeDate;
238
+ taxable: boolean;
239
+ recurring: boolean;
240
+ effectiveTo?: NativeDate;
241
+ }>;
242
+ deductions: mongoose.Types.DocumentArray<{
243
+ type: string;
244
+ amount: number;
245
+ effectiveFrom: NativeDate;
246
+ recurring: boolean;
247
+ auto: boolean;
248
+ effectiveTo?: NativeDate;
249
+ description?: string;
250
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
251
+ type: string;
252
+ amount: number;
253
+ effectiveFrom: NativeDate;
254
+ recurring: boolean;
255
+ auto: boolean;
256
+ effectiveTo?: NativeDate;
257
+ description?: string;
258
+ }> & {
259
+ type: string;
260
+ amount: number;
261
+ effectiveFrom: NativeDate;
262
+ recurring: boolean;
263
+ auto: boolean;
264
+ effectiveTo?: NativeDate;
265
+ description?: string;
266
+ }>;
267
+ effectiveFrom: NativeDate;
268
+ grossSalary: number;
269
+ netSalary: number;
270
+ lastModified: NativeDate;
271
+ }, {
272
+ id: string;
273
+ }, mongoose.ResolveSchemaOptions<{
274
+ _id: false;
275
+ }>> & Omit<{
276
+ baseAmount: number;
277
+ frequency: string;
278
+ currency: string;
279
+ allowances: mongoose.Types.DocumentArray<{
280
+ type: string;
281
+ amount: number;
282
+ effectiveFrom: NativeDate;
283
+ taxable: boolean;
284
+ recurring: boolean;
285
+ effectiveTo?: NativeDate;
286
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
287
+ type: string;
288
+ amount: number;
289
+ effectiveFrom: NativeDate;
290
+ taxable: boolean;
291
+ recurring: boolean;
292
+ effectiveTo?: NativeDate;
293
+ }> & {
294
+ type: string;
295
+ amount: number;
296
+ effectiveFrom: NativeDate;
297
+ taxable: boolean;
298
+ recurring: boolean;
299
+ effectiveTo?: NativeDate;
300
+ }>;
301
+ deductions: mongoose.Types.DocumentArray<{
302
+ type: string;
303
+ amount: number;
304
+ effectiveFrom: NativeDate;
305
+ recurring: boolean;
306
+ auto: boolean;
307
+ effectiveTo?: NativeDate;
308
+ description?: string;
309
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
310
+ type: string;
311
+ amount: number;
312
+ effectiveFrom: NativeDate;
313
+ recurring: boolean;
314
+ auto: boolean;
315
+ effectiveTo?: NativeDate;
316
+ description?: string;
317
+ }> & {
318
+ type: string;
319
+ amount: number;
320
+ effectiveFrom: NativeDate;
321
+ recurring: boolean;
322
+ auto: boolean;
323
+ effectiveTo?: NativeDate;
324
+ description?: string;
325
+ }>;
326
+ effectiveFrom: NativeDate;
327
+ grossSalary: number;
328
+ netSalary: number;
329
+ lastModified: NativeDate;
330
+ } & {
331
+ _id: mongoose.Types.ObjectId;
332
+ } & {
333
+ __v: number;
334
+ }, "id"> & {
335
+ id: string;
336
+ }, {
337
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
338
+ } | {
339
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
340
+ baseAmount: number;
341
+ frequency: string;
342
+ currency: string;
343
+ allowances: mongoose.Types.DocumentArray<{
344
+ type: string;
345
+ amount: number;
346
+ effectiveFrom: NativeDate;
347
+ taxable: boolean;
348
+ recurring: boolean;
349
+ effectiveTo?: NativeDate;
350
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
351
+ type: string;
352
+ amount: number;
353
+ effectiveFrom: NativeDate;
354
+ taxable: boolean;
355
+ recurring: boolean;
356
+ effectiveTo?: NativeDate;
357
+ }> & {
358
+ type: string;
359
+ amount: number;
360
+ effectiveFrom: NativeDate;
361
+ taxable: boolean;
362
+ recurring: boolean;
363
+ effectiveTo?: NativeDate;
364
+ }>;
365
+ deductions: mongoose.Types.DocumentArray<{
366
+ type: string;
367
+ amount: number;
368
+ effectiveFrom: NativeDate;
369
+ recurring: boolean;
370
+ auto: boolean;
371
+ effectiveTo?: NativeDate;
372
+ description?: string;
373
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
374
+ type: string;
375
+ amount: number;
376
+ effectiveFrom: NativeDate;
377
+ recurring: boolean;
378
+ auto: boolean;
379
+ effectiveTo?: NativeDate;
380
+ description?: string;
381
+ }> & {
382
+ type: string;
383
+ amount: number;
384
+ effectiveFrom: NativeDate;
385
+ recurring: boolean;
386
+ auto: boolean;
387
+ effectiveTo?: NativeDate;
388
+ description?: string;
389
+ }>;
390
+ effectiveFrom: NativeDate;
391
+ grossSalary: number;
392
+ netSalary: number;
393
+ lastModified: NativeDate;
394
+ }, {
395
+ id: string;
396
+ }, mongoose.ResolveSchemaOptions<{
397
+ _id: false;
398
+ }>> & Omit<{
399
+ baseAmount: number;
400
+ frequency: string;
401
+ currency: string;
402
+ allowances: mongoose.Types.DocumentArray<{
403
+ type: string;
404
+ amount: number;
405
+ effectiveFrom: NativeDate;
406
+ taxable: boolean;
407
+ recurring: boolean;
408
+ effectiveTo?: NativeDate;
409
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
410
+ type: string;
411
+ amount: number;
412
+ effectiveFrom: NativeDate;
413
+ taxable: boolean;
414
+ recurring: boolean;
415
+ effectiveTo?: NativeDate;
416
+ }> & {
417
+ type: string;
418
+ amount: number;
419
+ effectiveFrom: NativeDate;
420
+ taxable: boolean;
421
+ recurring: boolean;
422
+ effectiveTo?: NativeDate;
423
+ }>;
424
+ deductions: mongoose.Types.DocumentArray<{
425
+ type: string;
426
+ amount: number;
427
+ effectiveFrom: NativeDate;
428
+ recurring: boolean;
429
+ auto: boolean;
430
+ effectiveTo?: NativeDate;
431
+ description?: string;
432
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
433
+ type: string;
434
+ amount: number;
435
+ effectiveFrom: NativeDate;
436
+ recurring: boolean;
437
+ auto: boolean;
438
+ effectiveTo?: NativeDate;
439
+ description?: string;
440
+ }> & {
441
+ type: string;
442
+ amount: number;
443
+ effectiveFrom: NativeDate;
444
+ recurring: boolean;
445
+ auto: boolean;
446
+ effectiveTo?: NativeDate;
447
+ description?: string;
448
+ }>;
449
+ effectiveFrom: NativeDate;
450
+ grossSalary: number;
451
+ netSalary: number;
452
+ lastModified: NativeDate;
453
+ } & {
454
+ _id: mongoose.Types.ObjectId;
455
+ } & {
456
+ __v: number;
457
+ }, "id"> & {
458
+ id: string;
459
+ }>;
460
+ }, {
461
+ baseAmount: number;
462
+ frequency: string;
463
+ currency: string;
464
+ allowances: mongoose.Types.DocumentArray<{
465
+ type: string;
466
+ amount: number;
467
+ effectiveFrom: NativeDate;
468
+ taxable: boolean;
469
+ recurring: boolean;
470
+ effectiveTo?: NativeDate;
471
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
472
+ type: string;
473
+ amount: number;
474
+ effectiveFrom: NativeDate;
475
+ taxable: boolean;
476
+ recurring: boolean;
477
+ effectiveTo?: NativeDate;
478
+ }> & {
479
+ type: string;
480
+ amount: number;
481
+ effectiveFrom: NativeDate;
482
+ taxable: boolean;
483
+ recurring: boolean;
484
+ effectiveTo?: NativeDate;
485
+ }>;
486
+ deductions: mongoose.Types.DocumentArray<{
487
+ type: string;
488
+ amount: number;
489
+ effectiveFrom: NativeDate;
490
+ recurring: boolean;
491
+ auto: boolean;
492
+ effectiveTo?: NativeDate;
493
+ description?: string;
494
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
495
+ type: string;
496
+ amount: number;
497
+ effectiveFrom: NativeDate;
498
+ recurring: boolean;
499
+ auto: boolean;
500
+ effectiveTo?: NativeDate;
501
+ description?: string;
502
+ }> & {
503
+ type: string;
504
+ amount: number;
505
+ effectiveFrom: NativeDate;
506
+ recurring: boolean;
507
+ auto: boolean;
508
+ effectiveTo?: NativeDate;
509
+ description?: string;
510
+ }>;
511
+ effectiveFrom: NativeDate;
512
+ grossSalary: number;
513
+ netSalary: number;
514
+ lastModified: NativeDate;
515
+ } & {
516
+ _id: mongoose.Types.ObjectId;
517
+ } & {
518
+ __v: number;
519
+ }>;
520
+ export const workScheduleSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
521
+ _id: false;
522
+ }, {
523
+ workingDays: number[];
524
+ hoursPerWeek?: number;
525
+ hoursPerDay?: number;
526
+ shiftStart?: string;
527
+ shiftEnd?: string;
528
+ }, mongoose.Document<unknown, {}, {
529
+ workingDays: number[];
530
+ hoursPerWeek?: number;
531
+ hoursPerDay?: number;
532
+ shiftStart?: string;
533
+ shiftEnd?: string;
534
+ }, {
535
+ id: string;
536
+ }, mongoose.ResolveSchemaOptions<{
537
+ _id: false;
538
+ }>> & Omit<{
539
+ workingDays: number[];
540
+ hoursPerWeek?: number;
541
+ hoursPerDay?: number;
542
+ shiftStart?: string;
543
+ shiftEnd?: string;
544
+ } & {
545
+ _id: mongoose.Types.ObjectId;
546
+ } & {
547
+ __v: number;
548
+ }, "id"> & {
549
+ id: string;
550
+ }, {
551
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
552
+ } | {
553
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
554
+ workingDays: number[];
555
+ hoursPerWeek?: number;
556
+ hoursPerDay?: number;
557
+ shiftStart?: string;
558
+ shiftEnd?: string;
559
+ }, {
560
+ id: string;
561
+ }, mongoose.ResolveSchemaOptions<{
562
+ _id: false;
563
+ }>> & Omit<{
564
+ workingDays: number[];
565
+ hoursPerWeek?: number;
566
+ hoursPerDay?: number;
567
+ shiftStart?: string;
568
+ shiftEnd?: string;
569
+ } & {
570
+ _id: mongoose.Types.ObjectId;
571
+ } & {
572
+ __v: number;
573
+ }, "id"> & {
574
+ id: string;
575
+ }>;
576
+ }, {
577
+ workingDays: number[];
578
+ hoursPerWeek?: number;
579
+ hoursPerDay?: number;
580
+ shiftStart?: string;
581
+ shiftEnd?: string;
582
+ } & {
583
+ _id: mongoose.Types.ObjectId;
584
+ } & {
585
+ __v: number;
586
+ }>;
587
+ export const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
588
+ _id: false;
589
+ }, {
590
+ accountName?: string;
591
+ accountNumber?: string;
592
+ bankName?: string;
593
+ branchName?: string;
594
+ routingNumber?: string;
595
+ }, mongoose.Document<unknown, {}, {
596
+ accountName?: string;
597
+ accountNumber?: string;
598
+ bankName?: string;
599
+ branchName?: string;
600
+ routingNumber?: string;
601
+ }, {
602
+ id: string;
603
+ }, mongoose.ResolveSchemaOptions<{
604
+ _id: false;
605
+ }>> & Omit<{
606
+ accountName?: string;
607
+ accountNumber?: string;
608
+ bankName?: string;
609
+ branchName?: string;
610
+ routingNumber?: string;
611
+ } & {
612
+ _id: mongoose.Types.ObjectId;
613
+ } & {
614
+ __v: number;
615
+ }, "id"> & {
616
+ id: string;
617
+ }, {
618
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
619
+ } | {
620
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
621
+ accountName?: string;
622
+ accountNumber?: string;
623
+ bankName?: string;
624
+ branchName?: string;
625
+ routingNumber?: string;
626
+ }, {
627
+ id: string;
628
+ }, mongoose.ResolveSchemaOptions<{
629
+ _id: false;
630
+ }>> & Omit<{
631
+ accountName?: string;
632
+ accountNumber?: string;
633
+ bankName?: string;
634
+ branchName?: string;
635
+ routingNumber?: string;
636
+ } & {
637
+ _id: mongoose.Types.ObjectId;
638
+ } & {
639
+ __v: number;
640
+ }, "id"> & {
641
+ id: string;
642
+ }>;
643
+ }, {
644
+ accountName?: string;
645
+ accountNumber?: string;
646
+ bankName?: string;
647
+ branchName?: string;
648
+ routingNumber?: string;
649
+ } & {
650
+ _id: mongoose.Types.ObjectId;
651
+ } & {
652
+ __v: number;
653
+ }>;
654
+ export const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
655
+ _id: false;
656
+ }, {
657
+ updatedAt: NativeDate;
658
+ totalPaid: number;
659
+ paymentsThisYear: number;
660
+ averageMonthly: number;
661
+ lastPaymentDate?: NativeDate;
662
+ nextPaymentDate?: NativeDate;
663
+ }, mongoose.Document<unknown, {}, {
664
+ updatedAt: NativeDate;
665
+ totalPaid: number;
666
+ paymentsThisYear: number;
667
+ averageMonthly: number;
668
+ lastPaymentDate?: NativeDate;
669
+ nextPaymentDate?: NativeDate;
670
+ }, {
671
+ id: string;
672
+ }, mongoose.ResolveSchemaOptions<{
673
+ _id: false;
674
+ }>> & Omit<{
675
+ updatedAt: NativeDate;
676
+ totalPaid: number;
677
+ paymentsThisYear: number;
678
+ averageMonthly: number;
679
+ lastPaymentDate?: NativeDate;
680
+ nextPaymentDate?: NativeDate;
681
+ } & {
682
+ _id: mongoose.Types.ObjectId;
683
+ } & {
684
+ __v: number;
685
+ }, "id"> & {
686
+ id: string;
687
+ }, {
688
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
689
+ } | {
690
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
691
+ updatedAt: NativeDate;
692
+ totalPaid: number;
693
+ paymentsThisYear: number;
694
+ averageMonthly: number;
695
+ lastPaymentDate?: NativeDate;
696
+ nextPaymentDate?: NativeDate;
697
+ }, {
698
+ id: string;
699
+ }, mongoose.ResolveSchemaOptions<{
700
+ _id: false;
701
+ }>> & Omit<{
702
+ updatedAt: NativeDate;
703
+ totalPaid: number;
704
+ paymentsThisYear: number;
705
+ averageMonthly: number;
706
+ lastPaymentDate?: NativeDate;
707
+ nextPaymentDate?: NativeDate;
708
+ } & {
709
+ _id: mongoose.Types.ObjectId;
710
+ } & {
711
+ __v: number;
712
+ }, "id"> & {
713
+ id: string;
714
+ }>;
715
+ }, {
716
+ updatedAt: NativeDate;
717
+ totalPaid: number;
718
+ paymentsThisYear: number;
719
+ averageMonthly: number;
720
+ lastPaymentDate?: NativeDate;
721
+ nextPaymentDate?: NativeDate;
722
+ } & {
723
+ _id: mongoose.Types.ObjectId;
724
+ } & {
725
+ __v: number;
726
+ }>;
727
+ export const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
728
+ _id: false;
729
+ }, {
730
+ type: string;
731
+ amount: number;
732
+ effectiveFrom: NativeDate;
733
+ taxable: boolean;
734
+ recurring: boolean;
735
+ effectiveTo?: NativeDate;
736
+ }, mongoose.Document<unknown, {}, {
737
+ type: string;
738
+ amount: number;
739
+ effectiveFrom: NativeDate;
740
+ taxable: boolean;
741
+ recurring: boolean;
742
+ effectiveTo?: NativeDate;
743
+ }, {
744
+ id: string;
745
+ }, mongoose.ResolveSchemaOptions<{
746
+ _id: false;
747
+ }>> & Omit<{
748
+ type: string;
749
+ amount: number;
750
+ effectiveFrom: NativeDate;
751
+ taxable: boolean;
752
+ recurring: boolean;
753
+ effectiveTo?: NativeDate;
754
+ } & {
755
+ _id: mongoose.Types.ObjectId;
756
+ } & {
757
+ __v: number;
758
+ }, "id"> & {
759
+ id: string;
760
+ }, {
761
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
762
+ } | {
763
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
764
+ type: string;
765
+ amount: number;
766
+ effectiveFrom: NativeDate;
767
+ taxable: boolean;
768
+ recurring: boolean;
769
+ effectiveTo?: NativeDate;
770
+ }, {
771
+ id: string;
772
+ }, mongoose.ResolveSchemaOptions<{
773
+ _id: false;
774
+ }>> & Omit<{
775
+ type: string;
776
+ amount: number;
777
+ effectiveFrom: NativeDate;
778
+ taxable: boolean;
779
+ recurring: boolean;
780
+ effectiveTo?: NativeDate;
781
+ } & {
782
+ _id: mongoose.Types.ObjectId;
783
+ } & {
784
+ __v: number;
785
+ }, "id"> & {
786
+ id: string;
787
+ }>;
788
+ }, {
789
+ type: string;
790
+ amount: number;
791
+ effectiveFrom: NativeDate;
792
+ taxable: boolean;
793
+ recurring: boolean;
794
+ effectiveTo?: NativeDate;
795
+ } & {
796
+ _id: mongoose.Types.ObjectId;
797
+ } & {
798
+ __v: number;
799
+ }>;
800
+ export const deductionSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
801
+ _id: false;
802
+ }, {
803
+ type: string;
804
+ amount: number;
805
+ effectiveFrom: NativeDate;
806
+ recurring: boolean;
807
+ auto: boolean;
808
+ effectiveTo?: NativeDate;
809
+ description?: string;
810
+ }, mongoose.Document<unknown, {}, {
811
+ type: string;
812
+ amount: number;
813
+ effectiveFrom: NativeDate;
814
+ recurring: boolean;
815
+ auto: boolean;
816
+ effectiveTo?: NativeDate;
817
+ description?: string;
818
+ }, {
819
+ id: string;
820
+ }, mongoose.ResolveSchemaOptions<{
821
+ _id: false;
822
+ }>> & Omit<{
823
+ type: string;
824
+ amount: number;
825
+ effectiveFrom: NativeDate;
826
+ recurring: boolean;
827
+ auto: boolean;
828
+ effectiveTo?: NativeDate;
829
+ description?: string;
830
+ } & {
831
+ _id: mongoose.Types.ObjectId;
832
+ } & {
833
+ __v: number;
834
+ }, "id"> & {
835
+ id: string;
836
+ }, {
837
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
838
+ } | {
839
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
840
+ type: string;
841
+ amount: number;
842
+ effectiveFrom: NativeDate;
843
+ recurring: boolean;
844
+ auto: boolean;
845
+ effectiveTo?: NativeDate;
846
+ description?: string;
847
+ }, {
848
+ id: string;
849
+ }, mongoose.ResolveSchemaOptions<{
850
+ _id: false;
851
+ }>> & Omit<{
852
+ type: string;
853
+ amount: number;
854
+ effectiveFrom: NativeDate;
855
+ recurring: boolean;
856
+ auto: boolean;
857
+ effectiveTo?: NativeDate;
858
+ description?: string;
859
+ } & {
860
+ _id: mongoose.Types.ObjectId;
861
+ } & {
862
+ __v: number;
863
+ }, "id"> & {
864
+ id: string;
865
+ }>;
866
+ }, {
867
+ type: string;
868
+ amount: number;
869
+ effectiveFrom: NativeDate;
870
+ recurring: boolean;
871
+ auto: boolean;
872
+ effectiveTo?: NativeDate;
873
+ description?: string;
874
+ } & {
875
+ _id: mongoose.Types.ObjectId;
876
+ } & {
877
+ __v: number;
878
+ }>;
879
+ export const employmentHistorySchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
880
+ timestamps: true;
881
+ }, {
882
+ hireDate: NativeDate;
883
+ terminationDate: NativeDate;
884
+ department?: string;
885
+ position?: string;
886
+ reason?: string;
887
+ notes?: string;
888
+ finalSalary?: number;
889
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
890
+ hireDate: NativeDate;
891
+ terminationDate: NativeDate;
892
+ department?: string;
893
+ position?: string;
894
+ reason?: string;
895
+ notes?: string;
896
+ finalSalary?: number;
897
+ } & mongoose.DefaultTimestampProps, {
898
+ id: string;
899
+ }, mongoose.ResolveSchemaOptions<{
900
+ timestamps: true;
901
+ }>> & Omit<{
902
+ hireDate: NativeDate;
903
+ terminationDate: NativeDate;
904
+ department?: string;
905
+ position?: string;
906
+ reason?: string;
907
+ notes?: string;
908
+ finalSalary?: number;
909
+ } & mongoose.DefaultTimestampProps & {
910
+ _id: mongoose.Types.ObjectId;
911
+ } & {
912
+ __v: number;
913
+ }, "id"> & {
914
+ id: string;
915
+ }, {
916
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
917
+ } | {
918
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
919
+ hireDate: NativeDate;
920
+ terminationDate: NativeDate;
921
+ department?: string;
922
+ position?: string;
923
+ reason?: string;
924
+ notes?: string;
925
+ finalSalary?: number;
926
+ } & mongoose.DefaultTimestampProps, {
927
+ id: string;
928
+ }, mongoose.ResolveSchemaOptions<{
929
+ timestamps: true;
930
+ }>> & Omit<{
931
+ hireDate: NativeDate;
932
+ terminationDate: NativeDate;
933
+ department?: string;
934
+ position?: string;
935
+ reason?: string;
936
+ notes?: string;
937
+ finalSalary?: number;
938
+ } & mongoose.DefaultTimestampProps & {
939
+ _id: mongoose.Types.ObjectId;
940
+ } & {
941
+ __v: number;
942
+ }, "id"> & {
943
+ id: string;
944
+ }>;
945
+ }, {
946
+ hireDate: NativeDate;
947
+ terminationDate: NativeDate;
948
+ department?: string;
949
+ position?: string;
950
+ reason?: string;
951
+ notes?: string;
952
+ finalSalary?: number;
953
+ createdAt: NativeDate;
954
+ updatedAt: NativeDate;
955
+ } & {
956
+ _id: mongoose.Types.ObjectId;
957
+ } & {
958
+ __v: number;
959
+ }>;