@forwardslashns/taskit-validation-messages 1.10.34 → 1.10.36

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.
@@ -19,6 +19,11 @@ export declare const CLIENT_TEMPLATES: {
19
19
  message: string;
20
20
  affectedFields: string[];
21
21
  };
22
+ DEFAULT_PAYMENT_METHOD_INVALID: {
23
+ severity: "error";
24
+ message: string;
25
+ affectedFields: string[];
26
+ };
22
27
  ENDING_BEFORE_STARTING: {
23
28
  severity: "error";
24
29
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F3B,CAAC"}
@@ -23,6 +23,11 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
23
23
  message: 'Selected customer contact does not belong to the client',
24
24
  affectedFields: ['billingAndPayments.customerContact'],
25
25
  },
26
+ DEFAULT_PAYMENT_METHOD_INVALID: {
27
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
28
+ message: 'Selected default payment method does not belong to the client',
29
+ affectedFields: ['billingAndPayments.defaultPaymentMethod'],
30
+ },
26
31
  ENDING_BEFORE_STARTING: {
27
32
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
28
33
  message: 'Ending date cannot be earlier than starting date',
@@ -136,6 +136,18 @@ export declare const TEMPLATE_INFORMATION: {
136
136
  params: string[];
137
137
  affectedFields: string[];
138
138
  };
139
+ STATE_MISMATCH_WITH_ASSOCIATED_TAX_PAYMENTS: {
140
+ severity: "error";
141
+ message: string;
142
+ params: string[];
143
+ affectedFields: string[];
144
+ };
145
+ STATE_MISMATCH_WITH_PARENT_FILING: {
146
+ severity: "error";
147
+ message: string;
148
+ params: string[];
149
+ affectedFields: string[];
150
+ };
139
151
  FILING_STATUS_REQUIRED: {
140
152
  severity: "error";
141
153
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Q/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6R/B,CAAC"}
@@ -140,6 +140,18 @@ exports.TEMPLATE_INFORMATION = (0, validation_message_types_1.defineValidationFe
140
140
  params: ['SubEntityTemplateState'],
141
141
  affectedFields: ['state'],
142
142
  },
143
+ STATE_MISMATCH_WITH_ASSOCIATED_TAX_PAYMENTS: {
144
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
145
+ message: 'This template has associated tax payments that are set to {TaxPaymentTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
146
+ params: ['TaxPaymentTemplateState'],
147
+ affectedFields: ['state'],
148
+ },
149
+ STATE_MISMATCH_WITH_PARENT_FILING: {
150
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
151
+ message: 'This template is filing under a parent that is set to {ParentFilingTemplateState}, which conflicts with the selected state. Please update the state before saving.',
152
+ params: ['ParentFilingTemplateState'],
153
+ affectedFields: ['state'],
154
+ },
143
155
  FILING_STATUS_REQUIRED: {
144
156
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
145
157
  message: 'Sub/Parent status is required when filing type is Income tax',
@@ -1438,6 +1438,18 @@ export declare const VALIDATION_MESSAGES: {
1438
1438
  params: string[];
1439
1439
  affectedFields: string[];
1440
1440
  };
1441
+ STATE_MISMATCH_WITH_ASSOCIATED_TAX_PAYMENTS: {
1442
+ severity: "error";
1443
+ message: string;
1444
+ params: string[];
1445
+ affectedFields: string[];
1446
+ };
1447
+ STATE_MISMATCH_WITH_PARENT_FILING: {
1448
+ severity: "error";
1449
+ message: string;
1450
+ params: string[];
1451
+ affectedFields: string[];
1452
+ };
1441
1453
  FILING_STATUS_REQUIRED: {
1442
1454
  severity: "error";
1443
1455
  message: string;
@@ -1929,6 +1941,11 @@ export declare const VALIDATION_MESSAGES: {
1929
1941
  message: string;
1930
1942
  affectedFields: string[];
1931
1943
  };
1944
+ DEFAULT_PAYMENT_METHOD_INVALID: {
1945
+ severity: "error";
1946
+ message: string;
1947
+ affectedFields: string[];
1948
+ };
1932
1949
  ENDING_BEFORE_STARTING: {
1933
1950
  severity: "error";
1934
1951
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.34",
3
+ "version": "1.10.36",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -21,6 +21,11 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
21
21
  message: 'Selected customer contact does not belong to the client',
22
22
  affectedFields: ['billingAndPayments.customerContact'],
23
23
  },
24
+ DEFAULT_PAYMENT_METHOD_INVALID: {
25
+ severity: VALIDATION_SEVERITY.ERROR,
26
+ message: 'Selected default payment method does not belong to the client',
27
+ affectedFields: ['billingAndPayments.defaultPaymentMethod'],
28
+ },
24
29
  ENDING_BEFORE_STARTING: {
25
30
  severity: VALIDATION_SEVERITY.ERROR,
26
31
  message: 'Ending date cannot be earlier than starting date',
@@ -142,6 +142,20 @@ export const TEMPLATE_INFORMATION = defineValidationFeatureMessages({
142
142
  params: ['SubEntityTemplateState'],
143
143
  affectedFields: ['state'],
144
144
  },
145
+ STATE_MISMATCH_WITH_ASSOCIATED_TAX_PAYMENTS: {
146
+ severity: VALIDATION_SEVERITY.ERROR,
147
+ message:
148
+ 'This template has associated tax payments that are set to {TaxPaymentTemplateState} state, which conflicts with the selected state. Please update the state before saving.',
149
+ params: ['TaxPaymentTemplateState'],
150
+ affectedFields: ['state'],
151
+ },
152
+ STATE_MISMATCH_WITH_PARENT_FILING: {
153
+ severity: VALIDATION_SEVERITY.ERROR,
154
+ message:
155
+ 'This template is filing under a parent that is set to {ParentFilingTemplateState}, which conflicts with the selected state. Please update the state before saving.',
156
+ params: ['ParentFilingTemplateState'],
157
+ affectedFields: ['state'],
158
+ },
145
159
  FILING_STATUS_REQUIRED: {
146
160
  severity: VALIDATION_SEVERITY.ERROR,
147
161
  message: 'Sub/Parent status is required when filing type is Income tax',