@forwardslashns/taskit-validation-messages 1.3.4 → 1.3.5

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.
@@ -88,5 +88,14 @@ export declare const CLIENT_RELATIONSHIPS: {
88
88
  readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
89
89
  readonly affectedFields: readonly ["startingDate", "endingDate"];
90
90
  };
91
+ readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
92
+ readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
93
+ readonly params: readonly ["clientName", "parentClientName"];
94
+ readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
95
+ };
96
+ readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
97
+ readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
98
+ readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
99
+ };
91
100
  };
92
101
  //# sourceMappingURL=client-relationships.validation-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-relationships.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FvB,CAAC"}
1
+ {"version":3,"file":"client-relationships.validation-messages.d.ts","sourceRoot":"","sources":["../../../src/validation/features/client-relationships.validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGvB,CAAC"}
@@ -91,4 +91,13 @@ exports.CLIENT_RELATIONSHIPS = {
91
91
  params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
92
92
  affectedFields: ['startingDate', 'endingDate'],
93
93
  },
94
+ SUBSIDIARY_CANNOT_HAVE_PARENT: {
95
+ message: `{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.`,
96
+ params: ['clientName', 'parentClientName'],
97
+ affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
98
+ },
99
+ SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
100
+ message: `A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.`,
101
+ affectedFields: ['relationshipTypeId', 'filingTypeId'],
102
+ },
94
103
  };
@@ -696,6 +696,15 @@ export declare const VALIDATION_MESSAGES: {
696
696
  readonly params: readonly ["relationshipType", "relatedClientName", "clientName", "relationshipEnding"];
697
697
  readonly affectedFields: readonly ["startingDate", "endingDate"];
698
698
  };
699
+ readonly SUBSIDIARY_CANNOT_HAVE_PARENT: {
700
+ readonly message: "{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.";
701
+ readonly params: readonly ["clientName", "parentClientName"];
702
+ readonly affectedFields: readonly ["relationshipTypeId", "startingDate", "endingDate"];
703
+ };
704
+ readonly SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
705
+ readonly message: "A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.";
706
+ readonly affectedFields: readonly ["relationshipTypeId", "filingTypeId"];
707
+ };
699
708
  };
700
709
  readonly FILING_CATEGORIES: {
701
710
  readonly INVALID_REQUEST: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoB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dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -88,4 +88,13 @@ export const CLIENT_RELATIONSHIPS = {
88
88
  params: ['relationshipType', 'relatedClientName', 'clientName', 'relationshipEnding'],
89
89
  affectedFields: ['startingDate', 'endingDate'],
90
90
  },
91
+ SUBSIDIARY_CANNOT_HAVE_PARENT: {
92
+ message: `{clientName} cannot have subsidiary relationships since it is filing as a subsidiary under {parentClientName} during this timeframe. Please adjust the timeframe or select a different relationship type.`,
93
+ params: ['clientName', 'parentClientName'],
94
+ affectedFields: ['relationshipTypeId', 'startingDate', 'endingDate'],
95
+ },
96
+ SUBSIDIARY_REQUIRES_FILES_SEPARATELY: {
97
+ message: `A subsidiary relationship can only be added to an entity that files separately. Please update the Sub/Parent status before adding a subsidiary relationship, or choose a different relationship type.`,
98
+ affectedFields: ['relationshipTypeId', 'filingTypeId'],
99
+ },
91
100
  } as const;