@kitledger/core 0.0.9 → 0.0.10
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/entities.d.ts +1 -7
- package/dist/entities.js +1 -9
- package/dist/migrations/meta/0003_snapshot.json +659 -693
- package/dist/migrations/meta/0004_snapshot.json +659 -693
- package/dist/migrations/meta/_journal.json +40 -40
- package/dist/transactions.d.ts +1 -4
- package/dist/transactions.js +1 -9
- package/dist/units.d.ts +1 -4
- package/dist/units.js +1 -9
- package/dist/worker.d.ts +11 -0
- package/dist/worker.js +18 -0
- package/package.json +1 -1
- package/dist/config.d.ts +0 -28
- package/dist/config.js +0 -48
package/dist/entities.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { Field } from "./fields.js";
|
|
2
|
-
|
|
3
|
-
* Enumeration for the status of an entity model.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum EntityModelStatus {
|
|
6
|
-
ACTIVE = 0,
|
|
7
|
-
INACTIVE = 1
|
|
8
|
-
}
|
|
2
|
+
export type EntityModelStatus = "ACTIVE" | "INACTIVE";
|
|
9
3
|
/**
|
|
10
4
|
* Infers the meta type of an entity based on its fields.
|
|
11
5
|
*
|
package/dist/entities.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enumeration for the status of an entity model.
|
|
3
|
-
*/
|
|
4
|
-
export var EntityModelStatus;
|
|
5
|
-
(function (EntityModelStatus) {
|
|
6
|
-
EntityModelStatus[EntityModelStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
7
|
-
EntityModelStatus[EntityModelStatus["INACTIVE"] = 1] = "INACTIVE";
|
|
8
|
-
})(EntityModelStatus || (EntityModelStatus = {}));
|
|
9
1
|
/**
|
|
10
2
|
* Defines an entity model with the provided options.
|
|
11
3
|
*
|
|
@@ -19,7 +11,7 @@ export var EntityModelStatus;
|
|
|
19
11
|
export function defineEntityModel(options) {
|
|
20
12
|
return {
|
|
21
13
|
...options,
|
|
22
|
-
status: options.status ??
|
|
14
|
+
status: options.status ?? "ACTIVE",
|
|
23
15
|
fields: options.fields,
|
|
24
16
|
hooks: options.hooks,
|
|
25
17
|
};
|