@classytic/payroll 2.0.0 → 2.3.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 +2599 -253
- package/dist/calculators/index.d.ts +433 -0
- package/dist/calculators/index.js +283 -0
- package/dist/calculators/index.js.map +1 -0
- package/dist/core/index.d.ts +85 -251
- package/dist/core/index.js +286 -91
- package/dist/core/index.js.map +1 -1
- package/dist/employee-identity-DXhgOgXE.d.ts +473 -0
- package/dist/employee.factory-BlZqhiCk.d.ts +189 -0
- package/dist/idempotency-Cw2CWicb.d.ts +52 -0
- package/dist/index.d.ts +618 -683
- package/dist/index.js +8336 -3580
- package/dist/index.js.map +1 -1
- package/dist/jurisdiction/index.d.ts +660 -0
- package/dist/jurisdiction/index.js +533 -0
- package/dist/jurisdiction/index.js.map +1 -0
- package/dist/payroll.d.ts +261 -65
- package/dist/payroll.js +4164 -1075
- package/dist/payroll.js.map +1 -1
- package/dist/schemas/index.d.ts +1176 -783
- package/dist/schemas/index.js +368 -28
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.d.ts +582 -3
- package/dist/services/index.js +572 -96
- package/dist/services/index.js.map +1 -1
- package/dist/shift-compliance/index.d.ts +1171 -0
- package/dist/shift-compliance/index.js +1479 -0
- package/dist/shift-compliance/index.js.map +1 -0
- package/dist/types-BN3K_Uhr.d.ts +1842 -0
- package/dist/utils/index.d.ts +22 -2
- package/dist/utils/index.js +470 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +24 -6
- package/dist/index-CTjHlCzz.d.ts +0 -721
- package/dist/plugin-D9mOr3_d.d.ts +0 -333
- package/dist/types-BSYyX2KJ.d.ts +0 -671
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,379 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as mongoose from 'mongoose';
|
|
2
|
+
import mongoose__default, { Schema, SchemaDefinition } from 'mongoose';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Payroll period schema
|
|
6
|
+
* Shared across PayrollRecord and TaxWithholding schemas
|
|
7
|
+
*/
|
|
8
|
+
declare const periodSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
9
|
+
_id: false;
|
|
10
|
+
}, {
|
|
11
|
+
month: number;
|
|
12
|
+
year: number;
|
|
13
|
+
startDate: NativeDate;
|
|
14
|
+
endDate: NativeDate;
|
|
15
|
+
payDate: NativeDate;
|
|
16
|
+
}, mongoose.Document<unknown, {}, {
|
|
17
|
+
month: number;
|
|
18
|
+
year: number;
|
|
19
|
+
startDate: NativeDate;
|
|
20
|
+
endDate: NativeDate;
|
|
21
|
+
payDate: NativeDate;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
25
|
+
_id: false;
|
|
26
|
+
}>> & Omit<{
|
|
27
|
+
month: number;
|
|
28
|
+
year: number;
|
|
29
|
+
startDate: NativeDate;
|
|
30
|
+
endDate: NativeDate;
|
|
31
|
+
payDate: NativeDate;
|
|
32
|
+
} & {
|
|
33
|
+
_id: mongoose.Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}, "id"> & {
|
|
37
|
+
id: string;
|
|
38
|
+
}, {
|
|
39
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
40
|
+
} | {
|
|
41
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
42
|
+
month: number;
|
|
43
|
+
year: number;
|
|
44
|
+
startDate: NativeDate;
|
|
45
|
+
endDate: NativeDate;
|
|
46
|
+
payDate: NativeDate;
|
|
47
|
+
}, {
|
|
48
|
+
id: string;
|
|
49
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
50
|
+
_id: false;
|
|
51
|
+
}>> & Omit<{
|
|
52
|
+
month: number;
|
|
53
|
+
year: number;
|
|
54
|
+
startDate: NativeDate;
|
|
55
|
+
endDate: NativeDate;
|
|
56
|
+
payDate: NativeDate;
|
|
57
|
+
} & {
|
|
58
|
+
_id: mongoose.Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & {
|
|
62
|
+
id: string;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
month: number;
|
|
66
|
+
year: number;
|
|
67
|
+
startDate: NativeDate;
|
|
68
|
+
endDate: NativeDate;
|
|
69
|
+
payDate: NativeDate;
|
|
70
|
+
} & {
|
|
71
|
+
_id: mongoose.Types.ObjectId;
|
|
72
|
+
} & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Leave balance schema (embedded in Employee)
|
|
78
|
+
*/
|
|
79
|
+
declare const leaveBalanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
80
|
+
_id: false;
|
|
81
|
+
}, {
|
|
82
|
+
pending: number;
|
|
83
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
84
|
+
year: number;
|
|
85
|
+
allocated: number;
|
|
86
|
+
used: number;
|
|
87
|
+
carriedOver: number;
|
|
88
|
+
expiresAt?: NativeDate | null | undefined;
|
|
89
|
+
}, mongoose.Document<unknown, {}, {
|
|
90
|
+
pending: number;
|
|
91
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
92
|
+
year: number;
|
|
93
|
+
allocated: number;
|
|
94
|
+
used: number;
|
|
95
|
+
carriedOver: number;
|
|
96
|
+
expiresAt?: NativeDate | null | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
id: string;
|
|
99
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
100
|
+
_id: false;
|
|
101
|
+
}>> & Omit<{
|
|
102
|
+
pending: number;
|
|
103
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
104
|
+
year: number;
|
|
105
|
+
allocated: number;
|
|
106
|
+
used: number;
|
|
107
|
+
carriedOver: number;
|
|
108
|
+
expiresAt?: NativeDate | null | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
_id: mongoose.Types.ObjectId;
|
|
111
|
+
} & {
|
|
112
|
+
__v: number;
|
|
113
|
+
}, "id"> & {
|
|
114
|
+
id: string;
|
|
115
|
+
}, {
|
|
116
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
117
|
+
} | {
|
|
118
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
119
|
+
pending: number;
|
|
120
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
121
|
+
year: number;
|
|
122
|
+
allocated: number;
|
|
123
|
+
used: number;
|
|
124
|
+
carriedOver: number;
|
|
125
|
+
expiresAt?: NativeDate | null | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
id: string;
|
|
128
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
129
|
+
_id: false;
|
|
130
|
+
}>> & Omit<{
|
|
131
|
+
pending: number;
|
|
132
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
133
|
+
year: number;
|
|
134
|
+
allocated: number;
|
|
135
|
+
used: number;
|
|
136
|
+
carriedOver: number;
|
|
137
|
+
expiresAt?: NativeDate | null | undefined;
|
|
138
|
+
} & {
|
|
139
|
+
_id: mongoose.Types.ObjectId;
|
|
140
|
+
} & {
|
|
141
|
+
__v: number;
|
|
142
|
+
}, "id"> & {
|
|
143
|
+
id: string;
|
|
144
|
+
}> | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
pending: number;
|
|
147
|
+
type: "other" | "annual" | "sick" | "unpaid" | "maternity" | "paternity" | "bereavement" | "compensatory";
|
|
148
|
+
year: number;
|
|
149
|
+
allocated: number;
|
|
150
|
+
used: number;
|
|
151
|
+
carriedOver: number;
|
|
152
|
+
expiresAt?: NativeDate | null | undefined;
|
|
153
|
+
} & {
|
|
154
|
+
_id: mongoose.Types.ObjectId;
|
|
155
|
+
} & {
|
|
156
|
+
__v: number;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* Leave balance fields to add to Employee schema
|
|
160
|
+
* Use with employmentFields spread
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* const employeeSchema = new Schema({
|
|
164
|
+
* ...employmentFields,
|
|
165
|
+
* ...leaveBalanceFields,
|
|
166
|
+
* });
|
|
167
|
+
*/
|
|
168
|
+
declare const leaveBalanceFields: SchemaDefinition;
|
|
169
|
+
/**
|
|
170
|
+
* Leave request fields for LeaveRequest schema
|
|
171
|
+
* Note: organizationId is optional to support single-tenant mode
|
|
172
|
+
*/
|
|
173
|
+
declare const leaveRequestFields: SchemaDefinition;
|
|
174
|
+
/**
|
|
175
|
+
* Recommended indexes for LeaveRequest schema
|
|
176
|
+
*
|
|
177
|
+
* Note: In single-tenant mode where organizationId is optional/undefined,
|
|
178
|
+
* indexes containing organizationId will still work but are less optimal.
|
|
179
|
+
* The employeeId-based index (index 3) is most relevant for single-tenant.
|
|
180
|
+
*
|
|
181
|
+
* Multi-tenant apps should use all indexes for optimal query performance.
|
|
182
|
+
*/
|
|
183
|
+
declare const leaveRequestIndexes: ({
|
|
184
|
+
fields: {
|
|
185
|
+
organizationId: number;
|
|
186
|
+
employeeId: number;
|
|
187
|
+
startDate: number;
|
|
188
|
+
status?: undefined;
|
|
189
|
+
createdAt?: undefined;
|
|
190
|
+
type?: undefined;
|
|
191
|
+
};
|
|
192
|
+
} | {
|
|
193
|
+
fields: {
|
|
194
|
+
organizationId: number;
|
|
195
|
+
status: number;
|
|
196
|
+
createdAt: number;
|
|
197
|
+
employeeId?: undefined;
|
|
198
|
+
startDate?: undefined;
|
|
199
|
+
type?: undefined;
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
fields: {
|
|
203
|
+
employeeId: number;
|
|
204
|
+
status: number;
|
|
205
|
+
organizationId?: undefined;
|
|
206
|
+
startDate?: undefined;
|
|
207
|
+
createdAt?: undefined;
|
|
208
|
+
type?: undefined;
|
|
209
|
+
};
|
|
210
|
+
} | {
|
|
211
|
+
fields: {
|
|
212
|
+
organizationId: number;
|
|
213
|
+
type: number;
|
|
214
|
+
status: number;
|
|
215
|
+
employeeId?: undefined;
|
|
216
|
+
startDate?: undefined;
|
|
217
|
+
createdAt?: undefined;
|
|
218
|
+
};
|
|
219
|
+
})[];
|
|
220
|
+
/**
|
|
221
|
+
* TTL index for auto-cleanup (opt-in)
|
|
222
|
+
*/
|
|
223
|
+
declare const leaveRequestTTLIndex: {
|
|
224
|
+
fields: {
|
|
225
|
+
createdAt: number;
|
|
226
|
+
};
|
|
227
|
+
options: {
|
|
228
|
+
expireAfterSeconds: number;
|
|
229
|
+
partialFilterExpression: {
|
|
230
|
+
status: {
|
|
231
|
+
$in: string[];
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Apply indexes to LeaveRequest schema
|
|
238
|
+
*/
|
|
239
|
+
declare function applyLeaveRequestIndexes(schema: Schema, options?: {
|
|
240
|
+
createIndexes?: boolean;
|
|
241
|
+
enableTTL?: boolean;
|
|
242
|
+
ttlSeconds?: number;
|
|
243
|
+
}): void;
|
|
244
|
+
/**
|
|
245
|
+
* Create a complete LeaveRequest schema
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* const LeaveRequest = model('LeaveRequest', createLeaveRequestSchema());
|
|
249
|
+
*
|
|
250
|
+
* // With indexes
|
|
251
|
+
* const LeaveRequest = model('LeaveRequest', createLeaveRequestSchema({}, { createIndexes: true }));
|
|
252
|
+
*
|
|
253
|
+
* // Multi-tenant mode (require organizationId)
|
|
254
|
+
* const LeaveRequest = model('LeaveRequest', createLeaveRequestSchema({}, {
|
|
255
|
+
* requireOrganizationId: true,
|
|
256
|
+
* }));
|
|
257
|
+
*
|
|
258
|
+
* // With TTL for auto-cleanup
|
|
259
|
+
* const LeaveRequest = model('LeaveRequest', createLeaveRequestSchema({}, {
|
|
260
|
+
* createIndexes: true,
|
|
261
|
+
* enableTTL: true,
|
|
262
|
+
* ttlSeconds: 31536000, // 1 year
|
|
263
|
+
* }));
|
|
264
|
+
*/
|
|
265
|
+
declare function createLeaveRequestSchema(additionalFields?: SchemaDefinition, options?: {
|
|
266
|
+
createIndexes?: boolean;
|
|
267
|
+
enableTTL?: boolean;
|
|
268
|
+
ttlSeconds?: number;
|
|
269
|
+
requireOrganizationId?: boolean;
|
|
270
|
+
}): Schema;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @classytic/payroll - Tax Withholding Schema
|
|
274
|
+
*
|
|
275
|
+
* Mongoose schema definitions for tax withholding tracking
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Tax withholding field definitions
|
|
280
|
+
* Can be spread into custom schemas
|
|
281
|
+
*/
|
|
282
|
+
declare const taxWithholdingFields: SchemaDefinition;
|
|
283
|
+
/**
|
|
284
|
+
* Recommended indexes for tax withholding collection
|
|
285
|
+
*/
|
|
286
|
+
declare const taxWithholdingIndexes: ({
|
|
287
|
+
fields: {
|
|
288
|
+
organizationId: number;
|
|
289
|
+
status: number;
|
|
290
|
+
'period.year': number;
|
|
291
|
+
'period.month': number;
|
|
292
|
+
employeeId?: undefined;
|
|
293
|
+
payrollRecordId?: undefined;
|
|
294
|
+
transactionId?: undefined;
|
|
295
|
+
taxType?: undefined;
|
|
296
|
+
governmentTransactionId?: undefined;
|
|
297
|
+
};
|
|
298
|
+
options?: undefined;
|
|
299
|
+
} | {
|
|
300
|
+
fields: {
|
|
301
|
+
employeeId: number;
|
|
302
|
+
'period.year': number;
|
|
303
|
+
'period.month': number;
|
|
304
|
+
organizationId?: undefined;
|
|
305
|
+
status?: undefined;
|
|
306
|
+
payrollRecordId?: undefined;
|
|
307
|
+
transactionId?: undefined;
|
|
308
|
+
taxType?: undefined;
|
|
309
|
+
governmentTransactionId?: undefined;
|
|
310
|
+
};
|
|
311
|
+
options?: undefined;
|
|
312
|
+
} | {
|
|
313
|
+
fields: {
|
|
314
|
+
payrollRecordId: number;
|
|
315
|
+
organizationId?: undefined;
|
|
316
|
+
status?: undefined;
|
|
317
|
+
'period.year'?: undefined;
|
|
318
|
+
'period.month'?: undefined;
|
|
319
|
+
employeeId?: undefined;
|
|
320
|
+
transactionId?: undefined;
|
|
321
|
+
taxType?: undefined;
|
|
322
|
+
governmentTransactionId?: undefined;
|
|
323
|
+
};
|
|
324
|
+
options?: undefined;
|
|
325
|
+
} | {
|
|
326
|
+
fields: {
|
|
327
|
+
transactionId: number;
|
|
328
|
+
organizationId?: undefined;
|
|
329
|
+
status?: undefined;
|
|
330
|
+
'period.year'?: undefined;
|
|
331
|
+
'period.month'?: undefined;
|
|
332
|
+
employeeId?: undefined;
|
|
333
|
+
payrollRecordId?: undefined;
|
|
334
|
+
taxType?: undefined;
|
|
335
|
+
governmentTransactionId?: undefined;
|
|
336
|
+
};
|
|
337
|
+
options?: undefined;
|
|
338
|
+
} | {
|
|
339
|
+
fields: {
|
|
340
|
+
organizationId: number;
|
|
341
|
+
taxType: number;
|
|
342
|
+
status: number;
|
|
343
|
+
'period.year'?: undefined;
|
|
344
|
+
'period.month'?: undefined;
|
|
345
|
+
employeeId?: undefined;
|
|
346
|
+
payrollRecordId?: undefined;
|
|
347
|
+
transactionId?: undefined;
|
|
348
|
+
governmentTransactionId?: undefined;
|
|
349
|
+
};
|
|
350
|
+
options?: undefined;
|
|
351
|
+
} | {
|
|
352
|
+
fields: {
|
|
353
|
+
governmentTransactionId: number;
|
|
354
|
+
organizationId?: undefined;
|
|
355
|
+
status?: undefined;
|
|
356
|
+
'period.year'?: undefined;
|
|
357
|
+
'period.month'?: undefined;
|
|
358
|
+
employeeId?: undefined;
|
|
359
|
+
payrollRecordId?: undefined;
|
|
360
|
+
transactionId?: undefined;
|
|
361
|
+
taxType?: undefined;
|
|
362
|
+
};
|
|
363
|
+
options: {
|
|
364
|
+
sparse: boolean;
|
|
365
|
+
};
|
|
366
|
+
})[];
|
|
367
|
+
/**
|
|
368
|
+
* Apply all recommended indexes to a tax withholding schema
|
|
369
|
+
*/
|
|
370
|
+
declare function applyTaxWithholdingIndexes(schema: Schema): void;
|
|
371
|
+
/**
|
|
372
|
+
* Create a complete tax withholding schema with indexes, virtuals, and methods
|
|
373
|
+
* @param additionalFields - Additional fields to add to the schema
|
|
374
|
+
* @returns Configured tax withholding schema
|
|
375
|
+
*/
|
|
376
|
+
declare function createTaxWithholdingSchema(additionalFields?: SchemaDefinition): Schema;
|
|
2
377
|
|
|
3
378
|
/**
|
|
4
379
|
* @classytic/payroll - Mongoose Schemas
|
|
@@ -10,11 +385,11 @@ import mongoose, { SchemaDefinition, Schema } from 'mongoose';
|
|
|
10
385
|
/**
|
|
11
386
|
* Allowance schema definition
|
|
12
387
|
*/
|
|
13
|
-
declare const allowanceSchema:
|
|
388
|
+
declare const allowanceSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
14
389
|
_id: false;
|
|
15
390
|
}, {
|
|
16
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
17
391
|
amount: number;
|
|
392
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
18
393
|
isPercentage: boolean;
|
|
19
394
|
taxable: boolean;
|
|
20
395
|
recurring: boolean;
|
|
@@ -22,9 +397,9 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
22
397
|
name?: string | null | undefined;
|
|
23
398
|
value?: number | null | undefined;
|
|
24
399
|
effectiveTo?: NativeDate | null | undefined;
|
|
25
|
-
},
|
|
26
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
400
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
27
401
|
amount: number;
|
|
402
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
28
403
|
isPercentage: boolean;
|
|
29
404
|
taxable: boolean;
|
|
30
405
|
recurring: boolean;
|
|
@@ -34,11 +409,11 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
34
409
|
effectiveTo?: NativeDate | null | undefined;
|
|
35
410
|
}, {
|
|
36
411
|
id: string;
|
|
37
|
-
},
|
|
412
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
38
413
|
_id: false;
|
|
39
414
|
}>> & Omit<{
|
|
40
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
41
415
|
amount: number;
|
|
416
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
42
417
|
isPercentage: boolean;
|
|
43
418
|
taxable: boolean;
|
|
44
419
|
recurring: boolean;
|
|
@@ -47,17 +422,17 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
47
422
|
value?: number | null | undefined;
|
|
48
423
|
effectiveTo?: NativeDate | null | undefined;
|
|
49
424
|
} & {
|
|
50
|
-
_id:
|
|
425
|
+
_id: mongoose__default.Types.ObjectId;
|
|
51
426
|
} & {
|
|
52
427
|
__v: number;
|
|
53
428
|
}, "id"> & {
|
|
54
429
|
id: string;
|
|
55
430
|
}, {
|
|
56
|
-
[path: string]:
|
|
431
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
57
432
|
} | {
|
|
58
|
-
[x: string]:
|
|
59
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
433
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
60
434
|
amount: number;
|
|
435
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
61
436
|
isPercentage: boolean;
|
|
62
437
|
taxable: boolean;
|
|
63
438
|
recurring: boolean;
|
|
@@ -67,11 +442,11 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
67
442
|
effectiveTo?: NativeDate | null | undefined;
|
|
68
443
|
}, {
|
|
69
444
|
id: string;
|
|
70
|
-
},
|
|
445
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
71
446
|
_id: false;
|
|
72
447
|
}>> & Omit<{
|
|
73
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
74
448
|
amount: number;
|
|
449
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
75
450
|
isPercentage: boolean;
|
|
76
451
|
taxable: boolean;
|
|
77
452
|
recurring: boolean;
|
|
@@ -80,15 +455,15 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
80
455
|
value?: number | null | undefined;
|
|
81
456
|
effectiveTo?: NativeDate | null | undefined;
|
|
82
457
|
} & {
|
|
83
|
-
_id:
|
|
458
|
+
_id: mongoose__default.Types.ObjectId;
|
|
84
459
|
} & {
|
|
85
460
|
__v: number;
|
|
86
461
|
}, "id"> & {
|
|
87
462
|
id: string;
|
|
88
463
|
}> | undefined;
|
|
89
464
|
}, {
|
|
90
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
91
465
|
amount: number;
|
|
466
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
92
467
|
isPercentage: boolean;
|
|
93
468
|
taxable: boolean;
|
|
94
469
|
recurring: boolean;
|
|
@@ -97,123 +472,119 @@ declare const allowanceSchema: mongoose.Schema<any, mongoose.Model<any, any, any
|
|
|
97
472
|
value?: number | null | undefined;
|
|
98
473
|
effectiveTo?: NativeDate | null | undefined;
|
|
99
474
|
} & {
|
|
100
|
-
_id:
|
|
475
|
+
_id: mongoose__default.Types.ObjectId;
|
|
101
476
|
} & {
|
|
102
477
|
__v: number;
|
|
103
478
|
}>;
|
|
104
479
|
/**
|
|
105
480
|
* Deduction schema definition
|
|
106
481
|
*/
|
|
107
|
-
declare const deductionSchema:
|
|
482
|
+
declare const deductionSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
108
483
|
_id: false;
|
|
109
484
|
}, {
|
|
110
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
111
485
|
amount: number;
|
|
486
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
487
|
+
auto: boolean;
|
|
112
488
|
isPercentage: boolean;
|
|
113
489
|
recurring: boolean;
|
|
114
490
|
effectiveFrom: NativeDate;
|
|
115
|
-
auto: boolean;
|
|
116
491
|
name?: string | null | undefined;
|
|
492
|
+
description?: string | null | undefined;
|
|
117
493
|
value?: number | null | undefined;
|
|
118
494
|
effectiveTo?: NativeDate | null | undefined;
|
|
119
|
-
|
|
120
|
-
}, mongoose.Document<unknown, {}, {
|
|
121
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
495
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
122
496
|
amount: number;
|
|
497
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
498
|
+
auto: boolean;
|
|
123
499
|
isPercentage: boolean;
|
|
124
500
|
recurring: boolean;
|
|
125
501
|
effectiveFrom: NativeDate;
|
|
126
|
-
auto: boolean;
|
|
127
502
|
name?: string | null | undefined;
|
|
503
|
+
description?: string | null | undefined;
|
|
128
504
|
value?: number | null | undefined;
|
|
129
505
|
effectiveTo?: NativeDate | null | undefined;
|
|
130
|
-
description?: string | null | undefined;
|
|
131
506
|
}, {
|
|
132
507
|
id: string;
|
|
133
|
-
},
|
|
508
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
134
509
|
_id: false;
|
|
135
510
|
}>> & Omit<{
|
|
136
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
137
511
|
amount: number;
|
|
512
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
513
|
+
auto: boolean;
|
|
138
514
|
isPercentage: boolean;
|
|
139
515
|
recurring: boolean;
|
|
140
516
|
effectiveFrom: NativeDate;
|
|
141
|
-
auto: boolean;
|
|
142
517
|
name?: string | null | undefined;
|
|
518
|
+
description?: string | null | undefined;
|
|
143
519
|
value?: number | null | undefined;
|
|
144
520
|
effectiveTo?: NativeDate | null | undefined;
|
|
145
|
-
description?: string | null | undefined;
|
|
146
521
|
} & {
|
|
147
|
-
_id:
|
|
522
|
+
_id: mongoose__default.Types.ObjectId;
|
|
148
523
|
} & {
|
|
149
524
|
__v: number;
|
|
150
525
|
}, "id"> & {
|
|
151
526
|
id: string;
|
|
152
527
|
}, {
|
|
153
|
-
[path: string]:
|
|
528
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
154
529
|
} | {
|
|
155
|
-
[x: string]:
|
|
156
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
530
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
157
531
|
amount: number;
|
|
532
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
533
|
+
auto: boolean;
|
|
158
534
|
isPercentage: boolean;
|
|
159
535
|
recurring: boolean;
|
|
160
536
|
effectiveFrom: NativeDate;
|
|
161
|
-
auto: boolean;
|
|
162
537
|
name?: string | null | undefined;
|
|
538
|
+
description?: string | null | undefined;
|
|
163
539
|
value?: number | null | undefined;
|
|
164
540
|
effectiveTo?: NativeDate | null | undefined;
|
|
165
|
-
description?: string | null | undefined;
|
|
166
541
|
}, {
|
|
167
542
|
id: string;
|
|
168
|
-
},
|
|
543
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
169
544
|
_id: false;
|
|
170
545
|
}>> & Omit<{
|
|
171
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
172
546
|
amount: number;
|
|
547
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
548
|
+
auto: boolean;
|
|
173
549
|
isPercentage: boolean;
|
|
174
550
|
recurring: boolean;
|
|
175
551
|
effectiveFrom: NativeDate;
|
|
176
|
-
auto: boolean;
|
|
177
552
|
name?: string | null | undefined;
|
|
553
|
+
description?: string | null | undefined;
|
|
178
554
|
value?: number | null | undefined;
|
|
179
555
|
effectiveTo?: NativeDate | null | undefined;
|
|
180
|
-
description?: string | null | undefined;
|
|
181
556
|
} & {
|
|
182
|
-
_id:
|
|
557
|
+
_id: mongoose__default.Types.ObjectId;
|
|
183
558
|
} & {
|
|
184
559
|
__v: number;
|
|
185
560
|
}, "id"> & {
|
|
186
561
|
id: string;
|
|
187
562
|
}> | undefined;
|
|
188
563
|
}, {
|
|
189
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
190
564
|
amount: number;
|
|
565
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
566
|
+
auto: boolean;
|
|
191
567
|
isPercentage: boolean;
|
|
192
568
|
recurring: boolean;
|
|
193
569
|
effectiveFrom: NativeDate;
|
|
194
|
-
auto: boolean;
|
|
195
570
|
name?: string | null | undefined;
|
|
571
|
+
description?: string | null | undefined;
|
|
196
572
|
value?: number | null | undefined;
|
|
197
573
|
effectiveTo?: NativeDate | null | undefined;
|
|
198
|
-
description?: string | null | undefined;
|
|
199
574
|
} & {
|
|
200
|
-
_id:
|
|
575
|
+
_id: mongoose__default.Types.ObjectId;
|
|
201
576
|
} & {
|
|
202
577
|
__v: number;
|
|
203
578
|
}>;
|
|
204
579
|
/**
|
|
205
580
|
* Compensation schema definition
|
|
206
581
|
*/
|
|
207
|
-
declare const compensationSchema:
|
|
582
|
+
declare const compensationSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
208
583
|
_id: false;
|
|
209
584
|
}, {
|
|
210
|
-
|
|
211
|
-
baseAmount: number;
|
|
212
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
213
|
-
currency: string;
|
|
214
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
215
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
585
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
216
586
|
amount: number;
|
|
587
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
217
588
|
isPercentage: boolean;
|
|
218
589
|
taxable: boolean;
|
|
219
590
|
recurring: boolean;
|
|
@@ -221,9 +592,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
221
592
|
name?: string | null | undefined;
|
|
222
593
|
value?: number | null | undefined;
|
|
223
594
|
effectiveTo?: NativeDate | null | undefined;
|
|
224
|
-
},
|
|
225
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
595
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
226
596
|
amount: number;
|
|
597
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
227
598
|
isPercentage: boolean;
|
|
228
599
|
taxable: boolean;
|
|
229
600
|
recurring: boolean;
|
|
@@ -232,8 +603,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
232
603
|
value?: number | null | undefined;
|
|
233
604
|
effectiveTo?: NativeDate | null | undefined;
|
|
234
605
|
}> & {
|
|
235
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
236
606
|
amount: number;
|
|
607
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
237
608
|
isPercentage: boolean;
|
|
238
609
|
taxable: boolean;
|
|
239
610
|
recurring: boolean;
|
|
@@ -242,51 +613,51 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
242
613
|
value?: number | null | undefined;
|
|
243
614
|
effectiveTo?: NativeDate | null | undefined;
|
|
244
615
|
}>;
|
|
245
|
-
deductions:
|
|
246
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
616
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
247
617
|
amount: number;
|
|
618
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
619
|
+
auto: boolean;
|
|
248
620
|
isPercentage: boolean;
|
|
249
621
|
recurring: boolean;
|
|
250
622
|
effectiveFrom: NativeDate;
|
|
251
|
-
auto: boolean;
|
|
252
623
|
name?: string | null | undefined;
|
|
624
|
+
description?: string | null | undefined;
|
|
253
625
|
value?: number | null | undefined;
|
|
254
626
|
effectiveTo?: NativeDate | null | undefined;
|
|
255
|
-
|
|
256
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
257
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
627
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
258
628
|
amount: number;
|
|
629
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
630
|
+
auto: boolean;
|
|
259
631
|
isPercentage: boolean;
|
|
260
632
|
recurring: boolean;
|
|
261
633
|
effectiveFrom: NativeDate;
|
|
262
|
-
auto: boolean;
|
|
263
634
|
name?: string | null | undefined;
|
|
635
|
+
description?: string | null | undefined;
|
|
264
636
|
value?: number | null | undefined;
|
|
265
637
|
effectiveTo?: NativeDate | null | undefined;
|
|
266
|
-
description?: string | null | undefined;
|
|
267
638
|
}> & {
|
|
268
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
269
639
|
amount: number;
|
|
640
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
641
|
+
auto: boolean;
|
|
270
642
|
isPercentage: boolean;
|
|
271
643
|
recurring: boolean;
|
|
272
644
|
effectiveFrom: NativeDate;
|
|
273
|
-
auto: boolean;
|
|
274
645
|
name?: string | null | undefined;
|
|
646
|
+
description?: string | null | undefined;
|
|
275
647
|
value?: number | null | undefined;
|
|
276
648
|
effectiveTo?: NativeDate | null | undefined;
|
|
277
|
-
description?: string | null | undefined;
|
|
278
649
|
}>;
|
|
279
|
-
grossSalary: number;
|
|
280
|
-
netSalary: number;
|
|
281
|
-
lastModified: NativeDate;
|
|
282
|
-
}, mongoose.Document<unknown, {}, {
|
|
283
650
|
effectiveFrom: NativeDate;
|
|
284
651
|
baseAmount: number;
|
|
285
652
|
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
286
653
|
currency: string;
|
|
287
|
-
|
|
288
|
-
|
|
654
|
+
grossSalary: number;
|
|
655
|
+
netSalary: number;
|
|
656
|
+
lastModified: NativeDate;
|
|
657
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
658
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
289
659
|
amount: number;
|
|
660
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
290
661
|
isPercentage: boolean;
|
|
291
662
|
taxable: boolean;
|
|
292
663
|
recurring: boolean;
|
|
@@ -294,9 +665,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
294
665
|
name?: string | null | undefined;
|
|
295
666
|
value?: number | null | undefined;
|
|
296
667
|
effectiveTo?: NativeDate | null | undefined;
|
|
297
|
-
},
|
|
298
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
668
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
299
669
|
amount: number;
|
|
670
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
300
671
|
isPercentage: boolean;
|
|
301
672
|
taxable: boolean;
|
|
302
673
|
recurring: boolean;
|
|
@@ -305,8 +676,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
305
676
|
value?: number | null | undefined;
|
|
306
677
|
effectiveTo?: NativeDate | null | undefined;
|
|
307
678
|
}> & {
|
|
308
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
309
679
|
amount: number;
|
|
680
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
310
681
|
isPercentage: boolean;
|
|
311
682
|
taxable: boolean;
|
|
312
683
|
recurring: boolean;
|
|
@@ -315,55 +686,55 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
315
686
|
value?: number | null | undefined;
|
|
316
687
|
effectiveTo?: NativeDate | null | undefined;
|
|
317
688
|
}>;
|
|
318
|
-
deductions:
|
|
319
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
689
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
320
690
|
amount: number;
|
|
691
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
692
|
+
auto: boolean;
|
|
321
693
|
isPercentage: boolean;
|
|
322
694
|
recurring: boolean;
|
|
323
695
|
effectiveFrom: NativeDate;
|
|
324
|
-
auto: boolean;
|
|
325
696
|
name?: string | null | undefined;
|
|
697
|
+
description?: string | null | undefined;
|
|
326
698
|
value?: number | null | undefined;
|
|
327
699
|
effectiveTo?: NativeDate | null | undefined;
|
|
328
|
-
|
|
329
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
330
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
700
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
331
701
|
amount: number;
|
|
702
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
703
|
+
auto: boolean;
|
|
332
704
|
isPercentage: boolean;
|
|
333
705
|
recurring: boolean;
|
|
334
706
|
effectiveFrom: NativeDate;
|
|
335
|
-
auto: boolean;
|
|
336
707
|
name?: string | null | undefined;
|
|
708
|
+
description?: string | null | undefined;
|
|
337
709
|
value?: number | null | undefined;
|
|
338
710
|
effectiveTo?: NativeDate | null | undefined;
|
|
339
|
-
description?: string | null | undefined;
|
|
340
711
|
}> & {
|
|
341
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
342
712
|
amount: number;
|
|
713
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
714
|
+
auto: boolean;
|
|
343
715
|
isPercentage: boolean;
|
|
344
716
|
recurring: boolean;
|
|
345
717
|
effectiveFrom: NativeDate;
|
|
346
|
-
auto: boolean;
|
|
347
718
|
name?: string | null | undefined;
|
|
719
|
+
description?: string | null | undefined;
|
|
348
720
|
value?: number | null | undefined;
|
|
349
721
|
effectiveTo?: NativeDate | null | undefined;
|
|
350
|
-
description?: string | null | undefined;
|
|
351
722
|
}>;
|
|
723
|
+
effectiveFrom: NativeDate;
|
|
724
|
+
baseAmount: number;
|
|
725
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
726
|
+
currency: string;
|
|
352
727
|
grossSalary: number;
|
|
353
728
|
netSalary: number;
|
|
354
729
|
lastModified: NativeDate;
|
|
355
730
|
}, {
|
|
356
731
|
id: string;
|
|
357
|
-
},
|
|
732
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
358
733
|
_id: false;
|
|
359
734
|
}>> & Omit<{
|
|
360
|
-
|
|
361
|
-
baseAmount: number;
|
|
362
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
363
|
-
currency: string;
|
|
364
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
365
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
735
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
366
736
|
amount: number;
|
|
737
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
367
738
|
isPercentage: boolean;
|
|
368
739
|
taxable: boolean;
|
|
369
740
|
recurring: boolean;
|
|
@@ -371,9 +742,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
371
742
|
name?: string | null | undefined;
|
|
372
743
|
value?: number | null | undefined;
|
|
373
744
|
effectiveTo?: NativeDate | null | undefined;
|
|
374
|
-
},
|
|
375
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
745
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
376
746
|
amount: number;
|
|
747
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
377
748
|
isPercentage: boolean;
|
|
378
749
|
taxable: boolean;
|
|
379
750
|
recurring: boolean;
|
|
@@ -382,8 +753,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
382
753
|
value?: number | null | undefined;
|
|
383
754
|
effectiveTo?: NativeDate | null | undefined;
|
|
384
755
|
}> & {
|
|
385
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
386
756
|
amount: number;
|
|
757
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
387
758
|
isPercentage: boolean;
|
|
388
759
|
taxable: boolean;
|
|
389
760
|
recurring: boolean;
|
|
@@ -392,60 +763,60 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
392
763
|
value?: number | null | undefined;
|
|
393
764
|
effectiveTo?: NativeDate | null | undefined;
|
|
394
765
|
}>;
|
|
395
|
-
deductions:
|
|
396
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
766
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
397
767
|
amount: number;
|
|
768
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
769
|
+
auto: boolean;
|
|
398
770
|
isPercentage: boolean;
|
|
399
771
|
recurring: boolean;
|
|
400
772
|
effectiveFrom: NativeDate;
|
|
401
|
-
auto: boolean;
|
|
402
773
|
name?: string | null | undefined;
|
|
774
|
+
description?: string | null | undefined;
|
|
403
775
|
value?: number | null | undefined;
|
|
404
776
|
effectiveTo?: NativeDate | null | undefined;
|
|
405
|
-
|
|
406
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
407
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
777
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
408
778
|
amount: number;
|
|
779
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
780
|
+
auto: boolean;
|
|
409
781
|
isPercentage: boolean;
|
|
410
782
|
recurring: boolean;
|
|
411
783
|
effectiveFrom: NativeDate;
|
|
412
|
-
auto: boolean;
|
|
413
784
|
name?: string | null | undefined;
|
|
785
|
+
description?: string | null | undefined;
|
|
414
786
|
value?: number | null | undefined;
|
|
415
787
|
effectiveTo?: NativeDate | null | undefined;
|
|
416
|
-
description?: string | null | undefined;
|
|
417
788
|
}> & {
|
|
418
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
419
789
|
amount: number;
|
|
790
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
791
|
+
auto: boolean;
|
|
420
792
|
isPercentage: boolean;
|
|
421
793
|
recurring: boolean;
|
|
422
794
|
effectiveFrom: NativeDate;
|
|
423
|
-
auto: boolean;
|
|
424
795
|
name?: string | null | undefined;
|
|
796
|
+
description?: string | null | undefined;
|
|
425
797
|
value?: number | null | undefined;
|
|
426
798
|
effectiveTo?: NativeDate | null | undefined;
|
|
427
|
-
description?: string | null | undefined;
|
|
428
799
|
}>;
|
|
800
|
+
effectiveFrom: NativeDate;
|
|
801
|
+
baseAmount: number;
|
|
802
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
803
|
+
currency: string;
|
|
429
804
|
grossSalary: number;
|
|
430
805
|
netSalary: number;
|
|
431
806
|
lastModified: NativeDate;
|
|
432
807
|
} & {
|
|
433
|
-
_id:
|
|
808
|
+
_id: mongoose__default.Types.ObjectId;
|
|
434
809
|
} & {
|
|
435
810
|
__v: number;
|
|
436
811
|
}, "id"> & {
|
|
437
812
|
id: string;
|
|
438
813
|
}, {
|
|
439
|
-
[path: string]:
|
|
814
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
440
815
|
} | {
|
|
441
|
-
[x: string]:
|
|
442
|
-
|
|
443
|
-
baseAmount: number;
|
|
444
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
445
|
-
currency: string;
|
|
446
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
447
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
816
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
817
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
448
818
|
amount: number;
|
|
819
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
449
820
|
isPercentage: boolean;
|
|
450
821
|
taxable: boolean;
|
|
451
822
|
recurring: boolean;
|
|
@@ -453,9 +824,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
453
824
|
name?: string | null | undefined;
|
|
454
825
|
value?: number | null | undefined;
|
|
455
826
|
effectiveTo?: NativeDate | null | undefined;
|
|
456
|
-
},
|
|
457
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
827
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
458
828
|
amount: number;
|
|
829
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
459
830
|
isPercentage: boolean;
|
|
460
831
|
taxable: boolean;
|
|
461
832
|
recurring: boolean;
|
|
@@ -464,8 +835,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
464
835
|
value?: number | null | undefined;
|
|
465
836
|
effectiveTo?: NativeDate | null | undefined;
|
|
466
837
|
}> & {
|
|
467
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
468
838
|
amount: number;
|
|
839
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
469
840
|
isPercentage: boolean;
|
|
470
841
|
taxable: boolean;
|
|
471
842
|
recurring: boolean;
|
|
@@ -474,55 +845,55 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
474
845
|
value?: number | null | undefined;
|
|
475
846
|
effectiveTo?: NativeDate | null | undefined;
|
|
476
847
|
}>;
|
|
477
|
-
deductions:
|
|
478
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
848
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
479
849
|
amount: number;
|
|
850
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
851
|
+
auto: boolean;
|
|
480
852
|
isPercentage: boolean;
|
|
481
853
|
recurring: boolean;
|
|
482
854
|
effectiveFrom: NativeDate;
|
|
483
|
-
auto: boolean;
|
|
484
855
|
name?: string | null | undefined;
|
|
856
|
+
description?: string | null | undefined;
|
|
485
857
|
value?: number | null | undefined;
|
|
486
858
|
effectiveTo?: NativeDate | null | undefined;
|
|
487
|
-
|
|
488
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
489
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
859
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
490
860
|
amount: number;
|
|
861
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
862
|
+
auto: boolean;
|
|
491
863
|
isPercentage: boolean;
|
|
492
864
|
recurring: boolean;
|
|
493
865
|
effectiveFrom: NativeDate;
|
|
494
|
-
auto: boolean;
|
|
495
866
|
name?: string | null | undefined;
|
|
867
|
+
description?: string | null | undefined;
|
|
496
868
|
value?: number | null | undefined;
|
|
497
869
|
effectiveTo?: NativeDate | null | undefined;
|
|
498
|
-
description?: string | null | undefined;
|
|
499
870
|
}> & {
|
|
500
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
501
871
|
amount: number;
|
|
872
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
873
|
+
auto: boolean;
|
|
502
874
|
isPercentage: boolean;
|
|
503
875
|
recurring: boolean;
|
|
504
876
|
effectiveFrom: NativeDate;
|
|
505
|
-
auto: boolean;
|
|
506
877
|
name?: string | null | undefined;
|
|
878
|
+
description?: string | null | undefined;
|
|
507
879
|
value?: number | null | undefined;
|
|
508
880
|
effectiveTo?: NativeDate | null | undefined;
|
|
509
|
-
description?: string | null | undefined;
|
|
510
881
|
}>;
|
|
882
|
+
effectiveFrom: NativeDate;
|
|
883
|
+
baseAmount: number;
|
|
884
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
885
|
+
currency: string;
|
|
511
886
|
grossSalary: number;
|
|
512
887
|
netSalary: number;
|
|
513
888
|
lastModified: NativeDate;
|
|
514
889
|
}, {
|
|
515
890
|
id: string;
|
|
516
|
-
},
|
|
891
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
517
892
|
_id: false;
|
|
518
893
|
}>> & Omit<{
|
|
519
|
-
|
|
520
|
-
baseAmount: number;
|
|
521
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
522
|
-
currency: string;
|
|
523
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
524
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
894
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
525
895
|
amount: number;
|
|
896
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
526
897
|
isPercentage: boolean;
|
|
527
898
|
taxable: boolean;
|
|
528
899
|
recurring: boolean;
|
|
@@ -530,9 +901,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
530
901
|
name?: string | null | undefined;
|
|
531
902
|
value?: number | null | undefined;
|
|
532
903
|
effectiveTo?: NativeDate | null | undefined;
|
|
533
|
-
},
|
|
534
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
904
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
535
905
|
amount: number;
|
|
906
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
536
907
|
isPercentage: boolean;
|
|
537
908
|
taxable: boolean;
|
|
538
909
|
recurring: boolean;
|
|
@@ -541,8 +912,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
541
912
|
value?: number | null | undefined;
|
|
542
913
|
effectiveTo?: NativeDate | null | undefined;
|
|
543
914
|
}> & {
|
|
544
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
545
915
|
amount: number;
|
|
916
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
546
917
|
isPercentage: boolean;
|
|
547
918
|
taxable: boolean;
|
|
548
919
|
recurring: boolean;
|
|
@@ -551,58 +922,58 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
551
922
|
value?: number | null | undefined;
|
|
552
923
|
effectiveTo?: NativeDate | null | undefined;
|
|
553
924
|
}>;
|
|
554
|
-
deductions:
|
|
555
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
925
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
556
926
|
amount: number;
|
|
927
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
928
|
+
auto: boolean;
|
|
557
929
|
isPercentage: boolean;
|
|
558
930
|
recurring: boolean;
|
|
559
931
|
effectiveFrom: NativeDate;
|
|
560
|
-
auto: boolean;
|
|
561
932
|
name?: string | null | undefined;
|
|
933
|
+
description?: string | null | undefined;
|
|
562
934
|
value?: number | null | undefined;
|
|
563
935
|
effectiveTo?: NativeDate | null | undefined;
|
|
564
|
-
|
|
565
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
566
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
936
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
567
937
|
amount: number;
|
|
938
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
939
|
+
auto: boolean;
|
|
568
940
|
isPercentage: boolean;
|
|
569
941
|
recurring: boolean;
|
|
570
942
|
effectiveFrom: NativeDate;
|
|
571
|
-
auto: boolean;
|
|
572
943
|
name?: string | null | undefined;
|
|
944
|
+
description?: string | null | undefined;
|
|
573
945
|
value?: number | null | undefined;
|
|
574
946
|
effectiveTo?: NativeDate | null | undefined;
|
|
575
|
-
description?: string | null | undefined;
|
|
576
947
|
}> & {
|
|
577
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
578
948
|
amount: number;
|
|
949
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
950
|
+
auto: boolean;
|
|
579
951
|
isPercentage: boolean;
|
|
580
952
|
recurring: boolean;
|
|
581
953
|
effectiveFrom: NativeDate;
|
|
582
|
-
auto: boolean;
|
|
583
954
|
name?: string | null | undefined;
|
|
955
|
+
description?: string | null | undefined;
|
|
584
956
|
value?: number | null | undefined;
|
|
585
957
|
effectiveTo?: NativeDate | null | undefined;
|
|
586
|
-
description?: string | null | undefined;
|
|
587
958
|
}>;
|
|
959
|
+
effectiveFrom: NativeDate;
|
|
960
|
+
baseAmount: number;
|
|
961
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
962
|
+
currency: string;
|
|
588
963
|
grossSalary: number;
|
|
589
964
|
netSalary: number;
|
|
590
965
|
lastModified: NativeDate;
|
|
591
966
|
} & {
|
|
592
|
-
_id:
|
|
967
|
+
_id: mongoose__default.Types.ObjectId;
|
|
593
968
|
} & {
|
|
594
969
|
__v: number;
|
|
595
970
|
}, "id"> & {
|
|
596
971
|
id: string;
|
|
597
972
|
}> | undefined;
|
|
598
973
|
}, {
|
|
599
|
-
|
|
600
|
-
baseAmount: number;
|
|
601
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
602
|
-
currency: string;
|
|
603
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
604
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
974
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
605
975
|
amount: number;
|
|
976
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
606
977
|
isPercentage: boolean;
|
|
607
978
|
taxable: boolean;
|
|
608
979
|
recurring: boolean;
|
|
@@ -610,9 +981,9 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
610
981
|
name?: string | null | undefined;
|
|
611
982
|
value?: number | null | undefined;
|
|
612
983
|
effectiveTo?: NativeDate | null | undefined;
|
|
613
|
-
},
|
|
614
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
984
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
615
985
|
amount: number;
|
|
986
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
616
987
|
isPercentage: boolean;
|
|
617
988
|
taxable: boolean;
|
|
618
989
|
recurring: boolean;
|
|
@@ -621,8 +992,8 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
621
992
|
value?: number | null | undefined;
|
|
622
993
|
effectiveTo?: NativeDate | null | undefined;
|
|
623
994
|
}> & {
|
|
624
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
625
995
|
amount: number;
|
|
996
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
626
997
|
isPercentage: boolean;
|
|
627
998
|
taxable: boolean;
|
|
628
999
|
recurring: boolean;
|
|
@@ -631,102 +1002,106 @@ declare const compensationSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
631
1002
|
value?: number | null | undefined;
|
|
632
1003
|
effectiveTo?: NativeDate | null | undefined;
|
|
633
1004
|
}>;
|
|
634
|
-
deductions:
|
|
635
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1005
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
636
1006
|
amount: number;
|
|
1007
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1008
|
+
auto: boolean;
|
|
637
1009
|
isPercentage: boolean;
|
|
638
1010
|
recurring: boolean;
|
|
639
1011
|
effectiveFrom: NativeDate;
|
|
640
|
-
auto: boolean;
|
|
641
1012
|
name?: string | null | undefined;
|
|
1013
|
+
description?: string | null | undefined;
|
|
642
1014
|
value?: number | null | undefined;
|
|
643
1015
|
effectiveTo?: NativeDate | null | undefined;
|
|
644
|
-
|
|
645
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
646
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1016
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
647
1017
|
amount: number;
|
|
1018
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1019
|
+
auto: boolean;
|
|
648
1020
|
isPercentage: boolean;
|
|
649
1021
|
recurring: boolean;
|
|
650
1022
|
effectiveFrom: NativeDate;
|
|
651
|
-
auto: boolean;
|
|
652
1023
|
name?: string | null | undefined;
|
|
1024
|
+
description?: string | null | undefined;
|
|
653
1025
|
value?: number | null | undefined;
|
|
654
1026
|
effectiveTo?: NativeDate | null | undefined;
|
|
655
|
-
description?: string | null | undefined;
|
|
656
1027
|
}> & {
|
|
657
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
658
1028
|
amount: number;
|
|
1029
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1030
|
+
auto: boolean;
|
|
659
1031
|
isPercentage: boolean;
|
|
660
1032
|
recurring: boolean;
|
|
661
1033
|
effectiveFrom: NativeDate;
|
|
662
|
-
auto: boolean;
|
|
663
1034
|
name?: string | null | undefined;
|
|
1035
|
+
description?: string | null | undefined;
|
|
664
1036
|
value?: number | null | undefined;
|
|
665
1037
|
effectiveTo?: NativeDate | null | undefined;
|
|
666
|
-
description?: string | null | undefined;
|
|
667
1038
|
}>;
|
|
1039
|
+
effectiveFrom: NativeDate;
|
|
1040
|
+
baseAmount: number;
|
|
1041
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1042
|
+
currency: string;
|
|
668
1043
|
grossSalary: number;
|
|
669
1044
|
netSalary: number;
|
|
670
1045
|
lastModified: NativeDate;
|
|
671
1046
|
} & {
|
|
672
|
-
_id:
|
|
1047
|
+
_id: mongoose__default.Types.ObjectId;
|
|
673
1048
|
} & {
|
|
674
1049
|
__v: number;
|
|
675
1050
|
}>;
|
|
676
1051
|
/**
|
|
677
1052
|
* Work schedule schema definition
|
|
678
1053
|
*/
|
|
679
|
-
declare const workScheduleSchema:
|
|
1054
|
+
declare const workScheduleSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
680
1055
|
_id: false;
|
|
681
1056
|
}, {
|
|
682
1057
|
workingDays: number[];
|
|
683
|
-
hoursPerWeek?: number | null | undefined;
|
|
684
1058
|
hoursPerDay?: number | null | undefined;
|
|
1059
|
+
hoursPerWeek?: number | null | undefined;
|
|
685
1060
|
shiftStart?: string | null | undefined;
|
|
686
1061
|
shiftEnd?: string | null | undefined;
|
|
687
|
-
},
|
|
1062
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
688
1063
|
workingDays: number[];
|
|
689
|
-
hoursPerWeek?: number | null | undefined;
|
|
690
1064
|
hoursPerDay?: number | null | undefined;
|
|
1065
|
+
hoursPerWeek?: number | null | undefined;
|
|
691
1066
|
shiftStart?: string | null | undefined;
|
|
692
1067
|
shiftEnd?: string | null | undefined;
|
|
693
1068
|
}, {
|
|
694
1069
|
id: string;
|
|
695
|
-
},
|
|
1070
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
696
1071
|
_id: false;
|
|
697
1072
|
}>> & Omit<{
|
|
698
1073
|
workingDays: number[];
|
|
699
|
-
hoursPerWeek?: number | null | undefined;
|
|
700
1074
|
hoursPerDay?: number | null | undefined;
|
|
1075
|
+
hoursPerWeek?: number | null | undefined;
|
|
701
1076
|
shiftStart?: string | null | undefined;
|
|
702
1077
|
shiftEnd?: string | null | undefined;
|
|
703
1078
|
} & {
|
|
704
|
-
_id:
|
|
1079
|
+
_id: mongoose__default.Types.ObjectId;
|
|
705
1080
|
} & {
|
|
706
1081
|
__v: number;
|
|
707
1082
|
}, "id"> & {
|
|
708
1083
|
id: string;
|
|
709
1084
|
}, {
|
|
710
|
-
[path: string]:
|
|
1085
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
711
1086
|
} | {
|
|
712
|
-
[x: string]:
|
|
1087
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
713
1088
|
workingDays: number[];
|
|
714
|
-
hoursPerWeek?: number | null | undefined;
|
|
715
1089
|
hoursPerDay?: number | null | undefined;
|
|
1090
|
+
hoursPerWeek?: number | null | undefined;
|
|
716
1091
|
shiftStart?: string | null | undefined;
|
|
717
1092
|
shiftEnd?: string | null | undefined;
|
|
718
1093
|
}, {
|
|
719
1094
|
id: string;
|
|
720
|
-
},
|
|
1095
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
721
1096
|
_id: false;
|
|
722
1097
|
}>> & Omit<{
|
|
723
1098
|
workingDays: number[];
|
|
724
|
-
hoursPerWeek?: number | null | undefined;
|
|
725
1099
|
hoursPerDay?: number | null | undefined;
|
|
1100
|
+
hoursPerWeek?: number | null | undefined;
|
|
726
1101
|
shiftStart?: string | null | undefined;
|
|
727
1102
|
shiftEnd?: string | null | undefined;
|
|
728
1103
|
} & {
|
|
729
|
-
_id:
|
|
1104
|
+
_id: mongoose__default.Types.ObjectId;
|
|
730
1105
|
} & {
|
|
731
1106
|
__v: number;
|
|
732
1107
|
}, "id"> & {
|
|
@@ -734,19 +1109,19 @@ declare const workScheduleSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
734
1109
|
}> | undefined;
|
|
735
1110
|
}, {
|
|
736
1111
|
workingDays: number[];
|
|
737
|
-
hoursPerWeek?: number | null | undefined;
|
|
738
1112
|
hoursPerDay?: number | null | undefined;
|
|
1113
|
+
hoursPerWeek?: number | null | undefined;
|
|
739
1114
|
shiftStart?: string | null | undefined;
|
|
740
1115
|
shiftEnd?: string | null | undefined;
|
|
741
1116
|
} & {
|
|
742
|
-
_id:
|
|
1117
|
+
_id: mongoose__default.Types.ObjectId;
|
|
743
1118
|
} & {
|
|
744
1119
|
__v: number;
|
|
745
1120
|
}>;
|
|
746
1121
|
/**
|
|
747
1122
|
* Bank details schema definition
|
|
748
1123
|
*/
|
|
749
|
-
declare const bankDetailsSchema:
|
|
1124
|
+
declare const bankDetailsSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
750
1125
|
_id: false;
|
|
751
1126
|
}, {
|
|
752
1127
|
accountName?: string | null | undefined;
|
|
@@ -754,7 +1129,7 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
754
1129
|
bankName?: string | null | undefined;
|
|
755
1130
|
branchName?: string | null | undefined;
|
|
756
1131
|
routingNumber?: string | null | undefined;
|
|
757
|
-
},
|
|
1132
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
758
1133
|
accountName?: string | null | undefined;
|
|
759
1134
|
accountNumber?: string | null | undefined;
|
|
760
1135
|
bankName?: string | null | undefined;
|
|
@@ -762,7 +1137,7 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
762
1137
|
routingNumber?: string | null | undefined;
|
|
763
1138
|
}, {
|
|
764
1139
|
id: string;
|
|
765
|
-
},
|
|
1140
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
766
1141
|
_id: false;
|
|
767
1142
|
}>> & Omit<{
|
|
768
1143
|
accountName?: string | null | undefined;
|
|
@@ -771,15 +1146,15 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
771
1146
|
branchName?: string | null | undefined;
|
|
772
1147
|
routingNumber?: string | null | undefined;
|
|
773
1148
|
} & {
|
|
774
|
-
_id:
|
|
1149
|
+
_id: mongoose__default.Types.ObjectId;
|
|
775
1150
|
} & {
|
|
776
1151
|
__v: number;
|
|
777
1152
|
}, "id"> & {
|
|
778
1153
|
id: string;
|
|
779
1154
|
}, {
|
|
780
|
-
[path: string]:
|
|
1155
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
781
1156
|
} | {
|
|
782
|
-
[x: string]:
|
|
1157
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
783
1158
|
accountName?: string | null | undefined;
|
|
784
1159
|
accountNumber?: string | null | undefined;
|
|
785
1160
|
bankName?: string | null | undefined;
|
|
@@ -787,7 +1162,7 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
787
1162
|
routingNumber?: string | null | undefined;
|
|
788
1163
|
}, {
|
|
789
1164
|
id: string;
|
|
790
|
-
},
|
|
1165
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
791
1166
|
_id: false;
|
|
792
1167
|
}>> & Omit<{
|
|
793
1168
|
accountName?: string | null | undefined;
|
|
@@ -796,7 +1171,7 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
796
1171
|
branchName?: string | null | undefined;
|
|
797
1172
|
routingNumber?: string | null | undefined;
|
|
798
1173
|
} & {
|
|
799
|
-
_id:
|
|
1174
|
+
_id: mongoose__default.Types.ObjectId;
|
|
800
1175
|
} & {
|
|
801
1176
|
__v: number;
|
|
802
1177
|
}, "id"> & {
|
|
@@ -809,74 +1184,74 @@ declare const bankDetailsSchema: mongoose.Schema<any, mongoose.Model<any, any, a
|
|
|
809
1184
|
branchName?: string | null | undefined;
|
|
810
1185
|
routingNumber?: string | null | undefined;
|
|
811
1186
|
} & {
|
|
812
|
-
_id:
|
|
1187
|
+
_id: mongoose__default.Types.ObjectId;
|
|
813
1188
|
} & {
|
|
814
1189
|
__v: number;
|
|
815
1190
|
}>;
|
|
816
1191
|
/**
|
|
817
1192
|
* Employment history entry schema
|
|
818
1193
|
*/
|
|
819
|
-
declare const employmentHistorySchema:
|
|
1194
|
+
declare const employmentHistorySchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
820
1195
|
timestamps: true;
|
|
821
1196
|
}, {
|
|
822
1197
|
hireDate: NativeDate;
|
|
823
1198
|
terminationDate: NativeDate;
|
|
824
|
-
|
|
1199
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
825
1200
|
position?: string | null | undefined;
|
|
826
|
-
|
|
1201
|
+
department?: string | null | undefined;
|
|
827
1202
|
notes?: string | null | undefined;
|
|
828
1203
|
finalSalary?: number | null | undefined;
|
|
829
|
-
} &
|
|
1204
|
+
} & mongoose__default.DefaultTimestampProps, mongoose__default.Document<unknown, {}, {
|
|
830
1205
|
hireDate: NativeDate;
|
|
831
1206
|
terminationDate: NativeDate;
|
|
832
|
-
|
|
1207
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
833
1208
|
position?: string | null | undefined;
|
|
834
|
-
|
|
1209
|
+
department?: string | null | undefined;
|
|
835
1210
|
notes?: string | null | undefined;
|
|
836
1211
|
finalSalary?: number | null | undefined;
|
|
837
|
-
} &
|
|
1212
|
+
} & mongoose__default.DefaultTimestampProps, {
|
|
838
1213
|
id: string;
|
|
839
|
-
},
|
|
1214
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
840
1215
|
timestamps: true;
|
|
841
1216
|
}>> & Omit<{
|
|
842
1217
|
hireDate: NativeDate;
|
|
843
1218
|
terminationDate: NativeDate;
|
|
844
|
-
|
|
1219
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
845
1220
|
position?: string | null | undefined;
|
|
846
|
-
|
|
1221
|
+
department?: string | null | undefined;
|
|
847
1222
|
notes?: string | null | undefined;
|
|
848
1223
|
finalSalary?: number | null | undefined;
|
|
849
|
-
} &
|
|
850
|
-
_id:
|
|
1224
|
+
} & mongoose__default.DefaultTimestampProps & {
|
|
1225
|
+
_id: mongoose__default.Types.ObjectId;
|
|
851
1226
|
} & {
|
|
852
1227
|
__v: number;
|
|
853
1228
|
}, "id"> & {
|
|
854
1229
|
id: string;
|
|
855
1230
|
}, {
|
|
856
|
-
[path: string]:
|
|
1231
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
857
1232
|
} | {
|
|
858
|
-
[x: string]:
|
|
1233
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
859
1234
|
hireDate: NativeDate;
|
|
860
1235
|
terminationDate: NativeDate;
|
|
861
|
-
|
|
1236
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
862
1237
|
position?: string | null | undefined;
|
|
863
|
-
|
|
1238
|
+
department?: string | null | undefined;
|
|
864
1239
|
notes?: string | null | undefined;
|
|
865
1240
|
finalSalary?: number | null | undefined;
|
|
866
|
-
} &
|
|
1241
|
+
} & mongoose__default.DefaultTimestampProps, {
|
|
867
1242
|
id: string;
|
|
868
|
-
},
|
|
1243
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
869
1244
|
timestamps: true;
|
|
870
1245
|
}>> & Omit<{
|
|
871
1246
|
hireDate: NativeDate;
|
|
872
1247
|
terminationDate: NativeDate;
|
|
873
|
-
|
|
1248
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
874
1249
|
position?: string | null | undefined;
|
|
875
|
-
|
|
1250
|
+
department?: string | null | undefined;
|
|
876
1251
|
notes?: string | null | undefined;
|
|
877
1252
|
finalSalary?: number | null | undefined;
|
|
878
|
-
} &
|
|
879
|
-
_id:
|
|
1253
|
+
} & mongoose__default.DefaultTimestampProps & {
|
|
1254
|
+
_id: mongoose__default.Types.ObjectId;
|
|
880
1255
|
} & {
|
|
881
1256
|
__v: number;
|
|
882
1257
|
}, "id"> & {
|
|
@@ -885,22 +1260,22 @@ declare const employmentHistorySchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
885
1260
|
}, {
|
|
886
1261
|
hireDate: NativeDate;
|
|
887
1262
|
terminationDate: NativeDate;
|
|
888
|
-
|
|
1263
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
889
1264
|
position?: string | null | undefined;
|
|
890
|
-
|
|
1265
|
+
department?: string | null | undefined;
|
|
891
1266
|
notes?: string | null | undefined;
|
|
892
1267
|
finalSalary?: number | null | undefined;
|
|
893
1268
|
createdAt: NativeDate;
|
|
894
1269
|
updatedAt: NativeDate;
|
|
895
1270
|
} & {
|
|
896
|
-
_id:
|
|
1271
|
+
_id: mongoose__default.Types.ObjectId;
|
|
897
1272
|
} & {
|
|
898
1273
|
__v: number;
|
|
899
1274
|
}>;
|
|
900
1275
|
/**
|
|
901
1276
|
* Payroll stats schema (pre-calculated)
|
|
902
1277
|
*/
|
|
903
|
-
declare const payrollStatsSchema:
|
|
1278
|
+
declare const payrollStatsSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
904
1279
|
_id: false;
|
|
905
1280
|
}, {
|
|
906
1281
|
updatedAt: NativeDate;
|
|
@@ -909,7 +1284,7 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
909
1284
|
averageMonthly: number;
|
|
910
1285
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
911
1286
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
912
|
-
},
|
|
1287
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
913
1288
|
updatedAt: NativeDate;
|
|
914
1289
|
totalPaid: number;
|
|
915
1290
|
paymentsThisYear: number;
|
|
@@ -918,7 +1293,7 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
918
1293
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
919
1294
|
}, {
|
|
920
1295
|
id: string;
|
|
921
|
-
},
|
|
1296
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
922
1297
|
_id: false;
|
|
923
1298
|
}>> & Omit<{
|
|
924
1299
|
updatedAt: NativeDate;
|
|
@@ -928,15 +1303,15 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
928
1303
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
929
1304
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
930
1305
|
} & {
|
|
931
|
-
_id:
|
|
1306
|
+
_id: mongoose__default.Types.ObjectId;
|
|
932
1307
|
} & {
|
|
933
1308
|
__v: number;
|
|
934
1309
|
}, "id"> & {
|
|
935
1310
|
id: string;
|
|
936
1311
|
}, {
|
|
937
|
-
[path: string]:
|
|
1312
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
938
1313
|
} | {
|
|
939
|
-
[x: string]:
|
|
1314
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
940
1315
|
updatedAt: NativeDate;
|
|
941
1316
|
totalPaid: number;
|
|
942
1317
|
paymentsThisYear: number;
|
|
@@ -945,7 +1320,7 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
945
1320
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
946
1321
|
}, {
|
|
947
1322
|
id: string;
|
|
948
|
-
},
|
|
1323
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
949
1324
|
_id: false;
|
|
950
1325
|
}>> & Omit<{
|
|
951
1326
|
updatedAt: NativeDate;
|
|
@@ -955,7 +1330,7 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
955
1330
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
956
1331
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
957
1332
|
} & {
|
|
958
|
-
_id:
|
|
1333
|
+
_id: mongoose__default.Types.ObjectId;
|
|
959
1334
|
} & {
|
|
960
1335
|
__v: number;
|
|
961
1336
|
}, "id"> & {
|
|
@@ -969,7 +1344,7 @@ declare const payrollStatsSchema: mongoose.Schema<any, mongoose.Model<any, any,
|
|
|
969
1344
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
970
1345
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
971
1346
|
} & {
|
|
972
|
-
_id:
|
|
1347
|
+
_id: mongoose__default.Types.ObjectId;
|
|
973
1348
|
} & {
|
|
974
1349
|
__v: number;
|
|
975
1350
|
}>;
|
|
@@ -987,323 +1362,266 @@ declare const employmentFields: SchemaDefinition;
|
|
|
987
1362
|
/**
|
|
988
1363
|
* Payroll breakdown schema
|
|
989
1364
|
*/
|
|
990
|
-
declare const payrollBreakdownSchema:
|
|
1365
|
+
declare const payrollBreakdownSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
991
1366
|
_id: false;
|
|
992
1367
|
}, {
|
|
993
|
-
|
|
994
|
-
|
|
1368
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1369
|
+
amount: number;
|
|
1370
|
+
type: string;
|
|
995
1371
|
taxable: boolean;
|
|
996
|
-
|
|
997
|
-
amount
|
|
998
|
-
|
|
1372
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1373
|
+
amount: number;
|
|
1374
|
+
type: string;
|
|
999
1375
|
taxable: boolean;
|
|
1000
|
-
type?: string | null | undefined;
|
|
1001
|
-
amount?: number | null | undefined;
|
|
1002
1376
|
}> & {
|
|
1377
|
+
amount: number;
|
|
1378
|
+
type: string;
|
|
1003
1379
|
taxable: boolean;
|
|
1004
|
-
type?: string | null | undefined;
|
|
1005
|
-
amount?: number | null | undefined;
|
|
1006
1380
|
}>;
|
|
1007
|
-
deductions:
|
|
1008
|
-
|
|
1009
|
-
|
|
1381
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1382
|
+
amount: number;
|
|
1383
|
+
type: string;
|
|
1010
1384
|
description?: string | null | undefined;
|
|
1011
|
-
},
|
|
1012
|
-
|
|
1013
|
-
|
|
1385
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1386
|
+
amount: number;
|
|
1387
|
+
type: string;
|
|
1014
1388
|
description?: string | null | undefined;
|
|
1015
1389
|
}> & {
|
|
1016
|
-
|
|
1017
|
-
|
|
1390
|
+
amount: number;
|
|
1391
|
+
type: string;
|
|
1018
1392
|
description?: string | null | undefined;
|
|
1019
1393
|
}>;
|
|
1394
|
+
baseAmount: number;
|
|
1020
1395
|
grossSalary: number;
|
|
1021
1396
|
netSalary: number;
|
|
1022
|
-
|
|
1397
|
+
taxableAmount: number;
|
|
1398
|
+
taxAmount: number;
|
|
1023
1399
|
proRatedAmount: number;
|
|
1400
|
+
attendanceDeduction: number;
|
|
1024
1401
|
overtimeAmount: number;
|
|
1025
1402
|
bonusAmount: number;
|
|
1026
1403
|
workingDays?: number | null | undefined;
|
|
1027
1404
|
actualDays?: number | null | undefined;
|
|
1028
|
-
},
|
|
1029
|
-
|
|
1030
|
-
|
|
1405
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
1406
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1407
|
+
amount: number;
|
|
1408
|
+
type: string;
|
|
1031
1409
|
taxable: boolean;
|
|
1032
|
-
|
|
1033
|
-
amount
|
|
1034
|
-
|
|
1410
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1411
|
+
amount: number;
|
|
1412
|
+
type: string;
|
|
1035
1413
|
taxable: boolean;
|
|
1036
|
-
type?: string | null | undefined;
|
|
1037
|
-
amount?: number | null | undefined;
|
|
1038
1414
|
}> & {
|
|
1415
|
+
amount: number;
|
|
1416
|
+
type: string;
|
|
1039
1417
|
taxable: boolean;
|
|
1040
|
-
type?: string | null | undefined;
|
|
1041
|
-
amount?: number | null | undefined;
|
|
1042
1418
|
}>;
|
|
1043
|
-
deductions:
|
|
1044
|
-
|
|
1045
|
-
|
|
1419
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1420
|
+
amount: number;
|
|
1421
|
+
type: string;
|
|
1046
1422
|
description?: string | null | undefined;
|
|
1047
|
-
},
|
|
1048
|
-
|
|
1049
|
-
|
|
1423
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1424
|
+
amount: number;
|
|
1425
|
+
type: string;
|
|
1050
1426
|
description?: string | null | undefined;
|
|
1051
1427
|
}> & {
|
|
1052
|
-
|
|
1053
|
-
|
|
1428
|
+
amount: number;
|
|
1429
|
+
type: string;
|
|
1054
1430
|
description?: string | null | undefined;
|
|
1055
1431
|
}>;
|
|
1432
|
+
baseAmount: number;
|
|
1056
1433
|
grossSalary: number;
|
|
1057
1434
|
netSalary: number;
|
|
1058
|
-
|
|
1435
|
+
taxableAmount: number;
|
|
1436
|
+
taxAmount: number;
|
|
1059
1437
|
proRatedAmount: number;
|
|
1438
|
+
attendanceDeduction: number;
|
|
1060
1439
|
overtimeAmount: number;
|
|
1061
1440
|
bonusAmount: number;
|
|
1062
1441
|
workingDays?: number | null | undefined;
|
|
1063
1442
|
actualDays?: number | null | undefined;
|
|
1064
1443
|
}, {
|
|
1065
1444
|
id: string;
|
|
1066
|
-
},
|
|
1445
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1067
1446
|
_id: false;
|
|
1068
1447
|
}>> & Omit<{
|
|
1069
|
-
|
|
1070
|
-
|
|
1448
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1449
|
+
amount: number;
|
|
1450
|
+
type: string;
|
|
1071
1451
|
taxable: boolean;
|
|
1072
|
-
|
|
1073
|
-
amount
|
|
1074
|
-
|
|
1452
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1453
|
+
amount: number;
|
|
1454
|
+
type: string;
|
|
1075
1455
|
taxable: boolean;
|
|
1076
|
-
type?: string | null | undefined;
|
|
1077
|
-
amount?: number | null | undefined;
|
|
1078
1456
|
}> & {
|
|
1457
|
+
amount: number;
|
|
1458
|
+
type: string;
|
|
1079
1459
|
taxable: boolean;
|
|
1080
|
-
type?: string | null | undefined;
|
|
1081
|
-
amount?: number | null | undefined;
|
|
1082
1460
|
}>;
|
|
1083
|
-
deductions:
|
|
1084
|
-
|
|
1085
|
-
|
|
1461
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1462
|
+
amount: number;
|
|
1463
|
+
type: string;
|
|
1086
1464
|
description?: string | null | undefined;
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
|
|
1465
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1466
|
+
amount: number;
|
|
1467
|
+
type: string;
|
|
1090
1468
|
description?: string | null | undefined;
|
|
1091
1469
|
}> & {
|
|
1092
|
-
|
|
1093
|
-
|
|
1470
|
+
amount: number;
|
|
1471
|
+
type: string;
|
|
1094
1472
|
description?: string | null | undefined;
|
|
1095
1473
|
}>;
|
|
1474
|
+
baseAmount: number;
|
|
1096
1475
|
grossSalary: number;
|
|
1097
1476
|
netSalary: number;
|
|
1098
|
-
|
|
1477
|
+
taxableAmount: number;
|
|
1478
|
+
taxAmount: number;
|
|
1099
1479
|
proRatedAmount: number;
|
|
1480
|
+
attendanceDeduction: number;
|
|
1100
1481
|
overtimeAmount: number;
|
|
1101
1482
|
bonusAmount: number;
|
|
1102
1483
|
workingDays?: number | null | undefined;
|
|
1103
1484
|
actualDays?: number | null | undefined;
|
|
1104
1485
|
} & {
|
|
1105
|
-
_id:
|
|
1486
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1106
1487
|
} & {
|
|
1107
1488
|
__v: number;
|
|
1108
1489
|
}, "id"> & {
|
|
1109
1490
|
id: string;
|
|
1110
1491
|
}, {
|
|
1111
|
-
[path: string]:
|
|
1492
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
1112
1493
|
} | {
|
|
1113
|
-
[x: string]:
|
|
1114
|
-
|
|
1115
|
-
|
|
1494
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
1495
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1496
|
+
amount: number;
|
|
1497
|
+
type: string;
|
|
1116
1498
|
taxable: boolean;
|
|
1117
|
-
|
|
1118
|
-
amount
|
|
1119
|
-
|
|
1499
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1500
|
+
amount: number;
|
|
1501
|
+
type: string;
|
|
1120
1502
|
taxable: boolean;
|
|
1121
|
-
type?: string | null | undefined;
|
|
1122
|
-
amount?: number | null | undefined;
|
|
1123
1503
|
}> & {
|
|
1504
|
+
amount: number;
|
|
1505
|
+
type: string;
|
|
1124
1506
|
taxable: boolean;
|
|
1125
|
-
type?: string | null | undefined;
|
|
1126
|
-
amount?: number | null | undefined;
|
|
1127
1507
|
}>;
|
|
1128
|
-
deductions:
|
|
1129
|
-
|
|
1130
|
-
|
|
1508
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1509
|
+
amount: number;
|
|
1510
|
+
type: string;
|
|
1131
1511
|
description?: string | null | undefined;
|
|
1132
|
-
},
|
|
1133
|
-
|
|
1134
|
-
|
|
1512
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1513
|
+
amount: number;
|
|
1514
|
+
type: string;
|
|
1135
1515
|
description?: string | null | undefined;
|
|
1136
1516
|
}> & {
|
|
1137
|
-
|
|
1138
|
-
|
|
1517
|
+
amount: number;
|
|
1518
|
+
type: string;
|
|
1139
1519
|
description?: string | null | undefined;
|
|
1140
1520
|
}>;
|
|
1521
|
+
baseAmount: number;
|
|
1141
1522
|
grossSalary: number;
|
|
1142
1523
|
netSalary: number;
|
|
1143
|
-
|
|
1524
|
+
taxableAmount: number;
|
|
1525
|
+
taxAmount: number;
|
|
1144
1526
|
proRatedAmount: number;
|
|
1527
|
+
attendanceDeduction: number;
|
|
1145
1528
|
overtimeAmount: number;
|
|
1146
1529
|
bonusAmount: number;
|
|
1147
1530
|
workingDays?: number | null | undefined;
|
|
1148
1531
|
actualDays?: number | null | undefined;
|
|
1149
1532
|
}, {
|
|
1150
1533
|
id: string;
|
|
1151
|
-
},
|
|
1534
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1152
1535
|
_id: false;
|
|
1153
1536
|
}>> & Omit<{
|
|
1154
|
-
|
|
1155
|
-
|
|
1537
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1538
|
+
amount: number;
|
|
1539
|
+
type: string;
|
|
1156
1540
|
taxable: boolean;
|
|
1157
|
-
|
|
1158
|
-
amount
|
|
1159
|
-
|
|
1541
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1542
|
+
amount: number;
|
|
1543
|
+
type: string;
|
|
1160
1544
|
taxable: boolean;
|
|
1161
|
-
type?: string | null | undefined;
|
|
1162
|
-
amount?: number | null | undefined;
|
|
1163
1545
|
}> & {
|
|
1546
|
+
amount: number;
|
|
1547
|
+
type: string;
|
|
1164
1548
|
taxable: boolean;
|
|
1165
|
-
type?: string | null | undefined;
|
|
1166
|
-
amount?: number | null | undefined;
|
|
1167
1549
|
}>;
|
|
1168
|
-
deductions:
|
|
1169
|
-
|
|
1170
|
-
|
|
1550
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1551
|
+
amount: number;
|
|
1552
|
+
type: string;
|
|
1171
1553
|
description?: string | null | undefined;
|
|
1172
|
-
},
|
|
1173
|
-
|
|
1174
|
-
|
|
1554
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1555
|
+
amount: number;
|
|
1556
|
+
type: string;
|
|
1175
1557
|
description?: string | null | undefined;
|
|
1176
1558
|
}> & {
|
|
1177
|
-
|
|
1178
|
-
|
|
1559
|
+
amount: number;
|
|
1560
|
+
type: string;
|
|
1179
1561
|
description?: string | null | undefined;
|
|
1180
1562
|
}>;
|
|
1563
|
+
baseAmount: number;
|
|
1181
1564
|
grossSalary: number;
|
|
1182
1565
|
netSalary: number;
|
|
1183
|
-
|
|
1566
|
+
taxableAmount: number;
|
|
1567
|
+
taxAmount: number;
|
|
1184
1568
|
proRatedAmount: number;
|
|
1569
|
+
attendanceDeduction: number;
|
|
1185
1570
|
overtimeAmount: number;
|
|
1186
1571
|
bonusAmount: number;
|
|
1187
1572
|
workingDays?: number | null | undefined;
|
|
1188
1573
|
actualDays?: number | null | undefined;
|
|
1189
1574
|
} & {
|
|
1190
|
-
_id:
|
|
1575
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1191
1576
|
} & {
|
|
1192
1577
|
__v: number;
|
|
1193
1578
|
}, "id"> & {
|
|
1194
1579
|
id: string;
|
|
1195
1580
|
}> | undefined;
|
|
1196
1581
|
}, {
|
|
1197
|
-
|
|
1198
|
-
|
|
1582
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1583
|
+
amount: number;
|
|
1584
|
+
type: string;
|
|
1199
1585
|
taxable: boolean;
|
|
1200
|
-
|
|
1201
|
-
amount
|
|
1202
|
-
|
|
1586
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1587
|
+
amount: number;
|
|
1588
|
+
type: string;
|
|
1203
1589
|
taxable: boolean;
|
|
1204
|
-
type?: string | null | undefined;
|
|
1205
|
-
amount?: number | null | undefined;
|
|
1206
1590
|
}> & {
|
|
1591
|
+
amount: number;
|
|
1592
|
+
type: string;
|
|
1207
1593
|
taxable: boolean;
|
|
1208
|
-
type?: string | null | undefined;
|
|
1209
|
-
amount?: number | null | undefined;
|
|
1210
1594
|
}>;
|
|
1211
|
-
deductions:
|
|
1212
|
-
|
|
1213
|
-
|
|
1595
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1596
|
+
amount: number;
|
|
1597
|
+
type: string;
|
|
1214
1598
|
description?: string | null | undefined;
|
|
1215
|
-
},
|
|
1216
|
-
|
|
1217
|
-
|
|
1599
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1600
|
+
amount: number;
|
|
1601
|
+
type: string;
|
|
1218
1602
|
description?: string | null | undefined;
|
|
1219
1603
|
}> & {
|
|
1220
|
-
|
|
1221
|
-
|
|
1604
|
+
amount: number;
|
|
1605
|
+
type: string;
|
|
1222
1606
|
description?: string | null | undefined;
|
|
1223
1607
|
}>;
|
|
1608
|
+
baseAmount: number;
|
|
1224
1609
|
grossSalary: number;
|
|
1225
1610
|
netSalary: number;
|
|
1226
|
-
|
|
1611
|
+
taxableAmount: number;
|
|
1612
|
+
taxAmount: number;
|
|
1227
1613
|
proRatedAmount: number;
|
|
1614
|
+
attendanceDeduction: number;
|
|
1228
1615
|
overtimeAmount: number;
|
|
1229
1616
|
bonusAmount: number;
|
|
1230
1617
|
workingDays?: number | null | undefined;
|
|
1231
1618
|
actualDays?: number | null | undefined;
|
|
1232
1619
|
} & {
|
|
1233
|
-
_id:
|
|
1234
|
-
} & {
|
|
1235
|
-
__v: number;
|
|
1236
|
-
}>;
|
|
1237
|
-
/**
|
|
1238
|
-
* Payroll period schema
|
|
1239
|
-
*/
|
|
1240
|
-
declare const periodSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1241
|
-
_id: false;
|
|
1242
|
-
}, {
|
|
1243
|
-
month: number;
|
|
1244
|
-
year: number;
|
|
1245
|
-
startDate: NativeDate;
|
|
1246
|
-
endDate: NativeDate;
|
|
1247
|
-
payDate: NativeDate;
|
|
1248
|
-
}, mongoose.Document<unknown, {}, {
|
|
1249
|
-
month: number;
|
|
1250
|
-
year: number;
|
|
1251
|
-
startDate: NativeDate;
|
|
1252
|
-
endDate: NativeDate;
|
|
1253
|
-
payDate: NativeDate;
|
|
1254
|
-
}, {
|
|
1255
|
-
id: string;
|
|
1256
|
-
}, mongoose.ResolveSchemaOptions<{
|
|
1257
|
-
_id: false;
|
|
1258
|
-
}>> & Omit<{
|
|
1259
|
-
month: number;
|
|
1260
|
-
year: number;
|
|
1261
|
-
startDate: NativeDate;
|
|
1262
|
-
endDate: NativeDate;
|
|
1263
|
-
payDate: NativeDate;
|
|
1264
|
-
} & {
|
|
1265
|
-
_id: mongoose.Types.ObjectId;
|
|
1266
|
-
} & {
|
|
1267
|
-
__v: number;
|
|
1268
|
-
}, "id"> & {
|
|
1269
|
-
id: string;
|
|
1270
|
-
}, {
|
|
1271
|
-
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1272
|
-
} | {
|
|
1273
|
-
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1274
|
-
month: number;
|
|
1275
|
-
year: number;
|
|
1276
|
-
startDate: NativeDate;
|
|
1277
|
-
endDate: NativeDate;
|
|
1278
|
-
payDate: NativeDate;
|
|
1279
|
-
}, {
|
|
1280
|
-
id: string;
|
|
1281
|
-
}, mongoose.ResolveSchemaOptions<{
|
|
1282
|
-
_id: false;
|
|
1283
|
-
}>> & Omit<{
|
|
1284
|
-
month: number;
|
|
1285
|
-
year: number;
|
|
1286
|
-
startDate: NativeDate;
|
|
1287
|
-
endDate: NativeDate;
|
|
1288
|
-
payDate: NativeDate;
|
|
1289
|
-
} & {
|
|
1290
|
-
_id: mongoose.Types.ObjectId;
|
|
1291
|
-
} & {
|
|
1292
|
-
__v: number;
|
|
1293
|
-
}, "id"> & {
|
|
1294
|
-
id: string;
|
|
1295
|
-
}> | undefined;
|
|
1296
|
-
}, {
|
|
1297
|
-
month: number;
|
|
1298
|
-
year: number;
|
|
1299
|
-
startDate: NativeDate;
|
|
1300
|
-
endDate: NativeDate;
|
|
1301
|
-
payDate: NativeDate;
|
|
1302
|
-
} & {
|
|
1303
|
-
_id: mongoose.Types.ObjectId;
|
|
1620
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1304
1621
|
} & {
|
|
1305
1622
|
__v: number;
|
|
1306
1623
|
}>;
|
|
1624
|
+
|
|
1307
1625
|
/**
|
|
1308
1626
|
* Payroll record fields to spread into PayrollRecord schema
|
|
1309
1627
|
*/
|
|
@@ -1316,24 +1634,56 @@ declare const employeeIndexes: ({
|
|
|
1316
1634
|
organizationId: number;
|
|
1317
1635
|
employeeId: number;
|
|
1318
1636
|
userId?: undefined;
|
|
1637
|
+
email?: undefined;
|
|
1319
1638
|
status?: undefined;
|
|
1320
1639
|
department?: undefined;
|
|
1321
1640
|
'compensation.netSalary'?: undefined;
|
|
1322
1641
|
};
|
|
1323
1642
|
options: {
|
|
1324
1643
|
unique: boolean;
|
|
1644
|
+
partialFilterExpression?: undefined;
|
|
1325
1645
|
};
|
|
1326
1646
|
} | {
|
|
1327
1647
|
fields: {
|
|
1328
1648
|
userId: number;
|
|
1329
1649
|
organizationId: number;
|
|
1330
1650
|
employeeId?: undefined;
|
|
1651
|
+
email?: undefined;
|
|
1652
|
+
status?: undefined;
|
|
1653
|
+
department?: undefined;
|
|
1654
|
+
'compensation.netSalary'?: undefined;
|
|
1655
|
+
};
|
|
1656
|
+
options: {
|
|
1657
|
+
unique: boolean;
|
|
1658
|
+
partialFilterExpression: {
|
|
1659
|
+
userId: {
|
|
1660
|
+
$exists: boolean;
|
|
1661
|
+
};
|
|
1662
|
+
email?: undefined;
|
|
1663
|
+
status?: undefined;
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1666
|
+
} | {
|
|
1667
|
+
fields: {
|
|
1668
|
+
email: number;
|
|
1669
|
+
organizationId: number;
|
|
1670
|
+
employeeId?: undefined;
|
|
1671
|
+
userId?: undefined;
|
|
1331
1672
|
status?: undefined;
|
|
1332
1673
|
department?: undefined;
|
|
1333
1674
|
'compensation.netSalary'?: undefined;
|
|
1334
1675
|
};
|
|
1335
1676
|
options: {
|
|
1336
1677
|
unique: boolean;
|
|
1678
|
+
partialFilterExpression: {
|
|
1679
|
+
email: {
|
|
1680
|
+
$exists: boolean;
|
|
1681
|
+
};
|
|
1682
|
+
status: {
|
|
1683
|
+
$in: string[];
|
|
1684
|
+
};
|
|
1685
|
+
userId?: undefined;
|
|
1686
|
+
};
|
|
1337
1687
|
};
|
|
1338
1688
|
} | {
|
|
1339
1689
|
fields: {
|
|
@@ -1341,6 +1691,7 @@ declare const employeeIndexes: ({
|
|
|
1341
1691
|
status: number;
|
|
1342
1692
|
employeeId?: undefined;
|
|
1343
1693
|
userId?: undefined;
|
|
1694
|
+
email?: undefined;
|
|
1344
1695
|
department?: undefined;
|
|
1345
1696
|
'compensation.netSalary'?: undefined;
|
|
1346
1697
|
};
|
|
@@ -1351,6 +1702,7 @@ declare const employeeIndexes: ({
|
|
|
1351
1702
|
department: number;
|
|
1352
1703
|
employeeId?: undefined;
|
|
1353
1704
|
userId?: undefined;
|
|
1705
|
+
email?: undefined;
|
|
1354
1706
|
status?: undefined;
|
|
1355
1707
|
'compensation.netSalary'?: undefined;
|
|
1356
1708
|
};
|
|
@@ -1361,6 +1713,7 @@ declare const employeeIndexes: ({
|
|
|
1361
1713
|
'compensation.netSalary': number;
|
|
1362
1714
|
employeeId?: undefined;
|
|
1363
1715
|
userId?: undefined;
|
|
1716
|
+
email?: undefined;
|
|
1364
1717
|
status?: undefined;
|
|
1365
1718
|
department?: undefined;
|
|
1366
1719
|
};
|
|
@@ -1382,7 +1735,6 @@ declare const payrollRecordIndexes: ({
|
|
|
1382
1735
|
options: {
|
|
1383
1736
|
unique: boolean;
|
|
1384
1737
|
expireAfterSeconds?: undefined;
|
|
1385
|
-
partialFilterExpression?: undefined;
|
|
1386
1738
|
};
|
|
1387
1739
|
} | {
|
|
1388
1740
|
fields: {
|
|
@@ -1440,9 +1792,6 @@ declare const payrollRecordIndexes: ({
|
|
|
1440
1792
|
};
|
|
1441
1793
|
options: {
|
|
1442
1794
|
expireAfterSeconds: number;
|
|
1443
|
-
partialFilterExpression: {
|
|
1444
|
-
exported: boolean;
|
|
1445
|
-
};
|
|
1446
1795
|
unique?: undefined;
|
|
1447
1796
|
};
|
|
1448
1797
|
})[];
|
|
@@ -1462,12 +1811,13 @@ declare function createEmployeeSchema(additionalFields?: SchemaDefinition): Sche
|
|
|
1462
1811
|
* Create a complete PayrollRecord schema
|
|
1463
1812
|
*/
|
|
1464
1813
|
declare function createPayrollRecordSchema(additionalFields?: SchemaDefinition): Schema;
|
|
1814
|
+
|
|
1465
1815
|
declare const _default: {
|
|
1466
|
-
allowanceSchema:
|
|
1816
|
+
allowanceSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1467
1817
|
_id: false;
|
|
1468
1818
|
}, {
|
|
1469
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1470
1819
|
amount: number;
|
|
1820
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1471
1821
|
isPercentage: boolean;
|
|
1472
1822
|
taxable: boolean;
|
|
1473
1823
|
recurring: boolean;
|
|
@@ -1475,9 +1825,9 @@ declare const _default: {
|
|
|
1475
1825
|
name?: string | null | undefined;
|
|
1476
1826
|
value?: number | null | undefined;
|
|
1477
1827
|
effectiveTo?: NativeDate | null | undefined;
|
|
1478
|
-
},
|
|
1479
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1828
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
1480
1829
|
amount: number;
|
|
1830
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1481
1831
|
isPercentage: boolean;
|
|
1482
1832
|
taxable: boolean;
|
|
1483
1833
|
recurring: boolean;
|
|
@@ -1487,11 +1837,11 @@ declare const _default: {
|
|
|
1487
1837
|
effectiveTo?: NativeDate | null | undefined;
|
|
1488
1838
|
}, {
|
|
1489
1839
|
id: string;
|
|
1490
|
-
},
|
|
1840
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1491
1841
|
_id: false;
|
|
1492
1842
|
}>> & Omit<{
|
|
1493
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1494
1843
|
amount: number;
|
|
1844
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1495
1845
|
isPercentage: boolean;
|
|
1496
1846
|
taxable: boolean;
|
|
1497
1847
|
recurring: boolean;
|
|
@@ -1500,17 +1850,17 @@ declare const _default: {
|
|
|
1500
1850
|
value?: number | null | undefined;
|
|
1501
1851
|
effectiveTo?: NativeDate | null | undefined;
|
|
1502
1852
|
} & {
|
|
1503
|
-
_id:
|
|
1853
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1504
1854
|
} & {
|
|
1505
1855
|
__v: number;
|
|
1506
1856
|
}, "id"> & {
|
|
1507
1857
|
id: string;
|
|
1508
1858
|
}, {
|
|
1509
|
-
[path: string]:
|
|
1859
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
1510
1860
|
} | {
|
|
1511
|
-
[x: string]:
|
|
1512
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1861
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
1513
1862
|
amount: number;
|
|
1863
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1514
1864
|
isPercentage: boolean;
|
|
1515
1865
|
taxable: boolean;
|
|
1516
1866
|
recurring: boolean;
|
|
@@ -1520,11 +1870,11 @@ declare const _default: {
|
|
|
1520
1870
|
effectiveTo?: NativeDate | null | undefined;
|
|
1521
1871
|
}, {
|
|
1522
1872
|
id: string;
|
|
1523
|
-
},
|
|
1873
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1524
1874
|
_id: false;
|
|
1525
1875
|
}>> & Omit<{
|
|
1526
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1527
1876
|
amount: number;
|
|
1877
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1528
1878
|
isPercentage: boolean;
|
|
1529
1879
|
taxable: boolean;
|
|
1530
1880
|
recurring: boolean;
|
|
@@ -1533,15 +1883,15 @@ declare const _default: {
|
|
|
1533
1883
|
value?: number | null | undefined;
|
|
1534
1884
|
effectiveTo?: NativeDate | null | undefined;
|
|
1535
1885
|
} & {
|
|
1536
|
-
_id:
|
|
1886
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1537
1887
|
} & {
|
|
1538
1888
|
__v: number;
|
|
1539
1889
|
}, "id"> & {
|
|
1540
1890
|
id: string;
|
|
1541
1891
|
}> | undefined;
|
|
1542
1892
|
}, {
|
|
1543
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1544
1893
|
amount: number;
|
|
1894
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1545
1895
|
isPercentage: boolean;
|
|
1546
1896
|
taxable: boolean;
|
|
1547
1897
|
recurring: boolean;
|
|
@@ -1550,117 +1900,113 @@ declare const _default: {
|
|
|
1550
1900
|
value?: number | null | undefined;
|
|
1551
1901
|
effectiveTo?: NativeDate | null | undefined;
|
|
1552
1902
|
} & {
|
|
1553
|
-
_id:
|
|
1903
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1554
1904
|
} & {
|
|
1555
1905
|
__v: number;
|
|
1556
1906
|
}>;
|
|
1557
|
-
deductionSchema:
|
|
1907
|
+
deductionSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1558
1908
|
_id: false;
|
|
1559
1909
|
}, {
|
|
1560
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1561
1910
|
amount: number;
|
|
1911
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1912
|
+
auto: boolean;
|
|
1562
1913
|
isPercentage: boolean;
|
|
1563
1914
|
recurring: boolean;
|
|
1564
1915
|
effectiveFrom: NativeDate;
|
|
1565
|
-
auto: boolean;
|
|
1566
1916
|
name?: string | null | undefined;
|
|
1917
|
+
description?: string | null | undefined;
|
|
1567
1918
|
value?: number | null | undefined;
|
|
1568
1919
|
effectiveTo?: NativeDate | null | undefined;
|
|
1569
|
-
|
|
1570
|
-
}, mongoose.Document<unknown, {}, {
|
|
1571
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1920
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
1572
1921
|
amount: number;
|
|
1922
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1923
|
+
auto: boolean;
|
|
1573
1924
|
isPercentage: boolean;
|
|
1574
1925
|
recurring: boolean;
|
|
1575
1926
|
effectiveFrom: NativeDate;
|
|
1576
|
-
auto: boolean;
|
|
1577
1927
|
name?: string | null | undefined;
|
|
1928
|
+
description?: string | null | undefined;
|
|
1578
1929
|
value?: number | null | undefined;
|
|
1579
1930
|
effectiveTo?: NativeDate | null | undefined;
|
|
1580
|
-
description?: string | null | undefined;
|
|
1581
1931
|
}, {
|
|
1582
1932
|
id: string;
|
|
1583
|
-
},
|
|
1933
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1584
1934
|
_id: false;
|
|
1585
1935
|
}>> & Omit<{
|
|
1586
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1587
1936
|
amount: number;
|
|
1937
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1938
|
+
auto: boolean;
|
|
1588
1939
|
isPercentage: boolean;
|
|
1589
1940
|
recurring: boolean;
|
|
1590
1941
|
effectiveFrom: NativeDate;
|
|
1591
|
-
auto: boolean;
|
|
1592
1942
|
name?: string | null | undefined;
|
|
1943
|
+
description?: string | null | undefined;
|
|
1593
1944
|
value?: number | null | undefined;
|
|
1594
1945
|
effectiveTo?: NativeDate | null | undefined;
|
|
1595
|
-
description?: string | null | undefined;
|
|
1596
1946
|
} & {
|
|
1597
|
-
_id:
|
|
1947
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1598
1948
|
} & {
|
|
1599
1949
|
__v: number;
|
|
1600
1950
|
}, "id"> & {
|
|
1601
1951
|
id: string;
|
|
1602
1952
|
}, {
|
|
1603
|
-
[path: string]:
|
|
1953
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
1604
1954
|
} | {
|
|
1605
|
-
[x: string]:
|
|
1606
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1955
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
1607
1956
|
amount: number;
|
|
1957
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1958
|
+
auto: boolean;
|
|
1608
1959
|
isPercentage: boolean;
|
|
1609
1960
|
recurring: boolean;
|
|
1610
1961
|
effectiveFrom: NativeDate;
|
|
1611
|
-
auto: boolean;
|
|
1612
1962
|
name?: string | null | undefined;
|
|
1963
|
+
description?: string | null | undefined;
|
|
1613
1964
|
value?: number | null | undefined;
|
|
1614
1965
|
effectiveTo?: NativeDate | null | undefined;
|
|
1615
|
-
description?: string | null | undefined;
|
|
1616
1966
|
}, {
|
|
1617
1967
|
id: string;
|
|
1618
|
-
},
|
|
1968
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1619
1969
|
_id: false;
|
|
1620
1970
|
}>> & Omit<{
|
|
1621
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1622
1971
|
amount: number;
|
|
1972
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1973
|
+
auto: boolean;
|
|
1623
1974
|
isPercentage: boolean;
|
|
1624
1975
|
recurring: boolean;
|
|
1625
1976
|
effectiveFrom: NativeDate;
|
|
1626
|
-
auto: boolean;
|
|
1627
1977
|
name?: string | null | undefined;
|
|
1978
|
+
description?: string | null | undefined;
|
|
1628
1979
|
value?: number | null | undefined;
|
|
1629
1980
|
effectiveTo?: NativeDate | null | undefined;
|
|
1630
|
-
description?: string | null | undefined;
|
|
1631
1981
|
} & {
|
|
1632
|
-
_id:
|
|
1982
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1633
1983
|
} & {
|
|
1634
1984
|
__v: number;
|
|
1635
1985
|
}, "id"> & {
|
|
1636
1986
|
id: string;
|
|
1637
1987
|
}> | undefined;
|
|
1638
1988
|
}, {
|
|
1639
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1640
1989
|
amount: number;
|
|
1990
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1991
|
+
auto: boolean;
|
|
1641
1992
|
isPercentage: boolean;
|
|
1642
1993
|
recurring: boolean;
|
|
1643
1994
|
effectiveFrom: NativeDate;
|
|
1644
|
-
auto: boolean;
|
|
1645
1995
|
name?: string | null | undefined;
|
|
1996
|
+
description?: string | null | undefined;
|
|
1646
1997
|
value?: number | null | undefined;
|
|
1647
1998
|
effectiveTo?: NativeDate | null | undefined;
|
|
1648
|
-
description?: string | null | undefined;
|
|
1649
1999
|
} & {
|
|
1650
|
-
_id:
|
|
2000
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1651
2001
|
} & {
|
|
1652
2002
|
__v: number;
|
|
1653
2003
|
}>;
|
|
1654
|
-
compensationSchema:
|
|
2004
|
+
compensationSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1655
2005
|
_id: false;
|
|
1656
2006
|
}, {
|
|
1657
|
-
|
|
1658
|
-
baseAmount: number;
|
|
1659
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1660
|
-
currency: string;
|
|
1661
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
1662
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2007
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1663
2008
|
amount: number;
|
|
2009
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1664
2010
|
isPercentage: boolean;
|
|
1665
2011
|
taxable: boolean;
|
|
1666
2012
|
recurring: boolean;
|
|
@@ -1668,9 +2014,9 @@ declare const _default: {
|
|
|
1668
2014
|
name?: string | null | undefined;
|
|
1669
2015
|
value?: number | null | undefined;
|
|
1670
2016
|
effectiveTo?: NativeDate | null | undefined;
|
|
1671
|
-
},
|
|
1672
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2017
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1673
2018
|
amount: number;
|
|
2019
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1674
2020
|
isPercentage: boolean;
|
|
1675
2021
|
taxable: boolean;
|
|
1676
2022
|
recurring: boolean;
|
|
@@ -1679,8 +2025,8 @@ declare const _default: {
|
|
|
1679
2025
|
value?: number | null | undefined;
|
|
1680
2026
|
effectiveTo?: NativeDate | null | undefined;
|
|
1681
2027
|
}> & {
|
|
1682
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1683
2028
|
amount: number;
|
|
2029
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1684
2030
|
isPercentage: boolean;
|
|
1685
2031
|
taxable: boolean;
|
|
1686
2032
|
recurring: boolean;
|
|
@@ -1689,51 +2035,51 @@ declare const _default: {
|
|
|
1689
2035
|
value?: number | null | undefined;
|
|
1690
2036
|
effectiveTo?: NativeDate | null | undefined;
|
|
1691
2037
|
}>;
|
|
1692
|
-
deductions:
|
|
1693
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2038
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1694
2039
|
amount: number;
|
|
2040
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2041
|
+
auto: boolean;
|
|
1695
2042
|
isPercentage: boolean;
|
|
1696
2043
|
recurring: boolean;
|
|
1697
2044
|
effectiveFrom: NativeDate;
|
|
1698
|
-
auto: boolean;
|
|
1699
2045
|
name?: string | null | undefined;
|
|
2046
|
+
description?: string | null | undefined;
|
|
1700
2047
|
value?: number | null | undefined;
|
|
1701
2048
|
effectiveTo?: NativeDate | null | undefined;
|
|
1702
|
-
|
|
1703
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1704
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2049
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1705
2050
|
amount: number;
|
|
2051
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2052
|
+
auto: boolean;
|
|
1706
2053
|
isPercentage: boolean;
|
|
1707
2054
|
recurring: boolean;
|
|
1708
2055
|
effectiveFrom: NativeDate;
|
|
1709
|
-
auto: boolean;
|
|
1710
2056
|
name?: string | null | undefined;
|
|
2057
|
+
description?: string | null | undefined;
|
|
1711
2058
|
value?: number | null | undefined;
|
|
1712
2059
|
effectiveTo?: NativeDate | null | undefined;
|
|
1713
|
-
description?: string | null | undefined;
|
|
1714
2060
|
}> & {
|
|
1715
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1716
2061
|
amount: number;
|
|
2062
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2063
|
+
auto: boolean;
|
|
1717
2064
|
isPercentage: boolean;
|
|
1718
2065
|
recurring: boolean;
|
|
1719
2066
|
effectiveFrom: NativeDate;
|
|
1720
|
-
auto: boolean;
|
|
1721
2067
|
name?: string | null | undefined;
|
|
1722
|
-
value?: number | null | undefined;
|
|
1723
|
-
effectiveTo?: NativeDate | null | undefined;
|
|
1724
2068
|
description?: string | null | undefined;
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
lastModified: NativeDate;
|
|
1729
|
-
}, mongoose.Document<unknown, {}, {
|
|
2069
|
+
value?: number | null | undefined;
|
|
2070
|
+
effectiveTo?: NativeDate | null | undefined;
|
|
2071
|
+
}>;
|
|
1730
2072
|
effectiveFrom: NativeDate;
|
|
1731
2073
|
baseAmount: number;
|
|
1732
2074
|
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1733
2075
|
currency: string;
|
|
1734
|
-
|
|
1735
|
-
|
|
2076
|
+
grossSalary: number;
|
|
2077
|
+
netSalary: number;
|
|
2078
|
+
lastModified: NativeDate;
|
|
2079
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2080
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1736
2081
|
amount: number;
|
|
2082
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1737
2083
|
isPercentage: boolean;
|
|
1738
2084
|
taxable: boolean;
|
|
1739
2085
|
recurring: boolean;
|
|
@@ -1741,9 +2087,9 @@ declare const _default: {
|
|
|
1741
2087
|
name?: string | null | undefined;
|
|
1742
2088
|
value?: number | null | undefined;
|
|
1743
2089
|
effectiveTo?: NativeDate | null | undefined;
|
|
1744
|
-
},
|
|
1745
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2090
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1746
2091
|
amount: number;
|
|
2092
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1747
2093
|
isPercentage: boolean;
|
|
1748
2094
|
taxable: boolean;
|
|
1749
2095
|
recurring: boolean;
|
|
@@ -1752,8 +2098,8 @@ declare const _default: {
|
|
|
1752
2098
|
value?: number | null | undefined;
|
|
1753
2099
|
effectiveTo?: NativeDate | null | undefined;
|
|
1754
2100
|
}> & {
|
|
1755
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1756
2101
|
amount: number;
|
|
2102
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1757
2103
|
isPercentage: boolean;
|
|
1758
2104
|
taxable: boolean;
|
|
1759
2105
|
recurring: boolean;
|
|
@@ -1762,55 +2108,55 @@ declare const _default: {
|
|
|
1762
2108
|
value?: number | null | undefined;
|
|
1763
2109
|
effectiveTo?: NativeDate | null | undefined;
|
|
1764
2110
|
}>;
|
|
1765
|
-
deductions:
|
|
1766
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2111
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1767
2112
|
amount: number;
|
|
2113
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2114
|
+
auto: boolean;
|
|
1768
2115
|
isPercentage: boolean;
|
|
1769
2116
|
recurring: boolean;
|
|
1770
2117
|
effectiveFrom: NativeDate;
|
|
1771
|
-
auto: boolean;
|
|
1772
2118
|
name?: string | null | undefined;
|
|
2119
|
+
description?: string | null | undefined;
|
|
1773
2120
|
value?: number | null | undefined;
|
|
1774
2121
|
effectiveTo?: NativeDate | null | undefined;
|
|
1775
|
-
|
|
1776
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1777
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2122
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1778
2123
|
amount: number;
|
|
2124
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2125
|
+
auto: boolean;
|
|
1779
2126
|
isPercentage: boolean;
|
|
1780
2127
|
recurring: boolean;
|
|
1781
2128
|
effectiveFrom: NativeDate;
|
|
1782
|
-
auto: boolean;
|
|
1783
2129
|
name?: string | null | undefined;
|
|
2130
|
+
description?: string | null | undefined;
|
|
1784
2131
|
value?: number | null | undefined;
|
|
1785
2132
|
effectiveTo?: NativeDate | null | undefined;
|
|
1786
|
-
description?: string | null | undefined;
|
|
1787
2133
|
}> & {
|
|
1788
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1789
2134
|
amount: number;
|
|
2135
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2136
|
+
auto: boolean;
|
|
1790
2137
|
isPercentage: boolean;
|
|
1791
2138
|
recurring: boolean;
|
|
1792
2139
|
effectiveFrom: NativeDate;
|
|
1793
|
-
auto: boolean;
|
|
1794
2140
|
name?: string | null | undefined;
|
|
2141
|
+
description?: string | null | undefined;
|
|
1795
2142
|
value?: number | null | undefined;
|
|
1796
2143
|
effectiveTo?: NativeDate | null | undefined;
|
|
1797
|
-
description?: string | null | undefined;
|
|
1798
2144
|
}>;
|
|
2145
|
+
effectiveFrom: NativeDate;
|
|
2146
|
+
baseAmount: number;
|
|
2147
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2148
|
+
currency: string;
|
|
1799
2149
|
grossSalary: number;
|
|
1800
2150
|
netSalary: number;
|
|
1801
2151
|
lastModified: NativeDate;
|
|
1802
2152
|
}, {
|
|
1803
2153
|
id: string;
|
|
1804
|
-
},
|
|
2154
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1805
2155
|
_id: false;
|
|
1806
2156
|
}>> & Omit<{
|
|
1807
|
-
|
|
1808
|
-
baseAmount: number;
|
|
1809
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1810
|
-
currency: string;
|
|
1811
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
1812
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2157
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1813
2158
|
amount: number;
|
|
2159
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1814
2160
|
isPercentage: boolean;
|
|
1815
2161
|
taxable: boolean;
|
|
1816
2162
|
recurring: boolean;
|
|
@@ -1818,9 +2164,9 @@ declare const _default: {
|
|
|
1818
2164
|
name?: string | null | undefined;
|
|
1819
2165
|
value?: number | null | undefined;
|
|
1820
2166
|
effectiveTo?: NativeDate | null | undefined;
|
|
1821
|
-
},
|
|
1822
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2167
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1823
2168
|
amount: number;
|
|
2169
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1824
2170
|
isPercentage: boolean;
|
|
1825
2171
|
taxable: boolean;
|
|
1826
2172
|
recurring: boolean;
|
|
@@ -1829,8 +2175,8 @@ declare const _default: {
|
|
|
1829
2175
|
value?: number | null | undefined;
|
|
1830
2176
|
effectiveTo?: NativeDate | null | undefined;
|
|
1831
2177
|
}> & {
|
|
1832
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1833
2178
|
amount: number;
|
|
2179
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1834
2180
|
isPercentage: boolean;
|
|
1835
2181
|
taxable: boolean;
|
|
1836
2182
|
recurring: boolean;
|
|
@@ -1839,60 +2185,60 @@ declare const _default: {
|
|
|
1839
2185
|
value?: number | null | undefined;
|
|
1840
2186
|
effectiveTo?: NativeDate | null | undefined;
|
|
1841
2187
|
}>;
|
|
1842
|
-
deductions:
|
|
1843
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2188
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1844
2189
|
amount: number;
|
|
2190
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2191
|
+
auto: boolean;
|
|
1845
2192
|
isPercentage: boolean;
|
|
1846
2193
|
recurring: boolean;
|
|
1847
2194
|
effectiveFrom: NativeDate;
|
|
1848
|
-
auto: boolean;
|
|
1849
2195
|
name?: string | null | undefined;
|
|
2196
|
+
description?: string | null | undefined;
|
|
1850
2197
|
value?: number | null | undefined;
|
|
1851
2198
|
effectiveTo?: NativeDate | null | undefined;
|
|
1852
|
-
|
|
1853
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1854
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2199
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1855
2200
|
amount: number;
|
|
2201
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2202
|
+
auto: boolean;
|
|
1856
2203
|
isPercentage: boolean;
|
|
1857
2204
|
recurring: boolean;
|
|
1858
2205
|
effectiveFrom: NativeDate;
|
|
1859
|
-
auto: boolean;
|
|
1860
2206
|
name?: string | null | undefined;
|
|
2207
|
+
description?: string | null | undefined;
|
|
1861
2208
|
value?: number | null | undefined;
|
|
1862
2209
|
effectiveTo?: NativeDate | null | undefined;
|
|
1863
|
-
description?: string | null | undefined;
|
|
1864
2210
|
}> & {
|
|
1865
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1866
2211
|
amount: number;
|
|
2212
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2213
|
+
auto: boolean;
|
|
1867
2214
|
isPercentage: boolean;
|
|
1868
2215
|
recurring: boolean;
|
|
1869
2216
|
effectiveFrom: NativeDate;
|
|
1870
|
-
auto: boolean;
|
|
1871
2217
|
name?: string | null | undefined;
|
|
2218
|
+
description?: string | null | undefined;
|
|
1872
2219
|
value?: number | null | undefined;
|
|
1873
2220
|
effectiveTo?: NativeDate | null | undefined;
|
|
1874
|
-
description?: string | null | undefined;
|
|
1875
2221
|
}>;
|
|
2222
|
+
effectiveFrom: NativeDate;
|
|
2223
|
+
baseAmount: number;
|
|
2224
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2225
|
+
currency: string;
|
|
1876
2226
|
grossSalary: number;
|
|
1877
2227
|
netSalary: number;
|
|
1878
2228
|
lastModified: NativeDate;
|
|
1879
2229
|
} & {
|
|
1880
|
-
_id:
|
|
2230
|
+
_id: mongoose__default.Types.ObjectId;
|
|
1881
2231
|
} & {
|
|
1882
2232
|
__v: number;
|
|
1883
2233
|
}, "id"> & {
|
|
1884
2234
|
id: string;
|
|
1885
2235
|
}, {
|
|
1886
|
-
[path: string]:
|
|
2236
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
1887
2237
|
} | {
|
|
1888
|
-
[x: string]:
|
|
1889
|
-
|
|
1890
|
-
baseAmount: number;
|
|
1891
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1892
|
-
currency: string;
|
|
1893
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
1894
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2238
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2239
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1895
2240
|
amount: number;
|
|
2241
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1896
2242
|
isPercentage: boolean;
|
|
1897
2243
|
taxable: boolean;
|
|
1898
2244
|
recurring: boolean;
|
|
@@ -1900,9 +2246,9 @@ declare const _default: {
|
|
|
1900
2246
|
name?: string | null | undefined;
|
|
1901
2247
|
value?: number | null | undefined;
|
|
1902
2248
|
effectiveTo?: NativeDate | null | undefined;
|
|
1903
|
-
},
|
|
1904
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2249
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1905
2250
|
amount: number;
|
|
2251
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1906
2252
|
isPercentage: boolean;
|
|
1907
2253
|
taxable: boolean;
|
|
1908
2254
|
recurring: boolean;
|
|
@@ -1911,8 +2257,8 @@ declare const _default: {
|
|
|
1911
2257
|
value?: number | null | undefined;
|
|
1912
2258
|
effectiveTo?: NativeDate | null | undefined;
|
|
1913
2259
|
}> & {
|
|
1914
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1915
2260
|
amount: number;
|
|
2261
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1916
2262
|
isPercentage: boolean;
|
|
1917
2263
|
taxable: boolean;
|
|
1918
2264
|
recurring: boolean;
|
|
@@ -1921,55 +2267,55 @@ declare const _default: {
|
|
|
1921
2267
|
value?: number | null | undefined;
|
|
1922
2268
|
effectiveTo?: NativeDate | null | undefined;
|
|
1923
2269
|
}>;
|
|
1924
|
-
deductions:
|
|
1925
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2270
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
1926
2271
|
amount: number;
|
|
2272
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2273
|
+
auto: boolean;
|
|
1927
2274
|
isPercentage: boolean;
|
|
1928
2275
|
recurring: boolean;
|
|
1929
2276
|
effectiveFrom: NativeDate;
|
|
1930
|
-
auto: boolean;
|
|
1931
2277
|
name?: string | null | undefined;
|
|
2278
|
+
description?: string | null | undefined;
|
|
1932
2279
|
value?: number | null | undefined;
|
|
1933
2280
|
effectiveTo?: NativeDate | null | undefined;
|
|
1934
|
-
|
|
1935
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1936
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2281
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1937
2282
|
amount: number;
|
|
2283
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2284
|
+
auto: boolean;
|
|
1938
2285
|
isPercentage: boolean;
|
|
1939
2286
|
recurring: boolean;
|
|
1940
2287
|
effectiveFrom: NativeDate;
|
|
1941
|
-
auto: boolean;
|
|
1942
2288
|
name?: string | null | undefined;
|
|
2289
|
+
description?: string | null | undefined;
|
|
1943
2290
|
value?: number | null | undefined;
|
|
1944
2291
|
effectiveTo?: NativeDate | null | undefined;
|
|
1945
|
-
description?: string | null | undefined;
|
|
1946
2292
|
}> & {
|
|
1947
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
1948
2293
|
amount: number;
|
|
2294
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2295
|
+
auto: boolean;
|
|
1949
2296
|
isPercentage: boolean;
|
|
1950
2297
|
recurring: boolean;
|
|
1951
2298
|
effectiveFrom: NativeDate;
|
|
1952
|
-
auto: boolean;
|
|
1953
2299
|
name?: string | null | undefined;
|
|
2300
|
+
description?: string | null | undefined;
|
|
1954
2301
|
value?: number | null | undefined;
|
|
1955
2302
|
effectiveTo?: NativeDate | null | undefined;
|
|
1956
|
-
description?: string | null | undefined;
|
|
1957
2303
|
}>;
|
|
2304
|
+
effectiveFrom: NativeDate;
|
|
2305
|
+
baseAmount: number;
|
|
2306
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2307
|
+
currency: string;
|
|
1958
2308
|
grossSalary: number;
|
|
1959
2309
|
netSalary: number;
|
|
1960
2310
|
lastModified: NativeDate;
|
|
1961
2311
|
}, {
|
|
1962
2312
|
id: string;
|
|
1963
|
-
},
|
|
2313
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
1964
2314
|
_id: false;
|
|
1965
2315
|
}>> & Omit<{
|
|
1966
|
-
|
|
1967
|
-
baseAmount: number;
|
|
1968
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
1969
|
-
currency: string;
|
|
1970
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
1971
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2316
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
1972
2317
|
amount: number;
|
|
2318
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1973
2319
|
isPercentage: boolean;
|
|
1974
2320
|
taxable: boolean;
|
|
1975
2321
|
recurring: boolean;
|
|
@@ -1977,9 +2323,9 @@ declare const _default: {
|
|
|
1977
2323
|
name?: string | null | undefined;
|
|
1978
2324
|
value?: number | null | undefined;
|
|
1979
2325
|
effectiveTo?: NativeDate | null | undefined;
|
|
1980
|
-
},
|
|
1981
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2326
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
1982
2327
|
amount: number;
|
|
2328
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1983
2329
|
isPercentage: boolean;
|
|
1984
2330
|
taxable: boolean;
|
|
1985
2331
|
recurring: boolean;
|
|
@@ -1988,8 +2334,8 @@ declare const _default: {
|
|
|
1988
2334
|
value?: number | null | undefined;
|
|
1989
2335
|
effectiveTo?: NativeDate | null | undefined;
|
|
1990
2336
|
}> & {
|
|
1991
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1992
2337
|
amount: number;
|
|
2338
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
1993
2339
|
isPercentage: boolean;
|
|
1994
2340
|
taxable: boolean;
|
|
1995
2341
|
recurring: boolean;
|
|
@@ -1998,58 +2344,58 @@ declare const _default: {
|
|
|
1998
2344
|
value?: number | null | undefined;
|
|
1999
2345
|
effectiveTo?: NativeDate | null | undefined;
|
|
2000
2346
|
}>;
|
|
2001
|
-
deductions:
|
|
2002
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2347
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2003
2348
|
amount: number;
|
|
2349
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2350
|
+
auto: boolean;
|
|
2004
2351
|
isPercentage: boolean;
|
|
2005
2352
|
recurring: boolean;
|
|
2006
2353
|
effectiveFrom: NativeDate;
|
|
2007
|
-
auto: boolean;
|
|
2008
2354
|
name?: string | null | undefined;
|
|
2355
|
+
description?: string | null | undefined;
|
|
2009
2356
|
value?: number | null | undefined;
|
|
2010
2357
|
effectiveTo?: NativeDate | null | undefined;
|
|
2011
|
-
|
|
2012
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
2013
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2358
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2014
2359
|
amount: number;
|
|
2360
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2361
|
+
auto: boolean;
|
|
2015
2362
|
isPercentage: boolean;
|
|
2016
2363
|
recurring: boolean;
|
|
2017
2364
|
effectiveFrom: NativeDate;
|
|
2018
|
-
auto: boolean;
|
|
2019
2365
|
name?: string | null | undefined;
|
|
2366
|
+
description?: string | null | undefined;
|
|
2020
2367
|
value?: number | null | undefined;
|
|
2021
2368
|
effectiveTo?: NativeDate | null | undefined;
|
|
2022
|
-
description?: string | null | undefined;
|
|
2023
2369
|
}> & {
|
|
2024
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2025
2370
|
amount: number;
|
|
2371
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2372
|
+
auto: boolean;
|
|
2026
2373
|
isPercentage: boolean;
|
|
2027
2374
|
recurring: boolean;
|
|
2028
2375
|
effectiveFrom: NativeDate;
|
|
2029
|
-
auto: boolean;
|
|
2030
2376
|
name?: string | null | undefined;
|
|
2377
|
+
description?: string | null | undefined;
|
|
2031
2378
|
value?: number | null | undefined;
|
|
2032
2379
|
effectiveTo?: NativeDate | null | undefined;
|
|
2033
|
-
description?: string | null | undefined;
|
|
2034
2380
|
}>;
|
|
2381
|
+
effectiveFrom: NativeDate;
|
|
2382
|
+
baseAmount: number;
|
|
2383
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2384
|
+
currency: string;
|
|
2035
2385
|
grossSalary: number;
|
|
2036
2386
|
netSalary: number;
|
|
2037
2387
|
lastModified: NativeDate;
|
|
2038
2388
|
} & {
|
|
2039
|
-
_id:
|
|
2389
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2040
2390
|
} & {
|
|
2041
2391
|
__v: number;
|
|
2042
2392
|
}, "id"> & {
|
|
2043
2393
|
id: string;
|
|
2044
2394
|
}> | undefined;
|
|
2045
2395
|
}, {
|
|
2046
|
-
|
|
2047
|
-
baseAmount: number;
|
|
2048
|
-
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2049
|
-
currency: string;
|
|
2050
|
-
allowances: mongoose.Types.DocumentArray<{
|
|
2051
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2396
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2052
2397
|
amount: number;
|
|
2398
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2053
2399
|
isPercentage: boolean;
|
|
2054
2400
|
taxable: boolean;
|
|
2055
2401
|
recurring: boolean;
|
|
@@ -2057,9 +2403,9 @@ declare const _default: {
|
|
|
2057
2403
|
name?: string | null | undefined;
|
|
2058
2404
|
value?: number | null | undefined;
|
|
2059
2405
|
effectiveTo?: NativeDate | null | undefined;
|
|
2060
|
-
},
|
|
2061
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2406
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2062
2407
|
amount: number;
|
|
2408
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2063
2409
|
isPercentage: boolean;
|
|
2064
2410
|
taxable: boolean;
|
|
2065
2411
|
recurring: boolean;
|
|
@@ -2068,8 +2414,8 @@ declare const _default: {
|
|
|
2068
2414
|
value?: number | null | undefined;
|
|
2069
2415
|
effectiveTo?: NativeDate | null | undefined;
|
|
2070
2416
|
}> & {
|
|
2071
|
-
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2072
2417
|
amount: number;
|
|
2418
|
+
type: "mobile" | "housing" | "transport" | "meal" | "medical" | "education" | "bonus" | "other";
|
|
2073
2419
|
isPercentage: boolean;
|
|
2074
2420
|
taxable: boolean;
|
|
2075
2421
|
recurring: boolean;
|
|
@@ -2078,99 +2424,103 @@ declare const _default: {
|
|
|
2078
2424
|
value?: number | null | undefined;
|
|
2079
2425
|
effectiveTo?: NativeDate | null | undefined;
|
|
2080
2426
|
}>;
|
|
2081
|
-
deductions:
|
|
2082
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2427
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2083
2428
|
amount: number;
|
|
2429
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2430
|
+
auto: boolean;
|
|
2084
2431
|
isPercentage: boolean;
|
|
2085
2432
|
recurring: boolean;
|
|
2086
2433
|
effectiveFrom: NativeDate;
|
|
2087
|
-
auto: boolean;
|
|
2088
2434
|
name?: string | null | undefined;
|
|
2435
|
+
description?: string | null | undefined;
|
|
2089
2436
|
value?: number | null | undefined;
|
|
2090
2437
|
effectiveTo?: NativeDate | null | undefined;
|
|
2091
|
-
|
|
2092
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
2093
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2438
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2094
2439
|
amount: number;
|
|
2440
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2441
|
+
auto: boolean;
|
|
2095
2442
|
isPercentage: boolean;
|
|
2096
2443
|
recurring: boolean;
|
|
2097
2444
|
effectiveFrom: NativeDate;
|
|
2098
|
-
auto: boolean;
|
|
2099
2445
|
name?: string | null | undefined;
|
|
2446
|
+
description?: string | null | undefined;
|
|
2100
2447
|
value?: number | null | undefined;
|
|
2101
2448
|
effectiveTo?: NativeDate | null | undefined;
|
|
2102
|
-
description?: string | null | undefined;
|
|
2103
2449
|
}> & {
|
|
2104
|
-
type: "other" | "tax" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2105
2450
|
amount: number;
|
|
2451
|
+
type: "tax" | "other" | "loan" | "advance" | "provident_fund" | "insurance" | "absence";
|
|
2452
|
+
auto: boolean;
|
|
2106
2453
|
isPercentage: boolean;
|
|
2107
2454
|
recurring: boolean;
|
|
2108
2455
|
effectiveFrom: NativeDate;
|
|
2109
|
-
auto: boolean;
|
|
2110
2456
|
name?: string | null | undefined;
|
|
2457
|
+
description?: string | null | undefined;
|
|
2111
2458
|
value?: number | null | undefined;
|
|
2112
2459
|
effectiveTo?: NativeDate | null | undefined;
|
|
2113
|
-
description?: string | null | undefined;
|
|
2114
2460
|
}>;
|
|
2461
|
+
effectiveFrom: NativeDate;
|
|
2462
|
+
baseAmount: number;
|
|
2463
|
+
frequency: "monthly" | "bi_weekly" | "weekly" | "hourly" | "daily";
|
|
2464
|
+
currency: string;
|
|
2115
2465
|
grossSalary: number;
|
|
2116
2466
|
netSalary: number;
|
|
2117
2467
|
lastModified: NativeDate;
|
|
2118
2468
|
} & {
|
|
2119
|
-
_id:
|
|
2469
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2120
2470
|
} & {
|
|
2121
2471
|
__v: number;
|
|
2122
2472
|
}>;
|
|
2123
|
-
workScheduleSchema:
|
|
2473
|
+
workScheduleSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2124
2474
|
_id: false;
|
|
2125
2475
|
}, {
|
|
2126
2476
|
workingDays: number[];
|
|
2127
|
-
hoursPerWeek?: number | null | undefined;
|
|
2128
2477
|
hoursPerDay?: number | null | undefined;
|
|
2478
|
+
hoursPerWeek?: number | null | undefined;
|
|
2129
2479
|
shiftStart?: string | null | undefined;
|
|
2130
2480
|
shiftEnd?: string | null | undefined;
|
|
2131
|
-
},
|
|
2481
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2132
2482
|
workingDays: number[];
|
|
2133
|
-
hoursPerWeek?: number | null | undefined;
|
|
2134
2483
|
hoursPerDay?: number | null | undefined;
|
|
2484
|
+
hoursPerWeek?: number | null | undefined;
|
|
2135
2485
|
shiftStart?: string | null | undefined;
|
|
2136
2486
|
shiftEnd?: string | null | undefined;
|
|
2137
2487
|
}, {
|
|
2138
2488
|
id: string;
|
|
2139
|
-
},
|
|
2489
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2140
2490
|
_id: false;
|
|
2141
2491
|
}>> & Omit<{
|
|
2142
2492
|
workingDays: number[];
|
|
2143
|
-
hoursPerWeek?: number | null | undefined;
|
|
2144
2493
|
hoursPerDay?: number | null | undefined;
|
|
2494
|
+
hoursPerWeek?: number | null | undefined;
|
|
2145
2495
|
shiftStart?: string | null | undefined;
|
|
2146
2496
|
shiftEnd?: string | null | undefined;
|
|
2147
2497
|
} & {
|
|
2148
|
-
_id:
|
|
2498
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2149
2499
|
} & {
|
|
2150
2500
|
__v: number;
|
|
2151
2501
|
}, "id"> & {
|
|
2152
2502
|
id: string;
|
|
2153
2503
|
}, {
|
|
2154
|
-
[path: string]:
|
|
2504
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2155
2505
|
} | {
|
|
2156
|
-
[x: string]:
|
|
2506
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2157
2507
|
workingDays: number[];
|
|
2158
|
-
hoursPerWeek?: number | null | undefined;
|
|
2159
2508
|
hoursPerDay?: number | null | undefined;
|
|
2509
|
+
hoursPerWeek?: number | null | undefined;
|
|
2160
2510
|
shiftStart?: string | null | undefined;
|
|
2161
2511
|
shiftEnd?: string | null | undefined;
|
|
2162
2512
|
}, {
|
|
2163
2513
|
id: string;
|
|
2164
|
-
},
|
|
2514
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2165
2515
|
_id: false;
|
|
2166
2516
|
}>> & Omit<{
|
|
2167
2517
|
workingDays: number[];
|
|
2168
|
-
hoursPerWeek?: number | null | undefined;
|
|
2169
2518
|
hoursPerDay?: number | null | undefined;
|
|
2519
|
+
hoursPerWeek?: number | null | undefined;
|
|
2170
2520
|
shiftStart?: string | null | undefined;
|
|
2171
2521
|
shiftEnd?: string | null | undefined;
|
|
2172
2522
|
} & {
|
|
2173
|
-
_id:
|
|
2523
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2174
2524
|
} & {
|
|
2175
2525
|
__v: number;
|
|
2176
2526
|
}, "id"> & {
|
|
@@ -2178,16 +2528,16 @@ declare const _default: {
|
|
|
2178
2528
|
}> | undefined;
|
|
2179
2529
|
}, {
|
|
2180
2530
|
workingDays: number[];
|
|
2181
|
-
hoursPerWeek?: number | null | undefined;
|
|
2182
2531
|
hoursPerDay?: number | null | undefined;
|
|
2532
|
+
hoursPerWeek?: number | null | undefined;
|
|
2183
2533
|
shiftStart?: string | null | undefined;
|
|
2184
2534
|
shiftEnd?: string | null | undefined;
|
|
2185
2535
|
} & {
|
|
2186
|
-
_id:
|
|
2536
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2187
2537
|
} & {
|
|
2188
2538
|
__v: number;
|
|
2189
2539
|
}>;
|
|
2190
|
-
bankDetailsSchema:
|
|
2540
|
+
bankDetailsSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2191
2541
|
_id: false;
|
|
2192
2542
|
}, {
|
|
2193
2543
|
accountName?: string | null | undefined;
|
|
@@ -2195,7 +2545,7 @@ declare const _default: {
|
|
|
2195
2545
|
bankName?: string | null | undefined;
|
|
2196
2546
|
branchName?: string | null | undefined;
|
|
2197
2547
|
routingNumber?: string | null | undefined;
|
|
2198
|
-
},
|
|
2548
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2199
2549
|
accountName?: string | null | undefined;
|
|
2200
2550
|
accountNumber?: string | null | undefined;
|
|
2201
2551
|
bankName?: string | null | undefined;
|
|
@@ -2203,7 +2553,7 @@ declare const _default: {
|
|
|
2203
2553
|
routingNumber?: string | null | undefined;
|
|
2204
2554
|
}, {
|
|
2205
2555
|
id: string;
|
|
2206
|
-
},
|
|
2556
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2207
2557
|
_id: false;
|
|
2208
2558
|
}>> & Omit<{
|
|
2209
2559
|
accountName?: string | null | undefined;
|
|
@@ -2212,15 +2562,15 @@ declare const _default: {
|
|
|
2212
2562
|
branchName?: string | null | undefined;
|
|
2213
2563
|
routingNumber?: string | null | undefined;
|
|
2214
2564
|
} & {
|
|
2215
|
-
_id:
|
|
2565
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2216
2566
|
} & {
|
|
2217
2567
|
__v: number;
|
|
2218
2568
|
}, "id"> & {
|
|
2219
2569
|
id: string;
|
|
2220
2570
|
}, {
|
|
2221
|
-
[path: string]:
|
|
2571
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2222
2572
|
} | {
|
|
2223
|
-
[x: string]:
|
|
2573
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2224
2574
|
accountName?: string | null | undefined;
|
|
2225
2575
|
accountNumber?: string | null | undefined;
|
|
2226
2576
|
bankName?: string | null | undefined;
|
|
@@ -2228,7 +2578,7 @@ declare const _default: {
|
|
|
2228
2578
|
routingNumber?: string | null | undefined;
|
|
2229
2579
|
}, {
|
|
2230
2580
|
id: string;
|
|
2231
|
-
},
|
|
2581
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2232
2582
|
_id: false;
|
|
2233
2583
|
}>> & Omit<{
|
|
2234
2584
|
accountName?: string | null | undefined;
|
|
@@ -2237,7 +2587,7 @@ declare const _default: {
|
|
|
2237
2587
|
branchName?: string | null | undefined;
|
|
2238
2588
|
routingNumber?: string | null | undefined;
|
|
2239
2589
|
} & {
|
|
2240
|
-
_id:
|
|
2590
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2241
2591
|
} & {
|
|
2242
2592
|
__v: number;
|
|
2243
2593
|
}, "id"> & {
|
|
@@ -2250,71 +2600,71 @@ declare const _default: {
|
|
|
2250
2600
|
branchName?: string | null | undefined;
|
|
2251
2601
|
routingNumber?: string | null | undefined;
|
|
2252
2602
|
} & {
|
|
2253
|
-
_id:
|
|
2603
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2254
2604
|
} & {
|
|
2255
2605
|
__v: number;
|
|
2256
2606
|
}>;
|
|
2257
|
-
employmentHistorySchema:
|
|
2607
|
+
employmentHistorySchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2258
2608
|
timestamps: true;
|
|
2259
2609
|
}, {
|
|
2260
2610
|
hireDate: NativeDate;
|
|
2261
2611
|
terminationDate: NativeDate;
|
|
2262
|
-
|
|
2612
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2263
2613
|
position?: string | null | undefined;
|
|
2264
|
-
|
|
2614
|
+
department?: string | null | undefined;
|
|
2265
2615
|
notes?: string | null | undefined;
|
|
2266
2616
|
finalSalary?: number | null | undefined;
|
|
2267
|
-
} &
|
|
2617
|
+
} & mongoose__default.DefaultTimestampProps, mongoose__default.Document<unknown, {}, {
|
|
2268
2618
|
hireDate: NativeDate;
|
|
2269
2619
|
terminationDate: NativeDate;
|
|
2270
|
-
|
|
2620
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2271
2621
|
position?: string | null | undefined;
|
|
2272
|
-
|
|
2622
|
+
department?: string | null | undefined;
|
|
2273
2623
|
notes?: string | null | undefined;
|
|
2274
2624
|
finalSalary?: number | null | undefined;
|
|
2275
|
-
} &
|
|
2625
|
+
} & mongoose__default.DefaultTimestampProps, {
|
|
2276
2626
|
id: string;
|
|
2277
|
-
},
|
|
2627
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2278
2628
|
timestamps: true;
|
|
2279
2629
|
}>> & Omit<{
|
|
2280
2630
|
hireDate: NativeDate;
|
|
2281
2631
|
terminationDate: NativeDate;
|
|
2282
|
-
|
|
2632
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2283
2633
|
position?: string | null | undefined;
|
|
2284
|
-
|
|
2634
|
+
department?: string | null | undefined;
|
|
2285
2635
|
notes?: string | null | undefined;
|
|
2286
2636
|
finalSalary?: number | null | undefined;
|
|
2287
|
-
} &
|
|
2288
|
-
_id:
|
|
2637
|
+
} & mongoose__default.DefaultTimestampProps & {
|
|
2638
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2289
2639
|
} & {
|
|
2290
2640
|
__v: number;
|
|
2291
2641
|
}, "id"> & {
|
|
2292
2642
|
id: string;
|
|
2293
2643
|
}, {
|
|
2294
|
-
[path: string]:
|
|
2644
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2295
2645
|
} | {
|
|
2296
|
-
[x: string]:
|
|
2646
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2297
2647
|
hireDate: NativeDate;
|
|
2298
2648
|
terminationDate: NativeDate;
|
|
2299
|
-
|
|
2649
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2300
2650
|
position?: string | null | undefined;
|
|
2301
|
-
|
|
2651
|
+
department?: string | null | undefined;
|
|
2302
2652
|
notes?: string | null | undefined;
|
|
2303
2653
|
finalSalary?: number | null | undefined;
|
|
2304
|
-
} &
|
|
2654
|
+
} & mongoose__default.DefaultTimestampProps, {
|
|
2305
2655
|
id: string;
|
|
2306
|
-
},
|
|
2656
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2307
2657
|
timestamps: true;
|
|
2308
2658
|
}>> & Omit<{
|
|
2309
2659
|
hireDate: NativeDate;
|
|
2310
2660
|
terminationDate: NativeDate;
|
|
2311
|
-
|
|
2661
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2312
2662
|
position?: string | null | undefined;
|
|
2313
|
-
|
|
2663
|
+
department?: string | null | undefined;
|
|
2314
2664
|
notes?: string | null | undefined;
|
|
2315
2665
|
finalSalary?: number | null | undefined;
|
|
2316
|
-
} &
|
|
2317
|
-
_id:
|
|
2666
|
+
} & mongoose__default.DefaultTimestampProps & {
|
|
2667
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2318
2668
|
} & {
|
|
2319
2669
|
__v: number;
|
|
2320
2670
|
}, "id"> & {
|
|
@@ -2323,19 +2673,19 @@ declare const _default: {
|
|
|
2323
2673
|
}, {
|
|
2324
2674
|
hireDate: NativeDate;
|
|
2325
2675
|
terminationDate: NativeDate;
|
|
2326
|
-
|
|
2676
|
+
reason?: "termination" | "other" | "resignation" | "retirement" | "contract_end" | "mutual_agreement" | null | undefined;
|
|
2327
2677
|
position?: string | null | undefined;
|
|
2328
|
-
|
|
2678
|
+
department?: string | null | undefined;
|
|
2329
2679
|
notes?: string | null | undefined;
|
|
2330
2680
|
finalSalary?: number | null | undefined;
|
|
2331
2681
|
createdAt: NativeDate;
|
|
2332
2682
|
updatedAt: NativeDate;
|
|
2333
2683
|
} & {
|
|
2334
|
-
_id:
|
|
2684
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2335
2685
|
} & {
|
|
2336
2686
|
__v: number;
|
|
2337
2687
|
}>;
|
|
2338
|
-
payrollStatsSchema:
|
|
2688
|
+
payrollStatsSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2339
2689
|
_id: false;
|
|
2340
2690
|
}, {
|
|
2341
2691
|
updatedAt: NativeDate;
|
|
@@ -2344,7 +2694,7 @@ declare const _default: {
|
|
|
2344
2694
|
averageMonthly: number;
|
|
2345
2695
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
2346
2696
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2347
|
-
},
|
|
2697
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2348
2698
|
updatedAt: NativeDate;
|
|
2349
2699
|
totalPaid: number;
|
|
2350
2700
|
paymentsThisYear: number;
|
|
@@ -2353,7 +2703,7 @@ declare const _default: {
|
|
|
2353
2703
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2354
2704
|
}, {
|
|
2355
2705
|
id: string;
|
|
2356
|
-
},
|
|
2706
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2357
2707
|
_id: false;
|
|
2358
2708
|
}>> & Omit<{
|
|
2359
2709
|
updatedAt: NativeDate;
|
|
@@ -2363,15 +2713,15 @@ declare const _default: {
|
|
|
2363
2713
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
2364
2714
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2365
2715
|
} & {
|
|
2366
|
-
_id:
|
|
2716
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2367
2717
|
} & {
|
|
2368
2718
|
__v: number;
|
|
2369
2719
|
}, "id"> & {
|
|
2370
2720
|
id: string;
|
|
2371
2721
|
}, {
|
|
2372
|
-
[path: string]:
|
|
2722
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2373
2723
|
} | {
|
|
2374
|
-
[x: string]:
|
|
2724
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2375
2725
|
updatedAt: NativeDate;
|
|
2376
2726
|
totalPaid: number;
|
|
2377
2727
|
paymentsThisYear: number;
|
|
@@ -2380,7 +2730,7 @@ declare const _default: {
|
|
|
2380
2730
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2381
2731
|
}, {
|
|
2382
2732
|
id: string;
|
|
2383
|
-
},
|
|
2733
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2384
2734
|
_id: false;
|
|
2385
2735
|
}>> & Omit<{
|
|
2386
2736
|
updatedAt: NativeDate;
|
|
@@ -2390,7 +2740,7 @@ declare const _default: {
|
|
|
2390
2740
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
2391
2741
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2392
2742
|
} & {
|
|
2393
|
-
_id:
|
|
2743
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2394
2744
|
} & {
|
|
2395
2745
|
__v: number;
|
|
2396
2746
|
}, "id"> & {
|
|
@@ -2404,258 +2754,270 @@ declare const _default: {
|
|
|
2404
2754
|
lastPaymentDate?: NativeDate | null | undefined;
|
|
2405
2755
|
nextPaymentDate?: NativeDate | null | undefined;
|
|
2406
2756
|
} & {
|
|
2407
|
-
_id:
|
|
2757
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2408
2758
|
} & {
|
|
2409
2759
|
__v: number;
|
|
2410
2760
|
}>;
|
|
2411
|
-
payrollBreakdownSchema:
|
|
2761
|
+
payrollBreakdownSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2412
2762
|
_id: false;
|
|
2413
2763
|
}, {
|
|
2414
|
-
|
|
2415
|
-
|
|
2764
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2765
|
+
amount: number;
|
|
2766
|
+
type: string;
|
|
2416
2767
|
taxable: boolean;
|
|
2417
|
-
|
|
2418
|
-
amount
|
|
2419
|
-
|
|
2768
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2769
|
+
amount: number;
|
|
2770
|
+
type: string;
|
|
2420
2771
|
taxable: boolean;
|
|
2421
|
-
type?: string | null | undefined;
|
|
2422
|
-
amount?: number | null | undefined;
|
|
2423
2772
|
}> & {
|
|
2773
|
+
amount: number;
|
|
2774
|
+
type: string;
|
|
2424
2775
|
taxable: boolean;
|
|
2425
|
-
type?: string | null | undefined;
|
|
2426
|
-
amount?: number | null | undefined;
|
|
2427
2776
|
}>;
|
|
2428
|
-
deductions:
|
|
2429
|
-
|
|
2430
|
-
|
|
2777
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2778
|
+
amount: number;
|
|
2779
|
+
type: string;
|
|
2431
2780
|
description?: string | null | undefined;
|
|
2432
|
-
},
|
|
2433
|
-
|
|
2434
|
-
|
|
2781
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2782
|
+
amount: number;
|
|
2783
|
+
type: string;
|
|
2435
2784
|
description?: string | null | undefined;
|
|
2436
2785
|
}> & {
|
|
2437
|
-
|
|
2438
|
-
|
|
2786
|
+
amount: number;
|
|
2787
|
+
type: string;
|
|
2439
2788
|
description?: string | null | undefined;
|
|
2440
2789
|
}>;
|
|
2790
|
+
baseAmount: number;
|
|
2441
2791
|
grossSalary: number;
|
|
2442
2792
|
netSalary: number;
|
|
2443
|
-
|
|
2793
|
+
taxableAmount: number;
|
|
2794
|
+
taxAmount: number;
|
|
2444
2795
|
proRatedAmount: number;
|
|
2796
|
+
attendanceDeduction: number;
|
|
2445
2797
|
overtimeAmount: number;
|
|
2446
2798
|
bonusAmount: number;
|
|
2447
2799
|
workingDays?: number | null | undefined;
|
|
2448
2800
|
actualDays?: number | null | undefined;
|
|
2449
|
-
},
|
|
2450
|
-
|
|
2451
|
-
|
|
2801
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2802
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2803
|
+
amount: number;
|
|
2804
|
+
type: string;
|
|
2452
2805
|
taxable: boolean;
|
|
2453
|
-
|
|
2454
|
-
amount
|
|
2455
|
-
|
|
2806
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2807
|
+
amount: number;
|
|
2808
|
+
type: string;
|
|
2456
2809
|
taxable: boolean;
|
|
2457
|
-
type?: string | null | undefined;
|
|
2458
|
-
amount?: number | null | undefined;
|
|
2459
2810
|
}> & {
|
|
2811
|
+
amount: number;
|
|
2812
|
+
type: string;
|
|
2460
2813
|
taxable: boolean;
|
|
2461
|
-
type?: string | null | undefined;
|
|
2462
|
-
amount?: number | null | undefined;
|
|
2463
2814
|
}>;
|
|
2464
|
-
deductions:
|
|
2465
|
-
|
|
2466
|
-
|
|
2815
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2816
|
+
amount: number;
|
|
2817
|
+
type: string;
|
|
2467
2818
|
description?: string | null | undefined;
|
|
2468
|
-
},
|
|
2469
|
-
|
|
2470
|
-
|
|
2819
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2820
|
+
amount: number;
|
|
2821
|
+
type: string;
|
|
2471
2822
|
description?: string | null | undefined;
|
|
2472
2823
|
}> & {
|
|
2473
|
-
|
|
2474
|
-
|
|
2824
|
+
amount: number;
|
|
2825
|
+
type: string;
|
|
2475
2826
|
description?: string | null | undefined;
|
|
2476
2827
|
}>;
|
|
2828
|
+
baseAmount: number;
|
|
2477
2829
|
grossSalary: number;
|
|
2478
2830
|
netSalary: number;
|
|
2479
|
-
|
|
2831
|
+
taxableAmount: number;
|
|
2832
|
+
taxAmount: number;
|
|
2480
2833
|
proRatedAmount: number;
|
|
2834
|
+
attendanceDeduction: number;
|
|
2481
2835
|
overtimeAmount: number;
|
|
2482
2836
|
bonusAmount: number;
|
|
2483
2837
|
workingDays?: number | null | undefined;
|
|
2484
2838
|
actualDays?: number | null | undefined;
|
|
2485
2839
|
}, {
|
|
2486
2840
|
id: string;
|
|
2487
|
-
},
|
|
2841
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2488
2842
|
_id: false;
|
|
2489
2843
|
}>> & Omit<{
|
|
2490
|
-
|
|
2491
|
-
|
|
2844
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2845
|
+
amount: number;
|
|
2846
|
+
type: string;
|
|
2492
2847
|
taxable: boolean;
|
|
2493
|
-
|
|
2494
|
-
amount
|
|
2495
|
-
|
|
2848
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2849
|
+
amount: number;
|
|
2850
|
+
type: string;
|
|
2496
2851
|
taxable: boolean;
|
|
2497
|
-
type?: string | null | undefined;
|
|
2498
|
-
amount?: number | null | undefined;
|
|
2499
2852
|
}> & {
|
|
2853
|
+
amount: number;
|
|
2854
|
+
type: string;
|
|
2500
2855
|
taxable: boolean;
|
|
2501
|
-
type?: string | null | undefined;
|
|
2502
|
-
amount?: number | null | undefined;
|
|
2503
2856
|
}>;
|
|
2504
|
-
deductions:
|
|
2505
|
-
|
|
2506
|
-
|
|
2857
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2858
|
+
amount: number;
|
|
2859
|
+
type: string;
|
|
2507
2860
|
description?: string | null | undefined;
|
|
2508
|
-
},
|
|
2509
|
-
|
|
2510
|
-
|
|
2861
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2862
|
+
amount: number;
|
|
2863
|
+
type: string;
|
|
2511
2864
|
description?: string | null | undefined;
|
|
2512
2865
|
}> & {
|
|
2513
|
-
|
|
2514
|
-
|
|
2866
|
+
amount: number;
|
|
2867
|
+
type: string;
|
|
2515
2868
|
description?: string | null | undefined;
|
|
2516
2869
|
}>;
|
|
2870
|
+
baseAmount: number;
|
|
2517
2871
|
grossSalary: number;
|
|
2518
2872
|
netSalary: number;
|
|
2519
|
-
|
|
2873
|
+
taxableAmount: number;
|
|
2874
|
+
taxAmount: number;
|
|
2520
2875
|
proRatedAmount: number;
|
|
2876
|
+
attendanceDeduction: number;
|
|
2521
2877
|
overtimeAmount: number;
|
|
2522
2878
|
bonusAmount: number;
|
|
2523
2879
|
workingDays?: number | null | undefined;
|
|
2524
2880
|
actualDays?: number | null | undefined;
|
|
2525
2881
|
} & {
|
|
2526
|
-
_id:
|
|
2882
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2527
2883
|
} & {
|
|
2528
2884
|
__v: number;
|
|
2529
2885
|
}, "id"> & {
|
|
2530
2886
|
id: string;
|
|
2531
2887
|
}, {
|
|
2532
|
-
[path: string]:
|
|
2888
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2533
2889
|
} | {
|
|
2534
|
-
[x: string]:
|
|
2535
|
-
|
|
2536
|
-
|
|
2890
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2891
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2892
|
+
amount: number;
|
|
2893
|
+
type: string;
|
|
2537
2894
|
taxable: boolean;
|
|
2538
|
-
|
|
2539
|
-
amount
|
|
2540
|
-
|
|
2895
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2896
|
+
amount: number;
|
|
2897
|
+
type: string;
|
|
2541
2898
|
taxable: boolean;
|
|
2542
|
-
type?: string | null | undefined;
|
|
2543
|
-
amount?: number | null | undefined;
|
|
2544
2899
|
}> & {
|
|
2900
|
+
amount: number;
|
|
2901
|
+
type: string;
|
|
2545
2902
|
taxable: boolean;
|
|
2546
|
-
type?: string | null | undefined;
|
|
2547
|
-
amount?: number | null | undefined;
|
|
2548
2903
|
}>;
|
|
2549
|
-
deductions:
|
|
2550
|
-
|
|
2551
|
-
|
|
2904
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2905
|
+
amount: number;
|
|
2906
|
+
type: string;
|
|
2552
2907
|
description?: string | null | undefined;
|
|
2553
|
-
},
|
|
2554
|
-
|
|
2555
|
-
|
|
2908
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2909
|
+
amount: number;
|
|
2910
|
+
type: string;
|
|
2556
2911
|
description?: string | null | undefined;
|
|
2557
2912
|
}> & {
|
|
2558
|
-
|
|
2559
|
-
|
|
2913
|
+
amount: number;
|
|
2914
|
+
type: string;
|
|
2560
2915
|
description?: string | null | undefined;
|
|
2561
2916
|
}>;
|
|
2917
|
+
baseAmount: number;
|
|
2562
2918
|
grossSalary: number;
|
|
2563
2919
|
netSalary: number;
|
|
2564
|
-
|
|
2920
|
+
taxableAmount: number;
|
|
2921
|
+
taxAmount: number;
|
|
2565
2922
|
proRatedAmount: number;
|
|
2923
|
+
attendanceDeduction: number;
|
|
2566
2924
|
overtimeAmount: number;
|
|
2567
2925
|
bonusAmount: number;
|
|
2568
2926
|
workingDays?: number | null | undefined;
|
|
2569
2927
|
actualDays?: number | null | undefined;
|
|
2570
2928
|
}, {
|
|
2571
2929
|
id: string;
|
|
2572
|
-
},
|
|
2930
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2573
2931
|
_id: false;
|
|
2574
2932
|
}>> & Omit<{
|
|
2575
|
-
|
|
2576
|
-
|
|
2933
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2934
|
+
amount: number;
|
|
2935
|
+
type: string;
|
|
2577
2936
|
taxable: boolean;
|
|
2578
|
-
|
|
2579
|
-
amount
|
|
2580
|
-
|
|
2937
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2938
|
+
amount: number;
|
|
2939
|
+
type: string;
|
|
2581
2940
|
taxable: boolean;
|
|
2582
|
-
type?: string | null | undefined;
|
|
2583
|
-
amount?: number | null | undefined;
|
|
2584
2941
|
}> & {
|
|
2942
|
+
amount: number;
|
|
2943
|
+
type: string;
|
|
2585
2944
|
taxable: boolean;
|
|
2586
|
-
type?: string | null | undefined;
|
|
2587
|
-
amount?: number | null | undefined;
|
|
2588
2945
|
}>;
|
|
2589
|
-
deductions:
|
|
2590
|
-
|
|
2591
|
-
|
|
2946
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2947
|
+
amount: number;
|
|
2948
|
+
type: string;
|
|
2592
2949
|
description?: string | null | undefined;
|
|
2593
|
-
},
|
|
2594
|
-
|
|
2595
|
-
|
|
2950
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2951
|
+
amount: number;
|
|
2952
|
+
type: string;
|
|
2596
2953
|
description?: string | null | undefined;
|
|
2597
2954
|
}> & {
|
|
2598
|
-
|
|
2599
|
-
|
|
2955
|
+
amount: number;
|
|
2956
|
+
type: string;
|
|
2600
2957
|
description?: string | null | undefined;
|
|
2601
2958
|
}>;
|
|
2959
|
+
baseAmount: number;
|
|
2602
2960
|
grossSalary: number;
|
|
2603
2961
|
netSalary: number;
|
|
2604
|
-
|
|
2962
|
+
taxableAmount: number;
|
|
2963
|
+
taxAmount: number;
|
|
2605
2964
|
proRatedAmount: number;
|
|
2965
|
+
attendanceDeduction: number;
|
|
2606
2966
|
overtimeAmount: number;
|
|
2607
2967
|
bonusAmount: number;
|
|
2608
2968
|
workingDays?: number | null | undefined;
|
|
2609
2969
|
actualDays?: number | null | undefined;
|
|
2610
2970
|
} & {
|
|
2611
|
-
_id:
|
|
2971
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2612
2972
|
} & {
|
|
2613
2973
|
__v: number;
|
|
2614
2974
|
}, "id"> & {
|
|
2615
2975
|
id: string;
|
|
2616
2976
|
}> | undefined;
|
|
2617
2977
|
}, {
|
|
2618
|
-
|
|
2619
|
-
|
|
2978
|
+
allowances: mongoose__default.Types.DocumentArray<{
|
|
2979
|
+
amount: number;
|
|
2980
|
+
type: string;
|
|
2620
2981
|
taxable: boolean;
|
|
2621
|
-
|
|
2622
|
-
amount
|
|
2623
|
-
|
|
2982
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2983
|
+
amount: number;
|
|
2984
|
+
type: string;
|
|
2624
2985
|
taxable: boolean;
|
|
2625
|
-
type?: string | null | undefined;
|
|
2626
|
-
amount?: number | null | undefined;
|
|
2627
2986
|
}> & {
|
|
2987
|
+
amount: number;
|
|
2988
|
+
type: string;
|
|
2628
2989
|
taxable: boolean;
|
|
2629
|
-
type?: string | null | undefined;
|
|
2630
|
-
amount?: number | null | undefined;
|
|
2631
2990
|
}>;
|
|
2632
|
-
deductions:
|
|
2633
|
-
|
|
2634
|
-
|
|
2991
|
+
deductions: mongoose__default.Types.DocumentArray<{
|
|
2992
|
+
amount: number;
|
|
2993
|
+
type: string;
|
|
2635
2994
|
description?: string | null | undefined;
|
|
2636
|
-
},
|
|
2637
|
-
|
|
2638
|
-
|
|
2995
|
+
}, mongoose__default.Types.Subdocument<mongoose__default.mongo.BSON.ObjectId, unknown, {
|
|
2996
|
+
amount: number;
|
|
2997
|
+
type: string;
|
|
2639
2998
|
description?: string | null | undefined;
|
|
2640
2999
|
}> & {
|
|
2641
|
-
|
|
2642
|
-
|
|
3000
|
+
amount: number;
|
|
3001
|
+
type: string;
|
|
2643
3002
|
description?: string | null | undefined;
|
|
2644
3003
|
}>;
|
|
3004
|
+
baseAmount: number;
|
|
2645
3005
|
grossSalary: number;
|
|
2646
3006
|
netSalary: number;
|
|
2647
|
-
|
|
3007
|
+
taxableAmount: number;
|
|
3008
|
+
taxAmount: number;
|
|
2648
3009
|
proRatedAmount: number;
|
|
3010
|
+
attendanceDeduction: number;
|
|
2649
3011
|
overtimeAmount: number;
|
|
2650
3012
|
bonusAmount: number;
|
|
2651
3013
|
workingDays?: number | null | undefined;
|
|
2652
3014
|
actualDays?: number | null | undefined;
|
|
2653
3015
|
} & {
|
|
2654
|
-
_id:
|
|
3016
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2655
3017
|
} & {
|
|
2656
3018
|
__v: number;
|
|
2657
3019
|
}>;
|
|
2658
|
-
periodSchema:
|
|
3020
|
+
periodSchema: mongoose__default.Schema<any, mongoose__default.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
2659
3021
|
_id: false;
|
|
2660
3022
|
}, {
|
|
2661
3023
|
month: number;
|
|
@@ -2663,7 +3025,7 @@ declare const _default: {
|
|
|
2663
3025
|
startDate: NativeDate;
|
|
2664
3026
|
endDate: NativeDate;
|
|
2665
3027
|
payDate: NativeDate;
|
|
2666
|
-
},
|
|
3028
|
+
}, mongoose__default.Document<unknown, {}, {
|
|
2667
3029
|
month: number;
|
|
2668
3030
|
year: number;
|
|
2669
3031
|
startDate: NativeDate;
|
|
@@ -2671,7 +3033,7 @@ declare const _default: {
|
|
|
2671
3033
|
payDate: NativeDate;
|
|
2672
3034
|
}, {
|
|
2673
3035
|
id: string;
|
|
2674
|
-
},
|
|
3036
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2675
3037
|
_id: false;
|
|
2676
3038
|
}>> & Omit<{
|
|
2677
3039
|
month: number;
|
|
@@ -2680,15 +3042,15 @@ declare const _default: {
|
|
|
2680
3042
|
endDate: NativeDate;
|
|
2681
3043
|
payDate: NativeDate;
|
|
2682
3044
|
} & {
|
|
2683
|
-
_id:
|
|
3045
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2684
3046
|
} & {
|
|
2685
3047
|
__v: number;
|
|
2686
3048
|
}, "id"> & {
|
|
2687
3049
|
id: string;
|
|
2688
3050
|
}, {
|
|
2689
|
-
[path: string]:
|
|
3051
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2690
3052
|
} | {
|
|
2691
|
-
[x: string]:
|
|
3053
|
+
[x: string]: mongoose__default.SchemaDefinitionProperty<any, any, mongoose__default.Document<unknown, {}, {
|
|
2692
3054
|
month: number;
|
|
2693
3055
|
year: number;
|
|
2694
3056
|
startDate: NativeDate;
|
|
@@ -2696,7 +3058,7 @@ declare const _default: {
|
|
|
2696
3058
|
payDate: NativeDate;
|
|
2697
3059
|
}, {
|
|
2698
3060
|
id: string;
|
|
2699
|
-
},
|
|
3061
|
+
}, mongoose__default.ResolveSchemaOptions<{
|
|
2700
3062
|
_id: false;
|
|
2701
3063
|
}>> & Omit<{
|
|
2702
3064
|
month: number;
|
|
@@ -2705,7 +3067,7 @@ declare const _default: {
|
|
|
2705
3067
|
endDate: NativeDate;
|
|
2706
3068
|
payDate: NativeDate;
|
|
2707
3069
|
} & {
|
|
2708
|
-
_id:
|
|
3070
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2709
3071
|
} & {
|
|
2710
3072
|
__v: number;
|
|
2711
3073
|
}, "id"> & {
|
|
@@ -2718,39 +3080,71 @@ declare const _default: {
|
|
|
2718
3080
|
endDate: NativeDate;
|
|
2719
3081
|
payDate: NativeDate;
|
|
2720
3082
|
} & {
|
|
2721
|
-
_id:
|
|
3083
|
+
_id: mongoose__default.Types.ObjectId;
|
|
2722
3084
|
} & {
|
|
2723
3085
|
__v: number;
|
|
2724
3086
|
}>;
|
|
2725
3087
|
employmentFields: {
|
|
2726
|
-
[path: string]:
|
|
3088
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2727
3089
|
};
|
|
2728
3090
|
payrollRecordFields: {
|
|
2729
|
-
[path: string]:
|
|
3091
|
+
[path: string]: mongoose__default.SchemaDefinitionProperty<undefined, any, any>;
|
|
2730
3092
|
};
|
|
2731
3093
|
employeeIndexes: ({
|
|
2732
3094
|
fields: {
|
|
2733
3095
|
organizationId: number;
|
|
2734
3096
|
employeeId: number;
|
|
2735
3097
|
userId?: undefined;
|
|
3098
|
+
email?: undefined;
|
|
2736
3099
|
status?: undefined;
|
|
2737
3100
|
department?: undefined;
|
|
2738
3101
|
'compensation.netSalary'?: undefined;
|
|
2739
3102
|
};
|
|
2740
3103
|
options: {
|
|
2741
3104
|
unique: boolean;
|
|
3105
|
+
partialFilterExpression?: undefined;
|
|
2742
3106
|
};
|
|
2743
3107
|
} | {
|
|
2744
3108
|
fields: {
|
|
2745
3109
|
userId: number;
|
|
2746
3110
|
organizationId: number;
|
|
2747
3111
|
employeeId?: undefined;
|
|
3112
|
+
email?: undefined;
|
|
3113
|
+
status?: undefined;
|
|
3114
|
+
department?: undefined;
|
|
3115
|
+
'compensation.netSalary'?: undefined;
|
|
3116
|
+
};
|
|
3117
|
+
options: {
|
|
3118
|
+
unique: boolean;
|
|
3119
|
+
partialFilterExpression: {
|
|
3120
|
+
userId: {
|
|
3121
|
+
$exists: boolean;
|
|
3122
|
+
};
|
|
3123
|
+
email?: undefined;
|
|
3124
|
+
status?: undefined;
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
} | {
|
|
3128
|
+
fields: {
|
|
3129
|
+
email: number;
|
|
3130
|
+
organizationId: number;
|
|
3131
|
+
employeeId?: undefined;
|
|
3132
|
+
userId?: undefined;
|
|
2748
3133
|
status?: undefined;
|
|
2749
3134
|
department?: undefined;
|
|
2750
3135
|
'compensation.netSalary'?: undefined;
|
|
2751
3136
|
};
|
|
2752
3137
|
options: {
|
|
2753
3138
|
unique: boolean;
|
|
3139
|
+
partialFilterExpression: {
|
|
3140
|
+
email: {
|
|
3141
|
+
$exists: boolean;
|
|
3142
|
+
};
|
|
3143
|
+
status: {
|
|
3144
|
+
$in: string[];
|
|
3145
|
+
};
|
|
3146
|
+
userId?: undefined;
|
|
3147
|
+
};
|
|
2754
3148
|
};
|
|
2755
3149
|
} | {
|
|
2756
3150
|
fields: {
|
|
@@ -2758,6 +3152,7 @@ declare const _default: {
|
|
|
2758
3152
|
status: number;
|
|
2759
3153
|
employeeId?: undefined;
|
|
2760
3154
|
userId?: undefined;
|
|
3155
|
+
email?: undefined;
|
|
2761
3156
|
department?: undefined;
|
|
2762
3157
|
'compensation.netSalary'?: undefined;
|
|
2763
3158
|
};
|
|
@@ -2768,6 +3163,7 @@ declare const _default: {
|
|
|
2768
3163
|
department: number;
|
|
2769
3164
|
employeeId?: undefined;
|
|
2770
3165
|
userId?: undefined;
|
|
3166
|
+
email?: undefined;
|
|
2771
3167
|
status?: undefined;
|
|
2772
3168
|
'compensation.netSalary'?: undefined;
|
|
2773
3169
|
};
|
|
@@ -2778,6 +3174,7 @@ declare const _default: {
|
|
|
2778
3174
|
'compensation.netSalary': number;
|
|
2779
3175
|
employeeId?: undefined;
|
|
2780
3176
|
userId?: undefined;
|
|
3177
|
+
email?: undefined;
|
|
2781
3178
|
status?: undefined;
|
|
2782
3179
|
department?: undefined;
|
|
2783
3180
|
};
|
|
@@ -2796,7 +3193,6 @@ declare const _default: {
|
|
|
2796
3193
|
options: {
|
|
2797
3194
|
unique: boolean;
|
|
2798
3195
|
expireAfterSeconds?: undefined;
|
|
2799
|
-
partialFilterExpression?: undefined;
|
|
2800
3196
|
};
|
|
2801
3197
|
} | {
|
|
2802
3198
|
fields: {
|
|
@@ -2854,9 +3250,6 @@ declare const _default: {
|
|
|
2854
3250
|
};
|
|
2855
3251
|
options: {
|
|
2856
3252
|
expireAfterSeconds: number;
|
|
2857
|
-
partialFilterExpression: {
|
|
2858
|
-
exported: boolean;
|
|
2859
|
-
};
|
|
2860
3253
|
unique?: undefined;
|
|
2861
3254
|
};
|
|
2862
3255
|
})[];
|
|
@@ -2866,4 +3259,4 @@ declare const _default: {
|
|
|
2866
3259
|
createPayrollRecordSchema: typeof createPayrollRecordSchema;
|
|
2867
3260
|
};
|
|
2868
3261
|
|
|
2869
|
-
export { allowanceSchema, applyEmployeeIndexes, applyPayrollRecordIndexes, bankDetailsSchema, compensationSchema, createEmployeeSchema, createPayrollRecordSchema, deductionSchema, _default as default, employeeIndexes, employmentFields, employmentHistorySchema, payrollBreakdownSchema, payrollRecordFields, payrollRecordIndexes, payrollStatsSchema, periodSchema, workScheduleSchema };
|
|
3262
|
+
export { allowanceSchema, applyEmployeeIndexes, applyLeaveRequestIndexes, applyPayrollRecordIndexes, applyTaxWithholdingIndexes, bankDetailsSchema, compensationSchema, createEmployeeSchema, createLeaveRequestSchema, createPayrollRecordSchema, createTaxWithholdingSchema, deductionSchema, _default as default, employeeIndexes, employmentFields, employmentHistorySchema, leaveBalanceFields, leaveBalanceSchema, leaveRequestFields, leaveRequestIndexes, leaveRequestTTLIndex, payrollBreakdownSchema, payrollRecordFields, payrollRecordIndexes, payrollStatsSchema, periodSchema, taxWithholdingFields, taxWithholdingIndexes, workScheduleSchema };
|