@fctc/edu-logic-lib 1.0.7 → 1.0.9
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/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/chunk-4K3QAEZ6.js +90 -0
- package/dist/chunk-6BLY7NZ6.mjs +120 -0
- package/dist/chunk-6QXB3XX7.mjs +256 -0
- package/dist/chunk-7JD5GMIZ.js +2 -0
- package/dist/chunk-AYUH66EE.mjs +62 -0
- package/dist/chunk-CZHZLKNA.mjs +585 -0
- package/dist/chunk-EK43MEN4.js +635 -0
- package/dist/chunk-ELARQVCE.mjs +2344 -0
- package/dist/chunk-FVGPSTJ7.js +122 -0
- package/dist/chunk-GGOFXFSX.js +2362 -0
- package/dist/chunk-IXDDYGKE.js +61 -0
- package/dist/chunk-MLJQPO4Q.mjs +57 -0
- package/dist/chunk-OADBRQ4A.js +32 -0
- package/dist/chunk-OBR6UTC5.mjs +1 -0
- package/dist/chunk-OFUXC2LA.mjs +86 -0
- package/dist/chunk-P2IGWJDZ.js +1068 -0
- package/dist/chunk-QLUONJPQ.mjs +519 -0
- package/dist/chunk-RWRHCIQI.mjs +1059 -0
- package/dist/chunk-RZBHZYXG.js +582 -0
- package/dist/chunk-S7B3VKMJ.mjs +85 -0
- package/dist/chunk-S7YF2I23.js +95 -0
- package/dist/chunk-UY6GNZNB.js +262 -0
- package/dist/chunk-XYVK476U.mjs +29 -0
- package/dist/chunk-YOV6KAT2.js +66 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +11 -0
- package/dist/config.mjs +2 -0
- package/dist/constants.d.mts +120 -0
- package/dist/constants.d.ts +120 -0
- package/dist/constants.js +55 -0
- package/dist/constants.mjs +2 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +37 -0
- package/dist/environment.d.ts +37 -0
- package/dist/environment.js +25 -0
- package/dist/environment.mjs +4 -0
- package/dist/hooks.d.mts +218 -0
- package/dist/hooks.d.ts +218 -0
- package/dist/hooks.js +194 -0
- package/dist/hooks.mjs +9 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +23 -1294
- package/dist/index.d.ts +23 -1294
- package/dist/index.js +626 -5320
- package/dist/index.mjs +12 -5165
- package/dist/models.d.mts +35 -0
- package/dist/models.d.ts +35 -0
- package/dist/models.js +26 -0
- package/dist/models.mjs +9 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +25 -0
- package/dist/provider.mjs +8 -0
- package/dist/services.d.mts +160 -0
- package/dist/services.d.ts +160 -0
- package/dist/services.js +44 -0
- package/dist/services.mjs +7 -0
- package/dist/store.d.mts +505 -0
- package/dist/store.d.ts +505 -0
- package/dist/store.js +254 -0
- package/dist/store.mjs +1 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +4 -0
- package/dist/types.mjs +1 -0
- package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
- package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
- package/dist/utils.d.mts +52 -0
- package/dist/utils.d.ts +52 -0
- package/dist/utils.js +66 -0
- package/dist/utils.mjs +1 -0
- package/dist/view-type-BTzRpkT7.d.mts +106 -0
- package/dist/view-type-BTzRpkT7.d.ts +106 -0
- package/package.json +41 -41
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
interface Specification {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
interface ContextApi {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
interface GetAllParams {
|
|
8
|
+
model?: string;
|
|
9
|
+
ids?: number[];
|
|
10
|
+
specification: Specification;
|
|
11
|
+
domain?: any[];
|
|
12
|
+
offset?: number;
|
|
13
|
+
sort: any;
|
|
14
|
+
fields: any;
|
|
15
|
+
groupby: any;
|
|
16
|
+
context?: ContextApi;
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
interface GetListParams {
|
|
20
|
+
model: string;
|
|
21
|
+
ids?: number[];
|
|
22
|
+
specification?: Specification;
|
|
23
|
+
domain?: any[];
|
|
24
|
+
offset?: number;
|
|
25
|
+
order?: string;
|
|
26
|
+
context?: ContextApi;
|
|
27
|
+
limit?: number;
|
|
28
|
+
}
|
|
29
|
+
interface GetDetailParams {
|
|
30
|
+
ids?: number[];
|
|
31
|
+
model?: string;
|
|
32
|
+
specification?: Specification;
|
|
33
|
+
context?: ContextApi;
|
|
34
|
+
}
|
|
35
|
+
interface SaveParams {
|
|
36
|
+
model: string;
|
|
37
|
+
ids?: number[] | [];
|
|
38
|
+
data?: Record<string, any>;
|
|
39
|
+
specification?: Specification;
|
|
40
|
+
context?: ContextApi;
|
|
41
|
+
}
|
|
42
|
+
interface DeleteParams {
|
|
43
|
+
ids?: number[];
|
|
44
|
+
model: string;
|
|
45
|
+
}
|
|
46
|
+
interface OnChangeParams {
|
|
47
|
+
ids?: number[];
|
|
48
|
+
model: string;
|
|
49
|
+
object?: Record<string, any>;
|
|
50
|
+
specification: Specification;
|
|
51
|
+
context?: ContextApi;
|
|
52
|
+
fieldChange?: string[];
|
|
53
|
+
}
|
|
54
|
+
interface ViewData {
|
|
55
|
+
models?: {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
[key: string]: {
|
|
58
|
+
type: string;
|
|
59
|
+
relation?: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface LoginCredentialBody {
|
|
66
|
+
email: string;
|
|
67
|
+
password: string;
|
|
68
|
+
path?: string;
|
|
69
|
+
}
|
|
70
|
+
interface ResetPasswordRequest {
|
|
71
|
+
password: string;
|
|
72
|
+
confirmPassword: string;
|
|
73
|
+
}
|
|
74
|
+
interface UpdatePasswordRequest {
|
|
75
|
+
newPassword: string;
|
|
76
|
+
oldPassword: string;
|
|
77
|
+
}
|
|
78
|
+
interface ForgotPasswordBody {
|
|
79
|
+
data: ResetPasswordRequest;
|
|
80
|
+
token: string | null;
|
|
81
|
+
}
|
|
82
|
+
interface updatePasswordBody {
|
|
83
|
+
data: UpdatePasswordRequest;
|
|
84
|
+
token: string | null;
|
|
85
|
+
}
|
|
86
|
+
interface SocialTokenBody {
|
|
87
|
+
state: object;
|
|
88
|
+
access_token: string;
|
|
89
|
+
db: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type View = [number | boolean, string];
|
|
93
|
+
type Option = {
|
|
94
|
+
action_id?: number;
|
|
95
|
+
load_filters?: boolean;
|
|
96
|
+
toolbar?: boolean;
|
|
97
|
+
};
|
|
98
|
+
interface GetViewParams {
|
|
99
|
+
model?: string;
|
|
100
|
+
views?: View[];
|
|
101
|
+
context?: Record<string, any>;
|
|
102
|
+
options?: Option;
|
|
103
|
+
aid?: number | string | null | boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, SocialTokenBody as c, Specification as d, GetViewParams as e, View as f, updatePasswordBody as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/edu-logic-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,54 +15,54 @@
|
|
|
15
15
|
"require": "./dist/index.cjs"
|
|
16
16
|
},
|
|
17
17
|
"./config": {
|
|
18
|
-
"types": "./dist/
|
|
19
|
-
"import": "./dist/
|
|
20
|
-
"require": "./dist/
|
|
18
|
+
"types": "./dist/config.d.ts",
|
|
19
|
+
"import": "./dist/config.mjs",
|
|
20
|
+
"require": "./dist/config.cjs"
|
|
21
21
|
},
|
|
22
22
|
"./constants": {
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
"require": "./dist/
|
|
23
|
+
"types": "./dist/constants.d.ts",
|
|
24
|
+
"import": "./dist/constants.mjs",
|
|
25
|
+
"require": "./dist/constants.cjs"
|
|
26
26
|
},
|
|
27
27
|
"./environment": {
|
|
28
|
-
"types": "./dist/
|
|
29
|
-
"import": "./dist/
|
|
30
|
-
"require": "./dist/
|
|
28
|
+
"types": "./dist/environment.d.ts",
|
|
29
|
+
"import": "./dist/environment.mjs",
|
|
30
|
+
"require": "./dist/environment.cjs"
|
|
31
31
|
},
|
|
32
32
|
"./hooks": {
|
|
33
|
-
"types": "./dist/
|
|
34
|
-
"import": "./dist/
|
|
35
|
-
"require": "./dist/
|
|
33
|
+
"types": "./dist/hooks.d.ts",
|
|
34
|
+
"import": "./dist/hooks.mjs",
|
|
35
|
+
"require": "./dist/hooks.cjs"
|
|
36
36
|
},
|
|
37
37
|
"./provider": {
|
|
38
|
-
"types": "./dist/
|
|
39
|
-
"import": "./dist/
|
|
40
|
-
"require": "./dist/
|
|
38
|
+
"types": "./dist/provider.d.ts",
|
|
39
|
+
"import": "./dist/provider.mjs",
|
|
40
|
+
"require": "./dist/provider.cjs"
|
|
41
41
|
},
|
|
42
42
|
"./services": {
|
|
43
|
-
"types": "./dist/
|
|
44
|
-
"import": "./dist/
|
|
45
|
-
"require": "./dist/
|
|
43
|
+
"types": "./dist/services.d.ts",
|
|
44
|
+
"import": "./dist/services.mjs",
|
|
45
|
+
"require": "./dist/services.cjs"
|
|
46
46
|
},
|
|
47
47
|
"./store": {
|
|
48
|
-
"types": "./dist/
|
|
49
|
-
"import": "./dist/
|
|
50
|
-
"require": "./dist/
|
|
48
|
+
"types": "./dist/store.d.ts",
|
|
49
|
+
"import": "./dist/store.mjs",
|
|
50
|
+
"require": "./dist/store.cjs"
|
|
51
51
|
},
|
|
52
52
|
"./utils": {
|
|
53
|
-
"types": "./dist/
|
|
54
|
-
"import": "./dist/
|
|
55
|
-
"require": "./dist/
|
|
53
|
+
"types": "./dist/utils.d.ts",
|
|
54
|
+
"import": "./dist/utils.mjs",
|
|
55
|
+
"require": "./dist/utils.cjs"
|
|
56
56
|
},
|
|
57
57
|
"./types": {
|
|
58
|
-
"types": "./dist/
|
|
59
|
-
"import": "./dist/
|
|
60
|
-
"require": "./dist/
|
|
58
|
+
"types": "./dist/types.d.ts",
|
|
59
|
+
"import": "./dist/types.mjs",
|
|
60
|
+
"require": "./dist/types.cjs"
|
|
61
61
|
},
|
|
62
62
|
"./models": {
|
|
63
|
-
"types": "./dist/
|
|
64
|
-
"import": "./dist/
|
|
65
|
-
"require": "./dist/
|
|
63
|
+
"types": "./dist/models.d.ts",
|
|
64
|
+
"import": "./dist/models.mjs",
|
|
65
|
+
"require": "./dist/models.cjs"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"typesVersions": {
|
|
@@ -71,34 +71,34 @@
|
|
|
71
71
|
"dist/index.d.ts"
|
|
72
72
|
],
|
|
73
73
|
"config": [
|
|
74
|
-
"dist/
|
|
74
|
+
"dist/config.d.ts"
|
|
75
75
|
],
|
|
76
76
|
"constants": [
|
|
77
|
-
"dist/
|
|
77
|
+
"dist/constants.d.ts"
|
|
78
78
|
],
|
|
79
79
|
"environment": [
|
|
80
|
-
"dist/
|
|
80
|
+
"dist/environment.d.ts"
|
|
81
81
|
],
|
|
82
82
|
"hooks": [
|
|
83
|
-
"dist/
|
|
83
|
+
"dist/hooks.d.ts"
|
|
84
84
|
],
|
|
85
85
|
"provider": [
|
|
86
|
-
"dist/
|
|
86
|
+
"dist/provider.d.ts"
|
|
87
87
|
],
|
|
88
88
|
"services": [
|
|
89
|
-
"dist/
|
|
89
|
+
"dist/services.d.ts"
|
|
90
90
|
],
|
|
91
91
|
"store": [
|
|
92
|
-
"dist/
|
|
92
|
+
"dist/store.d.ts"
|
|
93
93
|
],
|
|
94
94
|
"utils": [
|
|
95
|
-
"dist/
|
|
95
|
+
"dist/utils.d.ts"
|
|
96
96
|
],
|
|
97
97
|
"types": [
|
|
98
|
-
"dist/
|
|
98
|
+
"dist/types.d.ts"
|
|
99
99
|
],
|
|
100
100
|
"models": [
|
|
101
|
-
"dist/
|
|
101
|
+
"dist/models.d.ts"
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
104
|
},
|