@loomcore/common 0.0.36 → 0.0.38

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 +1,2 @@
1
1
  export * from './sort-direction.type.js';
2
+ export * from './app.types.js';
@@ -1 +1,2 @@
1
1
  export * from './sort-direction.type.js';
2
+ export * from './app.types.js';
@@ -1 +1,2 @@
1
- export declare const IdSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
1
+ export declare let IdSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
2
+ export declare function setIdSchema(schema: typeof IdSchema): void;
@@ -1,5 +1,8 @@
1
1
  import { Type } from '@sinclair/typebox';
2
- export const IdSchema = Type.Union([
2
+ export let IdSchema = Type.Union([
3
3
  Type.String({ title: 'ID' }),
4
4
  Type.Number({ title: 'ID', integer: true, minimum: 1 })
5
5
  ]);
6
+ export function setIdSchema(schema) {
7
+ IdSchema = schema;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcore/common",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "private": false,
5
5
  "description": "Loom Core Models- common models, interfaces, types, and utils for Loom Core. All things common to both api and client apps.",
6
6
  "scripts": {