@loopstack/remote-file-explorer-module 0.22.3 → 0.22.4
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/controllers/remote-file-explorer.controller.d.ts +4 -4
- package/dist/controllers/remote-file-explorer.controller.d.ts.map +1 -1
- package/dist/controllers/remote-file-explorer.controller.js +2 -2
- package/dist/controllers/remote-file-explorer.controller.js.map +1 -1
- package/dist/remote-file-explorer.module.js +2 -2
- package/dist/remote-file-explorer.module.js.map +1 -1
- package/package.json +5 -5
- package/src/controllers/remote-file-explorer.controller.ts +2 -2
- package/src/remote-file-explorer.module.ts +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
2
|
import { CurrentUserInterface, WorkspaceEntity } from '@loopstack/common';
|
|
3
|
-
import {
|
|
3
|
+
import { RemoteClient } from '@loopstack/remote-client';
|
|
4
4
|
export declare class RemoteFileExplorerController {
|
|
5
5
|
private readonly remoteAgentClient;
|
|
6
6
|
private readonly workspaceRepository;
|
|
7
|
-
constructor(remoteAgentClient:
|
|
7
|
+
constructor(remoteAgentClient: RemoteClient, workspaceRepository: Repository<WorkspaceEntity>);
|
|
8
8
|
private getAgentUrl;
|
|
9
|
-
getFileTree(workspaceId: string, basePath: string | undefined, user: CurrentUserInterface): Promise<import("@loopstack/remote-
|
|
10
|
-
readFile(workspaceId: string, filePath: string, user: CurrentUserInterface): Promise<import("@loopstack/remote-
|
|
9
|
+
getFileTree(workspaceId: string, basePath: string | undefined, user: CurrentUserInterface): Promise<import("@loopstack/remote-client/dist/services/remote-client.service").FileTreeNode[]>;
|
|
10
|
+
readFile(workspaceId: string, filePath: string, user: CurrentUserInterface): Promise<import("@loopstack/remote-client").FileReadResponse>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=remote-file-explorer.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,qBAGa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAFnB,iBAAiB,EAAE,YAAY,EAE/B,mBAAmB,EAAE,UAAU,CAAC,eAAe,CAAC;YAGrD,WAAW;IAmBnB,WAAW,CACO,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,oBAAoB;IAOrC,QAAQ,CACU,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,oBAAoB;CAK5C"}
|
|
@@ -18,7 +18,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
18
18
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
19
|
const typeorm_2 = require("typeorm");
|
|
20
20
|
const common_2 = require("@loopstack/common");
|
|
21
|
-
const
|
|
21
|
+
const remote_client_1 = require("@loopstack/remote-client");
|
|
22
22
|
let RemoteFileExplorerController = class RemoteFileExplorerController {
|
|
23
23
|
remoteAgentClient;
|
|
24
24
|
workspaceRepository;
|
|
@@ -73,7 +73,7 @@ exports.RemoteFileExplorerController = RemoteFileExplorerController = __decorate
|
|
|
73
73
|
(0, common_1.UsePipes)(new common_1.ValidationPipe({ transform: true, whitelist: true, forbidNonWhitelisted: true })),
|
|
74
74
|
(0, common_1.Controller)('api/v1/workspaces/:workspaceId/files'),
|
|
75
75
|
__param(1, (0, typeorm_1.InjectRepository)(common_2.WorkspaceEntity)),
|
|
76
|
-
__metadata("design:paramtypes", [
|
|
76
|
+
__metadata("design:paramtypes", [remote_client_1.RemoteClient,
|
|
77
77
|
typeorm_2.Repository])
|
|
78
78
|
], RemoteFileExplorerController);
|
|
79
79
|
//# sourceMappingURL=remote-file-explorer.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4G;AAC5G,6CAA0C;AAC1C,6CAAmD;AACnD,qCAAqC;AACrC,8CAAuF;AACvF,
|
|
1
|
+
{"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4G;AAC5G,6CAA0C;AAC1C,6CAAmD;AACnD,qCAAqC;AACrC,8CAAuF;AACvF,4DAAwD;AAKjD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEpB;IAEA;IAHnB,YACmB,iBAA+B,EAE/B,mBAAgD;QAFhD,sBAAiB,GAAjB,iBAAiB,CAAc;QAE/B,wBAAmB,GAAnB,mBAAmB,CAA6B;IAChE,CAAC;IAEI,KAAK,CAAC,WAAW,CAAC,WAAmB,EAAE,MAAc;QAC3D,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE;YAC7C,SAAS,EAAE,CAAC,cAAc,CAAC;SAC5B,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,EA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AC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,oBAAW,GAAE,CAAA;;;;4DAIf;uCA3CU,4BAA4B;IAHxC,IAAA,iBAAO,EAAC,sCAAsC,CAAC;IAC/C,IAAA,iBAAQ,EAAC,IAAI,uBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,IAAA,mBAAU,EAAC,sCAAsC,CAAC;IAI9C,WAAA,IAAA,0BAAgB,EAAC,wBAAe,CAAC,CAAA;qCADE,4BAAY;QAEV,oBAAU;GAJvC,4BAA4B,CA4CxC"}
|
|
@@ -11,14 +11,14 @@ const common_1 = require("@nestjs/common");
|
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
12
|
const common_2 = require("@loopstack/common");
|
|
13
13
|
const core_1 = require("@loopstack/core");
|
|
14
|
-
const
|
|
14
|
+
const remote_client_1 = require("@loopstack/remote-client");
|
|
15
15
|
const controllers_1 = require("./controllers");
|
|
16
16
|
let RemoteFileExplorerModule = class RemoteFileExplorerModule {
|
|
17
17
|
};
|
|
18
18
|
exports.RemoteFileExplorerModule = RemoteFileExplorerModule;
|
|
19
19
|
exports.RemoteFileExplorerModule = RemoteFileExplorerModule = __decorate([
|
|
20
20
|
(0, common_1.Module)({
|
|
21
|
-
imports: [core_1.LoopCoreModule,
|
|
21
|
+
imports: [core_1.LoopCoreModule, remote_client_1.RemoteClientModule, typeorm_1.TypeOrmModule.forFeature([common_2.WorkspaceEntity])],
|
|
22
22
|
controllers: [controllers_1.RemoteFileExplorerController],
|
|
23
23
|
})
|
|
24
24
|
], RemoteFileExplorerModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-file-explorer.module.js","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,8CAAoD;AACpD,0CAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"remote-file-explorer.module.js","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,8CAAoD;AACpD,0CAAiD;AACjD,4DAA8D;AAC9D,+CAA6D;AAMtD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAJpC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAc,EAAE,kCAAkB,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,wBAAe,CAAC,CAAC,CAAC;QAC1F,WAAW,EAAE,CAAC,0CAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAG"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"remote-agent",
|
|
9
9
|
"workflow"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.22.
|
|
11
|
+
"version": "0.22.4",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "Jakob Klippel",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"watch": "nest build --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@loopstack/common": "^0.
|
|
33
|
-
"@loopstack/core": "^0.
|
|
34
|
-
"@loopstack/remote-
|
|
32
|
+
"@loopstack/common": "^0.27.0",
|
|
33
|
+
"@loopstack/core": "^0.27.0",
|
|
34
|
+
"@loopstack/remote-client": "^0.23.2",
|
|
35
35
|
"@nestjs/common": "^11.1.19",
|
|
36
36
|
"@nestjs/typeorm": "^11.0.1",
|
|
37
|
-
"typeorm": "^0.3.
|
|
37
|
+
"typeorm": "^0.3.28"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|
|
@@ -3,14 +3,14 @@ import { ApiTags } from '@nestjs/swagger';
|
|
|
3
3
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
4
4
|
import { Repository } from 'typeorm';
|
|
5
5
|
import { CurrentUser, CurrentUserInterface, WorkspaceEntity } from '@loopstack/common';
|
|
6
|
-
import {
|
|
6
|
+
import { RemoteClient } from '@loopstack/remote-client';
|
|
7
7
|
|
|
8
8
|
@ApiTags('api/v1/workspaces/:workspaceId/files')
|
|
9
9
|
@UsePipes(new ValidationPipe({ transform: true, whitelist: true, forbidNonWhitelisted: true }))
|
|
10
10
|
@Controller('api/v1/workspaces/:workspaceId/files')
|
|
11
11
|
export class RemoteFileExplorerController {
|
|
12
12
|
constructor(
|
|
13
|
-
private readonly remoteAgentClient:
|
|
13
|
+
private readonly remoteAgentClient: RemoteClient,
|
|
14
14
|
@InjectRepository(WorkspaceEntity)
|
|
15
15
|
private readonly workspaceRepository: Repository<WorkspaceEntity>,
|
|
16
16
|
) {}
|
|
@@ -2,11 +2,11 @@ import { Module } from '@nestjs/common';
|
|
|
2
2
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
3
3
|
import { WorkspaceEntity } from '@loopstack/common';
|
|
4
4
|
import { LoopCoreModule } from '@loopstack/core';
|
|
5
|
-
import {
|
|
5
|
+
import { RemoteClientModule } from '@loopstack/remote-client';
|
|
6
6
|
import { RemoteFileExplorerController } from './controllers';
|
|
7
7
|
|
|
8
8
|
@Module({
|
|
9
|
-
imports: [LoopCoreModule,
|
|
9
|
+
imports: [LoopCoreModule, RemoteClientModule, TypeOrmModule.forFeature([WorkspaceEntity])],
|
|
10
10
|
controllers: [RemoteFileExplorerController],
|
|
11
11
|
})
|
|
12
12
|
export class RemoteFileExplorerModule {}
|