@bpinhosilva/agent-orchestrator 1.0.0-alpha.6 → 1.0.0-alpha.8
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/CHANGELOG.md +14 -0
- package/dist/app.module.js +3 -2
- package/dist/src/app.module.js +3 -2
- package/dist/src/app.module.js.map +1 -1
- package/dist/src/tasks/dto/create-task.dto.d.ts +1 -0
- package/dist/src/tasks/dto/create-task.dto.js +6 -0
- package/dist/src/tasks/dto/create-task.dto.js.map +1 -1
- package/dist/src/tasks/entities/task.entity.d.ts +1 -0
- package/dist/src/tasks/entities/task.entity.js +5 -0
- package/dist/src/tasks/entities/task.entity.js.map +1 -1
- package/dist/src/users/dto/create-user.dto.d.ts +3 -0
- package/dist/src/users/dto/create-user.dto.js +23 -0
- package/dist/src/users/dto/create-user.dto.js.map +1 -0
- package/dist/src/users/dto/update-user.dto.d.ts +5 -0
- package/dist/src/users/dto/update-user.dto.js +9 -0
- package/dist/src/users/dto/update-user.dto.js.map +1 -0
- package/dist/src/users/entities/user.entity.d.ts +6 -0
- package/dist/src/users/entities/user.entity.js +40 -0
- package/dist/src/users/entities/user.entity.js.map +1 -0
- package/dist/src/users/users.controller.d.ts +12 -0
- package/dist/src/users/users.controller.js +83 -0
- package/dist/src/users/users.controller.js.map +1 -0
- package/dist/src/users/users.module.d.ts +2 -0
- package/dist/src/users/users.module.js +26 -0
- package/dist/src/users/users.module.js.map +1 -0
- package/dist/src/users/users.service.d.ts +13 -0
- package/dist/src/users/users.service.js +58 -0
- package/dist/src/users/users.service.js.map +1 -0
- package/dist/tasks/dto/create-task.dto.js +5 -0
- package/dist/tasks/entities/task.entity.js +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/users/dto/create-user.dto.js +21 -0
- package/dist/users/dto/update-user.dto.js +8 -0
- package/dist/users/entities/user.entity.js +35 -0
- package/dist/users/users.controller.js +81 -0
- package/dist/users/users.module.js +25 -0
- package/dist/users/users.service.js +56 -0
- package/package.json +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.0.0-alpha.8](https://github.com/bpinhosilva/agent-orchestrator/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2026-03-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add initial user interface for agent management and orchestration ([7a27019](https://github.com/bpinhosilva/agent-orchestrator/commit/7a270197691453384e5827987574f94e93cad7fb))
|
|
7
|
+
|
|
8
|
+
# [1.0.0-alpha.7](https://github.com/bpinhosilva/agent-orchestrator/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2026-03-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add user management module, introduce task output field, and include a design document ([7d0717d](https://github.com/bpinhosilva/agent-orchestrator/commit/7d0717d5a566435641e46b2f4b40101df0f62ed6))
|
|
14
|
+
|
|
1
15
|
# [1.0.0-alpha.6](https://github.com/bpinhosilva/agent-orchestrator/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2026-03-21)
|
|
2
16
|
|
|
3
17
|
|
package/dist/app.module.js
CHANGED
|
@@ -18,6 +18,7 @@ const providers_module_1 = require("./providers/providers.module");
|
|
|
18
18
|
const models_module_1 = require("./models/models.module");
|
|
19
19
|
const tasks_module_1 = require("./tasks/tasks.module");
|
|
20
20
|
const projects_module_1 = require("./projects/projects.module");
|
|
21
|
+
const users_module_1 = require("./users/users.module");
|
|
21
22
|
let AppModule = class AppModule {
|
|
22
23
|
};
|
|
23
24
|
exports.AppModule = AppModule;
|
|
@@ -34,14 +35,14 @@ exports.AppModule = AppModule = __decorate([
|
|
|
34
35
|
synchronize: true, // Use only in development
|
|
35
36
|
}),
|
|
36
37
|
serve_static_1.ServeStaticModule.forRoot({
|
|
37
|
-
rootPath: (0, path_1.join)(__dirname, '..', '
|
|
38
|
-
exclude: ['/api*'],
|
|
38
|
+
rootPath: (0, path_1.join)(__dirname, '..', '..', 'ui', 'dist'),
|
|
39
39
|
}),
|
|
40
40
|
agents_module_1.AgentsModule,
|
|
41
41
|
providers_module_1.ProvidersModule,
|
|
42
42
|
models_module_1.ModelsModule,
|
|
43
43
|
tasks_module_1.TasksModule,
|
|
44
44
|
projects_module_1.ProjectsModule,
|
|
45
|
+
users_module_1.UsersModule,
|
|
45
46
|
],
|
|
46
47
|
controllers: [app_controller_1.AppController],
|
|
47
48
|
providers: [app_service_1.AppService],
|
package/dist/src/app.module.js
CHANGED
|
@@ -18,6 +18,7 @@ const providers_module_1 = require("./providers/providers.module");
|
|
|
18
18
|
const models_module_1 = require("./models/models.module");
|
|
19
19
|
const tasks_module_1 = require("./tasks/tasks.module");
|
|
20
20
|
const projects_module_1 = require("./projects/projects.module");
|
|
21
|
+
const users_module_1 = require("./users/users.module");
|
|
21
22
|
let AppModule = class AppModule {
|
|
22
23
|
};
|
|
23
24
|
exports.AppModule = AppModule;
|
|
@@ -34,14 +35,14 @@ exports.AppModule = AppModule = __decorate([
|
|
|
34
35
|
synchronize: true,
|
|
35
36
|
}),
|
|
36
37
|
serve_static_1.ServeStaticModule.forRoot({
|
|
37
|
-
rootPath: (0, path_1.join)(__dirname, '..', '
|
|
38
|
-
exclude: ['/api*'],
|
|
38
|
+
rootPath: (0, path_1.join)(__dirname, '..', '..', 'ui', 'dist'),
|
|
39
39
|
}),
|
|
40
40
|
agents_module_1.AgentsModule,
|
|
41
41
|
providers_module_1.ProvidersModule,
|
|
42
42
|
models_module_1.ModelsModule,
|
|
43
43
|
tasks_module_1.TasksModule,
|
|
44
44
|
projects_module_1.ProjectsModule,
|
|
45
|
+
users_module_1.UsersModule,
|
|
45
46
|
],
|
|
46
47
|
controllers: [app_controller_1.AppController],
|
|
47
48
|
providers: [app_service_1.AppService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../src/app.module.ts"],"names":[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AE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG"}
|
|
@@ -17,6 +17,7 @@ class CreateTaskDto {
|
|
|
17
17
|
description;
|
|
18
18
|
status;
|
|
19
19
|
priority;
|
|
20
|
+
output;
|
|
20
21
|
assigneeId;
|
|
21
22
|
projectId;
|
|
22
23
|
}
|
|
@@ -41,6 +42,11 @@ __decorate([
|
|
|
41
42
|
(0, class_validator_1.IsOptional)(),
|
|
42
43
|
__metadata("design:type", Number)
|
|
43
44
|
], CreateTaskDto.prototype, "priority", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateTaskDto.prototype, "output", void 0);
|
|
44
50
|
__decorate([
|
|
45
51
|
(0, class_validator_1.IsUUID)(),
|
|
46
52
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task.dto.js","sourceRoot":"","sources":["../../../../src/tasks/dto/create-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAmE;AAEnE,MAAa,aAAa;IAGxB,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAc;IAIpB,QAAQ,CAAgB;IAIxB,UAAU,CAAU;IAIpB,SAAS,CAAS;CACnB;
|
|
1
|
+
{"version":3,"file":"create-task.dto.js","sourceRoot":"","sources":["../../../../src/tasks/dto/create-task.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,yDAAmE;AAEnE,MAAa,aAAa;IAGxB,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAc;IAIpB,QAAQ,CAAgB;IAIxB,MAAM,CAAU;IAIhB,UAAU,CAAU;IAIpB,SAAS,CAAS;CACnB;AA5BD,sCA4BC;AAzBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACC;AAId;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,wBAAU,CAAC;IAClB,IAAA,4BAAU,GAAE;;6CACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,0BAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;+CACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACG;AAIhB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;iDACO;AAIpB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;gDACK"}
|
|
@@ -33,6 +33,7 @@ let Task = class Task {
|
|
|
33
33
|
description;
|
|
34
34
|
status;
|
|
35
35
|
priority;
|
|
36
|
+
output;
|
|
36
37
|
assignee;
|
|
37
38
|
project;
|
|
38
39
|
createdAt;
|
|
@@ -67,6 +68,10 @@ __decorate([
|
|
|
67
68
|
}),
|
|
68
69
|
__metadata("design:type", Number)
|
|
69
70
|
], Task.prototype, "priority", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Task.prototype, "output", void 0);
|
|
70
75
|
__decorate([
|
|
71
76
|
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, { nullable: true, eager: true, onDelete: 'SET NULL' }),
|
|
72
77
|
__metadata("design:type", agent_entity_1.Agent)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.entity.js","sourceRoot":"","sources":["../../../../src/tasks/entities/task.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,qEAA2D;AAC3D,2EAAiE;AAEjE,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,+BAAiB,CAAA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;;mCACK;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;yCACK;AAOpB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,UAAU,CAAC,OAAO;KAC5B,CAAC;;oCACiB;AAOnB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,YAAY,CAAC,MAAM;KAC7B,CAAC;;sCACqB;AAGvB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACnB;AAGhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BACpE,oBAAK;sCAAC;AAOhB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACxB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,wBAAO;qCAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;uCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;uCAAC;eAzCL,IAAI;IADhB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,IAAI,CA0ChB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateUserDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateUserDto {
|
|
15
|
+
name;
|
|
16
|
+
}
|
|
17
|
+
exports.CreateUserDto = CreateUserDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateUserDto.prototype, "name", void 0);
|
|
23
|
+
//# sourceMappingURL=create-user.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../src/users/dto/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,aAAa;IAGxB,IAAI,CAAS;CACd;AAJD,sCAIC;AADC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateUserDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_user_dto_1 = require("./create-user.dto");
|
|
6
|
+
class UpdateUserDto extends (0, mapped_types_1.PartialType)(create_user_dto_1.CreateUserDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateUserDto = UpdateUserDto;
|
|
9
|
+
//# sourceMappingURL=update-user.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user.dto.js","sourceRoot":"","sources":["../../../../src/users/dto/update-user.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,uDAAkD;AAElD,MAAa,aAAc,SAAQ,IAAA,0BAAW,EAAC,+BAAa,CAAC;CAAG;AAAhE,sCAAgE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.User = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let User = class User {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
createdAt;
|
|
18
|
+
updatedAt;
|
|
19
|
+
};
|
|
20
|
+
exports.User = User;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], User.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], User.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], User.prototype, "createdAt", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], User.prototype, "updatedAt", void 0);
|
|
37
|
+
exports.User = User = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)('users')
|
|
39
|
+
], User);
|
|
40
|
+
//# sourceMappingURL=user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../src/users/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAGV,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,SAAS,CAAO;IAGhB,SAAS,CAAO;CACjB,CAAA;AAZY,oBAAI;AAEf;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gCACpB;AAGX;IADC,IAAA,gBAAM,GAAE;;kCACI;AAGb;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;uCAAC;AAGhB;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;uCAAC;eAXL,IAAI;IADhB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,IAAI,CAYhB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UsersService } from './users.service';
|
|
2
|
+
import { CreateUserDto } from './dto/create-user.dto';
|
|
3
|
+
import { UpdateUserDto } from './dto/update-user.dto';
|
|
4
|
+
export declare class UsersController {
|
|
5
|
+
private readonly usersService;
|
|
6
|
+
constructor(usersService: UsersService);
|
|
7
|
+
create(createUserDto: CreateUserDto): Promise<import("./entities/user.entity").User>;
|
|
8
|
+
findAll(): Promise<import("./entities/user.entity").User[]>;
|
|
9
|
+
findOne(id: string): Promise<import("./entities/user.entity").User>;
|
|
10
|
+
update(id: string, updateUserDto: UpdateUserDto): Promise<import("./entities/user.entity").User>;
|
|
11
|
+
remove(id: string): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UsersController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const users_service_1 = require("./users.service");
|
|
18
|
+
const create_user_dto_1 = require("./dto/create-user.dto");
|
|
19
|
+
const update_user_dto_1 = require("./dto/update-user.dto");
|
|
20
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
|
+
let UsersController = class UsersController {
|
|
22
|
+
usersService;
|
|
23
|
+
constructor(usersService) {
|
|
24
|
+
this.usersService = usersService;
|
|
25
|
+
}
|
|
26
|
+
create(createUserDto) {
|
|
27
|
+
return this.usersService.create(createUserDto);
|
|
28
|
+
}
|
|
29
|
+
findAll() {
|
|
30
|
+
return this.usersService.findAll();
|
|
31
|
+
}
|
|
32
|
+
findOne(id) {
|
|
33
|
+
return this.usersService.findOne(id);
|
|
34
|
+
}
|
|
35
|
+
update(id, updateUserDto) {
|
|
36
|
+
return this.usersService.update(id, updateUserDto);
|
|
37
|
+
}
|
|
38
|
+
remove(id) {
|
|
39
|
+
return this.usersService.remove(id);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.UsersController = UsersController;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, common_1.Post)(),
|
|
45
|
+
__param(0, (0, common_1.Body)()),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [create_user_dto_1.CreateUserDto]),
|
|
48
|
+
__metadata("design:returntype", void 0)
|
|
49
|
+
], UsersController.prototype, "create", null);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, common_1.Get)(),
|
|
52
|
+
__metadata("design:type", Function),
|
|
53
|
+
__metadata("design:paramtypes", []),
|
|
54
|
+
__metadata("design:returntype", void 0)
|
|
55
|
+
], UsersController.prototype, "findAll", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, common_1.Get)(':id'),
|
|
58
|
+
__param(0, (0, common_1.Param)('id')),
|
|
59
|
+
__metadata("design:type", Function),
|
|
60
|
+
__metadata("design:paramtypes", [String]),
|
|
61
|
+
__metadata("design:returntype", void 0)
|
|
62
|
+
], UsersController.prototype, "findOne", null);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, common_1.Patch)(':id'),
|
|
65
|
+
__param(0, (0, common_1.Param)('id')),
|
|
66
|
+
__param(1, (0, common_1.Body)()),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [String, update_user_dto_1.UpdateUserDto]),
|
|
69
|
+
__metadata("design:returntype", void 0)
|
|
70
|
+
], UsersController.prototype, "update", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, common_1.Delete)(':id'),
|
|
73
|
+
__param(0, (0, common_1.Param)('id')),
|
|
74
|
+
__metadata("design:type", Function),
|
|
75
|
+
__metadata("design:paramtypes", [String]),
|
|
76
|
+
__metadata("design:returntype", void 0)
|
|
77
|
+
], UsersController.prototype, "remove", null);
|
|
78
|
+
exports.UsersController = UsersController = __decorate([
|
|
79
|
+
(0, swagger_1.ApiTags)('users'),
|
|
80
|
+
(0, common_1.Controller)('users'),
|
|
81
|
+
__metadata("design:paramtypes", [users_service_1.UsersService])
|
|
82
|
+
], UsersController);
|
|
83
|
+
//# sourceMappingURL=users.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../src/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,mDAA+C;AAC/C,2DAAsD;AACtD,2DAAsD;AACtD,6CAA0C;AAInC,IAAM,eAAe,GAArB,MAAM,eAAe;IACG;IAA7B,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAG3D,MAAM,CAAS,aAA4B;QACzC,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACjD,CAAC;IAGD,OAAO;QACL,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IACrC,CAAC;IAGD,OAAO,CAAc,EAAU;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IAGD,MAAM,CAAc,EAAU,EAAU,aAA4B;QAClE,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;IACrD,CAAC;IAGD,MAAM,CAAc,EAAU;QAC5B,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;CACF,CAAA;AA3BY,0CAAe;AAI1B;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAgB,+BAAa;;6CAE1C;AAGD;IADC,IAAA,YAAG,GAAE;;;;8CAGL;AAGD;IADC,IAAA,YAAG,EAAC,KAAK,CAAC;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8CAEnB;AAGD;IADC,IAAA,cAAK,EAAC,KAAK,CAAC;IACL,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAgB,+BAAa;;6CAEnE;AAGD;IADC,IAAA,eAAM,EAAC,KAAK,CAAC;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;6CAElB;0BA1BU,eAAe;IAF3B,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,OAAO,CAAC;qCAEyB,4BAAY;GAD5C,eAAe,CA2B3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.UsersModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const users_service_1 = require("./users.service");
|
|
13
|
+
const users_controller_1 = require("./users.controller");
|
|
14
|
+
const user_entity_1 = require("./entities/user.entity");
|
|
15
|
+
let UsersModule = class UsersModule {
|
|
16
|
+
};
|
|
17
|
+
exports.UsersModule = UsersModule;
|
|
18
|
+
exports.UsersModule = UsersModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [typeorm_1.TypeOrmModule.forFeature([user_entity_1.User])],
|
|
21
|
+
controllers: [users_controller_1.UsersController],
|
|
22
|
+
providers: [users_service_1.UsersService],
|
|
23
|
+
exports: [users_service_1.UsersService],
|
|
24
|
+
})
|
|
25
|
+
], UsersModule);
|
|
26
|
+
//# sourceMappingURL=users.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.module.js","sourceRoot":"","sources":["../../../src/users/users.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,mDAA+C;AAC/C,yDAAqD;AACrD,wDAA8C;AAQvC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IANvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,kBAAI,CAAC,CAAC,CAAC;QAC3C,WAAW,EAAE,CAAC,kCAAe,CAAC;QAC9B,SAAS,EAAE,CAAC,4BAAY,CAAC;QACzB,OAAO,EAAE,CAAC,4BAAY,CAAC;KACxB,CAAC;GACW,WAAW,CAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Repository } from 'typeorm';
|
|
2
|
+
import { CreateUserDto } from './dto/create-user.dto';
|
|
3
|
+
import { UpdateUserDto } from './dto/update-user.dto';
|
|
4
|
+
import { User } from './entities/user.entity';
|
|
5
|
+
export declare class UsersService {
|
|
6
|
+
private readonly userRepository;
|
|
7
|
+
constructor(userRepository: Repository<User>);
|
|
8
|
+
create(createUserDto: CreateUserDto): Promise<User>;
|
|
9
|
+
findAll(): Promise<User[]>;
|
|
10
|
+
findOne(id: string): Promise<User>;
|
|
11
|
+
update(id: string, updateUserDto: UpdateUserDto): Promise<User>;
|
|
12
|
+
remove(id: string): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UsersService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
+
const typeorm_2 = require("typeorm");
|
|
19
|
+
const user_entity_1 = require("./entities/user.entity");
|
|
20
|
+
let UsersService = class UsersService {
|
|
21
|
+
userRepository;
|
|
22
|
+
constructor(userRepository) {
|
|
23
|
+
this.userRepository = userRepository;
|
|
24
|
+
}
|
|
25
|
+
async create(createUserDto) {
|
|
26
|
+
const user = this.userRepository.create(createUserDto);
|
|
27
|
+
return this.userRepository.save(user);
|
|
28
|
+
}
|
|
29
|
+
async findAll() {
|
|
30
|
+
return this.userRepository.find();
|
|
31
|
+
}
|
|
32
|
+
async findOne(id) {
|
|
33
|
+
const user = await this.userRepository.findOne({ where: { id } });
|
|
34
|
+
if (!user) {
|
|
35
|
+
throw new common_1.NotFoundException(`User with ID ${id} not found`);
|
|
36
|
+
}
|
|
37
|
+
return user;
|
|
38
|
+
}
|
|
39
|
+
async update(id, updateUserDto) {
|
|
40
|
+
const user = await this.findOne(id);
|
|
41
|
+
const updatedUser = await this.userRepository.save({
|
|
42
|
+
...user,
|
|
43
|
+
...updateUserDto,
|
|
44
|
+
});
|
|
45
|
+
return updatedUser;
|
|
46
|
+
}
|
|
47
|
+
async remove(id) {
|
|
48
|
+
const user = await this.findOne(id);
|
|
49
|
+
await this.userRepository.remove(user);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.UsersService = UsersService;
|
|
53
|
+
exports.UsersService = UsersService = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__param(0, (0, typeorm_1.InjectRepository)(user_entity_1.User)),
|
|
56
|
+
__metadata("design:paramtypes", [typeorm_2.Repository])
|
|
57
|
+
], UsersService);
|
|
58
|
+
//# sourceMappingURL=users.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.service.js","sourceRoot":"","sources":["../../../src/users/users.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+D;AAC/D,6CAAmD;AACnD,qCAAqC;AAGrC,wDAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGJ;IAFnB,YAEmB,cAAgC;QAAhC,mBAAc,GAAd,cAAc,CAAkB;IAChD,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,aAA4B;QACvC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,aAA4B;QACnD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;YACjD,GAAG,IAAI;YACP,GAAG,aAAa;SACjB,CAAC,CAAC;QACH,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CACF,CAAA;AArCY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,kBAAI,CAAC,CAAA;qCACU,oBAAU;GAHlC,YAAY,CAqCxB"}
|
|
@@ -35,6 +35,11 @@ __decorate([
|
|
|
35
35
|
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
__metadata("design:type", Number)
|
|
37
37
|
], CreateTaskDto.prototype, "priority", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateTaskDto.prototype, "output", void 0);
|
|
38
43
|
__decorate([
|
|
39
44
|
(0, class_validator_1.IsUUID)(),
|
|
40
45
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -58,6 +58,10 @@ __decorate([
|
|
|
58
58
|
}),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
60
|
], Task.prototype, "priority", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Task.prototype, "output", void 0);
|
|
61
65
|
__decorate([
|
|
62
66
|
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, { nullable: true, eager: true, onDelete: 'SET NULL' }),
|
|
63
67
|
__metadata("design:type", agent_entity_1.Agent)
|