itrm-tools 1.8.4 → 1.8.5
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/api/request/crud/ai/AreaManager.d.ts +72 -0
- package/dist/api/request/crud/ai/AreaManager.js +106 -0
- package/dist/api/request/crud/ai/AreaManager.js.map +1 -0
- package/dist/api/request/crud/ai/AreaMemberManager.d.ts +35 -0
- package/dist/api/request/crud/ai/AreaMemberManager.js +61 -0
- package/dist/api/request/crud/ai/AreaMemberManager.js.map +1 -0
- package/dist/api/request/crud/ai/TaskManager.d.ts +64 -56
- package/dist/api/request/crud/ai/TaskManager.js +69 -45
- package/dist/api/request/crud/ai/TaskManager.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
|
+
import { TaskView } from "./TaskManager";
|
|
4
|
+
export declare const AREA_MAX_LEVEL = 3;
|
|
5
|
+
export declare const AREA_PATH_SEPARATOR = "/";
|
|
6
|
+
export declare const AREA_KEY_PATTERN: RegExp;
|
|
7
|
+
export declare enum AreaAuditAction {
|
|
8
|
+
CREATE = "create",
|
|
9
|
+
ARCHIVE = "archive",
|
|
10
|
+
RESTORE = "restore",
|
|
11
|
+
ASSIGN = "assign",
|
|
12
|
+
CHANGE = "change",
|
|
13
|
+
REMOVE = "remove"
|
|
14
|
+
}
|
|
15
|
+
export declare enum AreaOperation {
|
|
16
|
+
MODIFY = "modify",
|
|
17
|
+
DESTROY = "destroy",
|
|
18
|
+
FIND_BY_ID = "findById"
|
|
19
|
+
}
|
|
20
|
+
export interface IArea {
|
|
21
|
+
areaId: string;
|
|
22
|
+
parentId: string | null;
|
|
23
|
+
key: string;
|
|
24
|
+
name?: string | null;
|
|
25
|
+
level: number;
|
|
26
|
+
archivedAt?: string | null;
|
|
27
|
+
archivedBy?: string | null;
|
|
28
|
+
createdBy?: string | null;
|
|
29
|
+
createdAt?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IAreaAccess {
|
|
32
|
+
path: string;
|
|
33
|
+
name?: string | null;
|
|
34
|
+
level: number;
|
|
35
|
+
archived: boolean;
|
|
36
|
+
views: TaskView[];
|
|
37
|
+
canManage: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface IAreaAudit {
|
|
40
|
+
auditId: string;
|
|
41
|
+
path: string;
|
|
42
|
+
actorId: string;
|
|
43
|
+
action: AreaAuditAction;
|
|
44
|
+
userId?: string | null;
|
|
45
|
+
view?: TaskView | null;
|
|
46
|
+
createdAt?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IAreaSearchDetails {
|
|
49
|
+
path?: string;
|
|
50
|
+
parent?: string;
|
|
51
|
+
key?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
includeArchived?: boolean;
|
|
54
|
+
values?: IAreaSearchDetails[];
|
|
55
|
+
config?: AxiosRequestConfig;
|
|
56
|
+
}
|
|
57
|
+
export declare class AreaManager extends CrudServiceManager<IAreaSearchDetails, IAreaAccess> {
|
|
58
|
+
private readonly url;
|
|
59
|
+
constructor(url: string);
|
|
60
|
+
find(details: IAreaSearchDetails): Promise<IAreaAccess | undefined>;
|
|
61
|
+
findById(_id: StandardIdRequestDefinition): Promise<IAreaAccess | undefined>;
|
|
62
|
+
findAll(details: IAreaSearchDetails): Promise<IAreaAccess[] | undefined>;
|
|
63
|
+
count(details: IAreaSearchDetails): Promise<number>;
|
|
64
|
+
create(details: IAreaSearchDetails): Promise<IAreaAccess | undefined>;
|
|
65
|
+
createMany(details: IAreaSearchDetails): Promise<IAreaAccess[] | undefined>;
|
|
66
|
+
modify(_item: IAreaAccess): Promise<IAreaAccess | undefined>;
|
|
67
|
+
destroy(_item: IAreaAccess): Promise<void | number>;
|
|
68
|
+
archive(details: IAreaSearchDetails): Promise<IAreaAccess | undefined>;
|
|
69
|
+
restore(details: IAreaSearchDetails): Promise<IAreaAccess | undefined>;
|
|
70
|
+
audit(details: IAreaSearchDetails): Promise<IAreaAudit[]>;
|
|
71
|
+
private sendUpdate;
|
|
72
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AreaManager = exports.AreaOperation = exports.AreaAuditAction = exports.AREA_KEY_PATTERN = exports.AREA_PATH_SEPARATOR = exports.AREA_MAX_LEVEL = void 0;
|
|
4
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
5
|
+
const RequestAxiosCall_1 = require("../../RequestAxiosCall");
|
|
6
|
+
const Response_1 = require("../../../utils/Response");
|
|
7
|
+
const BuildQuery_1 = require("../../../utils/BuildQuery");
|
|
8
|
+
const TaskManager_1 = require("./TaskManager");
|
|
9
|
+
// Areas of the AI layer form a tree: a root is level 0 and there are up to three levels below it
|
|
10
|
+
// (area > sub-area > sub-sub-area > sub-sub-sub-area). An area is addressed by its path, the keys
|
|
11
|
+
// from the root joined by "/" (viio/frontend).
|
|
12
|
+
exports.AREA_MAX_LEVEL = 3;
|
|
13
|
+
exports.AREA_PATH_SEPARATOR = "/";
|
|
14
|
+
// An area key: lowercase letters, digits and dashes (it is part of the path).
|
|
15
|
+
exports.AREA_KEY_PATTERN = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
16
|
+
// What the audit log of an area records.
|
|
17
|
+
var AreaAuditAction;
|
|
18
|
+
(function (AreaAuditAction) {
|
|
19
|
+
AreaAuditAction["CREATE"] = "create";
|
|
20
|
+
AreaAuditAction["ARCHIVE"] = "archive";
|
|
21
|
+
AreaAuditAction["RESTORE"] = "restore";
|
|
22
|
+
AreaAuditAction["ASSIGN"] = "assign";
|
|
23
|
+
AreaAuditAction["CHANGE"] = "change";
|
|
24
|
+
AreaAuditAction["REMOVE"] = "remove";
|
|
25
|
+
})(AreaAuditAction || (exports.AreaAuditAction = AreaAuditAction = {}));
|
|
26
|
+
var AreaOperation;
|
|
27
|
+
(function (AreaOperation) {
|
|
28
|
+
AreaOperation["MODIFY"] = "modify";
|
|
29
|
+
AreaOperation["DESTROY"] = "destroy";
|
|
30
|
+
AreaOperation["FIND_BY_ID"] = "findById";
|
|
31
|
+
})(AreaOperation || (exports.AreaOperation = AreaOperation = {}));
|
|
32
|
+
const UNSUPPORTED_MESSAGES = {
|
|
33
|
+
[AreaOperation.MODIFY]: "Areas are not edited: they are created, archived and restored",
|
|
34
|
+
[AreaOperation.DESTROY]: "Areas are not deleted: they are archived and can be restored",
|
|
35
|
+
[AreaOperation.FIND_BY_ID]: "Areas are addressed by path: use find({ path })",
|
|
36
|
+
};
|
|
37
|
+
function unsupported(operation) {
|
|
38
|
+
return Promise.reject(new Response_1.ApiServiceError(Response_1.HttpCode.METHOD_NOT_ALLOWED, TaskManager_1.TaskErrorCode.UNSUPPORTED, UNSUPPORTED_MESSAGES[operation]));
|
|
39
|
+
}
|
|
40
|
+
const rejectAsApiError = (error) => Promise.reject((0, TaskManager_1.toApiServiceError)(error));
|
|
41
|
+
function bodyOf(details) {
|
|
42
|
+
const { config, values, includeArchived, ...body } = details;
|
|
43
|
+
return body;
|
|
44
|
+
}
|
|
45
|
+
// Areas of the AI layer (global-app-ai-layer-crud): the crud decides who can do what.
|
|
46
|
+
class AreaManager extends CrudServiceManager_1.CrudServiceManager {
|
|
47
|
+
url;
|
|
48
|
+
constructor(url) {
|
|
49
|
+
super();
|
|
50
|
+
this.url = url;
|
|
51
|
+
}
|
|
52
|
+
async find(details) {
|
|
53
|
+
return ((await this.findAll(details)) ?? []).find((area) => area.path === details.path);
|
|
54
|
+
}
|
|
55
|
+
findById(_id) {
|
|
56
|
+
return unsupported(AreaOperation.FIND_BY_ID);
|
|
57
|
+
}
|
|
58
|
+
// The caller's areas (includeArchived: also the archived ones).
|
|
59
|
+
findAll(details) {
|
|
60
|
+
return this.sendAllFinding(`${this.url}/areas${(0, BuildQuery_1.buildQuery)({ includeArchived: details.includeArchived ? "true" : undefined })}`, details.config).catch(rejectAsApiError);
|
|
61
|
+
}
|
|
62
|
+
async count(details) {
|
|
63
|
+
return ((await this.findAll(details)) ?? []).length;
|
|
64
|
+
}
|
|
65
|
+
// A root area (superuser) or a sub-area of `parent` (an administrator of that area).
|
|
66
|
+
create(details) {
|
|
67
|
+
return this.sendCreation(`${this.url}/areas`, bodyOf(details), details.config).catch(rejectAsApiError);
|
|
68
|
+
}
|
|
69
|
+
// One by one and in order: a sub-area may go under the previous one.
|
|
70
|
+
async createMany(details) {
|
|
71
|
+
const created = [];
|
|
72
|
+
for (const value of details.values ?? []) {
|
|
73
|
+
const area = await this.create({ ...value, config: value.config ?? details.config });
|
|
74
|
+
if (area)
|
|
75
|
+
created.push(area);
|
|
76
|
+
}
|
|
77
|
+
return created;
|
|
78
|
+
}
|
|
79
|
+
modify(_item) {
|
|
80
|
+
return unsupported(AreaOperation.MODIFY);
|
|
81
|
+
}
|
|
82
|
+
destroy(_item) {
|
|
83
|
+
return unsupported(AreaOperation.DESTROY);
|
|
84
|
+
}
|
|
85
|
+
// Archives an area and everything below it: it can still be read, not written.
|
|
86
|
+
archive(details) {
|
|
87
|
+
return this.sendUpdate(`${this.url}/areas/archive`, details);
|
|
88
|
+
}
|
|
89
|
+
// Restores an archived area as it was.
|
|
90
|
+
restore(details) {
|
|
91
|
+
return this.sendUpdate(`${this.url}/areas/restore`, details);
|
|
92
|
+
}
|
|
93
|
+
// Audit log of an area and its sub-areas, oldest first.
|
|
94
|
+
audit(details) {
|
|
95
|
+
return RequestAxiosCall_1.RequestAxiosCall.get(`${this.url}/areas/audit${(0, BuildQuery_1.buildQuery)({ path: details.path })}`, details.config)
|
|
96
|
+
.then((response) => response.payload ?? [])
|
|
97
|
+
.catch(rejectAsApiError);
|
|
98
|
+
}
|
|
99
|
+
sendUpdate(url, details) {
|
|
100
|
+
return RequestAxiosCall_1.RequestAxiosCall.put(url, bodyOf(details), details.config)
|
|
101
|
+
.then((response) => this.extractItem(response))
|
|
102
|
+
.catch(rejectAsApiError);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.AreaManager = AreaManager;
|
|
106
|
+
//# sourceMappingURL=AreaManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/ai/AreaManager.ts"],"names":[],"mappings":";;;AACA,8DAAwF;AACxF,6DAA0D;AAC1D,sDAAoE;AAEpE,0DAAuD;AACvD,+CAA2E;AAE3E,iGAAiG;AACjG,kGAAkG;AAClG,+CAA+C;AAClC,QAAA,cAAc,GAAG,CAAC,CAAC;AACnB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AACvC,8EAA8E;AACjE,QAAA,gBAAgB,GAAG,0BAA0B,CAAC;AAE3D,yCAAyC;AACzC,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAPW,eAAe,aAAf,eAAe,GAAf,eAAe,QAO1B;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EAJW,aAAa,aAAb,aAAa,GAAb,aAAa,QAIxB;AAgDD,MAAM,oBAAoB,GAAkC;IAC1D,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,+DAA+D;IACvF,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,8DAA8D;IACvF,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,iDAAiD;CAC9E,CAAC;AAEF,SAAS,WAAW,CAAC,SAAwB;IAC3C,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,0BAAe,CAAC,mBAAQ,C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AAC;IAED,wDAAwD;IACjD,KAAK,CAAC,OAA2B;QACtC,OAAO,mCAAgB,CAAC,GAAG,CAA4B,GAAG,IAAI,CAAC,GAAG,eAAe,IAAA,uBAAU,EAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC;aACnI,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;aAC1C,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAEO,UAAU,CAAC,GAAW,EAAE,OAA2B;QACzD,OAAO,mCAAgB,CAAC,GAAG,CAA6B,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;aAC1F,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;aAC9C,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
|
+
import { TaskView } from "./TaskManager";
|
|
4
|
+
export interface IAreaMember {
|
|
5
|
+
userId?: string;
|
|
6
|
+
name?: string | null;
|
|
7
|
+
view: TaskView;
|
|
8
|
+
inheritedFrom?: string | null;
|
|
9
|
+
grantedBy?: string | null;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
path?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
config?: AxiosRequestConfig;
|
|
14
|
+
}
|
|
15
|
+
export interface IAreaMemberSearchDetails {
|
|
16
|
+
path?: string;
|
|
17
|
+
email?: string;
|
|
18
|
+
userId?: string;
|
|
19
|
+
view?: TaskView;
|
|
20
|
+
values?: IAreaMemberSearchDetails[];
|
|
21
|
+
config?: AxiosRequestConfig;
|
|
22
|
+
}
|
|
23
|
+
export declare class AreaMemberManager extends CrudServiceManager<IAreaMemberSearchDetails, IAreaMember> {
|
|
24
|
+
private readonly url;
|
|
25
|
+
constructor(url: string);
|
|
26
|
+
find(details: IAreaMemberSearchDetails): Promise<IAreaMember | undefined>;
|
|
27
|
+
findById(_id: StandardIdRequestDefinition): Promise<IAreaMember | undefined>;
|
|
28
|
+
findAll(details: IAreaMemberSearchDetails): Promise<IAreaMember[] | undefined>;
|
|
29
|
+
count(details: IAreaMemberSearchDetails): Promise<number>;
|
|
30
|
+
create(details: IAreaMemberSearchDetails): Promise<IAreaMember | undefined>;
|
|
31
|
+
createMany(details: IAreaMemberSearchDetails): Promise<IAreaMember[] | undefined>;
|
|
32
|
+
modify(item: IAreaMember): Promise<IAreaMember | undefined>;
|
|
33
|
+
destroy(item: IAreaMember): Promise<void | number>;
|
|
34
|
+
private sendAssignment;
|
|
35
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AreaMemberManager = void 0;
|
|
4
|
+
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
5
|
+
const RequestAxiosCall_1 = require("../../RequestAxiosCall");
|
|
6
|
+
const Response_1 = require("../../../utils/Response");
|
|
7
|
+
const BuildQuery_1 = require("../../../utils/BuildQuery");
|
|
8
|
+
const TaskManager_1 = require("./TaskManager");
|
|
9
|
+
const rejectAsApiError = (error) => Promise.reject((0, TaskManager_1.toApiServiceError)(error));
|
|
10
|
+
// Members of the AI layer areas (global-app-ai-layer-crud). Only an administrator of the area (own
|
|
11
|
+
// or inherited) or the superuser manages them; the crud decides.
|
|
12
|
+
class AreaMemberManager extends CrudServiceManager_1.CrudServiceManager {
|
|
13
|
+
url;
|
|
14
|
+
constructor(url) {
|
|
15
|
+
super();
|
|
16
|
+
this.url = url;
|
|
17
|
+
}
|
|
18
|
+
async find(details) {
|
|
19
|
+
return ((await this.findAll(details)) ?? []).find((member) => member.userId === details.userId);
|
|
20
|
+
}
|
|
21
|
+
findById(_id) {
|
|
22
|
+
return Promise.reject(new Response_1.ApiServiceError(Response_1.HttpCode.METHOD_NOT_ALLOWED, TaskManager_1.TaskErrorCode.UNSUPPORTED, "Members are addressed by area path and email"));
|
|
23
|
+
}
|
|
24
|
+
// The members of an area: its own and the ones inherited from the areas above.
|
|
25
|
+
findAll(details) {
|
|
26
|
+
return this.sendAllFinding(`${this.url}/areas/members${(0, BuildQuery_1.buildQuery)({ path: details.path })}`, details.config).catch(rejectAsApiError);
|
|
27
|
+
}
|
|
28
|
+
async count(details) {
|
|
29
|
+
return ((await this.findAll(details)) ?? []).length;
|
|
30
|
+
}
|
|
31
|
+
// Gives a person (by email) a view in an area; if they already had one there, it changes.
|
|
32
|
+
create(details) {
|
|
33
|
+
return this.sendAssignment({ path: details.path, email: details.email, view: details.view }, details.config);
|
|
34
|
+
}
|
|
35
|
+
async createMany(details) {
|
|
36
|
+
const assigned = [];
|
|
37
|
+
for (const value of details.values ?? []) {
|
|
38
|
+
const member = await this.create({ ...value, config: value.config ?? details.config });
|
|
39
|
+
if (member)
|
|
40
|
+
assigned.push(member);
|
|
41
|
+
}
|
|
42
|
+
return assigned;
|
|
43
|
+
}
|
|
44
|
+
// Changes the view of a member (by path and email).
|
|
45
|
+
modify(item) {
|
|
46
|
+
return this.sendAssignment({ path: item.path, email: item.email, view: item.view }, item.config);
|
|
47
|
+
}
|
|
48
|
+
// Removes a person from an area (an inherited view is removed in the area it comes from).
|
|
49
|
+
destroy(item) {
|
|
50
|
+
return RequestAxiosCall_1.RequestAxiosCall.delete(`${this.url}/areas/members${(0, BuildQuery_1.buildQuery)({ path: item.path, email: item.email })}`, item.config)
|
|
51
|
+
.then((response) => (this.extractItem(response) ? 1 : 0))
|
|
52
|
+
.catch(rejectAsApiError);
|
|
53
|
+
}
|
|
54
|
+
sendAssignment(body, config) {
|
|
55
|
+
return RequestAxiosCall_1.RequestAxiosCall.put(`${this.url}/areas/members`, body, config)
|
|
56
|
+
.then((response) => this.extractItem(response))
|
|
57
|
+
.catch(rejectAsApiError);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.AreaMemberManager = AreaMemberManager;
|
|
61
|
+
//# sourceMappingURL=AreaMemberManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaMemberManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/ai/AreaMemberManager.ts"],"names":[],"mappings":";;;AACA,8DAAwF;AACxF,6DAA0D;AAC1D,sDAAoE;AAEpE,0DAAuD;AACvD,+CAA2E;AA0B3E,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,+BAAiB,EAAC,KAAK,CAAC,CAAC,CAAC;AAEtF,mGAAmG;AACnG,iEAAiE;AACjE,uBAA+B,SAAQ,uCAAyD;IAC7E,GAAG,CAAS;IAE7B,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAAiC;QACjD,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClG,CAAC;IAEM,QAAQ,CAAC,GAAgC;QAC9C,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,0BAAe,CAAC,mBAAQ,CAAC,kBAAkB,EAAE,2BAAa,CAAC,WAAW,EAAE,8CAA8C,CAAC,CAAC,CAAC;IACrJ,CAAC;IAED,+EAA+E;IACxE,OAAO,CAAC,OAAiC;QAC9C,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,GAAG,iBAA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O,CAAC,IAAiB;QAC9B,OAAO,mCAAgB,CAAC,MAAM,CAA6B,GAAG,IAAI,CAAC,GAAG,iBAAiB,IAAA,uBAAU,EAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC;aACtJ,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACxD,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAEO,cAAc,CAAC,IAA+D,EAAE,MAA2B;QACjH,OAAO,mCAAgB,CAAC,GAAG,CAA6B,GAAG,IAAI,CAAC,GAAG,gBAAgB,EAAE,IAAI,EAAE,MAAM,CAAC;aAC/F,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;aAC9C,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -2,12 +2,19 @@ import { AxiosRequestConfig } from "axios";
|
|
|
2
2
|
import { CrudServiceManager, StandardIdRequestDefinition } from "../CrudServiceManager";
|
|
3
3
|
import { ApiServiceError } from "../../../utils/Response";
|
|
4
4
|
export declare enum TaskSection {
|
|
5
|
-
NOW = "
|
|
6
|
-
LATER = "
|
|
7
|
-
REVIEW = "
|
|
8
|
-
DONE = "
|
|
5
|
+
NOW = "now",
|
|
6
|
+
LATER = "later",
|
|
7
|
+
REVIEW = "review",
|
|
8
|
+
DONE = "done"
|
|
9
|
+
}
|
|
10
|
+
export declare enum TaskComponent {
|
|
11
|
+
TASKS = "ai-tasks",
|
|
12
|
+
PLATFORM = "ai-platform"
|
|
13
|
+
}
|
|
14
|
+
export declare enum TaskComponentView {
|
|
15
|
+
MEMBER = "member",
|
|
16
|
+
PLATFORM_ADMIN = "admin"
|
|
9
17
|
}
|
|
10
|
-
export declare const TASK_AREA_COMPONENT_PREFIX = "ai-tasks-";
|
|
11
18
|
export declare enum TaskView {
|
|
12
19
|
VIEWER = "viewer",
|
|
13
20
|
CONTRIBUTOR = "contributor",
|
|
@@ -23,7 +30,8 @@ export declare enum TaskCapability {
|
|
|
23
30
|
SUBMIT_OWN = "submit_own",
|
|
24
31
|
SUBMIT_ANY = "submit_any",
|
|
25
32
|
REVIEW = "review",
|
|
26
|
-
IMPORT = "import"
|
|
33
|
+
IMPORT = "import",
|
|
34
|
+
MANAGE = "manage"
|
|
27
35
|
}
|
|
28
36
|
export declare const TASK_VIEW_CAPABILITIES: Record<TaskView, TaskCapability[]>;
|
|
29
37
|
export declare enum TaskReviewDecision {
|
|
@@ -66,6 +74,14 @@ export declare enum TaskErrorCode {
|
|
|
66
74
|
OWNER_WITHOUT_ACCESS = "owner_without_access",
|
|
67
75
|
NOT_IN_REVIEW = "not_in_review",
|
|
68
76
|
MISSING_COMMENT = "missing_comment",
|
|
77
|
+
UNKNOWN_AREA = "unknown_area",
|
|
78
|
+
AREA_EXISTS = "area_exists",
|
|
79
|
+
INVALID_AREA_KEY = "invalid_area_key",
|
|
80
|
+
MAX_DEPTH = "max_depth",
|
|
81
|
+
AREA_ARCHIVED = "area_archived",
|
|
82
|
+
INVALID_VIEW = "invalid_view",
|
|
83
|
+
UNKNOWN_PERSON = "unknown_person",
|
|
84
|
+
MEMBER_NOT_FOUND = "member_not_found",
|
|
69
85
|
UNSUPPORTED = "unsupported",
|
|
70
86
|
CRUD_ERROR = "crud_error",
|
|
71
87
|
CRUD_UNREACHABLE = "crud_unreachable"
|
|
@@ -77,27 +93,19 @@ export declare enum TaskEffort {
|
|
|
77
93
|
UNKNOWN = "?"
|
|
78
94
|
}
|
|
79
95
|
export declare enum TaskRisk {
|
|
80
|
-
LOW = "
|
|
81
|
-
MEDIUM = "
|
|
82
|
-
HIGH = "
|
|
96
|
+
LOW = "low",
|
|
97
|
+
MEDIUM = "medium",
|
|
98
|
+
HIGH = "high"
|
|
83
99
|
}
|
|
84
100
|
export interface TaskMeasure {
|
|
85
101
|
name: string;
|
|
86
102
|
value: string;
|
|
87
103
|
}
|
|
88
|
-
export interface IArea {
|
|
89
|
-
areaId: string;
|
|
90
|
-
key: string;
|
|
91
|
-
}
|
|
92
104
|
export interface IWorkspace {
|
|
93
105
|
workspaceId: string;
|
|
94
106
|
name: string;
|
|
95
107
|
areaId: string | null;
|
|
96
108
|
}
|
|
97
|
-
export interface IAreaAccess {
|
|
98
|
-
key: string;
|
|
99
|
-
views: TaskView[];
|
|
100
|
-
}
|
|
101
109
|
export interface ITaskReview {
|
|
102
110
|
reviewId: string;
|
|
103
111
|
taskId: string;
|
|
@@ -113,39 +121,39 @@ export interface ITask {
|
|
|
113
121
|
area?: string | null;
|
|
114
122
|
section: TaskSection;
|
|
115
123
|
position: number;
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
title: string;
|
|
125
|
+
reason?: string | null;
|
|
118
126
|
repos?: string | null;
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
effort?: TaskEffort | null;
|
|
128
|
+
verification?: string | null;
|
|
121
129
|
ownerId?: string | null;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
ownerName?: string | null;
|
|
131
|
+
risk?: TaskRisk | null;
|
|
132
|
+
startedAt?: string | null;
|
|
133
|
+
closedOn?: string | null;
|
|
134
|
+
verificationDone?: string | null;
|
|
135
|
+
measures?: TaskMeasure[] | null;
|
|
128
136
|
createdBy: string;
|
|
129
137
|
createdAt?: string;
|
|
130
138
|
updatedAt?: string;
|
|
131
139
|
config?: AxiosRequestConfig;
|
|
132
140
|
}
|
|
133
|
-
export interface
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
141
|
+
export interface ITaskPlacement {
|
|
142
|
+
section: TaskSection;
|
|
143
|
+
before?: string;
|
|
144
|
+
after?: string;
|
|
137
145
|
}
|
|
138
146
|
export interface ITaskImported {
|
|
139
|
-
|
|
140
|
-
|
|
147
|
+
section: TaskSection;
|
|
148
|
+
title: string;
|
|
141
149
|
repos?: string | null;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
effort?: string | null;
|
|
151
|
+
verification?: string | null;
|
|
152
|
+
ownerName?: string | null;
|
|
153
|
+
risk?: string | null;
|
|
154
|
+
startedAt?: string | null;
|
|
155
|
+
closedOn?: string | null;
|
|
156
|
+
measures?: TaskMeasure[] | null;
|
|
149
157
|
}
|
|
150
158
|
export interface ITaskImportResult {
|
|
151
159
|
workspace: string;
|
|
@@ -155,24 +163,25 @@ export interface ITaskSearchDetails {
|
|
|
155
163
|
id?: string;
|
|
156
164
|
workspace?: string;
|
|
157
165
|
area?: string;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
section?: TaskSection;
|
|
167
|
+
ownerName?: string;
|
|
168
|
+
mine?: boolean;
|
|
169
|
+
includeArchived?: boolean;
|
|
170
|
+
assignTo?: string;
|
|
171
|
+
comment?: string;
|
|
163
172
|
opId?: string;
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
title?: string;
|
|
174
|
+
reason?: string;
|
|
166
175
|
repos?: string;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
effort?: TaskEffort;
|
|
177
|
+
verification?: string;
|
|
178
|
+
risk?: TaskRisk;
|
|
179
|
+
placement?: ITaskPlacement;
|
|
171
180
|
taskId?: string;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
181
|
+
startedAt?: string;
|
|
182
|
+
closedOn?: string;
|
|
183
|
+
verificationDone?: string;
|
|
184
|
+
measures?: TaskMeasure[];
|
|
176
185
|
tasks?: ITaskImported[];
|
|
177
186
|
values?: ITaskSearchDetails[];
|
|
178
187
|
config?: AxiosRequestConfig;
|
|
@@ -193,7 +202,6 @@ export declare class TaskManager extends CrudServiceManager<ITaskSearchDetails,
|
|
|
193
202
|
submit(details: ITaskSearchDetails): Promise<ITask | undefined>;
|
|
194
203
|
close(details: ITaskSearchDetails): Promise<ITask | undefined>;
|
|
195
204
|
returnTask(details: ITaskSearchDetails): Promise<ITask | undefined>;
|
|
196
|
-
areas(details: ITaskSearchDetails): Promise<IAreaAccess[]>;
|
|
197
205
|
reviews(details: ITaskSearchDetails): Promise<ITaskReview[]>;
|
|
198
206
|
importWorkspace(details: ITaskSearchDetails): Promise<ITaskImportResult | undefined>;
|
|
199
207
|
private sendWrite;
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaskManager = exports.TaskRisk = exports.TaskEffort = exports.TaskErrorCode = exports.TaskOperation = exports.TaskReviewDecision = exports.TASK_VIEW_CAPABILITIES = exports.TaskCapability = exports.TaskView = exports.
|
|
3
|
+
exports.TaskManager = exports.TaskRisk = exports.TaskEffort = exports.TaskErrorCode = exports.TaskOperation = exports.TaskReviewDecision = exports.TASK_VIEW_CAPABILITIES = exports.TaskCapability = exports.TaskView = exports.TaskComponentView = exports.TaskComponent = exports.TaskSection = void 0;
|
|
4
4
|
exports.toApiServiceError = toApiServiceError;
|
|
5
5
|
const CrudServiceManager_1 = require("../CrudServiceManager");
|
|
6
6
|
const RequestAxiosCall_1 = require("../../RequestAxiosCall");
|
|
7
7
|
const APIRequest_1 = require("../../../APIRequest");
|
|
8
8
|
const Response_1 = require("../../../utils/Response");
|
|
9
9
|
const BuildQuery_1 = require("../../../utils/BuildQuery");
|
|
10
|
-
//
|
|
11
|
-
//
|
|
10
|
+
// Tasks of the AI layer (global-app-ai-layer-crud). The state of a task is the section it is in,
|
|
11
|
+
// the same sections as the backlog of the development_template.
|
|
12
12
|
var TaskSection;
|
|
13
13
|
(function (TaskSection) {
|
|
14
|
-
TaskSection["NOW"] = "
|
|
15
|
-
TaskSection["LATER"] = "
|
|
16
|
-
TaskSection["REVIEW"] = "
|
|
17
|
-
TaskSection["DONE"] = "
|
|
14
|
+
TaskSection["NOW"] = "now";
|
|
15
|
+
TaskSection["LATER"] = "later";
|
|
16
|
+
TaskSection["REVIEW"] = "review";
|
|
17
|
+
TaskSection["DONE"] = "done";
|
|
18
18
|
})(TaskSection || (exports.TaskSection = TaskSection = {}));
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
// session-crud components that give access to the AI layer. What each person can do in each area
|
|
20
|
+
// is not in session-crud: the AI layer crud keeps it (area members).
|
|
21
|
+
var TaskComponent;
|
|
22
|
+
(function (TaskComponent) {
|
|
23
|
+
// Access to the layer: every task and area route; the crud decides area by area.
|
|
24
|
+
TaskComponent["TASKS"] = "ai-tasks";
|
|
25
|
+
// Superuser: creates and archives root areas and appoints their administrators.
|
|
26
|
+
TaskComponent["PLATFORM"] = "ai-platform";
|
|
27
|
+
})(TaskComponent || (exports.TaskComponent = TaskComponent = {}));
|
|
28
|
+
var TaskComponentView;
|
|
29
|
+
(function (TaskComponentView) {
|
|
30
|
+
TaskComponentView["MEMBER"] = "member";
|
|
31
|
+
TaskComponentView["PLATFORM_ADMIN"] = "admin";
|
|
32
|
+
})(TaskComponentView || (exports.TaskComponentView = TaskComponentView = {}));
|
|
33
|
+
// The view a person has in an area. It also applies to its sub-areas (inherited downwards).
|
|
24
34
|
var TaskView;
|
|
25
35
|
(function (TaskView) {
|
|
26
36
|
TaskView["VIEWER"] = "viewer";
|
|
@@ -28,7 +38,7 @@ var TaskView;
|
|
|
28
38
|
TaskView["REVIEWER"] = "reviewer";
|
|
29
39
|
TaskView["ADMINISTRATOR"] = "administrator";
|
|
30
40
|
})(TaskView || (exports.TaskView = TaskView = {}));
|
|
31
|
-
//
|
|
41
|
+
// What each view allows. The crud applies the rules area by area.
|
|
32
42
|
var TaskCapability;
|
|
33
43
|
(function (TaskCapability) {
|
|
34
44
|
TaskCapability["READ"] = "read";
|
|
@@ -40,6 +50,9 @@ var TaskCapability;
|
|
|
40
50
|
TaskCapability["SUBMIT_ANY"] = "submit_any";
|
|
41
51
|
TaskCapability["REVIEW"] = "review";
|
|
42
52
|
TaskCapability["IMPORT"] = "import";
|
|
53
|
+
// Manage the area: create, archive and restore sub-areas; assign, change and remove members
|
|
54
|
+
// (other administrators included); read the audit log.
|
|
55
|
+
TaskCapability["MANAGE"] = "manage";
|
|
43
56
|
})(TaskCapability || (exports.TaskCapability = TaskCapability = {}));
|
|
44
57
|
exports.TASK_VIEW_CAPABILITIES = {
|
|
45
58
|
[TaskView.VIEWER]: [TaskCapability.READ],
|
|
@@ -47,15 +60,14 @@ exports.TASK_VIEW_CAPABILITIES = {
|
|
|
47
60
|
[TaskView.REVIEWER]: [TaskCapability.READ, TaskCapability.REVIEW],
|
|
48
61
|
[TaskView.ADMINISTRATOR]: Object.values(TaskCapability),
|
|
49
62
|
};
|
|
50
|
-
//
|
|
63
|
+
// Decisions in the review history of a task.
|
|
51
64
|
var TaskReviewDecision;
|
|
52
65
|
(function (TaskReviewDecision) {
|
|
53
66
|
TaskReviewDecision["SUBMITTED"] = "submitted";
|
|
54
67
|
TaskReviewDecision["APPROVED"] = "approved";
|
|
55
68
|
TaskReviewDecision["RETURNED"] = "returned";
|
|
56
69
|
})(TaskReviewDecision || (exports.TaskReviewDecision = TaskReviewDecision = {}));
|
|
57
|
-
//
|
|
58
|
-
// las que no se admiten.
|
|
70
|
+
// Operations on tasks. The crud stores them with each opId; the manager names the unsupported ones.
|
|
59
71
|
var TaskOperation;
|
|
60
72
|
(function (TaskOperation) {
|
|
61
73
|
TaskOperation["ADD"] = "add";
|
|
@@ -67,8 +79,8 @@ var TaskOperation;
|
|
|
67
79
|
TaskOperation["MODIFY"] = "modify";
|
|
68
80
|
TaskOperation["DESTROY"] = "destroy";
|
|
69
81
|
})(TaskOperation || (exports.TaskOperation = TaskOperation = {}));
|
|
70
|
-
//
|
|
71
|
-
//
|
|
82
|
+
// Codes the crud rejects an operation with; callers react to them (e.g. on POSITION_CHANGED a person
|
|
83
|
+
// is asked again where the task goes).
|
|
72
84
|
var TaskErrorCode;
|
|
73
85
|
(function (TaskErrorCode) {
|
|
74
86
|
TaskErrorCode["MISSING_OP_ID"] = "missing_op_id";
|
|
@@ -88,7 +100,7 @@ var TaskErrorCode;
|
|
|
88
100
|
TaskErrorCode["ALREADY_IMPORTED"] = "already_imported";
|
|
89
101
|
TaskErrorCode["AREA_FORBIDDEN"] = "area_forbidden";
|
|
90
102
|
TaskErrorCode["UNKNOWN_WORKSPACE"] = "unknown_workspace";
|
|
91
|
-
//
|
|
103
|
+
// The same workspace name exists in several of the caller's areas: the area must be given.
|
|
92
104
|
TaskErrorCode["AMBIGUOUS_WORKSPACE"] = "ambiguous_workspace";
|
|
93
105
|
TaskErrorCode["NOT_OWNER"] = "not_owner";
|
|
94
106
|
TaskErrorCode["ASSIGN_FORBIDDEN"] = "assign_forbidden";
|
|
@@ -96,6 +108,16 @@ var TaskErrorCode;
|
|
|
96
108
|
TaskErrorCode["OWNER_WITHOUT_ACCESS"] = "owner_without_access";
|
|
97
109
|
TaskErrorCode["NOT_IN_REVIEW"] = "not_in_review";
|
|
98
110
|
TaskErrorCode["MISSING_COMMENT"] = "missing_comment";
|
|
111
|
+
// Areas: unknown (or not the caller's), key already used, invalid key, deeper than allowed,
|
|
112
|
+
// archived, invalid view, unknown person or member.
|
|
113
|
+
TaskErrorCode["UNKNOWN_AREA"] = "unknown_area";
|
|
114
|
+
TaskErrorCode["AREA_EXISTS"] = "area_exists";
|
|
115
|
+
TaskErrorCode["INVALID_AREA_KEY"] = "invalid_area_key";
|
|
116
|
+
TaskErrorCode["MAX_DEPTH"] = "max_depth";
|
|
117
|
+
TaskErrorCode["AREA_ARCHIVED"] = "area_archived";
|
|
118
|
+
TaskErrorCode["INVALID_VIEW"] = "invalid_view";
|
|
119
|
+
TaskErrorCode["UNKNOWN_PERSON"] = "unknown_person";
|
|
120
|
+
TaskErrorCode["MEMBER_NOT_FOUND"] = "member_not_found";
|
|
99
121
|
TaskErrorCode["UNSUPPORTED"] = "unsupported";
|
|
100
122
|
TaskErrorCode["CRUD_ERROR"] = "crud_error";
|
|
101
123
|
TaskErrorCode["CRUD_UNREACHABLE"] = "crud_unreachable";
|
|
@@ -109,35 +131,35 @@ var TaskEffort;
|
|
|
109
131
|
})(TaskEffort || (exports.TaskEffort = TaskEffort = {}));
|
|
110
132
|
var TaskRisk;
|
|
111
133
|
(function (TaskRisk) {
|
|
112
|
-
TaskRisk["LOW"] = "
|
|
113
|
-
TaskRisk["MEDIUM"] = "
|
|
114
|
-
TaskRisk["HIGH"] = "
|
|
134
|
+
TaskRisk["LOW"] = "low";
|
|
135
|
+
TaskRisk["MEDIUM"] = "medium";
|
|
136
|
+
TaskRisk["HIGH"] = "high";
|
|
115
137
|
})(TaskRisk || (exports.TaskRisk = TaskRisk = {}));
|
|
116
138
|
const UNSUPPORTED_MESSAGES = {
|
|
117
|
-
[TaskOperation.MODIFY]: "
|
|
118
|
-
[TaskOperation.DESTROY]: "
|
|
139
|
+
[TaskOperation.MODIFY]: "Tasks are not edited: they are started, submitted, approved or returned",
|
|
140
|
+
[TaskOperation.DESTROY]: "Tasks are not deleted: they are approved",
|
|
119
141
|
};
|
|
120
142
|
const WRITES = {
|
|
121
143
|
[APIRequest_1.RequestMethod.POST]: RequestAxiosCall_1.RequestAxiosCall.post,
|
|
122
144
|
[APIRequest_1.RequestMethod.PUT]: RequestAxiosCall_1.RequestAxiosCall.put,
|
|
123
145
|
};
|
|
124
|
-
//
|
|
125
|
-
//
|
|
146
|
+
// The body sent to the crud: everything but the headers (config), the createMany list (values) and
|
|
147
|
+
// the search id; JSON.stringify already drops what is undefined.
|
|
126
148
|
function bodyOf(details) {
|
|
127
149
|
const { config, values, id, ...body } = details;
|
|
128
150
|
return body;
|
|
129
151
|
}
|
|
130
152
|
function unsupported(operation) {
|
|
131
|
-
return Promise.reject(new Response_1.ApiServiceError(Response_1.HttpCode.METHOD_NOT_ALLOWED, TaskErrorCode.UNSUPPORTED, UNSUPPORTED_MESSAGES[operation] ?? `
|
|
153
|
+
return Promise.reject(new Response_1.ApiServiceError(Response_1.HttpCode.METHOD_NOT_ALLOWED, TaskErrorCode.UNSUPPORTED, UNSUPPORTED_MESSAGES[operation] ?? `Unsupported operation: ${operation}`));
|
|
132
154
|
}
|
|
133
|
-
//
|
|
134
|
-
// (
|
|
155
|
+
// A rejection from the crud (400, 404, 409…) arrives as an ApiServiceError with its status and code
|
|
156
|
+
// (e.g. 409 position_changed), so the caller can decide or show it to a person.
|
|
135
157
|
function toApiServiceError(error) {
|
|
136
158
|
const status = error?.response?.status;
|
|
137
159
|
const detail = error?.response?.data?.error;
|
|
138
160
|
return error instanceof Response_1.ApiServiceError
|
|
139
161
|
? error
|
|
140
|
-
: new Response_1.ApiServiceError(status ?? Response_1.HttpCode.INTERNAL_SERVER_ERROR, detail?.code ?? (status ? TaskErrorCode.CRUD_ERROR : TaskErrorCode.CRUD_UNREACHABLE), detail?.message ?? error?.message ?? "Error
|
|
162
|
+
: new Response_1.ApiServiceError(status ?? Response_1.HttpCode.INTERNAL_SERVER_ERROR, detail?.code ?? (status ? TaskErrorCode.CRUD_ERROR : TaskErrorCode.CRUD_UNREACHABLE), detail?.message ?? error?.message ?? "Error calling the tasks crud", detail?.details);
|
|
141
163
|
}
|
|
142
164
|
const rejectAsApiError = (error) => Promise.reject(toApiServiceError(error));
|
|
143
165
|
class TaskManager extends CrudServiceManager_1.CrudServiceManager {
|
|
@@ -158,11 +180,11 @@ class TaskManager extends CrudServiceManager_1.CrudServiceManager {
|
|
|
158
180
|
async count(details) {
|
|
159
181
|
return ((await this.findAll(details)) ?? []).length;
|
|
160
182
|
}
|
|
161
|
-
//
|
|
183
|
+
// Adds a task at the given placement.
|
|
162
184
|
create(details) {
|
|
163
185
|
return this.sendCreation(`${this.url}/tasks`, bodyOf(details), details.config).catch(rejectAsApiError);
|
|
164
186
|
}
|
|
165
|
-
//
|
|
187
|
+
// One by one and in order: each may go before or after the previous one.
|
|
166
188
|
async createMany(details) {
|
|
167
189
|
const created = [];
|
|
168
190
|
for (const value of details.values ?? []) {
|
|
@@ -178,35 +200,29 @@ class TaskManager extends CrudServiceManager_1.CrudServiceManager {
|
|
|
178
200
|
destroy(_item) {
|
|
179
201
|
return unsupported(TaskOperation.DESTROY);
|
|
180
202
|
}
|
|
181
|
-
//
|
|
203
|
+
// Records the start (only the first time).
|
|
182
204
|
start(details) {
|
|
183
205
|
return this.sendWrite(APIRequest_1.RequestMethod.PUT, `${this.url}/tasks/start`, details);
|
|
184
206
|
}
|
|
185
|
-
//
|
|
207
|
+
// Sends it to review with the verification done and the measures (whoever worked on it).
|
|
186
208
|
submit(details) {
|
|
187
209
|
return this.sendWrite(APIRequest_1.RequestMethod.PUT, `${this.url}/tasks/submit`, details);
|
|
188
210
|
}
|
|
189
|
-
//
|
|
211
|
+
// Approves a task in review: it moves to «done» with its date (reviewer or administrator).
|
|
190
212
|
close(details) {
|
|
191
213
|
return this.sendWrite(APIRequest_1.RequestMethod.PUT, `${this.url}/tasks/close`, details);
|
|
192
214
|
}
|
|
193
|
-
//
|
|
215
|
+
// Returns a task in review to «now» with a comment (reviewer or administrator).
|
|
194
216
|
returnTask(details) {
|
|
195
217
|
return this.sendWrite(APIRequest_1.RequestMethod.PUT, `${this.url}/tasks/return`, details);
|
|
196
218
|
}
|
|
197
|
-
//
|
|
198
|
-
areas(details) {
|
|
199
|
-
return RequestAxiosCall_1.RequestAxiosCall.get(`${this.url}/areas`, details.config)
|
|
200
|
-
.then((response) => response.payload ?? [])
|
|
201
|
-
.catch(rejectAsApiError);
|
|
202
|
-
}
|
|
203
|
-
// Historial de revisión de una tarea.
|
|
219
|
+
// Review history of a task.
|
|
204
220
|
reviews(details) {
|
|
205
221
|
return RequestAxiosCall_1.RequestAxiosCall.get(`${this.url}/tasks/reviews${(0, BuildQuery_1.buildQuery)({ id: details.id })}`, details.config)
|
|
206
222
|
.then((response) => response.payload ?? [])
|
|
207
223
|
.catch(rejectAsApiError);
|
|
208
224
|
}
|
|
209
|
-
//
|
|
225
|
+
// One-time migration of the backlog.md of a workspace.
|
|
210
226
|
importWorkspace(details) {
|
|
211
227
|
return RequestAxiosCall_1.RequestAxiosCall.post(`${this.url}/workspaces/import`, bodyOf(details), details.config)
|
|
212
228
|
.then((response) => response.payload)
|
|
@@ -218,7 +234,15 @@ class TaskManager extends CrudServiceManager_1.CrudServiceManager {
|
|
|
218
234
|
.catch(rejectAsApiError);
|
|
219
235
|
}
|
|
220
236
|
query(details) {
|
|
221
|
-
return (0, BuildQuery_1.buildQuery)({
|
|
237
|
+
return (0, BuildQuery_1.buildQuery)({
|
|
238
|
+
id: details.id,
|
|
239
|
+
workspace: details.workspace,
|
|
240
|
+
area: details.area,
|
|
241
|
+
section: details.section,
|
|
242
|
+
ownerName: details.ownerName,
|
|
243
|
+
mine: details.mine ? "true" : undefined,
|
|
244
|
+
includeArchived: details.includeArchived ? "true" : undefined,
|
|
245
|
+
});
|
|
222
246
|
}
|
|
223
247
|
}
|
|
224
248
|
exports.TaskManager = TaskManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/ai/TaskManager.ts"],"names":[],"mappings":";;;;AACA,8DAAwF;AACxF,6DAA0D;AAC1D,oDAAoD;AACpD,sDAAoE;AAEpE,0DAAuD;AAEvD,
|
|
1
|
+
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../../../../../src/api/request/crud/ai/TaskManager.ts"],"names":[],"mappings":";;;;AACA,8DAAwF;AACxF,6DAA0D;AAC1D,oDAAoD;AACpD,sDAAoE;AAEpE,0DAAuD;AAEvD,iGAAiG;AACjG,gEAAgE;AAChE,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AAiC,GAAG,IAAI,CAAC,GAAG,oBAAoB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;aAC3H,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;aACpC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAEO,SAAS,CAAC,MAA8C,EAAE,GAAW,EAAE,OAA2B;QACxG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAuB,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;aAC9E,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;aAC9C,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;IAEO,KAAK,CAAC,OAA2B;QACvC,OAAO,IAAA,uBAAU,EAAC;YAChB,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACvC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,9 @@ export { CityManager as CityManager, ICity as ICity, ICityDetails as ICityDetail
|
|
|
59
59
|
export { IdentificationTypeManager as IdentificationTypeManager, IIdentificationType as IIdentificationType, IIdentificationTypeDetails as IIdentificationTypeDetails, IIdentificationTypeSearchDetails as IIdentificationTypeSearchDetails } from './api/request/crud/common/IdentificationTypeManager';
|
|
60
60
|
export { KindOfPersonManager as KindOfPersonManager, IKindOfPerson as IKindOfPerson, IKindOfPersonDetails as IKindOfPersonDetails, IKindOfPersonSearchDetails as IKindOfPersonSearchDetails } from './api/request/crud/common/KindOfPersonManager';
|
|
61
61
|
export { WebhookManager as WebhookManager, IWebhook as IWebhook, IWebhookSearchDetails as IWebhookSearchDetails } from './api/request/crud/common/WebhookManager';
|
|
62
|
-
export { TaskManager as TaskManager, TaskSection as TaskSection,
|
|
62
|
+
export { TaskManager as TaskManager, TaskSection as TaskSection, TaskComponent as TaskComponent, TaskComponentView as TaskComponentView, TaskView as TaskView, TaskCapability as TaskCapability, TASK_VIEW_CAPABILITIES as TASK_VIEW_CAPABILITIES, TaskReviewDecision as TaskReviewDecision, ITaskReview as ITaskReview, TaskOperation as TaskOperation, TaskErrorCode as TaskErrorCode, TaskEffort as TaskEffort, TaskRisk as TaskRisk, TaskMeasure as TaskMeasure, IWorkspace as IWorkspace, ITask as ITask, ITaskPlacement as ITaskPlacement, ITaskImported as ITaskImported, ITaskImportResult as ITaskImportResult, ITaskSearchDetails as ITaskSearchDetails, toApiServiceError as toApiServiceError } from './api/request/crud/ai/TaskManager';
|
|
63
|
+
export { AreaManager as AreaManager, AreaOperation as AreaOperation, AreaAuditAction as AreaAuditAction, AREA_MAX_LEVEL as AREA_MAX_LEVEL, AREA_PATH_SEPARATOR as AREA_PATH_SEPARATOR, AREA_KEY_PATTERN as AREA_KEY_PATTERN, IArea as IArea, IAreaAccess as IAreaAccess, IAreaAudit as IAreaAudit, IAreaSearchDetails as IAreaSearchDetails } from './api/request/crud/ai/AreaManager';
|
|
64
|
+
export { AreaMemberManager as AreaMemberManager, IAreaMember as IAreaMember, IAreaMemberSearchDetails as IAreaMemberSearchDetails } from './api/request/crud/ai/AreaMemberManager';
|
|
63
65
|
export { InternalTokenExchanger as InternalTokenExchanger, InternalTokenExchangerOptions as InternalTokenExchangerOptions } from './api/request/InternalTokenExchanger';
|
|
64
66
|
export { CrudManager as CrudManager } from './api/request/crud/CrudManager';
|
|
65
67
|
export { CrudServiceManager as CrudServiceManager, StandardIdRequestDefinition as StandardIdRequestDefinition } from './api/request/crud/CrudServiceManager';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KycDocumentType = exports.KycApiConnection = exports.TemporalMemoryManager = exports.ApiKeyChecker = exports.DEFAULT_RATE_LIMIT_MESSAGE = exports.clientIp = exports.MemoryRateLimitStore = exports.RateLimiter = exports.ApiMethodChecker = exports.isAllowed = exports.PermissionsResolver = exports.McpPermissionsChecker = exports.RoleServicePermissionsChecker = exports.SimpleCheckableAPIRouter = exports.CorsCheckApiRouter = exports.CheckableAPIRouter = exports.CheckableFileUploadingPostRequest = exports.CheckablePutRequest = exports.CheckablePostRequest = exports.CheckableGetRequest = exports.CheckableDeleteRequest = exports.APIChecker = exports.CheckableAPIRequest = exports.DeleteRequest = exports.PutRequest = exports.PostRequest = exports.GetRequest = exports.RequestAxiosCall = exports.SimpleAPIRouter = exports.APIRouter = exports.APIRequestBuilder = exports.RequestParameterType = exports.RequestContext = exports.RequestMethod = exports.APIRequest = exports.ExternalApiConnection = exports.ExpressFileUploadingConfiguration = exports.ExpressStandardConfiguration = exports.ExpressCookieParserConfiguration = exports.ExpressLogableConfig = exports.StandardGetRequestBuilder = exports.HttpsAPIService = exports.ITRMAPIServiceGlobal = exports.APIService = exports.buildQuery = exports.HttpCode = exports.mapErrorCodeToHttpStatus = exports.ResponseUtils = exports.ApiServiceError = exports.AlegraConnectionManager = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.BrebApiConnection = exports.PAYMENT_TYPES = exports.DOCUMENT_TYPES = exports.BANKS = exports.round = exports.CoingeckoPriceFinder = exports.Coin = exports.LoggerWebSocket = exports.LoggerManager = exports.Logger = exports.SequelizeModelManager = exports.SequelizeConnection = exports.MongooseModelManager = exports.JwtUtils = exports.PasswordUtils = exports.ApiKeySigner = exports.StandardApiKeyGenerator = exports.EnvDecryptionError = exports.requestSecretKey = void 0;
|
|
4
|
+
exports.AesCipheringAlgorithm = exports.encryptPayload = exports.encryptValue = exports.decryptString = exports.decryptJSON = exports.fetchUnencryptedDEK = exports.EncryptService = exports.CrudServiceManager = exports.InternalTokenExchanger = exports.AreaMemberManager = exports.AREA_KEY_PATTERN = exports.AREA_PATH_SEPARATOR = exports.AREA_MAX_LEVEL = exports.AreaAuditAction = exports.AreaOperation = exports.AreaManager = exports.toApiServiceError = exports.TaskRisk = exports.TaskEffort = exports.TaskErrorCode = exports.TaskOperation = exports.TaskReviewDecision = exports.TASK_VIEW_CAPABILITIES = exports.TaskCapability = exports.TaskView = exports.TaskComponentView = exports.TaskComponent = exports.TaskSection = exports.TaskManager = exports.WebhookManager = exports.KindOfPersonManager = exports.IdentificationTypeManager = exports.CityManager = exports.DepartmentManager = exports.CountryManager = exports.ServiceSessionManager = exports.UserManager = exports.UserCredentialsManager = exports.TypeManager = exports.StatusManager = exports.RoleManager = exports.PlatformManager = exports.KeyManager = exports.ComponentManager = exports.AvailablePlatformManager = exports.ApplicationManager = exports.ActivityHistoryManager = exports.QueueManager = exports.KycStatus = exports.KycPersonType = void 0;
|
|
5
|
+
exports.BrebApiConnection = exports.PAYMENT_TYPES = exports.DOCUMENT_TYPES = exports.BANKS = exports.round = exports.CoingeckoPriceFinder = exports.Coin = exports.LoggerWebSocket = exports.LoggerManager = exports.Logger = exports.SequelizeModelManager = exports.SequelizeConnection = exports.MongooseModelManager = exports.JwtUtils = exports.PasswordUtils = exports.ApiKeySigner = exports.StandardApiKeyGenerator = exports.EnvDecryptionError = exports.requestSecretKey = exports.encryptEnvFile = exports.deriveKey = exports.decodeEnvVars = exports.decodeEnvFile = exports.GcmInvalidKeyError = exports.GcmFormatError = exports.GcmAuthTagError = exports.GcmCipheringAlgorithm = void 0;
|
|
6
6
|
var AlegraConnectionManager_1 = require("./api/alegra/AlegraConnectionManager");
|
|
7
7
|
Object.defineProperty(exports, "AlegraConnectionManager", { enumerable: true, get: function () { return AlegraConnectionManager_1.AlegraConnectionManager; } });
|
|
8
8
|
var Response_1 = require("./api/utils/Response");
|
|
@@ -134,7 +134,8 @@ Object.defineProperty(exports, "WebhookManager", { enumerable: true, get: functi
|
|
|
134
134
|
var TaskManager_1 = require("./api/request/crud/ai/TaskManager");
|
|
135
135
|
Object.defineProperty(exports, "TaskManager", { enumerable: true, get: function () { return TaskManager_1.TaskManager; } });
|
|
136
136
|
Object.defineProperty(exports, "TaskSection", { enumerable: true, get: function () { return TaskManager_1.TaskSection; } });
|
|
137
|
-
Object.defineProperty(exports, "
|
|
137
|
+
Object.defineProperty(exports, "TaskComponent", { enumerable: true, get: function () { return TaskManager_1.TaskComponent; } });
|
|
138
|
+
Object.defineProperty(exports, "TaskComponentView", { enumerable: true, get: function () { return TaskManager_1.TaskComponentView; } });
|
|
138
139
|
Object.defineProperty(exports, "TaskView", { enumerable: true, get: function () { return TaskManager_1.TaskView; } });
|
|
139
140
|
Object.defineProperty(exports, "TaskCapability", { enumerable: true, get: function () { return TaskManager_1.TaskCapability; } });
|
|
140
141
|
Object.defineProperty(exports, "TASK_VIEW_CAPABILITIES", { enumerable: true, get: function () { return TaskManager_1.TASK_VIEW_CAPABILITIES; } });
|
|
@@ -144,6 +145,15 @@ Object.defineProperty(exports, "TaskErrorCode", { enumerable: true, get: functio
|
|
|
144
145
|
Object.defineProperty(exports, "TaskEffort", { enumerable: true, get: function () { return TaskManager_1.TaskEffort; } });
|
|
145
146
|
Object.defineProperty(exports, "TaskRisk", { enumerable: true, get: function () { return TaskManager_1.TaskRisk; } });
|
|
146
147
|
Object.defineProperty(exports, "toApiServiceError", { enumerable: true, get: function () { return TaskManager_1.toApiServiceError; } });
|
|
148
|
+
var AreaManager_1 = require("./api/request/crud/ai/AreaManager");
|
|
149
|
+
Object.defineProperty(exports, "AreaManager", { enumerable: true, get: function () { return AreaManager_1.AreaManager; } });
|
|
150
|
+
Object.defineProperty(exports, "AreaOperation", { enumerable: true, get: function () { return AreaManager_1.AreaOperation; } });
|
|
151
|
+
Object.defineProperty(exports, "AreaAuditAction", { enumerable: true, get: function () { return AreaManager_1.AreaAuditAction; } });
|
|
152
|
+
Object.defineProperty(exports, "AREA_MAX_LEVEL", { enumerable: true, get: function () { return AreaManager_1.AREA_MAX_LEVEL; } });
|
|
153
|
+
Object.defineProperty(exports, "AREA_PATH_SEPARATOR", { enumerable: true, get: function () { return AreaManager_1.AREA_PATH_SEPARATOR; } });
|
|
154
|
+
Object.defineProperty(exports, "AREA_KEY_PATTERN", { enumerable: true, get: function () { return AreaManager_1.AREA_KEY_PATTERN; } });
|
|
155
|
+
var AreaMemberManager_1 = require("./api/request/crud/ai/AreaMemberManager");
|
|
156
|
+
Object.defineProperty(exports, "AreaMemberManager", { enumerable: true, get: function () { return AreaMemberManager_1.AreaMemberManager; } });
|
|
147
157
|
var InternalTokenExchanger_1 = require("./api/request/InternalTokenExchanger");
|
|
148
158
|
Object.defineProperty(exports, "InternalTokenExchanger", { enumerable: true, get: function () { return InternalTokenExchanger_1.InternalTokenExchanger; } });
|
|
149
159
|
var CrudServiceManager_1 = require("./api/request/crud/CrudServiceManager");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,gFAA0G;AAAjG,kIAAA,uBAAuB,OAA2B;AAG3D,iDAAsL;AAA7K,2GAAA,eAAe,OAAmB;AAAE,yGAAA,aAAa,OAAiB;AAAE,oHAAA,wBAAwB,OAA4B;AAAE,oGAAA,QAAQ,OAAY;AACvJ,qDAAkE;AAAzD,wGAAA,UAAU,OAAc;AAGjC,+CAA0L;AAA3I,wGAAA,UAAU,OAAc;AAA4C,kHAAA,oBAAoB,OAAwB;AAC/J,yDAA2E;AAAlE,kHAAA,eAAe,OAAmB;AAG3C,qFAAiH;AAAxG,s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