@forwardslashns/taskit-validation-messages 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +1 -1
- package/dist/validation/validation-constants.d.ts +1 -1
- package/dist/validation/validation-constants.js +2 -2
- package/dist/validation/validation-messages.d.ts +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +1 -1
- package/src/validation/validation-constants.ts +2 -2
|
@@ -34,7 +34,7 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
34
34
|
};
|
|
35
35
|
readonly INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
36
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", "
|
|
37
|
+
readonly affectedFields: readonly ["isActive", "clientType"];
|
|
38
38
|
};
|
|
39
39
|
readonly INVALID_FEDERAL_LEGAL_ID: {
|
|
40
40
|
readonly message: "Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})";
|
|
@@ -37,7 +37,7 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
37
37
|
},
|
|
38
38
|
INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
39
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', '
|
|
40
|
+
affectedFields: ['isActive', 'clientType'],
|
|
41
41
|
},
|
|
42
42
|
INVALID_FEDERAL_LEGAL_ID: {
|
|
43
43
|
message: `Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})`,
|
|
@@ -2,7 +2,7 @@ import { VALIDATION_MESSAGES } from './validation-messages';
|
|
|
2
2
|
export declare const VALIDATION: { [F in keyof typeof VALIDATION_MESSAGES]: {
|
|
3
3
|
readonly FEATURE: F;
|
|
4
4
|
} & { [K in keyof (typeof VALIDATION_MESSAGES)[F]]: `${F}.${K & string}`; }; };
|
|
5
|
-
export declare const RELATED_CLIENT_PREFIX = "[
|
|
5
|
+
export declare const RELATED_CLIENT_PREFIX = "[RELATED CLIENT \"";
|
|
6
6
|
export declare const RELATED_CLIENT_SUFFIX = "\"] ";
|
|
7
7
|
export declare const getRelatedClientMessagePrefix: (clientName: string) => string;
|
|
8
8
|
export declare const RELATED_CLIENT_REGEX: RegExp;
|
|
@@ -16,11 +16,11 @@ const createValidationConstants = () => {
|
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
18
|
exports.VALIDATION = createValidationConstants();
|
|
19
|
-
exports.RELATED_CLIENT_PREFIX = '[
|
|
19
|
+
exports.RELATED_CLIENT_PREFIX = '[RELATED CLIENT "';
|
|
20
20
|
exports.RELATED_CLIENT_SUFFIX = '"] ';
|
|
21
21
|
const getRelatedClientMessagePrefix = (clientName) => `${exports.RELATED_CLIENT_PREFIX}${clientName}${exports.RELATED_CLIENT_SUFFIX}`;
|
|
22
22
|
exports.getRelatedClientMessagePrefix = getRelatedClientMessagePrefix;
|
|
23
|
-
exports.RELATED_CLIENT_REGEX = /^\[
|
|
23
|
+
exports.RELATED_CLIENT_REGEX = /^\[RELATED CLIENT "([^"]+)"\]\s+/i;
|
|
24
24
|
const extractRelatedClientName = (message) => {
|
|
25
25
|
const match = message.match(exports.RELATED_CLIENT_REGEX);
|
|
26
26
|
return match ? match[1] : null;
|
|
@@ -250,7 +250,7 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
250
250
|
};
|
|
251
251
|
readonly INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
252
252
|
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'.";
|
|
253
|
-
readonly affectedFields: readonly ["isActive", "
|
|
253
|
+
readonly affectedFields: readonly ["isActive", "clientType"];
|
|
254
254
|
};
|
|
255
255
|
readonly INVALID_FEDERAL_LEGAL_ID: {
|
|
256
256
|
readonly message: "Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})";
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export const CLIENT_CURRENT_ENTITY_STATUS = {
|
|
|
34
34
|
},
|
|
35
35
|
INVALID_CLIENT_ACTIVITY_STATUS: {
|
|
36
36
|
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
|
-
affectedFields: ['isActive', '
|
|
37
|
+
affectedFields: ['isActive', 'clientType'],
|
|
38
38
|
},
|
|
39
39
|
INVALID_FEDERAL_LEGAL_ID: {
|
|
40
40
|
message: `Enter a valid federal legal ID {legalIdType} (e.g. {legalIdValue})`,
|
|
@@ -25,13 +25,13 @@ export const VALIDATION = createValidationConstants() as {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export const RELATED_CLIENT_PREFIX = '[
|
|
28
|
+
export const RELATED_CLIENT_PREFIX = '[RELATED CLIENT "';
|
|
29
29
|
export const RELATED_CLIENT_SUFFIX = '"] ';
|
|
30
30
|
|
|
31
31
|
export const getRelatedClientMessagePrefix = (clientName: string): string =>
|
|
32
32
|
`${RELATED_CLIENT_PREFIX}${clientName}${RELATED_CLIENT_SUFFIX}`;
|
|
33
33
|
|
|
34
|
-
export const RELATED_CLIENT_REGEX = /^\[
|
|
34
|
+
export const RELATED_CLIENT_REGEX = /^\[RELATED CLIENT "([^"]+)"\]\s+/i;
|
|
35
35
|
|
|
36
36
|
export const extractRelatedClientName = (message: string): string | null => {
|
|
37
37
|
const match = message.match(RELATED_CLIENT_REGEX);
|