@rebasepro/client 0.2.4 → 0.2.5
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/admin.d.ts +1 -31
- package/dist/index.es.js +0 -28
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +0 -28
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/admin.ts +1 -41
package/dist/index.umd.js
CHANGED
|
@@ -742,29 +742,6 @@
|
|
|
742
742
|
method: "DELETE"
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
async function listRoles() {
|
|
746
|
-
return transport.request(adminPath + "/roles", { method: "GET" });
|
|
747
|
-
}
|
|
748
|
-
async function getRole(roleId) {
|
|
749
|
-
return transport.request(adminPath + "/roles/" + encodeURIComponent(roleId), { method: "GET" });
|
|
750
|
-
}
|
|
751
|
-
async function createRole(data) {
|
|
752
|
-
return transport.request(adminPath + "/roles", {
|
|
753
|
-
method: "POST",
|
|
754
|
-
body: JSON.stringify(data)
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
async function updateRole(roleId, data) {
|
|
758
|
-
return transport.request(adminPath + "/roles/" + encodeURIComponent(roleId), {
|
|
759
|
-
method: "PUT",
|
|
760
|
-
body: JSON.stringify(data)
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
async function deleteRole(roleId) {
|
|
764
|
-
return transport.request(adminPath + "/roles/" + encodeURIComponent(roleId), {
|
|
765
|
-
method: "DELETE"
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
745
|
async function bootstrap() {
|
|
769
746
|
return transport.request(adminPath + "/bootstrap", {
|
|
770
747
|
method: "POST"
|
|
@@ -777,11 +754,6 @@
|
|
|
777
754
|
createUser,
|
|
778
755
|
updateUser,
|
|
779
756
|
deleteUser,
|
|
780
|
-
listRoles,
|
|
781
|
-
getRole,
|
|
782
|
-
createRole,
|
|
783
|
-
updateRole,
|
|
784
|
-
deleteRole,
|
|
785
757
|
bootstrap
|
|
786
758
|
};
|
|
787
759
|
}
|