@forwardslashns/taskit-validation-messages 1.10.53 → 1.10.55
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 +5 -0
- package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-current-entity-statuses.validation-messages.js +5 -0
- package/dist/validation/features/client-templates.validation-messages.d.ts +0 -5
- package/dist/validation/features/client-templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +0 -5
- package/dist/validation/features/tasks.validation-messages.d.ts +5 -0
- package/dist/validation/features/tasks.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/tasks.validation-messages.js +5 -0
- package/dist/validation/validation-messages.d.ts +10 -5
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-current-entity-statuses.validation-messages.ts +5 -0
- package/src/validation/features/client-templates.validation-messages.ts +0 -5
- package/src/validation/features/tasks.validation-messages.ts +6 -0
|
@@ -181,6 +181,11 @@ export declare const CLIENT_CURRENT_ENTITY_STATUS: {
|
|
|
181
181
|
message: string;
|
|
182
182
|
affectedFields: never[];
|
|
183
183
|
};
|
|
184
|
+
CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
|
|
185
|
+
severity: "error";
|
|
186
|
+
message: string;
|
|
187
|
+
affectedFields: never[];
|
|
188
|
+
};
|
|
184
189
|
INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
|
|
185
190
|
severity: "error";
|
|
186
191
|
message: string;
|
package/dist/validation/features/client-current-entity-statuses.validation-messages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"client-current-entity-statuses.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-current-entity-statuses.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyNvC,CAAC"}
|
|
@@ -185,6 +185,11 @@ exports.CLIENT_CURRENT_ENTITY_STATUS = (0, validation_message_types_1.defineVali
|
|
|
185
185
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
186
186
|
affectedFields: [],
|
|
187
187
|
},
|
|
188
|
+
CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
|
|
189
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
190
|
+
message: `This client cannot be deleted because it has active tasks associated. Delete or close the tasks first.`,
|
|
191
|
+
affectedFields: [],
|
|
192
|
+
},
|
|
188
193
|
INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
|
|
189
194
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
190
195
|
message: `Initial filing date cannot be before date established {dateEstablished}. Please adjust the dates to continue.`,
|
|
@@ -59,11 +59,6 @@ export declare const CLIENT_TEMPLATES: {
|
|
|
59
59
|
message: string;
|
|
60
60
|
affectedFields: string[];
|
|
61
61
|
};
|
|
62
|
-
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
63
|
-
severity: "error";
|
|
64
|
-
message: string;
|
|
65
|
-
affectedFields: string[];
|
|
66
|
-
};
|
|
67
62
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
68
63
|
severity: "error";
|
|
69
64
|
message: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"client-templates.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-templates.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+R3B,CAAC"}
|
|
@@ -63,11 +63,6 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
63
63
|
message: 'Commission rate is required when template is subject to commission',
|
|
64
64
|
affectedFields: ['billingAndPayments.commissionRate'],
|
|
65
65
|
},
|
|
66
|
-
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
67
|
-
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
68
|
-
message: 'Estimate amount is required for tax payment templates',
|
|
69
|
-
affectedFields: ['templateInfo.estimateAmount'],
|
|
70
|
-
},
|
|
71
66
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
72
67
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
73
68
|
message: 'Final is allowed only when ending date is provided',
|
|
@@ -68,5 +68,10 @@ export declare const TASKS: {
|
|
|
68
68
|
message: string;
|
|
69
69
|
affectedFields: string[];
|
|
70
70
|
};
|
|
71
|
+
CLIENT_TEMPLATE_ENDING_DATE_CONFLICTS_WITH_TASKS: {
|
|
72
|
+
severity: "error";
|
|
73
|
+
message: string;
|
|
74
|
+
affectedFields: string[];
|
|
75
|
+
};
|
|
71
76
|
};
|
|
72
77
|
//# sourceMappingURL=tasks.validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/tasks.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"tasks.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/tasks.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EhB,CAAC"}
|
|
@@ -72,4 +72,9 @@ exports.TASKS = (0, validation_message_types_1.defineValidationFeatureMessages)(
|
|
|
72
72
|
message: 'The provided client does not match the client of the referenced client template.',
|
|
73
73
|
affectedFields: ['clientId', 'clientTemplateId'],
|
|
74
74
|
},
|
|
75
|
+
CLIENT_TEMPLATE_ENDING_DATE_CONFLICTS_WITH_TASKS: {
|
|
76
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
77
|
+
message: 'Client template ending date cannot be set before existing task periods. One or more tasks have periods ending after the selected date.',
|
|
78
|
+
affectedFields: ['endingDate'],
|
|
79
|
+
},
|
|
75
80
|
});
|
|
@@ -465,6 +465,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
465
465
|
message: string;
|
|
466
466
|
affectedFields: never[];
|
|
467
467
|
};
|
|
468
|
+
CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
|
|
469
|
+
severity: "error";
|
|
470
|
+
message: string;
|
|
471
|
+
affectedFields: never[];
|
|
472
|
+
};
|
|
468
473
|
INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
|
|
469
474
|
severity: "error";
|
|
470
475
|
message: string;
|
|
@@ -2042,11 +2047,6 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2042
2047
|
message: string;
|
|
2043
2048
|
affectedFields: string[];
|
|
2044
2049
|
};
|
|
2045
|
-
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
2046
|
-
severity: "error";
|
|
2047
|
-
message: string;
|
|
2048
|
-
affectedFields: string[];
|
|
2049
|
-
};
|
|
2050
2050
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
2051
2051
|
severity: "error";
|
|
2052
2052
|
message: string;
|
|
@@ -2408,6 +2408,11 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2408
2408
|
message: string;
|
|
2409
2409
|
affectedFields: string[];
|
|
2410
2410
|
};
|
|
2411
|
+
CLIENT_TEMPLATE_ENDING_DATE_CONFLICTS_WITH_TASKS: {
|
|
2412
|
+
severity: "error";
|
|
2413
|
+
message: string;
|
|
2414
|
+
affectedFields: string[];
|
|
2415
|
+
};
|
|
2411
2416
|
};
|
|
2412
2417
|
};
|
|
2413
2418
|
//# sourceMappingURL=validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -183,6 +183,11 @@ export const CLIENT_CURRENT_ENTITY_STATUS = defineValidationFeatureMessages({
|
|
|
183
183
|
message: `This client cannot be deleted because it has contacts associated`,
|
|
184
184
|
affectedFields: [],
|
|
185
185
|
},
|
|
186
|
+
CLIENT_COULD_NOT_BE_DELETED_TASKS_EXIST: {
|
|
187
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
188
|
+
message: `This client cannot be deleted because it has active tasks associated. Delete or close the tasks first.`,
|
|
189
|
+
affectedFields: [],
|
|
190
|
+
},
|
|
186
191
|
INITIAL_FILING_DATE_BEFORE_DATE_ESTABLISHED: {
|
|
187
192
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
188
193
|
message: `Initial filing date cannot be before date established {dateEstablished}. Please adjust the dates to continue.`,
|
|
@@ -62,11 +62,6 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
62
62
|
message: 'Commission rate is required when template is subject to commission',
|
|
63
63
|
affectedFields: ['billingAndPayments.commissionRate'],
|
|
64
64
|
},
|
|
65
|
-
ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
|
|
66
|
-
severity: VALIDATION_SEVERITY.ERROR,
|
|
67
|
-
message: 'Estimate amount is required for tax payment templates',
|
|
68
|
-
affectedFields: ['templateInfo.estimateAmount'],
|
|
69
|
-
},
|
|
70
65
|
FINAL_ALLOWED_ONLY_WITH_ENDING: {
|
|
71
66
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
72
67
|
message: 'Final is allowed only when ending date is provided',
|
|
@@ -73,4 +73,10 @@ export const TASKS = defineValidationFeatureMessages({
|
|
|
73
73
|
message: 'The provided client does not match the client of the referenced client template.',
|
|
74
74
|
affectedFields: ['clientId', 'clientTemplateId'],
|
|
75
75
|
},
|
|
76
|
+
CLIENT_TEMPLATE_ENDING_DATE_CONFLICTS_WITH_TASKS: {
|
|
77
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
78
|
+
message:
|
|
79
|
+
'Client template ending date cannot be set before existing task periods. One or more tasks have periods ending after the selected date.',
|
|
80
|
+
affectedFields: ['endingDate'],
|
|
81
|
+
},
|
|
76
82
|
});
|