@forwardslashns/taskit-validation-messages 1.3.6 → 1.3.7

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.
@@ -7,12 +7,12 @@ export declare const CLIENT_RECORDS_ENTITY_STATES: {
7
7
  readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
8
8
  readonly message: "The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.";
9
9
  readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
10
- readonly affectedFields: readonly ["dateEstablished", "domesticStates"];
10
+ readonly affectedFields: readonly ["dateEstablished", "domesticState"];
11
11
  };
12
12
  readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
13
13
  readonly message: "One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.";
14
14
  readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
15
- readonly affectedFields: readonly ["closeDate", "domesticStates"];
15
+ readonly affectedFields: readonly ["closeDate", "domesticState"];
16
16
  };
17
17
  readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
18
18
  readonly message: "Current Domestic State Starting Date cannot be Empty";
@@ -30,7 +30,7 @@ export declare const CLIENT_RECORDS_ENTITY_STATES: {
30
30
  };
31
31
  readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
32
32
  readonly message: "At least one domestic state should exist";
33
- readonly affectedFields: readonly ["domesticStates"];
33
+ readonly affectedFields: readonly ["domesticState"];
34
34
  };
35
35
  readonly STATES_STARTING_DATE_NOT_POPULATED: {
36
36
  readonly message: "Starting date for {state} cannot be empty";
@@ -55,22 +55,22 @@ export declare const CLIENT_RECORDS_ENTITY_STATES: {
55
55
  readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
56
56
  readonly message: "There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.";
57
57
  readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
58
- readonly affectedFields: readonly ["domesticStates"];
58
+ readonly affectedFields: readonly ["domesticState"];
59
59
  };
60
60
  readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
61
61
  readonly message: "There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. ";
62
62
  readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
63
- readonly affectedFields: readonly ["domesticStates"];
63
+ readonly affectedFields: readonly ["domesticState"];
64
64
  };
65
65
  readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
66
66
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.";
67
67
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
68
- readonly affectedFields: readonly ["domesticStates", "dateEstablished"];
68
+ readonly affectedFields: readonly ["domesticState", "dateEstablished"];
69
69
  };
70
70
  readonly STATES_DATES_OVERLAP: {
71
71
  readonly message: "The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
72
72
  readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
73
- readonly affectedFields: readonly ["domesticStates"];
73
+ readonly affectedFields: readonly ["domesticState"];
74
74
  };
75
75
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
76
76
  readonly message: "Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.";
@@ -10,12 +10,12 @@ exports.CLIENT_RECORDS_ENTITY_STATES = {
10
10
  NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
11
11
  message: `The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.`,
12
12
  params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
13
- affectedFields: ['dateEstablished', 'domesticStates'],
13
+ affectedFields: ['dateEstablished', 'domesticState'],
14
14
  },
15
15
  NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
16
16
  message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
17
17
  params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
18
- affectedFields: ['closeDate', 'domesticStates'],
18
+ affectedFields: ['closeDate', 'domesticState'],
19
19
  },
20
20
  DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
21
21
  message: `Current Domestic State Starting Date cannot be Empty`,
@@ -33,7 +33,7 @@ exports.CLIENT_RECORDS_ENTITY_STATES = {
33
33
  },
34
34
  AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
35
35
  message: `At least one domestic state should exist`,
36
- affectedFields: ['domesticStates'],
36
+ affectedFields: ['domesticState'],
37
37
  },
38
38
  STATES_STARTING_DATE_NOT_POPULATED: {
39
39
  message: `Starting date for {state} cannot be empty`,
@@ -58,22 +58,22 @@ exports.CLIENT_RECORDS_ENTITY_STATES = {
58
58
  DOMESTIC_STATES_DATE_GAP_DETECTED: {
59
59
  message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
60
60
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
61
- affectedFields: ['domesticStates'],
61
+ affectedFields: ['domesticState'],
62
62
  },
63
63
  STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
64
64
  message: `There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. `,
65
65
  params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
66
- affectedFields: ['domesticStates'],
66
+ affectedFields: ['domesticState'],
67
67
  },
68
68
  DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
69
69
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.`,
70
70
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
71
- affectedFields: ['domesticStates', 'dateEstablished'],
71
+ affectedFields: ['domesticState', 'dateEstablished'],
72
72
  },
73
73
  STATES_DATES_OVERLAP: {
74
74
  message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
75
75
  params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
76
- affectedFields: ['domesticStates'],
76
+ affectedFields: ['domesticState'],
77
77
  },
78
78
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
79
79
  message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
@@ -7,12 +7,12 @@ export declare const CLIENT_RECORDS_ENTITY_TYPES: {
7
7
  readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
8
8
  readonly message: "One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.";
9
9
  readonly params: readonly ["clientDateEstablished", "entityType", "entityTypeStartingDate"];
10
- readonly affectedFields: readonly ["dateEstablished", "entityTypes"];
10
+ readonly affectedFields: readonly ["dateEstablished", "entityType"];
11
11
  };
12
12
  readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
13
13
  readonly message: "One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.";
14
14
  readonly params: readonly ["clientCloseDate", "entityType", "entityTypeStartingDate"];
15
- readonly affectedFields: readonly ["closeDate", "entityTypes"];
15
+ readonly affectedFields: readonly ["closeDate", "entityType"];
16
16
  };
17
17
  readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
18
18
  readonly message: "Current Entity Type Starting Date cannot be Empty";
@@ -29,7 +29,7 @@ export declare const CLIENT_RECORDS_ENTITY_TYPES: {
29
29
  };
30
30
  readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
31
31
  readonly message: "At least one entity type should exist";
32
- readonly affectedFields: readonly ["entityTypes"];
32
+ readonly affectedFields: readonly ["entityType"];
33
33
  };
34
34
  readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
35
35
  readonly message: "Starting date for {entityType} cannot be empty";
@@ -54,22 +54,22 @@ export declare const CLIENT_RECORDS_ENTITY_TYPES: {
54
54
  readonly ENTITY_TYPES_DATE_GAP_DETECTED: {
55
55
  readonly message: "There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.";
56
56
  readonly params: readonly ["currentEntityType", "currentEntityTypeEndDate", "nextEntityType", "nextEntityTypeStartDate"];
57
- readonly affectedFields: readonly ["entityTypes"];
57
+ readonly affectedFields: readonly ["entityType"];
58
58
  };
59
59
  readonly ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
60
60
  readonly message: "There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. ";
61
61
  readonly params: readonly ["entityType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
62
- readonly affectedFields: readonly ["entityTypes"];
62
+ readonly affectedFields: readonly ["entityType"];
63
63
  };
64
64
  readonly ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
65
65
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.";
66
66
  readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
67
- readonly affectedFields: readonly ["entityTypes", "dateEstablished"];
67
+ readonly affectedFields: readonly ["entityType", "dateEstablished"];
68
68
  };
69
69
  readonly ENTITY_TYPES_DATES_OVERLAP: {
70
70
  readonly message: "The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
71
71
  readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
72
- readonly affectedFields: readonly ["entityTypes"];
72
+ readonly affectedFields: readonly ["entityType"];
73
73
  };
74
74
  readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
75
75
  readonly message: "Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.";
@@ -10,12 +10,12 @@ exports.CLIENT_RECORDS_ENTITY_TYPES = {
10
10
  NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
11
11
  message: `One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
12
12
  params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
13
- affectedFields: ['dateEstablished', 'entityTypes'],
13
+ affectedFields: ['dateEstablished', 'entityType'],
14
14
  },
15
15
  NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
16
16
  message: `One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
17
17
  params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
18
- affectedFields: ['closeDate', 'entityTypes'],
18
+ affectedFields: ['closeDate', 'entityType'],
19
19
  },
20
20
  ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
21
21
  message: `Current Entity Type Starting Date cannot be Empty`,
@@ -32,7 +32,7 @@ exports.CLIENT_RECORDS_ENTITY_TYPES = {
32
32
  },
33
33
  AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
34
34
  message: `At least one entity type should exist`,
35
- affectedFields: ['entityTypes'],
35
+ affectedFields: ['entityType'],
36
36
  },
37
37
  ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
38
38
  message: `Starting date for {entityType} cannot be empty`,
@@ -57,22 +57,22 @@ exports.CLIENT_RECORDS_ENTITY_TYPES = {
57
57
  ENTITY_TYPES_DATE_GAP_DETECTED: {
58
58
  message: `There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.`,
59
59
  params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
60
- affectedFields: ['entityTypes'],
60
+ affectedFields: ['entityType'],
61
61
  },
62
62
  ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
63
63
  message: `There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. `,
64
64
  params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
65
- affectedFields: ['entityTypes'],
65
+ affectedFields: ['entityType'],
66
66
  },
67
67
  ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
68
68
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.`,
69
69
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
70
- affectedFields: ['entityTypes', 'dateEstablished'],
70
+ affectedFields: ['entityType', 'dateEstablished'],
71
71
  },
72
72
  ENTITY_TYPES_DATES_OVERLAP: {
73
73
  message: `The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
74
74
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
75
- affectedFields: ['entityTypes'],
75
+ affectedFields: ['entityType'],
76
76
  },
77
77
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
78
78
  message: `Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.`,
@@ -15,12 +15,12 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
15
15
  readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
16
16
  readonly message: "The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.";
17
17
  readonly params: readonly ["clientDateEstablished", "filingType", "filingTypeStartingDate"];
18
- readonly affectedFields: readonly ["dateEstablished", "filingTypes"];
18
+ readonly affectedFields: readonly ["dateEstablished", "filingType"];
19
19
  };
20
20
  readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
21
21
  readonly message: "One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.";
22
22
  readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
23
- readonly affectedFields: readonly ["closeDate", "filingTypes"];
23
+ readonly affectedFields: readonly ["closeDate", "filingType"];
24
24
  };
25
25
  readonly FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
26
26
  readonly message: "Current Parent/Sub status Starting Date cannot be Empty";
@@ -37,7 +37,7 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
37
37
  };
38
38
  readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
39
39
  readonly message: "At least one Parent/Sub status should exist";
40
- readonly affectedFields: readonly ["filingTypes"];
40
+ readonly affectedFields: readonly ["filingType"];
41
41
  };
42
42
  readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
43
43
  readonly message: "Starting date for {filingType} cannot be empty";
@@ -62,22 +62,22 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
62
62
  readonly FILING_TYPES_DATE_GAP_DETECTED: {
63
63
  readonly message: "There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.";
64
64
  readonly params: readonly ["currentFilingType", "currentFilingTypeEndDate", "nextFilingType", "nextFilingTypeStartDate"];
65
- readonly affectedFields: readonly ["filingTypes"];
65
+ readonly affectedFields: readonly ["filingType"];
66
66
  };
67
67
  readonly FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
68
68
  readonly message: "There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. ";
69
69
  readonly params: readonly ["filingType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
70
- readonly affectedFields: readonly ["filingTypes"];
70
+ readonly affectedFields: readonly ["filingType"];
71
71
  };
72
72
  readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
73
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.";
74
74
  readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
75
- readonly affectedFields: readonly ["filingTypes", "dateEstablished"];
75
+ readonly affectedFields: readonly ["filingType", "dateEstablished"];
76
76
  };
77
77
  readonly FILING_TYPES_DATES_OVERLAP: {
78
78
  readonly message: "The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
79
79
  readonly params: readonly ["filingType", "startDate1", "endDate1", "startDate2", "endDate2"];
80
- readonly affectedFields: readonly ["filingTypes"];
80
+ readonly affectedFields: readonly ["filingType"];
81
81
  };
82
82
  readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
83
83
  readonly message: "Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.";
@@ -18,12 +18,12 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
18
18
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
19
19
  message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
20
20
  params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
21
- affectedFields: ['dateEstablished', 'filingTypes'],
21
+ affectedFields: ['dateEstablished', 'filingType'],
22
22
  },
23
23
  NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
24
24
  message: `One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
25
25
  params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
26
- affectedFields: ['closeDate', 'filingTypes'],
26
+ affectedFields: ['closeDate', 'filingType'],
27
27
  },
28
28
  FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
29
29
  message: `Current Parent/Sub status Starting Date cannot be Empty`,
@@ -40,7 +40,7 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
40
40
  },
41
41
  AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
42
42
  message: `At least one Parent/Sub status should exist`,
43
- affectedFields: ['filingTypes'],
43
+ affectedFields: ['filingType'],
44
44
  },
45
45
  FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
46
46
  message: `Starting date for {filingType} cannot be empty`,
@@ -65,22 +65,22 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
65
65
  FILING_TYPES_DATE_GAP_DETECTED: {
66
66
  message: `There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.`,
67
67
  params: ['currentFilingType', 'currentFilingTypeEndDate', 'nextFilingType', 'nextFilingTypeStartDate'],
68
- affectedFields: ['filingTypes'],
68
+ affectedFields: ['filingType'],
69
69
  },
70
70
  FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
71
71
  message: `There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. `,
72
72
  params: ['filingType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
73
- affectedFields: ['filingTypes'],
73
+ affectedFields: ['filingType'],
74
74
  },
75
75
  FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
76
76
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
77
77
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
78
- affectedFields: ['filingTypes', 'dateEstablished'],
78
+ affectedFields: ['filingType', 'dateEstablished'],
79
79
  },
80
80
  FILING_TYPES_DATES_OVERLAP: {
81
81
  message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
82
82
  params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
83
- affectedFields: ['filingTypes'],
83
+ affectedFields: ['filingType'],
84
84
  },
85
85
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
86
86
  message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,
@@ -360,12 +360,12 @@ export declare const VALIDATION_MESSAGES: {
360
360
  readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
361
361
  readonly message: "One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.";
362
362
  readonly params: readonly ["clientDateEstablished", "entityType", "entityTypeStartingDate"];
363
- readonly affectedFields: readonly ["dateEstablished", "entityTypes"];
363
+ readonly affectedFields: readonly ["dateEstablished", "entityType"];
364
364
  };
365
365
  readonly NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
366
366
  readonly message: "One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.";
367
367
  readonly params: readonly ["clientCloseDate", "entityType", "entityTypeStartingDate"];
368
- readonly affectedFields: readonly ["closeDate", "entityTypes"];
368
+ readonly affectedFields: readonly ["closeDate", "entityType"];
369
369
  };
370
370
  readonly ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
371
371
  readonly message: "Current Entity Type Starting Date cannot be Empty";
@@ -382,7 +382,7 @@ export declare const VALIDATION_MESSAGES: {
382
382
  };
383
383
  readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
384
384
  readonly message: "At least one entity type should exist";
385
- readonly affectedFields: readonly ["entityTypes"];
385
+ readonly affectedFields: readonly ["entityType"];
386
386
  };
387
387
  readonly ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
388
388
  readonly message: "Starting date for {entityType} cannot be empty";
@@ -407,22 +407,22 @@ export declare const VALIDATION_MESSAGES: {
407
407
  readonly ENTITY_TYPES_DATE_GAP_DETECTED: {
408
408
  readonly message: "There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.";
409
409
  readonly params: readonly ["currentEntityType", "currentEntityTypeEndDate", "nextEntityType", "nextEntityTypeStartDate"];
410
- readonly affectedFields: readonly ["entityTypes"];
410
+ readonly affectedFields: readonly ["entityType"];
411
411
  };
412
412
  readonly ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
413
413
  readonly message: "There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. ";
414
414
  readonly params: readonly ["entityType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
415
- readonly affectedFields: readonly ["entityTypes"];
415
+ readonly affectedFields: readonly ["entityType"];
416
416
  };
417
417
  readonly ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
418
418
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.";
419
419
  readonly params: readonly ["dateEstablished", "earliestEntityType", "earliestEntityTypeStartDate"];
420
- readonly affectedFields: readonly ["entityTypes", "dateEstablished"];
420
+ readonly affectedFields: readonly ["entityType", "dateEstablished"];
421
421
  };
422
422
  readonly ENTITY_TYPES_DATES_OVERLAP: {
423
423
  readonly message: "The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
424
424
  readonly params: readonly ["entityType", "startDate1", "endDate1", "startDate2", "endDate2"];
425
- readonly affectedFields: readonly ["entityTypes"];
425
+ readonly affectedFields: readonly ["entityType"];
426
426
  };
427
427
  readonly ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
428
428
  readonly message: "Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.";
@@ -450,12 +450,12 @@ export declare const VALIDATION_MESSAGES: {
450
450
  readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
451
451
  readonly message: "The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.";
452
452
  readonly params: readonly ["clientDateEstablished", "filingType", "filingTypeStartingDate"];
453
- readonly affectedFields: readonly ["dateEstablished", "filingTypes"];
453
+ readonly affectedFields: readonly ["dateEstablished", "filingType"];
454
454
  };
455
455
  readonly NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
456
456
  readonly message: "One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.";
457
457
  readonly params: readonly ["clientCloseDate", "filingType", "filingTypeStartingDate"];
458
- readonly affectedFields: readonly ["closeDate", "filingTypes"];
458
+ readonly affectedFields: readonly ["closeDate", "filingType"];
459
459
  };
460
460
  readonly FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
461
461
  readonly message: "Current Parent/Sub status Starting Date cannot be Empty";
@@ -472,7 +472,7 @@ export declare const VALIDATION_MESSAGES: {
472
472
  };
473
473
  readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
474
474
  readonly message: "At least one Parent/Sub status should exist";
475
- readonly affectedFields: readonly ["filingTypes"];
475
+ readonly affectedFields: readonly ["filingType"];
476
476
  };
477
477
  readonly FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
478
478
  readonly message: "Starting date for {filingType} cannot be empty";
@@ -497,22 +497,22 @@ export declare const VALIDATION_MESSAGES: {
497
497
  readonly FILING_TYPES_DATE_GAP_DETECTED: {
498
498
  readonly message: "There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.";
499
499
  readonly params: readonly ["currentFilingType", "currentFilingTypeEndDate", "nextFilingType", "nextFilingTypeStartDate"];
500
- readonly affectedFields: readonly ["filingTypes"];
500
+ readonly affectedFields: readonly ["filingType"];
501
501
  };
502
502
  readonly FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
503
503
  readonly message: "There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. ";
504
504
  readonly params: readonly ["filingType", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
505
- readonly affectedFields: readonly ["filingTypes"];
505
+ readonly affectedFields: readonly ["filingType"];
506
506
  };
507
507
  readonly FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
508
508
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.";
509
509
  readonly params: readonly ["dateEstablished", "earliestFilingType", "earliestFilingTypeStartDate"];
510
- readonly affectedFields: readonly ["filingTypes", "dateEstablished"];
510
+ readonly affectedFields: readonly ["filingType", "dateEstablished"];
511
511
  };
512
512
  readonly FILING_TYPES_DATES_OVERLAP: {
513
513
  readonly message: "The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
514
514
  readonly params: readonly ["filingType", "startDate1", "endDate1", "startDate2", "endDate2"];
515
- readonly affectedFields: readonly ["filingTypes"];
515
+ readonly affectedFields: readonly ["filingType"];
516
516
  };
517
517
  readonly ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
518
518
  readonly message: "Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.";
@@ -532,12 +532,12 @@ export declare const VALIDATION_MESSAGES: {
532
532
  readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
533
533
  readonly message: "The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.";
534
534
  readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
535
- readonly affectedFields: readonly ["dateEstablished", "domesticStates"];
535
+ readonly affectedFields: readonly ["dateEstablished", "domesticState"];
536
536
  };
537
537
  readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
538
538
  readonly message: "One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.";
539
539
  readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
540
- readonly affectedFields: readonly ["closeDate", "domesticStates"];
540
+ readonly affectedFields: readonly ["closeDate", "domesticState"];
541
541
  };
542
542
  readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
543
543
  readonly message: "Current Domestic State Starting Date cannot be Empty";
@@ -555,7 +555,7 @@ export declare const VALIDATION_MESSAGES: {
555
555
  };
556
556
  readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
557
557
  readonly message: "At least one domestic state should exist";
558
- readonly affectedFields: readonly ["domesticStates"];
558
+ readonly affectedFields: readonly ["domesticState"];
559
559
  };
560
560
  readonly STATES_STARTING_DATE_NOT_POPULATED: {
561
561
  readonly message: "Starting date for {state} cannot be empty";
@@ -580,22 +580,22 @@ export declare const VALIDATION_MESSAGES: {
580
580
  readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
581
581
  readonly message: "There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.";
582
582
  readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
583
- readonly affectedFields: readonly ["domesticStates"];
583
+ readonly affectedFields: readonly ["domesticState"];
584
584
  };
585
585
  readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
586
586
  readonly message: "There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. ";
587
587
  readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
588
- readonly affectedFields: readonly ["domesticStates"];
588
+ readonly affectedFields: readonly ["domesticState"];
589
589
  };
590
590
  readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
591
591
  readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.";
592
592
  readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
593
- readonly affectedFields: readonly ["domesticStates", "dateEstablished"];
593
+ readonly affectedFields: readonly ["domesticState", "dateEstablished"];
594
594
  };
595
595
  readonly STATES_DATES_OVERLAP: {
596
596
  readonly message: "The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
597
597
  readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
598
- readonly affectedFields: readonly ["domesticStates"];
598
+ readonly affectedFields: readonly ["domesticState"];
599
599
  };
600
600
  readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
601
601
  readonly message: "Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -7,12 +7,12 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
7
7
  NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
8
8
  message: `The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.`,
9
9
  params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
10
- affectedFields: ['dateEstablished', 'domesticStates'],
10
+ affectedFields: ['dateEstablished', 'domesticState'],
11
11
  },
12
12
  NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
13
13
  message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
14
14
  params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
15
- affectedFields: ['closeDate', 'domesticStates'],
15
+ affectedFields: ['closeDate', 'domesticState'],
16
16
  },
17
17
  DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
18
18
  message: `Current Domestic State Starting Date cannot be Empty`,
@@ -30,7 +30,7 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
30
30
  },
31
31
  AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
32
32
  message: `At least one domestic state should exist`,
33
- affectedFields: ['domesticStates'],
33
+ affectedFields: ['domesticState'],
34
34
  },
35
35
  STATES_STARTING_DATE_NOT_POPULATED: {
36
36
  message: `Starting date for {state} cannot be empty`,
@@ -55,22 +55,22 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
55
55
  DOMESTIC_STATES_DATE_GAP_DETECTED: {
56
56
  message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
57
57
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
58
- affectedFields: ['domesticStates'],
58
+ affectedFields: ['domesticState'],
59
59
  },
60
60
  STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
61
61
  message: `There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. `,
62
62
  params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
63
- affectedFields: ['domesticStates'],
63
+ affectedFields: ['domesticState'],
64
64
  },
65
65
  DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
66
66
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.`,
67
67
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
68
- affectedFields: ['domesticStates', 'dateEstablished'],
68
+ affectedFields: ['domesticState', 'dateEstablished'],
69
69
  },
70
70
  STATES_DATES_OVERLAP: {
71
71
  message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
72
72
  params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
73
- affectedFields: ['domesticStates'],
73
+ affectedFields: ['domesticState'],
74
74
  },
75
75
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
76
76
  message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
@@ -7,12 +7,12 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
7
7
  NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
8
8
  message: `One or more entity types have a start date that is before the client's date established, {clientDateEstablished}. ({entityType} starting {entityTypeStartingDate}). Please update the entity type start dates to be on or after the client's date established, or update the client's date established.`,
9
9
  params: ['clientDateEstablished', 'entityType', 'entityTypeStartingDate'],
10
- affectedFields: ['dateEstablished', 'entityTypes'],
10
+ affectedFields: ['dateEstablished', 'entityType'],
11
11
  },
12
12
  NOT_ALIGNED_CLOSE_DATE_ENTITY_TYPE_STARTING_DATE: {
13
13
  message: `One or more entity types have start dates that are after the client's close date, {clientCloseDate}. {entityType} starting {entityTypeStartingDate}. Please update the entity type/s end date/s to be on or before the client's close date, or update the client's close date.`,
14
14
  params: ['clientCloseDate', 'entityType', 'entityTypeStartingDate'],
15
- affectedFields: ['closeDate', 'entityTypes'],
15
+ affectedFields: ['closeDate', 'entityType'],
16
16
  },
17
17
  ENTITY_TYPE_STARTING_DATE_NOT_POPULATED: {
18
18
  message: `Current Entity Type Starting Date cannot be Empty`,
@@ -29,7 +29,7 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
29
29
  },
30
30
  AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
31
31
  message: `At least one entity type should exist`,
32
- affectedFields: ['entityTypes'],
32
+ affectedFields: ['entityType'],
33
33
  },
34
34
  ENTITY_TYPES_STARTING_DATE_NOT_POPULATED: {
35
35
  message: `Starting date for {entityType} cannot be empty`,
@@ -54,22 +54,22 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
54
54
  ENTITY_TYPES_DATE_GAP_DETECTED: {
55
55
  message: `There is a gap in the timeframes between {currentEntityType}, ending {currentEntityTypeEndDate}, and {nextEntityType}, starting {nextEntityTypeStartDate}. Please adjust the dates to fill this gap.`,
56
56
  params: ['currentEntityType', 'currentEntityTypeEndDate', 'nextEntityType', 'nextEntityTypeStartDate'],
57
- affectedFields: ['entityTypes'],
57
+ affectedFields: ['entityType'],
58
58
  },
59
59
  ENTITY_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
60
60
  message: `There are two entries for {entityType} with timeframes that immediately follow each other. {entityType} ending {firstPeriodEnd}, and {entityType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {entityType}. `,
61
61
  params: ['entityType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
62
- affectedFields: ['entityTypes'],
62
+ affectedFields: ['entityType'],
63
63
  },
64
64
  ENTITY_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
65
65
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first entity type ({earliestEntityType} starting {earliestEntityTypeStartDate}). There must be an entity type that begins on {dateEstablished}.`,
66
66
  params: ['dateEstablished', 'earliestEntityType', 'earliestEntityTypeStartDate'],
67
- affectedFields: ['entityTypes', 'dateEstablished'],
67
+ affectedFields: ['entityType', 'dateEstablished'],
68
68
  },
69
69
  ENTITY_TYPES_DATES_OVERLAP: {
70
70
  message: `The client already has {entityType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
71
71
  params: ['entityType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
72
- affectedFields: ['entityTypes'],
72
+ affectedFields: ['entityType'],
73
73
  },
74
74
  ALL_NON_LAST_ENTITY_TYPES_REQUIRE_ENDING_DATE: {
75
75
  message: `Only the last entity type can be open without an end date. Add an ending date to the existing entity type before adding a start date for a new entity type.`,
@@ -15,12 +15,12 @@ export const CLIENT_RECORDS_FILING_TYPES = {
15
15
  NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
16
16
  message: `The Parent/Sub status {filingType} starts on {filingTypeStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Parent/Sub status or the client's date established.`,
17
17
  params: ['clientDateEstablished', 'filingType', 'filingTypeStartingDate'],
18
- affectedFields: ['dateEstablished', 'filingTypes'],
18
+ affectedFields: ['dateEstablished', 'filingType'],
19
19
  },
20
20
  NOT_ALIGNED_CLOSE_DATE_FILING_TYPE_STARTING_DATE: {
21
21
  message: `One or more Parent/Sub status have a start date which is after the client's close date of {clientCloseDate}. {filingType}, starting {filingTypeStartingDate}. Please update the start date to be earlier than the client's close date, or update the client's close date.`,
22
22
  params: ['clientCloseDate', 'filingType', 'filingTypeStartingDate'],
23
- affectedFields: ['closeDate', 'filingTypes'],
23
+ affectedFields: ['closeDate', 'filingType'],
24
24
  },
25
25
  FILING_TYPE_STARTING_DATE_NOT_POPULATED: {
26
26
  message: `Current Parent/Sub status Starting Date cannot be Empty`,
@@ -37,7 +37,7 @@ export const CLIENT_RECORDS_FILING_TYPES = {
37
37
  },
38
38
  AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
39
39
  message: `At least one Parent/Sub status should exist`,
40
- affectedFields: ['filingTypes'],
40
+ affectedFields: ['filingType'],
41
41
  },
42
42
  FILING_TYPES_STARTING_DATE_NOT_POPULATED: {
43
43
  message: `Starting date for {filingType} cannot be empty`,
@@ -62,22 +62,22 @@ export const CLIENT_RECORDS_FILING_TYPES = {
62
62
  FILING_TYPES_DATE_GAP_DETECTED: {
63
63
  message: `There is a gap in the timeframes between {currentFilingType}, ending {currentFilingTypeEndDate}, and {nextFilingType}, starting {nextFilingTypeStartDate}. Please adjust the dates to fill this gap.`,
64
64
  params: ['currentFilingType', 'currentFilingTypeEndDate', 'nextFilingType', 'nextFilingTypeStartDate'],
65
- affectedFields: ['filingTypes'],
65
+ affectedFields: ['filingType'],
66
66
  },
67
67
  FILING_TYPES_CONSECUTIVE_DUPLICATES_DETECTED: {
68
68
  message: `There are two entries for {filingType} with timeframes that immediately follow each other. {filingType} ending {firstPeriodEnd}, and {filingType} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {filingType}. `,
69
69
  params: ['filingType', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
70
- affectedFields: ['filingTypes'],
70
+ affectedFields: ['filingType'],
71
71
  },
72
72
  FILING_TYPE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
73
73
  message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first Parent/Sub status ({earliestFilingType} starting {earliestFilingTypeStartDate}). There must be a Parent/Sub status that begins on {dateEstablished}.`,
74
74
  params: ['dateEstablished', 'earliestFilingType', 'earliestFilingTypeStartDate'],
75
- affectedFields: ['filingTypes', 'dateEstablished'],
75
+ affectedFields: ['filingType', 'dateEstablished'],
76
76
  },
77
77
  FILING_TYPES_DATES_OVERLAP: {
78
78
  message: `The client already has {filingType} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
79
79
  params: ['filingType', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
80
- affectedFields: ['filingTypes'],
80
+ affectedFields: ['filingType'],
81
81
  },
82
82
  ALL_NON_LAST_FILING_TYPES_REQUIRE_ENDING_DATE: {
83
83
  message: `Only the last Parent/Sub status can be open without an end date. Add an ending date to the existing Parent/Sub status before adding a start date for a new Parent/Sub status.`,