mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
refactor visitor passwords apis
This commit is contained in:
@ -726,26 +726,10 @@ export class ControllerRoute {
|
||||
'/projects/:projectUuid/visitor-password';
|
||||
|
||||
static ACTIONS = class {
|
||||
public static readonly ADD_ONLINE_TEMP_PASSWORD_MULTIPLE_TIME_SUMMARY =
|
||||
'Add online temporary passwords (multiple-time)';
|
||||
public static readonly ADD_ONLINE_TEMP_PASSWORD_MULTIPLE_TIME_DESCRIPTION =
|
||||
'This endpoint adds multiple online temporary passwords for door locks.';
|
||||
|
||||
public static readonly ADD_ONLINE_TEMP_PASSWORD_ONE_TIME_SUMMARY =
|
||||
'Add online temporary password (one-time)';
|
||||
public static readonly ADD_ONLINE_TEMP_PASSWORD_ONE_TIME_DESCRIPTION =
|
||||
'This endpoint adds a one-time online temporary password for a door lock.';
|
||||
|
||||
public static readonly ADD_OFFLINE_TEMP_PASSWORD_ONE_TIME_SUMMARY =
|
||||
'Add offline temporary password (one-time)';
|
||||
public static readonly ADD_OFFLINE_TEMP_PASSWORD_ONE_TIME_DESCRIPTION =
|
||||
'This endpoint adds a one-time offline temporary password for a door lock.';
|
||||
|
||||
public static readonly ADD_OFFLINE_TEMP_PASSWORD_MULTIPLE_TIME_SUMMARY =
|
||||
'Add offline temporary passwords (multiple-time)';
|
||||
public static readonly ADD_OFFLINE_TEMP_PASSWORD_MULTIPLE_TIME_DESCRIPTION =
|
||||
'This endpoint adds multiple offline temporary passwords for door locks.';
|
||||
|
||||
public static readonly ADD_VISITOR_PASSWORD_SUMMARY =
|
||||
'Add visitor password';
|
||||
public static readonly ADD_VISITOR_PASSWORD_DESCRIPTION =
|
||||
'This endpoint allows you to add a visitor password based on the operation type.';
|
||||
public static readonly GET_VISITOR_PASSWORD_SUMMARY =
|
||||
'Get visitor passwords';
|
||||
public static readonly GET_VISITOR_PASSWORD_DESCRIPTION =
|
||||
|
6
libs/common/src/constants/visitor-password.enum.ts
Normal file
6
libs/common/src/constants/visitor-password.enum.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export enum VisitorPasswordEnum {
|
||||
ONLINE_ONE_TIME = 'ONLINE_ONE_TIME',
|
||||
ONLINE_MULTIPLE_TIME = 'ONLINE_MULTIPLE_TIME',
|
||||
OFFLINE_ONE_TIME = 'OFFLINE_ONE_TIME',
|
||||
OFFLINE_MULTIPLE_TIME = 'OFFLINE_MULTIPLE_TIME',
|
||||
}
|
Reference in New Issue
Block a user