@graphand/core
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -51,3 +51,3 @@ export declare const __CORE_VERSION__: string; | ||
export { Snapshot } from './models/Snapshot.js'; | ||
export { Token } from './models/Token.js'; | ||
export { TokenFactory } from './models/TokenFactory.js'; | ||
export { AuthMethods } from './enums/auth-methods.js'; | ||
@@ -54,0 +54,0 @@ export { AuthProviders } from './enums/auth-providers.js'; |
@@ -78,3 +78,3 @@ import { ConfigureData, Controller, JSONQuery, JSONTypeObject, LoginData, MediaTransformOptions, ModelJSON, RegisterData } from '../types/index.js'; | ||
export declare const controllerOpenapi: Controller; | ||
export declare const controllerGenTokenToken: Controller<{ | ||
export declare const controllerGenTokenFactoryToken: Controller<{ | ||
params: { | ||
@@ -81,0 +81,0 @@ id: string; |
@@ -122,2 +122,40 @@ import { Model } from '../lib/Model.js'; | ||
readonly type: FieldTypes.NESTED; | ||
readonly options: { | ||
readonly strict: true; | ||
readonly fields: { | ||
readonly field: { | ||
readonly type: FieldTypes.TEXT; | ||
}; | ||
readonly min: { | ||
readonly type: FieldTypes.NUMBER; | ||
}; | ||
readonly max: { | ||
readonly type: FieldTypes.NUMBER; | ||
}; | ||
readonly pattern: { | ||
readonly type: FieldTypes.TEXT; | ||
}; | ||
readonly options: { | ||
readonly type: FieldTypes.ARRAY; | ||
readonly options: { | ||
readonly items: { | ||
readonly type: FieldTypes.TEXT; | ||
}; | ||
}; | ||
}; | ||
}; | ||
readonly conditionalFields: { | ||
readonly dependsOn: "$.type"; | ||
readonly mappings: { | ||
readonly required: ["field"]; | ||
readonly unique: ["field"]; | ||
readonly boundaries: ["field", "min", "max"]; | ||
readonly length: ["field", "min", "max"]; | ||
readonly regex: ["field", "pattern", "options"]; | ||
readonly sample: ["field"]; | ||
readonly keyField: ["field"]; | ||
readonly exists: ["field"]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
@@ -124,0 +162,0 @@ }; |
@@ -15,3 +15,3 @@ import { Model } from '../lib/Model.js'; | ||
import { Settings } from '../models/Settings.js'; | ||
import { Token } from '../models/Token.js'; | ||
import { TokenFactory } from '../models/TokenFactory.js'; | ||
import { Function } from '../models/Function.js'; | ||
@@ -48,3 +48,3 @@ import { Event } from '../models/Event.js'; | ||
[Snapshot.slug]: typeof Snapshot; | ||
[Token.slug]: typeof Token; | ||
[TokenFactory.slug]: typeof TokenFactory; | ||
} | ||
@@ -51,0 +51,0 @@ export type Models = Omit<ModelsBase, keyof ModelsOverrides> & ModelsOverrides; |
import { ValidatorTypes } from '../enums/validator-types.js'; | ||
export type ValidatorOptionsMap = { | ||
[ValidatorTypes.EXISTS]: { | ||
field: string; | ||
}; | ||
[ValidatorTypes.REQUIRED]: { | ||
@@ -12,14 +9,8 @@ field: string; | ||
}; | ||
[ValidatorTypes.KEY_FIELD]: { | ||
[ValidatorTypes.BOUNDARIES]: { | ||
field: string; | ||
}; | ||
[ValidatorTypes.SAMPLE]: { | ||
field: string; | ||
}; | ||
[ValidatorTypes.LENGTH]: { | ||
field: string; | ||
min?: number; | ||
max?: number; | ||
}; | ||
[ValidatorTypes.BOUNDARIES]: { | ||
[ValidatorTypes.LENGTH]: { | ||
field: string; | ||
@@ -34,2 +25,11 @@ min?: number; | ||
}; | ||
[ValidatorTypes.SAMPLE]: { | ||
field: string; | ||
}; | ||
[ValidatorTypes.KEY_FIELD]: { | ||
field: string; | ||
}; | ||
[ValidatorTypes.EXISTS]: { | ||
field: string; | ||
}; | ||
}; | ||
@@ -36,0 +36,0 @@ export type ValidatorOptionsMapOmitField = { |
{ | ||
"name": "@graphand/core", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
382091
7886