@abyss-project/tools 3.1.0 → 3.3.0
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/.eslintrc.js +0 -1
- package/dist/api/extraction-plan-preset.api.test.js +17 -7
- package/dist/api/extraction-plan-preset.api.test.js.map +1 -1
- package/dist/api/extraction.api.d.ts +1 -3
- package/dist/api/extraction.api.js +4 -4
- package/dist/api/extraction.api.js.map +1 -1
- package/dist/api/extraction.application.api.test.js +17 -7
- package/dist/api/extraction.application.api.test.js.map +1 -1
- package/dist/api/probe-scan.api.d.ts +2 -2
- package/dist/api/probe-scan.api.js +3 -3
- package/dist/api/probe-scan.api.js.map +1 -1
- package/dist/api/probe-scan.api.test.js +17 -7
- package/dist/api/probe-scan.api.test.js.map +1 -1
- package/dist/api/probe-scan.application.api.d.ts +4 -4
- package/dist/api/probe-scan.application.api.test.js +17 -7
- package/dist/api/probe-scan.application.api.test.js.map +1 -1
- package/dist/api/probe-webhook.api.test.js +17 -7
- package/dist/api/probe-webhook.api.test.js.map +1 -1
- package/dist/api/probe-webhook.application.api.d.ts +1 -1
- package/dist/api/probe-webhook.application.api.test.js +17 -7
- package/dist/api/probe-webhook.application.api.test.js.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/rcb-bank.enum.js +3 -3
- package/dist/types/enum/rcb-bank.enum.js.map +1 -1
- package/dist/types/enum/tool-document-sort.enum.d.ts +9 -0
- package/dist/types/enum/tool-document-sort.enum.js +15 -0
- package/dist/types/enum/tool-document-sort.enum.js.map +1 -0
- package/dist/types/interface/api/requests/atlas.request.d.ts +3 -1
- package/dist/types/interface/api/requests/board.request.d.ts +3 -1
- package/dist/types/interface/api/requests/draw.request.d.ts +3 -1
- package/dist/types/interface/api/requests/extraction.request.d.ts +0 -2
- package/dist/types/interface/api/requests/retrospective.request.d.ts +3 -1
- package/dist/types/interface/api/responses/draw.public.response.d.ts +2 -0
- package/dist/utils/extraction-webhook.utils.d.ts +0 -2
- package/dist/utils/extraction-webhook.utils.js +1 -2
- package/dist/utils/extraction-webhook.utils.js.map +1 -1
- package/dist/utils/probe-scan-cost.utils.d.ts +1 -1
- package/dist/utils/probe-webhook-signature.utils.d.ts +0 -2
- package/dist/utils/probe-webhook-signature.utils.js +1 -2
- package/dist/utils/probe-webhook-signature.utils.js.map +1 -1
- package/package.json +5 -5
- package/src/api/extraction.api.ts +1 -1
- package/src/api/probe-scan.api.ts +1 -1
- package/src/types/enum/index.ts +1 -0
- package/src/types/enum/tool-document-sort.enum.ts +11 -0
- package/src/types/interface/api/requests/atlas.request.ts +3 -1
- package/src/types/interface/api/requests/board.request.ts +3 -1
- package/src/types/interface/api/requests/draw.request.ts +3 -1
- package/src/types/interface/api/requests/extraction.request.ts +1 -0
- package/src/types/interface/api/requests/retrospective.request.ts +3 -1
- package/src/types/interface/api/responses/atlas-document.response.ts +1 -0
- package/src/types/interface/api/responses/atlas-group.response.ts +1 -0
- package/src/types/interface/api/responses/atlas-page.response.ts +1 -0
- package/src/types/interface/api/responses/atlas.response.ts +1 -0
- package/src/types/interface/api/responses/beam.response.ts +2 -0
- package/src/types/interface/api/responses/board-card-checklist.response.ts +3 -0
- package/src/types/interface/api/responses/board-card-comment.response.ts +1 -0
- package/src/types/interface/api/responses/board-card-document.response.ts +1 -0
- package/src/types/interface/api/responses/board-card.response.ts +3 -0
- package/src/types/interface/api/responses/board-column.response.ts +1 -0
- package/src/types/interface/api/responses/board-label.response.ts +3 -0
- package/src/types/interface/api/responses/board.response.ts +1 -0
- package/src/types/interface/api/responses/draw.public.response.ts +3 -0
- package/src/types/interface/api/responses/draw.response.ts +1 -0
- package/src/types/interface/api/responses/retrospective-card.response.ts +1 -0
- package/src/types/interface/api/responses/retrospective-section.response.ts +1 -0
- package/src/types/interface/api/responses/retrospective.response.ts +1 -0
- package/src/types/interface/api/responses/short-link.admin.response.ts +1 -0
- package/src/types/interface/api/responses/short-link.response.ts +1 -0
- package/src/types/interface/api/responses/tag.response.ts +2 -0
- package/src/utils/extraction-webhook.utils.ts +1 -1
- package/src/utils/probe-webhook-signature.utils.ts +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RCB_BANK_CATALOGUE = exports.RcbBankVersionId = void 0;
|
|
4
|
+
exports.getRcbBankCatalogueEntry = getRcbBankCatalogueEntry;
|
|
5
|
+
exports.groupRcbCatalogueByBank = groupRcbCatalogueByBank;
|
|
4
6
|
var RcbBankVersionId;
|
|
5
7
|
(function (RcbBankVersionId) {
|
|
6
8
|
RcbBankVersionId["BNP_CONNEXIS_DEFAULT"] = "bnp-connexis-default";
|
|
@@ -301,7 +303,6 @@ exports.RCB_BANK_CATALOGUE = [
|
|
|
301
303
|
function getRcbBankCatalogueEntry(id) {
|
|
302
304
|
return exports.RCB_BANK_CATALOGUE.find((e) => e.id === id);
|
|
303
305
|
}
|
|
304
|
-
exports.getRcbBankCatalogueEntry = getRcbBankCatalogueEntry;
|
|
305
306
|
function groupRcbCatalogueByBank() {
|
|
306
307
|
const out = new Map();
|
|
307
308
|
for (const entry of exports.RCB_BANK_CATALOGUE) {
|
|
@@ -311,5 +312,4 @@ function groupRcbCatalogueByBank() {
|
|
|
311
312
|
}
|
|
312
313
|
return out;
|
|
313
314
|
}
|
|
314
|
-
exports.groupRcbCatalogueByBank = groupRcbCatalogueByBank;
|
|
315
315
|
//# sourceMappingURL=rcb-bank.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rcb-bank.enum.js","sourceRoot":"","sources":["../../../src/types/enum/rcb-bank.enum.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rcb-bank.enum.js","sourceRoot":"","sources":["../../../src/types/enum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,IAAI;QACb,IAAI,EAAE,WAAW;KAClB;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,aAAa;QAClC,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,QAAQ;KACf;IACD;QACE,EAAE,EAAE,gBAAgB,CAAC,gBAAgB;QACrC,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,WAAW;KAClB;CACF,CAAC;AAMF,SAAgB,wBAAwB,CAAC,EAAU;IACjD,OAAO,0BAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACrD,CAAC;AAMD,SAAgB,uBAAuB;IACrC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAmC,CAAC;IACvD,KAAK,MAAM,KAAK,IAAI,0BAAkB,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortDirection = exports.ToolDocumentSortBy = void 0;
|
|
4
|
+
var ToolDocumentSortBy;
|
|
5
|
+
(function (ToolDocumentSortBy) {
|
|
6
|
+
ToolDocumentSortBy["UPDATED_AT"] = "updatedAt";
|
|
7
|
+
ToolDocumentSortBy["CREATED_AT"] = "createdAt";
|
|
8
|
+
ToolDocumentSortBy["TITLE"] = "title";
|
|
9
|
+
})(ToolDocumentSortBy || (exports.ToolDocumentSortBy = ToolDocumentSortBy = {}));
|
|
10
|
+
var SortDirection;
|
|
11
|
+
(function (SortDirection) {
|
|
12
|
+
SortDirection["ASC"] = "ASC";
|
|
13
|
+
SortDirection["DESC"] = "DESC";
|
|
14
|
+
})(SortDirection || (exports.SortDirection = SortDirection = {}));
|
|
15
|
+
//# sourceMappingURL=tool-document-sort.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-document-sort.enum.js","sourceRoot":"","sources":["../../../src/types/enum/tool-document-sort.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,8CAAwB,CAAA;IACxB,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
export interface IGetAtlasParams {
|
|
4
4
|
atlasId: string;
|
|
@@ -13,6 +13,8 @@ export type IPaginateAtlasQuery = {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
adminView?: boolean;
|
|
15
15
|
sharedWithMe?: boolean;
|
|
16
|
+
sortBy?: ToolDocumentSortBy;
|
|
17
|
+
sortDirection?: SortDirection;
|
|
16
18
|
} & QueryPaginate;
|
|
17
19
|
export interface ICreateForOrganizationAtlasParams {
|
|
18
20
|
organizationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
export type ICreateForOrganizationBoardParams = {
|
|
4
4
|
organizationId: string;
|
|
@@ -41,6 +41,8 @@ export type IPaginateBoardQuery = {
|
|
|
41
41
|
projectId?: string;
|
|
42
42
|
adminView?: boolean;
|
|
43
43
|
sharedWithMe?: boolean;
|
|
44
|
+
sortBy?: ToolDocumentSortBy;
|
|
45
|
+
sortDirection?: SortDirection;
|
|
44
46
|
} & QueryPaginate;
|
|
45
47
|
export type IPaginateOrganizationBoardParams = {
|
|
46
48
|
organizationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
export type ICreateForOrganizationDrawParams = {
|
|
4
4
|
organizationId: string;
|
|
@@ -29,6 +29,8 @@ export type IPaginateDrawQuery = {
|
|
|
29
29
|
projectId?: string;
|
|
30
30
|
adminView?: boolean;
|
|
31
31
|
sharedWithMe?: boolean;
|
|
32
|
+
sortBy?: ToolDocumentSortBy;
|
|
33
|
+
sortDirection?: SortDirection;
|
|
32
34
|
} & QueryPaginate;
|
|
33
35
|
export type IPaginateProjectDrawParams = {
|
|
34
36
|
projectId: string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { ExtractionMode, ExtractionFeedbackIssueType, ExtractionFeedbackStatus, ProcessingMode, IExtractionBankHint } from '../../models/extraction.dto';
|
|
4
2
|
import { DocumentType } from '../../../enum/document-type.enum';
|
|
5
3
|
import type { IExtractionPlan } from '../../models/extraction-plan.dto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
export interface IGetRetrospectiveParams {
|
|
4
4
|
retrospectiveId: string;
|
|
@@ -14,6 +14,8 @@ export type IPaginateRetrospectiveQuery = {
|
|
|
14
14
|
projectId?: string;
|
|
15
15
|
adminView?: boolean;
|
|
16
16
|
sharedWithMe?: boolean;
|
|
17
|
+
sortBy?: ToolDocumentSortBy;
|
|
18
|
+
sortDirection?: SortDirection;
|
|
17
19
|
} & QueryPaginate;
|
|
18
20
|
export interface ICreateForOrganizationRetrospectiveParams {
|
|
19
21
|
organizationId: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IResponse } from '../type-message/response';
|
|
2
2
|
import { IDraw } from '../../models/draw.dto';
|
|
3
|
+
import { SharePermission } from '../../../enum/content-share.enum';
|
|
3
4
|
export interface IGetDrawPublicData {
|
|
4
5
|
draw: IDraw;
|
|
6
|
+
sharePermission: SharePermission | null;
|
|
5
7
|
}
|
|
6
8
|
export type IGetDrawPublicResponse = IResponse<IGetDrawPublicData>;
|
|
7
9
|
export interface IUpdateDrawPublicData {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.verifyExtractionWebhook =
|
|
3
|
+
exports.verifyExtractionWebhook = verifyExtractionWebhook;
|
|
4
4
|
function verifyExtractionWebhook(input) {
|
|
5
5
|
if (!input.signatureHeader || !input.secret)
|
|
6
6
|
return false;
|
|
@@ -14,5 +14,4 @@ function verifyExtractionWebhook(input) {
|
|
|
14
14
|
return false;
|
|
15
15
|
return crypto.timingSafeEqual(Buffer.from(provided, 'hex'), Buffer.from(computed, 'hex'));
|
|
16
16
|
}
|
|
17
|
-
exports.verifyExtractionWebhook = verifyExtractionWebhook;
|
|
18
17
|
//# sourceMappingURL=extraction-webhook.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-webhook.utils.js","sourceRoot":"","sources":["../../src/utils/extraction-webhook.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-webhook.utils.js","sourceRoot":"","sources":["../../src/utils/extraction-webhook.utils.ts"],"names":[],"mappings":";;AAkBA,0DAWC;AAXD,SAAgB,uBAAuB,CAAC,KAAmC;IACzE,IAAI,CAAC,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAE1D,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAG,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAW,MAAM;SAC5B,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC;SAClC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;SACrB,MAAM,CAAC,KAAK,CAAC,CAAC;IACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { ProbeScanMode } from '../types';
|
|
|
2
2
|
export declare const PROBE_SCAN_COST_BASE = 1;
|
|
3
3
|
export declare const PROBE_SCAN_COST_K_MB = 1;
|
|
4
4
|
export declare const PROBE_SCAN_COST_MODE_WEIGHT: Record<ProbeScanMode, number>;
|
|
5
|
-
export declare const estimateProbeScanCost: (sizeOctet: number, mode: ProbeScanMode |
|
|
5
|
+
export declare const estimateProbeScanCost: (sizeOctet: number, mode: ProbeScanMode | "sync" | "async") => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.verifyProbeWebhookSignature =
|
|
3
|
+
exports.verifyProbeWebhookSignature = verifyProbeWebhookSignature;
|
|
4
4
|
function verifyProbeWebhookSignature(input) {
|
|
5
5
|
if (!input.signatureHeader || !input.secret)
|
|
6
6
|
return false;
|
|
@@ -18,5 +18,4 @@ function verifyProbeWebhookSignature(input) {
|
|
|
18
18
|
return false;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.verifyProbeWebhookSignature = verifyProbeWebhookSignature;
|
|
22
21
|
//# sourceMappingURL=probe-webhook-signature.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probe-webhook-signature.utils.js","sourceRoot":"","sources":["../../src/utils/probe-webhook-signature.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"probe-webhook-signature.utils.js","sourceRoot":"","sources":["../../src/utils/probe-webhook-signature.utils.ts"],"names":[],"mappings":";;AAiCA,kEAsBC;AAtBD,SAAgB,2BAA2B,CAAC,KAAuC;IACjF,IAAI,CAAC,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAG1D,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,QAAQ,GAAW,MAAM;SAC5B,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC;SAClC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;SACrB,MAAM,CAAC,KAAK,CAAC,CAAC;IAEjB,IAAI,KAAK,CAAC,eAAe,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAEnE,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,eAAe,CAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,EACzC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAC7B,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QAGP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/tools",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Core package to interact with Abyss-Project Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@types/jsonwebtoken": "^8.5.0",
|
|
31
31
|
"@types/node": "^20.11.0",
|
|
32
32
|
"@types/uuid": "^8.3.0",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "
|
|
34
|
-
"@typescript-eslint/parser": "
|
|
35
|
-
"eslint": "^
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
34
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
35
|
+
"eslint": "^8.57.1",
|
|
36
36
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
37
37
|
"eslint-config-prettier": "^8.3.0",
|
|
38
38
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"eslint-plugin-promise": "^5.1.0",
|
|
44
44
|
"prettier": "2.3.1",
|
|
45
45
|
"tsc-watch": "^4.6.2",
|
|
46
|
-
"typescript": "5.
|
|
46
|
+
"typescript": "5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
@@ -99,7 +99,7 @@ function authHeader(apiKey?: string): Record<string, string> {
|
|
|
99
99
|
|
|
100
100
|
/** The PDF bytes as a multipart file part: filename kept, `application/pdf` type. */
|
|
101
101
|
function appendPdfPart(form: FormData, pdf: Buffer | Uint8Array, filename: string): void {
|
|
102
|
-
form.append('file', new Blob([pdf], { type: 'application/pdf' }), filename);
|
|
102
|
+
form.append('file', new Blob([new Uint8Array(pdf)], { type: 'application/pdf' }), filename);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
function serializeParams<T extends object>(o: T): Record<string, unknown> {
|
|
@@ -100,7 +100,7 @@ export type ProbeScanFileInput = Blob | Uint8Array;
|
|
|
100
100
|
*/
|
|
101
101
|
function toScanFilePart(file: ProbeScanFileInput, mimeType?: string): Blob {
|
|
102
102
|
if (file instanceof Blob) return file;
|
|
103
|
-
if (file instanceof Uint8Array) return new Blob([file], { type: mimeType ?? '' });
|
|
103
|
+
if (file instanceof Uint8Array) return new Blob([new Uint8Array(file)], { type: mimeType ?? '' });
|
|
104
104
|
|
|
105
105
|
const isStream = typeof (file as { pipe?: unknown } | null | undefined)?.pipe === 'function';
|
|
106
106
|
throw new TypeError(
|
package/src/types/enum/index.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Sort criteria accepted by the paginated document lists of the tools (boards, atlas, draws, retrospectives).
|
|
2
|
+
export enum ToolDocumentSortBy {
|
|
3
|
+
UPDATED_AT = 'updatedAt',
|
|
4
|
+
CREATED_AT = 'createdAt',
|
|
5
|
+
TITLE = 'title',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum SortDirection {
|
|
9
|
+
ASC = 'ASC',
|
|
10
|
+
DESC = 'DESC',
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
|
|
4
4
|
export interface IGetAtlasParams {
|
|
@@ -16,6 +16,8 @@ export type IPaginateAtlasQuery = {
|
|
|
16
16
|
projectId?: string;
|
|
17
17
|
adminView?: boolean;
|
|
18
18
|
sharedWithMe?: boolean;
|
|
19
|
+
sortBy?: ToolDocumentSortBy;
|
|
20
|
+
sortDirection?: SortDirection;
|
|
19
21
|
} & QueryPaginate;
|
|
20
22
|
|
|
21
23
|
export interface ICreateForOrganizationAtlasParams {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
|
|
4
4
|
export type ICreateForOrganizationBoardParams = {
|
|
@@ -50,6 +50,8 @@ export type IPaginateBoardQuery = {
|
|
|
50
50
|
projectId?: string;
|
|
51
51
|
adminView?: boolean;
|
|
52
52
|
sharedWithMe?: boolean;
|
|
53
|
+
sortBy?: ToolDocumentSortBy;
|
|
54
|
+
sortDirection?: SortDirection;
|
|
53
55
|
} & QueryPaginate;
|
|
54
56
|
|
|
55
57
|
export type IPaginateOrganizationBoardParams = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
|
|
4
4
|
export type ICreateForOrganizationDrawParams = {
|
|
@@ -34,6 +34,8 @@ export type IPaginateDrawQuery = {
|
|
|
34
34
|
projectId?: string;
|
|
35
35
|
adminView?: boolean;
|
|
36
36
|
sharedWithMe?: boolean;
|
|
37
|
+
sortBy?: ToolDocumentSortBy;
|
|
38
|
+
sortDirection?: SortDirection;
|
|
37
39
|
} & QueryPaginate;
|
|
38
40
|
|
|
39
41
|
export type IPaginateProjectDrawParams = {
|
|
@@ -413,6 +413,7 @@ export interface IUpdatePlanPresetBody {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
/** Body for POST /extract/plans/:id/default — set as default (id is path param). */
|
|
416
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
416
417
|
export interface ISetDefaultPlanPresetBody {}
|
|
417
418
|
|
|
418
419
|
/** Query params for GET /extract/plans. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentShareScope } from '../../../enum';
|
|
1
|
+
import { ContentShareScope, SortDirection, ToolDocumentSortBy } from '../../../enum';
|
|
2
2
|
import { QueryPaginate } from '../type-message/base-paginate';
|
|
3
3
|
|
|
4
4
|
export interface IGetRetrospectiveParams {
|
|
@@ -17,6 +17,8 @@ export type IPaginateRetrospectiveQuery = {
|
|
|
17
17
|
projectId?: string;
|
|
18
18
|
adminView?: boolean;
|
|
19
19
|
sharedWithMe?: boolean;
|
|
20
|
+
sortBy?: ToolDocumentSortBy;
|
|
21
|
+
sortDirection?: SortDirection;
|
|
20
22
|
} & QueryPaginate;
|
|
21
23
|
|
|
22
24
|
export interface ICreateForOrganizationRetrospectiveParams {
|
|
@@ -14,6 +14,7 @@ export type IGetUploadPreSignedUrlAtlasDocumentData = IUploadSession;
|
|
|
14
14
|
export type IGetUploadPreSignedUrlAtlasDocumentResponse =
|
|
15
15
|
IResponse<IGetUploadPreSignedUrlAtlasDocumentData>;
|
|
16
16
|
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
17
18
|
export interface IDeleteAtlasDocumentData {}
|
|
18
19
|
export type IDeleteAtlasDocumentResponse = IResponse<IDeleteAtlasDocumentData>;
|
|
19
20
|
|
|
@@ -19,5 +19,6 @@ export interface IUpdateAtlasGroupData {
|
|
|
19
19
|
}
|
|
20
20
|
export type IUpdateAtlasGroupResponse = IResponse<IUpdateAtlasGroupData>;
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
22
23
|
export interface IDeleteAtlasGroupData {}
|
|
23
24
|
export type IDeleteAtlasGroupResponse = IResponse<IDeleteAtlasGroupData>;
|
|
@@ -20,6 +20,7 @@ export interface IUpdateAtlasPageData {
|
|
|
20
20
|
}
|
|
21
21
|
export type IUpdateAtlasPageResponse = IResponse<IUpdateAtlasPageData>;
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
23
24
|
export interface IDeleteAtlasPageData {}
|
|
24
25
|
export type IDeleteAtlasPageResponse = IResponse<IDeleteAtlasPageData>;
|
|
25
26
|
|
|
@@ -21,6 +21,7 @@ export interface IUpdateAtlasData {
|
|
|
21
21
|
}
|
|
22
22
|
export type IUpdateAtlasResponse = IResponse<IUpdateAtlasData>;
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
24
25
|
export interface IDeleteAtlasData {}
|
|
25
26
|
export type IDeleteAtlasResponse = IResponse<IDeleteAtlasData>;
|
|
26
27
|
|
|
@@ -26,6 +26,7 @@ export interface IUpdateBeamData {
|
|
|
26
26
|
}
|
|
27
27
|
export type IUpdateBeamResponse = IResponse<IUpdateBeamData>;
|
|
28
28
|
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
29
30
|
export interface IDeleteBeamData {}
|
|
30
31
|
export type IDeleteBeamResponse = IResponse<IDeleteBeamData>;
|
|
31
32
|
|
|
@@ -114,6 +115,7 @@ export interface IListBeamSharesData {
|
|
|
114
115
|
}
|
|
115
116
|
export type IListBeamSharesResponse = IResponse<IListBeamSharesData>;
|
|
116
117
|
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
117
119
|
export interface IRevokeBeamShareData {}
|
|
118
120
|
export type IRevokeBeamShareResponse = IResponse<IRevokeBeamShareData>;
|
|
119
121
|
|
|
@@ -16,6 +16,7 @@ export interface ICreateBoardCardChecklistData {
|
|
|
16
16
|
}
|
|
17
17
|
export type ICreateBoardCardChecklistResponse = IResponse<ICreateBoardCardChecklistData>;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
20
|
export interface IDeleteBoardCardChecklistData {}
|
|
20
21
|
export type IDeleteBoardCardChecklistResponse = IResponse<IDeleteBoardCardChecklistData>;
|
|
21
22
|
|
|
@@ -24,8 +25,10 @@ export interface IAddRowBoardCardChecklistData {
|
|
|
24
25
|
}
|
|
25
26
|
export type IAddRowBoardCardChecklistResponse = IResponse<IAddRowBoardCardChecklistData>;
|
|
26
27
|
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
27
29
|
export interface IRemoveRowBoardCardChecklistData {}
|
|
28
30
|
export type IRemoveRowBoardCardChecklistResponse = IResponse<IRemoveRowBoardCardChecklistData>;
|
|
29
31
|
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
30
33
|
export interface IUpdateRowBoardCardChecklistData {}
|
|
31
34
|
export type IUpdateRowBoardCardChecklistResponse = IResponse<IUpdateRowBoardCardChecklistData>;
|
|
@@ -16,5 +16,6 @@ export interface ICreateBoardCardCommentData {
|
|
|
16
16
|
}
|
|
17
17
|
export type ICreateBoardCardCommentResponse = IResponse<ICreateBoardCardCommentData>;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
20
|
export interface IDeleteBoardCardCommentData {}
|
|
20
21
|
export type IDeleteBoardCardCommentResponse = IResponse<IDeleteBoardCardCommentData>;
|
|
@@ -13,6 +13,7 @@ export type IGetUploadPreSignedUrlBoardCardDocumentData = IUploadSession;
|
|
|
13
13
|
export type IGetUploadPreSignedUrlBoardCardDocumentResponse =
|
|
14
14
|
IResponse<IGetUploadPreSignedUrlBoardCardDocumentData>;
|
|
15
15
|
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
16
17
|
export interface IDeleteBoardCardDocumentData {}
|
|
17
18
|
export type IDeleteBoardCardDocumentResponse = IResponse<IDeleteBoardCardDocumentData>;
|
|
18
19
|
|
|
@@ -21,12 +21,15 @@ export interface ICreateBoardCardData {
|
|
|
21
21
|
}
|
|
22
22
|
export type ICreateBoardCardResponse = IResponse<ICreateBoardCardData>;
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
24
25
|
export interface IDeleteBoardCardData {}
|
|
25
26
|
export type IDeleteBoardCardResponse = IResponse<IDeleteBoardCardData>;
|
|
26
27
|
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
27
29
|
export interface IAddMemberBoardCardData {}
|
|
28
30
|
export type IAddMemberBoardCardResponse = IResponse<IAddMemberBoardCardData>;
|
|
29
31
|
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
30
33
|
export interface IRemoveMemberBoardCardData {}
|
|
31
34
|
export type IRemoveMemberBoardCardResponse = IResponse<IRemoveMemberBoardCardData>;
|
|
32
35
|
|
|
@@ -16,5 +16,6 @@ export interface ICreateBoardColumnData {
|
|
|
16
16
|
}
|
|
17
17
|
export type ICreateBoardColumnResponse = IResponse<ICreateBoardColumnData>;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
20
|
export interface IDeleteBoardColumnData {}
|
|
20
21
|
export type IDeleteBoardColumnResponse = IResponse<IDeleteBoardColumnData>;
|
|
@@ -16,12 +16,15 @@ export interface ICreateBoardLabelData {
|
|
|
16
16
|
}
|
|
17
17
|
export type ICreateBoardLabelResponse = IResponse<ICreateBoardLabelData>;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
20
|
export interface IDeleteBoardLabelData {}
|
|
20
21
|
export type IDeleteBoardLabelResponse = IResponse<IDeleteBoardLabelData>;
|
|
21
22
|
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
22
24
|
export interface IAddBoardLabelData {}
|
|
23
25
|
export type IAddBoardLabelResponse = IResponse<IAddBoardLabelData>;
|
|
24
26
|
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
25
28
|
export interface IRemoveBoardLabelData {}
|
|
26
29
|
export type IRemoveBoardLabelResponse = IResponse<IRemoveBoardLabelData>;
|
|
27
30
|
|
|
@@ -52,6 +52,7 @@ export interface ICreateBoardData {
|
|
|
52
52
|
}
|
|
53
53
|
export type ICreateBoardResponse = IResponse<ICreateBoardData>;
|
|
54
54
|
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
55
56
|
export interface IDeleteBoardData {}
|
|
56
57
|
export type IDeleteBoardResponse = IResponse<IDeleteBoardData>;
|
|
57
58
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IResponse } from '../type-message/response';
|
|
2
2
|
import { IDraw } from '../../models/draw.dto';
|
|
3
|
+
import { SharePermission } from '../../../enum/content-share.enum';
|
|
3
4
|
|
|
4
5
|
export interface IGetDrawPublicData {
|
|
5
6
|
draw: IDraw;
|
|
7
|
+
sharePermission: SharePermission | null;
|
|
6
8
|
}
|
|
7
9
|
export type IGetDrawPublicResponse = IResponse<IGetDrawPublicData>;
|
|
8
10
|
|
|
@@ -18,5 +20,6 @@ export interface ICreateDrawPublicData {
|
|
|
18
20
|
}
|
|
19
21
|
export type ICreateDrawPublicResponse = IResponse<ICreateDrawPublicData>;
|
|
20
22
|
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
21
24
|
export interface IDeleteDrawPublicData {}
|
|
22
25
|
export type IDeleteDrawPublicResponse = IResponse<IDeleteDrawPublicData>;
|
|
@@ -19,6 +19,7 @@ export interface ICreateDrawData {
|
|
|
19
19
|
}
|
|
20
20
|
export type ICreateDrawResponse = IResponse<ICreateDrawData>;
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
22
23
|
export interface IDeleteDrawData {}
|
|
23
24
|
export type IDeleteDrawResponse = IResponse<IDeleteDrawData>;
|
|
24
25
|
|
|
@@ -19,5 +19,6 @@ export interface IUpdateRetrospectiveCardData {
|
|
|
19
19
|
}
|
|
20
20
|
export type IUpdateRetrospectiveCardResponse = IResponse<IUpdateRetrospectiveCardData>;
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
22
23
|
export interface IDeleteRetrospectiveCardData {}
|
|
23
24
|
export type IDeleteRetrospectiveCardResponse = IResponse<IDeleteRetrospectiveCardData>;
|
|
@@ -19,5 +19,6 @@ export interface IUpdateRetrospectiveSectionData {
|
|
|
19
19
|
}
|
|
20
20
|
export type IUpdateRetrospectiveSectionResponse = IResponse<IUpdateRetrospectiveSectionData>;
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
22
23
|
export interface IDeleteRetrospectiveSectionData {}
|
|
23
24
|
export type IDeleteRetrospectiveSectionResponse = IResponse<IDeleteRetrospectiveSectionData>;
|
|
@@ -21,6 +21,7 @@ export interface IUpdateRetrospectiveData {
|
|
|
21
21
|
}
|
|
22
22
|
export type IUpdateRetrospectiveResponse = IResponse<IUpdateRetrospectiveData>;
|
|
23
23
|
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
24
25
|
export interface IDeleteRetrospectiveData {}
|
|
25
26
|
export type IDeleteRetrospectiveResponse = IResponse<IDeleteRetrospectiveData>;
|
|
26
27
|
|
|
@@ -10,6 +10,7 @@ export interface IGetShortLinkAdminData {
|
|
|
10
10
|
}
|
|
11
11
|
export type IGetShortLinkAdminResponse = IResponse<IGetShortLinkAdminData>;
|
|
12
12
|
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
13
14
|
export interface IDeleteShortLinkAdminData {}
|
|
14
15
|
export type IDeleteShortLinkAdminResponse = IResponse<IDeleteShortLinkAdminData>;
|
|
15
16
|
|
|
@@ -20,6 +20,7 @@ export interface IUpdateShortLinkData {
|
|
|
20
20
|
}
|
|
21
21
|
export type IUpdateShortLinkResponse = IResponse<IUpdateShortLinkData>;
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
23
24
|
export interface IDeleteShortLinkData {}
|
|
24
25
|
export type IDeleteShortLinkResponse = IResponse<IDeleteShortLinkData>;
|
|
25
26
|
|
|
@@ -16,6 +16,7 @@ export interface IUpdateTagData {
|
|
|
16
16
|
}
|
|
17
17
|
export type IUpdateTagResponse = IResponse<IUpdateTagData>;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
20
|
export interface IDeleteTagData {}
|
|
20
21
|
export type IDeleteTagResponse = IResponse<IDeleteTagData>;
|
|
21
22
|
|
|
@@ -24,6 +25,7 @@ export interface IAssignTagData {
|
|
|
24
25
|
}
|
|
25
26
|
export type IAssignTagResponse = IResponse<IAssignTagData>;
|
|
26
27
|
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
27
29
|
export interface IUnassignTagData {}
|
|
28
30
|
export type IUnassignTagResponse = IResponse<IUnassignTagData>;
|
|
29
31
|
|
|
@@ -18,7 +18,7 @@ export interface VerifyExtractionWebhookInput {
|
|
|
18
18
|
|
|
19
19
|
export function verifyExtractionWebhook(input: VerifyExtractionWebhookInput): boolean {
|
|
20
20
|
if (!input.signatureHeader || !input.secret) return false;
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
22
22
|
const crypto = require('crypto');
|
|
23
23
|
const provided = input.signatureHeader.replace(/^sha256=/, '');
|
|
24
24
|
const computed: string = crypto
|
|
@@ -34,7 +34,7 @@ export interface VerifyProbeWebhookSignatureInput {
|
|
|
34
34
|
export function verifyProbeWebhookSignature(input: VerifyProbeWebhookSignatureInput): boolean {
|
|
35
35
|
if (!input.signatureHeader || !input.secret) return false;
|
|
36
36
|
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
38
38
|
const crypto = require('crypto');
|
|
39
39
|
const computed: string = crypto
|
|
40
40
|
.createHmac('sha256', input.secret)
|