@forwardslashns/taskit-validation-messages 1.10.36 → 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.
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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',
@@ -1941,11 +1941,26 @@ export declare const VALIDATION_MESSAGES: {
1941
1941
  message: string;
1942
1942
  affectedFields: string[];
1943
1943
  };
1944
+ CUSTOMER_CONTACT_REQUIRES_CONTACTS_ARRAY: {
1945
+ severity: "error";
1946
+ message: string;
1947
+ affectedFields: string[];
1948
+ };
1944
1949
  DEFAULT_PAYMENT_METHOD_INVALID: {
1945
1950
  severity: "error";
1946
1951
  message: string;
1947
1952
  affectedFields: string[];
1948
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
+ };
1949
1964
  ENDING_BEFORE_STARTING: {
1950
1965
  severity: "error";
1951
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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.36",
3
+ "version": "1.10.37",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -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',