@forwardslashns/taskit-validation-messages 1.10.46 → 1.10.48
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 +50 -0
- package/dist/validation/features/client-templates.validation-messages.d.ts.map +1 -1
- package/dist/validation/features/client-templates.validation-messages.js +50 -0
- package/dist/validation/validation-messages.d.ts +50 -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 +55 -0
|
@@ -230,5 +230,55 @@ export declare const CLIENT_TEMPLATES: {
|
|
|
230
230
|
message: string;
|
|
231
231
|
affectedFields: string[];
|
|
232
232
|
};
|
|
233
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
234
|
+
severity: "error";
|
|
235
|
+
message: string;
|
|
236
|
+
affectedFields: string[];
|
|
237
|
+
};
|
|
238
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
239
|
+
severity: "error";
|
|
240
|
+
message: string;
|
|
241
|
+
affectedFields: string[];
|
|
242
|
+
};
|
|
243
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
244
|
+
severity: "error";
|
|
245
|
+
message: string;
|
|
246
|
+
affectedFields: string[];
|
|
247
|
+
};
|
|
248
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
249
|
+
severity: "error";
|
|
250
|
+
message: string;
|
|
251
|
+
affectedFields: string[];
|
|
252
|
+
};
|
|
253
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
254
|
+
severity: "error";
|
|
255
|
+
message: string;
|
|
256
|
+
affectedFields: string[];
|
|
257
|
+
};
|
|
258
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
259
|
+
severity: "error";
|
|
260
|
+
message: string;
|
|
261
|
+
affectedFields: string[];
|
|
262
|
+
};
|
|
263
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
264
|
+
severity: "error";
|
|
265
|
+
message: string;
|
|
266
|
+
affectedFields: string[];
|
|
267
|
+
};
|
|
268
|
+
TAX_PAYMENT_FILING_TEMPLATE_MUST_BE_FILING: {
|
|
269
|
+
severity: "error";
|
|
270
|
+
message: string;
|
|
271
|
+
affectedFields: string[];
|
|
272
|
+
};
|
|
273
|
+
CLIENT_TEMPLATE_NOT_FOUND: {
|
|
274
|
+
severity: "error";
|
|
275
|
+
message: string;
|
|
276
|
+
affectedFields: string[];
|
|
277
|
+
};
|
|
278
|
+
CLIENT_TEMPLATE_ENDED_OR_DELETED: {
|
|
279
|
+
severity: "error";
|
|
280
|
+
message: string;
|
|
281
|
+
affectedFields: string[];
|
|
282
|
+
};
|
|
233
283
|
};
|
|
234
284
|
//# sourceMappingURL=client-templates.validation-messages.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmS3B,CAAC"}
|
|
@@ -234,4 +234,54 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
|
|
|
234
234
|
message: "Commission rate must be empty when 'Subject to commission' is No.",
|
|
235
235
|
affectedFields: ['billingAndPayments.commissionRate'],
|
|
236
236
|
},
|
|
237
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
238
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
239
|
+
message: 'State sub-filings are only allowed for Filing template types.',
|
|
240
|
+
affectedFields: ['states'],
|
|
241
|
+
},
|
|
242
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
243
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
244
|
+
message: 'A state sub-filing with the same template state and client state already exists.',
|
|
245
|
+
affectedFields: ['states'],
|
|
246
|
+
},
|
|
247
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
248
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
249
|
+
message: 'Selected template state does not exist or does not belong to the selected template.',
|
|
250
|
+
affectedFields: ['states'],
|
|
251
|
+
},
|
|
252
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
253
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
254
|
+
message: 'Selected client entity state does not exist or does not belong to the client.',
|
|
255
|
+
affectedFields: ['states'],
|
|
256
|
+
},
|
|
257
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
258
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
259
|
+
message: 'State sub-filing ending date cannot be earlier than its starting date.',
|
|
260
|
+
affectedFields: ['states'],
|
|
261
|
+
},
|
|
262
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
263
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
264
|
+
message: 'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
265
|
+
affectedFields: ['states'],
|
|
266
|
+
},
|
|
267
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
268
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
269
|
+
message: 'Selected payment method does not exist.',
|
|
270
|
+
affectedFields: ['states'],
|
|
271
|
+
},
|
|
272
|
+
TAX_PAYMENT_FILING_TEMPLATE_MUST_BE_FILING: {
|
|
273
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
274
|
+
message: 'Selected client template must be of type Filing.',
|
|
275
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
276
|
+
},
|
|
277
|
+
CLIENT_TEMPLATE_NOT_FOUND: {
|
|
278
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
279
|
+
message: 'Selected client template does not exist or does not belong to this client.',
|
|
280
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
281
|
+
},
|
|
282
|
+
CLIENT_TEMPLATE_ENDED_OR_DELETED: {
|
|
283
|
+
severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
|
|
284
|
+
message: 'Selected client template is ended or deleted.',
|
|
285
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
286
|
+
},
|
|
237
287
|
});
|
|
@@ -2213,6 +2213,56 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
2213
2213
|
message: string;
|
|
2214
2214
|
affectedFields: string[];
|
|
2215
2215
|
};
|
|
2216
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
2217
|
+
severity: "error";
|
|
2218
|
+
message: string;
|
|
2219
|
+
affectedFields: string[];
|
|
2220
|
+
};
|
|
2221
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
2222
|
+
severity: "error";
|
|
2223
|
+
message: string;
|
|
2224
|
+
affectedFields: string[];
|
|
2225
|
+
};
|
|
2226
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
2227
|
+
severity: "error";
|
|
2228
|
+
message: string;
|
|
2229
|
+
affectedFields: string[];
|
|
2230
|
+
};
|
|
2231
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
2232
|
+
severity: "error";
|
|
2233
|
+
message: string;
|
|
2234
|
+
affectedFields: string[];
|
|
2235
|
+
};
|
|
2236
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
2237
|
+
severity: "error";
|
|
2238
|
+
message: string;
|
|
2239
|
+
affectedFields: string[];
|
|
2240
|
+
};
|
|
2241
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
2242
|
+
severity: "error";
|
|
2243
|
+
message: string;
|
|
2244
|
+
affectedFields: string[];
|
|
2245
|
+
};
|
|
2246
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
2247
|
+
severity: "error";
|
|
2248
|
+
message: string;
|
|
2249
|
+
affectedFields: string[];
|
|
2250
|
+
};
|
|
2251
|
+
TAX_PAYMENT_FILING_TEMPLATE_MUST_BE_FILING: {
|
|
2252
|
+
severity: "error";
|
|
2253
|
+
message: string;
|
|
2254
|
+
affectedFields: string[];
|
|
2255
|
+
};
|
|
2256
|
+
CLIENT_TEMPLATE_NOT_FOUND: {
|
|
2257
|
+
severity: "error";
|
|
2258
|
+
message: string;
|
|
2259
|
+
affectedFields: string[];
|
|
2260
|
+
};
|
|
2261
|
+
CLIENT_TEMPLATE_ENDED_OR_DELETED: {
|
|
2262
|
+
severity: "error";
|
|
2263
|
+
message: string;
|
|
2264
|
+
affectedFields: string[];
|
|
2265
|
+
};
|
|
2216
2266
|
};
|
|
2217
2267
|
readonly CLIENT_TEMPLATE_ASSIGNMENTS: {
|
|
2218
2268
|
NAME_ALREADY_EXISTS_ON_CLIENT_TEMPLATE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -236,4 +236,59 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
|
|
|
236
236
|
message: "Commission rate must be empty when 'Subject to commission' is No.",
|
|
237
237
|
affectedFields: ['billingAndPayments.commissionRate'],
|
|
238
238
|
},
|
|
239
|
+
STATES_ONLY_ALLOWED_FOR_FILING: {
|
|
240
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
241
|
+
message:
|
|
242
|
+
'State sub-filings are only allowed for Filing template types.',
|
|
243
|
+
affectedFields: ['states'],
|
|
244
|
+
},
|
|
245
|
+
DUPLICATE_STATE_SUBFILING: {
|
|
246
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
247
|
+
message:
|
|
248
|
+
'A state sub-filing with the same template state and client state already exists.',
|
|
249
|
+
affectedFields: ['states'],
|
|
250
|
+
},
|
|
251
|
+
STATE_TEMPLATE_STATE_NOT_FOUND: {
|
|
252
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
253
|
+
message:
|
|
254
|
+
'Selected template state does not exist or does not belong to the selected template.',
|
|
255
|
+
affectedFields: ['states'],
|
|
256
|
+
},
|
|
257
|
+
STATE_CLIENT_STATE_NOT_FOUND: {
|
|
258
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
259
|
+
message:
|
|
260
|
+
'Selected client entity state does not exist or does not belong to the client.',
|
|
261
|
+
affectedFields: ['states'],
|
|
262
|
+
},
|
|
263
|
+
STATE_ENDING_BEFORE_STARTING: {
|
|
264
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
265
|
+
message: 'State sub-filing ending date cannot be earlier than its starting date.',
|
|
266
|
+
affectedFields: ['states'],
|
|
267
|
+
},
|
|
268
|
+
STATE_IS_FINAL_REQUIRED_WITH_ENDING_DATE: {
|
|
269
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
270
|
+
message:
|
|
271
|
+
'isFinal must be provided when an ending date is set on a state sub-filing.',
|
|
272
|
+
affectedFields: ['states'],
|
|
273
|
+
},
|
|
274
|
+
STATE_PAYMENT_METHOD_NOT_FOUND: {
|
|
275
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
276
|
+
message: 'Selected payment method does not exist.',
|
|
277
|
+
affectedFields: ['states'],
|
|
278
|
+
},
|
|
279
|
+
TAX_PAYMENT_FILING_TEMPLATE_MUST_BE_FILING: {
|
|
280
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
281
|
+
message: 'Selected client template must be of type Filing.',
|
|
282
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
283
|
+
},
|
|
284
|
+
CLIENT_TEMPLATE_NOT_FOUND: {
|
|
285
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
286
|
+
message: 'Selected client template does not exist or does not belong to this client.',
|
|
287
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
288
|
+
},
|
|
289
|
+
CLIENT_TEMPLATE_ENDED_OR_DELETED: {
|
|
290
|
+
severity: VALIDATION_SEVERITY.ERROR,
|
|
291
|
+
message: 'Selected client template is ended or deleted.',
|
|
292
|
+
affectedFields: ['clientFilingTemplateId'],
|
|
293
|
+
},
|
|
239
294
|
});
|