react-rock 3.2.10 → 3.2.12
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/Store.cjs +252 -287
- package/Store.cjs.map +1 -1
- package/Store.d.ts +25 -25
- package/Store.js +252 -287
- package/Store.js.map +1 -1
- package/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +230 -230
- package/types.d.ts +60 -60
package/types.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { XVAny, XVArray, XVBoolean, XVDate, XVEnum, XVFile, XVFunction, XVMap, XVNumber, XVObject, XVPromise, XVRecord, XVSet, XVString, XVTuple, XVType, XVUnion, Infer } from 'xanv';
|
|
2
2
|
|
|
3
|
-
type XVInstanceType = XVAny | XVArray<any> | XVBoolean | XVDate | XVEnum<any> | XVFile | XVFunction<any, any> | XVMap | XVNumber | XVObject<any> | XVPromise<any> | XVRecord<any, any> | XVSet | XVString | XVTuple | XVType<any> | XVUnion;
|
|
4
|
-
type RowSchema = {
|
|
5
|
-
[key: string]: XVInstanceType;
|
|
6
|
-
};
|
|
7
|
-
type MetaSchema = {
|
|
8
|
-
[key: string]: XVInstanceType;
|
|
9
|
-
};
|
|
10
|
-
type StoreRID = number;
|
|
11
|
-
type StoreVID = number;
|
|
12
|
-
type MakeRowType<RS> = Infer<RS> & {
|
|
13
|
-
rid: StoreRID;
|
|
14
|
-
vid: StoreVID;
|
|
15
|
-
};
|
|
16
|
-
type MakeMetaType<MS> = Infer<MS>;
|
|
17
|
-
type RowValueType = string | number | boolean | null | undefined;
|
|
18
|
-
type QueryValueType = {
|
|
19
|
-
contain?: RowValueType;
|
|
20
|
-
startWith?: string | number;
|
|
21
|
-
endWith?: string | number;
|
|
22
|
-
equalWith?: RowValueType;
|
|
23
|
-
notEqualWith?: RowValueType;
|
|
24
|
-
gt?: number;
|
|
25
|
-
lt?: number;
|
|
26
|
-
gte?: number;
|
|
27
|
-
lte?: number;
|
|
28
|
-
};
|
|
29
|
-
type WhereType<RS> = {
|
|
30
|
-
[key in keyof MakeRowType<RS>]?: RowValueType | QueryValueType;
|
|
31
|
-
};
|
|
32
|
-
type FindArgs<RS> = {
|
|
33
|
-
where: WhereType<RS>;
|
|
34
|
-
observeId?: string;
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
type DeleteArgs<RS> = {
|
|
38
|
-
where: WhereType<RS>;
|
|
39
|
-
observeId?: string;
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
type UpdateArgs<RS> = {
|
|
43
|
-
data: Partial<MakeRowType<RS>>;
|
|
44
|
-
where: WhereType<RS>;
|
|
45
|
-
observeId?: string;
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
type CreateArgs<RS> = {
|
|
49
|
-
data: Partial<MakeRowType<RS>>;
|
|
50
|
-
observeId?: string;
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
type CreateManyArgs<RS> = {
|
|
54
|
-
data: Partial<MakeRowType<RS>>[];
|
|
55
|
-
observeId?: string;
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
type MoveArgs<RS> = {
|
|
59
|
-
fromIndex: number;
|
|
60
|
-
toIndex: number;
|
|
61
|
-
observeId?: string;
|
|
62
|
-
|
|
3
|
+
type XVInstanceType = XVAny | XVArray<any> | XVBoolean | XVDate | XVEnum<any> | XVFile | XVFunction<any, any> | XVMap | XVNumber | XVObject<any> | XVPromise<any> | XVRecord<any, any> | XVSet | XVString | XVTuple | XVType<any> | XVUnion;
|
|
4
|
+
type RowSchema = {
|
|
5
|
+
[key: string]: XVInstanceType;
|
|
6
|
+
};
|
|
7
|
+
type MetaSchema = {
|
|
8
|
+
[key: string]: XVInstanceType;
|
|
9
|
+
};
|
|
10
|
+
type StoreRID = number;
|
|
11
|
+
type StoreVID = number;
|
|
12
|
+
type MakeRowType<RS> = Infer<RS> & {
|
|
13
|
+
rid: StoreRID;
|
|
14
|
+
vid: StoreVID;
|
|
15
|
+
};
|
|
16
|
+
type MakeMetaType<MS> = Infer<MS>;
|
|
17
|
+
type RowValueType = string | number | boolean | null | undefined;
|
|
18
|
+
type QueryValueType = {
|
|
19
|
+
contain?: RowValueType;
|
|
20
|
+
startWith?: string | number;
|
|
21
|
+
endWith?: string | number;
|
|
22
|
+
equalWith?: RowValueType;
|
|
23
|
+
notEqualWith?: RowValueType;
|
|
24
|
+
gt?: number;
|
|
25
|
+
lt?: number;
|
|
26
|
+
gte?: number;
|
|
27
|
+
lte?: number;
|
|
28
|
+
};
|
|
29
|
+
type WhereType<RS> = {
|
|
30
|
+
[key in keyof MakeRowType<RS>]?: RowValueType | QueryValueType;
|
|
31
|
+
};
|
|
32
|
+
type FindArgs<RS> = {
|
|
33
|
+
where: WhereType<RS>;
|
|
34
|
+
observeId?: string;
|
|
35
|
+
disableObservation?: boolean;
|
|
36
|
+
};
|
|
37
|
+
type DeleteArgs<RS> = {
|
|
38
|
+
where: WhereType<RS>;
|
|
39
|
+
observeId?: string;
|
|
40
|
+
disableObservation?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type UpdateArgs<RS> = {
|
|
43
|
+
data: Partial<MakeRowType<RS>>;
|
|
44
|
+
where: WhereType<RS>;
|
|
45
|
+
observeId?: string;
|
|
46
|
+
disableObservation?: boolean;
|
|
47
|
+
};
|
|
48
|
+
type CreateArgs<RS> = {
|
|
49
|
+
data: Partial<MakeRowType<RS>>;
|
|
50
|
+
observeId?: string;
|
|
51
|
+
disableObservation?: boolean;
|
|
52
|
+
};
|
|
53
|
+
type CreateManyArgs<RS> = {
|
|
54
|
+
data: Partial<MakeRowType<RS>>[];
|
|
55
|
+
observeId?: string;
|
|
56
|
+
disableObservation?: boolean;
|
|
57
|
+
};
|
|
58
|
+
type MoveArgs<RS> = {
|
|
59
|
+
fromIndex: number;
|
|
60
|
+
toIndex: number;
|
|
61
|
+
observeId?: string;
|
|
62
|
+
disableObservation?: boolean;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export type { CreateArgs, CreateManyArgs, DeleteArgs, FindArgs, MakeMetaType, MakeRowType, MetaSchema, MoveArgs, QueryValueType, RowSchema, RowValueType, StoreRID, StoreVID, UpdateArgs, WhereType };
|