thm-p3-configurator 0.0.110 → 0.0.111

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.
@@ -127,8 +127,16 @@ const internalAppointmentFormSchema = (0, _yup.object)({
127
127
  ownershipType: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
128
128
  leaseNumber: (0, _yup.string)().nullable(),
129
129
  firstName: (0, _yup.string)().nullable(),
130
- channelType: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
131
- channelId: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
130
+ channelType: (0, _yup.string)().when('$existingDossierId', {
131
+ is: existingDossierId => !!existingDossierId,
132
+ then: schema => schema.nullable(),
133
+ otherwise: schema => schema.required(_constants__.FORM_ERROR_MESSAGES.required)
134
+ }),
135
+ channelId: (0, _yup.string)().when('$existingDossierId', {
136
+ is: existingDossierId => !!existingDossierId,
137
+ then: schema => schema.nullable(),
138
+ otherwise: schema => schema.required(_constants__.FORM_ERROR_MESSAGES.required)
139
+ }),
132
140
  infix: (0, _yup.string)().nullable(),
133
141
  lastName: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
134
142
  email: (0, _yup.string)().email(_constants__.FORM_ERROR_MESSAGES.email).required(_constants__.FORM_ERROR_MESSAGES.required),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.110",
3
+ "version": "0.0.111",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",