@forwardslashns/taskit-validation-messages 1.10.30 → 1.10.32

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.
@@ -39,6 +39,16 @@ export declare const CLIENT_TEMPLATES: {
39
39
  message: string;
40
40
  affectedFields: string[];
41
41
  };
42
+ ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
43
+ severity: "error";
44
+ message: string;
45
+ affectedFields: string[];
46
+ };
47
+ FINAL_ALLOWED_ONLY_WITH_ENDING: {
48
+ severity: "error";
49
+ message: string;
50
+ affectedFields: string[];
51
+ };
42
52
  DAY_OF_MONTH_OUT_OF_RANGE: {
43
53
  severity: "error";
44
54
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsF3B,CAAC"}
@@ -43,9 +43,19 @@ exports.CLIENT_TEMPLATES = (0, validation_message_types_1.defineValidationFeatur
43
43
  message: 'Commission rate is required when template is subject to commission',
44
44
  affectedFields: ['billingAndPayments.commissionRate'],
45
45
  },
46
+ ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
47
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
48
+ message: 'Estimate amount is required for tax payment templates',
49
+ affectedFields: ['billingAndPayments.estimateAmount'],
50
+ },
51
+ FINAL_ALLOWED_ONLY_WITH_ENDING: {
52
+ severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
53
+ message: 'Final is allowed only when ending date is provided',
54
+ affectedFields: ['templateInfo.isFinal', 'templateInfo.endingDate'],
55
+ },
46
56
  DAY_OF_MONTH_OUT_OF_RANGE: {
47
57
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
48
- message: 'Day of month must be between 1 and 31',
58
+ message: 'Day of month must be between 1 and 28',
49
59
  affectedFields: ['billingAndPayments.dayOfMonth'],
50
60
  },
51
61
  BILLING_MUST_BE_SEPARATELY_CHARGED: {
@@ -123,7 +123,7 @@ exports.TEMPLATE_RECURRENCE_SETTINGS = (0, validation_message_types_1.defineVali
123
123
  },
124
124
  DAY_OF_MONTH_INVALID: {
125
125
  severity: validation_message_types_1.VALIDATION_SEVERITY.ERROR,
126
- message: 'Day of month must be a value between 1 and 31.',
126
+ message: 'Day of month must be a value between 1 and 28.',
127
127
  affectedFields: ['dayOfMonth'],
128
128
  },
129
129
  DUE_MONTH_REQUIRED: {
@@ -1964,6 +1964,16 @@ export declare const VALIDATION_MESSAGES: {
1964
1964
  message: string;
1965
1965
  affectedFields: string[];
1966
1966
  };
1967
+ ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
1968
+ severity: "error";
1969
+ message: string;
1970
+ affectedFields: string[];
1971
+ };
1972
+ FINAL_ALLOWED_ONLY_WITH_ENDING: {
1973
+ severity: "error";
1974
+ message: string;
1975
+ affectedFields: string[];
1976
+ };
1967
1977
  DAY_OF_MONTH_OUT_OF_RANGE: {
1968
1978
  severity: "error";
1969
1979
  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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
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.10.30",
3
+ "version": "1.10.32",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -41,9 +41,19 @@ export const CLIENT_TEMPLATES = defineValidationFeatureMessages({
41
41
  message: 'Commission rate is required when template is subject to commission',
42
42
  affectedFields: ['billingAndPayments.commissionRate'],
43
43
  },
44
+ ESTIMATE_AMOUNT_REQUIRED_FOR_TAX_PAYMENT: {
45
+ severity: VALIDATION_SEVERITY.ERROR,
46
+ message: 'Estimate amount is required for tax payment templates',
47
+ affectedFields: ['billingAndPayments.estimateAmount'],
48
+ },
49
+ FINAL_ALLOWED_ONLY_WITH_ENDING: {
50
+ severity: VALIDATION_SEVERITY.ERROR,
51
+ message: 'Final is allowed only when ending date is provided',
52
+ affectedFields: ['templateInfo.isFinal', 'templateInfo.endingDate'],
53
+ },
44
54
  DAY_OF_MONTH_OUT_OF_RANGE: {
45
55
  severity: VALIDATION_SEVERITY.ERROR,
46
- message: 'Day of month must be between 1 and 31',
56
+ message: 'Day of month must be between 1 and 28',
47
57
  affectedFields: ['billingAndPayments.dayOfMonth'],
48
58
  },
49
59
  BILLING_MUST_BE_SEPARATELY_CHARGED: {
@@ -128,7 +128,7 @@ export const TEMPLATE_RECURRENCE_SETTINGS = defineValidationFeatureMessages({
128
128
  },
129
129
  DAY_OF_MONTH_INVALID: {
130
130
  severity: VALIDATION_SEVERITY.ERROR,
131
- message: 'Day of month must be a value between 1 and 31.',
131
+ message: 'Day of month must be a value between 1 and 28.',
132
132
  affectedFields: ['dayOfMonth'],
133
133
  },
134
134
  DUE_MONTH_REQUIRED: {