@datrix/core 0.1.1 → 0.1.2
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +22 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1036,13 +1036,16 @@ function throwInvalidQueryType(receivedType) {
|
|
|
1036
1036
|
});
|
|
1037
1037
|
}
|
|
1038
1038
|
function throwSchemaNotFound2(modelName) {
|
|
1039
|
-
throw new DatrixQueryBuilderError(
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1039
|
+
throw new DatrixQueryBuilderError(
|
|
1040
|
+
`Schema not found for model: ${modelName}`,
|
|
1041
|
+
{
|
|
1042
|
+
code: "SCHEMA_NOT_FOUND",
|
|
1043
|
+
component: "builder",
|
|
1044
|
+
context: { modelName },
|
|
1045
|
+
suggestion: `Check that '${modelName}' is registered in the schema registry`,
|
|
1046
|
+
received: modelName
|
|
1047
|
+
}
|
|
1048
|
+
);
|
|
1046
1049
|
}
|
|
1047
1050
|
function throwInvalidFields(component, invalidFields, availableFields) {
|
|
1048
1051
|
const fieldList = invalidFields.join(", ");
|
|
@@ -6825,10 +6828,13 @@ var ForgeMigrationHistory = class {
|
|
|
6825
6828
|
*/
|
|
6826
6829
|
async isApplied(version) {
|
|
6827
6830
|
try {
|
|
6828
|
-
const count = await this.datrix.raw.count(
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6831
|
+
const count = await this.datrix.raw.count(
|
|
6832
|
+
this.modelName,
|
|
6833
|
+
{
|
|
6834
|
+
version,
|
|
6835
|
+
status: "completed"
|
|
6836
|
+
}
|
|
6837
|
+
);
|
|
6832
6838
|
return count > 0;
|
|
6833
6839
|
} catch (error) {
|
|
6834
6840
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -8575,7 +8581,12 @@ var DEFAULT_API_AUTH_CONFIG = {
|
|
|
8575
8581
|
register: "/auth/register",
|
|
8576
8582
|
logout: "/auth/logout",
|
|
8577
8583
|
me: "/auth/me",
|
|
8584
|
+
forgotPassword: "/auth/forgot-password",
|
|
8585
|
+
resetPassword: "/auth/reset-password",
|
|
8578
8586
|
disableRegister: false
|
|
8587
|
+
},
|
|
8588
|
+
passwordReset: {
|
|
8589
|
+
tokenExpirySeconds: 3600
|
|
8579
8590
|
}
|
|
8580
8591
|
};
|
|
8581
8592
|
|