@loopstack/api 0.3.3 → 0.4.1
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 +21 -0
- package/dist/dtos/pipeline-item.dto.js +1 -2
- package/dist/dtos/pipeline-item.dto.js.map +1 -1
- package/dist/dtos/pipeline.dto.js +1 -2
- package/dist/dtos/pipeline.dto.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/controllers/project.controller.d.ts +0 -25
- package/dist/controllers/project.controller.js +0 -272
- package/dist/controllers/project.controller.js.map +0 -1
- package/dist/dtos/project-config.dto.d.ts +0 -5
- package/dist/dtos/project-config.dto.js +0 -45
- package/dist/dtos/project-config.dto.js.map +0 -1
- package/dist/dtos/project-context.dto.d.ts +0 -2
- package/dist/dtos/project-context.dto.js +0 -7
- package/dist/dtos/project-context.dto.js.map +0 -1
- package/dist/dtos/project-create.dto.d.ts +0 -6
- package/dist/dtos/project-create.dto.js +0 -65
- package/dist/dtos/project-create.dto.js.map +0 -1
- package/dist/dtos/project-filter.dto.d.ts +0 -3
- package/dist/dtos/project-filter.dto.js +0 -25
- package/dist/dtos/project-filter.dto.js.map +0 -1
- package/dist/dtos/project-item.dto.d.ts +0 -13
- package/dist/dtos/project-item.dto.js +0 -110
- package/dist/dtos/project-item.dto.js.map +0 -1
- package/dist/dtos/project-query-dto.d.ts +0 -8
- package/dist/dtos/project-query-dto.js +0 -56
- package/dist/dtos/project-query-dto.js.map +0 -1
- package/dist/dtos/project-sort-by.dto.d.ts +0 -6
- package/dist/dtos/project-sort-by.dto.js +0 -31
- package/dist/dtos/project-sort-by.dto.js.map +0 -1
- package/dist/dtos/project-update.dto.d.ts +0 -4
- package/dist/dtos/project-update.dto.js +0 -47
- package/dist/dtos/project-update.dto.js.map +0 -1
- package/dist/dtos/project.dto.d.ts +0 -16
- package/dist/dtos/project.dto.js +0 -125
- package/dist/dtos/project.dto.js.map +0 -1
- package/dist/dtos/run-project-payload.dto.d.ts +0 -4
- package/dist/dtos/run-project-payload.dto.js +0 -24
- package/dist/dtos/run-project-payload.dto.js.map +0 -1
- package/dist/services/project-api.service.d.ts +0 -36
- package/dist/services/project-api.service.js +0 -187
- package/dist/services/project-api.service.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@loopstack/api",
|
|
3
3
|
"displayName": "Loopstack Api Module",
|
|
4
4
|
"description": "The api module of the loopstack automation framework",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.4.1",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jakob Klippel",
|
|
8
8
|
"url": "https://www.linkedin.com/in/jakob-klippel/"
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@loopstack/core": "^0.
|
|
15
|
-
"@loopstack/shared": "^0.
|
|
14
|
+
"@loopstack/core": "^0.4.1",
|
|
15
|
+
"@loopstack/shared": "^0.4.1",
|
|
16
16
|
"@nestjs/common": "^11.0.1",
|
|
17
17
|
"@nestjs/config": "^4.0.0",
|
|
18
18
|
"@nestjs/core": "^11.0.1",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ApiRequestType } from '../interfaces/api-request.type';
|
|
2
|
-
import { ProjectApiService } from '../services/project-api.service';
|
|
3
|
-
import { ProjectUpdateDto } from '../dtos/project-update.dto';
|
|
4
|
-
import { ProjectCreateDto } from '../dtos/project-create.dto';
|
|
5
|
-
import { PaginatedDto } from '../dtos/paginated.dto';
|
|
6
|
-
import { ProjectDto } from '../dtos/project.dto';
|
|
7
|
-
import { ProjectItemDto } from '../dtos/project-item.dto';
|
|
8
|
-
export declare class ProjectController {
|
|
9
|
-
private readonly projectService;
|
|
10
|
-
constructor(projectService: ProjectApiService);
|
|
11
|
-
getProjects(req: any, page?: number, limit?: number, filterParam?: string, sortByParam?: string, search?: string, searchColumnsParam?: string): Promise<PaginatedDto<ProjectItemDto>>;
|
|
12
|
-
getProjectById(id: string, req: ApiRequestType): Promise<ProjectDto>;
|
|
13
|
-
createProject(projectData: ProjectCreateDto, req: ApiRequestType): Promise<ProjectDto>;
|
|
14
|
-
updateProject(id: string, projectData: ProjectUpdateDto, req: ApiRequestType): Promise<ProjectDto>;
|
|
15
|
-
deleteProject(id: string, req: ApiRequestType): Promise<void>;
|
|
16
|
-
batchDeleteProjects(batchDeleteDto: {
|
|
17
|
-
ids: string[];
|
|
18
|
-
}, req: ApiRequestType): Promise<{
|
|
19
|
-
deleted: string[];
|
|
20
|
-
failed: Array<{
|
|
21
|
-
id: string;
|
|
22
|
-
error: string;
|
|
23
|
-
}>;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
@@ -1,272 +0,0 @@
|
|
|
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.ProjectController = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
-
const project_api_service_1 = require("../services/project-api.service");
|
|
19
|
-
const project_update_dto_1 = require("../dtos/project-update.dto");
|
|
20
|
-
const project_create_dto_1 = require("../dtos/project-create.dto");
|
|
21
|
-
const paginated_dto_1 = require("../dtos/paginated.dto");
|
|
22
|
-
const api_paginated_response_decorator_1 = require("../decorators/api-paginated-response.decorator");
|
|
23
|
-
const project_dto_1 = require("../dtos/project.dto");
|
|
24
|
-
const project_item_dto_1 = require("../dtos/project-item.dto");
|
|
25
|
-
const project_sort_by_dto_1 = require("../dtos/project-sort-by.dto");
|
|
26
|
-
const project_filter_dto_1 = require("../dtos/project-filter.dto");
|
|
27
|
-
const jwt_auth_guard_1 = require("../guards/jwt-auth.guard");
|
|
28
|
-
let ProjectController = class ProjectController {
|
|
29
|
-
projectService;
|
|
30
|
-
constructor(projectService) {
|
|
31
|
-
this.projectService = projectService;
|
|
32
|
-
}
|
|
33
|
-
async getProjects(req, page, limit, filterParam, sortByParam, search, searchColumnsParam) {
|
|
34
|
-
let filter = {};
|
|
35
|
-
if (filterParam) {
|
|
36
|
-
try {
|
|
37
|
-
filter = JSON.parse(filterParam);
|
|
38
|
-
}
|
|
39
|
-
catch (e) {
|
|
40
|
-
throw new common_1.BadRequestException('Invalid filter format');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
let sortBy = [];
|
|
44
|
-
if (sortByParam) {
|
|
45
|
-
try {
|
|
46
|
-
sortBy = JSON.parse(sortByParam);
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
throw new common_1.BadRequestException('Invalid sortBy format');
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
let searchColumns = [];
|
|
53
|
-
if (searchColumnsParam) {
|
|
54
|
-
try {
|
|
55
|
-
searchColumns = JSON.parse(searchColumnsParam);
|
|
56
|
-
}
|
|
57
|
-
catch (e) {
|
|
58
|
-
throw new common_1.BadRequestException('Invalid searchColumns format');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const result = await this.projectService.findAll(req.user.id, filter, sortBy, {
|
|
62
|
-
page,
|
|
63
|
-
limit,
|
|
64
|
-
}, {
|
|
65
|
-
query: search,
|
|
66
|
-
columns: searchColumns,
|
|
67
|
-
});
|
|
68
|
-
return paginated_dto_1.PaginatedDto.create(project_item_dto_1.ProjectItemDto, result);
|
|
69
|
-
}
|
|
70
|
-
async getProjectById(id, req) {
|
|
71
|
-
const project = await this.projectService.findOneById(id, req.user.id);
|
|
72
|
-
return project_dto_1.ProjectDto.create(project);
|
|
73
|
-
}
|
|
74
|
-
async createProject(projectData, req) {
|
|
75
|
-
const project = await this.projectService.create(projectData, req.user.id);
|
|
76
|
-
return project_dto_1.ProjectDto.create(project);
|
|
77
|
-
}
|
|
78
|
-
async updateProject(id, projectData, req) {
|
|
79
|
-
const project = await this.projectService.update(id, projectData, req.user.id);
|
|
80
|
-
return project_dto_1.ProjectDto.create(project);
|
|
81
|
-
}
|
|
82
|
-
async deleteProject(id, req) {
|
|
83
|
-
await this.projectService.delete(id, req.user.id);
|
|
84
|
-
}
|
|
85
|
-
async batchDeleteProjects(batchDeleteDto, req) {
|
|
86
|
-
return await this.projectService.batchDelete(batchDeleteDto.ids, req.user.id);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
exports.ProjectController = ProjectController;
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, common_1.Get)(),
|
|
92
|
-
(0, swagger_1.ApiOperation)({
|
|
93
|
-
summary: 'Retrieve projects with filters, sorting, pagination, and search',
|
|
94
|
-
}),
|
|
95
|
-
(0, swagger_1.ApiExtraModels)(project_filter_dto_1.ProjectFilterDto, project_sort_by_dto_1.ProjectSortByDto),
|
|
96
|
-
(0, swagger_1.ApiQuery)({
|
|
97
|
-
name: 'page',
|
|
98
|
-
required: false,
|
|
99
|
-
type: Number,
|
|
100
|
-
description: 'Page number for pagination (starts at 1)',
|
|
101
|
-
}),
|
|
102
|
-
(0, swagger_1.ApiQuery)({
|
|
103
|
-
name: 'limit',
|
|
104
|
-
required: false,
|
|
105
|
-
type: Number,
|
|
106
|
-
description: 'Number of items per page',
|
|
107
|
-
}),
|
|
108
|
-
(0, swagger_1.ApiQuery)({
|
|
109
|
-
name: 'sortBy',
|
|
110
|
-
required: false,
|
|
111
|
-
schema: {
|
|
112
|
-
type: 'string',
|
|
113
|
-
example: '[{"field":"createdAt","order":"DESC"}]',
|
|
114
|
-
},
|
|
115
|
-
description: 'JSON string array of ProjectSortByDto objects',
|
|
116
|
-
}),
|
|
117
|
-
(0, swagger_1.ApiQuery)({
|
|
118
|
-
name: 'filter',
|
|
119
|
-
required: false,
|
|
120
|
-
schema: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
example: '{"workspaceId":"123e4567-e89b-12d3-a456-426614174000"}',
|
|
123
|
-
},
|
|
124
|
-
description: 'JSON string of ProjectFilterDto object',
|
|
125
|
-
}),
|
|
126
|
-
(0, swagger_1.ApiQuery)({
|
|
127
|
-
name: 'search',
|
|
128
|
-
required: false,
|
|
129
|
-
type: String,
|
|
130
|
-
description: 'Search term to filter workspaces by title or other searchable fields',
|
|
131
|
-
}),
|
|
132
|
-
(0, swagger_1.ApiQuery)({
|
|
133
|
-
name: 'searchColumns',
|
|
134
|
-
required: false,
|
|
135
|
-
schema: {
|
|
136
|
-
type: 'string',
|
|
137
|
-
example: '["title","description"]',
|
|
138
|
-
},
|
|
139
|
-
description: 'JSON string array of columns to search in (defaults to title and type if not specified)',
|
|
140
|
-
}),
|
|
141
|
-
(0, api_paginated_response_decorator_1.ApiPaginatedResponse)(project_item_dto_1.ProjectItemDto),
|
|
142
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
143
|
-
__param(0, (0, common_1.Request)()),
|
|
144
|
-
__param(1, (0, common_1.Query)('page', new common_1.ParseIntPipe({ optional: true }))),
|
|
145
|
-
__param(2, (0, common_1.Query)('limit', new common_1.ParseIntPipe({ optional: true }))),
|
|
146
|
-
__param(3, (0, common_1.Query)('filter')),
|
|
147
|
-
__param(4, (0, common_1.Query)('sortBy')),
|
|
148
|
-
__param(5, (0, common_1.Query)('search')),
|
|
149
|
-
__param(6, (0, common_1.Query)('searchColumns')),
|
|
150
|
-
__metadata("design:type", Function),
|
|
151
|
-
__metadata("design:paramtypes", [Object, Number, Number, String, String, String, String]),
|
|
152
|
-
__metadata("design:returntype", Promise)
|
|
153
|
-
], ProjectController.prototype, "getProjects", null);
|
|
154
|
-
__decorate([
|
|
155
|
-
(0, common_1.Get)(':id'),
|
|
156
|
-
(0, swagger_1.ApiOperation)({ summary: 'Get a project by ID' }),
|
|
157
|
-
(0, swagger_1.ApiParam)({ name: 'id', type: String, description: 'The ID of the project' }),
|
|
158
|
-
(0, swagger_1.ApiResponse)({ status: 404, description: 'Project not found' }),
|
|
159
|
-
(0, swagger_1.ApiOkResponse)({ type: project_dto_1.ProjectDto }),
|
|
160
|
-
(0, swagger_1.ApiUnauthorizedResponse)(),
|
|
161
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
162
|
-
__param(0, (0, common_1.Param)('id')),
|
|
163
|
-
__param(1, (0, common_1.Request)()),
|
|
164
|
-
__metadata("design:type", Function),
|
|
165
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
166
|
-
__metadata("design:returntype", Promise)
|
|
167
|
-
], ProjectController.prototype, "getProjectById", null);
|
|
168
|
-
__decorate([
|
|
169
|
-
(0, common_1.Post)(),
|
|
170
|
-
(0, swagger_1.ApiOperation)({ summary: 'Create a new project' }),
|
|
171
|
-
(0, swagger_1.ApiBody)({ type: project_create_dto_1.ProjectCreateDto, description: 'Project data' }),
|
|
172
|
-
(0, swagger_1.ApiOkResponse)({ type: project_dto_1.ProjectDto }),
|
|
173
|
-
(0, swagger_1.ApiUnauthorizedResponse)(),
|
|
174
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
175
|
-
__param(0, (0, common_1.Body)()),
|
|
176
|
-
__param(1, (0, common_1.Request)()),
|
|
177
|
-
__metadata("design:type", Function),
|
|
178
|
-
__metadata("design:paramtypes", [project_create_dto_1.ProjectCreateDto, Object]),
|
|
179
|
-
__metadata("design:returntype", Promise)
|
|
180
|
-
], ProjectController.prototype, "createProject", null);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, common_1.Put)(':id'),
|
|
183
|
-
(0, swagger_1.ApiOperation)({ summary: 'Update a project by ID' }),
|
|
184
|
-
(0, swagger_1.ApiParam)({ name: 'id', type: String, description: 'The ID of the project' }),
|
|
185
|
-
(0, swagger_1.ApiBody)({ type: project_update_dto_1.ProjectUpdateDto, description: 'Updated project data' }),
|
|
186
|
-
(0, swagger_1.ApiResponse)({ status: 404, description: 'Project not found' }),
|
|
187
|
-
(0, swagger_1.ApiOkResponse)({ type: project_dto_1.ProjectDto }),
|
|
188
|
-
(0, swagger_1.ApiUnauthorizedResponse)(),
|
|
189
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
190
|
-
__param(0, (0, common_1.Param)('id')),
|
|
191
|
-
__param(1, (0, common_1.Body)()),
|
|
192
|
-
__param(2, (0, common_1.Request)()),
|
|
193
|
-
__metadata("design:type", Function),
|
|
194
|
-
__metadata("design:paramtypes", [String, project_update_dto_1.ProjectUpdateDto, Object]),
|
|
195
|
-
__metadata("design:returntype", Promise)
|
|
196
|
-
], ProjectController.prototype, "updateProject", null);
|
|
197
|
-
__decorate([
|
|
198
|
-
(0, common_1.Delete)('id/:id'),
|
|
199
|
-
(0, swagger_1.ApiOperation)({ summary: 'Delete a project by ID' }),
|
|
200
|
-
(0, swagger_1.ApiParam)({ name: 'id', type: String, description: 'The ID of the project' }),
|
|
201
|
-
(0, swagger_1.ApiResponse)({ status: 204, description: 'Project deleted successfully' }),
|
|
202
|
-
(0, swagger_1.ApiResponse)({ status: 404, description: 'Project not found' }),
|
|
203
|
-
(0, swagger_1.ApiUnauthorizedResponse)(),
|
|
204
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
205
|
-
__param(0, (0, common_1.Param)('id')),
|
|
206
|
-
__param(1, (0, common_1.Request)()),
|
|
207
|
-
__metadata("design:type", Function),
|
|
208
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
209
|
-
__metadata("design:returntype", Promise)
|
|
210
|
-
], ProjectController.prototype, "deleteProject", null);
|
|
211
|
-
__decorate([
|
|
212
|
-
(0, common_1.Delete)('batch'),
|
|
213
|
-
(0, swagger_1.ApiOperation)({ summary: 'Delete multiple projects by IDs' }),
|
|
214
|
-
(0, swagger_1.ApiBody)({
|
|
215
|
-
description: 'Array of project IDs to delete',
|
|
216
|
-
schema: {
|
|
217
|
-
type: 'object',
|
|
218
|
-
properties: {
|
|
219
|
-
ids: {
|
|
220
|
-
type: 'array',
|
|
221
|
-
items: {
|
|
222
|
-
type: 'string'
|
|
223
|
-
},
|
|
224
|
-
description: 'Array of project IDs to delete',
|
|
225
|
-
example: ['project-1', 'project-2', 'project-3']
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
required: ['ids']
|
|
229
|
-
}
|
|
230
|
-
}),
|
|
231
|
-
(0, swagger_1.ApiResponse)({
|
|
232
|
-
status: 200,
|
|
233
|
-
description: 'Batch delete completed',
|
|
234
|
-
schema: {
|
|
235
|
-
type: 'object',
|
|
236
|
-
properties: {
|
|
237
|
-
deleted: {
|
|
238
|
-
type: 'array',
|
|
239
|
-
items: { type: 'string' },
|
|
240
|
-
description: 'Successfully deleted project IDs'
|
|
241
|
-
},
|
|
242
|
-
failed: {
|
|
243
|
-
type: 'array',
|
|
244
|
-
items: {
|
|
245
|
-
type: 'object',
|
|
246
|
-
properties: {
|
|
247
|
-
id: { type: 'string' },
|
|
248
|
-
error: { type: 'string' }
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
description: 'Failed deletions with error details'
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}),
|
|
256
|
-
(0, swagger_1.ApiResponse)({ status: 400, description: 'Invalid request body' }),
|
|
257
|
-
(0, swagger_1.ApiUnauthorizedResponse)(),
|
|
258
|
-
(0, common_1.UseGuards)(jwt_auth_guard_1.JwtAuthGuard),
|
|
259
|
-
__param(0, (0, common_1.Body)()),
|
|
260
|
-
__param(1, (0, common_1.Request)()),
|
|
261
|
-
__metadata("design:type", Function),
|
|
262
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
263
|
-
__metadata("design:returntype", Promise)
|
|
264
|
-
], ProjectController.prototype, "batchDeleteProjects", null);
|
|
265
|
-
exports.ProjectController = ProjectController = __decorate([
|
|
266
|
-
(0, swagger_1.ApiTags)('api/v1/projects'),
|
|
267
|
-
(0, swagger_1.ApiExtraModels)(project_dto_1.ProjectDto, project_item_dto_1.ProjectItemDto, project_create_dto_1.ProjectCreateDto, project_update_dto_1.ProjectUpdateDto),
|
|
268
|
-
(0, common_1.UsePipes)(new common_1.ValidationPipe({ transform: true, whitelist: true })),
|
|
269
|
-
(0, common_1.Controller)('api/v1/projects'),
|
|
270
|
-
__metadata("design:paramtypes", [project_api_service_1.ProjectApiService])
|
|
271
|
-
], ProjectController);
|
|
272
|
-
//# sourceMappingURL=project.controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project.controller.js","sourceRoot":"","sources":["../../src/controllers/project.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAcwB;AACxB,6CASyB;AAEzB,yEAAoE;AACpE,mEAA8D;AAC9D,mEAA8D;AAC9D,yDAAqD;AACrD,qGAAsF;AACtF,qDAAiD;AACjD,+DAA0D;AAC1D,qEAA+D;AAC/D,mEAA8D;AAC9D,6DAAwD;AAOjD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IACC;IAA7B,YAA6B,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;IAAG,CAAC;I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CAAA;;;;4DAGX;4BAvOU,iBAAiB;IAJ7B,IAAA,iBAAO,EAAC,iBAAiB,CAAC;IAC1B,IAAA,wBAAc,EAAC,wBAAU,EAAE,iCAAc,EAAE,qCAAgB,EAAE,qCAAgB,CAAC;IAC9E,IAAA,iBAAQ,EAAC,IAAI,uBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAEiB,uCAAiB;GADnD,iBAAiB,CAwO7B"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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.ProjectConfigDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
class ProjectConfigDto {
|
|
16
|
-
name;
|
|
17
|
-
title;
|
|
18
|
-
workspace;
|
|
19
|
-
}
|
|
20
|
-
exports.ProjectConfigDto = ProjectConfigDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_transformer_1.Expose)(),
|
|
23
|
-
(0, swagger_1.ApiProperty)({
|
|
24
|
-
description: 'The name of the project type',
|
|
25
|
-
example: 'my-model',
|
|
26
|
-
}),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ProjectConfigDto.prototype, "name", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
32
|
-
description: 'The title of the project type',
|
|
33
|
-
example: 'My Project',
|
|
34
|
-
}),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], ProjectConfigDto.prototype, "title", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_transformer_1.Expose)(),
|
|
39
|
-
(0, swagger_1.ApiProperty)({
|
|
40
|
-
description: 'The workspace type for this project',
|
|
41
|
-
example: 'my-workspace',
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ProjectConfigDto.prototype, "workspace", void 0);
|
|
45
|
-
//# sourceMappingURL=project-config.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-config.dto.js","sourceRoot":"","sources":["../../src/dtos/project-config.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,6CAAmE;AAEnE,MAAa,gBAAgB;IAM3B,IAAI,CAAS;IAOb,KAAK,CAAS;IAOd,SAAS,CAAS;CACnB;AArBD,4CAqBC;AAfC;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,UAAU;KACpB,CAAC;;8CACW;AAOb;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,+BAA+B;QAC5C,OAAO,EAAE,YAAY;KACtB,CAAC;;+CACY;AAOd;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,cAAc;KACxB,CAAC;;mDACgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-context.dto.js","sourceRoot":"","sources":["../../src/dtos/project-context.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;CAAG;AAAjC,8CAAiC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
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.ProjectCreateDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
class ProjectCreateDto {
|
|
17
|
-
model;
|
|
18
|
-
title;
|
|
19
|
-
labels;
|
|
20
|
-
workspaceId;
|
|
21
|
-
}
|
|
22
|
-
exports.ProjectCreateDto = ProjectCreateDto;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
(0, class_validator_1.MaxLength)(100, { message: 'Project name must not exceed 100 characters' }),
|
|
27
|
-
(0, swagger_1.ApiProperty)({
|
|
28
|
-
description: 'Process model identifier for the project',
|
|
29
|
-
example: 'my-project',
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], ProjectCreateDto.prototype, "model", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
(0, class_validator_1.MaxLength)(200, { message: 'Project title must not exceed 200 characters' }),
|
|
36
|
-
(0, swagger_1.ApiProperty)({
|
|
37
|
-
description: 'Human-readable title for the project',
|
|
38
|
-
example: 'My Awesome Project',
|
|
39
|
-
}),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], ProjectCreateDto.prototype, "title", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.ValidateIf)((o) => o.labels !== undefined),
|
|
44
|
-
(0, class_validator_1.IsArray)(),
|
|
45
|
-
(0, class_validator_1.ArrayNotEmpty)(),
|
|
46
|
-
(0, class_validator_1.IsString)({ each: true, message: 'Each label must be a string' }),
|
|
47
|
-
(0, class_transformer_1.Type)(() => String),
|
|
48
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
49
|
-
description: 'Array of labels/tags associated with the project',
|
|
50
|
-
type: 'array',
|
|
51
|
-
items: { type: 'string' },
|
|
52
|
-
example: ['frontend', 'customer-facing', 'high-priority'],
|
|
53
|
-
}),
|
|
54
|
-
__metadata("design:type", Array)
|
|
55
|
-
], ProjectCreateDto.prototype, "labels", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsUUID)('4', { message: 'Workspace ID must be a valid UUID v4' }),
|
|
58
|
-
(0, class_validator_1.IsNotEmpty)({ message: 'Workspace ID is required' }),
|
|
59
|
-
(0, swagger_1.ApiProperty)({
|
|
60
|
-
description: 'UUID of the workspace the project belongs to',
|
|
61
|
-
example: '123e4567-e89b-12d3-a456-426614174000',
|
|
62
|
-
}),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], ProjectCreateDto.prototype, "workspaceId", void 0);
|
|
65
|
-
//# sourceMappingURL=project-create.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-create.dto.js","sourceRoot":"","sources":["../../src/dtos/project-create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AACzB,6CAAmE;AACnE,yDAAyC;AAKzC,MAAa,gBAAgB;IAY3B,KAAK,CAAS;IAYd,KAAK,CAAS;IAiBd,MAAM,CAAY;IAYlB,WAAW,CAAS;CACrB;AAtDD,4CAsDC;AA1CC;IAPC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;IAC1E,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,YAAY;KACtB,CAAC;;+CACY;AAYd;IANC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAAC;IAC3E,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,oBAAoB;KAC9B,CAAC;;+CACY;AAiBd;IAXC,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,SAAS,CAAC;IACzC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IAChE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,eAAe,CAAC;KAC1D,CAAC;;gDACgB;AAYlB;IANC,IAAA,wBAAM,EAAC,GAAG,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IAChE,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACnD,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8CAA8C;QAC3D,OAAO,EAAE,sCAAsC;KAChD,CAAC;;qDACkB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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.ProjectFilterDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
class ProjectFilterDto {
|
|
16
|
-
workspaceId;
|
|
17
|
-
}
|
|
18
|
-
exports.ProjectFilterDto = ProjectFilterDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
(0, class_validator_1.IsUUID)(),
|
|
22
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ProjectFilterDto.prototype, "workspaceId", void 0);
|
|
25
|
-
//# sourceMappingURL=project-filter.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-filter.dto.js","sourceRoot":"","sources":["../../src/dtos/project-filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAAsD;AAEtD,MAAa,gBAAgB;IAI3B,WAAW,CAAU;CACtB;AALD,4CAKC;AADC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,6BAAmB,GAAE;;qDACD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipelineEntity, PipelineState } from '@loopstack/shared';
|
|
2
|
-
export declare class ProjectItemDto {
|
|
3
|
-
id: string;
|
|
4
|
-
model: string;
|
|
5
|
-
title: string;
|
|
6
|
-
labels: string[];
|
|
7
|
-
order: number;
|
|
8
|
-
status: PipelineState;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
workspaceId: string;
|
|
12
|
-
static create(project: PipelineEntity): ProjectItemDto;
|
|
13
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
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.ProjectItemDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
const shared_1 = require("@loopstack/shared");
|
|
16
|
-
class ProjectItemDto {
|
|
17
|
-
id;
|
|
18
|
-
model;
|
|
19
|
-
title;
|
|
20
|
-
labels;
|
|
21
|
-
order;
|
|
22
|
-
status;
|
|
23
|
-
createdAt;
|
|
24
|
-
updatedAt;
|
|
25
|
-
workspaceId;
|
|
26
|
-
static create(project) {
|
|
27
|
-
return (0, class_transformer_1.plainToInstance)(ProjectItemDto, project, {
|
|
28
|
-
excludeExtraneousValues: true,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ProjectItemDto = ProjectItemDto;
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
(0, swagger_1.ApiProperty)({
|
|
36
|
-
description: 'Unique identifier of the project',
|
|
37
|
-
example: '123e4567-e89b-12d3-a456-426614174000',
|
|
38
|
-
}),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], ProjectItemDto.prototype, "id", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_transformer_1.Expose)(),
|
|
43
|
-
(0, swagger_1.ApiProperty)({
|
|
44
|
-
description: 'Process model identifier for the project',
|
|
45
|
-
example: 'customer-process',
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ProjectItemDto.prototype, "model", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_transformer_1.Expose)(),
|
|
51
|
-
(0, swagger_1.ApiProperty)({
|
|
52
|
-
description: 'Display title of the project',
|
|
53
|
-
example: 'Customer Portal',
|
|
54
|
-
}),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], ProjectItemDto.prototype, "title", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_transformer_1.Expose)(),
|
|
59
|
-
(0, swagger_1.ApiProperty)({
|
|
60
|
-
type: 'array',
|
|
61
|
-
items: { type: 'string' },
|
|
62
|
-
description: 'Tags associated with the project for categorization and filtering',
|
|
63
|
-
example: ['frontend', 'featureXY'],
|
|
64
|
-
}),
|
|
65
|
-
__metadata("design:type", Array)
|
|
66
|
-
], ProjectItemDto.prototype, "labels", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_transformer_1.Expose)(),
|
|
69
|
-
(0, swagger_1.ApiProperty)({
|
|
70
|
-
description: 'Order position of the project in listings',
|
|
71
|
-
example: 1,
|
|
72
|
-
}),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], ProjectItemDto.prototype, "order", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_transformer_1.Expose)(),
|
|
77
|
-
(0, swagger_1.ApiProperty)({
|
|
78
|
-
enum: shared_1.PipelineState,
|
|
79
|
-
enumName: 'ProjectStatus',
|
|
80
|
-
description: 'Current status of the project',
|
|
81
|
-
}),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], ProjectItemDto.prototype, "status", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, class_transformer_1.Expose)(),
|
|
86
|
-
(0, swagger_1.ApiProperty)({
|
|
87
|
-
type: Date,
|
|
88
|
-
description: 'Timestamp when the project was created',
|
|
89
|
-
example: '2023-01-15T14:30:00Z',
|
|
90
|
-
}),
|
|
91
|
-
__metadata("design:type", Date)
|
|
92
|
-
], ProjectItemDto.prototype, "createdAt", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, class_transformer_1.Expose)(),
|
|
95
|
-
(0, swagger_1.ApiProperty)({
|
|
96
|
-
type: Date,
|
|
97
|
-
description: 'Timestamp when the project was last updated',
|
|
98
|
-
example: '2023-02-20T09:15:30Z',
|
|
99
|
-
}),
|
|
100
|
-
__metadata("design:type", Date)
|
|
101
|
-
], ProjectItemDto.prototype, "updatedAt", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, class_transformer_1.Expose)(),
|
|
104
|
-
(0, swagger_1.ApiProperty)({
|
|
105
|
-
description: 'Identifier of the workspace that contains this project',
|
|
106
|
-
example: '789e4567-e89b-12d3-a456-426614174001',
|
|
107
|
-
}),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], ProjectItemDto.prototype, "workspaceId", void 0);
|
|
110
|
-
//# sourceMappingURL=project-item.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-item.dto.js","sourceRoot":"","sources":["../../src/dtos/project-item.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,6CAA8C;AAC9C,8CAAiE;AAKjE,MAAa,cAAc;IAMzB,EAAE,CAAS;IAOX,KAAK,CAAS;IAOd,KAAK,CAAS;IAUd,MAAM,CAAW;IAOjB,KAAK,CAAS;IAQd,MAAM,CAAgB;IAQtB,SAAS,CAAO;IAQhB,SAAS,CAAO;IAOhB,WAAW,CAAS;IAOpB,MAAM,CAAC,MAAM,CAAC,OAAsB;QAClC,OAAO,IAAA,mCAAe,EAAC,cAAc,EAAE,OAAO,EAAE;YAC9C,uBAAuB,EAAE,IAAI;SAC9B,CAAC,CAAC;IACL,CAAC;CACF;AAhFD,wCAgFC;AA1EC;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,sCAAsC;KAChD,CAAC;;0CACS;AAOX;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,kBAAkB;KAC5B,CAAC;;6CACY;AAOd;IALC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8BAA8B;QAC3C,O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