feat: server feature level (#32178)
* feat: server feature level * fix: correctly compute feature level (cherry picked from commit cc1e2363651eaff63848baad2c7932923ca66554)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { WorkflowTrigger } from '@immich/plugin-sdk';
|
||||
import z from 'zod';
|
||||
import { asIntegerEnum } from 'src/utils/helpers.js';
|
||||
|
||||
export enum AuthType {
|
||||
Password = 'password',
|
||||
@@ -1325,3 +1326,15 @@ export enum SearchOrderField {
|
||||
}
|
||||
|
||||
export const SearchOrderFieldSchema = z.enum(SearchOrderField).meta({ id: 'SearchOrderField' });
|
||||
|
||||
export enum ServerFeatureLevel {
|
||||
FeatureLevel = 1,
|
||||
}
|
||||
|
||||
export const ServerFeatureLevelSchema = z
|
||||
.enum(ServerFeatureLevel)
|
||||
.describe('Server feature level')
|
||||
.meta({
|
||||
id: 'ServerFeatureLevel',
|
||||
...asIntegerEnum(ServerFeatureLevel),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user