@iservice365/module-hygiene 1.3.0 → 1.4.0

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/dist/index.mjs CHANGED
@@ -4160,6 +4160,7 @@ var scheduleTaskSchema = Joi15.object({
4160
4160
  site: Joi15.string().hex().required(),
4161
4161
  title: Joi15.string().required(),
4162
4162
  frequency: Joi15.string().valid(...allowedFrequency).required(),
4163
+ time: Joi15.string().pattern(/^([0-1]\d|2[0-3]):([0-5]\d)$/).required(),
4163
4164
  day: Joi15.string().valid(...allowedDays).required(),
4164
4165
  weekOfMonth: Joi15.string().valid(...allowedWeekOfMonth).when("frequency", {
4165
4166
  is: Joi15.string().valid("month", "quarter", "year"),
@@ -4213,6 +4214,7 @@ function MScheduleTask(value) {
4213
4214
  site: value.site,
4214
4215
  title: value.title,
4215
4216
  frequency: value.frequency,
4217
+ time: value.time,
4216
4218
  day: value.day,
4217
4219
  weekOfMonth: value.weekOfMonth,
4218
4220
  quarter: value.quarter,
@@ -4370,6 +4372,7 @@ function useScheduleTaskRepository() {
4370
4372
  $project: {
4371
4373
  title: 1,
4372
4374
  frequency: 1,
4375
+ time: 1,
4373
4376
  day: 1,
4374
4377
  weekOfMonth: 1,
4375
4378
  quarter: 1,
@@ -4533,6 +4536,7 @@ function useScheduleTaskController() {
4533
4536
  id: Joi16.string().hex().required(),
4534
4537
  title: Joi16.string().optional().allow("", null),
4535
4538
  frequency: Joi16.string().valid(...allowedFrequency).optional().allow("", null),
4539
+ time: Joi16.string().pattern(/^([0-1]\d|2[0-3]):([0-5]\d)$/).optional().allow("", null),
4536
4540
  day: Joi16.string().valid(...allowedDays).optional().allow("", null),
4537
4541
  weekOfMonth: Joi16.string().valid(...allowedWeekOfMonth).optional().allow("", null),
4538
4542
  quarter: Joi16.string().valid(...allowedQuarter).optional().allow("", null),