@t4h.framework/orm 0.5.0 → 0.6.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/CHANGELOG.md ADDED
@@ -0,0 +1,46 @@
1
+ # @t4h.framework/orm
2
+
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#133](https://github.com/tech4humans-brasil/framework/pull/133) [`5496b21`](https://github.com/tech4humans-brasil/framework/commit/5496b214afe761c671f94305a252cbb35c2145a1) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Turn orm entity options required
8
+
9
+ ## 0.6.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Internal dependency updates
14
+
15
+ ## 0.5.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Update skills ([`6d7e7bc`](https://github.com/tech4humans-brasil/framework/commit/6d7e7bca0c780a9c53a0c9e5aa0a865c5af67959))
20
+
21
+ ## 0.4.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Internal dependency updates
26
+
27
+ ## 0.3.0
28
+
29
+ ### Minor Changes
30
+
31
+ - Adds orm package ([`77666a7`](https://github.com/tech4humans-brasil/framework/commit/77666a7423fd56b31bbe72464acc1992c4a5482f))
32
+ - Introduce async activity advance and bootstrap ([#19](https://github.com/tech4humans-brasil/framework/pull/19))
33
+ - Adds support to index ([#76](https://github.com/tech4humans-brasil/framework/pull/76))
34
+ - Adds .ai/skills in packages ([#88](https://github.com/tech4humans-brasil/framework/pull/88))
35
+
36
+ ### Patch Changes
37
+
38
+ - Rename activity claim to claim ([`281d700`](https://github.com/tech4humans-brasil/framework/commit/281d7008bd5539ab0b701e755f053d031b332aa8))
39
+ - Rename activity history to history ([`4eaad08`](https://github.com/tech4humans-brasil/framework/commit/4eaad08468815bcdea14c36468c7904655715406))
40
+ - Fix all tests ([`0270832`](https://github.com/tech4humans-brasil/framework/commit/02708320bd39ffef87f6b46c2e57a1ccccb4ceb0))
41
+ - Fix eslint warnings and errors ([`9a7eeb5`](https://github.com/tech4humans-brasil/framework/commit/9a7eeb52d81a5e99c44819e8271db7f35b6c5195))
42
+ - Adds github workflow to run, build, tests and lint ([#18](https://github.com/tech4humans-brasil/framework/pull/18))
43
+ - Adds readme ([`a3738e6`](https://github.com/tech4humans-brasil/framework/commit/a3738e643232ff1135230f8ca3408db4d7ecc97c))
44
+ - Update package metadata and author information across multiple packages ([`2ca73df`](https://github.com/tech4humans-brasil/framework/commit/2ca73df42dc63c86ed44717b50d5402fca45b4e7))
45
+ - Improve repository info ([`1fad92d`](https://github.com/tech4humans-brasil/framework/commit/1fad92d959b804189fd1486d047115995ac81eb0))
46
+ - Fix resolve module resolution issues in check-types ([`c97a0d2`](https://github.com/tech4humans-brasil/framework/commit/c97a0d2747f38e561cc5c7d592b20de0459bc1ee))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tech for humans
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  export interface EntityOptions {
2
- tableName?: string;
2
+ tableName: string;
3
3
  }
4
- export declare function Entity(options?: EntityOptions): ClassDecorator;
4
+ export declare function Entity(options: EntityOptions): ClassDecorator;
5
5
  //# sourceMappingURL=Entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../src/decorators/Entity.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,cAAc,CAM9D"}
1
+ {"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../src/decorators/Entity.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAM7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../src/decorators/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAMjD,MAAM,UAAU,MAAM,CAAC,OAAuB;IAC5C,OAAO,MAAM,CAAC,EAAE;QACd,MAAM,QAAQ,GAAG,iBAAiB,CAAC,MAAkC,CAAC,CAAA;QAEtE,QAAQ,CAAC,SAAS,GAAG,OAAO,EAAE,SAAS,CAAA;IACzC,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../src/decorators/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAMjD,MAAM,UAAU,MAAM,CAAC,OAAsB;IAC3C,OAAO,MAAM,CAAC,EAAE;QACd,MAAM,QAAQ,GAAG,iBAAiB,CAAC,MAAkC,CAAC,CAAA;QAEtE,QAAQ,CAAC,SAAS,GAAG,OAAO,EAAE,SAAS,CAAA;IACzC,CAAC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/orm",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "ORM module for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/orm",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -35,12 +35,12 @@
35
35
  "reflect-metadata": "^0.2.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@t4h.framework/core": "^0.8.0",
38
+ "@t4h.framework/core": "^0.9.0",
39
39
  "typescript": "^5.9.3",
40
40
  "vitest": "^4.0.18"
41
41
  },
42
42
  "peerDependencies": {
43
- "@t4h.framework/core": "^0.8.0"
43
+ "@t4h.framework/core": "^0.9.0"
44
44
  },
45
45
  "packageManager": "yarn@4.12.0",
46
46
  "engines": {
@@ -1,3 +0,0 @@
1
- import type { EntityMetadata, PropertyMetadata } from '../../decorators/metadata.js';
2
- export declare function createEntityMetadata(properties: Record<string, Omit<PropertyMetadata, 'name'>>): EntityMetadata;
3
- //# sourceMappingURL=create-entity-metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-entity-metadata.d.ts","sourceRoot":"","sources":["../../../src/constraints/__tests__/create-entity-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,8BAA8B,CAAA;AAErC,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,GACzD,cAAc,CAUhB"}
@@ -1,10 +0,0 @@
1
- export function createEntityMetadata(properties) {
2
- return {
3
- indexes: [],
4
- properties: new Map(Object.entries(properties).map(([name, meta]) => [
5
- name,
6
- { name, indexes: [], ...meta },
7
- ])),
8
- };
9
- }
10
- //# sourceMappingURL=create-entity-metadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-entity-metadata.js","sourceRoot":"","sources":["../../../src/constraints/__tests__/create-entity-metadata.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,oBAAoB,CAClC,UAA0D;IAE1D,OAAO;QACL,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,IAAI,GAAG,CACjB,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;YAC/C,IAAI;YACJ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE;SAC/B,CAAC,CACH;KACF,CAAA;AACH,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { Serializable } from '@t4h.framework/core';
2
- import type { EntityMetadata, SerializedRow } from '../orm.js';
3
- import type { FindWhere } from '../typings/FindWhere.js';
4
- interface AssertUniqueConstraintOptions<T> {
5
- keys?: string[];
6
- validator: (where: FindWhere<T>) => Promise<unknown>;
7
- isUnchanged?: (name: string, value: Serializable) => boolean;
8
- }
9
- export declare function assertUniqueConstraint<T>(rows: SerializedRow[], entity: EntityMetadata, options: AssertUniqueConstraintOptions<T>): Promise<void>;
10
- export {};
11
- //# sourceMappingURL=assert-unique-constraint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-unique-constraint.d.ts","sourceRoot":"","sources":["../../src/constraints/assert-unique-constraint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGvD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,UAAU,6BAA6B,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACpD,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAA;CAC7D;AA6BD,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,IAAI,EAAE,aAAa,EAAE,EACrB,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,6BAA6B,CAAC,CAAC,CAAC,iBA6B1C"}
@@ -1,41 +0,0 @@
1
- import { ConstraintError } from '../errors/ConstraintError.js';
2
- function assertUniqueWithinBatch(rows, entity, keys) {
3
- entity.properties.entries().forEach(([name, meta]) => {
4
- if (keys && !keys.includes(name))
5
- return;
6
- if (!meta.unique)
7
- return;
8
- const seen = new Set();
9
- rows.forEach(row => {
10
- const value = row[name];
11
- if (value === undefined || value === null)
12
- return;
13
- if (seen.has(value))
14
- throw new ConstraintError(`Unique constraint violation for property "${name}" with value "${value}" (duplicate in batch)`);
15
- seen.add(value);
16
- });
17
- });
18
- }
19
- export async function assertUniqueConstraint(rows, entity, options) {
20
- assertUniqueWithinBatch(rows, entity, options?.keys);
21
- await Promise.all(rows.map(async (row) => {
22
- for (const [name, meta] of entity.properties.entries()) {
23
- if (options?.keys && !options.keys.includes(name))
24
- continue;
25
- if (!meta.unique)
26
- continue;
27
- const value = row[name];
28
- if (value === undefined || value === null)
29
- continue;
30
- if (options.isUnchanged?.(name, value))
31
- continue;
32
- const result = await options.validator({
33
- [name]: value,
34
- });
35
- if (result === undefined || result === null)
36
- continue;
37
- throw new ConstraintError(`Unique constraint violation for property "${name}" with value "${value}"`);
38
- }
39
- }));
40
- }
41
- //# sourceMappingURL=assert-unique-constraint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-unique-constraint.js","sourceRoot":"","sources":["../../src/constraints/assert-unique-constraint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAU9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AC,MAAM;gBAAE,SAAQ;YAE1B,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAA;YAEvB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;gBAAE,SAAQ;YAEnD,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;gBAAE,SAAQ;YAEhD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC;gBACrC,CAAC,IAAI,CAAC,EAAE,KAAK;aACE,CAAC,CAAA;YAElB,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI;gBAAE,SAAQ;YAErD,MAAM,IAAI,eAAe,CACvB,6CAA6C,IAAI,iBAAiB,KAAK,GAAG,CAC3E,CAAA;QACH,CAAC;IACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ClaimProvider } from '@t4h.framework/core';
2
- import { ORMClaim } from '../claims/ORMClaim.js';
3
- export declare function createInMemoryORMClaim(): ClaimProvider<ORMClaim<string>>;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGxD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAUhD,wBAAgB,sBAAsB,IAAI,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CA2DxE"}
@@ -1,52 +0,0 @@
1
- import { randomUUID } from 'node:crypto';
2
- import { mockClaim } from '@t4h.framework/core/testing';
3
- import { ORMClaim } from '../claims/ORMClaim.js';
4
- export function createInMemoryORMClaim() {
5
- const tables = new Map();
6
- const table = (name) => {
7
- let rows = tables.get(name);
8
- if (!rows) {
9
- rows = new Map();
10
- tables.set(name, rows);
11
- }
12
- return rows;
13
- };
14
- const claim = {
15
- find(input) {
16
- const rows = [...table(input.table).values()];
17
- return rows
18
- .filter(row => matchesWhere(row, input.where))
19
- .slice(input.offset ?? 0, input.limit ? (input.offset ?? 0) + input.limit : undefined)
20
- .map(row => row.id);
21
- },
22
- create(input) {
23
- const rows = table(input.table);
24
- return input.data.map(row => {
25
- const id = String(row.id ?? randomUUID());
26
- const snapshot = { ...row, id };
27
- rows.set(id, snapshot);
28
- return id;
29
- });
30
- },
31
- getSnapshot(input) {
32
- return table(input.table).get(input.ref) ?? null;
33
- },
34
- update(input) {
35
- const rows = table(input.table);
36
- const current = rows.get(input.ref);
37
- if (!current)
38
- return;
39
- rows.set(input.ref, { ...current, ...input.data });
40
- },
41
- remove(input) {
42
- table(input.table).delete(input.ref);
43
- },
44
- };
45
- return mockClaim(ORMClaim, claim);
46
- }
47
- function matchesWhere(row, where) {
48
- if (!where)
49
- return true;
50
- return Object.entries(where).every(([key, expected]) => row[key] === expected);
51
- }
52
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAUhD,MAAM,UAAU,sBAAsB;IACpC,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsC,CAAA;IAE5D,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE;QAC7B,IAAI,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QAE3B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,GAAG,IAAI,GAAG,EAAE,CAAA;YAChB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACxB,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC,CAA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