@forwardslashns/taskit-validation-messages 1.3.9 → 1.4.0

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.
@@ -1,27 +1,27 @@
1
- name: Node.js Package
2
-
3
- on:
4
- push:
5
- branches: master
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v3
12
- - uses: actions/setup-node@v3
13
- with:
14
- node-version: 22
15
- - run: npm ci
16
-
17
- publish-npm:
18
- needs: build
19
- runs-on: ubuntu-latest
20
- steps:
21
- - uses: actions/checkout@v3
22
- - uses: actions/setup-node@v3
23
- with:
24
- node-version: 22
25
- registry-url: https://registry.npmjs.org/
26
- - run: npm ci
27
- - run: npm publish
1
+ name: Node.js Package
2
+
3
+ on:
4
+ push:
5
+ branches: master
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ with:
14
+ node-version: 22
15
+ - run: npm ci
16
+
17
+ publish-npm:
18
+ needs: build
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - uses: actions/setup-node@v3
23
+ with:
24
+ node-version: 22
25
+ registry-url: https://registry.npmjs.org/
26
+ - run: npm ci
27
+ - run: npm publish
package/.prettierrc CHANGED
@@ -1,8 +1,8 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true,
6
- "printWidth": 120,
7
- "endOfLine": "auto"
8
- }
1
+ {
2
+ "trailingComma": "es5",
3
+ "tabWidth": 2,
4
+ "semi": true,
5
+ "singleQuote": true,
6
+ "printWidth": 120,
7
+ "endOfLine": "auto"
8
+ }
@@ -196,5 +196,14 @@ export declare const CLIENT_RELATIONSHIPS: {
196
196
  readonly params: readonly ["relatedClient"];
197
197
  readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
198
198
  };
199
+ readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
200
+ readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
201
+ readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
202
+ };
203
+ readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
204
+ readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
205
+ readonly params: readonly ["relatedClient", "entityType"];
206
+ readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
207
+ };
199
208
  };
200
209
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMvB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MvB,CAAC"}
@@ -199,4 +199,13 @@ exports.CLIENT_RELATIONSHIPS = {
199
199
  params: ['relatedClient'],
200
200
  affectedFields: ['capital', 'startingDate', 'endingDate'],
201
201
  },
202
+ SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
203
+ message: `A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.`,
204
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
205
+ },
206
+ K1_ISSUER_INVALID_ENTITY_TYPE: {
207
+ message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
208
+ params: ['relatedClient', 'entityType'],
209
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
210
+ },
202
211
  };
@@ -804,6 +804,15 @@ export declare const VALIDATION_MESSAGES: {
804
804
  readonly params: readonly ["relatedClient"];
805
805
  readonly affectedFields: readonly ["capital", "startingDate", "endingDate"];
806
806
  };
807
+ readonly SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
808
+ readonly message: "A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.";
809
+ readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
810
+ };
811
+ readonly K1_ISSUER_INVALID_ENTITY_TYPE: {
812
+ readonly message: "{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.";
813
+ readonly params: readonly ["relatedClient", "entityType"];
814
+ readonly affectedFields: readonly ["relatedClientId", "relationshipTypeId"];
815
+ };
807
816
  };
808
817
  readonly FILING_CATEGORIES: {
809
818
  readonly INVALID_REQUEST: {
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -196,4 +196,13 @@ export const CLIENT_RELATIONSHIPS = {
196
196
  params: ['relatedClient'],
197
197
  affectedFields: ['capital', 'startingDate', 'endingDate'],
198
198
  },
199
+ SUBSIDIARY_ENTITY_TYPE_MISMATCH: {
200
+ message: `A subsidiary entity must be the same entity type as the client during the relationship's timeframe (besides DBA or LLC subsidiaries). Please select a different relationship type, or update either client's entity type.`,
201
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
202
+ },
203
+ K1_ISSUER_INVALID_ENTITY_TYPE: {
204
+ message: `{relatedClient} is a/an {entityType}, which cannot issue K1s. Please select a different client or choose a different relationship type.`,
205
+ params: ['relatedClient', 'entityType'],
206
+ affectedFields: ['relatedClientId', 'relationshipTypeId'],
207
+ },
199
208
  } as const;
package/tsconfig.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ESNext",
4
- "module": "Node16",
5
- "moduleResolution": "node16",
6
- "strict": true,
7
- "esModuleInterop": true,
8
- "declaration": true,
9
- "declarationMap": true,
10
- "skipLibCheck": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "outDir": "./dist",
13
- "rootDir": "./src"
14
- },
15
- "include": ["src/**/*", "types/**/*"],
16
- "exclude": ["node_modules"]
17
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "Node16",
5
+ "moduleResolution": "node16",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "outDir": "./dist",
13
+ "rootDir": "./src"
14
+ },
15
+ "include": ["src/**/*", "types/**/*"],
16
+ "exclude": ["node_modules"]
17
+ }