@forwardslashns/taskit-validation-messages 1.10.4 → 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
package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts
CHANGED
|
@@ -4,14 +4,6 @@ export const CLIENT_RECORDS_FILING_STATUSES = {
|
|
|
4
4
|
params: ['id'],
|
|
5
5
|
affectedFields: ['filingStatus'],
|
|
6
6
|
},
|
|
7
|
-
FILING_STATUS_PARENT_REQUIRED: {
|
|
8
|
-
message: `Parent needs to be specified for filing status 'Files under parent'`,
|
|
9
|
-
affectedFields: ['currentParent'],
|
|
10
|
-
},
|
|
11
|
-
CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
12
|
-
message: `Parent needs to be specified for current filing status 'Files under parent'`,
|
|
13
|
-
affectedFields: ['currentParent'],
|
|
14
|
-
},
|
|
15
7
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
16
8
|
message: `The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.`,
|
|
17
9
|
params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
|
|
@@ -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
|
|
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
|
|
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
|
|
48
|
-
|
|
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
|
|
52
|
-
|
|
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.`,
|