@managesome/eposmatic-toolkit 0.2.573 → 0.2.575
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/lib/constants/ENUMS.d.ts +5 -0
- package/lib/constants/ENUMS.js +8 -2
- package/lib/schemas/models/index.d.ts +1 -0
- package/lib/schemas/models/index.js +1 -0
- package/lib/schemas/models/tenant_hr_biometric_enrollments.d.ts +59 -0
- package/lib/schemas/models/tenant_hr_biometric_enrollments.js +72 -0
- package/lib/schemas/types/index.d.ts +1 -0
- package/lib/schemas/types/index.js +1 -0
- package/lib/schemas/types/shift_day_drawer_requests.d.ts +0 -1
- package/lib/schemas/types/tenant_hr_biometric_enrollments.d.ts +15 -0
- package/lib/schemas/types/tenant_hr_biometric_enrollments.js +2 -0
- package/package.json +1 -1
package/lib/constants/ENUMS.d.ts
CHANGED
|
@@ -1154,6 +1154,11 @@ export declare enum HR_CHECK_IN_METHOD_ENUM {
|
|
|
1154
1154
|
QR = "QR"
|
|
1155
1155
|
}
|
|
1156
1156
|
export declare const ALL_HR_CHECK_IN_METHOD_NAMES: HR_CHECK_IN_METHOD_ENUM[];
|
|
1157
|
+
export declare enum HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM {
|
|
1158
|
+
FINGERPRINT = "FINGERPRINT",
|
|
1159
|
+
FACE = "FACE"
|
|
1160
|
+
}
|
|
1161
|
+
export declare const ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES: HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM[];
|
|
1157
1162
|
export declare enum HR_SHIFT_TYPE_ENUM {
|
|
1158
1163
|
REGULAR = "REGULAR",
|
|
1159
1164
|
OVERTIME = "OVERTIME",
|
package/lib/constants/ENUMS.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.COUNTRY_NAME_ENUM = exports.ALL_COUNTRY_ALPHA_3_TYPES = exports.COUNTRY_
|
|
|
4
4
|
exports.EMAIL_STATUS_ENUM = exports.ALL_COMMUNICATION_CHANNELS = exports.COMMUNICATION_CHANNEL_ENUM = exports.ALL_EMAIL_DOCUMENT_KINDS = exports.EMAIL_DOCUMENT_KIND_ENUM = exports.ALL_EMAIL_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_REWARDS_USAGE_REF_TYPES = exports.REWARDS_USAGE_REF_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPES = exports.PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_POPUP_TYPES = exports.MYSTERY_GIFT_POPUP_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_TYPES = exports.MYSTERY_GIFT_TYPE_ENUM = exports.ALL_GIFT_CARD_REWARD_TYPES = exports.GIFT_CARD_REWARD_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_TYPES = exports.CUSTOMER_REDEMPTION_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_SOURCE_TYPES = exports.CUSTOMER_REDEMPTION_SOURCE_ENUM = exports.ALL_OFFER_REWARD_TYPES = exports.OFFER_REWARD_TYPE_ENUM = exports.ALL_USER_ROLES = exports.USER_ROLES_ENUM = exports.ALL_PLATFORM_TYPES = exports.PLATFORM_TYPE_ENUM = exports.ALL_ORDER_NUMBER_GROUPING_TYPES = exports.ORDER_NUMBER_GROUPING_TYPE_ENUM = exports.ALL_TRACK_ORDER_NUMBER_TYPES = exports.TRACK_ORDER_NUMBER_ENUM = exports.ALL_TABLE_TYPES = exports.TABLE_TYPE_ENUM = exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = exports.ALL_PAYMENT_METHOD_EXPECTED = exports.PAYMENT_METHOD_EXPECTED_ENUM = exports.ALL_WEB_UNPAID_PAYMENT_TYPES = exports.WEB_UNPAID_PAYMENT_TYPE_ENUM = exports.ALL_COUNTRY_FLAG_TYPES = exports.COUNTRY_FLAG_ENUM = exports.ALL_COUNTRY_NAME_TYPES = void 0;
|
|
5
5
|
exports.EXPENSE_REACCURING_TYPE_ENUM = exports.PAYMENT_EXTENSION_ENUM = exports.ALL_PRINTER_INTERFACES = exports.PRINTER_INTERFACE_ENUM = exports.RECEIPT_WIDTHS = exports.ALL_NUM_OF_COLUMNS = exports.NUM_OF_COLUMNS_ENUM = exports.SPLIT_SYNC_SOURCE_ENUM = exports.ALL_SPLIT_BILL_TYPES = exports.SPLIT_BILL_TYPE_ENUM = exports.ALL_RIDER_FEE_TYPES = exports.RIDER_FEE_TYPE_ENUM = exports.ALL_DELIVERY_AREAS_SEARCH_TYPES = exports.DELIVERY_AREAS_SEARCH_TYPE_ENUM = exports.ALL_WEB_AUTH_TYPES = exports.WEB_AUTH_TYPE_ENUM = exports.KITCHEN_RECEIPT_TYPE_ENUM = exports.PRINTER_EVENT_TYPE_ENUM = exports.SORT_TYPE_ENUM = exports.WHITELISTED_API_SMS_COUNTRY_CODES = exports.BLACKLISTED_SMS_COUNTRY_CODES = exports.ALL_OTP_TYPES = exports.OTP_TYPE_ENUM = exports.ALL_TAX_INVOICE_PROVIDERS = exports.TAX_INVOICE_PROVIDER_ENUM = exports.ALL_RESERVATION_STATUS_TYPES = exports.RESERVATION_STATUS_ENUM = exports.TENANT_AMOUNT_DUE_TYPE_ENUM = exports.ALL_KITCHEN_DOCKET_FONT_TYPES = exports.KITCHEN_DOCKET_FONT_TYPE_ENUM = exports.ALL_SORT_ORDER_BY_TYPES = exports.SORT_ORDER_BY_ENUM = exports.RECEIPT_IMAGE_TYPE_ENUM = exports.ALL_RECEIPT_TYPES = exports.RECEIPT_TYPE_ENUM = exports.ALL_PRINTING_PREFERENCES = exports.PRINTING_PREFERENCE_ENUM = exports.ALL_PRINTER_BRAND_TYPES = exports.PRINTER_BRAND_TYPE_ENUM = exports.ALL_ORDER_ITEM_TYPES = exports.ORDER_ITEM_TYPE_ENUM = exports.ALL_PLATFORM_PROVIDER_IDS = exports.PLATFORM_PROVIDER_IDS_ENUM = exports.ALL_MARKETING_RECEIPIENT_TYPES = exports.MARKETING_RECEIPIENT_ENUM = exports.ALL_MARKETING_TYPES = exports.MARKETING_TYPE_ENUM = exports.ALL_TOKEN_TYPES = exports.TOKEN_TYPE_ENUM = exports.ALL_EMAIL_STATUS = void 0;
|
|
6
6
|
exports.MODIFIER_OPTION_REF_TYPE_ENUM = exports.ALL_ONLINE_ORDERING_DESIGN_TYPES = exports.ONLINE_ORDERING_DESIGN_TYPE_ENUM = exports.ALL_NOTIFICATION_PROVIDERS = exports.NOTIFICATION_PROVIDER_ENUM = exports.ALL_ORDER_COMPLETION_TYPES = exports.ORDER_COMPLETION_TYPE_ENUM = exports.ITEM_COMPARISON_FIELD_ENUM = exports.VOID_ITEM_STAFF_REPORT_ENUM = exports.ALL_DISCOUNT_APPLICABILITY_TYPES = exports.DISCOUNT_APPLICABILITY_ENUM = exports.ALL_DISCOUNT_TYPES = exports.DISCOUNT_TYPE_ENUM = exports.EMAIL_TEMPLATES_TYPE_ENUM = exports.ALL_ALERT_NOTIFICATIONS_TYPES = exports.ALERT_NOTIFICATIONS_TYPE_ENUM = exports.ALL_WALLET_TRANSACTION_STATUS = exports.WALLET_TRANSACTION_STATUS_ENUM = exports.ALL_WALLET_TRANSACTION_CATEGORIES = exports.WALLET_TRANSACTION_CATEGORY_ENUM = exports.ALL_WALLET_TRANSACTION_TYPES = exports.WALLET_TRANSACTION_TYPE_ENUM = exports.ALL_DELIVERY_STATUS = exports.DELIVERY_STATUS_ENUM = exports.ALL_INVENTORY_ITEM_TYPES = exports.INVENTORY_ITEM_TYPE_ENUM = exports.ALL_RATING_TYPES = exports.RATING_TYPE_ENUM = exports.ALL_SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS_ENUM = exports.ALL_VOID_PURCHASE_ORDER_ITEM_TYPES = exports.VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = exports.ALL_MULTI_TENANT_WEBSITE_TYPES = exports.MULTI_TENANT_WEBSITE_TYPE_ENUM = exports.ALL_TIME_RANGE_ENUMS = exports.TIME_RANGE_ENUM = exports.ALL_ITEM_TRANSACTION_TYPES = exports.ITEM_TRANSACTION_TYPE_ENUM = exports.INVENTORY_OUTBOUND_TRANSACTIONS = exports.INVENTORY_INBOUND_TRANSACTIONS = exports.ALL_INVENTORY_TRANSACTION_CATEGORIES = exports.INVENTORY_TRANSACTION_CATEGORY_ENUM = exports.ALL_INVENTORY_TRANSACTION_TYPES = exports.INVENTORY_TRANSACTION_TYPE_ENUM = exports.ALL_GST_TYPES = exports.GST_TYPE_ENUM = exports.ALL_EXPENSE_REACCURING_TYPES = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.ALL_HR_EMPLOYEE_DOCUMENT_TYPES = exports.HR_EMPLOYEE_DOCUMENT_TYPE_ENUM = exports.ALL_HR_SHIFT_STATUS_NAMES = void 0;
|
|
7
|
+
exports.HR_SHIFT_TYPE_ENUM = exports.ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES = exports.HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM = exports.ALL_HR_CHECK_IN_METHOD_NAMES = exports.HR_CHECK_IN_METHOD_ENUM = exports.ALL_HR_ATTENDANCE_STATUS_NAMES = exports.HR_ATTENDANCE_STATUS_ENUM = exports.ALL_HR_EMPLOYMENT_STATUS_NAMES = exports.HR_EMPLOYMENT_STATUS_ENUM = exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = exports.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES = exports.INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = exports.ALL_INTERNAL_CUSTOMER_TYPE_NAMES = exports.INTERNAL_CUSTOMER_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_TYPE_NAMES = exports.INTERNAL_INVOICE_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_STATUS_NAMES = exports.INTERNAL_INVOICE_STATUS_ENUM = exports.ALL_SUBSCRIPTION_HARDWARE_NAMES = exports.SUBSCRIPTION_HARDWARE_ENUM = exports.ALL_CUSTOMER_TARGET_MODES = exports.CUSTOMER_TARGET_MODE_ENUM = exports.ALL_WALLET_ASSIGNMENT_BEHAVIORS = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.ALL_WALLET_ASSET_TYPES = exports.WALLET_ASSET_TYPE_ENUM = exports.ALL_RECEIPT_QR_CODE_TYPES = exports.RECEIPT_QR_CODE_TYPE_ENUM = exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = exports.ALL_CASH_IN_OUT_TYPES = exports.CASH_IN_OUT_TYPE_ENUM = exports.ALL_POS_SHIFT_STATUS = exports.POS_SHIFT_STATUS_ENUM = exports.ALL_POS_DAY_STATUS = exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = void 0;
|
|
8
|
+
exports.ALL_HR_EMPLOYEE_DOCUMENT_TYPES = exports.HR_EMPLOYEE_DOCUMENT_TYPE_ENUM = exports.ALL_HR_SHIFT_STATUS_NAMES = exports.HR_SHIFT_STATUS_ENUM = exports.ALL_HR_SHIFT_TYPE_NAMES = void 0;
|
|
9
9
|
var ORDER_FROM_ENUM;
|
|
10
10
|
(function (ORDER_FROM_ENUM) {
|
|
11
11
|
ORDER_FROM_ENUM["WEB"] = "WEB";
|
|
@@ -1842,6 +1842,12 @@ var HR_CHECK_IN_METHOD_ENUM;
|
|
|
1842
1842
|
HR_CHECK_IN_METHOD_ENUM["QR"] = "QR";
|
|
1843
1843
|
})(HR_CHECK_IN_METHOD_ENUM || (exports.HR_CHECK_IN_METHOD_ENUM = HR_CHECK_IN_METHOD_ENUM = {}));
|
|
1844
1844
|
exports.ALL_HR_CHECK_IN_METHOD_NAMES = Object.values(HR_CHECK_IN_METHOD_ENUM);
|
|
1845
|
+
var HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM;
|
|
1846
|
+
(function (HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM) {
|
|
1847
|
+
HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM["FINGERPRINT"] = "FINGERPRINT";
|
|
1848
|
+
HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM["FACE"] = "FACE";
|
|
1849
|
+
})(HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM || (exports.HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM = HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM = {}));
|
|
1850
|
+
exports.ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES = Object.values(HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM);
|
|
1845
1851
|
var HR_SHIFT_TYPE_ENUM;
|
|
1846
1852
|
(function (HR_SHIFT_TYPE_ENUM) {
|
|
1847
1853
|
HR_SHIFT_TYPE_ENUM["REGULAR"] = "REGULAR";
|
|
@@ -49,6 +49,7 @@ export * from './tenant_cash_in_hand_transactions';
|
|
|
49
49
|
export * from './tenant_cash_in_out';
|
|
50
50
|
export * from './tenant_day_sessions';
|
|
51
51
|
export * from './tenant_hr_attendance_records';
|
|
52
|
+
export * from './tenant_hr_biometric_enrollments';
|
|
52
53
|
export * from './tenant_hr_departments';
|
|
53
54
|
export * from './tenant_hr_employees';
|
|
54
55
|
export * from './tenant_hr_positions';
|
|
@@ -65,6 +65,7 @@ __exportStar(require("./tenant_cash_in_hand_transactions"), exports);
|
|
|
65
65
|
__exportStar(require("./tenant_cash_in_out"), exports);
|
|
66
66
|
__exportStar(require("./tenant_day_sessions"), exports);
|
|
67
67
|
__exportStar(require("./tenant_hr_attendance_records"), exports);
|
|
68
|
+
__exportStar(require("./tenant_hr_biometric_enrollments"), exports);
|
|
68
69
|
__exportStar(require("./tenant_hr_departments"), exports);
|
|
69
70
|
__exportStar(require("./tenant_hr_employees"), exports);
|
|
70
71
|
__exportStar(require("./tenant_hr_positions"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const TenantHrBiometricEnrollmentSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
|
+
timestamps: true;
|
|
4
|
+
versionKey: false;
|
|
5
|
+
minimize: false;
|
|
6
|
+
}, {
|
|
7
|
+
createdAt: NativeDate;
|
|
8
|
+
updatedAt: NativeDate;
|
|
9
|
+
} & {
|
|
10
|
+
_id: import("mongoose").Types.ObjectId;
|
|
11
|
+
type: import("../../constants").HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM;
|
|
12
|
+
tenant_id: string;
|
|
13
|
+
createdAt: NativeDate;
|
|
14
|
+
updatedAt: NativeDate;
|
|
15
|
+
label: string;
|
|
16
|
+
employee_id: string;
|
|
17
|
+
credential_id: string;
|
|
18
|
+
public_key: number[];
|
|
19
|
+
counter: number;
|
|
20
|
+
transports: string[];
|
|
21
|
+
face_descriptor: number[];
|
|
22
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
23
|
+
createdAt: NativeDate;
|
|
24
|
+
updatedAt: NativeDate;
|
|
25
|
+
} & {
|
|
26
|
+
_id: import("mongoose").Types.ObjectId;
|
|
27
|
+
type: import("../../constants").HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM;
|
|
28
|
+
tenant_id: string;
|
|
29
|
+
createdAt: NativeDate;
|
|
30
|
+
updatedAt: NativeDate;
|
|
31
|
+
label: string;
|
|
32
|
+
employee_id: string;
|
|
33
|
+
credential_id: string;
|
|
34
|
+
public_key: number[];
|
|
35
|
+
counter: number;
|
|
36
|
+
transports: string[];
|
|
37
|
+
face_descriptor: number[];
|
|
38
|
+
}>> & import("mongoose").FlatRecord<{
|
|
39
|
+
createdAt: NativeDate;
|
|
40
|
+
updatedAt: NativeDate;
|
|
41
|
+
} & {
|
|
42
|
+
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
type: import("../../constants").HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM;
|
|
44
|
+
tenant_id: string;
|
|
45
|
+
createdAt: NativeDate;
|
|
46
|
+
updatedAt: NativeDate;
|
|
47
|
+
label: string;
|
|
48
|
+
employee_id: string;
|
|
49
|
+
credential_id: string;
|
|
50
|
+
public_key: number[];
|
|
51
|
+
counter: number;
|
|
52
|
+
transports: string[];
|
|
53
|
+
face_descriptor: number[];
|
|
54
|
+
}> & Required<{
|
|
55
|
+
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
}> & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const TENANT_HR_BIOMETRIC_ENROLLMENTS_COLLECTION_NAME = "tenant_hr_biometric_enrollments";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TENANT_HR_BIOMETRIC_ENROLLMENTS_COLLECTION_NAME = exports.TenantHrBiometricEnrollmentSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
exports.TenantHrBiometricEnrollmentSchema = new mongoose_1.Schema({
|
|
7
|
+
_id: {
|
|
8
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
+
required: true,
|
|
10
|
+
immutable: true,
|
|
11
|
+
},
|
|
12
|
+
tenant_id: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
immutable: true,
|
|
16
|
+
ref: 'tenants',
|
|
17
|
+
},
|
|
18
|
+
employee_id: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
immutable: true,
|
|
22
|
+
ref: 'tenant_hr_employees',
|
|
23
|
+
},
|
|
24
|
+
type: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true,
|
|
27
|
+
immutable: true,
|
|
28
|
+
enum: constants_1.ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES,
|
|
29
|
+
},
|
|
30
|
+
// --- WebAuthn credential (type === FINGERPRINT) ---
|
|
31
|
+
credential_id: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: null,
|
|
34
|
+
},
|
|
35
|
+
public_key: {
|
|
36
|
+
type: [Number],
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
counter: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 0,
|
|
42
|
+
},
|
|
43
|
+
transports: {
|
|
44
|
+
type: [String],
|
|
45
|
+
default: [],
|
|
46
|
+
},
|
|
47
|
+
// --- Face descriptor (type === FACE) ---
|
|
48
|
+
face_descriptor: {
|
|
49
|
+
type: [Number],
|
|
50
|
+
default: null,
|
|
51
|
+
},
|
|
52
|
+
label: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: null,
|
|
55
|
+
},
|
|
56
|
+
createdAt: {
|
|
57
|
+
type: mongoose_1.Schema.Types.Date,
|
|
58
|
+
required: true,
|
|
59
|
+
default: () => new Date(),
|
|
60
|
+
immutable: true,
|
|
61
|
+
},
|
|
62
|
+
updatedAt: {
|
|
63
|
+
type: mongoose_1.Schema.Types.Date,
|
|
64
|
+
required: true,
|
|
65
|
+
default: () => new Date(),
|
|
66
|
+
},
|
|
67
|
+
}, {
|
|
68
|
+
timestamps: true,
|
|
69
|
+
versionKey: false,
|
|
70
|
+
minimize: false,
|
|
71
|
+
});
|
|
72
|
+
exports.TENANT_HR_BIOMETRIC_ENROLLMENTS_COLLECTION_NAME = 'tenant_hr_biometric_enrollments';
|
|
@@ -56,6 +56,7 @@ export * from './tenant_cash_in_hand_transactions';
|
|
|
56
56
|
export * from './tenant_cash_in_out';
|
|
57
57
|
export * from './tenant_day_sessions';
|
|
58
58
|
export * from './tenant_hr_attendance_records';
|
|
59
|
+
export * from './tenant_hr_biometric_enrollments';
|
|
59
60
|
export * from './tenant_hr_departments';
|
|
60
61
|
export * from './tenant_hr_employees';
|
|
61
62
|
export * from './tenant_hr_positions';
|
|
@@ -72,6 +72,7 @@ __exportStar(require("./tenant_cash_in_hand_transactions"), exports);
|
|
|
72
72
|
__exportStar(require("./tenant_cash_in_out"), exports);
|
|
73
73
|
__exportStar(require("./tenant_day_sessions"), exports);
|
|
74
74
|
__exportStar(require("./tenant_hr_attendance_records"), exports);
|
|
75
|
+
__exportStar(require("./tenant_hr_biometric_enrollments"), exports);
|
|
75
76
|
__exportStar(require("./tenant_hr_departments"), exports);
|
|
76
77
|
__exportStar(require("./tenant_hr_employees"), exports);
|
|
77
78
|
__exportStar(require("./tenant_hr_positions"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM } from '../../constants';
|
|
2
|
+
export interface ITenantHrBiometricEnrollment {
|
|
3
|
+
_id: string;
|
|
4
|
+
tenant_id: string;
|
|
5
|
+
employee_id: string;
|
|
6
|
+
type: HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM;
|
|
7
|
+
credential_id?: string | null;
|
|
8
|
+
public_key?: number[] | null;
|
|
9
|
+
counter?: number | null;
|
|
10
|
+
transports?: string[] | null;
|
|
11
|
+
face_descriptor?: number[] | null;
|
|
12
|
+
label?: string | null;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date | null;
|
|
15
|
+
}
|