@forwardslashns/taskit-validation-messages 1.10.18 → 1.10.19

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.
Files changed (123) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -1
  4. package/dist/validation/features/account-categories.validation-messages.d.ts +18 -14
  5. package/dist/validation/features/account-categories.validation-messages.d.ts.map +1 -1
  6. package/dist/validation/features/account-categories.validation-messages.js +7 -2
  7. package/dist/validation/features/account-ids.validation-messages.d.ts +23 -18
  8. package/dist/validation/features/account-ids.validation-messages.d.ts.map +1 -1
  9. package/dist/validation/features/account-ids.validation-messages.js +8 -2
  10. package/dist/validation/features/business-activities.validation-messages.d.ts +18 -14
  11. package/dist/validation/features/business-activities.validation-messages.d.ts.map +1 -1
  12. package/dist/validation/features/business-activities.validation-messages.js +7 -2
  13. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +195 -158
  14. package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
  15. package/dist/validation/features/client-current-entity-statuses.validation-messages.js +45 -7
  16. package/dist/validation/features/client-records-addresses.validation-messages.d.ts +71 -58
  17. package/dist/validation/features/client-records-addresses.validation-messages.d.ts.map +1 -1
  18. package/dist/validation/features/client-records-addresses.validation-messages.js +16 -2
  19. package/dist/validation/features/client-records-banks.validation-messages.d.ts +20 -15
  20. package/dist/validation/features/client-records-banks.validation-messages.d.ts.map +1 -1
  21. package/dist/validation/features/client-records-banks.validation-messages.js +8 -2
  22. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts +21 -16
  23. package/dist/validation/features/client-records-commission-details.validation-messages.d.ts.map +1 -1
  24. package/dist/validation/features/client-records-commission-details.validation-messages.js +8 -2
  25. package/dist/validation/features/client-records-contacts.validation-messages.d.ts +41 -33
  26. package/dist/validation/features/client-records-contacts.validation-messages.d.ts.map +1 -1
  27. package/dist/validation/features/client-records-contacts.validation-messages.js +11 -2
  28. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts +24 -18
  29. package/dist/validation/features/client-records-credit-cards.validation-messages.d.ts.map +1 -1
  30. package/dist/validation/features/client-records-credit-cards.validation-messages.js +9 -2
  31. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts +97 -80
  32. package/dist/validation/features/client-records-entity-states-histories.validation-messages.d.ts.map +1 -1
  33. package/dist/validation/features/client-records-entity-states-histories.validation-messages.js +30 -12
  34. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts +96 -79
  35. package/dist/validation/features/client-records-entity-types-histories.validation-messages.d.ts.map +1 -1
  36. package/dist/validation/features/client-records-entity-types-histories.validation-messages.js +30 -12
  37. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts +96 -79
  38. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.d.ts.map +1 -1
  39. package/dist/validation/features/client-records-filing-statuses-histories.validation-messages.js +30 -12
  40. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts +10 -8
  41. package/dist/validation/features/client-records-outside-providers.validation-messages.d.ts.map +1 -1
  42. package/dist/validation/features/client-records-outside-providers.validation-messages.js +6 -3
  43. package/dist/validation/features/client-relationships-common.validation-messages.d.ts +69 -55
  44. package/dist/validation/features/client-relationships-common.validation-messages.d.ts.map +1 -1
  45. package/dist/validation/features/client-relationships-common.validation-messages.js +30 -15
  46. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts +84 -68
  47. package/dist/validation/features/client-relationships-income-sources.validation-messages.d.ts.map +1 -1
  48. package/dist/validation/features/client-relationships-income-sources.validation-messages.js +21 -4
  49. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts +86 -69
  50. package/dist/validation/features/client-relationships-owners.validation-messages.d.ts.map +1 -1
  51. package/dist/validation/features/client-relationships-owners.validation-messages.js +22 -4
  52. package/dist/validation/features/data-filters.validation-messages.d.ts +16 -12
  53. package/dist/validation/features/data-filters.validation-messages.d.ts.map +1 -1
  54. package/dist/validation/features/data-filters.validation-messages.js +7 -2
  55. package/dist/validation/features/filing-categories.validation-messages.d.ts +18 -14
  56. package/dist/validation/features/filing-categories.validation-messages.d.ts.map +1 -1
  57. package/dist/validation/features/filing-categories.validation-messages.js +7 -2
  58. package/dist/validation/features/income-accounts.validation-messages.d.ts +17 -13
  59. package/dist/validation/features/income-accounts.validation-messages.d.ts.map +1 -1
  60. package/dist/validation/features/income-accounts.validation-messages.js +7 -2
  61. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts +29 -23
  62. package/dist/validation/features/roles-and-permissions.validation-messages.d.ts.map +1 -1
  63. package/dist/validation/features/roles-and-permissions.validation-messages.js +9 -2
  64. package/dist/validation/features/states.validation-messages.d.ts +55 -45
  65. package/dist/validation/features/states.validation-messages.d.ts.map +1 -1
  66. package/dist/validation/features/states.validation-messages.js +13 -2
  67. package/dist/validation/features/template-assignments.validation-messages.d.ts +85 -68
  68. package/dist/validation/features/template-assignments.validation-messages.d.ts.map +1 -1
  69. package/dist/validation/features/template-assignments.validation-messages.js +20 -2
  70. package/dist/validation/features/template-information.validation-messages.d.ts +218 -175
  71. package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
  72. package/dist/validation/features/template-information.validation-messages.js +46 -2
  73. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts +164 -132
  74. package/dist/validation/features/template-recurrence-settings.validation-messages.d.ts.map +1 -1
  75. package/dist/validation/features/template-recurrence-settings.validation-messages.js +37 -4
  76. package/dist/validation/features/template-states.validation-messages.d.ts +49 -39
  77. package/dist/validation/features/template-states.validation-messages.d.ts.map +1 -1
  78. package/dist/validation/features/template-states.validation-messages.js +13 -2
  79. package/dist/validation/features/user-preferences.validation-messages.d.ts +17 -13
  80. package/dist/validation/features/user-preferences.validation-messages.d.ts.map +1 -1
  81. package/dist/validation/features/user-preferences.validation-messages.js +8 -3
  82. package/dist/validation/features/users.validation-messages.d.ts +65 -53
  83. package/dist/validation/features/users.validation-messages.d.ts.map +1 -1
  84. package/dist/validation/features/users.validation-messages.js +17 -4
  85. package/dist/validation/validation-message.formatter.d.ts +2 -0
  86. package/dist/validation/validation-message.formatter.d.ts.map +1 -1
  87. package/dist/validation/validation-message.formatter.js +1 -0
  88. package/dist/validation/validation-message.types.d.ts +30 -0
  89. package/dist/validation/validation-message.types.d.ts.map +1 -0
  90. package/dist/validation/validation-message.types.js +9 -0
  91. package/dist/validation/validation-messages.d.ts +1756 -1423
  92. package/dist/validation/validation-messages.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/index.ts +14 -0
  95. package/src/validation/features/account-categories.validation-messages.ts +8 -2
  96. package/src/validation/features/account-ids.validation-messages.ts +9 -2
  97. package/src/validation/features/business-activities.validation-messages.ts +8 -2
  98. package/src/validation/features/client-current-entity-statuses.validation-messages.ts +46 -7
  99. package/src/validation/features/client-records-addresses.validation-messages.ts +17 -2
  100. package/src/validation/features/client-records-banks.validation-messages.ts +9 -2
  101. package/src/validation/features/client-records-commission-details.validation-messages.ts +9 -2
  102. package/src/validation/features/client-records-contacts.validation-messages.ts +12 -2
  103. package/src/validation/features/client-records-credit-cards.validation-messages.ts +10 -2
  104. package/src/validation/features/client-records-entity-states-histories.validation-messages.ts +31 -12
  105. package/src/validation/features/client-records-entity-types-histories.validation-messages.ts +31 -12
  106. package/src/validation/features/client-records-filing-statuses-histories.validation-messages.ts +31 -12
  107. package/src/validation/features/client-records-outside-providers.validation-messages.ts +7 -3
  108. package/src/validation/features/client-relationships-common.validation-messages.ts +31 -15
  109. package/src/validation/features/client-relationships-income-sources.validation-messages.ts +22 -4
  110. package/src/validation/features/client-relationships-owners.validation-messages.ts +23 -4
  111. package/src/validation/features/data-filters.validation-messages.ts +8 -2
  112. package/src/validation/features/filing-categories.validation-messages.ts +8 -2
  113. package/src/validation/features/income-accounts.validation-messages.ts +8 -2
  114. package/src/validation/features/roles-and-permissions.validation-messages.ts +10 -2
  115. package/src/validation/features/states.validation-messages.ts +14 -2
  116. package/src/validation/features/template-assignments.validation-messages.ts +21 -2
  117. package/src/validation/features/template-information.validation-messages.ts +47 -2
  118. package/src/validation/features/template-recurrence-settings.validation-messages.ts +38 -4
  119. package/src/validation/features/template-states.validation-messages.ts +14 -2
  120. package/src/validation/features/user-preferences.validation-messages.ts +9 -3
  121. package/src/validation/features/users.validation-messages.ts +18 -4
  122. package/src/validation/validation-message.formatter.ts +4 -6
  123. package/src/validation/validation-message.types.ts +36 -0
@@ -1,37 +1,45 @@
1
1
  export declare const CLIENT_RECORDS_CONTACTS: {
2
- readonly CONTACT_ROLES_NOT_FOUND: {
3
- readonly message: "Contact roles do not exist";
4
- readonly params: readonly ["ids"];
5
- readonly affectedFields: readonly ["contact"];
6
- };
7
- readonly CONTACT_TYPES_NOT_FOUND: {
8
- readonly message: "Contact types do not exist";
9
- readonly params: readonly ["ids"];
10
- readonly affectedFields: readonly ["type"];
11
- };
12
- readonly LEGAL_CONTACT_MUST_BE_PROVIDED: {
13
- readonly message: "The client must have a legal contact. Please set the contact type to 'Legal'.";
14
- readonly affectedFields: readonly ["contacts"];
15
- };
16
- readonly MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
17
- readonly message: "The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.";
18
- readonly affectedFields: readonly ["contacts"];
19
- };
20
- readonly BILLING_CONTACT_MUST_BE_PROVIDED: {
21
- readonly message: "The client must have a billing contact. Please set the contact type to 'Billing'.";
22
- readonly affectedFields: readonly ["contacts"];
23
- };
24
- readonly MULTIPLE_BILLING_CONTACTS_PROVIDED: {
25
- readonly message: "The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.";
26
- readonly affectedFields: readonly ["contacts"];
27
- };
28
- readonly PRIMARY_CONTACT_MUST_BE_PROVIDED: {
29
- readonly message: "The client must have a primary contact. Please set the contact type to 'Primary'.";
30
- readonly affectedFields: readonly ["contacts"];
31
- };
32
- readonly MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
33
- readonly message: "The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.";
34
- readonly affectedFields: readonly ["contacts"];
2
+ CONTACT_ROLES_NOT_FOUND: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
7
+ };
8
+ CONTACT_TYPES_NOT_FOUND: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
13
+ };
14
+ LEGAL_CONTACT_MUST_BE_PROVIDED: {
15
+ severity: "error";
16
+ message: string;
17
+ affectedFields: string[];
18
+ };
19
+ MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
20
+ severity: "error";
21
+ message: string;
22
+ affectedFields: string[];
23
+ };
24
+ BILLING_CONTACT_MUST_BE_PROVIDED: {
25
+ severity: "error";
26
+ message: string;
27
+ affectedFields: string[];
28
+ };
29
+ MULTIPLE_BILLING_CONTACTS_PROVIDED: {
30
+ severity: "error";
31
+ message: string;
32
+ affectedFields: string[];
33
+ };
34
+ PRIMARY_CONTACT_MUST_BE_PROVIDED: {
35
+ severity: "error";
36
+ message: string;
37
+ affectedFields: string[];
38
+ };
39
+ MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
40
+ severity: "error";
41
+ message: string;
42
+ affectedFields: string[];
35
43
  };
36
44
  };
37
45
  //# sourceMappingURL=client-records-contacts.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-contacts.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-contacts.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC1B,CAAC"}
1
+ {"version":3,"file":"client-records-contacts.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-contacts.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ClC,CAAC"}
@@ -1,39 +1,48 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_CONTACTS = void 0;
4
- exports.CLIENT_RECORDS_CONTACTS = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_CONTACTS = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  CONTACT_ROLES_NOT_FOUND: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `Contact roles do not exist`,
7
9
  params: ['ids'],
8
10
  affectedFields: ['contact'],
9
11
  },
10
12
  CONTACT_TYPES_NOT_FOUND: {
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
11
14
  message: `Contact types do not exist`,
12
15
  params: ['ids'],
13
16
  affectedFields: ['type'],
14
17
  },
15
18
  LEGAL_CONTACT_MUST_BE_PROVIDED: {
19
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
16
20
  message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
17
21
  affectedFields: ['contacts'],
18
22
  },
19
23
  MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
24
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
20
25
  message: `The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.`,
21
26
  affectedFields: ['contacts'],
22
27
  },
23
28
  BILLING_CONTACT_MUST_BE_PROVIDED: {
29
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
24
30
  message: `The client must have a billing contact. Please set the contact type to 'Billing'.`,
25
31
  affectedFields: ['contacts'],
26
32
  },
27
33
  MULTIPLE_BILLING_CONTACTS_PROVIDED: {
34
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
28
35
  message: `The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.`,
29
36
  affectedFields: ['contacts'],
30
37
  },
31
38
  PRIMARY_CONTACT_MUST_BE_PROVIDED: {
39
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
32
40
  message: `The client must have a primary contact. Please set the contact type to 'Primary'.`,
33
41
  affectedFields: ['contacts'],
34
42
  },
35
43
  MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
44
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
36
45
  message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
37
46
  affectedFields: ['contacts'],
38
47
  },
39
- };
48
+ });
@@ -1,27 +1,33 @@
1
1
  export declare const CLIENT_RECORDS_CREDIT_CARDS: {
2
- readonly INVALID_EXPIRATION_DATE: {
3
- readonly message: "Enter a valid expiration date (i.e. 12/2024).";
4
- readonly affectedFields: readonly ["expDate"];
2
+ INVALID_EXPIRATION_DATE: {
3
+ severity: "error";
4
+ message: string;
5
+ affectedFields: string[];
5
6
  };
6
- readonly INVALID_SECURITY_CODE: {
7
- readonly message: "Enter a valid security code (i.e. 1234).";
8
- readonly affectedFields: readonly ["securityCode"];
7
+ INVALID_SECURITY_CODE: {
8
+ severity: "error";
9
+ message: string;
10
+ affectedFields: string[];
9
11
  };
10
- readonly INVALID_ACCOUNT_NUMBER: {
11
- readonly message: "Enter a valid account number.";
12
- readonly affectedFields: readonly ["accountNumber"];
12
+ INVALID_ACCOUNT_NUMBER: {
13
+ severity: "error";
14
+ message: string;
15
+ affectedFields: string[];
13
16
  };
14
- readonly INVALID_DESCRIPTION: {
15
- readonly message: "There is another payment method with the same description. Please ensure all payment methods have different descriptions.";
16
- readonly affectedFields: readonly ["description"];
17
+ INVALID_DESCRIPTION: {
18
+ severity: "error";
19
+ message: string;
20
+ affectedFields: string[];
17
21
  };
18
- readonly NO_DEFAULT_PAYMENT_METHOD: {
19
- readonly message: "There must be at least one payment method marked as default. Please select a default payment method.";
20
- readonly affectedFields: readonly ["paymentMethods"];
22
+ NO_DEFAULT_PAYMENT_METHOD: {
23
+ severity: "error";
24
+ message: string;
25
+ affectedFields: string[];
21
26
  };
22
- readonly MULTIPLE_DEFAULT_PAYMENT_METHODS: {
23
- readonly message: "There can only be one default payment method. Please ensure only one payment method is marked as default.";
24
- readonly affectedFields: readonly ["paymentMethods"];
27
+ MULTIPLE_DEFAULT_PAYMENT_METHODS: {
28
+ severity: "error";
29
+ message: string;
30
+ affectedFields: string[];
25
31
  };
26
32
  };
27
33
  //# sourceMappingURL=client-records-credit-cards.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-credit-cards.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-credit-cards.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC"}
1
+ {"version":3,"file":"client-records-credit-cards.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-credit-cards.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtC,CAAC"}
@@ -1,29 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_CREDIT_CARDS = void 0;
4
- exports.CLIENT_RECORDS_CREDIT_CARDS = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_CREDIT_CARDS = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  INVALID_EXPIRATION_DATE: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: 'Enter a valid expiration date (i.e. 12/2024).',
7
9
  affectedFields: ['expDate'],
8
10
  },
9
11
  INVALID_SECURITY_CODE: {
12
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
10
13
  message: 'Enter a valid security code (i.e. 1234).',
11
14
  affectedFields: ['securityCode'],
12
15
  },
13
16
  INVALID_ACCOUNT_NUMBER: {
17
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
18
  message: 'Enter a valid account number.',
15
19
  affectedFields: ['accountNumber'],
16
20
  },
17
21
  INVALID_DESCRIPTION: {
22
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
18
23
  message: 'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
19
24
  affectedFields: ['description'],
20
25
  },
21
26
  NO_DEFAULT_PAYMENT_METHOD: {
27
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
22
28
  message: 'There must be at least one payment method marked as default. Please select a default payment method.',
23
29
  affectedFields: ['paymentMethods'],
24
30
  },
25
31
  MULTIPLE_DEFAULT_PAYMENT_METHODS: {
32
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
26
33
  message: 'There can only be one default payment method. Please ensure only one payment method is marked as default.',
27
34
  affectedFields: ['paymentMethods'],
28
35
  },
29
- };
36
+ });
@@ -1,84 +1,101 @@
1
1
  export declare const CLIENT_RECORDS_ENTITY_STATES: {
2
- readonly STATE_ID_DOES_NOT_EXIST: {
3
- readonly message: "State does not exist";
4
- readonly params: readonly ["id"];
5
- readonly affectedFields: readonly ["state"];
6
- };
7
- readonly NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
8
- readonly message: "The state, {domesticState}, starts on {domesticStateStartingDate}, which is earlier than the client's date established, {clientDateEstablished}. Please adjust the start date of the state or the client's date established.";
9
- readonly params: readonly ["clientDateEstablished", "domesticState", "domesticStateStartingDate"];
10
- readonly affectedFields: readonly ["dateEstablished", "domesticState"];
11
- };
12
- readonly NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
13
- readonly message: "One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.";
14
- readonly params: readonly ["clientCloseDate", "domesticState", "domesticStateStartingDate"];
15
- readonly affectedFields: readonly ["closeDate", "domesticState"];
16
- };
17
- readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
18
- readonly message: "Current Domestic State Starting Date cannot be Empty";
19
- readonly affectedFields: readonly ["stateStartingDate"];
20
- };
21
- readonly STATES_IDS_DOES_NOT_EXIST: {
22
- readonly message: "States do not exist";
23
- readonly params: readonly ["ids"];
24
- readonly affectedFields: readonly ["state"];
25
- };
26
- readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
27
- readonly message: "Residence type does not exist";
28
- readonly params: readonly ["ids"];
29
- readonly affectedFields: readonly ["residence"];
30
- };
31
- readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
32
- readonly message: "At least one domestic state should exist";
33
- readonly affectedFields: readonly ["domesticState"];
34
- };
35
- readonly STATES_STARTING_DATE_NOT_POPULATED: {
36
- readonly message: "Starting date for {state} cannot be empty";
37
- readonly params: readonly ["state"];
38
- readonly affectedFields: readonly ["stateStartingDate"];
39
- };
40
- readonly NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
41
- readonly message: "The ending date for {state} must be after its starting date";
42
- readonly params: readonly ["state"];
43
- readonly affectedFields: readonly ["stateStartingDate", "stateEndingDate"];
44
- };
45
- readonly NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
46
- readonly message: "Adjust the start date to be on or after the client's date established, {clientStartDate}.";
47
- readonly params: readonly ["clientStartDate"];
48
- readonly affectedFields: readonly ["stateStartingDate", "dateEstablished"];
49
- };
50
- readonly NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
51
- readonly message: "Adjust the start date to be before the client's close date, {clientCloseDate}.";
52
- readonly params: readonly ["clientCloseDate"];
53
- readonly affectedFields: readonly ["stateStartingDate", "closeDate"];
54
- };
55
- readonly DOMESTIC_STATES_DATE_GAP_DETECTED: {
56
- readonly message: "There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.";
57
- readonly params: readonly ["currentState", "currentStateEndDate", "nextState", "nextStateStartDate"];
58
- readonly affectedFields: readonly ["domesticState"];
59
- };
60
- readonly STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
61
- readonly message: "There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. ";
62
- readonly params: readonly ["state", "firstPeriodStart", "firstPeriodEnd", "secondPeriodStart"];
63
- readonly affectedFields: readonly ["domesticState"];
64
- };
65
- readonly DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
66
- readonly message: "There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.";
67
- readonly params: readonly ["dateEstablished", "earliestState", "earliestStateStartDate"];
68
- readonly affectedFields: readonly ["domesticState", "dateEstablished"];
69
- };
70
- readonly STATES_DATES_OVERLAP: {
71
- readonly message: "The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.";
72
- readonly params: readonly ["state", "startDate1", "endDate1", "startDate2", "endDate2"];
73
- readonly affectedFields: readonly ["domesticState"];
74
- };
75
- readonly ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
76
- readonly message: "Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.";
77
- readonly affectedFields: readonly ["stateEndingDate"];
78
- };
79
- readonly CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
80
- readonly message: "The current domestic state cannot have an end date. Please remove the end date for this state.";
81
- readonly affectedFields: readonly ["stateEndingDate"];
2
+ STATE_ID_DOES_NOT_EXIST: {
3
+ severity: "error";
4
+ message: string;
5
+ params: string[];
6
+ affectedFields: string[];
7
+ };
8
+ NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
9
+ severity: "error";
10
+ message: string;
11
+ params: string[];
12
+ affectedFields: string[];
13
+ };
14
+ NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
15
+ severity: "error";
16
+ message: string;
17
+ params: string[];
18
+ affectedFields: string[];
19
+ };
20
+ DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
21
+ severity: "error";
22
+ message: string;
23
+ affectedFields: string[];
24
+ };
25
+ STATES_IDS_DOES_NOT_EXIST: {
26
+ severity: "error";
27
+ message: string;
28
+ params: string[];
29
+ affectedFields: string[];
30
+ };
31
+ RESIDENCE_TYPE_DOES_NOT_EXIST: {
32
+ severity: "error";
33
+ message: string;
34
+ params: string[];
35
+ affectedFields: string[];
36
+ };
37
+ AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
38
+ severity: "error";
39
+ message: string;
40
+ affectedFields: string[];
41
+ };
42
+ STATES_STARTING_DATE_NOT_POPULATED: {
43
+ severity: "error";
44
+ message: string;
45
+ params: string[];
46
+ affectedFields: string[];
47
+ };
48
+ NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
49
+ severity: "error";
50
+ message: string;
51
+ params: string[];
52
+ affectedFields: string[];
53
+ };
54
+ NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
55
+ severity: "error";
56
+ message: string;
57
+ params: string[];
58
+ affectedFields: string[];
59
+ };
60
+ NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
61
+ severity: "error";
62
+ message: string;
63
+ params: string[];
64
+ affectedFields: string[];
65
+ };
66
+ DOMESTIC_STATES_DATE_GAP_DETECTED: {
67
+ severity: "error";
68
+ message: string;
69
+ params: string[];
70
+ affectedFields: string[];
71
+ };
72
+ STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
73
+ severity: "error";
74
+ message: string;
75
+ params: string[];
76
+ affectedFields: string[];
77
+ };
78
+ DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
79
+ severity: "error";
80
+ message: string;
81
+ params: string[];
82
+ affectedFields: string[];
83
+ };
84
+ STATES_DATES_OVERLAP: {
85
+ severity: "error";
86
+ message: string;
87
+ params: string[];
88
+ affectedFields: string[];
89
+ };
90
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
91
+ severity: "error";
92
+ message: string;
93
+ affectedFields: string[];
94
+ };
95
+ CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
96
+ severity: "error";
97
+ message: string;
98
+ affectedFields: string[];
82
99
  };
83
100
  };
84
101
  //# sourceMappingURL=client-records-entity-states-histories.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-records-entity-states-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-entity-states-histories.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF/B,CAAC"}
1
+ {"version":3,"file":"client-records-entity-states-histories.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-records-entity-states-histories.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGvC,CAAC"}
@@ -1,86 +1,104 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLIENT_RECORDS_ENTITY_STATES = void 0;
4
- exports.CLIENT_RECORDS_ENTITY_STATES = {
4
+ const validation_message_types_1 = require("../validation-message.types");
5
+ exports.CLIENT_RECORDS_ENTITY_STATES = (0, validation_message_types_1.defineValidationFeatureMessages)({
5
6
  STATE_ID_DOES_NOT_EXIST: {
7
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
6
8
  message: `State does not exist`,
7
9
  params: ['id'],
8
10
  affectedFields: ['state'],
9
11
  },
10
12
  NOT_ALIGNED_DATE_ESTABLISHED_DOMESTIC_STATE_STARTING_DATE: {
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.`,
13
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
14
+ message: `The state, '{domesticState}', starts on '{domesticStateStartingDate}', which is earlier than the client's date established, '{clientDateEstablished}'. Please adjust the start date of the state or the client's date established.`,
12
15
  params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
13
16
  affectedFields: ['dateEstablished', 'domesticState'],
14
17
  },
15
18
  NOT_ALIGNED_CLOSE_DATE_DOMESTIC_STATE_STARTING_DATE: {
16
- message: `One or more states have a start date which is after the client's close date of {clientCloseDate}. {domesticState} starting {domesticStateStartingDate}. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
19
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
20
+ message: `One or more states have a start date which is after the client's close date of '{clientCloseDate}'. '{domesticState}' starting '{domesticStateStartingDate}'. Please update the state/s start date/s to be before the client's close date, or update the client's close date.`,
17
21
  params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
18
22
  affectedFields: ['closeDate', 'domesticState'],
19
23
  },
20
24
  DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
25
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
21
26
  message: `Current Domestic State Starting Date cannot be Empty`,
22
27
  affectedFields: ['stateStartingDate'],
23
28
  },
24
29
  STATES_IDS_DOES_NOT_EXIST: {
30
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
25
31
  message: `States do not exist`,
26
32
  params: ['ids'],
27
33
  affectedFields: ['state'],
28
34
  },
29
35
  RESIDENCE_TYPE_DOES_NOT_EXIST: {
36
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
30
37
  message: `Residence type does not exist`,
31
38
  params: ['ids'],
32
39
  affectedFields: ['residence'],
33
40
  },
34
41
  AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
42
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
35
43
  message: `At least one domestic state should exist`,
36
44
  affectedFields: ['domesticState'],
37
45
  },
38
46
  STATES_STARTING_DATE_NOT_POPULATED: {
39
- message: `Starting date for {state} cannot be empty`,
47
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
48
+ message: `Starting date for '{state}' cannot be empty`,
40
49
  params: ['state'],
41
50
  affectedFields: ['stateStartingDate'],
42
51
  },
43
52
  NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
44
- message: `The ending date for {state} must be after its starting date`,
53
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
54
+ message: `The ending date for '{state}' must be after its starting date`,
45
55
  params: ['state'],
46
56
  affectedFields: ['stateStartingDate', 'stateEndingDate'],
47
57
  },
48
58
  NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
49
- message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
59
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
60
+ message: `Adjust the start date to be on or after the client's date established, '{clientStartDate}'.`,
50
61
  params: ['clientStartDate'],
51
62
  affectedFields: ['stateStartingDate', 'dateEstablished'],
52
63
  },
53
64
  NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
54
- message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
65
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
66
+ message: `Adjust the start date to be before the client's close date, '{clientCloseDate}'.`,
55
67
  params: ['clientCloseDate'],
56
68
  affectedFields: ['stateStartingDate', 'closeDate'],
57
69
  },
58
70
  DOMESTIC_STATES_DATE_GAP_DETECTED: {
59
- message: `There is a gap in the timeframes between {currentState}, ending {currentStateEndDate}, and {nextState}, starting {nextStateStartDate}. Please adjust the dates to fill this gap.`,
71
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
72
+ message: `There is a gap in the timeframes between '{currentState}', ending '{currentStateEndDate}', and '{nextState}', starting '{nextStateStartDate}'. Please adjust the dates to fill this gap.`,
60
73
  params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
61
74
  affectedFields: ['domesticState'],
62
75
  },
63
76
  STATES_CONSECUTIVE_DUPLICATES_DETECTED: {
64
- message: `There are two entries for {state} with timeframes that immediately follow each other. {state} ending {firstPeriodEnd}, and {state} starting {secondPeriodStart}. Please update one entry to include the entire timeframe for {state}. `,
77
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
78
+ message: `There are two entries for '{state}' with timeframes that immediately follow each other. '{state}' ending '{firstPeriodEnd}', and '{state}' starting '{secondPeriodStart}'. Please update one entry to include the entire timeframe for '{state}'. `,
65
79
  params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
66
80
  affectedFields: ['domesticState'],
67
81
  },
68
82
  DOMESTIC_STATE_EARLIEST_AND_DATE_ESTABLISHED_GAP_DETECTED: {
69
- message: `There is a gap between the client's date established ({dateEstablished}) and the start of its first state ({earliestState} starting {earliestStateStartDate}). There must be a state that begins on {dateEstablished}.`,
83
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
84
+ message: `There is a gap between the client's date established ('{dateEstablished}') and the start of its first state ('{earliestState}' starting '{earliestStateStartDate}'). There must be a state that begins on '{dateEstablished}'.`,
70
85
  params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
71
86
  affectedFields: ['domesticState', 'dateEstablished'],
72
87
  },
73
88
  STATES_DATES_OVERLAP: {
74
- message: `The client already has {state} starting from {startDate2} to {endDate2}. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
89
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
90
+ message: `The client already has '{state}' starting from '{startDate2}' to '{endDate2}'. Your current entity type overlaps with that time. Please adjust the dates so they don't overlap.`,
75
91
  params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
76
92
  affectedFields: ['domesticState'],
77
93
  },
78
94
  ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
95
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
79
96
  message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
80
97
  affectedFields: ['stateEndingDate'],
81
98
  },
82
99
  CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
100
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
83
101
  message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
84
102
  affectedFields: ['stateEndingDate'],
85
103
  },
86
- };
104
+ });