@kumori/aurora-backend-handler 1.1.29 → 1.1.31
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/api/tenant-api-service.ts +8 -0
- package/backend-handler.ts +2 -0
- package/package.json +1 -1
|
@@ -524,6 +524,14 @@ export const updateTenantHTTP = async (tenant: Tenant) => {
|
|
|
524
524
|
eventHelper.notification.publish.creation(tenantUpdateErrorNotification);
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
|
+
export const listTenantsHTTP = () => {
|
|
528
|
+
const url = new URL(
|
|
529
|
+
`${environment.apiServer.baseUrl}/api/${environment.apiServer.apiVersion}/tenant`
|
|
530
|
+
);
|
|
531
|
+
const response = fetch(url.toString(), {
|
|
532
|
+
method: "GET",
|
|
533
|
+
});
|
|
534
|
+
}
|
|
527
535
|
|
|
528
536
|
export const createRegistry = async (
|
|
529
537
|
tenant: Tenant,
|
package/backend-handler.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
deleteTenant,
|
|
38
38
|
deleteToken,
|
|
39
39
|
inviteUser,
|
|
40
|
+
listTenantsHTTP,
|
|
40
41
|
rejectInvite,
|
|
41
42
|
removeUser,
|
|
42
43
|
updateRegistry,
|
|
@@ -97,6 +98,7 @@ export class BackendHandler {
|
|
|
97
98
|
"globalEventHandler inválido. Asegúrate de pasar una instancia correcta de EventHandler.",
|
|
98
99
|
);
|
|
99
100
|
}
|
|
101
|
+
listTenantsHTTP();
|
|
100
102
|
eventHelper = new EventHelper(globalEventHandler);
|
|
101
103
|
eventHelper.user.subscribe.load((data: UserData) => {
|
|
102
104
|
initializeGlobalWebSocketClient(token, "", "", data);
|