@fluxo-dev/api-client-base 0.0.27 → 0.0.28
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/index.cjs.js
CHANGED
|
@@ -2056,9 +2056,6 @@ class PermissionService {
|
|
|
2056
2056
|
deletePermissionScope(scope, packageName, namespace) {
|
|
2057
2057
|
return HttpClient.Instance().client.delete(`identity/permissions/scopes/${scope}/${packageName}/${namespace}`);
|
|
2058
2058
|
}
|
|
2059
|
-
installPermissions(data) {
|
|
2060
|
-
return HttpClient.Instance().client.post('apps/permissions/install', data);
|
|
2061
|
-
}
|
|
2062
2059
|
createCustomPermission(data) {
|
|
2063
2060
|
return HttpClient.Instance().client.post('identity/permissions/custom', data);
|
|
2064
2061
|
}
|
|
@@ -2170,34 +2167,34 @@ class KorebiFacade {
|
|
|
2170
2167
|
|
|
2171
2168
|
class AppService {
|
|
2172
2169
|
getApps(onlyDeployed) {
|
|
2173
|
-
const url = onlyDeployed ? '
|
|
2170
|
+
const url = onlyDeployed ? 'module?onlyDeployed=true' : 'apps';
|
|
2174
2171
|
return HttpClient.Instance().client.get(url);
|
|
2175
2172
|
}
|
|
2176
2173
|
activateApp(appId) {
|
|
2177
|
-
return HttpClient.Instance().client.post(`
|
|
2174
|
+
return HttpClient.Instance().client.post(`module/${appId}/activate`, {});
|
|
2178
2175
|
}
|
|
2179
2176
|
deactivateApp(appId) {
|
|
2180
|
-
return HttpClient.Instance().client.post(`
|
|
2177
|
+
return HttpClient.Instance().client.post(`module/${appId}/deactivate`, {});
|
|
2181
2178
|
}
|
|
2182
2179
|
installApp(data) {
|
|
2183
|
-
return HttpClient.Instance().client.post(`
|
|
2180
|
+
return HttpClient.Instance().client.post(`module/install`, data, {
|
|
2184
2181
|
headers: {
|
|
2185
2182
|
"Content-Type": "multipart/form-data"
|
|
2186
2183
|
}
|
|
2187
2184
|
});
|
|
2188
2185
|
}
|
|
2189
2186
|
upgradeApp(appId, data) {
|
|
2190
|
-
return HttpClient.Instance().client.post(`
|
|
2187
|
+
return HttpClient.Instance().client.post(`module/${appId}/upgrade`, data, {
|
|
2191
2188
|
headers: {
|
|
2192
2189
|
"Content-Type": "multipart/form-data"
|
|
2193
2190
|
}
|
|
2194
2191
|
});
|
|
2195
2192
|
}
|
|
2196
2193
|
uninstallApp(appId) {
|
|
2197
|
-
return HttpClient.Instance().client.delete(`
|
|
2194
|
+
return HttpClient.Instance().client.delete(`module/${appId}/uninstall`);
|
|
2198
2195
|
}
|
|
2199
2196
|
installEmbeddedModule(data) {
|
|
2200
|
-
return HttpClient.Instance().client.post(`
|
|
2197
|
+
return HttpClient.Instance().client.post(`module/install/embedded`, data);
|
|
2201
2198
|
}
|
|
2202
2199
|
}
|
|
2203
2200
|
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InstallPermissionCommand } from "./install-permission-command";
|
|
2
1
|
import { Permission } from "./permission";
|
|
3
2
|
import { CreatePermissionScopeCommand } from "./create-permission-scope-command";
|
|
4
3
|
import { PermissionScope } from "./permission-scope";
|
|
@@ -8,7 +7,6 @@ export declare class PermissionService {
|
|
|
8
7
|
getPermissionsInScope(scope: string, packageName: string, namespace: string): Promise<Permission[]>;
|
|
9
8
|
createPermissionScope(data: CreatePermissionScopeCommand): Promise<void>;
|
|
10
9
|
deletePermissionScope(scope: string, packageName: string, namespace: string): Promise<void>;
|
|
11
|
-
installPermissions(data: InstallPermissionCommand): Promise<void>;
|
|
12
10
|
createCustomPermission(data: CreateCustomPermissionCommand): Promise<void>;
|
|
13
11
|
deleteCustomPermission(permissionId: number): Promise<void>;
|
|
14
12
|
}
|