@forwardslashns/taskit-validation-messages 1.2.0 → 1.3.0

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 (59) hide show
  1. package/PUBLISHING.md +3 -0
  2. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts +138 -0
  3. package/dist/validation/features/client-current-entity-status.validation-messages.d.ts.map +1 -0
  4. package/dist/validation/features/client-current-entity-status.validation-messages.js +140 -0
  5. package/dist/validation/features/{address.validation-messages.d.ts → client-record-address.validation-messages.d.ts} +2 -2
  6. package/dist/validation/features/client-record-address.validation-messages.d.ts.map +1 -0
  7. package/dist/validation/features/{address.validation-messages.js → client-record-address.validation-messages.js} +2 -2
  8. package/dist/validation/features/{bank-and-credit-card.validation-messages.d.ts → client-record-bank-and-credit-card.validation-messages.d.ts} +14 -2
  9. package/dist/validation/features/client-record-bank-and-credit-card.validation-messages.d.ts.map +1 -0
  10. package/dist/validation/features/{bank-and-credit-card.validation-messages.js → client-record-bank-and-credit-card.validation-messages.js} +14 -2
  11. package/dist/validation/features/{commission-detail.validation-messages.d.ts → client-record-commission-detail.validation-messages.d.ts} +2 -2
  12. package/dist/validation/features/client-record-commission-detail.validation-messages.d.ts.map +1 -0
  13. package/dist/validation/features/{commission-detail.validation-messages.js → client-record-commission-detail.validation-messages.js} +2 -2
  14. package/dist/validation/features/{contact.validation-messages.d.ts → client-record-contact.validation-messages.d.ts} +2 -2
  15. package/dist/validation/features/client-record-contact.validation-messages.d.ts.map +1 -0
  16. package/dist/validation/features/{contact.validation-messages.js → client-record-contact.validation-messages.js} +2 -2
  17. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts +84 -0
  18. package/dist/validation/features/client-record-entity-state-history.validation-messages.d.ts.map +1 -0
  19. package/dist/validation/features/client-record-entity-state-history.validation-messages.js +86 -0
  20. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts +83 -0
  21. package/dist/validation/features/client-record-entity-type-history.validation-messages.d.ts.map +1 -0
  22. package/dist/validation/features/client-record-entity-type-history.validation-messages.js +85 -0
  23. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts +91 -0
  24. package/dist/validation/features/client-record-filing-type-history.validation-messages.d.ts.map +1 -0
  25. package/dist/validation/features/client-record-filing-type-history.validation-messages.js +93 -0
  26. package/dist/validation/features/{outside-provider.validation-messages.d.ts → client-record-outside-provider.validation-messages.d.ts} +2 -2
  27. package/dist/validation/features/client-record-outside-provider.validation-messages.d.ts.map +1 -0
  28. package/dist/validation/features/{outside-provider.validation-messages.js → client-record-outside-provider.validation-messages.js} +2 -2
  29. package/dist/validation/validation-messages.d.ts +93 -91
  30. package/dist/validation/validation-messages.d.ts.map +1 -1
  31. package/dist/validation/validation-messages.js +18 -16
  32. package/package.json +1 -1
  33. package/src/validation/features/client-current-entity-status.validation-messages.ts +137 -0
  34. package/src/validation/features/{address.validation-messages.ts → client-record-address.validation-messages.ts} +1 -1
  35. package/src/validation/features/{bank-and-credit-card.validation-messages.ts → client-record-bank-and-credit-card.validation-messages.ts} +13 -1
  36. package/src/validation/features/{commission-detail.validation-messages.ts → client-record-commission-detail.validation-messages.ts} +1 -1
  37. package/src/validation/features/{contact.validation-messages.ts → client-record-contact.validation-messages.ts} +1 -1
  38. package/src/validation/features/client-record-entity-state-history.validation-messages.ts +83 -0
  39. package/src/validation/features/client-record-entity-type-history.validation-messages.ts +82 -0
  40. package/src/validation/features/client-record-filing-type-history.validation-messages.ts +90 -0
  41. package/src/validation/features/{outside-provider.validation-messages.ts → client-record-outside-provider.validation-messages.ts} +1 -1
  42. package/src/validation/validation-messages.ts +18 -16
  43. package/dist/validation/features/address.validation-messages.d.ts.map +0 -1
  44. package/dist/validation/features/bank-and-credit-card.validation-messages.d.ts.map +0 -1
  45. package/dist/validation/features/bank.validation-messages.d.ts +0 -7
  46. package/dist/validation/features/bank.validation-messages.d.ts.map +0 -1
  47. package/dist/validation/features/bank.validation-messages.js +0 -9
  48. package/dist/validation/features/client.validation-messages.d.ts +0 -387
  49. package/dist/validation/features/client.validation-messages.d.ts.map +0 -1
  50. package/dist/validation/features/client.validation-messages.js +0 -389
  51. package/dist/validation/features/commission-detail.validation-messages.d.ts.map +0 -1
  52. package/dist/validation/features/contact.validation-messages.d.ts.map +0 -1
  53. package/dist/validation/features/credit-card.validation-messages.d.ts +0 -11
  54. package/dist/validation/features/credit-card.validation-messages.d.ts.map +0 -1
  55. package/dist/validation/features/credit-card.validation-messages.js +0 -13
  56. package/dist/validation/features/outside-provider.validation-messages.d.ts.map +0 -1
  57. package/src/validation/features/bank.validation-messages.ts +0 -6
  58. package/src/validation/features/client.validation-messages.ts +0 -386
  59. package/src/validation/features/credit-card.validation-messages.ts +0 -10
package/PUBLISHING.md CHANGED
@@ -17,11 +17,13 @@ You need a valid NPM access token with publish permissions for the `@forwardslas
17
17
  ## Setup
18
18
 
19
19
  1. **Create `.env` file** (first time only):
20
+
20
21
  ```bash
21
22
  cp .env.example .env
22
23
  ```
23
24
 
24
25
  2. **Add your NPM token** to `.env`:
26
+
25
27
  ```
26
28
  NPM_TOKEN=npm_your_actual_token_here
27
29
  ```
@@ -47,6 +49,7 @@ Or directly:
47
49
  ### "Access token expired or revoked"
48
50
 
49
51
  This means your token is either:
52
+
50
53
  - **Expired** - Generate a new token from npm
51
54
  - **Invalid** - Check you copied the complete token
52
55
  - **No permissions** - Token must belong to `forwardslashns` npm account with publish rights
@@ -0,0 +1,138 @@
1
+ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
2
+ readonly INVALID_REQUEST: {
3
+ readonly message: "Missing client id in request";
4
+ readonly affectedFields: readonly [];
5
+ };
6
+ readonly ID_DOES_NOT_EXIST: {
7
+ readonly message: "Client with id '{id}' does not exist";
8
+ readonly params: readonly ["id"];
9
+ readonly affectedFields: readonly ["clientId"];
10
+ };
11
+ readonly ACCOUNT_ID_DOES_NOT_EXIST: {
12
+ readonly message: "Account id with id '{id}' does not exist";
13
+ readonly params: readonly ["id"];
14
+ readonly affectedFields: readonly ["accountId"];
15
+ };
16
+ readonly FILING_CATEGORY_ID_DOES_NOT_EXIST: {
17
+ readonly message: "Filing category with id '{id}' does not exist";
18
+ readonly params: readonly ["id"];
19
+ readonly affectedFields: readonly ["filingCategoryId"];
20
+ };
21
+ readonly BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
22
+ readonly message: "Business activity with id '{id}' does not exist";
23
+ readonly params: readonly ["id"];
24
+ readonly affectedFields: readonly ["businessActivityId"];
25
+ };
26
+ readonly BILLING_TYPE_ID_DOES_NOT_EXIST: {
27
+ readonly message: "Billing type with id '{id}' does not exist";
28
+ readonly params: readonly ["id"];
29
+ readonly affectedFields: readonly ["billingTypeId"];
30
+ };
31
+ readonly CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
32
+ readonly message: "This ID is already in use. Please enter a different ID.";
33
+ readonly affectedFields: readonly ["federalLegalId"];
34
+ };
35
+ readonly INVALID_CLIENT_ACTIVITY_STATUS: {
36
+ readonly message: "The 'Is active' field only applies to our clients. Please update the client type to 'Not our client' or update the 'Is active' status to 'Active'.";
37
+ readonly affectedFields: readonly ["isActive", "clientType"];
38
+ };
39
+ readonly INVALID_FEDERAL_LEGAL_ID: {
40
+ readonly message: "Enter a valid {legalIdType} (e.g. {legalIdValue})";
41
+ readonly params: readonly ["legalIdType", "legalIdValue"];
42
+ readonly affectedFields: readonly ["federalLegalId"];
43
+ };
44
+ readonly NAME_ALREADY_EXISTS: {
45
+ readonly message: "Client with the same name '{name}' already exists";
46
+ readonly params: readonly ["name"];
47
+ readonly affectedFields: readonly ["name"];
48
+ };
49
+ readonly NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
50
+ readonly message: "Adjust the close date to be after the date established.";
51
+ readonly affectedFields: readonly ["dateEstablished", "closeDate"];
52
+ };
53
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
54
+ readonly message: "Choose an Account ID";
55
+ readonly affectedFields: readonly ["accountId"];
56
+ };
57
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
58
+ readonly message: "Choose a Business Activity";
59
+ readonly affectedFields: readonly ["businessActivityId"];
60
+ };
61
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
62
+ readonly message: "Choose a Billing Type";
63
+ readonly affectedFields: readonly ["billingTypeId"];
64
+ };
65
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
66
+ readonly message: "Choose a Filing Category";
67
+ readonly affectedFields: readonly ["filingCategoryId"];
68
+ };
69
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
70
+ readonly message: "Create a Contact - One contact needs to have been saved to this client";
71
+ readonly affectedFields: readonly ["contacts"];
72
+ };
73
+ readonly CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
74
+ readonly message: "Create an Address - One address needs to have been saved to this client";
75
+ readonly affectedFields: readonly ["addresses"];
76
+ };
77
+ readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
78
+ readonly message: "This client cannot be deleted because it has client relationships associated";
79
+ readonly affectedFields: readonly [];
80
+ };
81
+ readonly CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
82
+ readonly message: "This client cannot be deleted because it has client project templates associated";
83
+ readonly affectedFields: readonly [];
84
+ };
85
+ readonly CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
86
+ readonly message: "This client cannot be deleted because it has additional information associated";
87
+ readonly affectedFields: readonly [];
88
+ };
89
+ readonly CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
90
+ readonly message: "This client cannot be deleted because it has bank accounts associated";
91
+ readonly affectedFields: readonly [];
92
+ };
93
+ readonly CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
94
+ readonly message: "This client cannot be deleted because it has credit cards associated";
95
+ readonly affectedFields: readonly [];
96
+ };
97
+ readonly CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
98
+ readonly message: "This client cannot be deleted because it has worklogs associated";
99
+ readonly affectedFields: readonly [];
100
+ };
101
+ readonly CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
102
+ readonly message: "This client cannot be deleted because it has invoices associated";
103
+ readonly affectedFields: readonly [];
104
+ };
105
+ readonly CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
106
+ readonly message: "This client cannot be deleted because it has payments associated";
107
+ readonly affectedFields: readonly [];
108
+ };
109
+ readonly CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
110
+ readonly message: "This client cannot be deleted because it has documents associated";
111
+ readonly affectedFields: readonly [];
112
+ };
113
+ readonly CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
114
+ readonly message: "This client cannot be deleted because it has journals associated";
115
+ readonly affectedFields: readonly [];
116
+ };
117
+ readonly CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
118
+ readonly message: "This client cannot be deleted because it has futures associated";
119
+ readonly affectedFields: readonly [];
120
+ };
121
+ readonly CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
122
+ readonly message: "This client cannot be deleted because it has projects associated";
123
+ readonly affectedFields: readonly [];
124
+ };
125
+ readonly CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
126
+ readonly message: "This client cannot be deleted because it has tasks associated";
127
+ readonly affectedFields: readonly [];
128
+ };
129
+ readonly CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
130
+ readonly message: "This client cannot be deleted because it has addresses associated";
131
+ readonly affectedFields: readonly [];
132
+ };
133
+ readonly CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
134
+ readonly message: "This client cannot be deleted because it has contacts associated";
135
+ readonly affectedFields: readonly [];
136
+ };
137
+ };
138
+ //# sourceMappingURL=client-current-entity-status.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-current-entity-status.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-status.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwI/B,CAAC"}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_CURRENT_ENTITY_STATUS = void 0;
4
+ exports.CLIENT_CURRENT_ENTITY_STATUS = {
5
+ INVALID_REQUEST: {
6
+ message: 'Missing client id in request',
7
+ affectedFields: [],
8
+ },
9
+ ID_DOES_NOT_EXIST: {
10
+ message: `Client with id '{id}' does not exist`,
11
+ params: ['id'],
12
+ affectedFields: ['clientId'],
13
+ },
14
+ ACCOUNT_ID_DOES_NOT_EXIST: {
15
+ message: `Account id with id '{id}' does not exist`,
16
+ params: ['id'],
17
+ affectedFields: ['accountId'],
18
+ },
19
+ FILING_CATEGORY_ID_DOES_NOT_EXIST: {
20
+ message: `Filing category with id '{id}' does not exist`,
21
+ params: ['id'],
22
+ affectedFields: ['filingCategoryId'],
23
+ },
24
+ BUSINESS_ACTIVITY_ID_DOES_NOT_EXIST: {
25
+ message: `Business activity with id '{id}' does not exist`,
26
+ params: ['id'],
27
+ affectedFields: ['businessActivityId'],
28
+ },
29
+ BILLING_TYPE_ID_DOES_NOT_EXIST: {
30
+ message: `Billing type with id '{id}' does not exist`,
31
+ params: ['id'],
32
+ affectedFields: ['billingTypeId'],
33
+ },
34
+ CLIENT_WITH_SAME_FEDERAL_LEGAL_ID_EXISTS: {
35
+ message: `This ID is already in use. Please enter a different ID.`,
36
+ affectedFields: ['federalLegalId'],
37
+ },
38
+ INVALID_CLIENT_ACTIVITY_STATUS: {
39
+ message: `The 'Is active' field only applies to our clients. Please update the client type to 'Not our client' or update the 'Is active' status to 'Active'.`,
40
+ affectedFields: ['isActive', 'clientType'],
41
+ },
42
+ INVALID_FEDERAL_LEGAL_ID: {
43
+ message: `Enter a valid {legalIdType} (e.g. {legalIdValue})`,
44
+ params: ['legalIdType', 'legalIdValue'],
45
+ affectedFields: ['federalLegalId'],
46
+ },
47
+ NAME_ALREADY_EXISTS: {
48
+ message: `Client with the same name '{name}' already exists`,
49
+ params: ['name'],
50
+ affectedFields: ['name'],
51
+ },
52
+ NOT_ALIGNED_DATE_ESTABLISHED_CLOSE_DATE: {
53
+ message: `Adjust the close date to be after the date established.`,
54
+ affectedFields: ['dateEstablished', 'closeDate'],
55
+ },
56
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ACCOUNT_ID: {
57
+ message: `Choose an Account ID`,
58
+ affectedFields: ['accountId'],
59
+ },
60
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BUSINESS_ACTIVITY_ID: {
61
+ message: `Choose a Business Activity`,
62
+ affectedFields: ['businessActivityId'],
63
+ },
64
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_BILLING_TYPE_ID: {
65
+ message: `Choose a Billing Type`,
66
+ affectedFields: ['billingTypeId'],
67
+ },
68
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_FILING_CATEGORY_ID: {
69
+ message: `Choose a Filing Category`,
70
+ affectedFields: ['filingCategoryId'],
71
+ },
72
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_CONTACT: {
73
+ message: `Create a Contact - One contact needs to have been saved to this client`,
74
+ affectedFields: ['contacts'],
75
+ },
76
+ CLIENT_COULD_NOT_BE_LOCKED_WITHOUT_ADDRESS: {
77
+ message: `Create an Address - One address needs to have been saved to this client`,
78
+ affectedFields: ['addresses'],
79
+ },
80
+ CLIENT_COULD_NOT_BE_DELETED_CLIENT_RELATIONSHIP_EXIST: {
81
+ message: `This client cannot be deleted because it has client relationships associated`,
82
+ affectedFields: [],
83
+ },
84
+ CLIENT_COULD_NOT_BE_DELETED_CLIENT_PROJECT_TEMPLATES_EXIST: {
85
+ message: `This client cannot be deleted because it has client project templates associated`,
86
+ affectedFields: [],
87
+ },
88
+ CLIENT_COULD_NOT_BE_DELETED_ADDITIONAL_INFORMATION_EXIST: {
89
+ message: `This client cannot be deleted because it has additional information associated`,
90
+ affectedFields: [],
91
+ },
92
+ CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
93
+ message: `This client cannot be deleted because it has bank accounts associated`,
94
+ affectedFields: [],
95
+ },
96
+ CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
97
+ message: `This client cannot be deleted because it has credit cards associated`,
98
+ affectedFields: [],
99
+ },
100
+ CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
101
+ message: `This client cannot be deleted because it has worklogs associated`,
102
+ affectedFields: [],
103
+ },
104
+ CLIENT_COULD_NOT_BE_DELETED_INVOICES_EXIST: {
105
+ message: `This client cannot be deleted because it has invoices associated`,
106
+ affectedFields: [],
107
+ },
108
+ CLIENT_COULD_NOT_BE_DELETED_PAYMENTS_EXIST: {
109
+ message: `This client cannot be deleted because it has payments associated`,
110
+ affectedFields: [],
111
+ },
112
+ CLIENT_COULD_NOT_BE_DELETED_DOCUMENTS_EXIST: {
113
+ message: `This client cannot be deleted because it has documents associated`,
114
+ affectedFields: [],
115
+ },
116
+ CLIENT_COULD_NOT_BE_DELETED_JOURNALS_EXIST: {
117
+ message: `This client cannot be deleted because it has journals associated`,
118
+ affectedFields: [],
119
+ },
120
+ CLIENT_COULD_NOT_BE_DELETED_FUTURES_EXIST: {
121
+ message: `This client cannot be deleted because it has futures associated`,
122
+ affectedFields: [],
123
+ },
124
+ CLIENT_COULD_NOT_BE_DELETED_PROJECTS_EXIST: {
125
+ message: `This client cannot be deleted because it has projects associated`,
126
+ affectedFields: [],
127
+ },
128
+ CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
129
+ message: `This client cannot be deleted because it has tasks associated`,
130
+ affectedFields: [],
131
+ },
132
+ CLIENT_COULD_NOT_BE_DELETED_ADDRESSES_EXIST: {
133
+ message: `This client cannot be deleted because it has addresses associated`,
134
+ affectedFields: [],
135
+ },
136
+ CLIENT_COULD_NOT_BE_DELETED_CONTACTS_EXIST: {
137
+ message: `This client cannot be deleted because it has contacts associated`,
138
+ affectedFields: [],
139
+ },
140
+ };
@@ -1,4 +1,4 @@
1
- export declare const ADDRESS: {
1
+ export declare const CLIENT_RECORD_ADDRESS: {
2
2
  readonly STATES_NOT_FOUND: {
3
3
  readonly message: "States with ids {ids} do not exist";
4
4
  readonly params: readonly ["ids"];
@@ -59,4 +59,4 @@ export declare const ADDRESS: {
59
59
  readonly affectedFields: readonly ["addresses"];
60
60
  };
61
61
  };
62
- //# sourceMappingURL=address.validation-messages.d.ts.map
62
+ //# sourceMappingURL=client-record-address.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-address.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-address.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DxB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADDRESS = void 0;
4
- exports.ADDRESS = {
3
+ exports.CLIENT_RECORD_ADDRESS = void 0;
4
+ exports.CLIENT_RECORD_ADDRESS = {
5
5
  STATES_NOT_FOUND: {
6
6
  message: 'States with ids {ids} do not exist',
7
7
  params: ['ids'],
@@ -1,4 +1,8 @@
1
- export declare const BANK_AND_CREDIT_CARD: {
1
+ export declare const CLIENT_RECORD_BANK_AND_CREDIT_CARD: {
2
+ readonly INVALID_ROUTING_NUMBER: {
3
+ readonly message: "Enter a valid routing number.";
4
+ readonly affectedFields: readonly ["routingNumber"];
5
+ };
2
6
  readonly INVALID_ACCOUNT_NUMBER: {
3
7
  readonly message: "Enter a valid account number.";
4
8
  readonly affectedFields: readonly ["accountNumber"];
@@ -15,5 +19,13 @@ export declare const BANK_AND_CREDIT_CARD: {
15
19
  readonly message: "There can only be one default payment method. Please ensure only one payment method is marked as default.";
16
20
  readonly affectedFields: readonly ["paymentMethods"];
17
21
  };
22
+ readonly INVALID_EXPIRATION_DATE: {
23
+ readonly message: "Enter a valid expiration date (i.e. 12/2024).";
24
+ readonly affectedFields: readonly ["expirationDate"];
25
+ };
26
+ readonly INVALID_SECURITY_CODE: {
27
+ readonly message: "Enter a valid security code (i.e. 1234).";
28
+ readonly affectedFields: readonly ["securityCode"];
29
+ };
18
30
  };
19
- //# sourceMappingURL=bank-and-credit-card.validation-messages.d.ts.map
31
+ //# sourceMappingURL=client-record-bank-and-credit-card.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-bank-and-credit-card.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-bank-and-credit-card.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrC,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BANK_AND_CREDIT_CARD = void 0;
4
- exports.BANK_AND_CREDIT_CARD = {
3
+ exports.CLIENT_RECORD_BANK_AND_CREDIT_CARD = void 0;
4
+ exports.CLIENT_RECORD_BANK_AND_CREDIT_CARD = {
5
+ INVALID_ROUTING_NUMBER: {
6
+ message: 'Enter a valid routing number.',
7
+ affectedFields: ['routingNumber'],
8
+ },
5
9
  INVALID_ACCOUNT_NUMBER: {
6
10
  message: 'Enter a valid account number.',
7
11
  affectedFields: ['accountNumber'],
@@ -18,4 +22,12 @@ exports.BANK_AND_CREDIT_CARD = {
18
22
  message: 'There can only be one default payment method. Please ensure only one payment method is marked as default.',
19
23
  affectedFields: ['paymentMethods'],
20
24
  },
25
+ INVALID_EXPIRATION_DATE: {
26
+ message: 'Enter a valid expiration date (i.e. 12/2024).',
27
+ affectedFields: ['expirationDate'],
28
+ },
29
+ INVALID_SECURITY_CODE: {
30
+ message: 'Enter a valid security code (i.e. 1234).',
31
+ affectedFields: ['securityCode'],
32
+ },
21
33
  };
@@ -1,4 +1,4 @@
1
- export declare const COMISSION_DETAIL: {
1
+ export declare const CLIENT_RECORD_COMISSION_DETAIL: {
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
4
  readonly affectedFields: readonly ["isSubjectToCommission", "salesRepresentativeId", "commissionRate"];
@@ -21,4 +21,4 @@ export declare const COMISSION_DETAIL: {
21
21
  readonly affectedFields: readonly ["commissionRate"];
22
22
  };
23
23
  };
24
- //# sourceMappingURL=commission-detail.validation-messages.d.ts.map
24
+ //# sourceMappingURL=client-record-commission-detail.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-commission-detail.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-commission-detail.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;CAsBjC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COMISSION_DETAIL = void 0;
4
- exports.COMISSION_DETAIL = {
3
+ exports.CLIENT_RECORD_COMISSION_DETAIL = void 0;
4
+ exports.CLIENT_RECORD_COMISSION_DETAIL = {
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
7
  affectedFields: ['isSubjectToCommission', 'salesRepresentativeId', 'commissionRate'],
@@ -1,4 +1,4 @@
1
- export declare const CONTACT: {
1
+ export declare const CLIENT_RECORD_CONTACT: {
2
2
  readonly CONTACT_ROLES_NOT_FOUND: {
3
3
  readonly message: "Contact roles with ids {ids} do not exist";
4
4
  readonly params: readonly ["ids"];
@@ -34,4 +34,4 @@ export declare const CONTACT: {
34
34
  readonly affectedFields: readonly ["contacts"];
35
35
  };
36
36
  };
37
- //# sourceMappingURL=contact.validation-messages.d.ts.map
37
+ //# sourceMappingURL=client-record-contact.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-contact.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-contact.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCxB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTACT = void 0;
4
- exports.CONTACT = {
3
+ exports.CLIENT_RECORD_CONTACT = void 0;
4
+ exports.CLIENT_RECORD_CONTACT = {
5
5
  CONTACT_ROLES_NOT_FOUND: {
6
6
  message: `Contact roles with ids {ids} do not exist`,
7
7
  params: ['ids'],
@@ -0,0 +1,84 @@
1
+ export declare const CLIENT_RECORD_ENTITY_STATE_HISTORY: {
2
+ readonly STATE_ID_DOES_NOT_EXIST: {
3
+ readonly message: "State with id '{id}' does not exist";
4
+ readonly params: readonly ["id"];
5
+ readonly affectedFields: readonly ["stateId"];
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", "domesticStates"];
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", "domesticStates"];
16
+ };
17
+ readonly DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
18
+ readonly message: "Current Domestic State Starting Date cannot be Empty";
19
+ readonly affectedFields: readonly ["domesticStateStartingDate"];
20
+ };
21
+ readonly STATES_IDS_DOES_NOT_EXIST: {
22
+ readonly message: "States with ids '{ids}' do not exist";
23
+ readonly params: readonly ["ids"];
24
+ readonly affectedFields: readonly ["stateId"];
25
+ };
26
+ readonly RESIDENCE_TYPE_DOES_NOT_EXIST: {
27
+ readonly message: "Residence type with ids '{ids}' does not exist";
28
+ readonly params: readonly ["ids"];
29
+ readonly affectedFields: readonly ["residenceTypeId"];
30
+ };
31
+ readonly AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
32
+ readonly message: "At least one domestic state should exist";
33
+ readonly affectedFields: readonly ["domesticStates"];
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 ["domesticStates"];
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 ["domesticStates"];
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 ["domesticStates", "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 ["domesticStates"];
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"];
82
+ };
83
+ };
84
+ //# sourceMappingURL=client-record-entity-state-history.validation-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-record-entity-state-history.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-record-entity-state-history.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFrC,CAAC"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLIENT_RECORD_ENTITY_STATE_HISTORY = void 0;
4
+ exports.CLIENT_RECORD_ENTITY_STATE_HISTORY = {
5
+ STATE_ID_DOES_NOT_EXIST: {
6
+ message: `State with id '{id}' does not exist`,
7
+ params: ['id'],
8
+ affectedFields: ['stateId'],
9
+ },
10
+ 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.`,
12
+ params: ['clientDateEstablished', 'domesticState', 'domesticStateStartingDate'],
13
+ affectedFields: ['dateEstablished', 'domesticStates'],
14
+ },
15
+ 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.`,
17
+ params: ['clientCloseDate', 'domesticState', 'domesticStateStartingDate'],
18
+ affectedFields: ['closeDate', 'domesticStates'],
19
+ },
20
+ DOMESTIC_STATE_STARTING_DATE_NOT_POPULATED: {
21
+ message: `Current Domestic State Starting Date cannot be Empty`,
22
+ affectedFields: ['domesticStateStartingDate'],
23
+ },
24
+ STATES_IDS_DOES_NOT_EXIST: {
25
+ message: `States with ids '{ids}' do not exist`,
26
+ params: ['ids'],
27
+ affectedFields: ['stateId'],
28
+ },
29
+ RESIDENCE_TYPE_DOES_NOT_EXIST: {
30
+ message: `Residence type with ids '{ids}' does not exist`,
31
+ params: ['ids'],
32
+ affectedFields: ['residenceTypeId'],
33
+ },
34
+ AT_LEAST_ONE_DOMESTIC_STATE_SHOULD_EXIST: {
35
+ message: `At least one domestic state should exist`,
36
+ affectedFields: ['domesticStates'],
37
+ },
38
+ STATES_STARTING_DATE_NOT_POPULATED: {
39
+ message: `Starting date for {state} cannot be empty`,
40
+ params: ['state'],
41
+ affectedFields: ['stateStartingDate'],
42
+ },
43
+ NOT_ALIGNED_STATES_STARTING_ENDING_DATE: {
44
+ message: `The ending date for {state} must be after its starting date`,
45
+ params: ['state'],
46
+ affectedFields: ['stateStartingDate', 'stateEndingDate'],
47
+ },
48
+ NOT_ALIGNED_DATE_ESTABLISHED_STATES_STARTING_DATE: {
49
+ message: `Adjust the start date to be on or after the client's date established, {clientStartDate}.`,
50
+ params: ['clientStartDate'],
51
+ affectedFields: ['stateStartingDate', 'dateEstablished'],
52
+ },
53
+ NOT_ALIGNED_CLOSE_DATE_STATES_STARTING_DATE: {
54
+ message: `Adjust the start date to be before the client's close date, {clientCloseDate}.`,
55
+ params: ['clientCloseDate'],
56
+ affectedFields: ['stateStartingDate', 'closeDate'],
57
+ },
58
+ 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.`,
60
+ params: ['currentState', 'currentStateEndDate', 'nextState', 'nextStateStartDate'],
61
+ affectedFields: ['domesticStates'],
62
+ },
63
+ 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}. `,
65
+ params: ['state', 'firstPeriodStart', 'firstPeriodEnd', 'secondPeriodStart'],
66
+ affectedFields: ['domesticStates'],
67
+ },
68
+ 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}.`,
70
+ params: ['dateEstablished', 'earliestState', 'earliestStateStartDate'],
71
+ affectedFields: ['domesticStates', 'dateEstablished'],
72
+ },
73
+ 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.`,
75
+ params: ['state', 'startDate1', 'endDate1', 'startDate2', 'endDate2'],
76
+ affectedFields: ['domesticStates'],
77
+ },
78
+ ALL_NON_LAST_DOMESTIC_STATES_REQUIRE_ENDING_DATE: {
79
+ message: `Only the last domestic state can be open without an end date. Add an ending date to the existing state before adding a start date for a new state.`,
80
+ affectedFields: ['stateEndingDate'],
81
+ },
82
+ CURRENT_DOMESTIC_STATE_CANNOT_HAVE_ENDING_DATE: {
83
+ message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
84
+ affectedFields: ['stateEndingDate'],
85
+ },
86
+ };