@plyaz/types 1.14.6 → 1.14.8
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/api/index.cjs +619 -1
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.js +619 -1
- package/dist/api/index.js.map +1 -1
- package/dist/db/config.types.d.ts +3 -1
- package/dist/db/{adapter.d.ts → dbEnums.d.ts} +66 -0
- package/dist/db/index.cjs +47 -12
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.ts +1 -3
- package/dist/db/index.js +43 -13
- package/dist/db/index.js.map +1 -1
- package/dist/db/replica.types.d.ts +1 -1
- package/dist/errors/codes.d.ts +66 -0
- package/dist/errors/index.cjs +619 -1
- package/dist/errors/index.cjs.map +1 -1
- package/dist/errors/index.js +619 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/index.cjs +687 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +680 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/db/databaseEventsType.d.ts +0 -9
- package/dist/db/replicaStrategy.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare enum DATABASE_EVENT_TYPE {
|
|
2
|
-
BeforeQuery = "beforeQuery",
|
|
3
|
-
AfterQuery = "afterQuery",
|
|
4
|
-
QueryError = "queryError",
|
|
5
|
-
BeforeTransaction = "beforeTransaction",
|
|
6
|
-
AfterTransaction = "afterTransaction",
|
|
7
|
-
TransactionRollback = "transactionRollback",
|
|
8
|
-
HealthChange = "healthChange"
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strategy options for replica selection.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum REPLICA_STRATEGY {
|
|
5
|
-
/** Always use primary database */
|
|
6
|
-
PRIMARY = "primary",
|
|
7
|
-
/** Use any available replica */
|
|
8
|
-
REPLICA = "replica",
|
|
9
|
-
/** Use geographically closest replica */
|
|
10
|
-
CLOSEST = "closest",
|
|
11
|
-
/** Use fastest responding replica */
|
|
12
|
-
FASTEST = "fastest"
|
|
13
|
-
}
|