@fctc/edu-logic-lib 1.1.3 → 1.1.4
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/{view-type-BTzRpkT7.d.mts → api-type-dNqOR_Yp.d.mts} +1 -42
- package/dist/{view-type-BTzRpkT7.d.ts → api-type-dNqOR_Yp.d.ts} +1 -42
- package/dist/hooks.d.mts +4 -209
- package/dist/hooks.d.ts +4 -209
- package/dist/hooks.js +10 -1782
- package/dist/hooks.mjs +11 -1738
- package/dist/index.d.mts +8 -9
- package/dist/index.d.ts +8 -9
- package/dist/index.js +7 -616
- package/dist/index.mjs +5 -569
- package/dist/models.d.mts +21 -4
- package/dist/models.d.ts +21 -4
- package/dist/services.d.mts +15 -3
- package/dist/services.d.ts +15 -3
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/view-type-BOk5F1Fj.d.mts +42 -0
- package/dist/view-type-BOk5F1Fj.d.ts +42 -0
- package/package.json +1 -1
- package/dist/index-C_nK1Mii.d.mts +0 -19
- package/dist/index-C_nK1Mii.d.ts +0 -19
- package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
- package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
package/dist/services.d.mts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { C as ContextApi,
|
|
2
|
-
import {
|
|
1
|
+
import { C as ContextApi, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData } from './api-type-dNqOR_Yp.mjs';
|
|
2
|
+
import { L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetViewParams } from './view-type-BOk5F1Fj.mjs';
|
|
3
3
|
import { C as Context } from './context-type-D5XefoL-.mjs';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type TFormView = {
|
|
6
|
+
model: string;
|
|
7
|
+
id?: number | null;
|
|
8
|
+
context?: any;
|
|
9
|
+
};
|
|
5
10
|
|
|
6
11
|
declare const ActionService: {
|
|
7
12
|
loadAction({ idAction, context, }: {
|
|
@@ -147,6 +152,13 @@ declare const UserService: {
|
|
|
147
152
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
148
153
|
};
|
|
149
154
|
|
|
155
|
+
type GetSelectionType = {
|
|
156
|
+
domain: any;
|
|
157
|
+
context: any;
|
|
158
|
+
model: string;
|
|
159
|
+
specification?: any;
|
|
160
|
+
};
|
|
161
|
+
|
|
150
162
|
declare const ViewService: {
|
|
151
163
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
152
164
|
getMenu(context: Context): Promise<any>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { C as ContextApi,
|
|
2
|
-
import {
|
|
1
|
+
import { C as ContextApi, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData } from './api-type-dNqOR_Yp.js';
|
|
2
|
+
import { L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetViewParams } from './view-type-BOk5F1Fj.js';
|
|
3
3
|
import { C as Context } from './context-type-D5XefoL-.js';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type TFormView = {
|
|
6
|
+
model: string;
|
|
7
|
+
id?: number | null;
|
|
8
|
+
context?: any;
|
|
9
|
+
};
|
|
5
10
|
|
|
6
11
|
declare const ActionService: {
|
|
7
12
|
loadAction({ idAction, context, }: {
|
|
@@ -147,6 +152,13 @@ declare const UserService: {
|
|
|
147
152
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
148
153
|
};
|
|
149
154
|
|
|
155
|
+
type GetSelectionType = {
|
|
156
|
+
domain: any;
|
|
157
|
+
context: any;
|
|
158
|
+
model: string;
|
|
159
|
+
specification?: any;
|
|
160
|
+
};
|
|
161
|
+
|
|
150
162
|
declare const ViewService: {
|
|
151
163
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
152
164
|
getMenu(context: Context): Promise<any>;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams,
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, G as GetAllParams, a as GetDetailParams, b as GetListParams, O as OnChangeParams, S as SaveParams, c as Specification, V as ViewData } from './api-type-dNqOR_Yp.mjs';
|
|
2
|
+
export { F as ForgotPasswordBody, G as GetViewParams, L as LoginCredentialBody, R as ResetPasswordRequest, S as SocialTokenBody, U as UpdatePasswordRequest, V as View, u as updatePasswordBody } from './view-type-BOk5F1Fj.mjs';
|
|
2
3
|
export { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
|
|
3
4
|
export { C as Context } from './context-type-D5XefoL-.mjs';
|
|
4
5
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { C as ContextApi, D as DeleteParams,
|
|
1
|
+
export { C as ContextApi, D as DeleteParams, G as GetAllParams, a as GetDetailParams, b as GetListParams, O as OnChangeParams, S as SaveParams, c as Specification, V as ViewData } from './api-type-dNqOR_Yp.js';
|
|
2
|
+
export { F as ForgotPasswordBody, G as GetViewParams, L as LoginCredentialBody, R as ResetPasswordRequest, S as SocialTokenBody, U as UpdatePasswordRequest, V as View, u as updatePasswordBody } from './view-type-BOk5F1Fj.js';
|
|
2
3
|
export { B as BaseModelInit } from './base-model-type-DvO53Lwi.js';
|
|
3
4
|
export { C as Context } from './context-type-D5XefoL-.js';
|
|
4
5
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface LoginCredentialBody {
|
|
2
|
+
email: string;
|
|
3
|
+
password: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordRequest {
|
|
7
|
+
password: string;
|
|
8
|
+
confirmPassword: string;
|
|
9
|
+
}
|
|
10
|
+
interface UpdatePasswordRequest {
|
|
11
|
+
newPassword: string;
|
|
12
|
+
oldPassword: string;
|
|
13
|
+
}
|
|
14
|
+
interface ForgotPasswordBody {
|
|
15
|
+
data: ResetPasswordRequest;
|
|
16
|
+
token: string | null;
|
|
17
|
+
}
|
|
18
|
+
interface updatePasswordBody {
|
|
19
|
+
data: UpdatePasswordRequest;
|
|
20
|
+
token: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface SocialTokenBody {
|
|
23
|
+
state: object;
|
|
24
|
+
access_token: string;
|
|
25
|
+
db: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type View = [number | boolean, string];
|
|
29
|
+
type Option = {
|
|
30
|
+
action_id?: number;
|
|
31
|
+
load_filters?: boolean;
|
|
32
|
+
toolbar?: boolean;
|
|
33
|
+
};
|
|
34
|
+
interface GetViewParams {
|
|
35
|
+
model?: string;
|
|
36
|
+
views?: View[];
|
|
37
|
+
context?: Record<string, any>;
|
|
38
|
+
options?: Option;
|
|
39
|
+
aid?: number | string | null | boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type { ForgotPasswordBody as F, GetViewParams as G, LoginCredentialBody as L, ResetPasswordRequest as R, SocialTokenBody as S, UpdatePasswordRequest as U, View as V, updatePasswordBody as u };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
interface LoginCredentialBody {
|
|
2
|
+
email: string;
|
|
3
|
+
password: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ResetPasswordRequest {
|
|
7
|
+
password: string;
|
|
8
|
+
confirmPassword: string;
|
|
9
|
+
}
|
|
10
|
+
interface UpdatePasswordRequest {
|
|
11
|
+
newPassword: string;
|
|
12
|
+
oldPassword: string;
|
|
13
|
+
}
|
|
14
|
+
interface ForgotPasswordBody {
|
|
15
|
+
data: ResetPasswordRequest;
|
|
16
|
+
token: string | null;
|
|
17
|
+
}
|
|
18
|
+
interface updatePasswordBody {
|
|
19
|
+
data: UpdatePasswordRequest;
|
|
20
|
+
token: string | null;
|
|
21
|
+
}
|
|
22
|
+
interface SocialTokenBody {
|
|
23
|
+
state: object;
|
|
24
|
+
access_token: string;
|
|
25
|
+
db: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type View = [number | boolean, string];
|
|
29
|
+
type Option = {
|
|
30
|
+
action_id?: number;
|
|
31
|
+
load_filters?: boolean;
|
|
32
|
+
toolbar?: boolean;
|
|
33
|
+
};
|
|
34
|
+
interface GetViewParams {
|
|
35
|
+
model?: string;
|
|
36
|
+
views?: View[];
|
|
37
|
+
context?: Record<string, any>;
|
|
38
|
+
options?: Option;
|
|
39
|
+
aid?: number | string | null | boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type { ForgotPasswordBody as F, GetViewParams as G, LoginCredentialBody as L, ResetPasswordRequest as R, SocialTokenBody as S, UpdatePasswordRequest as U, View as V, updatePasswordBody as u };
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface BaseModelInit {
|
|
2
|
-
name: string;
|
|
3
|
-
view: Record<string, any>;
|
|
4
|
-
actContext?: Record<string, any>;
|
|
5
|
-
fields?: any;
|
|
6
|
-
}
|
|
7
|
-
declare class BaseModel {
|
|
8
|
-
name: string;
|
|
9
|
-
view: Record<string, any>;
|
|
10
|
-
actContext?: Record<string, any>;
|
|
11
|
-
fields?: any;
|
|
12
|
-
constructor(init: BaseModelInit);
|
|
13
|
-
private getSpecificationByFields;
|
|
14
|
-
getTreeProps(): Record<string, any>;
|
|
15
|
-
getTreeFields(): Record<string, any>[];
|
|
16
|
-
getSpecification(): Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { BaseModel as B, type BaseModelInit as a };
|
package/dist/index-C_nK1Mii.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface BaseModelInit {
|
|
2
|
-
name: string;
|
|
3
|
-
view: Record<string, any>;
|
|
4
|
-
actContext?: Record<string, any>;
|
|
5
|
-
fields?: any;
|
|
6
|
-
}
|
|
7
|
-
declare class BaseModel {
|
|
8
|
-
name: string;
|
|
9
|
-
view: Record<string, any>;
|
|
10
|
-
actContext?: Record<string, any>;
|
|
11
|
-
fields?: any;
|
|
12
|
-
constructor(init: BaseModelInit);
|
|
13
|
-
private getSpecificationByFields;
|
|
14
|
-
getTreeProps(): Record<string, any>;
|
|
15
|
-
getTreeFields(): Record<string, any>[];
|
|
16
|
-
getSpecification(): Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { BaseModel as B, type BaseModelInit as a };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
type TFormView = {
|
|
4
|
-
model: string;
|
|
5
|
-
id?: number | null;
|
|
6
|
-
context?: any;
|
|
7
|
-
};
|
|
8
|
-
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
9
|
-
data: TFormView;
|
|
10
|
-
queryKey?: any;
|
|
11
|
-
enabled?: any;
|
|
12
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
13
|
-
|
|
14
|
-
type GetSelectionType = {
|
|
15
|
-
domain: any;
|
|
16
|
-
context: any;
|
|
17
|
-
model: string;
|
|
18
|
-
specification?: any;
|
|
19
|
-
};
|
|
20
|
-
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
21
|
-
data: GetSelectionType;
|
|
22
|
-
queryKey: any[];
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
25
|
-
|
|
26
|
-
export { type GetSelectionType as G, type TFormView as T, useGetSelection as a, useGetFormView as u };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
type TFormView = {
|
|
4
|
-
model: string;
|
|
5
|
-
id?: number | null;
|
|
6
|
-
context?: any;
|
|
7
|
-
};
|
|
8
|
-
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
9
|
-
data: TFormView;
|
|
10
|
-
queryKey?: any;
|
|
11
|
-
enabled?: any;
|
|
12
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
13
|
-
|
|
14
|
-
type GetSelectionType = {
|
|
15
|
-
domain: any;
|
|
16
|
-
context: any;
|
|
17
|
-
model: string;
|
|
18
|
-
specification?: any;
|
|
19
|
-
};
|
|
20
|
-
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
21
|
-
data: GetSelectionType;
|
|
22
|
-
queryKey: any[];
|
|
23
|
-
enabled?: boolean;
|
|
24
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
25
|
-
|
|
26
|
-
export { type GetSelectionType as G, type TFormView as T, useGetSelection as a, useGetFormView as u };
|