Skip to content

Commit

Permalink
added new type & enum for auto param for moin.schule group uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonNicholasCap committed Jul 31, 2024
1 parent 28adb6b commit c8fbf70
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export enum CustomParameterType {
AUTO_SCHOOLID = 'auto_schoolid',
AUTO_SCHOOLNUMBER = 'auto_schoolnumber',
AUTO_MEDIUMID = 'auto_mediumid',
AUTO_MOINSCHULE_GROUPUUID = 'auto_moinschule_groupuuid',
}

export const autoParameters: CustomParameterType[] = [
Expand All @@ -15,4 +16,5 @@ export const autoParameters: CustomParameterType[] = [
CustomParameterType.AUTO_SCHOOLID,
CustomParameterType.AUTO_SCHOOLNUMBER,
CustomParameterType.AUTO_MEDIUMID,
CustomParameterType.AUTO_MOINSCHULE_GROUPUUID,
];
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export enum CustomParameterTypeParams {
AUTO_SCHOOLID = 'auto_schoolid',
AUTO_SCHOOLNUMBER = 'auto_schoolnumber',
AUTO_MEDIUMID = 'auto_mediumid',
AUTO_MOINSCHULE_GROUPUUID = 'auto_moinschule_groupuuid',
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class ToolParameterTypeValidationUtil {
[CustomParameterType.AUTO_SCHOOLID]: () => false,
[CustomParameterType.AUTO_SCHOOLNUMBER]: () => false,
[CustomParameterType.AUTO_MEDIUMID]: () => false,
[CustomParameterType.AUTO_MOINSCHULE_GROUPUUID]: () => false,
};

public static isValueValidForType(type: CustomParameterType, val: string): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const typeMapping: Record<CustomParameterTypeParams, CustomParameterType> = {
[CustomParameterTypeParams.AUTO_SCHOOLID]: CustomParameterType.AUTO_SCHOOLID,
[CustomParameterTypeParams.AUTO_SCHOOLNUMBER]: CustomParameterType.AUTO_SCHOOLNUMBER,
[CustomParameterTypeParams.AUTO_MEDIUMID]: CustomParameterType.AUTO_MEDIUMID,
[CustomParameterTypeParams.AUTO_MOINSCHULE_GROUPUUID]: CustomParameterType.AUTO_MOINSCHULE_GROUPUUID,
};

@Injectable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const typeMapping: Record<CustomParameterType, CustomParameterTypeParams> = {
[CustomParameterType.AUTO_SCHOOLID]: CustomParameterTypeParams.AUTO_SCHOOLID,
[CustomParameterType.AUTO_SCHOOLNUMBER]: CustomParameterTypeParams.AUTO_SCHOOLNUMBER,
[CustomParameterType.AUTO_MEDIUMID]: CustomParameterTypeParams.AUTO_MEDIUMID,
[CustomParameterType.AUTO_MOINSCHULE_GROUPUUID]: CustomParameterTypeParams.AUTO_MOINSCHULE_GROUPUUID,
};

@Injectable()
Expand Down

0 comments on commit c8fbf70

Please sign in to comment.