@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 ? 'apps?onlyDeployed=true' : 'apps';
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(`apps/${appId}/activate`, {});
2174
+ return HttpClient.Instance().client.post(`module/${appId}/activate`, {});
2178
2175
  }
2179
2176
  deactivateApp(appId) {
2180
- return HttpClient.Instance().client.post(`apps/${appId}/deactivate`, {});
2177
+ return HttpClient.Instance().client.post(`module/${appId}/deactivate`, {});
2181
2178
  }
2182
2179
  installApp(data) {
2183
- return HttpClient.Instance().client.post(`apps/install`, data, {
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(`apps/${appId}/upgrade`, data, {
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(`apps/${appId}/uninstall`);
2194
+ return HttpClient.Instance().client.delete(`module/${appId}/uninstall`);
2198
2195
  }
2199
2196
  installEmbeddedModule(data) {
2200
- return HttpClient.Instance().client.post(`apps/install/embedded`, data);
2197
+ return HttpClient.Instance().client.post(`module/install/embedded`, data);
2201
2198
  }
2202
2199
  }
2203
2200
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@fluxo-dev/state": "0.0.27"
6
+ "@fluxo-dev/state": "0.0.28"
7
7
  },
8
8
  "main": "./index.cjs.js"
9
9
  }
@@ -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
  }