From e882be7a85d8d487951dee03782f886ad143530b Mon Sep 17 00:00:00 2001 From: "harshitha.d" Date: Fri, 7 Nov 2025 18:06:55 +0530 Subject: [PATCH 1/2] version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 353e2a4..059797e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/datasync-mongodb-sdk", - "version": "1.0.11", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/datasync-mongodb-sdk", - "version": "1.0.11", + "version": "1.0.12", "license": "MIT", "dependencies": { "lodash": "^4.17.21", diff --git a/package.json b/package.json index fa2d582..75020dd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Contentstack Ecosystem ", "name": "@contentstack/datasync-mongodb-sdk", - "version": "1.0.11", + "version": "1.0.12", "description": "Mongodb query wrapper around contents synced via @contentstack/content-store-mongodb", "main": "dist/index.js", "scripts": { From 690eb77afb006d3fefca868b31e5926a66974dcf Mon Sep 17 00:00:00 2001 From: "harshitha.d" Date: Fri, 7 Nov 2025 18:07:53 +0530 Subject: [PATCH 2/2] Merge branch 'development' into fix/version-bump --- typings/messages.d.ts | 68 +++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/typings/messages.d.ts b/typings/messages.d.ts index 879a86e..0e1ed2a 100644 --- a/typings/messages.d.ts +++ b/typings/messages.d.ts @@ -1,41 +1,39 @@ /** - * Type definitions for centralized error messages and warnings + * 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: string; - readonly INVALID_ASCENDING_PARAMS: string; - readonly INVALID_DESCENDING_PARAMS: string; - readonly INVALID_LANGUAGE_PARAMS: string; - readonly INVALID_AND_PARAMS: string; - readonly INVALID_OR_PARAMS: string; - readonly INVALID_LESSTHAN_PARAMS: string; - readonly INVALID_LESSTHAN_OR_EQUAL_PARAMS: string; - readonly INVALID_GREATERTHAN_PARAMS: string; - readonly INVALID_GREATERTHAN_OR_EQUAL_PARAMS: string; - readonly INVALID_NOTEQUAL_PARAMS: string; - readonly INVALID_CONTAINED_IN_PARAMS: string; - readonly INVALID_NOT_CONTAINED_IN_PARAMS: string; - readonly INVALID_EXISTS_PARAMS: string; - readonly INVALID_NOT_EXISTS_PARAMS: string; - readonly MISSING_CONTENT_TYPE_UID: string; - readonly MISSING_CONTENT_TYPE_FOR_ENTRY: string; - readonly MISSING_CONTENT_TYPE_FOR_ENTRIES: string; - readonly INVALID_LIMIT_VALUE: string; - readonly INVALID_SKIP_VALUE: string; - readonly INVALID_ONLY_PARAMS: string; - readonly INVALID_EXCEPT_PARAMS: string; - readonly INVALID_REGEX_PARAMS: string; - readonly INVALID_TAGS_PARAMS: string; - readonly INVALID_WHERE_PARAMS: string; - readonly INVALID_QUERY_REFERENCES_PARAMS: string; - readonly INVALID_INCLUDE_PARAMS: string; - readonly INVALID_QUERY: string; - readonly INVALID_QUERIES: string; + 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: string; + readonly SLOW_INCLUDE_REFERENCES: ".includeReferences(...) is a relatively slow query. Consider limiting the depth or using .include() for specific references"; }; -