@crowdin/app-project-module 0.23.0 → 0.23.2

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.
@@ -34,6 +34,7 @@ function handle(config) {
34
34
  {
35
35
  key: config.identifier + '-mt',
36
36
  name: config.name,
37
+ logo: '/logo/mt/logo.png',
37
38
  url: '/translate',
38
39
  },
39
40
  ];
package/out/index.js CHANGED
@@ -138,6 +138,7 @@ function addCrowdinEndpoints(app, config) {
138
138
  app.get('/file/download', (0, download_1.default)(config, config.customFileFormat.filesFolder || config.dbFolder || '/'));
139
139
  }
140
140
  if (config.customMT) {
141
+ app.get('/logo/mt/logo.png', (req, res) => { var _a; return res.sendFile(((_a = config.customMT) === null || _a === void 0 ? void 0 : _a.imagePath) || config.imagePath || (0, path_1.join)(__dirname, 'logo.png')); });
141
142
  app.post('/translate', (0, crowdin_client_1.default)(config), (0, translate_1.default)(config, config.customMT));
142
143
  }
143
144
  if (config.profileResourcesMenu) {
@@ -75,7 +75,7 @@ export interface Config extends ImagePath {
75
75
  /**
76
76
  * custom MT module logic
77
77
  */
78
- customMT?: CustomMTLogic;
78
+ customMT?: CustomMTLogic & ImagePath;
79
79
  /**
80
80
  * resources module
81
81
  */
@@ -139,6 +139,7 @@ export declare enum Scope {
139
139
  TRANSLATION_MEMORIES = "tm",
140
140
  MACHINE_TRANSLATION_ENGINES = "mt",
141
141
  GLOSSARIES = "glossary",
142
+ GROUPS = "group",
142
143
  PROJECTS = "project",
143
144
  TASKS = "project.task",
144
145
  REPORTS = "project.report",
@@ -13,6 +13,7 @@ var Scope;
13
13
  Scope["TRANSLATION_MEMORIES"] = "tm";
14
14
  Scope["MACHINE_TRANSLATION_ENGINES"] = "mt";
15
15
  Scope["GLOSSARIES"] = "glossary";
16
+ Scope["GROUPS"] = "group";
16
17
  Scope["PROJECTS"] = "project";
17
18
  Scope["TASKS"] = "project.task";
18
19
  Scope["REPORTS"] = "project.report";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",