@aeriajs/types 0.0.109 → 0.0.110
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/property.d.ts +1 -1
- package/dist/validation.d.ts +2 -1
- package/dist/validation.js +1 -0
- package/dist/validation.mjs +1 -0
- package/package.json +1 -1
package/dist/property.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { RouteContext } from './context.js';
|
|
|
5
5
|
export type PropertyArrayElement = 'checkbox' | 'radio' | 'select';
|
|
6
6
|
export type PropertyInputType = 'text' | 'email' | 'password' | 'search' | 'time' | 'month';
|
|
7
7
|
export type PropertyInputElement = 'input' | 'textarea';
|
|
8
|
-
export type PropertyFormat = 'date' | 'date-time';
|
|
8
|
+
export type PropertyFormat = 'date' | 'date-time' | 'objectid';
|
|
9
9
|
export type PropertiesWithId<TSchema extends JsonSchema> = Extract<keyof TSchema['properties'], string> | '_id';
|
|
10
10
|
export type RequiredProperties<TSchema extends JsonSchema> = readonly PropertiesWithId<TSchema>[] | Partial<Record<PropertiesWithId<TSchema>, Condition<TSchema> | boolean>>;
|
|
11
11
|
export type JsonSchema<TJsonSchema extends JsonSchema = any> = {
|
package/dist/validation.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export declare enum PropertyValidationErrorCode {
|
|
|
10
10
|
ExtraneousElement = "EXTRANEOUS_ELEMENT",
|
|
11
11
|
MoreItemsExpected = "MORE_ITEMS_EXPECTED",
|
|
12
12
|
LessItemsExpected = "LESS_ITEMS_EXPECTED",
|
|
13
|
-
NumericConstraint = "NUMERIC_CONSTRAINT"
|
|
13
|
+
NumericConstraint = "NUMERIC_CONSTRAINT",
|
|
14
|
+
StringConstraint = "STRING_CONSTRAINT"
|
|
14
15
|
}
|
|
15
16
|
export declare enum TraverseError {
|
|
16
17
|
InvalidDocumentId = "INVALID_DOCUMENT_ID",
|
package/dist/validation.js
CHANGED
|
@@ -16,6 +16,7 @@ var PropertyValidationErrorCode;
|
|
|
16
16
|
PropertyValidationErrorCode["MoreItemsExpected"] = "MORE_ITEMS_EXPECTED";
|
|
17
17
|
PropertyValidationErrorCode["LessItemsExpected"] = "LESS_ITEMS_EXPECTED";
|
|
18
18
|
PropertyValidationErrorCode["NumericConstraint"] = "NUMERIC_CONSTRAINT";
|
|
19
|
+
PropertyValidationErrorCode["StringConstraint"] = "STRING_CONSTRAINT";
|
|
19
20
|
})(PropertyValidationErrorCode || (exports.PropertyValidationErrorCode = PropertyValidationErrorCode = {}));
|
|
20
21
|
var TraverseError;
|
|
21
22
|
(function (TraverseError) {
|
package/dist/validation.mjs
CHANGED
|
@@ -13,6 +13,7 @@ export var PropertyValidationErrorCode = /* @__PURE__ */ ((PropertyValidationErr
|
|
|
13
13
|
PropertyValidationErrorCode2["MoreItemsExpected"] = "MORE_ITEMS_EXPECTED";
|
|
14
14
|
PropertyValidationErrorCode2["LessItemsExpected"] = "LESS_ITEMS_EXPECTED";
|
|
15
15
|
PropertyValidationErrorCode2["NumericConstraint"] = "NUMERIC_CONSTRAINT";
|
|
16
|
+
PropertyValidationErrorCode2["StringConstraint"] = "STRING_CONSTRAINT";
|
|
16
17
|
return PropertyValidationErrorCode2;
|
|
17
18
|
})(PropertyValidationErrorCode || {});
|
|
18
19
|
export var TraverseError = /* @__PURE__ */ ((TraverseError2) => {
|