@forwardslashns/taskit-validation-messages 1.10.5 → 1.10.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.5",
3
+ "version": "1.10.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -34,22 +34,24 @@ export const CLIENT_RELATIONSHIPS_COMMON = {
34
34
  affectedFields: ['endingDate'],
35
35
  },
36
36
  ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
37
- message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
38
- params: ['clientCloseDate'],
37
+ message: `{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.`,
38
+ params: ['clientName', 'clientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
39
39
  affectedFields: ['endingDate'],
40
40
  },
41
41
  ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
42
- message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
43
- params: ['relatedClientName', 'relatedClientCloseDate'],
42
+ message: `{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.`,
43
+ params: ['relatedClientName', 'relatedClientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
44
44
  affectedFields: ['endingDate'],
45
45
  },
46
46
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
47
- message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
48
- affectedFields: ['final'],
47
+ message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.`,
48
+ params: ['clientName', 'relatedClientName', 'clientCloseDate'],
49
+ affectedFields: ['endingDate', 'final'],
49
50
  },
50
51
  FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
51
- message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
52
- affectedFields: ['final'],
52
+ message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.`,
53
+ params: ['clientName', 'relatedClientName', 'relatedClientCloseDate'],
54
+ affectedFields: ['endingDate', 'final'],
53
55
  },
54
56
  CIRCULAR_RELATIONSHIP_DETECTED: {
55
57
  message: `{clientName} is listed as a {relationshipType} of {relatedClientName}, during the same timeframe that {relatedClientName} is listed as a {relationshipType} of {clientName}. Please review the relationship records for both clients and adjust the dates or relationship types to prevent a circular loop.`,