@forwardslashns/taskit-validation-messages 1.10.6 → 1.10.8
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/account-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/account-categories.validation-messages.js +1 -1
- package/dist/validation/features/account-ids.validation-messages.d.ts +2 -2
- package/dist/validation/features/account-ids.validation-messages.js +2 -2
- package/dist/validation/features/business-activities.validation-messages.d.ts +1 -1
- package/dist/validation/features/business-activities.validation-messages.js +1 -1
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +0 -8
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +0 -8
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts +10 -8
- package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-relationships-common.validation-messages.js +10 -8
- package/dist/validation/features/filing-categories.validation-messages.d.ts +1 -1
- package/dist/validation/features/filing-categories.validation-messages.js +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +1 -1
- package/dist/validation/features/roles-and-permissions.validation-messages.js +1 -1
- package/dist/validation/features/states.validation-messages.d.ts +5 -5
- package/dist/validation/features/states.validation-messages.js +5 -5
- package/dist/validation/features/users.validation-messages.d.ts +2 -2
- package/dist/validation/features/users.validation-messages.js +2 -2
- package/dist/validation/validation-messages.d.ts +23 -29
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/publish.js +36 -0
- package/src/validation/features/account-categories.validation-messages.ts +1 -1
- package/src/validation/features/account-ids.validation-messages.ts +2 -2
- package/src/validation/features/business-activities.validation-messages.ts +1 -1
- package/src/validation/features/filing-categories.validation-messages.ts +1 -1
- package/src/validation/features/roles-and-permissions.validation-messages.ts +1 -1
- package/src/validation/features/states.validation-messages.ts +5 -5
- package/src/validation/features/users.validation-messages.ts +2 -2
|
@@ -11,7 +11,7 @@ export declare const ACCOUNT_CATEGORIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Account category with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.ACCOUNT_CATEGORIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Account category with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['accountCategory'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,12 +11,12 @@ export declare const ACCOUNT_IDS: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Account id with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["accountId"];
|
|
15
15
|
};
|
|
16
16
|
readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
17
|
readonly message: "Account category does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
20
20
|
};
|
|
21
21
|
readonly OPTION_IN_USE: {
|
|
22
22
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,12 +14,12 @@ exports.ACCOUNT_IDS = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Account id with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['accountId'],
|
|
18
18
|
},
|
|
19
19
|
ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
20
20
|
message: `Account category does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['accountCategory'],
|
|
23
23
|
},
|
|
24
24
|
OPTION_IN_USE: {
|
|
25
25
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,7 +11,7 @@ export declare const BUSINESS_ACTIVITIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Business activity with the same name '{name}' already exists.";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["bussinesActivity"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.BUSINESS_ACTIVITIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Business activity with the same name '{name}' already exists.`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['bussinesActivity'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts
CHANGED
|
@@ -4,14 +4,6 @@ export declare const CLIENT_RECORDS_FILING_STATUSES: {
|
|
|
4
4
|
readonly params: readonly ["id"];
|
|
5
5
|
readonly affectedFields: readonly ["filingStatus"];
|
|
6
6
|
};
|
|
7
|
-
readonly FILING_STATUS_PARENT_REQUIRED: {
|
|
8
|
-
readonly message: "Parent needs to be specified for filing status 'Files under parent'";
|
|
9
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
10
|
-
};
|
|
11
|
-
readonly CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
12
|
-
readonly message: "Parent needs to be specified for current filing status 'Files under parent'";
|
|
13
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
14
|
-
};
|
|
15
7
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
16
8
|
readonly message: "The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
|
|
17
9
|
readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"client-records-filing-statuses-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-filing-statuses-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjC,CAAC"}
|
package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js
CHANGED
|
@@ -7,14 +7,6 @@ exports.CLIENT_RECORDS_FILING_STATUSES = {
|
|
|
7
7
|
params: ['id'],
|
|
8
8
|
affectedFields: ['filingStatus'],
|
|
9
9
|
},
|
|
10
|
-
FILING_STATUS_PARENT_REQUIRED: {
|
|
11
|
-
message: `Parent needs to be specified for filing status 'Files under parent'`,
|
|
12
|
-
affectedFields: ['currentParent'],
|
|
13
|
-
},
|
|
14
|
-
CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
15
|
-
message: `Parent needs to be specified for current filing status 'Files under parent'`,
|
|
16
|
-
affectedFields: ['currentParent'],
|
|
17
|
-
},
|
|
18
10
|
NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
19
11
|
message: `The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.`,
|
|
20
12
|
params: ['clientDateEstablished', 'filingStatus', 'filingStatusStartingDate'],
|
|
@@ -34,22 +34,24 @@ export declare const CLIENT_RELATIONSHIPS_COMMON: {
|
|
|
34
34
|
readonly affectedFields: readonly ["endingDate"];
|
|
35
35
|
};
|
|
36
36
|
readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
37
|
-
readonly message: "Please update the relationship
|
|
38
|
-
readonly params: readonly ["clientCloseDate"];
|
|
37
|
+
readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
|
|
38
|
+
readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
39
39
|
readonly affectedFields: readonly ["endingDate"];
|
|
40
40
|
};
|
|
41
41
|
readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
42
|
-
readonly message: "Please update the relationship
|
|
43
|
-
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
42
|
+
readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
|
|
43
|
+
readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
44
44
|
readonly affectedFields: readonly ["endingDate"];
|
|
45
45
|
};
|
|
46
46
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
47
|
-
readonly message: "The
|
|
48
|
-
readonly
|
|
47
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
|
|
48
|
+
readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
|
|
49
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
49
50
|
};
|
|
50
51
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
51
|
-
readonly message: "The
|
|
52
|
-
readonly
|
|
52
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
|
|
53
|
+
readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
|
|
54
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
53
55
|
};
|
|
54
56
|
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
55
57
|
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.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"client-relationships-common.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships-common.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC"}
|
|
@@ -37,22 +37,24 @@ exports.CLIENT_RELATIONSHIPS_COMMON = {
|
|
|
37
37
|
affectedFields: ['endingDate'],
|
|
38
38
|
},
|
|
39
39
|
ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
40
|
-
message: `Please update the relationship
|
|
41
|
-
params: ['clientCloseDate'],
|
|
40
|
+
message: `{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.`,
|
|
41
|
+
params: ['clientName', 'clientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
|
|
42
42
|
affectedFields: ['endingDate'],
|
|
43
43
|
},
|
|
44
44
|
ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
45
|
-
message: `Please update the relationship
|
|
46
|
-
params: ['relatedClientName', 'relatedClientCloseDate'],
|
|
45
|
+
message: `{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.`,
|
|
46
|
+
params: ['relatedClientName', 'relatedClientCloseDate', 'relationshipsWithEndingDateAfterCloseDate'],
|
|
47
47
|
affectedFields: ['endingDate'],
|
|
48
48
|
},
|
|
49
49
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
50
|
-
message: `The
|
|
51
|
-
|
|
50
|
+
message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.`,
|
|
51
|
+
params: ['clientName', 'relatedClientName', 'clientCloseDate'],
|
|
52
|
+
affectedFields: ['endingDate', 'final'],
|
|
52
53
|
},
|
|
53
54
|
FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
54
|
-
message: `The
|
|
55
|
-
|
|
55
|
+
message: `The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.`,
|
|
56
|
+
params: ['clientName', 'relatedClientName', 'relatedClientCloseDate'],
|
|
57
|
+
affectedFields: ['endingDate', 'final'],
|
|
56
58
|
},
|
|
57
59
|
CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
58
60
|
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.`,
|
|
@@ -11,7 +11,7 @@ export declare const FILING_CATEGORIES: {
|
|
|
11
11
|
readonly NAME_ALREADY_EXISTS: {
|
|
12
12
|
readonly message: "Filing category with the same name '{name}' already exists";
|
|
13
13
|
readonly params: readonly ["name"];
|
|
14
|
-
readonly affectedFields: readonly ["
|
|
14
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
15
15
|
};
|
|
16
16
|
readonly OPTION_IN_USE: {
|
|
17
17
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -14,7 +14,7 @@ exports.FILING_CATEGORIES = {
|
|
|
14
14
|
NAME_ALREADY_EXISTS: {
|
|
15
15
|
message: `Filing category with the same name '{name}' already exists`,
|
|
16
16
|
params: ['name'],
|
|
17
|
-
affectedFields: ['
|
|
17
|
+
affectedFields: ['filingCategory'],
|
|
18
18
|
},
|
|
19
19
|
OPTION_IN_USE: {
|
|
20
20
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -21,7 +21,7 @@ export declare const ROLES_AND_PERMISSIONS: {
|
|
|
21
21
|
readonly PERMISSION_DOES_NOT_EXIST: {
|
|
22
22
|
readonly message: "Permission does not exist";
|
|
23
23
|
readonly params: readonly ["permissionId"];
|
|
24
|
-
readonly affectedFields: readonly ["
|
|
24
|
+
readonly affectedFields: readonly ["permissionIds"];
|
|
25
25
|
};
|
|
26
26
|
readonly ROLE_HAS_ASSIGNED_USERS: {
|
|
27
27
|
readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
|
|
@@ -24,7 +24,7 @@ exports.ROLES_AND_PERMISSIONS = {
|
|
|
24
24
|
PERMISSION_DOES_NOT_EXIST: {
|
|
25
25
|
message: `Permission does not exist`,
|
|
26
26
|
params: ['permissionId'],
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['permissionIds'],
|
|
28
28
|
},
|
|
29
29
|
ROLE_HAS_ASSIGNED_USERS: {
|
|
30
30
|
message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
|
|
@@ -16,7 +16,7 @@ export declare const STATES: {
|
|
|
16
16
|
readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
17
17
|
readonly message: "State type does not exist";
|
|
18
18
|
readonly params: readonly ["id"];
|
|
19
|
-
readonly affectedFields: readonly ["
|
|
19
|
+
readonly affectedFields: readonly ["stateType"];
|
|
20
20
|
};
|
|
21
21
|
readonly IS_PARENT_OF_OTHER_STATES: {
|
|
22
22
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -25,21 +25,21 @@ export declare const STATES: {
|
|
|
25
25
|
readonly PARENT_ID_DOES_NOT_EXIST: {
|
|
26
26
|
readonly message: "Parent state does not exist";
|
|
27
27
|
readonly params: readonly ["id"];
|
|
28
|
-
readonly affectedFields: readonly ["
|
|
28
|
+
readonly affectedFields: readonly ["parent"];
|
|
29
29
|
};
|
|
30
30
|
readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
31
31
|
readonly message: "Nation cannot have associated parent.";
|
|
32
|
-
readonly affectedFields: readonly ["
|
|
32
|
+
readonly affectedFields: readonly ["parent"];
|
|
33
33
|
};
|
|
34
34
|
readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
35
35
|
readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
|
|
36
36
|
readonly params: readonly ["stateName"];
|
|
37
|
-
readonly affectedFields: readonly ["
|
|
37
|
+
readonly affectedFields: readonly ["parent"];
|
|
38
38
|
};
|
|
39
39
|
readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
40
40
|
readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
|
|
41
41
|
readonly params: readonly ["cityName"];
|
|
42
|
-
readonly affectedFields: readonly ["
|
|
42
|
+
readonly affectedFields: readonly ["parent"];
|
|
43
43
|
};
|
|
44
44
|
readonly OPTION_IN_USE: {
|
|
45
45
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -19,7 +19,7 @@ exports.STATES = {
|
|
|
19
19
|
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
20
20
|
message: `State type does not exist`,
|
|
21
21
|
params: ['id'],
|
|
22
|
-
affectedFields: ['
|
|
22
|
+
affectedFields: ['stateType'],
|
|
23
23
|
},
|
|
24
24
|
IS_PARENT_OF_OTHER_STATES: {
|
|
25
25
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -28,21 +28,21 @@ exports.STATES = {
|
|
|
28
28
|
PARENT_ID_DOES_NOT_EXIST: {
|
|
29
29
|
message: `Parent state does not exist`,
|
|
30
30
|
params: ['id'],
|
|
31
|
-
affectedFields: ['
|
|
31
|
+
affectedFields: ['parent'],
|
|
32
32
|
},
|
|
33
33
|
NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
34
34
|
message: `Nation cannot have associated parent.`,
|
|
35
|
-
affectedFields: ['
|
|
35
|
+
affectedFields: ['parent'],
|
|
36
36
|
},
|
|
37
37
|
STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
38
38
|
message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
|
|
39
39
|
params: ['stateName'],
|
|
40
|
-
affectedFields: ['
|
|
40
|
+
affectedFields: ['parent'],
|
|
41
41
|
},
|
|
42
42
|
CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
43
43
|
message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
|
|
44
44
|
params: ['cityName'],
|
|
45
|
-
affectedFields: ['
|
|
45
|
+
affectedFields: ['parent'],
|
|
46
46
|
},
|
|
47
47
|
OPTION_IN_USE: {
|
|
48
48
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -2,7 +2,7 @@ export declare const USERS: {
|
|
|
2
2
|
readonly USERNAME_DOES_NOT_EXIST: {
|
|
3
3
|
readonly message: "User with username {username} does not exist.";
|
|
4
4
|
readonly params: readonly ["username"];
|
|
5
|
-
readonly affectedFields: readonly ["
|
|
5
|
+
readonly affectedFields: readonly ["userName"];
|
|
6
6
|
};
|
|
7
7
|
readonly INVALID_PASSWORD: {
|
|
8
8
|
readonly message: "User with username {username} password does not match.";
|
|
@@ -24,7 +24,7 @@ export declare const USERS: {
|
|
|
24
24
|
readonly USERNAME_ALREADY_EXISTS: {
|
|
25
25
|
readonly message: "User with username '{username}' already exists";
|
|
26
26
|
readonly params: readonly ["username"];
|
|
27
|
-
readonly affectedFields: readonly ["
|
|
27
|
+
readonly affectedFields: readonly ["userName"];
|
|
28
28
|
};
|
|
29
29
|
readonly EMAIL_ALREADY_EXISTS: {
|
|
30
30
|
readonly message: "User with email '{email}' already exists";
|
|
@@ -5,7 +5,7 @@ exports.USERS = {
|
|
|
5
5
|
USERNAME_DOES_NOT_EXIST: {
|
|
6
6
|
message: `User with username {username} does not exist.`,
|
|
7
7
|
params: ['username'],
|
|
8
|
-
affectedFields: ['
|
|
8
|
+
affectedFields: ['userName'],
|
|
9
9
|
},
|
|
10
10
|
INVALID_PASSWORD: {
|
|
11
11
|
message: `User with username {username} password does not match.`,
|
|
@@ -27,7 +27,7 @@ exports.USERS = {
|
|
|
27
27
|
USERNAME_ALREADY_EXISTS: {
|
|
28
28
|
message: `User with username '{username}' already exists`,
|
|
29
29
|
params: ['username'],
|
|
30
|
-
affectedFields: ['
|
|
30
|
+
affectedFields: ['userName'],
|
|
31
31
|
},
|
|
32
32
|
EMAIL_ALREADY_EXISTS: {
|
|
33
33
|
message: `User with email '{email}' already exists`,
|
|
@@ -12,7 +12,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
12
12
|
readonly NAME_ALREADY_EXISTS: {
|
|
13
13
|
readonly message: "Account category with the same name '{name}' already exists";
|
|
14
14
|
readonly params: readonly ["name"];
|
|
15
|
-
readonly affectedFields: readonly ["
|
|
15
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
16
16
|
};
|
|
17
17
|
readonly OPTION_IN_USE: {
|
|
18
18
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -32,12 +32,12 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
32
32
|
readonly NAME_ALREADY_EXISTS: {
|
|
33
33
|
readonly message: "Account id with the same name '{name}' already exists";
|
|
34
34
|
readonly params: readonly ["name"];
|
|
35
|
-
readonly affectedFields: readonly ["
|
|
35
|
+
readonly affectedFields: readonly ["accountId"];
|
|
36
36
|
};
|
|
37
37
|
readonly ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
38
38
|
readonly message: "Account category does not exist";
|
|
39
39
|
readonly params: readonly ["id"];
|
|
40
|
-
readonly affectedFields: readonly ["
|
|
40
|
+
readonly affectedFields: readonly ["accountCategory"];
|
|
41
41
|
};
|
|
42
42
|
readonly OPTION_IN_USE: {
|
|
43
43
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -118,7 +118,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
118
118
|
readonly NAME_ALREADY_EXISTS: {
|
|
119
119
|
readonly message: "Business activity with the same name '{name}' already exists.";
|
|
120
120
|
readonly params: readonly ["name"];
|
|
121
|
-
readonly affectedFields: readonly ["
|
|
121
|
+
readonly affectedFields: readonly ["bussinesActivity"];
|
|
122
122
|
};
|
|
123
123
|
readonly OPTION_IN_USE: {
|
|
124
124
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -481,14 +481,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
481
481
|
readonly params: readonly ["id"];
|
|
482
482
|
readonly affectedFields: readonly ["filingStatus"];
|
|
483
483
|
};
|
|
484
|
-
readonly FILING_STATUS_PARENT_REQUIRED: {
|
|
485
|
-
readonly message: "Parent needs to be specified for filing status 'Files under parent'";
|
|
486
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
487
|
-
};
|
|
488
|
-
readonly CURRENT_FILING_STATUS_PARENT_REQUIRED: {
|
|
489
|
-
readonly message: "Parent needs to be specified for current filing status 'Files under parent'";
|
|
490
|
-
readonly affectedFields: readonly ["currentParent"];
|
|
491
|
-
};
|
|
492
484
|
readonly NOT_ALIGNED_DATE_ESTABLISHED_FILING_STATUS_STARTING_DATE: {
|
|
493
485
|
readonly message: "The Sub/Parent status {filingStatus} starts on {filingStatusStartingDate} which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the Sub/Parent status or the client's date established.";
|
|
494
486
|
readonly params: readonly ["clientDateEstablished", "filingStatus", "filingStatusStartingDate"];
|
|
@@ -684,22 +676,24 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
684
676
|
readonly affectedFields: readonly ["endingDate"];
|
|
685
677
|
};
|
|
686
678
|
readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
|
|
687
|
-
readonly message: "Please update the relationship
|
|
688
|
-
readonly params: readonly ["clientCloseDate"];
|
|
679
|
+
readonly message: "{clientName}'s close date is {clientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {clientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {clientName}'s close date.";
|
|
680
|
+
readonly params: readonly ["clientName", "clientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
689
681
|
readonly affectedFields: readonly ["endingDate"];
|
|
690
682
|
};
|
|
691
683
|
readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
|
|
692
|
-
readonly message: "Please update the relationship
|
|
693
|
-
readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
|
|
684
|
+
readonly message: "{relatedClientName}'s close date is {relatedClientCloseDate}. One or more relationships have end dates later than this. Please update the following relationship end dates to be on or before {relatedClientCloseDate}: {relationshipsWithEndingDateAfterCloseDate}, or update {relatedClientName}'s close date.";
|
|
685
|
+
readonly params: readonly ["relatedClientName", "relatedClientCloseDate", "relationshipsWithEndingDateAfterCloseDate"];
|
|
694
686
|
readonly affectedFields: readonly ["endingDate"];
|
|
695
687
|
};
|
|
696
688
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
|
|
697
|
-
readonly message: "The
|
|
698
|
-
readonly
|
|
689
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {relatedClientName}'s end date to be on or before {clientName}'s close date of {clientCloseDate}, or mark the relationship as final.";
|
|
690
|
+
readonly params: readonly ["clientName", "relatedClientName", "clientCloseDate"];
|
|
691
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
699
692
|
};
|
|
700
693
|
readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
|
|
701
|
-
readonly message: "The
|
|
702
|
-
readonly
|
|
694
|
+
readonly message: "The relationship between {clientName} and {relatedClientName} has no end date or is not marked as final. Please update {clientName}'s end date to be on or before {relatedClientName}'s close date of {relatedClientCloseDate}, or mark the relationship as final.";
|
|
695
|
+
readonly params: readonly ["clientName", "relatedClientName", "relatedClientCloseDate"];
|
|
696
|
+
readonly affectedFields: readonly ["endingDate", "final"];
|
|
703
697
|
};
|
|
704
698
|
readonly CIRCULAR_RELATIONSHIP_DETECTED: {
|
|
705
699
|
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.";
|
|
@@ -873,7 +867,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
873
867
|
readonly NAME_ALREADY_EXISTS: {
|
|
874
868
|
readonly message: "Filing category with the same name '{name}' already exists";
|
|
875
869
|
readonly params: readonly ["name"];
|
|
876
|
-
readonly affectedFields: readonly ["
|
|
870
|
+
readonly affectedFields: readonly ["filingCategory"];
|
|
877
871
|
};
|
|
878
872
|
readonly OPTION_IN_USE: {
|
|
879
873
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -898,7 +892,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
898
892
|
readonly STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
899
893
|
readonly message: "State type does not exist";
|
|
900
894
|
readonly params: readonly ["id"];
|
|
901
|
-
readonly affectedFields: readonly ["
|
|
895
|
+
readonly affectedFields: readonly ["stateType"];
|
|
902
896
|
};
|
|
903
897
|
readonly IS_PARENT_OF_OTHER_STATES: {
|
|
904
898
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -907,21 +901,21 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
907
901
|
readonly PARENT_ID_DOES_NOT_EXIST: {
|
|
908
902
|
readonly message: "Parent state does not exist";
|
|
909
903
|
readonly params: readonly ["id"];
|
|
910
|
-
readonly affectedFields: readonly ["
|
|
904
|
+
readonly affectedFields: readonly ["parent"];
|
|
911
905
|
};
|
|
912
906
|
readonly NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
913
907
|
readonly message: "Nation cannot have associated parent.";
|
|
914
|
-
readonly affectedFields: readonly ["
|
|
908
|
+
readonly affectedFields: readonly ["parent"];
|
|
915
909
|
};
|
|
916
910
|
readonly STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
917
911
|
readonly message: "There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.";
|
|
918
912
|
readonly params: readonly ["stateName"];
|
|
919
|
-
readonly affectedFields: readonly ["
|
|
913
|
+
readonly affectedFields: readonly ["parent"];
|
|
920
914
|
};
|
|
921
915
|
readonly CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
922
916
|
readonly message: "There must be a state associated with the city '{cityName}'. Please select a state to proceed.";
|
|
923
917
|
readonly params: readonly ["cityName"];
|
|
924
|
-
readonly affectedFields: readonly ["
|
|
918
|
+
readonly affectedFields: readonly ["parent"];
|
|
925
919
|
};
|
|
926
920
|
readonly OPTION_IN_USE: {
|
|
927
921
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
@@ -932,7 +926,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
932
926
|
readonly USERNAME_DOES_NOT_EXIST: {
|
|
933
927
|
readonly message: "User with username {username} does not exist.";
|
|
934
928
|
readonly params: readonly ["username"];
|
|
935
|
-
readonly affectedFields: readonly ["
|
|
929
|
+
readonly affectedFields: readonly ["userName"];
|
|
936
930
|
};
|
|
937
931
|
readonly INVALID_PASSWORD: {
|
|
938
932
|
readonly message: "User with username {username} password does not match.";
|
|
@@ -954,7 +948,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
954
948
|
readonly USERNAME_ALREADY_EXISTS: {
|
|
955
949
|
readonly message: "User with username '{username}' already exists";
|
|
956
950
|
readonly params: readonly ["username"];
|
|
957
|
-
readonly affectedFields: readonly ["
|
|
951
|
+
readonly affectedFields: readonly ["userName"];
|
|
958
952
|
};
|
|
959
953
|
readonly EMAIL_ALREADY_EXISTS: {
|
|
960
954
|
readonly message: "User with email '{email}' already exists";
|
|
@@ -1007,7 +1001,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1007
1001
|
readonly PERMISSION_DOES_NOT_EXIST: {
|
|
1008
1002
|
readonly message: "Permission does not exist";
|
|
1009
1003
|
readonly params: readonly ["permissionId"];
|
|
1010
|
-
readonly affectedFields: readonly ["
|
|
1004
|
+
readonly affectedFields: readonly ["permissionIds"];
|
|
1011
1005
|
};
|
|
1012
1006
|
readonly ROLE_HAS_ASSIGNED_USERS: {
|
|
1013
1007
|
readonly message: "Cannot delete role with name '{roleName}' because it has users assigned to it";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC"}
|
package/package.json
CHANGED
package/publish.js
CHANGED
|
@@ -2,6 +2,16 @@ const { execSync } = require('child_process');
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
|
|
5
|
+
const bumpPatchVersion = () => {
|
|
6
|
+
const pkgPath = path.resolve(__dirname, 'package.json');
|
|
7
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
8
|
+
const [major, minor, patch] = pkg.version.split('.').map(Number);
|
|
9
|
+
pkg.version = `${major}.${minor}.${patch + 1}`;
|
|
10
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
11
|
+
console.log(`Version bumped to ${pkg.version}`);
|
|
12
|
+
return pkg.version;
|
|
13
|
+
};
|
|
14
|
+
|
|
5
15
|
const loadEnvironmentVariables = () => {
|
|
6
16
|
const envPath = path.resolve(__dirname, '.env');
|
|
7
17
|
if (fs.existsSync(envPath)) {
|
|
@@ -33,6 +43,28 @@ const validateToken = () => {
|
|
|
33
43
|
console.log('NPM_TOKEN verified.');
|
|
34
44
|
};
|
|
35
45
|
|
|
46
|
+
const updateLockFile = () => {
|
|
47
|
+
try {
|
|
48
|
+
console.log('Updating package-lock.json...');
|
|
49
|
+
execSync('npm install', { stdio: 'inherit', cwd: __dirname });
|
|
50
|
+
console.log('package-lock.json updated.');
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.error('\x1b[31mFailed to update package-lock.json.\x1b[0m');
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const executeBuild = () => {
|
|
58
|
+
try {
|
|
59
|
+
console.log('Building dist...');
|
|
60
|
+
execSync('pnpm build', { stdio: 'inherit', cwd: __dirname });
|
|
61
|
+
console.log('Build complete.');
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.error('\x1b[31mBuild failed.\x1b[0m');
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
36
68
|
const executePublish = () => {
|
|
37
69
|
try {
|
|
38
70
|
console.log('Starting publish process (skipping git checks)...');
|
|
@@ -50,7 +82,11 @@ const executePublish = () => {
|
|
|
50
82
|
const main = () => {
|
|
51
83
|
loadEnvironmentVariables();
|
|
52
84
|
validateToken();
|
|
85
|
+
const newVersion = bumpPatchVersion();
|
|
86
|
+
updateLockFile();
|
|
87
|
+
executeBuild();
|
|
53
88
|
executePublish();
|
|
89
|
+
console.log(`\x1b[32mPublished version ${newVersion}. Run "pnpm install" in consuming projects to update.\x1b[0m`);
|
|
54
90
|
};
|
|
55
91
|
|
|
56
92
|
main();
|
|
@@ -11,7 +11,7 @@ export const ACCOUNT_CATEGORIES = {
|
|
|
11
11
|
NAME_ALREADY_EXISTS: {
|
|
12
12
|
message: `Account category with the same name '{name}' already exists`,
|
|
13
13
|
params: ['name'],
|
|
14
|
-
affectedFields: ['
|
|
14
|
+
affectedFields: ['accountCategory'],
|
|
15
15
|
},
|
|
16
16
|
OPTION_IN_USE: {
|
|
17
17
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,12 +11,12 @@ export const ACCOUNT_IDS = {
|
|
|
11
11
|
NAME_ALREADY_EXISTS: {
|
|
12
12
|
message: `Account id with the same name '{name}' already exists`,
|
|
13
13
|
params: ['name'],
|
|
14
|
-
affectedFields: ['
|
|
14
|
+
affectedFields: ['accountId'],
|
|
15
15
|
},
|
|
16
16
|
ACCOUNT_CATEGORY_ID_DOES_NOT_EXIST: {
|
|
17
17
|
message: `Account category does not exist`,
|
|
18
18
|
params: ['id'],
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['accountCategory'],
|
|
20
20
|
},
|
|
21
21
|
OPTION_IN_USE: {
|
|
22
22
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,7 +11,7 @@ export const BUSINESS_ACTIVITIES = {
|
|
|
11
11
|
NAME_ALREADY_EXISTS: {
|
|
12
12
|
message: `Business activity with the same name '{name}' already exists.`,
|
|
13
13
|
params: ['name'],
|
|
14
|
-
affectedFields: ['
|
|
14
|
+
affectedFields: ['bussinesActivity'],
|
|
15
15
|
},
|
|
16
16
|
OPTION_IN_USE: {
|
|
17
17
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -11,7 +11,7 @@ export const FILING_CATEGORIES = {
|
|
|
11
11
|
NAME_ALREADY_EXISTS: {
|
|
12
12
|
message: `Filing category with the same name '{name}' already exists`,
|
|
13
13
|
params: ['name'],
|
|
14
|
-
affectedFields: ['
|
|
14
|
+
affectedFields: ['filingCategory'],
|
|
15
15
|
},
|
|
16
16
|
OPTION_IN_USE: {
|
|
17
17
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -21,7 +21,7 @@ export const ROLES_AND_PERMISSIONS = {
|
|
|
21
21
|
PERMISSION_DOES_NOT_EXIST: {
|
|
22
22
|
message: `Permission does not exist`,
|
|
23
23
|
params: ['permissionId'],
|
|
24
|
-
affectedFields: ['
|
|
24
|
+
affectedFields: ['permissionIds'],
|
|
25
25
|
},
|
|
26
26
|
ROLE_HAS_ASSIGNED_USERS: {
|
|
27
27
|
message: `Cannot delete role with name '{roleName}' because it has users assigned to it`,
|
|
@@ -16,7 +16,7 @@ export const STATES = {
|
|
|
16
16
|
STATE_TYPE_ID_DOES_NOT_EXIST: {
|
|
17
17
|
message: `State type does not exist`,
|
|
18
18
|
params: ['id'],
|
|
19
|
-
affectedFields: ['
|
|
19
|
+
affectedFields: ['stateType'],
|
|
20
20
|
},
|
|
21
21
|
IS_PARENT_OF_OTHER_STATES: {
|
|
22
22
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -25,21 +25,21 @@ export const STATES = {
|
|
|
25
25
|
PARENT_ID_DOES_NOT_EXIST: {
|
|
26
26
|
message: `Parent state does not exist`,
|
|
27
27
|
params: ['id'],
|
|
28
|
-
affectedFields: ['
|
|
28
|
+
affectedFields: ['parent'],
|
|
29
29
|
},
|
|
30
30
|
NATION_PARENT_TYPE_NOT_ALLOWED: {
|
|
31
31
|
message: `Nation cannot have associated parent.`,
|
|
32
|
-
affectedFields: ['
|
|
32
|
+
affectedFields: ['parent'],
|
|
33
33
|
},
|
|
34
34
|
STATE_PARENT_TYPE_NOT_ALLOWED: {
|
|
35
35
|
message: `There must be a nation associated with the state '{stateName}'. Please select a nation to proceed.`,
|
|
36
36
|
params: ['stateName'],
|
|
37
|
-
affectedFields: ['
|
|
37
|
+
affectedFields: ['parent'],
|
|
38
38
|
},
|
|
39
39
|
CITY_PARENT_TYPE_NOT_ALLOWED: {
|
|
40
40
|
message: `There must be a state associated with the city '{cityName}'. Please select a state to proceed.`,
|
|
41
41
|
params: ['cityName'],
|
|
42
|
-
affectedFields: ['
|
|
42
|
+
affectedFields: ['parent'],
|
|
43
43
|
},
|
|
44
44
|
OPTION_IN_USE: {
|
|
45
45
|
message: `This option is currently in use and cannot be deleted.`,
|
|
@@ -2,7 +2,7 @@ export const USERS = {
|
|
|
2
2
|
USERNAME_DOES_NOT_EXIST: {
|
|
3
3
|
message: `User with username {username} does not exist.`,
|
|
4
4
|
params: ['username'],
|
|
5
|
-
affectedFields: ['
|
|
5
|
+
affectedFields: ['userName'],
|
|
6
6
|
},
|
|
7
7
|
INVALID_PASSWORD: {
|
|
8
8
|
message: `User with username {username} password does not match.`,
|
|
@@ -24,7 +24,7 @@ export const USERS = {
|
|
|
24
24
|
USERNAME_ALREADY_EXISTS: {
|
|
25
25
|
message: `User with username '{username}' already exists`,
|
|
26
26
|
params: ['username'],
|
|
27
|
-
affectedFields: ['
|
|
27
|
+
affectedFields: ['userName'],
|
|
28
28
|
},
|
|
29
29
|
EMAIL_ALREADY_EXISTS: {
|
|
30
30
|
message: `User with email '{email}' already exists`,
|