@dynamatix/gb-schemas 2.3.276 → 2.3.277

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.
@@ -1 +1 @@
1
- {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAulBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"applicant-welcome-call.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-welcome-call.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6lBhC,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4D,CAAC;AAEnF,eAAe,gBAAgB,CAAC"}
@@ -266,9 +266,12 @@ welcomeCallSchema.virtual('applicantEmployerBusinessName').get(function () {
266
266
  // Check employment information
267
267
  if (applicant.employmentInformationId && typeof applicant.employmentInformationId === 'object') {
268
268
  const employment = applicant.employmentInformationId;
269
+ // If field exists, return the value (or empty string if null/empty)
269
270
  if (employment.employerName && employment.employerName.trim() !== '') {
270
271
  return employment.employerName;
271
272
  }
273
+ // Field exists but no data - return empty string
274
+ return '';
272
275
  }
273
276
  }
274
277
  // Check if it's self-employed or solo trader status - compare by name for stability
@@ -278,9 +281,12 @@ welcomeCallSchema.virtual('applicantEmployerBusinessName').get(function () {
278
281
  // Check self-employment information
279
282
  if (applicant.selfEmployedInformationId && typeof applicant.selfEmployedInformationId === 'object') {
280
283
  const selfEmployment = applicant.selfEmployedInformationId;
284
+ // If field exists, return the value (or empty string if null/empty)
281
285
  if (selfEmployment.nameOfBusiness && selfEmployment.nameOfBusiness.trim() !== '') {
282
286
  return selfEmployment.nameOfBusiness;
283
287
  }
288
+ // Field exists but no data - return empty string
289
+ return '';
284
290
  }
285
291
  }
286
292
  }