@forwardslashns/taskit-validation-messages 1.0.62 → 1.0.64

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.
@@ -473,6 +473,55 @@ export declare const VALIDATION_MESSAGES: {
473
473
  readonly message: "The current domestic state cannot have an end date. Please remove the end date for this state.";
474
474
  };
475
475
  };
476
+ readonly CLIENT_RELATIONSHIP: {
477
+ readonly CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
478
+ readonly message: "A client cannot have a relationship with itself.";
479
+ };
480
+ readonly INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
481
+ readonly message: "{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.";
482
+ readonly params: readonly ["clientName", "entityType", "relationshipType"];
483
+ };
484
+ readonly PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
485
+ readonly message: "A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.";
486
+ };
487
+ readonly STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
488
+ readonly message: "This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.";
489
+ readonly params: readonly ["clientName", "clientDateEstablished"];
490
+ };
491
+ readonly STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
492
+ readonly message: "This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.";
493
+ readonly params: readonly ["clientName", "clientCloseDate"];
494
+ };
495
+ readonly STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
496
+ readonly message: "This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.";
497
+ readonly params: readonly ["relatedClientName", "relatedClientDateEstablished"];
498
+ };
499
+ readonly STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
500
+ readonly message: "This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.";
501
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
502
+ };
503
+ readonly ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
504
+ readonly message: "Please update the relationship ending date to be after the starting date, {startingDate}.";
505
+ readonly params: readonly ["startingDate"];
506
+ };
507
+ readonly ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
508
+ readonly message: "Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.";
509
+ readonly params: readonly ["clientCloseDate"];
510
+ };
511
+ readonly ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
512
+ readonly message: "Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.";
513
+ readonly params: readonly ["relatedClientName", "relatedClientCloseDate"];
514
+ };
515
+ readonly MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
516
+ readonly message: "All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.";
517
+ };
518
+ readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
519
+ readonly message: "The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
520
+ };
521
+ readonly FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
522
+ readonly message: "The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.";
523
+ };
524
+ };
476
525
  readonly FILING_CATEGORY: {
477
526
  readonly INVALID_REQUEST: {
478
527
  readonly message: "Missing filing category id in request";
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+qBtB,CAAC"}
@@ -479,6 +479,55 @@ exports.VALIDATION_MESSAGES = {
479
479
  message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
480
480
  },
481
481
  },
482
+ CLIENT_RELATIONSHIP: {
483
+ CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
484
+ message: `A client cannot have a relationship with itself.`,
485
+ },
486
+ INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
487
+ message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
488
+ params: ['clientName', 'entityType', 'relationshipType'],
489
+ },
490
+ PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
491
+ message: `A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.`,
492
+ },
493
+ STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
494
+ message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
495
+ params: ['clientName', 'clientDateEstablished'],
496
+ },
497
+ STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
498
+ message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
499
+ params: ['clientName', 'clientCloseDate'],
500
+ },
501
+ STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
502
+ message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
503
+ params: ['relatedClientName', 'relatedClientDateEstablished'],
504
+ },
505
+ STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
506
+ message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
507
+ params: ['relatedClientName', 'relatedClientCloseDate'],
508
+ },
509
+ ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
510
+ message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
511
+ params: ['startingDate'],
512
+ },
513
+ ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
514
+ message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
515
+ params: ['clientCloseDate'],
516
+ },
517
+ ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
518
+ message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
519
+ params: ['relatedClientName', 'relatedClientCloseDate'],
520
+ },
521
+ MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
522
+ message: `All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.`,
523
+ },
524
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
525
+ message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
526
+ },
527
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
528
+ message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
529
+ },
530
+ },
482
531
  FILING_CATEGORY: {
483
532
  INVALID_REQUEST: {
484
533
  message: 'Missing filing category id in request',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -478,6 +478,55 @@ export const VALIDATION_MESSAGES = {
478
478
  message: `The current domestic state cannot have an end date. Please remove the end date for this state.`,
479
479
  },
480
480
  },
481
+ CLIENT_RELATIONSHIP: {
482
+ CURRENT_CLIENT_CANNOT_BE_RELATED_TO_CURRENT_CLIENT: {
483
+ message: `A client cannot have a relationship with itself.`,
484
+ },
485
+ INVALID_RELATIONSHIP_TYPE_FOR_ENTITY_TYPE: {
486
+ message: `{clientName} is a/an {entityType}, which can't have {relationshipType}s. Please update the relationship type.`,
487
+ params: ['clientName', 'entityType', 'relationshipType'],
488
+ },
489
+ PARENT_RELATIONSHIP_REQUIRES_FILES_UNDER_PARENT: {
490
+ message: `A Parent relationship can only be added to an entity that files under parent. Please update the Sub/Parent status before adding a parent relationship, or choose a different relationship type.`,
491
+ },
492
+ STARTING_DATE_BEFORE_CLIENT_DATE_ESTABLISHED: {
493
+ message: `This relationship's start date cannot be before {clientName}'s date established, {clientDateEstablished}. Please adjust the dates to proceed.`,
494
+ params: ['clientName', 'clientDateEstablished'],
495
+ },
496
+ STARTING_DATE_ON_OR_AFTER_CLIENT_CLOSE_DATE: {
497
+ message: `This relationship's start date cannot be on or after {clientName}'s close date, {clientCloseDate}. Please adjust the dates to proceed.`,
498
+ params: ['clientName', 'clientCloseDate'],
499
+ },
500
+ STARTING_DATE_BEFORE_RELATED_CLIENT_DATE_ESTABLISHED: {
501
+ message: `This relationship's start date cannot be before {relatedClientName}'s date established, {relatedClientDateEstablished}. Please adjust the dates to proceed.`,
502
+ params: ['relatedClientName', 'relatedClientDateEstablished'],
503
+ },
504
+ STARTING_DATE_ON_OR_AFTER_RELATED_CLIENT_CLOSE_DATE: {
505
+ message: `This relationship's start date cannot be on or after {relatedClientName}'s close date, {relatedClientCloseDate}. Please adjust the dates to proceed.`,
506
+ params: ['relatedClientName', 'relatedClientCloseDate'],
507
+ },
508
+ ENDING_DATE_ON_OR_BEFORE_STARTING_DATE: {
509
+ message: `Please update the relationship ending date to be after the starting date, {startingDate}.`,
510
+ params: ['startingDate'],
511
+ },
512
+ ENDING_DATE_AFTER_CLIENT_CLOSE_DATE: {
513
+ message: `Please update the relationship ending date to be on or before the client's close date, {clientCloseDate}.`,
514
+ params: ['clientCloseDate'],
515
+ },
516
+ ENDING_DATE_AFTER_RELATED_CLIENT_CLOSE_DATE: {
517
+ message: `Please update the relationship ending date to be on or before {relatedClientName}'s close date, {relatedClientCloseDate}.`,
518
+ params: ['relatedClientName', 'relatedClientCloseDate'],
519
+ },
520
+ MULTIPLE_ACTIVE_PARENT_RELATIONSHIPS: {
521
+ message: `All parent relationships besides the current one must have an ending date. Please add an ending date for any parent relationships that are no longer current, before adding this parent relationship.`,
522
+ },
523
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_CLIENT_CLOSE_DATE: {
524
+ message: `The client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
525
+ },
526
+ FINAL_REQUIRED_WHEN_ENDING_DATE_MATCHES_RELATED_CLIENT_CLOSE_DATE: {
527
+ message: `The related client has a close date that is the same as the relationship ending date, therefore the relationship must be marked as final. Please update the relationship's final status to 'Yes', or adjust the dates.`,
528
+ },
529
+ },
481
530
  FILING_CATEGORY: {
482
531
  INVALID_REQUEST: {
483
532
  message: 'Missing filing category id in request',