mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)
This commit is contained in:
@@ -1,32 +1,40 @@
|
||||
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
|
||||
|
||||
const enum AdminOnlyPagesEnum {
|
||||
PROJECT = 'PROJECT',
|
||||
TEAM = 'TEAM',
|
||||
REPORTS = 'REPORTS',
|
||||
}
|
||||
export const AdminOnlyPages = {
|
||||
PROJECT: 'PROJECT',
|
||||
TEAM: 'TEAM',
|
||||
REPORTS: 'REPORTS',
|
||||
} as const;
|
||||
|
||||
const enum DaysOfWeekEnum {
|
||||
MONDAY = 'MONDAY',
|
||||
TUESDAY = 'TUESDAY',
|
||||
WEDNESDAY = 'WEDNESDAY',
|
||||
THURSDAY = 'THURSDAY',
|
||||
FRIDAY = 'FRIDAY',
|
||||
SATURDAY = 'SATURDAY',
|
||||
SUNDAY = 'SUNDAY',
|
||||
}
|
||||
export type AdminOnlyPagesEnum = (typeof AdminOnlyPages)[keyof typeof AdminOnlyPages];
|
||||
|
||||
const enum DatePeriodEnum {
|
||||
DAYS = 'DAYS',
|
||||
WEEKS = 'WEEKS',
|
||||
MONTHS = 'MONTHS',
|
||||
}
|
||||
export const DaysOfWeek = {
|
||||
MONDAY: 'MONDAY',
|
||||
TUESDAY: 'TUESDAY',
|
||||
WEDNESDAY: 'WEDNESDAY',
|
||||
THURSDAY: 'THURSDAY',
|
||||
FRIDAY: 'FRIDAY',
|
||||
SATURDAY: 'SATURDAY',
|
||||
SUNDAY: 'SUNDAY',
|
||||
} as const;
|
||||
|
||||
const enum AutomaticLockTypeEnum {
|
||||
WEEKLY = 'WEEKLY',
|
||||
MONTHLY = 'MONTHLY',
|
||||
OLDER_THAN = 'OLDER_THAN',
|
||||
}
|
||||
export type DaysOfWeekEnum = (typeof DaysOfWeek)[keyof typeof DaysOfWeek];
|
||||
|
||||
export const DatePeriods = {
|
||||
DAYS: 'DAYS',
|
||||
WEEKS: 'WEEKS',
|
||||
MONTHS: 'MONTHS',
|
||||
} as const;
|
||||
|
||||
export type DatePeriodEnum = (typeof DatePeriods)[keyof typeof DatePeriods];
|
||||
|
||||
export const AutomaticLockTypes = {
|
||||
WEEKLY: 'WEEKLY',
|
||||
MONTHLY: 'MONTHLY',
|
||||
OLDER_THAN: 'OLDER_THAN',
|
||||
} as const;
|
||||
|
||||
export type AutomaticLockTypeEnum = (typeof AutomaticLockTypes)[keyof typeof AutomaticLockTypes];
|
||||
|
||||
interface IAutomaticLockDto {
|
||||
changeDay: DaysOfWeekEnum;
|
||||
|
||||
Reference in New Issue
Block a user