@forwardslashns/taskit-validation-messages 1.9.3 → 1.9.4
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/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +4 -4
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +4 -4
- package/dist/validation/features/client-records-addresses.validation-messages.d.ts +5 -5
- package/dist/validation/features/client-records-addresses.validation-messages.js +5 -5
- package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +3 -3
- package/dist/validation/features/client-records-commission-details.validation-messages.js +3 -3
- package/dist/validation/features/client-records-contacts.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-records-contacts.validation-messages.js +2 -2
- package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +1 -1
- package/dist/validation/features/client-records-credit-cards.validation-messages.js +1 -1
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +4 -4
- package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +4 -4
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +2 -2
- package/dist/validation/features/client-records-filing-types-histories.validation-messages.d.ts +4 -4
- package/dist/validation/features/client-records-filing-types-histories.validation-messages.js +4 -4
- package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-records-outside-providers.validation-messages.js +2 -2
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +2 -2
- package/dist/validation/features/client-relationships-common.validation-messages.js +2 -2
- package/dist/validation/features/template-assignments.validation-messages.d.ts +4 -4
- package/dist/validation/features/template-assignments.validation-messages.js +4 -4
- package/dist/validation/features/templates.validation-messages.d.ts +8 -8
- package/dist/validation/features/templates.validation-messages.js +8 -8
- package/dist/validation/validation-messages.d.ts +41 -41
- package/package.json +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +4 -4
- package/src/validation/features/client-records-addresses.validation-messages.ts +5 -5
- package/src/validation/features/client-records-commission-details.validation-messages.ts +3 -3
- package/src/validation/features/client-records-contacts.validation-messages.ts +2 -2
- package/src/validation/features/client-records-credit-cards.validation-messages.ts +1 -1
- package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +4 -4
- package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +2 -2
- package/src/validation/features/client-records-filing-types-histories.validation-messages.ts +4 -4
- package/src/validation/features/client-records-outside-providers.validation-messages.ts +2 -2
- package/src/validation/features/client-relationships-common.validation-messages.ts +2 -2
- package/src/validation/features/template-assignments.validation-messages.ts +4 -4
- package/src/validation/features/templates.validation-messages.ts +8 -8
|
@@ -16,12 +16,12 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
16
16
|
readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
17
|
readonly message: "Filing category does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
20
20
|
};
|
|
21
21
|
readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
22
22
|
readonly message: "Business activity does not exist";
|
|
23
23
|
readonly params: readonly ["id"];
|
|
24
|
-
readonly affectedFields: readonly ["
|
|
24
|
+
readonly affectedFields: readonly ["businessActivity"];
|
|
25
25
|
};
|
|
26
26
|
readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
27
27
|
readonly message: "Billing type does not exist";
|
|
@@ -56,7 +56,7 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
56
56
|
};
|
|
57
57
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
|
|
58
58
|
readonly message: "Choose a Business Activity";
|
|
59
|
-
readonly affectedFields: readonly ["
|
|
59
|
+
readonly affectedFields: readonly ["businessActivity"];
|
|
60
60
|
};
|
|
61
61
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
|
|
62
62
|
readonly message: "Choose a Billing Type";
|
|
@@ -64,7 +64,7 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
64
64
|
};
|
|
65
65
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
|
|
66
66
|
readonly message: "Choose a Filing Category";
|
|
67
|
-
readonly affectedFields: readonly ["
|
|
67
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
68
68
|
};
|
|
69
69
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
|
|
70
70
|
readonly message: "Create a Contact - One contact needs to have been saved to this client";
|
|
@@ -19,12 +19,12 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
19
19
|
FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
20
20
|
message: `Filing category does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['filingCategory'],
|
|
23
23
|
},
|
|
24
24
|
BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
25
25
|
message: `Business activity does not exist`,
|
|
26
26
|
params: ['id'],
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['businessActivity'],
|
|
28
28
|
},
|
|
29
29
|
BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
30
30
|
message: `Billing type does not exist`,
|
|
@@ -59,7 +59,7 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
59
59
|
},
|
|
60
60
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
|
|
61
61
|
message: `Choose a Business Activity`,
|
|
62
|
-
affectedFields: ['
|
|
62
|
+
affectedFields: ['businessActivity'],
|
|
63
63
|
},
|
|
64
64
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
|
|
65
65
|
message: `Choose a Billing Type`,
|
|
@@ -67,7 +67,7 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
67
67
|
},
|
|
68
68
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
|
|
69
69
|
message: `Choose a Filing Category`,
|
|
70
|
-
affectedFields: ['
|
|
70
|
+
affectedFields: ['filingCategory'],
|
|
71
71
|
},
|
|
72
72
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
|
|
73
73
|
message: `Create a Contact - One contact needs to have been saved to this client`,
|
|
@@ -2,27 +2,27 @@ export declare const CLIENT_RECORDS_ADDRESSES: {
|
|
|
2
2
|
readonly STATES_NOT_FOUND: {
|
|
3
3
|
readonly message: "States do not exist";
|
|
4
4
|
readonly params: readonly ["ids"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["state"];
|
|
6
6
|
};
|
|
7
7
|
readonly INVALID_STATE_TYPE: {
|
|
8
8
|
readonly message: "States are not of type 'State'";
|
|
9
9
|
readonly params: readonly ["ids"];
|
|
10
|
-
readonly affectedFields: readonly ["
|
|
10
|
+
readonly affectedFields: readonly ["state"];
|
|
11
11
|
};
|
|
12
12
|
readonly CITIES_NOT_FOUND: {
|
|
13
13
|
readonly message: "Cities do not exist";
|
|
14
14
|
readonly params: readonly ["ids"];
|
|
15
|
-
readonly affectedFields: readonly ["
|
|
15
|
+
readonly affectedFields: readonly ["city"];
|
|
16
16
|
};
|
|
17
17
|
readonly INVALID_CITY_TYPE: {
|
|
18
18
|
readonly message: "Cities are not of type 'City'";
|
|
19
19
|
readonly params: readonly ["ids"];
|
|
20
|
-
readonly affectedFields: readonly ["
|
|
20
|
+
readonly affectedFields: readonly ["city"];
|
|
21
21
|
};
|
|
22
22
|
readonly ZIP_CODES_NOT_FOUND: {
|
|
23
23
|
readonly message: "Zip codes do not exist";
|
|
24
24
|
readonly params: readonly ["ids"];
|
|
25
|
-
readonly affectedFields: readonly ["
|
|
25
|
+
readonly affectedFields: readonly ["zip"];
|
|
26
26
|
};
|
|
27
27
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
28
28
|
readonly message: "Contact roles do not exist";
|
|
@@ -5,27 +5,27 @@ exports.CLIENT_RECORDS_ADDRESSES = {
|
|
|
5
5
|
STATES_NOT_FOUND: {
|
|
6
6
|
message: 'States do not exist',
|
|
7
7
|
params: ['ids'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['state'],
|
|
9
9
|
},
|
|
10
10
|
INVALID_STATE_TYPE: {
|
|
11
11
|
message: `States are not of type 'State'`,
|
|
12
12
|
params: ['ids'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['state'],
|
|
14
14
|
},
|
|
15
15
|
CITIES_NOT_FOUND: {
|
|
16
16
|
message: `Cities do not exist`,
|
|
17
17
|
params: ['ids'],
|
|
18
|
-
affectedFields: ['
|
|
18
|
+
affectedFields: ['city'],
|
|
19
19
|
},
|
|
20
20
|
INVALID_CITY_TYPE: {
|
|
21
21
|
message: `Cities are not of type 'City'`,
|
|
22
22
|
params: ['ids'],
|
|
23
|
-
affectedFields: ['
|
|
23
|
+
affectedFields: ['city'],
|
|
24
24
|
},
|
|
25
25
|
ZIP_CODES_NOT_FOUND: {
|
|
26
26
|
message: `Zip codes do not exist`,
|
|
27
27
|
params: ['ids'],
|
|
28
|
-
affectedFields: ['
|
|
28
|
+
affectedFields: ['zip'],
|
|
29
29
|
},
|
|
30
30
|
CONTACT_ROLES_NOT_FOUND: {
|
|
31
31
|
message: `Contact roles do not exist`,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const CLIENT_RECORDS_COMMISSION_DETAILS: {
|
|
2
2
|
readonly INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
3
3
|
readonly message: "If client is subject to commission, sales representative and commission rate must be provided.";
|
|
4
|
-
readonly affectedFields: readonly ["
|
|
4
|
+
readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
|
|
5
5
|
};
|
|
6
6
|
readonly INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
7
7
|
readonly message: "If client is not subject to commission, sales representative and commission rate must not be provided.";
|
|
8
|
-
readonly affectedFields: readonly ["
|
|
8
|
+
readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
|
|
9
9
|
};
|
|
10
10
|
readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
11
11
|
readonly message: "Sales representative does not exist";
|
|
12
12
|
readonly params: readonly ["id"];
|
|
13
|
-
readonly affectedFields: readonly ["
|
|
13
|
+
readonly affectedFields: readonly ["salesRepresentative"];
|
|
14
14
|
};
|
|
15
15
|
readonly COMISSION_RATE_TOO_LOW: {
|
|
16
16
|
readonly message: "Enter a commission value greater than 0.0";
|
|
@@ -4,16 +4,16 @@ exports.CLIENT_RECORDS_COMMISSION_DETAILS = void 0;
|
|
|
4
4
|
exports.CLIENT_RECORDS_COMMISSION_DETAILS = {
|
|
5
5
|
INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
6
6
|
message: 'If client is subject to commission, sales representative and commission rate must be provided.',
|
|
7
|
-
affectedFields: ['
|
|
7
|
+
affectedFields: ['subjectToCommission', 'salesRepresentative', 'commissionRate'],
|
|
8
8
|
},
|
|
9
9
|
INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
10
10
|
message: 'If client is not subject to commission, sales representative and commission rate must not be provided.',
|
|
11
|
-
affectedFields: ['
|
|
11
|
+
affectedFields: ['subjectToCommission', 'salesRepresentative', 'commissionRate'],
|
|
12
12
|
},
|
|
13
13
|
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
14
14
|
message: `Sales representative does not exist`,
|
|
15
15
|
params: ['id'],
|
|
16
|
-
affectedFields: ['
|
|
16
|
+
affectedFields: ['salesRepresentative'],
|
|
17
17
|
},
|
|
18
18
|
COMISSION_RATE_TOO_LOW: {
|
|
19
19
|
message: `Enter a commission value greater than 0.0`,
|
|
@@ -2,12 +2,12 @@ export declare const CLIENT_RECORDS_CONTACTS: {
|
|
|
2
2
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
3
3
|
readonly message: "Contact roles do not exist";
|
|
4
4
|
readonly params: readonly ["ids"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["contact"];
|
|
6
6
|
};
|
|
7
7
|
readonly CONTACT_TYPES_NOT_FOUND: {
|
|
8
8
|
readonly message: "Contact types do not exist";
|
|
9
9
|
readonly params: readonly ["ids"];
|
|
10
|
-
readonly affectedFields: readonly ["
|
|
10
|
+
readonly affectedFields: readonly ["type"];
|
|
11
11
|
};
|
|
12
12
|
readonly LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
13
13
|
readonly message: "The client must have a legal contact. Please set the contact type to 'Legal'.";
|
|
@@ -5,12 +5,12 @@ exports.CLIENT_RECORDS_CONTACTS = {
|
|
|
5
5
|
CONTACT_ROLES_NOT_FOUND: {
|
|
6
6
|
message: `Contact roles do not exist`,
|
|
7
7
|
params: ['ids'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['contact'],
|
|
9
9
|
},
|
|
10
10
|
CONTACT_TYPES_NOT_FOUND: {
|
|
11
11
|
message: `Contact types do not exist`,
|
|
12
12
|
params: ['ids'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['type'],
|
|
14
14
|
},
|
|
15
15
|
LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
16
16
|
message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const CLIENT_RECORDS_CREDIT_CARDS: {
|
|
2
2
|
readonly INVALID_EXPIRATION_DATE: {
|
|
3
3
|
readonly message: "Enter a valid expiration date (i.e. 12/2024).";
|
|
4
|
-
readonly affectedFields: readonly ["
|
|
4
|
+
readonly affectedFields: readonly ["expDate"];
|
|
5
5
|
};
|
|
6
6
|
readonly INVALID_SECURITY_CODE: {
|
|
7
7
|
readonly message: "Enter a valid security code (i.e. 1234).";
|
|
@@ -4,7 +4,7 @@ exports.CLIENT_RECORDS_CREDIT_CARDS = void 0;
|
|
|
4
4
|
exports.CLIENT_RECORDS_CREDIT_CARDS = {
|
|
5
5
|
INVALID_EXPIRATION_DATE: {
|
|
6
6
|
message: 'Enter a valid expiration date (i.e. 12/2024).',
|
|
7
|
-
affectedFields: ['
|
|
7
|
+
affectedFields: ['expDate'],
|
|
8
8
|
},
|
|
9
9
|
INVALID_SECURITY_CODE: {
|
|
10
10
|
message: 'Enter a valid security code (i.e. 1234).',
|
package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const CLIENT_RECORDS_ENTITY_STATES: {
|
|
|
2
2
|
readonly STATE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
readonly message: "State does not exist";
|
|
4
4
|
readonly params: readonly ["id"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["state"];
|
|
6
6
|
};
|
|
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.";
|
|
@@ -16,17 +16,17 @@ export declare const CLIENT_RECORDS_ENTITY_STATES: {
|
|
|
16
16
|
};
|
|
17
17
|
readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
|
|
18
18
|
readonly message: "Current Domestic State Starting Date cannot be Empty";
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["stateStartingDate"];
|
|
20
20
|
};
|
|
21
21
|
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
22
22
|
readonly message: "States do not exist";
|
|
23
23
|
readonly params: readonly ["ids"];
|
|
24
|
-
readonly affectedFields: readonly ["
|
|
24
|
+
readonly affectedFields: readonly ["state"];
|
|
25
25
|
};
|
|
26
26
|
readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
27
27
|
readonly message: "Residence type does not exist";
|
|
28
28
|
readonly params: readonly ["ids"];
|
|
29
|
-
readonly affectedFields: readonly ["
|
|
29
|
+
readonly affectedFields: readonly ["residence"];
|
|
30
30
|
};
|
|
31
31
|
readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
32
32
|
readonly message: "At least one domestic state should exist";
|
package/dist/validation/features/client-records-entity-states-histories.validation-messages.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.CLIENT_RECORDS_ENTITY_STATES = {
|
|
|
5
5
|
STATE_ID_DOES_NOT_EXIST: {
|
|
6
6
|
message: `State does not exist`,
|
|
7
7
|
params: ['id'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['state'],
|
|
9
9
|
},
|
|
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.`,
|
|
@@ -19,17 +19,17 @@ exports.CLIENT_RECORDS_ENTITY_STATES = {
|
|
|
19
19
|
},
|
|
20
20
|
DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
|
|
21
21
|
message: `Current Domestic State Starting Date cannot be Empty`,
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['stateStartingDate'],
|
|
23
23
|
},
|
|
24
24
|
STATES_IDS_DOES_NOT_EXIST: {
|
|
25
25
|
message: `States do not exist`,
|
|
26
26
|
params: ['ids'],
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['state'],
|
|
28
28
|
},
|
|
29
29
|
RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
30
30
|
message: `Residence type does not exist`,
|
|
31
31
|
params: ['ids'],
|
|
32
|
-
affectedFields: ['
|
|
32
|
+
affectedFields: ['residence'],
|
|
33
33
|
},
|
|
34
34
|
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
35
35
|
message: `At least one domestic state should exist`,
|
package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const CLIENT_RECORDS_ENTITY_TYPES: {
|
|
|
2
2
|
readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
readonly message: "Entity type does not exist";
|
|
4
4
|
readonly params: readonly ["id"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["entityType"];
|
|
6
6
|
};
|
|
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.";
|
|
@@ -25,7 +25,7 @@ export declare const CLIENT_RECORDS_ENTITY_TYPES: {
|
|
|
25
25
|
readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
26
26
|
readonly message: "Entity types do not exist";
|
|
27
27
|
readonly params: readonly ["ids"];
|
|
28
|
-
readonly affectedFields: readonly ["
|
|
28
|
+
readonly affectedFields: readonly ["entityType"];
|
|
29
29
|
};
|
|
30
30
|
readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
|
|
31
31
|
readonly message: "At least one entity type should exist";
|
package/dist/validation/features/client-records-entity-types-histories.validation-messages.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.CLIENT_RECORDS_ENTITY_TYPES = {
|
|
|
5
5
|
ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
6
6
|
message: `Entity type does not exist`,
|
|
7
7
|
params: ['id'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['entityType'],
|
|
9
9
|
},
|
|
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.`,
|
|
@@ -28,7 +28,7 @@ exports.CLIENT_RECORDS_ENTITY_TYPES = {
|
|
|
28
28
|
ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
29
29
|
message: `Entity types do not exist`,
|
|
30
30
|
params: ['ids'],
|
|
31
|
-
affectedFields: ['
|
|
31
|
+
affectedFields: ['entityType'],
|
|
32
32
|
},
|
|
33
33
|
AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
|
|
34
34
|
message: `At least one entity type should exist`,
|
package/dist/validation/features/client-records-filing-types-histories.validation-messages.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
|
|
|
2
2
|
readonly FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
readonly message: "Sub/Parent status does not exist";
|
|
4
4
|
readonly params: readonly ["id"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["filingType"];
|
|
6
6
|
};
|
|
7
7
|
readonly FILING_TYPE_PARENT_REQUIRED: {
|
|
8
8
|
readonly message: "Parent needs to be specified for filing type 'Files under parent'";
|
|
9
|
-
readonly affectedFields: readonly ["
|
|
9
|
+
readonly affectedFields: readonly ["currentParent"];
|
|
10
10
|
};
|
|
11
11
|
readonly CURRENT_FILING_TYPE_PARENT_REQUIRED: {
|
|
12
12
|
readonly message: "Parent needs to be specified for current filing type 'Files under parent'";
|
|
13
|
-
readonly affectedFields: readonly ["
|
|
13
|
+
readonly affectedFields: readonly ["currentParent"];
|
|
14
14
|
};
|
|
15
15
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
16
16
|
readonly message: "The Sub/Parent status {filingType} starts on {filingTypeStartingDate} 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.";
|
|
@@ -33,7 +33,7 @@ export declare const CLIENT_RECORDS_FILING_TYPES: {
|
|
|
33
33
|
readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
34
34
|
readonly message: "Sub/Parent status do not exist";
|
|
35
35
|
readonly params: readonly ["ids"];
|
|
36
|
-
readonly affectedFields: readonly ["
|
|
36
|
+
readonly affectedFields: readonly ["filingType"];
|
|
37
37
|
};
|
|
38
38
|
readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
39
39
|
readonly message: "At least one Sub/Parent status should exist";
|
package/dist/validation/features/client-records-filing-types-histories.validation-messages.js
CHANGED
|
@@ -5,15 +5,15 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
|
|
|
5
5
|
FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
6
6
|
message: `Sub/Parent status does not exist`,
|
|
7
7
|
params: ['id'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['filingType'],
|
|
9
9
|
},
|
|
10
10
|
FILING_TYPE_PARENT_REQUIRED: {
|
|
11
11
|
message: `Parent needs to be specified for filing type 'Files under parent'`,
|
|
12
|
-
affectedFields: ['
|
|
12
|
+
affectedFields: ['currentParent'],
|
|
13
13
|
},
|
|
14
14
|
CURRENT_FILING_TYPE_PARENT_REQUIRED: {
|
|
15
15
|
message: `Parent needs to be specified for current filing type 'Files under parent'`,
|
|
16
|
-
affectedFields: ['
|
|
16
|
+
affectedFields: ['currentParent'],
|
|
17
17
|
},
|
|
18
18
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
19
19
|
message: `The Sub/Parent status {filingType} starts on {filingTypeStartingDate} 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.`,
|
|
@@ -36,7 +36,7 @@ exports.CLIENT_RECORDS_FILING_TYPES = {
|
|
|
36
36
|
FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
37
37
|
message: `Sub/Parent status do not exist`,
|
|
38
38
|
params: ['ids'],
|
|
39
|
-
affectedFields: ['
|
|
39
|
+
affectedFields: ['filingType'],
|
|
40
40
|
},
|
|
41
41
|
AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
42
42
|
message: `At least one Sub/Parent status should exist`,
|
|
@@ -2,12 +2,12 @@ export declare const CLIENT_RECORDS_OUTSIDE_PROVIDERS: {
|
|
|
2
2
|
readonly INVALID_TYPE: {
|
|
3
3
|
readonly message: "Outside provider types do not exist";
|
|
4
4
|
readonly params: readonly ["ids"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["type"];
|
|
6
6
|
};
|
|
7
7
|
readonly SAME_TYPE_TIMELINE_OVERLAP: {
|
|
8
8
|
readonly message: "The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.";
|
|
9
9
|
readonly params: readonly ["outsideProviderType", "startDate"];
|
|
10
|
-
readonly affectedFields: readonly ["
|
|
10
|
+
readonly affectedFields: readonly ["starting", "ending"];
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=client-records-outside-providers.validation-messages.d.ts.map
|
|
@@ -5,11 +5,11 @@ exports.CLIENT_RECORDS_OUTSIDE_PROVIDERS = {
|
|
|
5
5
|
INVALID_TYPE: {
|
|
6
6
|
message: `Outside provider types do not exist`,
|
|
7
7
|
params: ['ids'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['type'],
|
|
9
9
|
},
|
|
10
10
|
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
11
11
|
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
12
12
|
params: ['outsideProviderType', 'startDate'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['starting', 'ending'],
|
|
14
14
|
},
|
|
15
15
|
};
|
|
@@ -45,11 +45,11 @@ export declare const CLIENT_RELATIONSHIPS_COMMON: {
|
|
|
45
45
|
};
|
|
46
46
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
47
47
|
readonly 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
|
-
readonly affectedFields: readonly ["
|
|
48
|
+
readonly affectedFields: readonly ["final"];
|
|
49
49
|
};
|
|
50
50
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
51
51
|
readonly 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
|
-
readonly affectedFields: readonly ["
|
|
52
|
+
readonly affectedFields: readonly ["final"];
|
|
53
53
|
};
|
|
54
54
|
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
55
|
readonly 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.";
|
|
@@ -48,11 +48,11 @@ exports.CLIENT_RELATIONSHIPS_COMMON = {
|
|
|
48
48
|
},
|
|
49
49
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
50
50
|
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.`,
|
|
51
|
-
affectedFields: ['
|
|
51
|
+
affectedFields: ['final'],
|
|
52
52
|
},
|
|
53
53
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
54
54
|
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.`,
|
|
55
|
-
affectedFields: ['
|
|
55
|
+
affectedFields: ['final'],
|
|
56
56
|
},
|
|
57
57
|
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
58
58
|
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.`,
|
|
@@ -9,19 +9,19 @@ export declare const TEMPLATE_ASSIGNMENTS: {
|
|
|
9
9
|
};
|
|
10
10
|
readonly DEFAULT_STAFF_REQUIRED: {
|
|
11
11
|
readonly message: "Default staff is required";
|
|
12
|
-
readonly affectedFields: readonly ["
|
|
12
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
13
13
|
};
|
|
14
14
|
readonly INVALID_STAFF: {
|
|
15
15
|
readonly message: "Invalid staff member";
|
|
16
|
-
readonly affectedFields: readonly ["
|
|
16
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
17
17
|
};
|
|
18
18
|
readonly ASSIGNMENT_TYPE_REQUIRED: {
|
|
19
19
|
readonly message: "Assignment type is required";
|
|
20
|
-
readonly affectedFields: readonly ["
|
|
20
|
+
readonly affectedFields: readonly ["assignmentType"];
|
|
21
21
|
};
|
|
22
22
|
readonly INVALID_ASSIGNMENT_TYPE: {
|
|
23
23
|
readonly message: "Invalid assignment type";
|
|
24
|
-
readonly affectedFields: readonly ["
|
|
24
|
+
readonly affectedFields: readonly ["assignmentType"];
|
|
25
25
|
};
|
|
26
26
|
readonly ORDER_REQUIRED: {
|
|
27
27
|
readonly message: "Order is required for workflow assignments";
|
|
@@ -12,19 +12,19 @@ exports.TEMPLATE_ASSIGNMENTS = {
|
|
|
12
12
|
},
|
|
13
13
|
DEFAULT_STAFF_REQUIRED: {
|
|
14
14
|
message: 'Default staff is required',
|
|
15
|
-
affectedFields: ['
|
|
15
|
+
affectedFields: ['defaultStaff'],
|
|
16
16
|
},
|
|
17
17
|
INVALID_STAFF: {
|
|
18
18
|
message: 'Invalid staff member',
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['defaultStaff'],
|
|
20
20
|
},
|
|
21
21
|
ASSIGNMENT_TYPE_REQUIRED: {
|
|
22
22
|
message: 'Assignment type is required',
|
|
23
|
-
affectedFields: ['
|
|
23
|
+
affectedFields: ['assignmentType'],
|
|
24
24
|
},
|
|
25
25
|
INVALID_ASSIGNMENT_TYPE: {
|
|
26
26
|
message: 'Invalid assignment type',
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['assignmentType'],
|
|
28
28
|
},
|
|
29
29
|
ORDER_REQUIRED: {
|
|
30
30
|
message: 'Order is required for workflow assignments',
|
|
@@ -10,27 +10,27 @@ export declare const TEMPLATES: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly TYPE_REQUIRED: {
|
|
12
12
|
readonly message: "Template type is required";
|
|
13
|
-
readonly affectedFields: readonly ["
|
|
13
|
+
readonly affectedFields: readonly ["type"];
|
|
14
14
|
};
|
|
15
15
|
readonly INVALID_TYPE: {
|
|
16
16
|
readonly message: "Invalid template type";
|
|
17
|
-
readonly affectedFields: readonly ["
|
|
17
|
+
readonly affectedFields: readonly ["type"];
|
|
18
18
|
};
|
|
19
19
|
readonly DEFAULT_STAFF_REQUIRED: {
|
|
20
20
|
readonly message: "Default staff is required";
|
|
21
|
-
readonly affectedFields: readonly ["
|
|
21
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
22
22
|
};
|
|
23
23
|
readonly INVALID_STAFF: {
|
|
24
24
|
readonly message: "Invalid staff member";
|
|
25
|
-
readonly affectedFields: readonly ["
|
|
25
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
26
26
|
};
|
|
27
27
|
readonly INCOME_ACCOUNT_REQUIRED: {
|
|
28
28
|
readonly message: "Income account is required";
|
|
29
|
-
readonly affectedFields: readonly ["
|
|
29
|
+
readonly affectedFields: readonly ["incomeAccount"];
|
|
30
30
|
};
|
|
31
31
|
readonly INVALID_INCOME_ACCOUNT: {
|
|
32
32
|
readonly message: "Invalid income account";
|
|
33
|
-
readonly affectedFields: readonly ["
|
|
33
|
+
readonly affectedFields: readonly ["incomeAccount"];
|
|
34
34
|
};
|
|
35
35
|
readonly AMOUNT_REQUIRED: {
|
|
36
36
|
readonly message: "Amount is required when separately charged";
|
|
@@ -50,11 +50,11 @@ export declare const TEMPLATES: {
|
|
|
50
50
|
};
|
|
51
51
|
readonly INVALID_CLASSIFICATION: {
|
|
52
52
|
readonly message: "Invalid classification";
|
|
53
|
-
readonly affectedFields: readonly ["
|
|
53
|
+
readonly affectedFields: readonly ["classification"];
|
|
54
54
|
};
|
|
55
55
|
readonly INVALID_SETUP_TEMPLATE: {
|
|
56
56
|
readonly message: "Invalid associated setup template";
|
|
57
|
-
readonly affectedFields: readonly ["
|
|
57
|
+
readonly affectedFields: readonly ["associatedSetupTemplate"];
|
|
58
58
|
};
|
|
59
59
|
readonly OPTION_IN_USE: {
|
|
60
60
|
readonly message: "This template is currently in use and cannot be deleted";
|
|
@@ -13,27 +13,27 @@ exports.TEMPLATES = {
|
|
|
13
13
|
},
|
|
14
14
|
TYPE_REQUIRED: {
|
|
15
15
|
message: 'Template type is required',
|
|
16
|
-
affectedFields: ['
|
|
16
|
+
affectedFields: ['type'],
|
|
17
17
|
},
|
|
18
18
|
INVALID_TYPE: {
|
|
19
19
|
message: 'Invalid template type',
|
|
20
|
-
affectedFields: ['
|
|
20
|
+
affectedFields: ['type'],
|
|
21
21
|
},
|
|
22
22
|
DEFAULT_STAFF_REQUIRED: {
|
|
23
23
|
message: 'Default staff is required',
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['defaultStaff'],
|
|
25
25
|
},
|
|
26
26
|
INVALID_STAFF: {
|
|
27
27
|
message: 'Invalid staff member',
|
|
28
|
-
affectedFields: ['
|
|
28
|
+
affectedFields: ['defaultStaff'],
|
|
29
29
|
},
|
|
30
30
|
INCOME_ACCOUNT_REQUIRED: {
|
|
31
31
|
message: 'Income account is required',
|
|
32
|
-
affectedFields: ['
|
|
32
|
+
affectedFields: ['incomeAccount'],
|
|
33
33
|
},
|
|
34
34
|
INVALID_INCOME_ACCOUNT: {
|
|
35
35
|
message: 'Invalid income account',
|
|
36
|
-
affectedFields: ['
|
|
36
|
+
affectedFields: ['incomeAccount'],
|
|
37
37
|
},
|
|
38
38
|
AMOUNT_REQUIRED: {
|
|
39
39
|
message: 'Amount is required when separately charged',
|
|
@@ -53,11 +53,11 @@ exports.TEMPLATES = {
|
|
|
53
53
|
},
|
|
54
54
|
INVALID_CLASSIFICATION: {
|
|
55
55
|
message: 'Invalid classification',
|
|
56
|
-
affectedFields: ['
|
|
56
|
+
affectedFields: ['classification'],
|
|
57
57
|
},
|
|
58
58
|
INVALID_SETUP_TEMPLATE: {
|
|
59
59
|
message: 'Invalid associated setup template',
|
|
60
|
-
affectedFields: ['
|
|
60
|
+
affectedFields: ['associatedSetupTemplate'],
|
|
61
61
|
},
|
|
62
62
|
OPTION_IN_USE: {
|
|
63
63
|
message: 'This template is currently in use and cannot be deleted',
|
|
@@ -48,27 +48,27 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
48
48
|
readonly STATES_NOT_FOUND: {
|
|
49
49
|
readonly message: "States do not exist";
|
|
50
50
|
readonly params: readonly ["ids"];
|
|
51
|
-
readonly affectedFields: readonly ["
|
|
51
|
+
readonly affectedFields: readonly ["state"];
|
|
52
52
|
};
|
|
53
53
|
readonly INVALID_STATE_TYPE: {
|
|
54
54
|
readonly message: "States are not of type 'State'";
|
|
55
55
|
readonly params: readonly ["ids"];
|
|
56
|
-
readonly affectedFields: readonly ["
|
|
56
|
+
readonly affectedFields: readonly ["state"];
|
|
57
57
|
};
|
|
58
58
|
readonly CITIES_NOT_FOUND: {
|
|
59
59
|
readonly message: "Cities do not exist";
|
|
60
60
|
readonly params: readonly ["ids"];
|
|
61
|
-
readonly affectedFields: readonly ["
|
|
61
|
+
readonly affectedFields: readonly ["city"];
|
|
62
62
|
};
|
|
63
63
|
readonly INVALID_CITY_TYPE: {
|
|
64
64
|
readonly message: "Cities are not of type 'City'";
|
|
65
65
|
readonly params: readonly ["ids"];
|
|
66
|
-
readonly affectedFields: readonly ["
|
|
66
|
+
readonly affectedFields: readonly ["city"];
|
|
67
67
|
};
|
|
68
68
|
readonly ZIP_CODES_NOT_FOUND: {
|
|
69
69
|
readonly message: "Zip codes do not exist";
|
|
70
70
|
readonly params: readonly ["ids"];
|
|
71
|
-
readonly affectedFields: readonly ["
|
|
71
|
+
readonly affectedFields: readonly ["zip"];
|
|
72
72
|
};
|
|
73
73
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
74
74
|
readonly message: "Contact roles do not exist";
|
|
@@ -150,7 +150,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
150
150
|
readonly CLIENT_RECORDS_CREDIT_CARDS: {
|
|
151
151
|
readonly INVALID_EXPIRATION_DATE: {
|
|
152
152
|
readonly message: "Enter a valid expiration date (i.e. 12/2024).";
|
|
153
|
-
readonly affectedFields: readonly ["
|
|
153
|
+
readonly affectedFields: readonly ["expDate"];
|
|
154
154
|
};
|
|
155
155
|
readonly INVALID_SECURITY_CODE: {
|
|
156
156
|
readonly message: "Enter a valid security code (i.e. 1234).";
|
|
@@ -177,12 +177,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
177
177
|
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
178
178
|
readonly message: "Contact roles do not exist";
|
|
179
179
|
readonly params: readonly ["ids"];
|
|
180
|
-
readonly affectedFields: readonly ["
|
|
180
|
+
readonly affectedFields: readonly ["contact"];
|
|
181
181
|
};
|
|
182
182
|
readonly CONTACT_TYPES_NOT_FOUND: {
|
|
183
183
|
readonly message: "Contact types do not exist";
|
|
184
184
|
readonly params: readonly ["ids"];
|
|
185
|
-
readonly affectedFields: readonly ["
|
|
185
|
+
readonly affectedFields: readonly ["type"];
|
|
186
186
|
};
|
|
187
187
|
readonly LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
188
188
|
readonly message: "The client must have a legal contact. Please set the contact type to 'Legal'.";
|
|
@@ -212,16 +212,16 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
212
212
|
readonly CLIENT_RECORDS_COMMISSION_DETAILS: {
|
|
213
213
|
readonly INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
214
214
|
readonly message: "If client is subject to commission, sales representative and commission rate must be provided.";
|
|
215
|
-
readonly affectedFields: readonly ["
|
|
215
|
+
readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
|
|
216
216
|
};
|
|
217
217
|
readonly INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
218
218
|
readonly message: "If client is not subject to commission, sales representative and commission rate must not be provided.";
|
|
219
|
-
readonly affectedFields: readonly ["
|
|
219
|
+
readonly affectedFields: readonly ["subjectToCommission", "salesRepresentative", "commissionRate"];
|
|
220
220
|
};
|
|
221
221
|
readonly SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
222
222
|
readonly message: "Sales representative does not exist";
|
|
223
223
|
readonly params: readonly ["id"];
|
|
224
|
-
readonly affectedFields: readonly ["
|
|
224
|
+
readonly affectedFields: readonly ["salesRepresentative"];
|
|
225
225
|
};
|
|
226
226
|
readonly COMISSION_RATE_TOO_LOW: {
|
|
227
227
|
readonly message: "Enter a commission value greater than 0.0";
|
|
@@ -250,12 +250,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
250
250
|
readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
251
251
|
readonly message: "Filing category does not exist";
|
|
252
252
|
readonly params: readonly ["id"];
|
|
253
|
-
readonly affectedFields: readonly ["
|
|
253
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
254
254
|
};
|
|
255
255
|
readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
256
256
|
readonly message: "Business activity does not exist";
|
|
257
257
|
readonly params: readonly ["id"];
|
|
258
|
-
readonly affectedFields: readonly ["
|
|
258
|
+
readonly affectedFields: readonly ["businessActivity"];
|
|
259
259
|
};
|
|
260
260
|
readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
261
261
|
readonly message: "Billing type does not exist";
|
|
@@ -290,7 +290,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
290
290
|
};
|
|
291
291
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
|
|
292
292
|
readonly message: "Choose a Business Activity";
|
|
293
|
-
readonly affectedFields: readonly ["
|
|
293
|
+
readonly affectedFields: readonly ["businessActivity"];
|
|
294
294
|
};
|
|
295
295
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
|
|
296
296
|
readonly message: "Choose a Billing Type";
|
|
@@ -298,7 +298,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
298
298
|
};
|
|
299
299
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
|
|
300
300
|
readonly message: "Choose a Filing Category";
|
|
301
|
-
readonly affectedFields: readonly ["
|
|
301
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
302
302
|
};
|
|
303
303
|
readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
|
|
304
304
|
readonly message: "Create a Contact - One contact needs to have been saved to this client";
|
|
@@ -373,7 +373,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
373
373
|
readonly ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
374
374
|
readonly message: "Entity type does not exist";
|
|
375
375
|
readonly params: readonly ["id"];
|
|
376
|
-
readonly affectedFields: readonly ["
|
|
376
|
+
readonly affectedFields: readonly ["entityType"];
|
|
377
377
|
};
|
|
378
378
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_ENTITY_TYPE_STARTING_DATE: {
|
|
379
379
|
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.";
|
|
@@ -396,7 +396,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
396
396
|
readonly ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
397
397
|
readonly message: "Entity types do not exist";
|
|
398
398
|
readonly params: readonly ["ids"];
|
|
399
|
-
readonly affectedFields: readonly ["
|
|
399
|
+
readonly affectedFields: readonly ["entityType"];
|
|
400
400
|
};
|
|
401
401
|
readonly AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
|
|
402
402
|
readonly message: "At least one entity type should exist";
|
|
@@ -455,15 +455,15 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
455
455
|
readonly FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
456
456
|
readonly message: "Sub/Parent status does not exist";
|
|
457
457
|
readonly params: readonly ["id"];
|
|
458
|
-
readonly affectedFields: readonly ["
|
|
458
|
+
readonly affectedFields: readonly ["filingType"];
|
|
459
459
|
};
|
|
460
460
|
readonly FILING_TYPE_PARENT_REQUIRED: {
|
|
461
461
|
readonly message: "Parent needs to be specified for filing type 'Files under parent'";
|
|
462
|
-
readonly affectedFields: readonly ["
|
|
462
|
+
readonly affectedFields: readonly ["currentParent"];
|
|
463
463
|
};
|
|
464
464
|
readonly CURRENT_FILING_TYPE_PARENT_REQUIRED: {
|
|
465
465
|
readonly message: "Parent needs to be specified for current filing type 'Files under parent'";
|
|
466
|
-
readonly affectedFields: readonly ["
|
|
466
|
+
readonly affectedFields: readonly ["currentParent"];
|
|
467
467
|
};
|
|
468
468
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
469
469
|
readonly message: "The Sub/Parent status {filingType} starts on {filingTypeStartingDate} 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.";
|
|
@@ -486,7 +486,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
486
486
|
readonly FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
487
487
|
readonly message: "Sub/Parent status do not exist";
|
|
488
488
|
readonly params: readonly ["ids"];
|
|
489
|
-
readonly affectedFields: readonly ["
|
|
489
|
+
readonly affectedFields: readonly ["filingType"];
|
|
490
490
|
};
|
|
491
491
|
readonly AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
492
492
|
readonly message: "At least one Sub/Parent status should exist";
|
|
@@ -545,7 +545,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
545
545
|
readonly STATE_ID_DOES_NOT_EXIST: {
|
|
546
546
|
readonly message: "State does not exist";
|
|
547
547
|
readonly params: readonly ["id"];
|
|
548
|
-
readonly affectedFields: readonly ["
|
|
548
|
+
readonly affectedFields: readonly ["state"];
|
|
549
549
|
};
|
|
550
550
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
|
|
551
551
|
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.";
|
|
@@ -559,17 +559,17 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
559
559
|
};
|
|
560
560
|
readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
|
|
561
561
|
readonly message: "Current Domestic State Starting Date cannot be Empty";
|
|
562
|
-
readonly affectedFields: readonly ["
|
|
562
|
+
readonly affectedFields: readonly ["stateStartingDate"];
|
|
563
563
|
};
|
|
564
564
|
readonly STATES_IDS_DOES_NOT_EXIST: {
|
|
565
565
|
readonly message: "States do not exist";
|
|
566
566
|
readonly params: readonly ["ids"];
|
|
567
|
-
readonly affectedFields: readonly ["
|
|
567
|
+
readonly affectedFields: readonly ["state"];
|
|
568
568
|
};
|
|
569
569
|
readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
570
570
|
readonly message: "Residence type does not exist";
|
|
571
571
|
readonly params: readonly ["ids"];
|
|
572
|
-
readonly affectedFields: readonly ["
|
|
572
|
+
readonly affectedFields: readonly ["residence"];
|
|
573
573
|
};
|
|
574
574
|
readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
575
575
|
readonly message: "At least one domestic state should exist";
|
|
@@ -671,11 +671,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
671
671
|
};
|
|
672
672
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
673
673
|
readonly 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.";
|
|
674
|
-
readonly affectedFields: readonly ["
|
|
674
|
+
readonly affectedFields: readonly ["final"];
|
|
675
675
|
};
|
|
676
676
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
677
677
|
readonly 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.";
|
|
678
|
-
readonly affectedFields: readonly ["
|
|
678
|
+
readonly affectedFields: readonly ["final"];
|
|
679
679
|
};
|
|
680
680
|
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
681
681
|
readonly 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.";
|
|
@@ -1023,12 +1023,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1023
1023
|
readonly INVALID_TYPE: {
|
|
1024
1024
|
readonly message: "Outside provider types do not exist";
|
|
1025
1025
|
readonly params: readonly ["ids"];
|
|
1026
|
-
readonly affectedFields: readonly ["
|
|
1026
|
+
readonly affectedFields: readonly ["type"];
|
|
1027
1027
|
};
|
|
1028
1028
|
readonly SAME_TYPE_TIMELINE_OVERLAP: {
|
|
1029
1029
|
readonly message: "The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.";
|
|
1030
1030
|
readonly params: readonly ["outsideProviderType", "startDate"];
|
|
1031
|
-
readonly affectedFields: readonly ["
|
|
1031
|
+
readonly affectedFields: readonly ["starting", "ending"];
|
|
1032
1032
|
};
|
|
1033
1033
|
};
|
|
1034
1034
|
readonly TEMPLATES: {
|
|
@@ -1043,27 +1043,27 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1043
1043
|
};
|
|
1044
1044
|
readonly TYPE_REQUIRED: {
|
|
1045
1045
|
readonly message: "Template type is required";
|
|
1046
|
-
readonly affectedFields: readonly ["
|
|
1046
|
+
readonly affectedFields: readonly ["type"];
|
|
1047
1047
|
};
|
|
1048
1048
|
readonly INVALID_TYPE: {
|
|
1049
1049
|
readonly message: "Invalid template type";
|
|
1050
|
-
readonly affectedFields: readonly ["
|
|
1050
|
+
readonly affectedFields: readonly ["type"];
|
|
1051
1051
|
};
|
|
1052
1052
|
readonly DEFAULT_STAFF_REQUIRED: {
|
|
1053
1053
|
readonly message: "Default staff is required";
|
|
1054
|
-
readonly affectedFields: readonly ["
|
|
1054
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
1055
1055
|
};
|
|
1056
1056
|
readonly INVALID_STAFF: {
|
|
1057
1057
|
readonly message: "Invalid staff member";
|
|
1058
|
-
readonly affectedFields: readonly ["
|
|
1058
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
1059
1059
|
};
|
|
1060
1060
|
readonly INCOME_ACCOUNT_REQUIRED: {
|
|
1061
1061
|
readonly message: "Income account is required";
|
|
1062
|
-
readonly affectedFields: readonly ["
|
|
1062
|
+
readonly affectedFields: readonly ["incomeAccount"];
|
|
1063
1063
|
};
|
|
1064
1064
|
readonly INVALID_INCOME_ACCOUNT: {
|
|
1065
1065
|
readonly message: "Invalid income account";
|
|
1066
|
-
readonly affectedFields: readonly ["
|
|
1066
|
+
readonly affectedFields: readonly ["incomeAccount"];
|
|
1067
1067
|
};
|
|
1068
1068
|
readonly AMOUNT_REQUIRED: {
|
|
1069
1069
|
readonly message: "Amount is required when separately charged";
|
|
@@ -1083,11 +1083,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
readonly INVALID_CLASSIFICATION: {
|
|
1085
1085
|
readonly message: "Invalid classification";
|
|
1086
|
-
readonly affectedFields: readonly ["
|
|
1086
|
+
readonly affectedFields: readonly ["classification"];
|
|
1087
1087
|
};
|
|
1088
1088
|
readonly INVALID_SETUP_TEMPLATE: {
|
|
1089
1089
|
readonly message: "Invalid associated setup template";
|
|
1090
|
-
readonly affectedFields: readonly ["
|
|
1090
|
+
readonly affectedFields: readonly ["associatedSetupTemplate"];
|
|
1091
1091
|
};
|
|
1092
1092
|
readonly OPTION_IN_USE: {
|
|
1093
1093
|
readonly message: "This template is currently in use and cannot be deleted";
|
|
@@ -1109,19 +1109,19 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1109
1109
|
};
|
|
1110
1110
|
readonly DEFAULT_STAFF_REQUIRED: {
|
|
1111
1111
|
readonly message: "Default staff is required";
|
|
1112
|
-
readonly affectedFields: readonly ["
|
|
1112
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
1113
1113
|
};
|
|
1114
1114
|
readonly INVALID_STAFF: {
|
|
1115
1115
|
readonly message: "Invalid staff member";
|
|
1116
|
-
readonly affectedFields: readonly ["
|
|
1116
|
+
readonly affectedFields: readonly ["defaultStaff"];
|
|
1117
1117
|
};
|
|
1118
1118
|
readonly ASSIGNMENT_TYPE_REQUIRED: {
|
|
1119
1119
|
readonly message: "Assignment type is required";
|
|
1120
|
-
readonly affectedFields: readonly ["
|
|
1120
|
+
readonly affectedFields: readonly ["assignmentType"];
|
|
1121
1121
|
};
|
|
1122
1122
|
readonly INVALID_ASSIGNMENT_TYPE: {
|
|
1123
1123
|
readonly message: "Invalid assignment type";
|
|
1124
|
-
readonly affectedFields: readonly ["
|
|
1124
|
+
readonly affectedFields: readonly ["assignmentType"];
|
|
1125
1125
|
};
|
|
1126
1126
|
readonly ORDER_REQUIRED: {
|
|
1127
1127
|
readonly message: "Order is required for workflow assignments";
|
package/package.json
CHANGED
|
@@ -16,12 +16,12 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
16
16
|
FILING_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
17
|
message: `Filing category does not exist`,
|
|
18
18
|
params: ['id'],
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['filingCategory'],
|
|
20
20
|
},
|
|
21
21
|
BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
|
|
22
22
|
message: `Business activity does not exist`,
|
|
23
23
|
params: ['id'],
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['businessActivity'],
|
|
25
25
|
},
|
|
26
26
|
BILLING_TYPE_ID_DOES_NOT_EXIST: {
|
|
27
27
|
message: `Billing type does not exist`,
|
|
@@ -56,7 +56,7 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
56
56
|
},
|
|
57
57
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
|
|
58
58
|
message: `Choose a Business Activity`,
|
|
59
|
-
affectedFields: ['
|
|
59
|
+
affectedFields: ['businessActivity'],
|
|
60
60
|
},
|
|
61
61
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
|
|
62
62
|
message: `Choose a Billing Type`,
|
|
@@ -64,7 +64,7 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
64
64
|
},
|
|
65
65
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
|
|
66
66
|
message: `Choose a Filing Category`,
|
|
67
|
-
affectedFields: ['
|
|
67
|
+
affectedFields: ['filingCategory'],
|
|
68
68
|
},
|
|
69
69
|
CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
|
|
70
70
|
message: `Create a Contact - One contact needs to have been saved to this client`,
|
|
@@ -2,27 +2,27 @@ export const CLIENT_RECORDS_ADDRESSES = {
|
|
|
2
2
|
STATES_NOT_FOUND: {
|
|
3
3
|
message: 'States do not exist',
|
|
4
4
|
params: ['ids'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['state'],
|
|
6
6
|
},
|
|
7
7
|
INVALID_STATE_TYPE: {
|
|
8
8
|
message: `States are not of type 'State'`,
|
|
9
9
|
params: ['ids'],
|
|
10
|
-
affectedFields: ['
|
|
10
|
+
affectedFields: ['state'],
|
|
11
11
|
},
|
|
12
12
|
CITIES_NOT_FOUND: {
|
|
13
13
|
message: `Cities do not exist`,
|
|
14
14
|
params: ['ids'],
|
|
15
|
-
affectedFields: ['
|
|
15
|
+
affectedFields: ['city'],
|
|
16
16
|
},
|
|
17
17
|
INVALID_CITY_TYPE: {
|
|
18
18
|
message: `Cities are not of type 'City'`,
|
|
19
19
|
params: ['ids'],
|
|
20
|
-
affectedFields: ['
|
|
20
|
+
affectedFields: ['city'],
|
|
21
21
|
},
|
|
22
22
|
ZIP_CODES_NOT_FOUND: {
|
|
23
23
|
message: `Zip codes do not exist`,
|
|
24
24
|
params: ['ids'],
|
|
25
|
-
affectedFields: ['
|
|
25
|
+
affectedFields: ['zip'],
|
|
26
26
|
},
|
|
27
27
|
CONTACT_ROLES_NOT_FOUND: {
|
|
28
28
|
message: `Contact roles do not exist`,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export const CLIENT_RECORDS_COMMISSION_DETAILS = {
|
|
2
2
|
INVALID_REQUEST_IS_SUBJECT_TO_COMMISSION: {
|
|
3
3
|
message: 'If client is subject to commission, sales representative and commission rate must be provided.',
|
|
4
|
-
affectedFields: ['
|
|
4
|
+
affectedFields: ['subjectToCommission', 'salesRepresentative', 'commissionRate'],
|
|
5
5
|
},
|
|
6
6
|
INVALID_REQUEST_IS_NOT_SUBJECT_TO_COMMISSION: {
|
|
7
7
|
message: 'If client is not subject to commission, sales representative and commission rate must not be provided.',
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['subjectToCommission', 'salesRepresentative', 'commissionRate'],
|
|
9
9
|
},
|
|
10
10
|
SALES_REPRESENTATIVE_DOES_NOT_EXIST: {
|
|
11
11
|
message: `Sales representative does not exist`,
|
|
12
12
|
params: ['id'],
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['salesRepresentative'],
|
|
14
14
|
},
|
|
15
15
|
COMISSION_RATE_TOO_LOW: {
|
|
16
16
|
message: `Enter a commission value greater than 0.0`,
|
|
@@ -2,12 +2,12 @@ export const CLIENT_RECORDS_CONTACTS = {
|
|
|
2
2
|
CONTACT_ROLES_NOT_FOUND: {
|
|
3
3
|
message: `Contact roles do not exist`,
|
|
4
4
|
params: ['ids'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['contact'],
|
|
6
6
|
},
|
|
7
7
|
CONTACT_TYPES_NOT_FOUND: {
|
|
8
8
|
message: `Contact types do not exist`,
|
|
9
9
|
params: ['ids'],
|
|
10
|
-
affectedFields: ['
|
|
10
|
+
affectedFields: ['type'],
|
|
11
11
|
},
|
|
12
12
|
LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
13
13
|
message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const CLIENT_RECORDS_CREDIT_CARDS = {
|
|
2
2
|
INVALID_EXPIRATION_DATE: {
|
|
3
3
|
message: 'Enter a valid expiration date (i.e. 12/2024).',
|
|
4
|
-
affectedFields: ['
|
|
4
|
+
affectedFields: ['expDate'],
|
|
5
5
|
},
|
|
6
6
|
INVALID_SECURITY_CODE: {
|
|
7
7
|
message: 'Enter a valid security code (i.e. 1234).',
|
package/src/validation/features/client-records-entity-states-histories.validation-messages.ts
CHANGED
|
@@ -2,7 +2,7 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
|
|
|
2
2
|
STATE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
message: `State does not exist`,
|
|
4
4
|
params: ['id'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['state'],
|
|
6
6
|
},
|
|
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.`,
|
|
@@ -16,17 +16,17 @@ export const CLIENT_RECORDS_ENTITY_STATES = {
|
|
|
16
16
|
},
|
|
17
17
|
DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
|
|
18
18
|
message: `Current Domestic State Starting Date cannot be Empty`,
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['stateStartingDate'],
|
|
20
20
|
},
|
|
21
21
|
STATES_IDS_DOES_NOT_EXIST: {
|
|
22
22
|
message: `States do not exist`,
|
|
23
23
|
params: ['ids'],
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['state'],
|
|
25
25
|
},
|
|
26
26
|
RESIDENCE_TYPE_DOES_NOT_EXIST: {
|
|
27
27
|
message: `Residence type does not exist`,
|
|
28
28
|
params: ['ids'],
|
|
29
|
-
affectedFields: ['
|
|
29
|
+
affectedFields: ['residence'],
|
|
30
30
|
},
|
|
31
31
|
AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
|
|
32
32
|
message: `At least one domestic state should exist`,
|
package/src/validation/features/client-records-entity-types-histories.validation-messages.ts
CHANGED
|
@@ -2,7 +2,7 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
|
|
|
2
2
|
ENTITY_TYPE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
message: `Entity type does not exist`,
|
|
4
4
|
params: ['id'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['entityType'],
|
|
6
6
|
},
|
|
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.`,
|
|
@@ -25,7 +25,7 @@ export const CLIENT_RECORDS_ENTITY_TYPES = {
|
|
|
25
25
|
ENTITY_TYPES_IDS_DOES_NOT_EXIST: {
|
|
26
26
|
message: `Entity types do not exist`,
|
|
27
27
|
params: ['ids'],
|
|
28
|
-
affectedFields: ['
|
|
28
|
+
affectedFields: ['entityType'],
|
|
29
29
|
},
|
|
30
30
|
AT_LEAST_ONE_ENTITY_TYPE_SHOULD_EXIST: {
|
|
31
31
|
message: `At least one entity type should exist`,
|
package/src/validation/features/client-records-filing-types-histories.validation-messages.ts
CHANGED
|
@@ -2,15 +2,15 @@ export const CLIENT_RECORDS_FILING_TYPES = {
|
|
|
2
2
|
FILING_TYPE_ID_DOES_NOT_EXIST: {
|
|
3
3
|
message: `Sub/Parent status does not exist`,
|
|
4
4
|
params: ['id'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['filingType'],
|
|
6
6
|
},
|
|
7
7
|
FILING_TYPE_PARENT_REQUIRED: {
|
|
8
8
|
message: `Parent needs to be specified for filing type 'Files under parent'`,
|
|
9
|
-
affectedFields: ['
|
|
9
|
+
affectedFields: ['currentParent'],
|
|
10
10
|
},
|
|
11
11
|
CURRENT_FILING_TYPE_PARENT_REQUIRED: {
|
|
12
12
|
message: `Parent needs to be specified for current filing type 'Files under parent'`,
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['currentParent'],
|
|
14
14
|
},
|
|
15
15
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_TYPE_STARTING_DATE: {
|
|
16
16
|
message: `The Sub/Parent status {filingType} starts on {filingTypeStartingDate} 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.`,
|
|
@@ -33,7 +33,7 @@ export const CLIENT_RECORDS_FILING_TYPES = {
|
|
|
33
33
|
FILING_TYPES_IDS_DOES_NOT_EXIST: {
|
|
34
34
|
message: `Sub/Parent status do not exist`,
|
|
35
35
|
params: ['ids'],
|
|
36
|
-
affectedFields: ['
|
|
36
|
+
affectedFields: ['filingType'],
|
|
37
37
|
},
|
|
38
38
|
AT_LEAST_ONE_FILING_TYPE_SHOULD_EXIST: {
|
|
39
39
|
message: `At least one Sub/Parent status should exist`,
|
|
@@ -2,11 +2,11 @@ export const CLIENT_RECORDS_OUTSIDE_PROVIDERS = {
|
|
|
2
2
|
INVALID_TYPE: {
|
|
3
3
|
message: `Outside provider types do not exist`,
|
|
4
4
|
params: ['ids'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['type'],
|
|
6
6
|
},
|
|
7
7
|
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
8
8
|
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
9
9
|
params: ['outsideProviderType', 'startDate'],
|
|
10
|
-
affectedFields: ['
|
|
10
|
+
affectedFields: ['starting', 'ending'],
|
|
11
11
|
},
|
|
12
12
|
} as const;
|
|
@@ -45,11 +45,11 @@ export const CLIENT_RELATIONSHIPS_COMMON = {
|
|
|
45
45
|
},
|
|
46
46
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
47
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: ['
|
|
48
|
+
affectedFields: ['final'],
|
|
49
49
|
},
|
|
50
50
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
51
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: ['
|
|
52
|
+
affectedFields: ['final'],
|
|
53
53
|
},
|
|
54
54
|
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
55
|
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.`,
|
|
@@ -9,19 +9,19 @@ export const TEMPLATE_ASSIGNMENTS = {
|
|
|
9
9
|
},
|
|
10
10
|
DEFAULT_STAFF_REQUIRED: {
|
|
11
11
|
message: 'Default staff is required',
|
|
12
|
-
affectedFields: ['
|
|
12
|
+
affectedFields: ['defaultStaff'],
|
|
13
13
|
},
|
|
14
14
|
INVALID_STAFF: {
|
|
15
15
|
message: 'Invalid staff member',
|
|
16
|
-
affectedFields: ['
|
|
16
|
+
affectedFields: ['defaultStaff'],
|
|
17
17
|
},
|
|
18
18
|
ASSIGNMENT_TYPE_REQUIRED: {
|
|
19
19
|
message: 'Assignment type is required',
|
|
20
|
-
affectedFields: ['
|
|
20
|
+
affectedFields: ['assignmentType'],
|
|
21
21
|
},
|
|
22
22
|
INVALID_ASSIGNMENT_TYPE: {
|
|
23
23
|
message: 'Invalid assignment type',
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['assignmentType'],
|
|
25
25
|
},
|
|
26
26
|
ORDER_REQUIRED: {
|
|
27
27
|
message: 'Order is required for workflow assignments',
|
|
@@ -10,27 +10,27 @@ export const TEMPLATES = {
|
|
|
10
10
|
},
|
|
11
11
|
TYPE_REQUIRED: {
|
|
12
12
|
message: 'Template type is required',
|
|
13
|
-
affectedFields: ['
|
|
13
|
+
affectedFields: ['type'],
|
|
14
14
|
},
|
|
15
15
|
INVALID_TYPE: {
|
|
16
16
|
message: 'Invalid template type',
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['type'],
|
|
18
18
|
},
|
|
19
19
|
DEFAULT_STAFF_REQUIRED: {
|
|
20
20
|
message: 'Default staff is required',
|
|
21
|
-
affectedFields: ['
|
|
21
|
+
affectedFields: ['defaultStaff'],
|
|
22
22
|
},
|
|
23
23
|
INVALID_STAFF: {
|
|
24
24
|
message: 'Invalid staff member',
|
|
25
|
-
affectedFields: ['
|
|
25
|
+
affectedFields: ['defaultStaff'],
|
|
26
26
|
},
|
|
27
27
|
INCOME_ACCOUNT_REQUIRED: {
|
|
28
28
|
message: 'Income account is required',
|
|
29
|
-
affectedFields: ['
|
|
29
|
+
affectedFields: ['incomeAccount'],
|
|
30
30
|
},
|
|
31
31
|
INVALID_INCOME_ACCOUNT: {
|
|
32
32
|
message: 'Invalid income account',
|
|
33
|
-
affectedFields: ['
|
|
33
|
+
affectedFields: ['incomeAccount'],
|
|
34
34
|
},
|
|
35
35
|
AMOUNT_REQUIRED: {
|
|
36
36
|
message: 'Amount is required when separately charged',
|
|
@@ -50,11 +50,11 @@ export const TEMPLATES = {
|
|
|
50
50
|
},
|
|
51
51
|
INVALID_CLASSIFICATION: {
|
|
52
52
|
message: 'Invalid classification',
|
|
53
|
-
affectedFields: ['
|
|
53
|
+
affectedFields: ['classification'],
|
|
54
54
|
},
|
|
55
55
|
INVALID_SETUP_TEMPLATE: {
|
|
56
56
|
message: 'Invalid associated setup template',
|
|
57
|
-
affectedFields: ['
|
|
57
|
+
affectedFields: ['associatedSetupTemplate'],
|
|
58
58
|
},
|
|
59
59
|
OPTION_IN_USE: {
|
|
60
60
|
message: 'This template is currently in use and cannot be deleted',
|