@forwardslashns/taskit-validation-messages 1.10.109 → 1.10.111

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.
@@ -9,6 +9,16 @@ export declare const CLIENT_TEMPLATES: {
9
9
  message: string;
10
10
  affectedFields: string[];
11
11
  };
12
+ TEMPLATE_LOCKED_WHEN_SAVED: {
13
+ severity: "error";
14
+ message: string;
15
+ affectedFields: string[];
16
+ };
17
+ RECURRENCE_LOCKED_WHEN_SAVED: {
18
+ severity: "error";
19
+ message: string;
20
+ affectedFields: string[];
21
+ };
12
22
  DEFAULT_STAFF_NOT_ACTIVE: {
13
23
  severity: "error";
14
24
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkT3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8T3B,CAAC"}
@@ -13,6 +13,16 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
13
13
  message: 'Selected recurrence does not belong to selected template',
14
14
  affectedFields: ['templateInfo.templateRecurrenceId'],
15
15
  },
16
+ TEMPLATE_LOCKED_WHEN_SAVED: {
17
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
18
+ message: 'Template cannot be changed once the client template is saved. Delete it (while it has no tasks) or end it, and add a new one.',
19
+ affectedFields: ['templateInfo.templateId'],
20
+ },
21
+ RECURRENCE_LOCKED_WHEN_SAVED: {
22
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
23
+ message: 'Recurrence frequency cannot be changed once the client template is saved. Delete it (while it has no tasks) or end it, and add a new one.',
24
+ affectedFields: ['templateInfo.templateRecurrenceId'],
25
+ },
16
26
  DEFAULT_STAFF_NOT_ACTIVE: {
17
27
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
18
28
  message: 'Default staff must be active',
@@ -361,6 +361,30 @@ export declare const TEMPLATE_INFORMATION: {
361
361
  params: string[];
362
362
  affectedFields: string[];
363
363
  };
364
+ STOP_DATE_AFTER_STATE_SUB_FILING: {
365
+ severity: "error";
366
+ message: string;
367
+ params: string[];
368
+ affectedFields: string[];
369
+ };
370
+ REACTIVATE_BLOCKED_TAX_PAYMENT_FILING_STOPPED: {
371
+ severity: "error";
372
+ message: string;
373
+ params: string[];
374
+ affectedFields: string[];
375
+ };
376
+ REACTIVATE_BLOCKED_PARENT_FILING_STOPPED: {
377
+ severity: "error";
378
+ message: string;
379
+ params: string[];
380
+ affectedFields: string[];
381
+ };
382
+ REACTIVATE_BLOCKED_STATE_SUB_FILING_STOPPED: {
383
+ severity: "error";
384
+ message: string;
385
+ params: string[];
386
+ affectedFields: string[];
387
+ };
364
388
  TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
365
389
  severity: "warning";
366
390
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0a/B,CAAC"}
1
+ {"version":3,"file":"template-information.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/template-information.validation-messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsc/B,CAAC"}
@@ -365,6 +365,30 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
365
365
  params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
366
366
  affectedFields: ['stoppedAt'],
367
367
  },
368
+ STOP_DATE_AFTER_STATE_SUB_FILING: {
369
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
370
+ message: 'This template is associated with the state sub-filing {stateSubFilingName}, which is stopped on {stateSubFilingDateStopped}. Please set the stop date on or before that date before saving.',
371
+ params: ['stateSubFilingName', 'stateSubFilingDateStopped'],
372
+ affectedFields: ['stoppedAt'],
373
+ },
374
+ REACTIVATE_BLOCKED_TAX_PAYMENT_FILING_STOPPED: {
375
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
376
+ message: 'This template is associated with {filingTemplateName}, which is stopped on {filingTemplateDateStopped}. Please reactivate {filingTemplateName} before reactivating this template.',
377
+ params: ['filingTemplateName', 'filingTemplateDateStopped'],
378
+ affectedFields: ['stoppedAt'],
379
+ },
380
+ REACTIVATE_BLOCKED_PARENT_FILING_STOPPED: {
381
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
382
+ message: 'This template files under {parentFilingTemplateName}, which is stopped on {parentFilingDateStopped}. Please reactivate {parentFilingTemplateName} before reactivating this template.',
383
+ params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
384
+ affectedFields: ['stoppedAt'],
385
+ },
386
+ REACTIVATE_BLOCKED_STATE_SUB_FILING_STOPPED: {
387
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
388
+ message: 'This template is associated with the state sub-filing {stateSubFilingName}, which is stopped on {stateSubFilingDateStopped}. Please reactivate {stateSubFilingName} before reactivating this template.',
389
+ params: ['stateSubFilingName', 'stateSubFilingDateStopped'],
390
+ affectedFields: ['stoppedAt'],
391
+ },
368
392
  TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
369
393
  severity: validation_message_types_1.VALIDATION_SEVERITY.WARNING,
370
394
  message: 'Deactivating this template will also deactivate the following associated tax payment templates: {taxPaymentTemplateNames}',
@@ -1726,6 +1726,30 @@ export declare const VALIDATION_MESSAGES: {
1726
1726
  params: string[];
1727
1727
  affectedFields: string[];
1728
1728
  };
1729
+ STOP_DATE_AFTER_STATE_SUB_FILING: {
1730
+ severity: "error";
1731
+ message: string;
1732
+ params: string[];
1733
+ affectedFields: string[];
1734
+ };
1735
+ REACTIVATE_BLOCKED_TAX_PAYMENT_FILING_STOPPED: {
1736
+ severity: "error";
1737
+ message: string;
1738
+ params: string[];
1739
+ affectedFields: string[];
1740
+ };
1741
+ REACTIVATE_BLOCKED_PARENT_FILING_STOPPED: {
1742
+ severity: "error";
1743
+ message: string;
1744
+ params: string[];
1745
+ affectedFields: string[];
1746
+ };
1747
+ REACTIVATE_BLOCKED_STATE_SUB_FILING_STOPPED: {
1748
+ severity: "error";
1749
+ message: string;
1750
+ params: string[];
1751
+ affectedFields: string[];
1752
+ };
1729
1753
  TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
1730
1754
  severity: "warning";
1731
1755
  message: string;
@@ -2211,6 +2235,16 @@ export declare const VALIDATION_MESSAGES: {
2211
2235
  message: string;
2212
2236
  affectedFields: string[];
2213
2237
  };
2238
+ TEMPLATE_LOCKED_WHEN_SAVED: {
2239
+ severity: "error";
2240
+ message: string;
2241
+ affectedFields: string[];
2242
+ };
2243
+ RECURRENCE_LOCKED_WHEN_SAVED: {
2244
+ severity: "error";
2245
+ message: string;
2246
+ affectedFields: string[];
2247
+ };
2214
2248
  DEFAULT_STAFF_NOT_ACTIVE: {
2215
2249
  severity: "error";
2216
2250
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.109",
3
+ "version": "1.10.111",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -11,6 +11,18 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
11
11
  message: 'Selected recurrence does not belong to selected template',
12
12
  affectedFields: ['templateInfo.templateRecurrenceId'],
13
13
  },
14
+ TEMPLATE_LOCKED_WHEN_SAVED: {
15
+ severity: VALIDATION_SEVERITY.ERROR,
16
+ message:
17
+ 'Template cannot be changed once the client template is saved. Delete it (while it has no tasks) or end it, and add a new one.',
18
+ affectedFields: ['templateInfo.templateId'],
19
+ },
20
+ RECURRENCE_LOCKED_WHEN_SAVED: {
21
+ severity: VALIDATION_SEVERITY.ERROR,
22
+ message:
23
+ 'Recurrence frequency cannot be changed once the client template is saved. Delete it (while it has no tasks) or end it, and add a new one.',
24
+ affectedFields: ['templateInfo.templateRecurrenceId'],
25
+ },
14
26
  DEFAULT_STAFF_NOT_ACTIVE: {
15
27
  severity: VALIDATION_SEVERITY.ERROR,
16
28
  message: 'Default staff must be active',
@@ -374,6 +374,34 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
374
374
  params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
375
375
  affectedFields: ['stoppedAt'],
376
376
  },
377
+ STOP_DATE_AFTER_STATE_SUB_FILING: {
378
+ severity: VALIDATION_SEVERITY.ERROR,
379
+ message:
380
+ 'This template is associated with the state sub-filing {stateSubFilingName}, which is stopped on {stateSubFilingDateStopped}. Please set the stop date on or before that date before saving.',
381
+ params: ['stateSubFilingName', 'stateSubFilingDateStopped'],
382
+ affectedFields: ['stoppedAt'],
383
+ },
384
+ REACTIVATE_BLOCKED_TAX_PAYMENT_FILING_STOPPED: {
385
+ severity: VALIDATION_SEVERITY.ERROR,
386
+ message:
387
+ 'This template is associated with {filingTemplateName}, which is stopped on {filingTemplateDateStopped}. Please reactivate {filingTemplateName} before reactivating this template.',
388
+ params: ['filingTemplateName', 'filingTemplateDateStopped'],
389
+ affectedFields: ['stoppedAt'],
390
+ },
391
+ REACTIVATE_BLOCKED_PARENT_FILING_STOPPED: {
392
+ severity: VALIDATION_SEVERITY.ERROR,
393
+ message:
394
+ 'This template files under {parentFilingTemplateName}, which is stopped on {parentFilingDateStopped}. Please reactivate {parentFilingTemplateName} before reactivating this template.',
395
+ params: ['parentFilingTemplateName', 'parentFilingDateStopped'],
396
+ affectedFields: ['stoppedAt'],
397
+ },
398
+ REACTIVATE_BLOCKED_STATE_SUB_FILING_STOPPED: {
399
+ severity: VALIDATION_SEVERITY.ERROR,
400
+ message:
401
+ 'This template is associated with the state sub-filing {stateSubFilingName}, which is stopped on {stateSubFilingDateStopped}. Please reactivate {stateSubFilingName} before reactivating this template.',
402
+ params: ['stateSubFilingName', 'stateSubFilingDateStopped'],
403
+ affectedFields: ['stoppedAt'],
404
+ },
377
405
  TAX_PAYMENT_TEMPLATES_DEACTIVATED_WITH_TEMPLATE: {
378
406
  severity: VALIDATION_SEVERITY.WARNING,
379
407
  message: