@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.
@@ -1,7 +1,12 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
2
- import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.mjs';
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
- import '@tanstack/react-query';
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>;
@@ -1,7 +1,12 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.js';
2
- import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.js';
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
- import '@tanstack/react-query';
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, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, e as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, c as SocialTokenBody, d as Specification, U as UpdatePasswordRequest, f as View, V as ViewData, u as updatePasswordBody } from './view-type-BTzRpkT7.mjs';
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, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, e as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, c as SocialTokenBody, d as Specification, U as UpdatePasswordRequest, f as View, V as ViewData, u as updatePasswordBody } from './view-type-BTzRpkT7.js';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/edu-logic-lib",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -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,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 };