@abyss-project/spotlight 1.0.24 → 1.1.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 +33 -33
- package/README.md +33 -33
- package/dist/api/project-document.api.d.ts +4 -1
- package/dist/api/project-document.api.js +15 -1
- package/dist/api/project-document.api.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/requests/project-document.request.d.ts +12 -0
- package/dist/types/interface/api/requests/project.request.d.ts +0 -1
- package/dist/types/interface/api/responses/project-document.response.d.ts +8 -0
- package/dist/utils/css-sanitizer.utils.js +1 -0
- package/dist/utils/css-sanitizer.utils.js.map +1 -1
- package/package.json +53 -53
- package/tsconfig.json +36 -36
- package/dist/api/yearly-report.admin.api.d.ts +0 -0
- package/dist/api/yearly-report.admin.api.js +0 -1
- package/dist/types/interface/api/requests/yearly-report.admin.request.d.ts +0 -0
- package/dist/types/interface/api/requests/yearly-report.admin.request.js +0 -1
- package/dist/types/interface/api/responses/yearly-report.admin.response.d.ts +0 -0
- package/dist/types/interface/api/responses/yearly-report.admin.response.js +0 -1
- package/dist/types/interface/models/project-view.model.d.ts +0 -13
- package/dist/types/interface/models/project-view.model.js +0 -2
package/.eslintrc.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
-
'filenames-simple/naming-convention': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
// Use custom regexp to match migration file
|
|
29
|
-
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
overrides: [],
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
+
'filenames-simple/naming-convention': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
// Use custom regexp to match migration file
|
|
29
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
overrides: [],
|
|
34
34
|
};
|
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<img src="https://docs.abyss-project.fr/img/services/AbyssSpotlight.svg" align="right" width="96" alt="" />
|
|
2
|
-
|
|
3
|
-
# Abyss Spotlight
|
|
4
|
-
|
|
5
|
-
`@abyss-project/spotlight`
|
|
6
|
-
|
|
7
|
-
Pages publiques de présentation, posts et événements.
|
|
8
|
-
|
|
9
|
-
_Public presentation pages, posts and events._
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install @abyss-project/spotlight
|
|
15
|
-
# or
|
|
16
|
-
pnpm add @abyss-project/spotlight
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Liens
|
|
20
|
-
|
|
21
|
-
- **Documentation** : [https://docs.abyss-project.fr/spotlight](https://docs.abyss-project.fr/spotlight)
|
|
22
|
-
- **NPM** : [@abyss-project/spotlight](https://www.npmjs.com/package/@abyss-project/spotlight)
|
|
23
|
-
- **Swagger** : [https://spotlight-api.abyss-project.fr/swagger](https://spotlight-api.abyss-project.fr/swagger)
|
|
24
|
-
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
25
|
-
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
Voir la [documentation produit](https://docs.abyss-project.fr/spotlight) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
30
|
-
|
|
31
|
-
## Support
|
|
32
|
-
|
|
33
|
-
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
1
|
+
<img src="https://docs.abyss-project.fr/img/services/AbyssSpotlight.svg" align="right" width="96" alt="" />
|
|
2
|
+
|
|
3
|
+
# Abyss Spotlight
|
|
4
|
+
|
|
5
|
+
`@abyss-project/spotlight`
|
|
6
|
+
|
|
7
|
+
Pages publiques de présentation, posts et événements.
|
|
8
|
+
|
|
9
|
+
_Public presentation pages, posts and events._
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @abyss-project/spotlight
|
|
15
|
+
# or
|
|
16
|
+
pnpm add @abyss-project/spotlight
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Liens
|
|
20
|
+
|
|
21
|
+
- **Documentation** : [https://docs.abyss-project.fr/spotlight](https://docs.abyss-project.fr/spotlight)
|
|
22
|
+
- **NPM** : [@abyss-project/spotlight](https://www.npmjs.com/package/@abyss-project/spotlight)
|
|
23
|
+
- **Swagger** : [https://spotlight-api.abyss-project.fr/swagger](https://spotlight-api.abyss-project.fr/swagger)
|
|
24
|
+
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
25
|
+
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Voir la [documentation produit](https://docs.abyss-project.fr/spotlight) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
30
|
+
|
|
31
|
+
## Support
|
|
32
|
+
|
|
33
|
+
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGetProjectDocumentParams, IGetProjectDocumentResponse, IDeleteProjectDocumentResponse, IDeleteProjectDocumentParams, IEnableProjectDocumentParams, IEnableProjectDocumentResponse, IPaginateProjectDocumentParams, IPaginateProjectDocumentQuery, IPaginateProjectDocumentResponse, IGetUploadPreSignedUrlProjectDocumentParams, IGetUploadPreSignedUrlProjectDocumentBody, IGetUploadPreSignedUrlProjectDocumentResponse, IImportFromCloudProjectDocumentBody, IImportFromCloudProjectDocumentParams, IImportFromCloudProjectDocumentResponse, IDisableProjectDocumentParams, IDisableProjectDocumentResponse } from '..';
|
|
1
|
+
import { IGetProjectDocumentParams, IGetProjectDocumentResponse, IDeleteProjectDocumentResponse, IDeleteProjectDocumentParams, IEnableProjectDocumentParams, IEnableProjectDocumentResponse, IPaginateProjectDocumentParams, IPaginateProjectDocumentQuery, IPaginateProjectDocumentResponse, IGetUploadPreSignedUrlProjectDocumentParams, IGetUploadPreSignedUrlProjectDocumentBody, IGetUploadPreSignedUrlProjectDocumentResponse, IImportFromCloudProjectDocumentBody, IImportFromCloudProjectDocumentParams, IImportFromCloudProjectDocumentResponse, IDisableProjectDocumentParams, IDisableProjectDocumentResponse, IListLogoHistoryProjectDocumentParams, IListLogoHistoryProjectDocumentQuery, IListLogoHistoryProjectDocumentResponse, ISetActiveLogoProjectDocumentParams, ISetActiveLogoProjectDocumentResponse, IDeleteLogoProjectDocumentParams, IDeleteLogoProjectDocumentResponse } from '..';
|
|
2
2
|
export declare const getProjectDocument: (params: IGetProjectDocumentParams) => Promise<IGetProjectDocumentResponse>;
|
|
3
3
|
export declare const getUploadUrlProjectDocument: (params: IGetUploadPreSignedUrlProjectDocumentParams, body: IGetUploadPreSignedUrlProjectDocumentBody) => Promise<IGetUploadPreSignedUrlProjectDocumentResponse>;
|
|
4
4
|
export declare const importFromCloudProjectDocument: (params: IImportFromCloudProjectDocumentParams, body: IImportFromCloudProjectDocumentBody) => Promise<IImportFromCloudProjectDocumentResponse>;
|
|
@@ -6,3 +6,6 @@ export declare const paginateProjectDocument: (params: IPaginateProjectDocumentP
|
|
|
6
6
|
export declare const deleteProjectDocument: (params: IDeleteProjectDocumentParams) => Promise<IDeleteProjectDocumentResponse>;
|
|
7
7
|
export declare const enableProjectDocument: (params: IEnableProjectDocumentParams) => Promise<IEnableProjectDocumentResponse>;
|
|
8
8
|
export declare const disableProjectDocument: (params: IDisableProjectDocumentParams) => Promise<IDisableProjectDocumentResponse>;
|
|
9
|
+
export declare const listLogoHistoryProjectDocument: (params: IListLogoHistoryProjectDocumentParams, query: IListLogoHistoryProjectDocumentQuery) => Promise<IListLogoHistoryProjectDocumentResponse>;
|
|
10
|
+
export declare const setActiveLogoProjectDocument: (params: ISetActiveLogoProjectDocumentParams) => Promise<ISetActiveLogoProjectDocumentResponse>;
|
|
11
|
+
export declare const deleteLogoProjectDocument: (params: IDeleteLogoProjectDocumentParams) => Promise<IDeleteLogoProjectDocumentResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.disableProjectDocument = exports.enableProjectDocument = exports.deleteProjectDocument = exports.paginateProjectDocument = exports.importFromCloudProjectDocument = exports.getUploadUrlProjectDocument = exports.getProjectDocument = void 0;
|
|
3
|
+
exports.deleteLogoProjectDocument = exports.setActiveLogoProjectDocument = exports.listLogoHistoryProjectDocument = exports.disableProjectDocument = exports.enableProjectDocument = exports.deleteProjectDocument = exports.paginateProjectDocument = exports.importFromCloudProjectDocument = exports.getUploadUrlProjectDocument = exports.getProjectDocument = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getProjectDocument = async (params) => {
|
|
6
6
|
return (await __1.AbyssSpotlightCore.axios.get(`project-document/${params.projectId}/document/${params.projectDocumentId}`)).data;
|
|
@@ -32,4 +32,18 @@ const disableProjectDocument = async (params) => {
|
|
|
32
32
|
return (await __1.AbyssSpotlightCore.axios.post(`project-document/${params.projectId}/document/${params.projectDocumentId}/disable`)).data;
|
|
33
33
|
};
|
|
34
34
|
exports.disableProjectDocument = disableProjectDocument;
|
|
35
|
+
const listLogoHistoryProjectDocument = async (params, query) => {
|
|
36
|
+
return (await __1.AbyssSpotlightCore.axios.get(`project-document/${params.projectId}/document/logo/history`, {
|
|
37
|
+
params: query,
|
|
38
|
+
})).data;
|
|
39
|
+
};
|
|
40
|
+
exports.listLogoHistoryProjectDocument = listLogoHistoryProjectDocument;
|
|
41
|
+
const setActiveLogoProjectDocument = async (params) => {
|
|
42
|
+
return (await __1.AbyssSpotlightCore.axios.post(`project-document/${params.projectId}/document/logo/${params.projectDocumentId}/set-active`)).data;
|
|
43
|
+
};
|
|
44
|
+
exports.setActiveLogoProjectDocument = setActiveLogoProjectDocument;
|
|
45
|
+
const deleteLogoProjectDocument = async (params) => {
|
|
46
|
+
return (await __1.AbyssSpotlightCore.axios.delete(`project-document/${params.projectId}/document/logo/${params.projectDocumentId}`)).data;
|
|
47
|
+
};
|
|
48
|
+
exports.deleteLogoProjectDocument = deleteLogoProjectDocument;
|
|
35
49
|
//# sourceMappingURL=project-document.api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-document.api.js","sourceRoot":"","sources":["../../src/api/project-document.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"project-document.api.js","sourceRoot":"","sources":["../../src/api/project-document.api.ts"],"names":[],"mappings":";;;AAAA,0BA0BY;AAEL,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAiC,EACK,EAAE;IACxC,OAAO,CACL,MAAM,sBAAkB,CAAC,KAAK,CAAC,GAAG,CAChC,oBAAoB,MAAM,CAAC,SAAS,aAAa,MAAM,CAAC,iBAAiB,EAAE,CAC5E,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,2BAA2B,GAAG,KAAK,EAC9C,MAAmD,EACnD,IAA+C,EACS,EAAE;IAC1D,OAAO,CACL,MAAM,sBAAkB,CAAC,KAAK,CAAC,IAAI,CACjC,oBAAoB,MAAM,CAAC,SAAS,WAAW,EAC/C,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,2BAA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,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC;AAOK,MAAM,8BAA8B,GAAG,KAAK,EACjD,MAA6C,EAC7C,KAA2C,EACO,EAAE;IACpD,OAAO,CACL,MAAM,sBAAkB,CAAC,KAAK,CAAC,GAAG,CAChC,oBAAoB,MAAM,CAAC,SAAS,wBAAwB,EAC5D;QACE,MAAM,EAAE,KAAK;KACd,CACF,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAZW,QAAA,8BAA8B,kCAYzC;AAEK,MAAM,4BAA4B,GAAG,KAAK,EAC/C,MAA2C,EACK,EAAE;IAClD,OAAO,CACL,MAAM,sBAAkB,CAAC,KAAK,CAAC,IAAI,CACjC,oBAAoB,MAAM,CAAC,SAAS,kBAAkB,MAAM,CAAC,iBAAiB,aAAa,CAC5F,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,4BAA4B,gCAQvC;AAEK,MAAM,yBAAyB,GAAG,KAAK,EAC5C,MAAwC,EACK,EAAE;IAC/C,OAAO,CACL,MAAM,sBAAkB,CAAC,KAAK,CAAC,MAAM,CACnC,oBAAoB,MAAM,CAAC,SAAS,kBAAkB,MAAM,CAAC,iBAAiB,EAAE,CACjF,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,yBAAyB,6BAQpC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,9 @@ type AbyssSpotlightCoreSDK = {
|
|
|
89
89
|
delete: typeof projectDocumentApi.deleteProjectDocument;
|
|
90
90
|
enable: typeof projectDocumentApi.enableProjectDocument;
|
|
91
91
|
disable: typeof projectDocumentApi.disableProjectDocument;
|
|
92
|
+
listLogoHistory: typeof projectDocumentApi.listLogoHistoryProjectDocument;
|
|
93
|
+
setActiveLogo: typeof projectDocumentApi.setActiveLogoProjectDocument;
|
|
94
|
+
deleteLogo: typeof projectDocumentApi.deleteLogoProjectDocument;
|
|
92
95
|
admin: {
|
|
93
96
|
get: typeof projectDocumentAdminApi.getProjectDocumentAdmin;
|
|
94
97
|
paginate: typeof projectDocumentAdminApi.paginateProjectDocumentAdmin;
|
|
@@ -177,7 +180,7 @@ type AbyssSpotlightCoreSDK = {
|
|
|
177
180
|
};
|
|
178
181
|
};
|
|
179
182
|
};
|
|
180
|
-
export declare const API_KEY_HEADER = "abyss-
|
|
183
|
+
export declare const API_KEY_HEADER = "abyss-api-key";
|
|
181
184
|
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
182
185
|
export declare const ABYSS_USER_ANONYMOUS_IDENTIFIER = "abyss_user_anonymous_identifier";
|
|
183
186
|
type CoreConfig = {
|
package/dist/index.js
CHANGED
|
@@ -61,7 +61,7 @@ __exportStar(require("./utils"), exports);
|
|
|
61
61
|
__exportStar(require("./api"), exports);
|
|
62
62
|
__exportStar(require("./constants"), exports);
|
|
63
63
|
const DEFAULT_BASE_URL = 'https://spotlight-api.abyss-project.fr/api/';
|
|
64
|
-
exports.API_KEY_HEADER = 'abyss-
|
|
64
|
+
exports.API_KEY_HEADER = 'abyss-api-key';
|
|
65
65
|
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
66
66
|
exports.ABYSS_USER_ANONYMOUS_IDENTIFIER = 'abyss_user_anonymous_identifier';
|
|
67
67
|
const NUMBER_RETRY_API = 10;
|
|
@@ -140,6 +140,9 @@ class AbyssSpotlightCore {
|
|
|
140
140
|
delete: projectDocumentApi.deleteProjectDocument,
|
|
141
141
|
enable: projectDocumentApi.enableProjectDocument,
|
|
142
142
|
disable: projectDocumentApi.disableProjectDocument,
|
|
143
|
+
listLogoHistory: projectDocumentApi.listLogoHistoryProjectDocument,
|
|
144
|
+
setActiveLogo: projectDocumentApi.setActiveLogoProjectDocument,
|
|
145
|
+
deleteLogo: projectDocumentApi.deleteLogoProjectDocument,
|
|
143
146
|
admin: {
|
|
144
147
|
get: projectDocumentAdminApi.getProjectDocumentAdmin,
|
|
145
148
|
paginate: projectDocumentAdminApi.paginateProjectDocumentAdmin,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAE/F,qEAAuD;AACvD,kEAAoD;AACpD,8DAAgD;AAChD,iFAAmE;AACnE,0FAA4E;AAC5E,+EAAiE;AACjE,yEAA2D;AAC3D,0FAA4E;AAC5E,+EAAiE;AACjE,kFAAoE;AACpE,uEAAyD;AACzD,kGAAoF;AACpF,uFAAyE;AACzE,qGAAuF;AACvF,0FAA4E;AAC5E,kFAAoE;AACpE,uEAAyD;AACzD,yEAA2D;AAC3D,8DAAgD;AAChD,2EAA6D;AAC7D,mEAAqD;AACrD,wDAA0C;AAC1C,uEAAyD;AAEzD,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,8CAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAE/F,qEAAuD;AACvD,kEAAoD;AACpD,8DAAgD;AAChD,iFAAmE;AACnE,0FAA4E;AAC5E,+EAAiE;AACjE,yEAA2D;AAC3D,0FAA4E;AAC5E,+EAAiE;AACjE,kFAAoE;AACpE,uEAAyD;AACzD,kGAAoF;AACpF,uFAAyE;AACzE,qGAAuF;AACvF,0FAA4E;AAC5E,kFAAoE;AACpE,uEAAyD;AACzD,yEAA2D;AAC3D,8DAAgD;AAChD,2EAA6D;AAC7D,mEAAqD;AACrD,wDAA0C;AAC1C,uEAAyD;AAEzD,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,8CAA4B;AA6J5B,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AAE1D,QAAA,cAAc,GAAG,eAAe,CAAC;A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IACrB,aAAa,EAAE,EAAE;IACjB,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,gBAAgB;IACzB,4BAA4B,EAAE,EAAE;CACjC,AARoB,CAQnB;AACK,wBAAK,GAAG,eAAK,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,EAAI,CAAC,MAAM,CAAC,OAAO;IAC5B,eAAe,EAAE,IAAI;CACtB,CAAC,AAHU,CAGT;AAEY,uBAAI,GAAiC,IAAI,AAArC,CAAsC"}
|
|
@@ -27,6 +27,18 @@ export interface IImportFromCloudProjectDocumentBody {
|
|
|
27
27
|
type: ProjectDocumentType;
|
|
28
28
|
}[];
|
|
29
29
|
}
|
|
30
|
+
export interface IListLogoHistoryProjectDocumentParams {
|
|
31
|
+
projectId: string;
|
|
32
|
+
}
|
|
33
|
+
export type IListLogoHistoryProjectDocumentQuery = QueryPaginate;
|
|
34
|
+
export interface ISetActiveLogoProjectDocumentParams {
|
|
35
|
+
projectId: string;
|
|
36
|
+
projectDocumentId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IDeleteLogoProjectDocumentParams {
|
|
39
|
+
projectId: string;
|
|
40
|
+
projectDocumentId: string;
|
|
41
|
+
}
|
|
30
42
|
export interface IEnableProjectDocumentParams {
|
|
31
43
|
projectId: string;
|
|
32
44
|
projectDocumentId: string;
|
|
@@ -4,6 +4,14 @@ export interface IGetProjectDocumentData {
|
|
|
4
4
|
}
|
|
5
5
|
export type IGetProjectDocumentResponse = IResponse<IGetProjectDocumentData>;
|
|
6
6
|
export type IPaginateProjectDocumentResponse = IResponse<BasePaginate<IProjectDocument>>;
|
|
7
|
+
export type IListLogoHistoryProjectDocumentResponse = IResponse<BasePaginate<IProjectDocument>>;
|
|
8
|
+
export interface ISetActiveLogoProjectDocumentData {
|
|
9
|
+
projectDocument: IProjectDocument;
|
|
10
|
+
}
|
|
11
|
+
export type ISetActiveLogoProjectDocumentResponse = IResponse<ISetActiveLogoProjectDocumentData>;
|
|
12
|
+
export interface IDeleteLogoProjectDocumentData {
|
|
13
|
+
}
|
|
14
|
+
export type IDeleteLogoProjectDocumentResponse = IResponse<IDeleteLogoProjectDocumentData>;
|
|
7
15
|
export interface IGetUploadPreSignedUrlProjectDocumentData {
|
|
8
16
|
preSignedUrl: string;
|
|
9
17
|
}
|
|
@@ -37,6 +37,7 @@ const sanitizeCss = (css) => {
|
|
|
37
37
|
sanitized = sanitized.replace(/\bbehavior\s*:[^;}]*[;}]/gi, (m) => (m.endsWith('}') ? '}' : ''));
|
|
38
38
|
sanitized = stripDangerousUrls(sanitized);
|
|
39
39
|
sanitized = sanitized.replace(/\b(javascript|vbscript|data|file)\s*:[^;}"'\s)]*/gi, '');
|
|
40
|
+
sanitized = sanitized.replace(/</g, '\\00003c');
|
|
40
41
|
return sanitized.trim();
|
|
41
42
|
};
|
|
42
43
|
exports.sanitizeCss = sanitizeCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-sanitizer.utils.js","sourceRoot":"","sources":["../../src/utils/css-sanitizer.utils.ts"],"names":[],"mappings":";;;AAcA,MAAM,qBAAqB,GAAG,yCAAyC,CAAC;AACxE,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAEnD,MAAM,gBAAgB,GAAG,eAAe,CAAC;AACzC,MAAM,aAAa,GAAG,qDAAqD,CAAC;AAC5E,MAAM,cAAc,GAAG,aAAa,CAAC;AAErC,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAC5C,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAGvC,MAAM,qBAAqB,GAAG,CAAC,KAAa,EAAU,EAAE;IACtD,OAAO,KAAK,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAC1D,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CACvC,CAAC;AACJ,CAAC,CAAC;AAGF,MAAM,kBA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I,EAAE,UAAU,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC;AAC1B,CAAC,CAAC;AAxCW,QAAA,WAAW,eAwCtB;AAEK,MAAM,UAAU,GAAG,CAAC,GAAW,EAAW,EAAE;IACjD,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,kBAAkB,GAAG;QACzB,aAAa;QACb,cAAc;QACd,gBAAgB;QAChB,aAAa;QACb,cAAc;QACd,WAAW;QACX,+BAA+B;KAChC,CAAC;IACF,KAAK,MAAM,EAAE,IAAI,kBAAkB,EAAE,CAAC;QACpC,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC;QACjB,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;YACjB,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC;YACjB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAtBW,QAAA,UAAU,cAsBrB"}
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abyss-project/spotlight",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "Core package to interact with Abyss-Spotlight",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"types": "dist/index.d.ts"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
-
"tsc": "tsc",
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"prepublish": "tsc",
|
|
17
|
-
"dev": "tsc --watch"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "scylla",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://gitlab.com/abyss-group/abyss-spotlight"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://gitlab.com/abyss-group/abyss-spotlight",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"axios": "^1.6.0",
|
|
28
|
-
"axios-retry": "^4.5.0",
|
|
29
|
-
"core-js": "^3.37.1",
|
|
30
|
-
"dayjs": "^1.10.8",
|
|
31
|
-
"form-data": "^4.0.0",
|
|
32
|
-
"uuid": "^9.0.0"
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@types/express-serve-static-core": "^4.17.31",
|
|
36
|
-
"@types/node": "^20.11.0",
|
|
37
|
-
"@types/uuid": "^9.0.0",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
39
|
-
"@typescript-eslint/parser": "7.3.1",
|
|
40
|
-
"eslint": "^7.28.0",
|
|
41
|
-
"eslint-config-prettier": "^8.3.0",
|
|
42
|
-
"eslint-config-standard": "^16.0.3",
|
|
43
|
-
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
44
|
-
"eslint-plugin-import": "^2.23.4",
|
|
45
|
-
"eslint-plugin-node": "^11.1.0",
|
|
46
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
47
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
48
|
-
"prettier": "2.3.1",
|
|
49
|
-
"sequelize-cli": "^6.2.0",
|
|
50
|
-
"tsc-watch": "^4.6.2",
|
|
51
|
-
"typescript": "5.4.2"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abyss-project/spotlight",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Core package to interact with Abyss-Spotlight",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"prepublish": "tsc",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "scylla",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://gitlab.com/abyss-group/abyss-spotlight"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://gitlab.com/abyss-group/abyss-spotlight",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.6.0",
|
|
28
|
+
"axios-retry": "^4.5.0",
|
|
29
|
+
"core-js": "^3.37.1",
|
|
30
|
+
"dayjs": "^1.10.8",
|
|
31
|
+
"form-data": "^4.0.0",
|
|
32
|
+
"uuid": "^9.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/express-serve-static-core": "^4.17.31",
|
|
36
|
+
"@types/node": "^20.11.0",
|
|
37
|
+
"@types/uuid": "^9.0.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
39
|
+
"@typescript-eslint/parser": "7.3.1",
|
|
40
|
+
"eslint": "^7.28.0",
|
|
41
|
+
"eslint-config-prettier": "^8.3.0",
|
|
42
|
+
"eslint-config-standard": "^16.0.3",
|
|
43
|
+
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
44
|
+
"eslint-plugin-import": "^2.23.4",
|
|
45
|
+
"eslint-plugin-node": "^11.1.0",
|
|
46
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
47
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
48
|
+
"prettier": "2.3.1",
|
|
49
|
+
"sequelize-cli": "^6.2.0",
|
|
50
|
+
"tsc-watch": "^4.6.2",
|
|
51
|
+
"typescript": "5.4.2"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "es2021",
|
|
5
|
-
"lib": [
|
|
6
|
-
"dom",
|
|
7
|
-
"es2021"
|
|
8
|
-
],
|
|
9
|
-
"experimentalDecorators": true,
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"module": "commonjs",
|
|
12
|
-
"rootDir": "src",
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"outDir": "./dist",
|
|
19
|
-
"removeComments": true,
|
|
20
|
-
"allowSyntheticDefaultImports": true,
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"forceConsistentCasingInFileNames": true,
|
|
23
|
-
"strict": true,
|
|
24
|
-
"strictNullChecks": true,
|
|
25
|
-
"strictFunctionTypes": true,
|
|
26
|
-
"strictPropertyInitialization": false,
|
|
27
|
-
"skipLibCheck": true
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"./src"
|
|
31
|
-
],
|
|
32
|
-
"exclude": [
|
|
33
|
-
"./dist/**/*",
|
|
34
|
-
"./src/**/*.spec.ts"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
"lib": [
|
|
6
|
+
"dom",
|
|
7
|
+
"es2021"
|
|
8
|
+
],
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"emitDecoratorMetadata": true,
|
|
11
|
+
"module": "commonjs",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"outDir": "./dist",
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"strict": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"strictFunctionTypes": true,
|
|
26
|
+
"strictPropertyInitialization": false,
|
|
27
|
+
"skipLibCheck": true
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"./dist/**/*",
|
|
34
|
+
"./src/**/*.spec.ts"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IProject } from './project.model';
|
|
2
|
-
import { IUser } from './user.model';
|
|
3
|
-
export interface IProjectView {
|
|
4
|
-
id?: string;
|
|
5
|
-
userId?: string | null;
|
|
6
|
-
anonymousId?: string;
|
|
7
|
-
projectId: string;
|
|
8
|
-
viewedAt?: Date;
|
|
9
|
-
updatedAt?: Date;
|
|
10
|
-
createdAt?: Date;
|
|
11
|
-
project?: IProject;
|
|
12
|
-
user?: IUser | null;
|
|
13
|
-
}
|