@devtable/settings-form 10.0.0 → 10.1.0
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/account/add-account.d.ts +1 -1
- package/dist/account/role-selector.d.ts +2 -2
- package/dist/api-caller/account.d.ts +1 -1
- package/dist/api-caller/account.typed.d.ts +2 -2
- package/dist/api-caller/api-key.d.ts +1 -1
- package/dist/api-caller/api-key.typed.d.ts +1 -1
- package/dist/api-caller/index.d.ts +2 -2
- package/dist/api-caller/role.typed.d.ts +2 -2
- package/dist/api-key/add-api-key.d.ts +1 -1
- package/dist/{package-1b548d8f.mjs → package-eb53f5df.mjs} +1 -1
- package/dist/settings-form.es.js +1047 -1065
- package/dist/settings-form.umd.js +13 -13
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { IStyles } from './styles';
|
|
|
3
3
|
interface IAddAccount {
|
|
4
4
|
styles?: IStyles;
|
|
5
5
|
onSuccess: () => void;
|
|
6
|
-
initialRoleID:
|
|
6
|
+
initialRoleID: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function AddAccount({ onSuccess, styles, initialRoleID }: IAddAccount): JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IStyles } from './styles';
|
|
3
3
|
interface IRoleSelector {
|
|
4
|
-
value:
|
|
5
|
-
onChange: (v:
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
6
|
styles: IStyles;
|
|
7
7
|
}
|
|
8
8
|
export declare const RoleSelector: import('./react').ForwardRefExoticComponent<IRoleSelector & import('./react').RefAttributes<unknown>>;
|
|
@@ -15,7 +15,7 @@ export declare const account: {
|
|
|
15
15
|
* change current account's password
|
|
16
16
|
*/
|
|
17
17
|
changepassword: (old_password: string, new_password: string) => Promise<IAccount>;
|
|
18
|
-
create: (name: string, email: string, password: string, role_id:
|
|
18
|
+
create: (name: string, email: string, password: string, role_id: string) => Promise<IAccount>;
|
|
19
19
|
edit: (payload: IEditAccountPayload) => Promise<IAccount>;
|
|
20
20
|
delete: (id: string) => Promise<void>;
|
|
21
21
|
};
|
|
@@ -2,7 +2,7 @@ export interface IAccount {
|
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
email: string;
|
|
5
|
-
role_id:
|
|
5
|
+
role_id: string;
|
|
6
6
|
create_time: string;
|
|
7
7
|
update_time: string;
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@ export interface IEditAccountPayload {
|
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
12
|
email: string;
|
|
13
|
-
role_id:
|
|
13
|
+
role_id: string;
|
|
14
14
|
reset_password: boolean;
|
|
15
15
|
new_password?: string;
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import { IAPIKey } from './api-key.typed';
|
|
|
2
2
|
import { PaginationResponse } from './types';
|
|
3
3
|
export declare const api_key: {
|
|
4
4
|
list: () => Promise<PaginationResponse<IAPIKey>>;
|
|
5
|
-
create: (name: string, role_id:
|
|
5
|
+
create: (name: string, role_id: string) => Promise<{
|
|
6
6
|
app_id: string;
|
|
7
7
|
app_secret: string;
|
|
8
8
|
}>;
|
|
@@ -11,7 +11,7 @@ export declare const APICaller: {
|
|
|
11
11
|
get: () => Promise<import("./account.typed").IAccount>;
|
|
12
12
|
update: (name: string, email: string) => Promise<import("./account.typed").IAccount>;
|
|
13
13
|
changepassword: (old_password: string, new_password: string) => Promise<import("./account.typed").IAccount>;
|
|
14
|
-
create: (name: string, email: string, password: string, role_id:
|
|
14
|
+
create: (name: string, email: string, password: string, role_id: string) => Promise<import("./account.typed").IAccount>;
|
|
15
15
|
edit: (payload: import("./account.typed").IEditAccountPayload) => Promise<import("./account.typed").IAccount>;
|
|
16
16
|
delete: (id: string) => Promise<void>;
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@ export declare const APICaller: {
|
|
|
20
20
|
};
|
|
21
21
|
api_key: {
|
|
22
22
|
list: () => Promise<import("./types").PaginationResponse<import("./api-key.typed").IAPIKey>>;
|
|
23
|
-
create: (name: string, role_id:
|
|
23
|
+
create: (name: string, role_id: string) => Promise<{
|
|
24
24
|
app_id: string;
|
|
25
25
|
app_secret: string;
|
|
26
26
|
}>;
|
|
@@ -3,7 +3,7 @@ import { IStyles } from './styles';
|
|
|
3
3
|
interface IAddAPIKey {
|
|
4
4
|
styles?: IStyles;
|
|
5
5
|
onSuccess: () => void;
|
|
6
|
-
initialRoleID:
|
|
6
|
+
initialRoleID: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function AddAPIKey({ onSuccess, styles, initialRoleID }: IAddAPIKey): JSX.Element;
|
|
9
9
|
export {};
|