@forwardslashns/taskit-validation-messages 1.10.35 → 1.10.37
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.
- package/dist/validation/features/client-templates.validation-messages.d.ts +15 -0
- package/dist/validation/features/client-templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +15 -0
- package/dist/validation/features/template-information.validation-messages.d.ts +12 -0
- package/dist/validation/features/template-information.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/template-information.validation-messages.js +12 -0
- package/dist/validation/validation-messages.d.ts +27 -0
- package/dist/validation/validation-messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/validation/features/client-templates.validation-messages.ts +16 -0
- package/src/validation/features/template-information.validation-messages.ts +14 -0
|
@@ -19,11 +19,26 @@ export declare const CLIENT_TEMPLATES: {
|
|
|
19
19
|
message: string;
|
|
20
20
|
affectedFields: string[];
|
|
21
21
|
};
|
|
22
|
+
CUSTOMER_CONTACT_REQUIRES_CONTACTS_ARRAY: {
|
|
23
|
+
severity: "error";
|
|
24
|
+
message: string;
|
|
25
|
+
affectedFields: string[];
|
|
26
|
+
};
|
|
22
27
|
DEFAULT_PAYMENT_METHOD_INVALID: {
|
|
23
28
|
severity: "error";
|
|
24
29
|
message: string;
|
|
25
30
|
affectedFields: string[];
|
|
26
31
|
};
|
|
32
|
+
DEFAULT_BANK_PAYMENT_METHOD_REQUIRES_BANK_ACCOUNTS_ARRAY: {
|
|
33
|
+
severity: "error";
|
|
34
|
+
message: string;
|
|
35
|
+
affectedFields: string[];
|
|
36
|
+
};
|
|
37
|
+
DEFAULT_CREDIT_CARD_PAYMENT_METHOD_REQUIRES_CREDIT_CARDS_ARRAY: {
|
|
38
|
+
severity: "error";
|
|
39
|
+
message: string;
|
|
40
|
+
affectedFields: string[];
|
|
41
|
+
};
|
|
27
42
|
ENDING_BEFORE_STARTING: {
|
|
28
43
|
severity: "error";
|
|
29
44
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2G3B,CAAC"}
|
|
@@ -23,11 +23,26 @@ 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
|
+
CUSTOMER_CONTACT_REQUIRES_CONTACTS_ARRAY: {
|
|
27
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
28
|
+
message: 'When customer contact is provided, contacts array is required in the request payload',
|
|
29
|
+
affectedFields: ['billingAndPayments.customerContact', 'contacts'],
|
|
30
|
+
},
|
|
26
31
|
DEFAULT_PAYMENT_METHOD_INVALID: {
|
|
27
32
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
28
33
|
message: 'Selected default payment method does not belong to the client',
|
|
29
34
|
affectedFields: ['billingAndPayments.defaultPaymentMethod'],
|
|
30
35
|
},
|
|
36
|
+
DEFAULT_BANK_PAYMENT_METHOD_REQUIRES_BANK_ACCOUNTS_ARRAY: {
|
|
37
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
38
|
+
message: 'When bank default payment method is provided, bankAccounts array is required in the request payload',
|
|
39
|
+
affectedFields: ['billingAndPayments.defaultPaymentMethod', 'bankAccounts'],
|
|
40
|
+
},
|
|
41
|
+
DEFAULT_CREDIT_CARD_PAYMENT_METHOD_REQUIRES_CREDIT_CARDS_ARRAY: {
|
|
42
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
43
|
+
message: 'When credit card default payment method is provided, creditCards array is required in the request payload',
|
|
44
|
+
affectedFields: ['billingAndPayments.defaultPaymentMethod', 'creditCards'],
|
|
45
|
+
},
|
|
31
46
|
ENDING_BEFORE_STARTING: {
|
|
32
47
|
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
33
48
|
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
|
|
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,11 +1941,26 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
1929
1941
|
message: string;
|
|
1930
1942
|
affectedFields: string[];
|
|
1931
1943
|
};
|
|
1944
|
+
CUSTOMER_CONTACT_REQUIRES_CONTACTS_ARRAY: {
|
|
1945
|
+
severity: "error";
|
|
1946
|
+
message: string;
|
|
1947
|
+
affectedFields: string[];
|
|
1948
|
+
};
|
|
1932
1949
|
DEFAULT_PAYMENT_METHOD_INVALID: {
|
|
1933
1950
|
severity: "error";
|
|
1934
1951
|
message: string;
|
|
1935
1952
|
affectedFields: string[];
|
|
1936
1953
|
};
|
|
1954
|
+
DEFAULT_BANK_PAYMENT_METHOD_REQUIRES_BANK_ACCOUNTS_ARRAY: {
|
|
1955
|
+
severity: "error";
|
|
1956
|
+
message: string;
|
|
1957
|
+
affectedFields: string[];
|
|
1958
|
+
};
|
|
1959
|
+
DEFAULT_CREDIT_CARD_PAYMENT_METHOD_REQUIRES_CREDIT_CARDS_ARRAY: {
|
|
1960
|
+
severity: "error";
|
|
1961
|
+
message: string;
|
|
1962
|
+
affectedFields: string[];
|
|
1963
|
+
};
|
|
1937
1964
|
ENDING_BEFORE_STARTING: {
|
|
1938
1965
|
severity: "error";
|
|
1939
1966
|
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
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sour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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -21,11 +21,27 @@ 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
|
+
CUSTOMER_CONTACT_REQUIRES_CONTACTS_ARRAY: {
|
|
25
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
26
|
+
message: 'When customer contact is provided, contacts array is required in the request payload',
|
|
27
|
+
affectedFields: ['billingAndPayments.customerContact', 'contacts'],
|
|
28
|
+
},
|
|
24
29
|
DEFAULT_PAYMENT_METHOD_INVALID: {
|
|
25
30
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
26
31
|
message: 'Selected default payment method does not belong to the client',
|
|
27
32
|
affectedFields: ['billingAndPayments.defaultPaymentMethod'],
|
|
28
33
|
},
|
|
34
|
+
DEFAULT_BANK_PAYMENT_METHOD_REQUIRES_BANK_ACCOUNTS_ARRAY: {
|
|
35
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
36
|
+
message: 'When bank default payment method is provided, bankAccounts array is required in the request payload',
|
|
37
|
+
affectedFields: ['billingAndPayments.defaultPaymentMethod', 'bankAccounts'],
|
|
38
|
+
},
|
|
39
|
+
DEFAULT_CREDIT_CARD_PAYMENT_METHOD_REQUIRES_CREDIT_CARDS_ARRAY: {
|
|
40
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
41
|
+
message:
|
|
42
|
+
'When credit card default payment method is provided, creditCards array is required in the request payload',
|
|
43
|
+
affectedFields: ['billingAndPayments.defaultPaymentMethod', 'creditCards'],
|
|
44
|
+
},
|
|
29
45
|
ENDING_BEFORE_STARTING: {
|
|
30
46
|
severity: VALIDATION_SEVERITY.ERROR,
|
|
31
47
|
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',
|