@forwardslashns/taskit-validation-messages 1.0.43 → 1.0.45
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.
|
@@ -99,6 +99,34 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
99
99
|
readonly message: "This option is currently in use and cannot be deleted.";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
+
readonly CONTACT: {
|
|
103
|
+
readonly CONTACT_ROLES_NOT_FOUND: {
|
|
104
|
+
readonly message: "Contact roles with ids {ids} do not exist";
|
|
105
|
+
readonly params: readonly ["ids"];
|
|
106
|
+
};
|
|
107
|
+
readonly CONTACT_TYPES_NOT_FOUND: {
|
|
108
|
+
readonly message: "Contact types with ids {ids} do not exist";
|
|
109
|
+
readonly params: readonly ["ids"];
|
|
110
|
+
};
|
|
111
|
+
readonly LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
112
|
+
readonly message: "The client must have a legal contact. Please set the contact type to 'Legal'.";
|
|
113
|
+
};
|
|
114
|
+
readonly MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
|
|
115
|
+
readonly message: "The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.";
|
|
116
|
+
};
|
|
117
|
+
readonly BILLING_CONTACT_MUST_BE_PROVIDED: {
|
|
118
|
+
readonly message: "The client must have a billing contact. Please set the contact type to 'Billing'.";
|
|
119
|
+
};
|
|
120
|
+
readonly MULTIPLE_BILLING_CONTACTS_PROVIDED: {
|
|
121
|
+
readonly message: "The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.";
|
|
122
|
+
};
|
|
123
|
+
readonly PRIMARY_CONTACT_MUST_BE_PROVIDED: {
|
|
124
|
+
readonly message: "The client must have a primary contact. Please set the contact type to 'Primary'.";
|
|
125
|
+
};
|
|
126
|
+
readonly MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
|
|
127
|
+
readonly message: "The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
102
130
|
readonly CLIENT: {
|
|
103
131
|
readonly INVALID_REQUEST: {
|
|
104
132
|
readonly message: "Missing client id in request";
|
|
@@ -493,5 +521,15 @@ export declare const VALIDATION_MESSAGES: {
|
|
|
493
521
|
readonly message: "Invalid columnOrder values";
|
|
494
522
|
};
|
|
495
523
|
};
|
|
524
|
+
readonly OUTSIDE_PROVIDER: {
|
|
525
|
+
readonly INVALID_TYPE: {
|
|
526
|
+
readonly message: "Outside provider type with id '{id}' does not exist";
|
|
527
|
+
readonly params: readonly ["id"];
|
|
528
|
+
};
|
|
529
|
+
readonly SAME_TYPE_TIMELINE_OVERLAP: {
|
|
530
|
+
readonly message: "The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.";
|
|
531
|
+
readonly params: readonly ["outsideProviderType", "startDate"];
|
|
532
|
+
};
|
|
533
|
+
};
|
|
496
534
|
};
|
|
497
535
|
//# sourceMappingURL=validation-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"validation-messages.d.ts","sourceRoot":"","sources":["../../src/validation/validation-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyhBtB,CAAC"}
|
|
@@ -102,6 +102,34 @@ exports.VALIDATION_MESSAGES = {
|
|
|
102
102
|
message: `This option is currently in use and cannot be deleted.`,
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
|
+
CONTACT: {
|
|
106
|
+
CONTACT_ROLES_NOT_FOUND: {
|
|
107
|
+
message: `Contact roles with ids {ids} do not exist`,
|
|
108
|
+
params: ['ids'],
|
|
109
|
+
},
|
|
110
|
+
CONTACT_TYPES_NOT_FOUND: {
|
|
111
|
+
message: `Contact types with ids {ids} do not exist`,
|
|
112
|
+
params: ['ids'],
|
|
113
|
+
},
|
|
114
|
+
LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
115
|
+
message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
|
|
116
|
+
},
|
|
117
|
+
MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
|
|
118
|
+
message: `The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.`,
|
|
119
|
+
},
|
|
120
|
+
BILLING_CONTACT_MUST_BE_PROVIDED: {
|
|
121
|
+
message: `The client must have a billing contact. Please set the contact type to 'Billing'.`,
|
|
122
|
+
},
|
|
123
|
+
MULTIPLE_BILLING_CONTACTS_PROVIDED: {
|
|
124
|
+
message: `The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.`,
|
|
125
|
+
},
|
|
126
|
+
PRIMARY_CONTACT_MUST_BE_PROVIDED: {
|
|
127
|
+
message: `The client must have a primary contact. Please set the contact type to 'Primary'.`,
|
|
128
|
+
},
|
|
129
|
+
MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
|
|
130
|
+
message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
105
133
|
CLIENT: {
|
|
106
134
|
INVALID_REQUEST: {
|
|
107
135
|
message: 'Missing client id in request',
|
|
@@ -500,4 +528,14 @@ exports.VALIDATION_MESSAGES = {
|
|
|
500
528
|
message: 'Invalid columnOrder values',
|
|
501
529
|
},
|
|
502
530
|
},
|
|
531
|
+
OUTSIDE_PROVIDER: {
|
|
532
|
+
INVALID_TYPE: {
|
|
533
|
+
message: `Outside provider type with id '{id}' does not exist`,
|
|
534
|
+
params: ['id'],
|
|
535
|
+
},
|
|
536
|
+
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
537
|
+
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
538
|
+
params: ['outsideProviderType', 'startDate'],
|
|
539
|
+
},
|
|
540
|
+
},
|
|
503
541
|
};
|
package/package.json
CHANGED
|
@@ -99,6 +99,34 @@ export const VALIDATION_MESSAGES = {
|
|
|
99
99
|
message: `This option is currently in use and cannot be deleted.`,
|
|
100
100
|
},
|
|
101
101
|
},
|
|
102
|
+
CONTACT: {
|
|
103
|
+
CONTACT_ROLES_NOT_FOUND: {
|
|
104
|
+
message: `Contact roles with ids {ids} do not exist`,
|
|
105
|
+
params: ['ids'],
|
|
106
|
+
},
|
|
107
|
+
CONTACT_TYPES_NOT_FOUND: {
|
|
108
|
+
message: `Contact types with ids {ids} do not exist`,
|
|
109
|
+
params: ['ids'],
|
|
110
|
+
},
|
|
111
|
+
LEGAL_CONTACT_MUST_BE_PROVIDED: {
|
|
112
|
+
message: `The client must have a legal contact. Please set the contact type to 'Legal'.`,
|
|
113
|
+
},
|
|
114
|
+
MULTIPLE_LEGAL_CONTACTS_PROVIDED: {
|
|
115
|
+
message: `The client must have only one legal contact. Please ensure only one contact is set to 'Legal'.`,
|
|
116
|
+
},
|
|
117
|
+
BILLING_CONTACT_MUST_BE_PROVIDED: {
|
|
118
|
+
message: `The client must have a billing contact. Please set the contact type to 'Billing'.`,
|
|
119
|
+
},
|
|
120
|
+
MULTIPLE_BILLING_CONTACTS_PROVIDED: {
|
|
121
|
+
message: `The client must have only one billing contact. Please ensure only one contact is set to 'Billing'.`,
|
|
122
|
+
},
|
|
123
|
+
PRIMARY_CONTACT_MUST_BE_PROVIDED: {
|
|
124
|
+
message: `The client must have a primary contact. Please set the contact type to 'Primary'.`,
|
|
125
|
+
},
|
|
126
|
+
MULTIPLE_PRIMARY_CONTACTS_PROVIDED: {
|
|
127
|
+
message: `The client must have only one primary contact. Please ensure only one contact is set to 'Primary'.`,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
102
130
|
CLIENT: {
|
|
103
131
|
INVALID_REQUEST: {
|
|
104
132
|
message: 'Missing client id in request',
|
|
@@ -497,4 +525,14 @@ export const VALIDATION_MESSAGES = {
|
|
|
497
525
|
message: 'Invalid columnOrder values',
|
|
498
526
|
},
|
|
499
527
|
},
|
|
528
|
+
OUTSIDE_PROVIDER: {
|
|
529
|
+
INVALID_TYPE: {
|
|
530
|
+
message: `Outside provider type with id '{id}' does not exist`,
|
|
531
|
+
params: ['id'],
|
|
532
|
+
},
|
|
533
|
+
SAME_TYPE_TIMELINE_OVERLAP: {
|
|
534
|
+
message: `The client already has {outsideProviderType} starting from {startDate}. Your entry overlaps with that time. Please adjust the dates so they don't overlap.`,
|
|
535
|
+
params: ['outsideProviderType', 'startDate'],
|
|
536
|
+
},
|
|
537
|
+
},
|
|
500
538
|
} as const;
|