pangea-server 1.0.76 → 1.0.77
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.
|
@@ -10,23 +10,23 @@ export declare namespace Val {
|
|
|
10
10
|
type Regex<T extends string> = string & tags.Pattern<T>;
|
|
11
11
|
type Num = number;
|
|
12
12
|
type Int = Val.Num & tags.Type<'int32'>;
|
|
13
|
-
type
|
|
13
|
+
type GreaterEqual<T extends number = 0> = Val.Num & tags.Minimum<T>;
|
|
14
14
|
type GreaterThan<T extends number = 0> = Val.Num & tags.ExclusiveMinimum<T>;
|
|
15
|
-
type
|
|
15
|
+
type LessEqual<T extends number = 0> = Val.Num & tags.Maximum<T>;
|
|
16
16
|
type LessThan<T extends number = 0> = Val.Num & tags.ExclusiveMaximum<T>;
|
|
17
17
|
type Bool = boolean;
|
|
18
18
|
type Datetime = globalThis.Date;
|
|
19
19
|
type Date = string & tags.Format<'date'>;
|
|
20
20
|
type Time = string & tags.Format<'time'>;
|
|
21
|
-
type Id = Val.Int & Val.
|
|
21
|
+
type Id = Val.Int & Val.GreaterEqual<1>;
|
|
22
22
|
type IdOptional = Val.Id | 0;
|
|
23
23
|
type Ids = Val.Id[];
|
|
24
24
|
interface IdParams {
|
|
25
25
|
id: Val.Id;
|
|
26
26
|
}
|
|
27
27
|
interface GetManyQueryBase {
|
|
28
|
-
page?: (Val.Int & Val.
|
|
29
|
-
pageSize?: (Val.Int & Val.
|
|
28
|
+
page?: (Val.Int & Val.GreaterEqual<0>) | null;
|
|
29
|
+
pageSize?: (Val.Int & Val.GreaterEqual<0>) | null;
|
|
30
30
|
search?: Val.Str | '' | null;
|
|
31
31
|
}
|
|
32
32
|
}
|