@fctc/interface-logic 1.3.1 → 1.3.2
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-mROO2TFx.d.mts → api-type-cZ3zwGsZ.d.mts} +1 -15
- package/dist/{view-type-mROO2TFx.d.ts → api-type-cZ3zwGsZ.d.ts} +1 -15
- package/dist/hooks.d.mts +32 -2
- package/dist/hooks.d.ts +32 -2
- package/dist/services.d.mts +14 -1
- package/dist/services.d.ts +14 -1
- package/package.json +1 -11
- package/dist/index-C_nK1Mii.d.mts +0 -19
- package/dist/index-C_nK1Mii.d.ts +0 -19
- package/dist/models.d.mts +0 -34
- package/dist/models.d.ts +0 -34
- package/dist/models.js +0 -3352
- package/dist/models.mjs +0 -3314
- package/dist/types.d.mts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -18
- package/dist/types.mjs +0 -0
|
@@ -83,18 +83,4 @@ type GetSelectionType = {
|
|
|
83
83
|
specification?: any;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
type
|
|
87
|
-
type Option = {
|
|
88
|
-
action_id?: number;
|
|
89
|
-
load_filters?: boolean;
|
|
90
|
-
toolbar?: boolean;
|
|
91
|
-
};
|
|
92
|
-
interface GetViewParams {
|
|
93
|
-
model?: string;
|
|
94
|
-
views?: View[];
|
|
95
|
-
context?: Record<string, any>;
|
|
96
|
-
options?: Option;
|
|
97
|
-
aid?: number | string | null | boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetViewParams as b, GetSelectionType as c, SocialTokenBody as d, updatePasswordBody as u };
|
|
86
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetSelectionType as b, SocialTokenBody as c, updatePasswordBody as u };
|
|
@@ -83,18 +83,4 @@ type GetSelectionType = {
|
|
|
83
83
|
specification?: any;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
type
|
|
87
|
-
type Option = {
|
|
88
|
-
action_id?: number;
|
|
89
|
-
load_filters?: boolean;
|
|
90
|
-
toolbar?: boolean;
|
|
91
|
-
};
|
|
92
|
-
interface GetViewParams {
|
|
93
|
-
model?: string;
|
|
94
|
-
views?: View[];
|
|
95
|
-
context?: Record<string, any>;
|
|
96
|
-
options?: Option;
|
|
97
|
-
aid?: number | string | null | boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetViewParams as b, GetSelectionType as c, SocialTokenBody as d, updatePasswordBody as u };
|
|
86
|
+
export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetSelectionType as b, SocialTokenBody as c, updatePasswordBody as u };
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody,
|
|
3
|
-
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
2
|
+
import { L as LoginCredentialBody, c as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, b as GetSelectionType } from './api-type-cZ3zwGsZ.mjs';
|
|
4
3
|
|
|
5
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
6
5
|
|
|
@@ -161,6 +160,24 @@ declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
|
161
160
|
model: string;
|
|
162
161
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
163
162
|
|
|
163
|
+
interface BaseModelInit {
|
|
164
|
+
name: string;
|
|
165
|
+
view: Record<string, any>;
|
|
166
|
+
actContext?: Record<string, any>;
|
|
167
|
+
fields?: any;
|
|
168
|
+
}
|
|
169
|
+
declare class BaseModel {
|
|
170
|
+
name: string;
|
|
171
|
+
view: Record<string, any>;
|
|
172
|
+
actContext?: Record<string, any>;
|
|
173
|
+
fields?: any;
|
|
174
|
+
constructor(init: BaseModelInit);
|
|
175
|
+
private getSpecificationByFields;
|
|
176
|
+
getTreeProps(): Record<string, any>;
|
|
177
|
+
getTreeFields(): Record<string, any>[];
|
|
178
|
+
getSpecification(): Record<string, any>;
|
|
179
|
+
}
|
|
180
|
+
|
|
164
181
|
declare const useModel: () => {
|
|
165
182
|
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
166
183
|
};
|
|
@@ -252,6 +269,19 @@ declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
|
252
269
|
enabled?: boolean;
|
|
253
270
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
254
271
|
|
|
272
|
+
type View = [number | boolean, string];
|
|
273
|
+
type Option = {
|
|
274
|
+
action_id?: number;
|
|
275
|
+
load_filters?: boolean;
|
|
276
|
+
toolbar?: boolean;
|
|
277
|
+
};
|
|
278
|
+
interface GetViewParams {
|
|
279
|
+
model?: string;
|
|
280
|
+
views?: View[];
|
|
281
|
+
context?: Record<string, any>;
|
|
282
|
+
options?: Option;
|
|
283
|
+
aid?: number | string | null | boolean;
|
|
284
|
+
}
|
|
255
285
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
256
286
|
|
|
257
287
|
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { L as LoginCredentialBody,
|
|
3
|
-
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.js';
|
|
2
|
+
import { L as LoginCredentialBody, c as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, b as GetSelectionType } from './api-type-cZ3zwGsZ.js';
|
|
4
3
|
|
|
5
4
|
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
6
5
|
|
|
@@ -161,6 +160,24 @@ declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
|
|
|
161
160
|
model: string;
|
|
162
161
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
163
162
|
|
|
163
|
+
interface BaseModelInit {
|
|
164
|
+
name: string;
|
|
165
|
+
view: Record<string, any>;
|
|
166
|
+
actContext?: Record<string, any>;
|
|
167
|
+
fields?: any;
|
|
168
|
+
}
|
|
169
|
+
declare class BaseModel {
|
|
170
|
+
name: string;
|
|
171
|
+
view: Record<string, any>;
|
|
172
|
+
actContext?: Record<string, any>;
|
|
173
|
+
fields?: any;
|
|
174
|
+
constructor(init: BaseModelInit);
|
|
175
|
+
private getSpecificationByFields;
|
|
176
|
+
getTreeProps(): Record<string, any>;
|
|
177
|
+
getTreeFields(): Record<string, any>[];
|
|
178
|
+
getSpecification(): Record<string, any>;
|
|
179
|
+
}
|
|
180
|
+
|
|
164
181
|
declare const useModel: () => {
|
|
165
182
|
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
166
183
|
};
|
|
@@ -252,6 +269,19 @@ declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
|
252
269
|
enabled?: boolean;
|
|
253
270
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
254
271
|
|
|
272
|
+
type View = [number | boolean, string];
|
|
273
|
+
type Option = {
|
|
274
|
+
action_id?: number;
|
|
275
|
+
load_filters?: boolean;
|
|
276
|
+
toolbar?: boolean;
|
|
277
|
+
};
|
|
278
|
+
interface GetViewParams {
|
|
279
|
+
model?: string;
|
|
280
|
+
views?: View[];
|
|
281
|
+
context?: Record<string, any>;
|
|
282
|
+
options?: Option;
|
|
283
|
+
aid?: number | string | null | boolean;
|
|
284
|
+
}
|
|
255
285
|
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
256
286
|
|
|
257
287
|
declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, b as
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, b as GetSelectionType } from './api-type-cZ3zwGsZ.mjs';
|
|
2
2
|
|
|
3
3
|
declare const ActionService: {
|
|
4
4
|
loadAction({ idAction, context, }: {
|
|
@@ -187,6 +187,19 @@ declare const UserService: {
|
|
|
187
187
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
type View = [number | boolean, string];
|
|
191
|
+
type Option = {
|
|
192
|
+
action_id?: number;
|
|
193
|
+
load_filters?: boolean;
|
|
194
|
+
toolbar?: boolean;
|
|
195
|
+
};
|
|
196
|
+
interface GetViewParams {
|
|
197
|
+
model?: string;
|
|
198
|
+
views?: View[];
|
|
199
|
+
context?: Record<string, any>;
|
|
200
|
+
options?: Option;
|
|
201
|
+
aid?: number | string | null | boolean;
|
|
202
|
+
}
|
|
190
203
|
declare const ViewService: {
|
|
191
204
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
192
205
|
getMenu(context: any): Promise<any>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, b as
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, G as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, b as GetSelectionType } from './api-type-cZ3zwGsZ.js';
|
|
2
2
|
|
|
3
3
|
declare const ActionService: {
|
|
4
4
|
loadAction({ idAction, context, }: {
|
|
@@ -187,6 +187,19 @@ declare const UserService: {
|
|
|
187
187
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
+
type View = [number | boolean, string];
|
|
191
|
+
type Option = {
|
|
192
|
+
action_id?: number;
|
|
193
|
+
load_filters?: boolean;
|
|
194
|
+
toolbar?: boolean;
|
|
195
|
+
};
|
|
196
|
+
interface GetViewParams {
|
|
197
|
+
model?: string;
|
|
198
|
+
views?: View[];
|
|
199
|
+
context?: Record<string, any>;
|
|
200
|
+
options?: Option;
|
|
201
|
+
aid?: number | string | null | boolean;
|
|
202
|
+
}
|
|
190
203
|
declare const ViewService: {
|
|
191
204
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
192
205
|
getMenu(context: any): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/interface-logic",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,11 +30,6 @@
|
|
|
30
30
|
"import": "./dist/hooks.mjs",
|
|
31
31
|
"require": "./dist/hooks.cjs"
|
|
32
32
|
},
|
|
33
|
-
"./models": {
|
|
34
|
-
"types": "./dist/models.d.ts",
|
|
35
|
-
"import": "./dist/models.mjs",
|
|
36
|
-
"require": "./dist/models.cjs"
|
|
37
|
-
},
|
|
38
33
|
"./provider": {
|
|
39
34
|
"types": "./dist/provider.d.ts",
|
|
40
35
|
"import": "./dist/provider.mjs",
|
|
@@ -50,11 +45,6 @@
|
|
|
50
45
|
"import": "./dist/store.mjs",
|
|
51
46
|
"require": "./dist/store.cjs"
|
|
52
47
|
},
|
|
53
|
-
"./types": {
|
|
54
|
-
"types": "./dist/types.d.ts",
|
|
55
|
-
"import": "./dist/types.mjs",
|
|
56
|
-
"require": "./dist/types.cjs"
|
|
57
|
-
},
|
|
58
48
|
"./utils": {
|
|
59
49
|
"types": "./dist/utils.d.ts",
|
|
60
50
|
"import": "./dist/utils.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 };
|
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 };
|
package/dist/models.d.mts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { B as BaseModel, a as BaseModelInit } from './index-C_nK1Mii.mjs';
|
|
2
|
-
|
|
3
|
-
interface CompanyData {
|
|
4
|
-
id?: number;
|
|
5
|
-
name?: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
interface CompanyResponse {
|
|
9
|
-
data: CompanyData;
|
|
10
|
-
status: number;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
declare class CompanyModel extends BaseModel {
|
|
14
|
-
constructor(init: BaseModelInit);
|
|
15
|
-
getCurrentCompany(): Promise<CompanyResponse>;
|
|
16
|
-
getUserCompany(id: number): Promise<CompanyResponse>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface UserData {
|
|
20
|
-
id?: number;
|
|
21
|
-
name?: string;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
interface UserResponse {
|
|
25
|
-
data: UserData;
|
|
26
|
-
status: number;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
declare class UserModel extends BaseModel {
|
|
30
|
-
constructor(init: BaseModelInit);
|
|
31
|
-
getProfile(): Promise<UserResponse>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { CompanyModel, UserModel };
|
package/dist/models.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { B as BaseModel, a as BaseModelInit } from './index-C_nK1Mii.js';
|
|
2
|
-
|
|
3
|
-
interface CompanyData {
|
|
4
|
-
id?: number;
|
|
5
|
-
name?: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
interface CompanyResponse {
|
|
9
|
-
data: CompanyData;
|
|
10
|
-
status: number;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
declare class CompanyModel extends BaseModel {
|
|
14
|
-
constructor(init: BaseModelInit);
|
|
15
|
-
getCurrentCompany(): Promise<CompanyResponse>;
|
|
16
|
-
getUserCompany(id: number): Promise<CompanyResponse>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface UserData {
|
|
20
|
-
id?: number;
|
|
21
|
-
name?: string;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
interface UserResponse {
|
|
25
|
-
data: UserData;
|
|
26
|
-
status: number;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
declare class UserModel extends BaseModel {
|
|
30
|
-
constructor(init: BaseModelInit);
|
|
31
|
-
getProfile(): Promise<UserResponse>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { CompanyModel, UserModel };
|