@loomcore/common 0.0.32 → 0.0.33

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.
@@ -1,8 +1,8 @@
1
1
  export interface IEntity {
2
- _id: string;
3
- _orgId?: string;
2
+ _id: string | number;
3
+ _orgId?: string | number;
4
4
  }
5
5
  export declare const EntitySchema: import("@sinclair/typebox").TObject<{
6
- _id: import("@sinclair/typebox").TString;
7
- _orgId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ _id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
7
+ _orgId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>>;
8
8
  }>;
@@ -1,5 +1,5 @@
1
1
  import { Type } from '@sinclair/typebox';
2
2
  export const EntitySchema = Type.Object({
3
- _id: Type.String({ title: 'ID' }),
4
- _orgId: Type.Optional(Type.String({ title: 'Organization ID' }))
3
+ _id: Type.Union([Type.String({ title: 'ID' }), Type.Number({ title: 'ID' })]),
4
+ _orgId: Type.Optional(Type.Union([Type.String({ title: 'Organization ID' }), Type.Number({ title: 'Organization ID' })]))
5
5
  });
package/package.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "name": "@loomcore/common",
3
- "version": "0.0.32",
4
- "private": false,
5
- "description": "Loom Core Models- common models, interfaces, types, and utils for Loom Core. All things common to both api and client apps.",
6
- "scripts": {
7
- "clean": "rm -rf dist",
8
- "tsc": "tsc --project tsconfig.prod.json",
9
- "build": "npm-run-all -s clean tsc",
10
- "add": "git add .",
11
- "commit": "git commit -m \"Updates\"",
12
- "patch": "npm version patch",
13
- "push": "git push",
14
- "gar-login": "npx --yes google-artifactregistry-auth",
15
- "publishMe": "npm publish --access public",
16
- "pub": "npm-run-all -s add commit patch build push publishMe",
17
- "auth-and-pub": "npm-run-all -s add commit patch build push gar-login publishMe",
18
- "test": "cross-env NODE_ENV=test vitest run",
19
- "test:ci": "cross-env NODE_ENV=test vitest run --reporter=json --outputFile=test-results.json",
20
- "test:watch": "cross-env NODE_ENV=test vitest"
21
- },
22
- "keywords": [],
23
- "author": "Tim Hardy",
24
- "license": "Apache-2.0",
25
- "main": "dist/index.js",
26
- "type": "module",
27
- "types": "dist/index.d.ts",
28
- "files": [
29
- "dist/**/*"
30
- ],
31
- "exports": {
32
- "./errors": "./dist/errors/index.js",
33
- "./models": "./dist/models/index.js",
34
- "./types": "./dist/types/index.js",
35
- "./utils": "./dist/utils/index.js",
36
- "./validation": "./dist/validation/index.js"
37
- },
38
- "dependencies": {
39
- "decimal.js": "^10.5.0"
40
- },
41
- "peerDependencies": {
42
- "@types/node": "^24.10.2",
43
- "@sinclair/typebox": "0.34.33"
44
- },
45
- "devDependencies": {
46
- "cross-env": "^7.0.3",
47
- "npm-run-all": "^4.1.5",
48
- "typescript": "^5.8.3",
49
- "vitest": "^3.0.9"
50
- }
51
- }
1
+ {
2
+ "name": "@loomcore/common",
3
+ "version": "0.0.33",
4
+ "private": false,
5
+ "description": "Loom Core Models- common models, interfaces, types, and utils for Loom Core. All things common to both api and client apps.",
6
+ "scripts": {
7
+ "clean": "rm -rf dist",
8
+ "tsc": "tsc --project tsconfig.prod.json",
9
+ "build": "npm-run-all -s clean tsc",
10
+ "add": "git add .",
11
+ "commit": "git commit -m \"Updates\"",
12
+ "patch": "npm version patch",
13
+ "push": "git push",
14
+ "gar-login": "npx --yes google-artifactregistry-auth",
15
+ "publishMe": "npm publish --access public",
16
+ "pub": "npm-run-all -s add commit patch build push publishMe",
17
+ "auth-and-pub": "npm-run-all -s add commit patch build push gar-login publishMe",
18
+ "test": "cross-env NODE_ENV=test vitest run",
19
+ "test:ci": "cross-env NODE_ENV=test vitest run --reporter=json --outputFile=test-results.json",
20
+ "test:watch": "cross-env NODE_ENV=test vitest"
21
+ },
22
+ "keywords": [],
23
+ "author": "Tim Hardy",
24
+ "license": "Apache-2.0",
25
+ "main": "dist/index.js",
26
+ "type": "module",
27
+ "types": "dist/index.d.ts",
28
+ "files": [
29
+ "dist/**/*"
30
+ ],
31
+ "exports": {
32
+ "./errors": "./dist/errors/index.js",
33
+ "./models": "./dist/models/index.js",
34
+ "./types": "./dist/types/index.js",
35
+ "./utils": "./dist/utils/index.js",
36
+ "./validation": "./dist/validation/index.js"
37
+ },
38
+ "dependencies": {
39
+ "decimal.js": "^10.5.0"
40
+ },
41
+ "peerDependencies": {
42
+ "@types/node": "^24.10.2",
43
+ "@sinclair/typebox": "0.34.33"
44
+ },
45
+ "devDependencies": {
46
+ "cross-env": "^7.0.3",
47
+ "npm-run-all": "^4.1.5",
48
+ "typescript": "^5.8.3",
49
+ "vitest": "^3.0.9"
50
+ }
51
+ }