@atomsolution/sdk-merchant 1.1.1 → 1.3.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/components/role/PermissionCheckboxGroup.d.ts +2 -1
- package/dist/index.cjs +106 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +106 -135
- package/dist/index.esm.js.map +1 -1
- package/dist/services/roleService.d.ts +1 -5
- package/dist/style.css +3 -0
- package/dist/types/role.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiRolePayload
|
|
1
|
+
import { ApiRolePayload } from '../types/role';
|
|
2
2
|
export interface RoleListResponse {
|
|
3
3
|
data: TRole[];
|
|
4
4
|
errors: string | null;
|
|
@@ -36,8 +36,4 @@ export declare const createRoleService: (axiosClientPortal: any) => {
|
|
|
36
36
|
success: boolean;
|
|
37
37
|
message?: string;
|
|
38
38
|
}>;
|
|
39
|
-
validateRoleData: (data: RoleFormData) => {
|
|
40
|
-
isValid: boolean;
|
|
41
|
-
errors: string[];
|
|
42
|
-
};
|
|
43
39
|
};
|
package/dist/style.css
CHANGED
package/dist/types/role.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export interface Permission {
|
|
2
|
-
|
|
2
|
+
code: string;
|
|
3
3
|
label: string;
|
|
4
4
|
is_primary: boolean;
|
|
5
5
|
active: boolean;
|
|
6
6
|
max: number | null;
|
|
7
7
|
}
|
|
8
8
|
export interface PermissionSubGroup {
|
|
9
|
-
|
|
9
|
+
code: string;
|
|
10
10
|
label: string;
|
|
11
11
|
permissions: Permission[];
|
|
12
12
|
}
|
|
13
13
|
export interface PermissionGroup {
|
|
14
|
-
|
|
14
|
+
code: string;
|
|
15
15
|
label: string;
|
|
16
16
|
isNested?: boolean;
|
|
17
17
|
permissions?: Permission[];
|