-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmessages.d.ts
More file actions
39 lines (39 loc) · 3.74 KB
/
messages.d.ts
File metadata and controls
39 lines (39 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Centralized error messages and warnings for the DataSync MongoDB SDK
* This file contains all user-facing messages for consistency and maintainability
*/
export declare const ErrorMessages: {
readonly INVALID_MONGODB_URI: (uri: any) => string;
readonly INVALID_DBNAME: "Content store dbName should be of type string and not empty";
readonly INVALID_ASCENDING_PARAMS: "Invalid parameters for .ascending(). Expected a valid string field name";
readonly INVALID_DESCENDING_PARAMS: "Invalid parameters for .descending(). Expected a valid string field name";
readonly INVALID_LANGUAGE_PARAMS: "Invalid parameters for .language(). Expected a valid language code string";
readonly INVALID_AND_PARAMS: "Invalid parameters for .and(). Expected an array of query objects";
readonly INVALID_OR_PARAMS: "Invalid parameters for .or(). Expected an array of query objects";
readonly INVALID_LESSTHAN_PARAMS: "Invalid key or value parameters for .lessThan(). Expected a string key and a value";
readonly INVALID_LESSTHAN_OR_EQUAL_PARAMS: "Invalid key or value parameters for .lessThanOrEqualTo(). Expected a string key and a value";
readonly INVALID_GREATERTHAN_PARAMS: "Invalid key or value parameters for .greaterThan(). Expected a string key and a value";
readonly INVALID_GREATERTHAN_OR_EQUAL_PARAMS: "Invalid key or value parameters for .greaterThanOrEqualTo(). Expected a string key and a value";
readonly INVALID_NOTEQUAL_PARAMS: "Invalid key or value parameters for .notEqualTo(). Expected a string key and a value";
readonly INVALID_CONTAINED_IN_PARAMS: "Invalid key or value parameters for .containedIn(). Expected a string key and an array value";
readonly INVALID_NOT_CONTAINED_IN_PARAMS: "Invalid key or value parameters for .notContainedIn(). Expected a string key and an array value";
readonly INVALID_EXISTS_PARAMS: "Invalid key parameter for .exists(). Expected a valid string field name";
readonly INVALID_NOT_EXISTS_PARAMS: "Invalid key parameter for .notExists(). Expected a valid string field name";
readonly MISSING_CONTENT_TYPE_UID: "Content type UID is required. Please provide a valid content type UID";
readonly MISSING_CONTENT_TYPE_FOR_ENTRY: "Please call .contentType() before .entry()";
readonly MISSING_CONTENT_TYPE_FOR_ENTRIES: "Please call .contentType() before .entries()";
readonly INVALID_LIMIT_VALUE: "Invalid value for .limit(). Expected a positive numeric value";
readonly INVALID_SKIP_VALUE: "Invalid value for .skip(). Expected a non-negative numeric value";
readonly INVALID_ONLY_PARAMS: "Invalid field values for .only(). Expected a non-empty array of field names";
readonly INVALID_EXCEPT_PARAMS: "Invalid field values for .except(). Expected a non-empty array of field names";
readonly INVALID_REGEX_PARAMS: "Invalid field or pattern parameters for .regex(). Expected string values for both field and pattern";
readonly INVALID_TAGS_PARAMS: "Invalid field values for .tags(). Expected an array of tag values";
readonly INVALID_WHERE_PARAMS: "Invalid expression for .where(). Expected a valid expression or function";
readonly INVALID_QUERY_REFERENCES_PARAMS: "Invalid query object for .queryReferences(). Expected a valid query object";
readonly INVALID_INCLUDE_PARAMS: "Invalid reference field path for .include(). Expected a valid string or array of strings";
readonly INVALID_QUERY: "Invalid query provided. Please ensure your query is properly formatted";
readonly INVALID_QUERIES: "Invalid queries provided. Please ensure all queries are properly formatted";
};
export declare const WarningMessages: {
readonly SLOW_INCLUDE_REFERENCES: ".includeReferences(...) is a relatively slow query. Consider limiting the depth or using .include() for specific references";
};