@aeriajs/types 0.0.125 → 0.0.127

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/config.d.ts CHANGED
@@ -8,6 +8,7 @@ export type ServerOptions = {
8
8
  host?: string;
9
9
  port?: number;
10
10
  enableLogging?: boolean;
11
+ noWarmup?: boolean;
11
12
  };
12
13
  export type ApiConfig = {
13
14
  name?: string;
@@ -16,7 +17,6 @@ export type ApiConfig = {
16
17
  publicUrl?: string;
17
18
  webPublicUrl?: string;
18
19
  defaultPaginationLimit?: number;
19
- noWarmup?: boolean;
20
20
  server?: ServerOptions;
21
21
  database?: {
22
22
  mongodbUrl?: string;
package/dist/schema.d.ts CHANGED
@@ -16,6 +16,8 @@ type TestType<T> = T & Record<string, unknown>;
16
16
  export type InferProperty<T> = T extends TestType<{
17
17
  format: 'date' | 'date-time';
18
18
  }> ? Date : T extends TestType<{
19
+ format: 'objectid';
20
+ }> ? ObjectId : T extends TestType<{
19
21
  enum: ReadonlyArray<infer K>;
20
22
  }> ? K : T extends TestType<{
21
23
  type: 'string';
@@ -12,6 +12,7 @@ export declare const PropertyValidationErrorCode: {
12
12
  readonly LessItemsExpected: "LESS_ITEMS_EXPECTED";
13
13
  readonly NumericConstraint: "NUMERIC_CONSTRAINT";
14
14
  readonly StringConstraint: "STRING_CONSTRAINT";
15
+ readonly ReferenceConstraint: "REFERENCE_CONSTRAINT";
15
16
  };
16
17
  export declare const TraverseError: {
17
18
  readonly InvalidDocumentId: "INVALID_DOCUMENT_ID";
@@ -15,6 +15,7 @@ exports.PropertyValidationErrorCode = {
15
15
  LessItemsExpected: 'LESS_ITEMS_EXPECTED',
16
16
  NumericConstraint: 'NUMERIC_CONSTRAINT',
17
17
  StringConstraint: 'STRING_CONSTRAINT',
18
+ ReferenceConstraint: 'REFERENCE_CONSTRAINT',
18
19
  };
19
20
  exports.TraverseError = {
20
21
  InvalidDocumentId: 'INVALID_DOCUMENT_ID',
@@ -12,7 +12,8 @@ export const PropertyValidationErrorCode = {
12
12
  MoreItemsExpected: "MORE_ITEMS_EXPECTED",
13
13
  LessItemsExpected: "LESS_ITEMS_EXPECTED",
14
14
  NumericConstraint: "NUMERIC_CONSTRAINT",
15
- StringConstraint: "STRING_CONSTRAINT"
15
+ StringConstraint: "STRING_CONSTRAINT",
16
+ ReferenceConstraint: "REFERENCE_CONSTRAINT"
16
17
  };
17
18
  export const TraverseError = {
18
19
  InvalidDocumentId: "INVALID_DOCUMENT_ID",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.125",
3
+ "version": "0.0.127",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",