@forwardslashns/taskit-validation-messages 1.0.46 → 1.0.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.
@@ -85,20 +85,44 @@ export declare const VALIDATION_MESSAGES: {
85
85
  };
86
86
  readonly BUSINESS_ACTIVITY: {
87
87
  readonly INVALID_REQUEST: {
88
- readonly message: "Missing business activity id in request";
88
+ readonly message: "Missing business activity id in request.";
89
89
  };
90
90
  readonly ID_DOES_NOT_EXIST: {
91
- readonly message: "Business activity with id '{id}' does not exist";
91
+ readonly message: "Business activity with id '{id}' does not exist.";
92
92
  readonly params: readonly ["id"];
93
93
  };
94
94
  readonly NAME_ALREADY_EXISTS: {
95
- readonly message: "Business activity with the same name '{name}' already exists";
95
+ readonly message: "Business activity with the same name '{name}' already exists.";
96
96
  readonly params: readonly ["name"];
97
97
  };
98
98
  readonly OPTION_IN_USE: {
99
99
  readonly message: "This option is currently in use and cannot be deleted.";
100
100
  };
101
101
  };
102
+ readonly BANK: {
103
+ readonly INVALID_ROUTING_NUMBER: {
104
+ readonly message: "Enter a valid routing number.";
105
+ };
106
+ };
107
+ readonly CREDIT_CARD: {
108
+ readonly INVALID_EXPIRATION_DATE: {
109
+ readonly message: "Enter a valid expiration date (i.e. 12/2024).";
110
+ };
111
+ readonly INVALID_SECURITY_CODE: {
112
+ readonly message: "Enter a valid security code (i.e. 1234).";
113
+ };
114
+ };
115
+ readonly BANK_AND_CREDIT_CARD: {
116
+ readonly INVALID_ACCOUNT_NUMBER: {
117
+ readonly message: "Enter a valid account number.";
118
+ };
119
+ readonly INVALID_DESCRIPTION: {
120
+ readonly message: "There is another payment method with the same description. Please ensure all payment methods have different descriptions.";
121
+ };
122
+ readonly NO_DEFAULT_PAYMENT_METHOD: {
123
+ readonly message: "There must be at least one payment method marked as default. Please select a default payment method.";
124
+ };
125
+ };
102
126
  readonly CONTACT: {
103
127
  readonly CONTACT_ROLES_NOT_FOUND: {
104
128
  readonly message: "Contact roles with ids {ids} do not exist";
@@ -249,6 +273,9 @@ export declare const VALIDATION_MESSAGES: {
249
273
  readonly CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
250
274
  readonly message: "This client cannot be deleted because it has bank accounts associated";
251
275
  };
276
+ readonly CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
277
+ readonly message: "This client cannot be deleted because it has credit cards associated";
278
+ };
252
279
  readonly CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
253
280
  readonly message: "This client cannot be deleted because it has worklogs associated";
254
281
  };
@@ -1 +1 @@
1
- {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyhBtB,CAAC"}
1
+ {"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqjBtB,CAAC"}
@@ -88,20 +88,44 @@ exports.VALIDATION_MESSAGES = {
88
88
  },
89
89
  BUSINESS_ACTIVITY: {
90
90
  INVALID_REQUEST: {
91
- message: 'Missing business activity id in request',
91
+ message: 'Missing business activity id in request.',
92
92
  },
93
93
  ID_DOES_NOT_EXIST: {
94
- message: `Business activity with id '{id}' does not exist`,
94
+ message: `Business activity with id '{id}' does not exist.`,
95
95
  params: ['id'],
96
96
  },
97
97
  NAME_ALREADY_EXISTS: {
98
- message: `Business activity with the same name '{name}' already exists`,
98
+ message: `Business activity with the same name '{name}' already exists.`,
99
99
  params: ['name'],
100
100
  },
101
101
  OPTION_IN_USE: {
102
102
  message: `This option is currently in use and cannot be deleted.`,
103
103
  },
104
104
  },
105
+ BANK: {
106
+ INVALID_ROUTING_NUMBER: {
107
+ message: 'Enter a valid routing number.',
108
+ },
109
+ },
110
+ CREDIT_CARD: {
111
+ INVALID_EXPIRATION_DATE: {
112
+ message: 'Enter a valid expiration date (i.e. 12/2024).',
113
+ },
114
+ INVALID_SECURITY_CODE: {
115
+ message: 'Enter a valid security code (i.e. 1234).',
116
+ },
117
+ },
118
+ BANK_AND_CREDIT_CARD: {
119
+ INVALID_ACCOUNT_NUMBER: {
120
+ message: 'Enter a valid account number.',
121
+ },
122
+ INVALID_DESCRIPTION: {
123
+ message: 'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
124
+ },
125
+ NO_DEFAULT_PAYMENT_METHOD: {
126
+ message: 'There must be at least one payment method marked as default. Please select a default payment method.',
127
+ },
128
+ },
105
129
  CONTACT: {
106
130
  CONTACT_ROLES_NOT_FOUND: {
107
131
  message: `Contact roles with ids {ids} do not exist`,
@@ -252,6 +276,9 @@ exports.VALIDATION_MESSAGES = {
252
276
  CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
253
277
  message: `This client cannot be deleted because it has bank accounts associated`,
254
278
  },
279
+ CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
280
+ message: `This client cannot be deleted because it has credit cards associated`,
281
+ },
255
282
  CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
256
283
  message: `This client cannot be deleted because it has worklogs associated`,
257
284
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardslashns/taskit-validation-messages",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "commonjs",
@@ -85,20 +85,45 @@ export const VALIDATION_MESSAGES = {
85
85
  },
86
86
  BUSINESS_ACTIVITY: {
87
87
  INVALID_REQUEST: {
88
- message: 'Missing business activity id in request',
88
+ message: 'Missing business activity id in request.',
89
89
  },
90
90
  ID_DOES_NOT_EXIST: {
91
- message: `Business activity with id '{id}' does not exist`,
91
+ message: `Business activity with id '{id}' does not exist.`,
92
92
  params: ['id'],
93
93
  },
94
94
  NAME_ALREADY_EXISTS: {
95
- message: `Business activity with the same name '{name}' already exists`,
95
+ message: `Business activity with the same name '{name}' already exists.`,
96
96
  params: ['name'],
97
97
  },
98
98
  OPTION_IN_USE: {
99
99
  message: `This option is currently in use and cannot be deleted.`,
100
100
  },
101
101
  },
102
+ BANK: {
103
+ INVALID_ROUTING_NUMBER: {
104
+ message: 'Enter a valid routing number.',
105
+ },
106
+ },
107
+ CREDIT_CARD: {
108
+ INVALID_EXPIRATION_DATE: {
109
+ message: 'Enter a valid expiration date (i.e. 12/2024).',
110
+ },
111
+ INVALID_SECURITY_CODE: {
112
+ message: 'Enter a valid security code (i.e. 1234).',
113
+ },
114
+ },
115
+ BANK_AND_CREDIT_CARD: {
116
+ INVALID_ACCOUNT_NUMBER: {
117
+ message: 'Enter a valid account number.',
118
+ },
119
+ INVALID_DESCRIPTION: {
120
+ message:
121
+ 'There is another payment method with the same description. Please ensure all payment methods have different descriptions.',
122
+ },
123
+ NO_DEFAULT_PAYMENT_METHOD: {
124
+ message: 'There must be at least one payment method marked as default. Please select a default payment method.',
125
+ },
126
+ },
102
127
  CONTACT: {
103
128
  CONTACT_ROLES_NOT_FOUND: {
104
129
  message: `Contact roles with ids {ids} do not exist`,
@@ -249,6 +274,9 @@ export const VALIDATION_MESSAGES = {
249
274
  CLIENT_COULD_NOT_BE_DELETED_BANK_ACCOUNTS_EXIST: {
250
275
  message: `This client cannot be deleted because it has bank accounts associated`,
251
276
  },
277
+ CLIENT_COULD_NOT_BE_DELETED_CREDIT_CARDS_EXIST: {
278
+ message: `This client cannot be deleted because it has credit cards associated`,
279
+ },
252
280
  CLIENT_COULD_NOT_BE_DELETED_WORKLOGS_EXIST: {
253
281
  message: `This client cannot be deleted because it has worklogs associated`,
254
282
  },