@classytic/payroll 2.7.5 → 2.8.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/README.md +333 -323
- package/dist/attendance.calculator-BZcv2iii.d.ts +336 -0
- package/dist/calculators/index.d.ts +3 -299
- package/dist/calculators/index.js +154 -19
- package/dist/calculators/index.js.map +1 -1
- package/dist/core/index.d.ts +321 -0
- package/dist/core/index.js +1962 -0
- package/dist/core/index.js.map +1 -0
- package/dist/{employee-identity-Cq2wo9-2.d.ts → error-helpers-Bm6lMny2.d.ts} +257 -7
- package/dist/{index-DjB72l6e.d.ts → index-BKLkuSAs.d.ts} +248 -132
- package/dist/index.d.ts +418 -658
- package/dist/index.js +1179 -373
- package/dist/index.js.map +1 -1
- package/dist/payroll-states-DBt0XVm-.d.ts +598 -0
- package/dist/{prorating.calculator-C7sdFiG2.d.ts → prorating.calculator-C33fWBQf.d.ts} +2 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +95 -75
- package/dist/schemas/index.js.map +1 -1
- package/dist/{types-BVDjiVGS.d.ts → types-bZdAJueH.d.ts} +427 -12
- package/dist/utils/index.d.ts +17 -5
- package/dist/utils/index.js +185 -25
- package/dist/utils/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as bson from 'bson';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import mongoose__default, { Model, Schema, SchemaDefinition, Types } from 'mongoose';
|
|
4
|
-
import { T as TaxWithholdingDocument,
|
|
4
|
+
import { T as TaxWithholdingDocument, a4 as TaxType, a5 as TaxStatus, L as LeaveRequestDocument, a6 as LeaveRequestStatus, a7 as LeaveType } from './types-bZdAJueH.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @classytic/payroll - TaxWithholding Model
|
|
@@ -519,17 +519,17 @@ declare function getLeaveRequestModel(connection?: mongoose__default.Connection)
|
|
|
519
519
|
declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
520
520
|
_id: false;
|
|
521
521
|
}, {
|
|
522
|
+
year: number;
|
|
522
523
|
pending: number;
|
|
523
524
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
524
|
-
year: number;
|
|
525
525
|
allocated: number;
|
|
526
526
|
used: number;
|
|
527
527
|
carriedOver: number;
|
|
528
528
|
expiresAt?: NativeDate | null | undefined;
|
|
529
529
|
}, mongoose.Document<unknown, {}, {
|
|
530
|
+
year: number;
|
|
530
531
|
pending: number;
|
|
531
532
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
532
|
-
year: number;
|
|
533
533
|
allocated: number;
|
|
534
534
|
used: number;
|
|
535
535
|
carriedOver: number;
|
|
@@ -539,9 +539,9 @@ declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
539
539
|
}, mongoose.ResolveSchemaOptions<{
|
|
540
540
|
_id: false;
|
|
541
541
|
}>> & Omit<{
|
|
542
|
+
year: number;
|
|
542
543
|
pending: number;
|
|
543
544
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
544
|
-
year: number;
|
|
545
545
|
allocated: number;
|
|
546
546
|
used: number;
|
|
547
547
|
carriedOver: number;
|
|
@@ -556,9 +556,9 @@ declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
556
556
|
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
557
557
|
} | {
|
|
558
558
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
559
|
+
year: number;
|
|
559
560
|
pending: number;
|
|
560
561
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
561
|
-
year: number;
|
|
562
562
|
allocated: number;
|
|
563
563
|
used: number;
|
|
564
564
|
carriedOver: number;
|
|
@@ -568,9 +568,9 @@ declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
568
568
|
}, mongoose.ResolveSchemaOptions<{
|
|
569
569
|
_id: false;
|
|
570
570
|
}>> & Omit<{
|
|
571
|
+
year: number;
|
|
571
572
|
pending: number;
|
|
572
573
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
573
|
-
year: number;
|
|
574
574
|
allocated: number;
|
|
575
575
|
used: number;
|
|
576
576
|
carriedOver: number;
|
|
@@ -583,9 +583,9 @@ declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
583
583
|
id: string;
|
|
584
584
|
}> | undefined;
|
|
585
585
|
}, {
|
|
586
|
+
year: number;
|
|
586
587
|
pending: number;
|
|
587
588
|
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
588
|
-
year: number;
|
|
589
589
|
allocated: number;
|
|
590
590
|
used: number;
|
|
591
591
|
carriedOver: number;
|
|
@@ -935,7 +935,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
935
935
|
_id: false;
|
|
936
936
|
}, {
|
|
937
937
|
amount: number;
|
|
938
|
-
type: "
|
|
938
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
939
939
|
auto: boolean;
|
|
940
940
|
isPercentage: boolean;
|
|
941
941
|
recurring: boolean;
|
|
@@ -946,7 +946,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
946
946
|
effectiveTo?: NativeDate | null | undefined;
|
|
947
947
|
}, mongoose.Document<unknown, {}, {
|
|
948
948
|
amount: number;
|
|
949
|
-
type: "
|
|
949
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
950
950
|
auto: boolean;
|
|
951
951
|
isPercentage: boolean;
|
|
952
952
|
recurring: boolean;
|
|
@@ -961,7 +961,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
961
961
|
_id: false;
|
|
962
962
|
}>> & Omit<{
|
|
963
963
|
amount: number;
|
|
964
|
-
type: "
|
|
964
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
965
965
|
auto: boolean;
|
|
966
966
|
isPercentage: boolean;
|
|
967
967
|
recurring: boolean;
|
|
@@ -981,7 +981,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
981
981
|
} | {
|
|
982
982
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
983
983
|
amount: number;
|
|
984
|
-
type: "
|
|
984
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
985
985
|
auto: boolean;
|
|
986
986
|
isPercentage: boolean;
|
|
987
987
|
recurring: boolean;
|
|
@@ -996,7 +996,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
996
996
|
_id: false;
|
|
997
997
|
}>> & Omit<{
|
|
998
998
|
amount: number;
|
|
999
|
-
type: "
|
|
999
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1000
1000
|
auto: boolean;
|
|
1001
1001
|
isPercentage: boolean;
|
|
1002
1002
|
recurring: boolean;
|
|
@@ -1014,7 +1014,7 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
1014
1014
|
}> | undefined;
|
|
1015
1015
|
}, {
|
|
1016
1016
|
amount: number;
|
|
1017
|
-
type: "
|
|
1017
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1018
1018
|
auto: boolean;
|
|
1019
1019
|
isPercentage: boolean;
|
|
1020
1020
|
recurring: boolean;
|
|
@@ -1034,6 +1034,9 @@ declare const deductionSchema: Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
1034
1034
|
declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1035
1035
|
_id: false;
|
|
1036
1036
|
}, {
|
|
1037
|
+
effectiveFrom: NativeDate;
|
|
1038
|
+
baseAmount: number;
|
|
1039
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1037
1040
|
allowances: Types.DocumentArray<{
|
|
1038
1041
|
amount: number;
|
|
1039
1042
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1067,7 +1070,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1067
1070
|
}>;
|
|
1068
1071
|
deductions: Types.DocumentArray<{
|
|
1069
1072
|
amount: number;
|
|
1070
|
-
type: "
|
|
1073
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1071
1074
|
auto: boolean;
|
|
1072
1075
|
isPercentage: boolean;
|
|
1073
1076
|
recurring: boolean;
|
|
@@ -1078,7 +1081,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1078
1081
|
effectiveTo?: NativeDate | null | undefined;
|
|
1079
1082
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1080
1083
|
amount: number;
|
|
1081
|
-
type: "
|
|
1084
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1082
1085
|
auto: boolean;
|
|
1083
1086
|
isPercentage: boolean;
|
|
1084
1087
|
recurring: boolean;
|
|
@@ -1089,7 +1092,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1089
1092
|
effectiveTo?: NativeDate | null | undefined;
|
|
1090
1093
|
}> & {
|
|
1091
1094
|
amount: number;
|
|
1092
|
-
type: "
|
|
1095
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1093
1096
|
auto: boolean;
|
|
1094
1097
|
isPercentage: boolean;
|
|
1095
1098
|
recurring: boolean;
|
|
@@ -1099,14 +1102,14 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1099
1102
|
value?: number | null | undefined;
|
|
1100
1103
|
effectiveTo?: NativeDate | null | undefined;
|
|
1101
1104
|
}>;
|
|
1102
|
-
effectiveFrom: NativeDate;
|
|
1103
|
-
baseAmount: number;
|
|
1104
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1105
1105
|
grossSalary: number;
|
|
1106
1106
|
netSalary: number;
|
|
1107
1107
|
lastModified: NativeDate;
|
|
1108
1108
|
currency?: string | null | undefined;
|
|
1109
1109
|
}, mongoose.Document<unknown, {}, {
|
|
1110
|
+
effectiveFrom: NativeDate;
|
|
1111
|
+
baseAmount: number;
|
|
1112
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1110
1113
|
allowances: Types.DocumentArray<{
|
|
1111
1114
|
amount: number;
|
|
1112
1115
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1140,7 +1143,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1140
1143
|
}>;
|
|
1141
1144
|
deductions: Types.DocumentArray<{
|
|
1142
1145
|
amount: number;
|
|
1143
|
-
type: "
|
|
1146
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1144
1147
|
auto: boolean;
|
|
1145
1148
|
isPercentage: boolean;
|
|
1146
1149
|
recurring: boolean;
|
|
@@ -1151,7 +1154,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1151
1154
|
effectiveTo?: NativeDate | null | undefined;
|
|
1152
1155
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1153
1156
|
amount: number;
|
|
1154
|
-
type: "
|
|
1157
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1155
1158
|
auto: boolean;
|
|
1156
1159
|
isPercentage: boolean;
|
|
1157
1160
|
recurring: boolean;
|
|
@@ -1162,7 +1165,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1162
1165
|
effectiveTo?: NativeDate | null | undefined;
|
|
1163
1166
|
}> & {
|
|
1164
1167
|
amount: number;
|
|
1165
|
-
type: "
|
|
1168
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1166
1169
|
auto: boolean;
|
|
1167
1170
|
isPercentage: boolean;
|
|
1168
1171
|
recurring: boolean;
|
|
@@ -1172,9 +1175,6 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1172
1175
|
value?: number | null | undefined;
|
|
1173
1176
|
effectiveTo?: NativeDate | null | undefined;
|
|
1174
1177
|
}>;
|
|
1175
|
-
effectiveFrom: NativeDate;
|
|
1176
|
-
baseAmount: number;
|
|
1177
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1178
1178
|
grossSalary: number;
|
|
1179
1179
|
netSalary: number;
|
|
1180
1180
|
lastModified: NativeDate;
|
|
@@ -1184,6 +1184,9 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1184
1184
|
}, mongoose.ResolveSchemaOptions<{
|
|
1185
1185
|
_id: false;
|
|
1186
1186
|
}>> & Omit<{
|
|
1187
|
+
effectiveFrom: NativeDate;
|
|
1188
|
+
baseAmount: number;
|
|
1189
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1187
1190
|
allowances: Types.DocumentArray<{
|
|
1188
1191
|
amount: number;
|
|
1189
1192
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1217,7 +1220,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1217
1220
|
}>;
|
|
1218
1221
|
deductions: Types.DocumentArray<{
|
|
1219
1222
|
amount: number;
|
|
1220
|
-
type: "
|
|
1223
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1221
1224
|
auto: boolean;
|
|
1222
1225
|
isPercentage: boolean;
|
|
1223
1226
|
recurring: boolean;
|
|
@@ -1228,7 +1231,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1228
1231
|
effectiveTo?: NativeDate | null | undefined;
|
|
1229
1232
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1230
1233
|
amount: number;
|
|
1231
|
-
type: "
|
|
1234
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1232
1235
|
auto: boolean;
|
|
1233
1236
|
isPercentage: boolean;
|
|
1234
1237
|
recurring: boolean;
|
|
@@ -1239,7 +1242,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1239
1242
|
effectiveTo?: NativeDate | null | undefined;
|
|
1240
1243
|
}> & {
|
|
1241
1244
|
amount: number;
|
|
1242
|
-
type: "
|
|
1245
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1243
1246
|
auto: boolean;
|
|
1244
1247
|
isPercentage: boolean;
|
|
1245
1248
|
recurring: boolean;
|
|
@@ -1249,9 +1252,6 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1249
1252
|
value?: number | null | undefined;
|
|
1250
1253
|
effectiveTo?: NativeDate | null | undefined;
|
|
1251
1254
|
}>;
|
|
1252
|
-
effectiveFrom: NativeDate;
|
|
1253
|
-
baseAmount: number;
|
|
1254
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1255
1255
|
grossSalary: number;
|
|
1256
1256
|
netSalary: number;
|
|
1257
1257
|
lastModified: NativeDate;
|
|
@@ -1266,6 +1266,9 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1266
1266
|
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1267
1267
|
} | {
|
|
1268
1268
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1269
|
+
effectiveFrom: NativeDate;
|
|
1270
|
+
baseAmount: number;
|
|
1271
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1269
1272
|
allowances: Types.DocumentArray<{
|
|
1270
1273
|
amount: number;
|
|
1271
1274
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1299,7 +1302,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1299
1302
|
}>;
|
|
1300
1303
|
deductions: Types.DocumentArray<{
|
|
1301
1304
|
amount: number;
|
|
1302
|
-
type: "
|
|
1305
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1303
1306
|
auto: boolean;
|
|
1304
1307
|
isPercentage: boolean;
|
|
1305
1308
|
recurring: boolean;
|
|
@@ -1310,7 +1313,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1310
1313
|
effectiveTo?: NativeDate | null | undefined;
|
|
1311
1314
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1312
1315
|
amount: number;
|
|
1313
|
-
type: "
|
|
1316
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1314
1317
|
auto: boolean;
|
|
1315
1318
|
isPercentage: boolean;
|
|
1316
1319
|
recurring: boolean;
|
|
@@ -1321,7 +1324,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1321
1324
|
effectiveTo?: NativeDate | null | undefined;
|
|
1322
1325
|
}> & {
|
|
1323
1326
|
amount: number;
|
|
1324
|
-
type: "
|
|
1327
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1325
1328
|
auto: boolean;
|
|
1326
1329
|
isPercentage: boolean;
|
|
1327
1330
|
recurring: boolean;
|
|
@@ -1331,9 +1334,6 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1331
1334
|
value?: number | null | undefined;
|
|
1332
1335
|
effectiveTo?: NativeDate | null | undefined;
|
|
1333
1336
|
}>;
|
|
1334
|
-
effectiveFrom: NativeDate;
|
|
1335
|
-
baseAmount: number;
|
|
1336
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1337
1337
|
grossSalary: number;
|
|
1338
1338
|
netSalary: number;
|
|
1339
1339
|
lastModified: NativeDate;
|
|
@@ -1343,6 +1343,9 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1343
1343
|
}, mongoose.ResolveSchemaOptions<{
|
|
1344
1344
|
_id: false;
|
|
1345
1345
|
}>> & Omit<{
|
|
1346
|
+
effectiveFrom: NativeDate;
|
|
1347
|
+
baseAmount: number;
|
|
1348
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1346
1349
|
allowances: Types.DocumentArray<{
|
|
1347
1350
|
amount: number;
|
|
1348
1351
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1376,7 +1379,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1376
1379
|
}>;
|
|
1377
1380
|
deductions: Types.DocumentArray<{
|
|
1378
1381
|
amount: number;
|
|
1379
|
-
type: "
|
|
1382
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1380
1383
|
auto: boolean;
|
|
1381
1384
|
isPercentage: boolean;
|
|
1382
1385
|
recurring: boolean;
|
|
@@ -1387,7 +1390,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1387
1390
|
effectiveTo?: NativeDate | null | undefined;
|
|
1388
1391
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1389
1392
|
amount: number;
|
|
1390
|
-
type: "
|
|
1393
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1391
1394
|
auto: boolean;
|
|
1392
1395
|
isPercentage: boolean;
|
|
1393
1396
|
recurring: boolean;
|
|
@@ -1398,7 +1401,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1398
1401
|
effectiveTo?: NativeDate | null | undefined;
|
|
1399
1402
|
}> & {
|
|
1400
1403
|
amount: number;
|
|
1401
|
-
type: "
|
|
1404
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1402
1405
|
auto: boolean;
|
|
1403
1406
|
isPercentage: boolean;
|
|
1404
1407
|
recurring: boolean;
|
|
@@ -1408,9 +1411,6 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1408
1411
|
value?: number | null | undefined;
|
|
1409
1412
|
effectiveTo?: NativeDate | null | undefined;
|
|
1410
1413
|
}>;
|
|
1411
|
-
effectiveFrom: NativeDate;
|
|
1412
|
-
baseAmount: number;
|
|
1413
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1414
1414
|
grossSalary: number;
|
|
1415
1415
|
netSalary: number;
|
|
1416
1416
|
lastModified: NativeDate;
|
|
@@ -1423,6 +1423,9 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1423
1423
|
id: string;
|
|
1424
1424
|
}> | undefined;
|
|
1425
1425
|
}, {
|
|
1426
|
+
effectiveFrom: NativeDate;
|
|
1427
|
+
baseAmount: number;
|
|
1428
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1426
1429
|
allowances: Types.DocumentArray<{
|
|
1427
1430
|
amount: number;
|
|
1428
1431
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -1456,7 +1459,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1456
1459
|
}>;
|
|
1457
1460
|
deductions: Types.DocumentArray<{
|
|
1458
1461
|
amount: number;
|
|
1459
|
-
type: "
|
|
1462
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1460
1463
|
auto: boolean;
|
|
1461
1464
|
isPercentage: boolean;
|
|
1462
1465
|
recurring: boolean;
|
|
@@ -1467,7 +1470,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1467
1470
|
effectiveTo?: NativeDate | null | undefined;
|
|
1468
1471
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
1469
1472
|
amount: number;
|
|
1470
|
-
type: "
|
|
1473
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1471
1474
|
auto: boolean;
|
|
1472
1475
|
isPercentage: boolean;
|
|
1473
1476
|
recurring: boolean;
|
|
@@ -1478,7 +1481,7 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1478
1481
|
effectiveTo?: NativeDate | null | undefined;
|
|
1479
1482
|
}> & {
|
|
1480
1483
|
amount: number;
|
|
1481
|
-
type: "
|
|
1484
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1482
1485
|
auto: boolean;
|
|
1483
1486
|
isPercentage: boolean;
|
|
1484
1487
|
recurring: boolean;
|
|
@@ -1488,9 +1491,6 @@ declare const compensationSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1488
1491
|
value?: number | null | undefined;
|
|
1489
1492
|
effectiveTo?: NativeDate | null | undefined;
|
|
1490
1493
|
}>;
|
|
1491
|
-
effectiveFrom: NativeDate;
|
|
1492
|
-
baseAmount: number;
|
|
1493
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1494
1494
|
grossSalary: number;
|
|
1495
1495
|
netSalary: number;
|
|
1496
1496
|
lastModified: NativeDate;
|
|
@@ -1507,14 +1507,14 @@ declare const workScheduleSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1507
1507
|
_id: false;
|
|
1508
1508
|
}, {
|
|
1509
1509
|
workingDays: number[];
|
|
1510
|
-
hoursPerDay?: number | null | undefined;
|
|
1511
1510
|
hoursPerWeek?: number | null | undefined;
|
|
1511
|
+
hoursPerDay?: number | null | undefined;
|
|
1512
1512
|
shiftStart?: string | null | undefined;
|
|
1513
1513
|
shiftEnd?: string | null | undefined;
|
|
1514
1514
|
}, mongoose.Document<unknown, {}, {
|
|
1515
1515
|
workingDays: number[];
|
|
1516
|
-
hoursPerDay?: number | null | undefined;
|
|
1517
1516
|
hoursPerWeek?: number | null | undefined;
|
|
1517
|
+
hoursPerDay?: number | null | undefined;
|
|
1518
1518
|
shiftStart?: string | null | undefined;
|
|
1519
1519
|
shiftEnd?: string | null | undefined;
|
|
1520
1520
|
}, {
|
|
@@ -1523,8 +1523,8 @@ declare const workScheduleSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1523
1523
|
_id: false;
|
|
1524
1524
|
}>> & Omit<{
|
|
1525
1525
|
workingDays: number[];
|
|
1526
|
-
hoursPerDay?: number | null | undefined;
|
|
1527
1526
|
hoursPerWeek?: number | null | undefined;
|
|
1527
|
+
hoursPerDay?: number | null | undefined;
|
|
1528
1528
|
shiftStart?: string | null | undefined;
|
|
1529
1529
|
shiftEnd?: string | null | undefined;
|
|
1530
1530
|
} & {
|
|
@@ -1538,8 +1538,8 @@ declare const workScheduleSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1538
1538
|
} | {
|
|
1539
1539
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1540
1540
|
workingDays: number[];
|
|
1541
|
-
hoursPerDay?: number | null | undefined;
|
|
1542
1541
|
hoursPerWeek?: number | null | undefined;
|
|
1542
|
+
hoursPerDay?: number | null | undefined;
|
|
1543
1543
|
shiftStart?: string | null | undefined;
|
|
1544
1544
|
shiftEnd?: string | null | undefined;
|
|
1545
1545
|
}, {
|
|
@@ -1548,8 +1548,8 @@ declare const workScheduleSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1548
1548
|
_id: false;
|
|
1549
1549
|
}>> & Omit<{
|
|
1550
1550
|
workingDays: number[];
|
|
1551
|
-
hoursPerDay?: number | null | undefined;
|
|
1552
1551
|
hoursPerWeek?: number | null | undefined;
|
|
1552
|
+
hoursPerDay?: number | null | undefined;
|
|
1553
1553
|
shiftStart?: string | null | undefined;
|
|
1554
1554
|
shiftEnd?: string | null | undefined;
|
|
1555
1555
|
} & {
|
|
@@ -1561,8 +1561,8 @@ declare const workScheduleSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
1561
1561
|
}> | undefined;
|
|
1562
1562
|
}, {
|
|
1563
1563
|
workingDays: number[];
|
|
1564
|
-
hoursPerDay?: number | null | undefined;
|
|
1565
1564
|
hoursPerWeek?: number | null | undefined;
|
|
1565
|
+
hoursPerDay?: number | null | undefined;
|
|
1566
1566
|
shiftStart?: string | null | undefined;
|
|
1567
1567
|
shiftEnd?: string | null | undefined;
|
|
1568
1568
|
} & {
|
|
@@ -1817,6 +1817,8 @@ declare function createEmploymentFields(options?: PayrollSchemaOptions): SchemaD
|
|
|
1817
1817
|
declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1818
1818
|
_id: false;
|
|
1819
1819
|
}, {
|
|
1820
|
+
taxableAmount: number;
|
|
1821
|
+
baseAmount: number;
|
|
1820
1822
|
allowances: Types.DocumentArray<{
|
|
1821
1823
|
amount: number;
|
|
1822
1824
|
type: string;
|
|
@@ -1843,8 +1845,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1843
1845
|
type: string;
|
|
1844
1846
|
description?: string | null | undefined;
|
|
1845
1847
|
}>;
|
|
1846
|
-
taxableAmount: number;
|
|
1847
|
-
baseAmount: number;
|
|
1848
1848
|
grossSalary: number;
|
|
1849
1849
|
netSalary: number;
|
|
1850
1850
|
taxAmount: number;
|
|
@@ -1855,6 +1855,8 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1855
1855
|
workingDays?: number | null | undefined;
|
|
1856
1856
|
actualDays?: number | null | undefined;
|
|
1857
1857
|
}, mongoose.Document<unknown, {}, {
|
|
1858
|
+
taxableAmount: number;
|
|
1859
|
+
baseAmount: number;
|
|
1858
1860
|
allowances: Types.DocumentArray<{
|
|
1859
1861
|
amount: number;
|
|
1860
1862
|
type: string;
|
|
@@ -1881,8 +1883,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1881
1883
|
type: string;
|
|
1882
1884
|
description?: string | null | undefined;
|
|
1883
1885
|
}>;
|
|
1884
|
-
taxableAmount: number;
|
|
1885
|
-
baseAmount: number;
|
|
1886
1886
|
grossSalary: number;
|
|
1887
1887
|
netSalary: number;
|
|
1888
1888
|
taxAmount: number;
|
|
@@ -1897,6 +1897,8 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1897
1897
|
}, mongoose.ResolveSchemaOptions<{
|
|
1898
1898
|
_id: false;
|
|
1899
1899
|
}>> & Omit<{
|
|
1900
|
+
taxableAmount: number;
|
|
1901
|
+
baseAmount: number;
|
|
1900
1902
|
allowances: Types.DocumentArray<{
|
|
1901
1903
|
amount: number;
|
|
1902
1904
|
type: string;
|
|
@@ -1923,8 +1925,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1923
1925
|
type: string;
|
|
1924
1926
|
description?: string | null | undefined;
|
|
1925
1927
|
}>;
|
|
1926
|
-
taxableAmount: number;
|
|
1927
|
-
baseAmount: number;
|
|
1928
1928
|
grossSalary: number;
|
|
1929
1929
|
netSalary: number;
|
|
1930
1930
|
taxAmount: number;
|
|
@@ -1944,6 +1944,8 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1944
1944
|
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1945
1945
|
} | {
|
|
1946
1946
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1947
|
+
taxableAmount: number;
|
|
1948
|
+
baseAmount: number;
|
|
1947
1949
|
allowances: Types.DocumentArray<{
|
|
1948
1950
|
amount: number;
|
|
1949
1951
|
type: string;
|
|
@@ -1970,8 +1972,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1970
1972
|
type: string;
|
|
1971
1973
|
description?: string | null | undefined;
|
|
1972
1974
|
}>;
|
|
1973
|
-
taxableAmount: number;
|
|
1974
|
-
baseAmount: number;
|
|
1975
1975
|
grossSalary: number;
|
|
1976
1976
|
netSalary: number;
|
|
1977
1977
|
taxAmount: number;
|
|
@@ -1986,6 +1986,8 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
1986
1986
|
}, mongoose.ResolveSchemaOptions<{
|
|
1987
1987
|
_id: false;
|
|
1988
1988
|
}>> & Omit<{
|
|
1989
|
+
taxableAmount: number;
|
|
1990
|
+
baseAmount: number;
|
|
1989
1991
|
allowances: Types.DocumentArray<{
|
|
1990
1992
|
amount: number;
|
|
1991
1993
|
type: string;
|
|
@@ -2012,8 +2014,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
2012
2014
|
type: string;
|
|
2013
2015
|
description?: string | null | undefined;
|
|
2014
2016
|
}>;
|
|
2015
|
-
taxableAmount: number;
|
|
2016
|
-
baseAmount: number;
|
|
2017
2017
|
grossSalary: number;
|
|
2018
2018
|
netSalary: number;
|
|
2019
2019
|
taxAmount: number;
|
|
@@ -2031,6 +2031,8 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
2031
2031
|
id: string;
|
|
2032
2032
|
}> | undefined;
|
|
2033
2033
|
}, {
|
|
2034
|
+
taxableAmount: number;
|
|
2035
|
+
baseAmount: number;
|
|
2034
2036
|
allowances: Types.DocumentArray<{
|
|
2035
2037
|
amount: number;
|
|
2036
2038
|
type: string;
|
|
@@ -2057,8 +2059,6 @@ declare const payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
2057
2059
|
type: string;
|
|
2058
2060
|
description?: string | null | undefined;
|
|
2059
2061
|
}>;
|
|
2060
|
-
taxableAmount: number;
|
|
2061
|
-
baseAmount: number;
|
|
2062
2062
|
grossSalary: number;
|
|
2063
2063
|
netSalary: number;
|
|
2064
2064
|
taxAmount: number;
|
|
@@ -2177,8 +2177,8 @@ declare const employeeIndexes: ({
|
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Recommended indexes for PayrollRecord schema
|
|
2179
2179
|
*
|
|
2180
|
-
*
|
|
2181
|
-
* to
|
|
2180
|
+
* Includes UNIQUE compound index on (org, employee, period, runType) with partial filter
|
|
2181
|
+
* to prevent race conditions while still allowing re-processing after void/reverse.
|
|
2182
2182
|
*/
|
|
2183
2183
|
declare const payrollRecordIndexes: ({
|
|
2184
2184
|
fields: {
|
|
@@ -2186,9 +2186,35 @@ declare const payrollRecordIndexes: ({
|
|
|
2186
2186
|
employeeId: number;
|
|
2187
2187
|
'period.month': number;
|
|
2188
2188
|
'period.year': number;
|
|
2189
|
+
'period.startDate': number;
|
|
2190
|
+
payrollRunType: number;
|
|
2189
2191
|
status?: undefined;
|
|
2190
2192
|
createdAt?: undefined;
|
|
2191
2193
|
'period.payDate'?: undefined;
|
|
2194
|
+
expireAt?: undefined;
|
|
2195
|
+
};
|
|
2196
|
+
options: {
|
|
2197
|
+
unique: boolean;
|
|
2198
|
+
name: string;
|
|
2199
|
+
partialFilterExpression: {
|
|
2200
|
+
isVoided: {
|
|
2201
|
+
$eq: boolean;
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
expireAfterSeconds?: undefined;
|
|
2205
|
+
};
|
|
2206
|
+
} | {
|
|
2207
|
+
fields: {
|
|
2208
|
+
organizationId: number;
|
|
2209
|
+
employeeId: number;
|
|
2210
|
+
'period.month': number;
|
|
2211
|
+
'period.year': number;
|
|
2212
|
+
'period.startDate'?: undefined;
|
|
2213
|
+
payrollRunType?: undefined;
|
|
2214
|
+
status?: undefined;
|
|
2215
|
+
createdAt?: undefined;
|
|
2216
|
+
'period.payDate'?: undefined;
|
|
2217
|
+
expireAt?: undefined;
|
|
2192
2218
|
};
|
|
2193
2219
|
options?: undefined;
|
|
2194
2220
|
} | {
|
|
@@ -2197,9 +2223,12 @@ declare const payrollRecordIndexes: ({
|
|
|
2197
2223
|
'period.year': number;
|
|
2198
2224
|
'period.month': number;
|
|
2199
2225
|
employeeId?: undefined;
|
|
2226
|
+
'period.startDate'?: undefined;
|
|
2227
|
+
payrollRunType?: undefined;
|
|
2200
2228
|
status?: undefined;
|
|
2201
2229
|
createdAt?: undefined;
|
|
2202
2230
|
'period.payDate'?: undefined;
|
|
2231
|
+
expireAt?: undefined;
|
|
2203
2232
|
};
|
|
2204
2233
|
options?: undefined;
|
|
2205
2234
|
} | {
|
|
@@ -2208,9 +2237,12 @@ declare const payrollRecordIndexes: ({
|
|
|
2208
2237
|
'period.year': number;
|
|
2209
2238
|
'period.month': number;
|
|
2210
2239
|
organizationId?: undefined;
|
|
2240
|
+
'period.startDate'?: undefined;
|
|
2241
|
+
payrollRunType?: undefined;
|
|
2211
2242
|
status?: undefined;
|
|
2212
2243
|
createdAt?: undefined;
|
|
2213
2244
|
'period.payDate'?: undefined;
|
|
2245
|
+
expireAt?: undefined;
|
|
2214
2246
|
};
|
|
2215
2247
|
options?: undefined;
|
|
2216
2248
|
} | {
|
|
@@ -2221,7 +2253,10 @@ declare const payrollRecordIndexes: ({
|
|
|
2221
2253
|
employeeId?: undefined;
|
|
2222
2254
|
'period.month'?: undefined;
|
|
2223
2255
|
'period.year'?: undefined;
|
|
2256
|
+
'period.startDate'?: undefined;
|
|
2257
|
+
payrollRunType?: undefined;
|
|
2224
2258
|
'period.payDate'?: undefined;
|
|
2259
|
+
expireAt?: undefined;
|
|
2225
2260
|
};
|
|
2226
2261
|
options?: undefined;
|
|
2227
2262
|
} | {
|
|
@@ -2232,21 +2267,44 @@ declare const payrollRecordIndexes: ({
|
|
|
2232
2267
|
employeeId?: undefined;
|
|
2233
2268
|
'period.month'?: undefined;
|
|
2234
2269
|
'period.year'?: undefined;
|
|
2270
|
+
'period.startDate'?: undefined;
|
|
2271
|
+
payrollRunType?: undefined;
|
|
2235
2272
|
createdAt?: undefined;
|
|
2273
|
+
expireAt?: undefined;
|
|
2236
2274
|
};
|
|
2237
2275
|
options?: undefined;
|
|
2238
2276
|
} | {
|
|
2239
2277
|
fields: {
|
|
2240
|
-
|
|
2278
|
+
organizationId: number;
|
|
2279
|
+
payrollRunType: number;
|
|
2280
|
+
'period.year': number;
|
|
2281
|
+
'period.month': number;
|
|
2282
|
+
employeeId?: undefined;
|
|
2283
|
+
'period.startDate'?: undefined;
|
|
2284
|
+
status?: undefined;
|
|
2285
|
+
createdAt?: undefined;
|
|
2286
|
+
'period.payDate'?: undefined;
|
|
2287
|
+
expireAt?: undefined;
|
|
2288
|
+
};
|
|
2289
|
+
options?: undefined;
|
|
2290
|
+
} | {
|
|
2291
|
+
fields: {
|
|
2292
|
+
expireAt: number;
|
|
2241
2293
|
organizationId?: undefined;
|
|
2242
2294
|
employeeId?: undefined;
|
|
2243
2295
|
'period.month'?: undefined;
|
|
2244
2296
|
'period.year'?: undefined;
|
|
2297
|
+
'period.startDate'?: undefined;
|
|
2298
|
+
payrollRunType?: undefined;
|
|
2245
2299
|
status?: undefined;
|
|
2300
|
+
createdAt?: undefined;
|
|
2246
2301
|
'period.payDate'?: undefined;
|
|
2247
2302
|
};
|
|
2248
2303
|
options: {
|
|
2249
2304
|
expireAfterSeconds: number;
|
|
2305
|
+
unique?: undefined;
|
|
2306
|
+
name?: undefined;
|
|
2307
|
+
partialFilterExpression?: undefined;
|
|
2250
2308
|
};
|
|
2251
2309
|
})[];
|
|
2252
2310
|
/**
|
|
@@ -2396,7 +2454,7 @@ declare const _default: {
|
|
|
2396
2454
|
_id: false;
|
|
2397
2455
|
}, {
|
|
2398
2456
|
amount: number;
|
|
2399
|
-
type: "
|
|
2457
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2400
2458
|
auto: boolean;
|
|
2401
2459
|
isPercentage: boolean;
|
|
2402
2460
|
recurring: boolean;
|
|
@@ -2407,7 +2465,7 @@ declare const _default: {
|
|
|
2407
2465
|
effectiveTo?: NativeDate | null | undefined;
|
|
2408
2466
|
}, mongoose.Document<unknown, {}, {
|
|
2409
2467
|
amount: number;
|
|
2410
|
-
type: "
|
|
2468
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2411
2469
|
auto: boolean;
|
|
2412
2470
|
isPercentage: boolean;
|
|
2413
2471
|
recurring: boolean;
|
|
@@ -2422,7 +2480,7 @@ declare const _default: {
|
|
|
2422
2480
|
_id: false;
|
|
2423
2481
|
}>> & Omit<{
|
|
2424
2482
|
amount: number;
|
|
2425
|
-
type: "
|
|
2483
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2426
2484
|
auto: boolean;
|
|
2427
2485
|
isPercentage: boolean;
|
|
2428
2486
|
recurring: boolean;
|
|
@@ -2442,7 +2500,7 @@ declare const _default: {
|
|
|
2442
2500
|
} | {
|
|
2443
2501
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
2444
2502
|
amount: number;
|
|
2445
|
-
type: "
|
|
2503
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2446
2504
|
auto: boolean;
|
|
2447
2505
|
isPercentage: boolean;
|
|
2448
2506
|
recurring: boolean;
|
|
@@ -2457,7 +2515,7 @@ declare const _default: {
|
|
|
2457
2515
|
_id: false;
|
|
2458
2516
|
}>> & Omit<{
|
|
2459
2517
|
amount: number;
|
|
2460
|
-
type: "
|
|
2518
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2461
2519
|
auto: boolean;
|
|
2462
2520
|
isPercentage: boolean;
|
|
2463
2521
|
recurring: boolean;
|
|
@@ -2475,7 +2533,7 @@ declare const _default: {
|
|
|
2475
2533
|
}> | undefined;
|
|
2476
2534
|
}, {
|
|
2477
2535
|
amount: number;
|
|
2478
|
-
type: "
|
|
2536
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2479
2537
|
auto: boolean;
|
|
2480
2538
|
isPercentage: boolean;
|
|
2481
2539
|
recurring: boolean;
|
|
@@ -2492,6 +2550,9 @@ declare const _default: {
|
|
|
2492
2550
|
compensationSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2493
2551
|
_id: false;
|
|
2494
2552
|
}, {
|
|
2553
|
+
effectiveFrom: NativeDate;
|
|
2554
|
+
baseAmount: number;
|
|
2555
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2495
2556
|
allowances: Types.DocumentArray<{
|
|
2496
2557
|
amount: number;
|
|
2497
2558
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2525,7 +2586,7 @@ declare const _default: {
|
|
|
2525
2586
|
}>;
|
|
2526
2587
|
deductions: Types.DocumentArray<{
|
|
2527
2588
|
amount: number;
|
|
2528
|
-
type: "
|
|
2589
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2529
2590
|
auto: boolean;
|
|
2530
2591
|
isPercentage: boolean;
|
|
2531
2592
|
recurring: boolean;
|
|
@@ -2536,7 +2597,7 @@ declare const _default: {
|
|
|
2536
2597
|
effectiveTo?: NativeDate | null | undefined;
|
|
2537
2598
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2538
2599
|
amount: number;
|
|
2539
|
-
type: "
|
|
2600
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2540
2601
|
auto: boolean;
|
|
2541
2602
|
isPercentage: boolean;
|
|
2542
2603
|
recurring: boolean;
|
|
@@ -2547,7 +2608,7 @@ declare const _default: {
|
|
|
2547
2608
|
effectiveTo?: NativeDate | null | undefined;
|
|
2548
2609
|
}> & {
|
|
2549
2610
|
amount: number;
|
|
2550
|
-
type: "
|
|
2611
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2551
2612
|
auto: boolean;
|
|
2552
2613
|
isPercentage: boolean;
|
|
2553
2614
|
recurring: boolean;
|
|
@@ -2557,14 +2618,14 @@ declare const _default: {
|
|
|
2557
2618
|
value?: number | null | undefined;
|
|
2558
2619
|
effectiveTo?: NativeDate | null | undefined;
|
|
2559
2620
|
}>;
|
|
2560
|
-
effectiveFrom: NativeDate;
|
|
2561
|
-
baseAmount: number;
|
|
2562
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2563
2621
|
grossSalary: number;
|
|
2564
2622
|
netSalary: number;
|
|
2565
2623
|
lastModified: NativeDate;
|
|
2566
2624
|
currency?: string | null | undefined;
|
|
2567
2625
|
}, mongoose.Document<unknown, {}, {
|
|
2626
|
+
effectiveFrom: NativeDate;
|
|
2627
|
+
baseAmount: number;
|
|
2628
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2568
2629
|
allowances: Types.DocumentArray<{
|
|
2569
2630
|
amount: number;
|
|
2570
2631
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2598,7 +2659,7 @@ declare const _default: {
|
|
|
2598
2659
|
}>;
|
|
2599
2660
|
deductions: Types.DocumentArray<{
|
|
2600
2661
|
amount: number;
|
|
2601
|
-
type: "
|
|
2662
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2602
2663
|
auto: boolean;
|
|
2603
2664
|
isPercentage: boolean;
|
|
2604
2665
|
recurring: boolean;
|
|
@@ -2609,7 +2670,7 @@ declare const _default: {
|
|
|
2609
2670
|
effectiveTo?: NativeDate | null | undefined;
|
|
2610
2671
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2611
2672
|
amount: number;
|
|
2612
|
-
type: "
|
|
2673
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2613
2674
|
auto: boolean;
|
|
2614
2675
|
isPercentage: boolean;
|
|
2615
2676
|
recurring: boolean;
|
|
@@ -2620,7 +2681,7 @@ declare const _default: {
|
|
|
2620
2681
|
effectiveTo?: NativeDate | null | undefined;
|
|
2621
2682
|
}> & {
|
|
2622
2683
|
amount: number;
|
|
2623
|
-
type: "
|
|
2684
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2624
2685
|
auto: boolean;
|
|
2625
2686
|
isPercentage: boolean;
|
|
2626
2687
|
recurring: boolean;
|
|
@@ -2630,9 +2691,6 @@ declare const _default: {
|
|
|
2630
2691
|
value?: number | null | undefined;
|
|
2631
2692
|
effectiveTo?: NativeDate | null | undefined;
|
|
2632
2693
|
}>;
|
|
2633
|
-
effectiveFrom: NativeDate;
|
|
2634
|
-
baseAmount: number;
|
|
2635
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2636
2694
|
grossSalary: number;
|
|
2637
2695
|
netSalary: number;
|
|
2638
2696
|
lastModified: NativeDate;
|
|
@@ -2642,6 +2700,9 @@ declare const _default: {
|
|
|
2642
2700
|
}, mongoose.ResolveSchemaOptions<{
|
|
2643
2701
|
_id: false;
|
|
2644
2702
|
}>> & Omit<{
|
|
2703
|
+
effectiveFrom: NativeDate;
|
|
2704
|
+
baseAmount: number;
|
|
2705
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2645
2706
|
allowances: Types.DocumentArray<{
|
|
2646
2707
|
amount: number;
|
|
2647
2708
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2675,7 +2736,7 @@ declare const _default: {
|
|
|
2675
2736
|
}>;
|
|
2676
2737
|
deductions: Types.DocumentArray<{
|
|
2677
2738
|
amount: number;
|
|
2678
|
-
type: "
|
|
2739
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2679
2740
|
auto: boolean;
|
|
2680
2741
|
isPercentage: boolean;
|
|
2681
2742
|
recurring: boolean;
|
|
@@ -2686,7 +2747,7 @@ declare const _default: {
|
|
|
2686
2747
|
effectiveTo?: NativeDate | null | undefined;
|
|
2687
2748
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2688
2749
|
amount: number;
|
|
2689
|
-
type: "
|
|
2750
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2690
2751
|
auto: boolean;
|
|
2691
2752
|
isPercentage: boolean;
|
|
2692
2753
|
recurring: boolean;
|
|
@@ -2697,7 +2758,7 @@ declare const _default: {
|
|
|
2697
2758
|
effectiveTo?: NativeDate | null | undefined;
|
|
2698
2759
|
}> & {
|
|
2699
2760
|
amount: number;
|
|
2700
|
-
type: "
|
|
2761
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2701
2762
|
auto: boolean;
|
|
2702
2763
|
isPercentage: boolean;
|
|
2703
2764
|
recurring: boolean;
|
|
@@ -2707,9 +2768,6 @@ declare const _default: {
|
|
|
2707
2768
|
value?: number | null | undefined;
|
|
2708
2769
|
effectiveTo?: NativeDate | null | undefined;
|
|
2709
2770
|
}>;
|
|
2710
|
-
effectiveFrom: NativeDate;
|
|
2711
|
-
baseAmount: number;
|
|
2712
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2713
2771
|
grossSalary: number;
|
|
2714
2772
|
netSalary: number;
|
|
2715
2773
|
lastModified: NativeDate;
|
|
@@ -2724,6 +2782,9 @@ declare const _default: {
|
|
|
2724
2782
|
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
2725
2783
|
} | {
|
|
2726
2784
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
2785
|
+
effectiveFrom: NativeDate;
|
|
2786
|
+
baseAmount: number;
|
|
2787
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2727
2788
|
allowances: Types.DocumentArray<{
|
|
2728
2789
|
amount: number;
|
|
2729
2790
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2757,7 +2818,7 @@ declare const _default: {
|
|
|
2757
2818
|
}>;
|
|
2758
2819
|
deductions: Types.DocumentArray<{
|
|
2759
2820
|
amount: number;
|
|
2760
|
-
type: "
|
|
2821
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2761
2822
|
auto: boolean;
|
|
2762
2823
|
isPercentage: boolean;
|
|
2763
2824
|
recurring: boolean;
|
|
@@ -2768,7 +2829,7 @@ declare const _default: {
|
|
|
2768
2829
|
effectiveTo?: NativeDate | null | undefined;
|
|
2769
2830
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2770
2831
|
amount: number;
|
|
2771
|
-
type: "
|
|
2832
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2772
2833
|
auto: boolean;
|
|
2773
2834
|
isPercentage: boolean;
|
|
2774
2835
|
recurring: boolean;
|
|
@@ -2779,7 +2840,7 @@ declare const _default: {
|
|
|
2779
2840
|
effectiveTo?: NativeDate | null | undefined;
|
|
2780
2841
|
}> & {
|
|
2781
2842
|
amount: number;
|
|
2782
|
-
type: "
|
|
2843
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2783
2844
|
auto: boolean;
|
|
2784
2845
|
isPercentage: boolean;
|
|
2785
2846
|
recurring: boolean;
|
|
@@ -2789,9 +2850,6 @@ declare const _default: {
|
|
|
2789
2850
|
value?: number | null | undefined;
|
|
2790
2851
|
effectiveTo?: NativeDate | null | undefined;
|
|
2791
2852
|
}>;
|
|
2792
|
-
effectiveFrom: NativeDate;
|
|
2793
|
-
baseAmount: number;
|
|
2794
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2795
2853
|
grossSalary: number;
|
|
2796
2854
|
netSalary: number;
|
|
2797
2855
|
lastModified: NativeDate;
|
|
@@ -2801,6 +2859,9 @@ declare const _default: {
|
|
|
2801
2859
|
}, mongoose.ResolveSchemaOptions<{
|
|
2802
2860
|
_id: false;
|
|
2803
2861
|
}>> & Omit<{
|
|
2862
|
+
effectiveFrom: NativeDate;
|
|
2863
|
+
baseAmount: number;
|
|
2864
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2804
2865
|
allowances: Types.DocumentArray<{
|
|
2805
2866
|
amount: number;
|
|
2806
2867
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2834,7 +2895,7 @@ declare const _default: {
|
|
|
2834
2895
|
}>;
|
|
2835
2896
|
deductions: Types.DocumentArray<{
|
|
2836
2897
|
amount: number;
|
|
2837
|
-
type: "
|
|
2898
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2838
2899
|
auto: boolean;
|
|
2839
2900
|
isPercentage: boolean;
|
|
2840
2901
|
recurring: boolean;
|
|
@@ -2845,7 +2906,7 @@ declare const _default: {
|
|
|
2845
2906
|
effectiveTo?: NativeDate | null | undefined;
|
|
2846
2907
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2847
2908
|
amount: number;
|
|
2848
|
-
type: "
|
|
2909
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2849
2910
|
auto: boolean;
|
|
2850
2911
|
isPercentage: boolean;
|
|
2851
2912
|
recurring: boolean;
|
|
@@ -2856,7 +2917,7 @@ declare const _default: {
|
|
|
2856
2917
|
effectiveTo?: NativeDate | null | undefined;
|
|
2857
2918
|
}> & {
|
|
2858
2919
|
amount: number;
|
|
2859
|
-
type: "
|
|
2920
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2860
2921
|
auto: boolean;
|
|
2861
2922
|
isPercentage: boolean;
|
|
2862
2923
|
recurring: boolean;
|
|
@@ -2866,9 +2927,6 @@ declare const _default: {
|
|
|
2866
2927
|
value?: number | null | undefined;
|
|
2867
2928
|
effectiveTo?: NativeDate | null | undefined;
|
|
2868
2929
|
}>;
|
|
2869
|
-
effectiveFrom: NativeDate;
|
|
2870
|
-
baseAmount: number;
|
|
2871
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2872
2930
|
grossSalary: number;
|
|
2873
2931
|
netSalary: number;
|
|
2874
2932
|
lastModified: NativeDate;
|
|
@@ -2881,6 +2939,9 @@ declare const _default: {
|
|
|
2881
2939
|
id: string;
|
|
2882
2940
|
}> | undefined;
|
|
2883
2941
|
}, {
|
|
2942
|
+
effectiveFrom: NativeDate;
|
|
2943
|
+
baseAmount: number;
|
|
2944
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2884
2945
|
allowances: Types.DocumentArray<{
|
|
2885
2946
|
amount: number;
|
|
2886
2947
|
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
@@ -2914,7 +2975,7 @@ declare const _default: {
|
|
|
2914
2975
|
}>;
|
|
2915
2976
|
deductions: Types.DocumentArray<{
|
|
2916
2977
|
amount: number;
|
|
2917
|
-
type: "
|
|
2978
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2918
2979
|
auto: boolean;
|
|
2919
2980
|
isPercentage: boolean;
|
|
2920
2981
|
recurring: boolean;
|
|
@@ -2925,7 +2986,7 @@ declare const _default: {
|
|
|
2925
2986
|
effectiveTo?: NativeDate | null | undefined;
|
|
2926
2987
|
}, Types.Subdocument<bson.ObjectId, unknown, {
|
|
2927
2988
|
amount: number;
|
|
2928
|
-
type: "
|
|
2989
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2929
2990
|
auto: boolean;
|
|
2930
2991
|
isPercentage: boolean;
|
|
2931
2992
|
recurring: boolean;
|
|
@@ -2936,7 +2997,7 @@ declare const _default: {
|
|
|
2936
2997
|
effectiveTo?: NativeDate | null | undefined;
|
|
2937
2998
|
}> & {
|
|
2938
2999
|
amount: number;
|
|
2939
|
-
type: "
|
|
3000
|
+
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2940
3001
|
auto: boolean;
|
|
2941
3002
|
isPercentage: boolean;
|
|
2942
3003
|
recurring: boolean;
|
|
@@ -2946,9 +3007,6 @@ declare const _default: {
|
|
|
2946
3007
|
value?: number | null | undefined;
|
|
2947
3008
|
effectiveTo?: NativeDate | null | undefined;
|
|
2948
3009
|
}>;
|
|
2949
|
-
effectiveFrom: NativeDate;
|
|
2950
|
-
baseAmount: number;
|
|
2951
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2952
3010
|
grossSalary: number;
|
|
2953
3011
|
netSalary: number;
|
|
2954
3012
|
lastModified: NativeDate;
|
|
@@ -2962,14 +3020,14 @@ declare const _default: {
|
|
|
2962
3020
|
_id: false;
|
|
2963
3021
|
}, {
|
|
2964
3022
|
workingDays: number[];
|
|
2965
|
-
hoursPerDay?: number | null | undefined;
|
|
2966
3023
|
hoursPerWeek?: number | null | undefined;
|
|
3024
|
+
hoursPerDay?: number | null | undefined;
|
|
2967
3025
|
shiftStart?: string | null | undefined;
|
|
2968
3026
|
shiftEnd?: string | null | undefined;
|
|
2969
3027
|
}, mongoose.Document<unknown, {}, {
|
|
2970
3028
|
workingDays: number[];
|
|
2971
|
-
hoursPerDay?: number | null | undefined;
|
|
2972
3029
|
hoursPerWeek?: number | null | undefined;
|
|
3030
|
+
hoursPerDay?: number | null | undefined;
|
|
2973
3031
|
shiftStart?: string | null | undefined;
|
|
2974
3032
|
shiftEnd?: string | null | undefined;
|
|
2975
3033
|
}, {
|
|
@@ -2978,8 +3036,8 @@ declare const _default: {
|
|
|
2978
3036
|
_id: false;
|
|
2979
3037
|
}>> & Omit<{
|
|
2980
3038
|
workingDays: number[];
|
|
2981
|
-
hoursPerDay?: number | null | undefined;
|
|
2982
3039
|
hoursPerWeek?: number | null | undefined;
|
|
3040
|
+
hoursPerDay?: number | null | undefined;
|
|
2983
3041
|
shiftStart?: string | null | undefined;
|
|
2984
3042
|
shiftEnd?: string | null | undefined;
|
|
2985
3043
|
} & {
|
|
@@ -2993,8 +3051,8 @@ declare const _default: {
|
|
|
2993
3051
|
} | {
|
|
2994
3052
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
2995
3053
|
workingDays: number[];
|
|
2996
|
-
hoursPerDay?: number | null | undefined;
|
|
2997
3054
|
hoursPerWeek?: number | null | undefined;
|
|
3055
|
+
hoursPerDay?: number | null | undefined;
|
|
2998
3056
|
shiftStart?: string | null | undefined;
|
|
2999
3057
|
shiftEnd?: string | null | undefined;
|
|
3000
3058
|
}, {
|
|
@@ -3003,8 +3061,8 @@ declare const _default: {
|
|
|
3003
3061
|
_id: false;
|
|
3004
3062
|
}>> & Omit<{
|
|
3005
3063
|
workingDays: number[];
|
|
3006
|
-
hoursPerDay?: number | null | undefined;
|
|
3007
3064
|
hoursPerWeek?: number | null | undefined;
|
|
3065
|
+
hoursPerDay?: number | null | undefined;
|
|
3008
3066
|
shiftStart?: string | null | undefined;
|
|
3009
3067
|
shiftEnd?: string | null | undefined;
|
|
3010
3068
|
} & {
|
|
@@ -3016,8 +3074,8 @@ declare const _default: {
|
|
|
3016
3074
|
}> | undefined;
|
|
3017
3075
|
}, {
|
|
3018
3076
|
workingDays: number[];
|
|
3019
|
-
hoursPerDay?: number | null | undefined;
|
|
3020
3077
|
hoursPerWeek?: number | null | undefined;
|
|
3078
|
+
hoursPerDay?: number | null | undefined;
|
|
3021
3079
|
shiftStart?: string | null | undefined;
|
|
3022
3080
|
shiftEnd?: string | null | undefined;
|
|
3023
3081
|
} & {
|
|
@@ -3249,6 +3307,8 @@ declare const _default: {
|
|
|
3249
3307
|
payrollBreakdownSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3250
3308
|
_id: false;
|
|
3251
3309
|
}, {
|
|
3310
|
+
taxableAmount: number;
|
|
3311
|
+
baseAmount: number;
|
|
3252
3312
|
allowances: Types.DocumentArray<{
|
|
3253
3313
|
amount: number;
|
|
3254
3314
|
type: string;
|
|
@@ -3275,8 +3335,6 @@ declare const _default: {
|
|
|
3275
3335
|
type: string;
|
|
3276
3336
|
description?: string | null | undefined;
|
|
3277
3337
|
}>;
|
|
3278
|
-
taxableAmount: number;
|
|
3279
|
-
baseAmount: number;
|
|
3280
3338
|
grossSalary: number;
|
|
3281
3339
|
netSalary: number;
|
|
3282
3340
|
taxAmount: number;
|
|
@@ -3287,6 +3345,8 @@ declare const _default: {
|
|
|
3287
3345
|
workingDays?: number | null | undefined;
|
|
3288
3346
|
actualDays?: number | null | undefined;
|
|
3289
3347
|
}, mongoose.Document<unknown, {}, {
|
|
3348
|
+
taxableAmount: number;
|
|
3349
|
+
baseAmount: number;
|
|
3290
3350
|
allowances: Types.DocumentArray<{
|
|
3291
3351
|
amount: number;
|
|
3292
3352
|
type: string;
|
|
@@ -3313,8 +3373,6 @@ declare const _default: {
|
|
|
3313
3373
|
type: string;
|
|
3314
3374
|
description?: string | null | undefined;
|
|
3315
3375
|
}>;
|
|
3316
|
-
taxableAmount: number;
|
|
3317
|
-
baseAmount: number;
|
|
3318
3376
|
grossSalary: number;
|
|
3319
3377
|
netSalary: number;
|
|
3320
3378
|
taxAmount: number;
|
|
@@ -3329,6 +3387,8 @@ declare const _default: {
|
|
|
3329
3387
|
}, mongoose.ResolveSchemaOptions<{
|
|
3330
3388
|
_id: false;
|
|
3331
3389
|
}>> & Omit<{
|
|
3390
|
+
taxableAmount: number;
|
|
3391
|
+
baseAmount: number;
|
|
3332
3392
|
allowances: Types.DocumentArray<{
|
|
3333
3393
|
amount: number;
|
|
3334
3394
|
type: string;
|
|
@@ -3355,8 +3415,6 @@ declare const _default: {
|
|
|
3355
3415
|
type: string;
|
|
3356
3416
|
description?: string | null | undefined;
|
|
3357
3417
|
}>;
|
|
3358
|
-
taxableAmount: number;
|
|
3359
|
-
baseAmount: number;
|
|
3360
3418
|
grossSalary: number;
|
|
3361
3419
|
netSalary: number;
|
|
3362
3420
|
taxAmount: number;
|
|
@@ -3376,6 +3434,8 @@ declare const _default: {
|
|
|
3376
3434
|
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
3377
3435
|
} | {
|
|
3378
3436
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
3437
|
+
taxableAmount: number;
|
|
3438
|
+
baseAmount: number;
|
|
3379
3439
|
allowances: Types.DocumentArray<{
|
|
3380
3440
|
amount: number;
|
|
3381
3441
|
type: string;
|
|
@@ -3402,8 +3462,6 @@ declare const _default: {
|
|
|
3402
3462
|
type: string;
|
|
3403
3463
|
description?: string | null | undefined;
|
|
3404
3464
|
}>;
|
|
3405
|
-
taxableAmount: number;
|
|
3406
|
-
baseAmount: number;
|
|
3407
3465
|
grossSalary: number;
|
|
3408
3466
|
netSalary: number;
|
|
3409
3467
|
taxAmount: number;
|
|
@@ -3418,6 +3476,8 @@ declare const _default: {
|
|
|
3418
3476
|
}, mongoose.ResolveSchemaOptions<{
|
|
3419
3477
|
_id: false;
|
|
3420
3478
|
}>> & Omit<{
|
|
3479
|
+
taxableAmount: number;
|
|
3480
|
+
baseAmount: number;
|
|
3421
3481
|
allowances: Types.DocumentArray<{
|
|
3422
3482
|
amount: number;
|
|
3423
3483
|
type: string;
|
|
@@ -3444,8 +3504,6 @@ declare const _default: {
|
|
|
3444
3504
|
type: string;
|
|
3445
3505
|
description?: string | null | undefined;
|
|
3446
3506
|
}>;
|
|
3447
|
-
taxableAmount: number;
|
|
3448
|
-
baseAmount: number;
|
|
3449
3507
|
grossSalary: number;
|
|
3450
3508
|
netSalary: number;
|
|
3451
3509
|
taxAmount: number;
|
|
@@ -3463,6 +3521,8 @@ declare const _default: {
|
|
|
3463
3521
|
id: string;
|
|
3464
3522
|
}> | undefined;
|
|
3465
3523
|
}, {
|
|
3524
|
+
taxableAmount: number;
|
|
3525
|
+
baseAmount: number;
|
|
3466
3526
|
allowances: Types.DocumentArray<{
|
|
3467
3527
|
amount: number;
|
|
3468
3528
|
type: string;
|
|
@@ -3489,8 +3549,6 @@ declare const _default: {
|
|
|
3489
3549
|
type: string;
|
|
3490
3550
|
description?: string | null | undefined;
|
|
3491
3551
|
}>;
|
|
3492
|
-
taxableAmount: number;
|
|
3493
|
-
baseAmount: number;
|
|
3494
3552
|
grossSalary: number;
|
|
3495
3553
|
netSalary: number;
|
|
3496
3554
|
taxAmount: number;
|
|
@@ -3670,9 +3728,35 @@ declare const _default: {
|
|
|
3670
3728
|
employeeId: number;
|
|
3671
3729
|
'period.month': number;
|
|
3672
3730
|
'period.year': number;
|
|
3731
|
+
'period.startDate': number;
|
|
3732
|
+
payrollRunType: number;
|
|
3733
|
+
status?: undefined;
|
|
3734
|
+
createdAt?: undefined;
|
|
3735
|
+
'period.payDate'?: undefined;
|
|
3736
|
+
expireAt?: undefined;
|
|
3737
|
+
};
|
|
3738
|
+
options: {
|
|
3739
|
+
unique: boolean;
|
|
3740
|
+
name: string;
|
|
3741
|
+
partialFilterExpression: {
|
|
3742
|
+
isVoided: {
|
|
3743
|
+
$eq: boolean;
|
|
3744
|
+
};
|
|
3745
|
+
};
|
|
3746
|
+
expireAfterSeconds?: undefined;
|
|
3747
|
+
};
|
|
3748
|
+
} | {
|
|
3749
|
+
fields: {
|
|
3750
|
+
organizationId: number;
|
|
3751
|
+
employeeId: number;
|
|
3752
|
+
'period.month': number;
|
|
3753
|
+
'period.year': number;
|
|
3754
|
+
'period.startDate'?: undefined;
|
|
3755
|
+
payrollRunType?: undefined;
|
|
3673
3756
|
status?: undefined;
|
|
3674
3757
|
createdAt?: undefined;
|
|
3675
3758
|
'period.payDate'?: undefined;
|
|
3759
|
+
expireAt?: undefined;
|
|
3676
3760
|
};
|
|
3677
3761
|
options?: undefined;
|
|
3678
3762
|
} | {
|
|
@@ -3681,9 +3765,12 @@ declare const _default: {
|
|
|
3681
3765
|
'period.year': number;
|
|
3682
3766
|
'period.month': number;
|
|
3683
3767
|
employeeId?: undefined;
|
|
3768
|
+
'period.startDate'?: undefined;
|
|
3769
|
+
payrollRunType?: undefined;
|
|
3684
3770
|
status?: undefined;
|
|
3685
3771
|
createdAt?: undefined;
|
|
3686
3772
|
'period.payDate'?: undefined;
|
|
3773
|
+
expireAt?: undefined;
|
|
3687
3774
|
};
|
|
3688
3775
|
options?: undefined;
|
|
3689
3776
|
} | {
|
|
@@ -3692,9 +3779,12 @@ declare const _default: {
|
|
|
3692
3779
|
'period.year': number;
|
|
3693
3780
|
'period.month': number;
|
|
3694
3781
|
organizationId?: undefined;
|
|
3782
|
+
'period.startDate'?: undefined;
|
|
3783
|
+
payrollRunType?: undefined;
|
|
3695
3784
|
status?: undefined;
|
|
3696
3785
|
createdAt?: undefined;
|
|
3697
3786
|
'period.payDate'?: undefined;
|
|
3787
|
+
expireAt?: undefined;
|
|
3698
3788
|
};
|
|
3699
3789
|
options?: undefined;
|
|
3700
3790
|
} | {
|
|
@@ -3705,7 +3795,10 @@ declare const _default: {
|
|
|
3705
3795
|
employeeId?: undefined;
|
|
3706
3796
|
'period.month'?: undefined;
|
|
3707
3797
|
'period.year'?: undefined;
|
|
3798
|
+
'period.startDate'?: undefined;
|
|
3799
|
+
payrollRunType?: undefined;
|
|
3708
3800
|
'period.payDate'?: undefined;
|
|
3801
|
+
expireAt?: undefined;
|
|
3709
3802
|
};
|
|
3710
3803
|
options?: undefined;
|
|
3711
3804
|
} | {
|
|
@@ -3716,21 +3809,44 @@ declare const _default: {
|
|
|
3716
3809
|
employeeId?: undefined;
|
|
3717
3810
|
'period.month'?: undefined;
|
|
3718
3811
|
'period.year'?: undefined;
|
|
3812
|
+
'period.startDate'?: undefined;
|
|
3813
|
+
payrollRunType?: undefined;
|
|
3719
3814
|
createdAt?: undefined;
|
|
3815
|
+
expireAt?: undefined;
|
|
3720
3816
|
};
|
|
3721
3817
|
options?: undefined;
|
|
3722
3818
|
} | {
|
|
3723
3819
|
fields: {
|
|
3724
|
-
|
|
3820
|
+
organizationId: number;
|
|
3821
|
+
payrollRunType: number;
|
|
3822
|
+
'period.year': number;
|
|
3823
|
+
'period.month': number;
|
|
3824
|
+
employeeId?: undefined;
|
|
3825
|
+
'period.startDate'?: undefined;
|
|
3826
|
+
status?: undefined;
|
|
3827
|
+
createdAt?: undefined;
|
|
3828
|
+
'period.payDate'?: undefined;
|
|
3829
|
+
expireAt?: undefined;
|
|
3830
|
+
};
|
|
3831
|
+
options?: undefined;
|
|
3832
|
+
} | {
|
|
3833
|
+
fields: {
|
|
3834
|
+
expireAt: number;
|
|
3725
3835
|
organizationId?: undefined;
|
|
3726
3836
|
employeeId?: undefined;
|
|
3727
3837
|
'period.month'?: undefined;
|
|
3728
3838
|
'period.year'?: undefined;
|
|
3839
|
+
'period.startDate'?: undefined;
|
|
3840
|
+
payrollRunType?: undefined;
|
|
3729
3841
|
status?: undefined;
|
|
3842
|
+
createdAt?: undefined;
|
|
3730
3843
|
'period.payDate'?: undefined;
|
|
3731
3844
|
};
|
|
3732
3845
|
options: {
|
|
3733
3846
|
expireAfterSeconds: number;
|
|
3847
|
+
unique?: undefined;
|
|
3848
|
+
name?: undefined;
|
|
3849
|
+
partialFilterExpression?: undefined;
|
|
3734
3850
|
};
|
|
3735
3851
|
})[];
|
|
3736
3852
|
applyEmployeeIndexes: typeof applyEmployeeIndexes;
|
|
@@ -3739,4 +3855,4 @@ declare const _default: {
|
|
|
3739
3855
|
createPayrollRecordSchema: typeof createPayrollRecordSchema;
|
|
3740
3856
|
};
|
|
3741
3857
|
|
|
3742
|
-
export {
|
|
3858
|
+
export { workScheduleSchema as A, leaveRequestTTLIndex as B, payrollBreakdownSchema as C, periodSchema as D, type LeaveRequestModel as L, type PayrollSchemaOptions as P, type TaxWithholdingModel as T, _default as _, allowanceSchema as a, applyEmployeeIndexes as b, applyLeaveRequestIndexes as c, applyPayrollRecordIndexes as d, applyTaxWithholdingIndexes as e, bankDetailsSchema as f, compensationSchema as g, createEmployeeSchema as h, createEmploymentFields as i, createPayrollRecordFields as j, createPayrollRecordSchema as k, deductionSchema as l, employeeIndexes as m, employmentHistorySchema as n, getLeaveRequestFields as o, getLeaveRequestModel as p, getTaxWithholdingFields as q, getTaxWithholdingModel as r, leaveBalanceFields as s, leaveBalanceSchema as t, leaveRequestIndexes as u, leaveRequestSchema as v, payrollRecordIndexes as w, payrollStatsSchema as x, taxWithholdingIndexes as y, taxWithholdingSchema as z };
|