fluxor-cloud-db 1.0.0 → 1.0.1
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.
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +2 -2
- package/src/index.ts +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -319,6 +319,15 @@ declare const inList: (values: unknown[]) => Condition;
|
|
|
319
319
|
/** Alias for noneOf */
|
|
320
320
|
declare const notInList: (values: unknown[]) => Condition;
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Base error type for database operations
|
|
324
|
+
*/
|
|
325
|
+
declare class DatabaseAdapterError extends Error {
|
|
326
|
+
readonly code: string;
|
|
327
|
+
readonly details?: Record<string, any> | undefined;
|
|
328
|
+
constructor(message: string, code: string, details?: Record<string, any> | undefined);
|
|
329
|
+
}
|
|
330
|
+
|
|
322
331
|
/**
|
|
323
332
|
* Resolves the {@link DynamoService} instance from the service container.
|
|
324
333
|
*
|
|
@@ -344,4 +353,4 @@ declare const useDynamo: () => DynamoService;
|
|
|
344
353
|
*/
|
|
345
354
|
declare const useMongo: () => MongoService;
|
|
346
355
|
|
|
347
|
-
export { type DynamoConfig, DynamoService, type MongoConfig, MongoService, anyOf, between, eq, equals, exists, gt, gte, inList, like, lt, lte, neq, noneOf, notEquals, notInList, startsWith, useDynamo, useMongo };
|
|
356
|
+
export { type BatchResult, DatabaseAdapterError, type DynamoConfig, DynamoService, type MongoConfig, MongoService, type PaginatedResult, type QueryCondition, type QueryOperator, type QueryOptions, type UpdateClause, type WhereClause, anyOf, between, eq, equals, exists, gt, gte, inList, like, lt, lte, neq, noneOf, notEquals, notInList, startsWith, useDynamo, useMongo };
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,15 @@ declare const inList: (values: unknown[]) => Condition;
|
|
|
319
319
|
/** Alias for noneOf */
|
|
320
320
|
declare const notInList: (values: unknown[]) => Condition;
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Base error type for database operations
|
|
324
|
+
*/
|
|
325
|
+
declare class DatabaseAdapterError extends Error {
|
|
326
|
+
readonly code: string;
|
|
327
|
+
readonly details?: Record<string, any> | undefined;
|
|
328
|
+
constructor(message: string, code: string, details?: Record<string, any> | undefined);
|
|
329
|
+
}
|
|
330
|
+
|
|
322
331
|
/**
|
|
323
332
|
* Resolves the {@link DynamoService} instance from the service container.
|
|
324
333
|
*
|
|
@@ -344,4 +353,4 @@ declare const useDynamo: () => DynamoService;
|
|
|
344
353
|
*/
|
|
345
354
|
declare const useMongo: () => MongoService;
|
|
346
355
|
|
|
347
|
-
export { type DynamoConfig, DynamoService, type MongoConfig, MongoService, anyOf, between, eq, equals, exists, gt, gte, inList, like, lt, lte, neq, noneOf, notEquals, notInList, startsWith, useDynamo, useMongo };
|
|
356
|
+
export { type BatchResult, DatabaseAdapterError, type DynamoConfig, DynamoService, type MongoConfig, MongoService, type PaginatedResult, type QueryCondition, type QueryOperator, type QueryOptions, type UpdateClause, type WhereClause, anyOf, between, eq, equals, exists, gt, gte, inList, like, lt, lte, neq, noneOf, notEquals, notInList, startsWith, useDynamo, useMongo };
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
28
|
// src/index.ts
|
|
29
29
|
var index_exports = {};
|
|
30
30
|
__export(index_exports, {
|
|
31
|
+
DatabaseAdapterError: () => DatabaseAdapterError,
|
|
31
32
|
DynamoService: () => DynamoService,
|
|
32
33
|
MongoService: () => MongoService,
|
|
33
34
|
anyOf: () => anyOf,
|
|
@@ -1821,6 +1822,7 @@ var useMongo = () => {
|
|
|
1821
1822
|
};
|
|
1822
1823
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1823
1824
|
0 && (module.exports = {
|
|
1825
|
+
DatabaseAdapterError,
|
|
1824
1826
|
DynamoService,
|
|
1825
1827
|
MongoService,
|
|
1826
1828
|
anyOf,
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluxor-cloud-db",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Cloud-agnostic event framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-dynamodb": "^3.1012.0",
|
|
27
27
|
"@aws-sdk/lib-dynamodb": "^3.1012.0",
|
|
28
28
|
"@types/mongodb": "^4.0.6",
|
|
29
|
-
"fluxor-cloud": "^1.0.
|
|
29
|
+
"fluxor-cloud": "^1.0.63",
|
|
30
30
|
"mongodb": "^7.1.0",
|
|
31
31
|
"reflect-metadata": "^0.2.2"
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -36,4 +36,6 @@ export const useMongo = (): MongoService => {
|
|
|
36
36
|
export * from './dynamo/dynamo';
|
|
37
37
|
export * from './dynamo/dynamo.types'
|
|
38
38
|
export * from './mongo/mongo';
|
|
39
|
-
export * from './fluentapi'
|
|
39
|
+
export * from './fluentapi'
|
|
40
|
+
export * from './types/query'
|
|
41
|
+
export * from './types/error'
|