@crowdin/app-project-module 0.58.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,7 @@ function handle(externalQaCheck) {
25
25
  strings: body.strings,
26
26
  targetLanguage: body.targetLanguage,
27
27
  translations: body.translations,
28
+ context: req.crowdinContext,
28
29
  });
29
30
  res.send({
30
31
  data: { validations: response.validations },
@@ -1,4 +1,4 @@
1
- import { Environments, UiModule } from '../../types';
1
+ import { CrowdinContextInfo, Environments, UiModule } from '../../types';
2
2
  import Crowdin, { SourceFilesModel, ProjectsGroupsModel, LanguagesModel, SourceStringsModel, StringTranslationsModel } from '@crowdin/crowdin-api-client';
3
3
  export interface ExternalQaCheckModule extends Environments {
4
4
  /**
@@ -13,7 +13,7 @@ export interface ExternalQaCheckModule extends Environments {
13
13
  * jobs chunk size
14
14
  */
15
15
  batchSize?: number;
16
- validate: ({ client, file, project, sourceLanguage, strings, targetLanguage, translations, }: {
16
+ validate: ({ client, file, project, sourceLanguage, strings, targetLanguage, translations, context, }: {
17
17
  client?: Crowdin;
18
18
  file?: SourceFilesModel.File;
19
19
  project?: ProjectsGroupsModel.Project;
@@ -21,6 +21,7 @@ export interface ExternalQaCheckModule extends Environments {
21
21
  strings: SourceStringsModel.String[];
22
22
  targetLanguage: LanguagesModel.Language;
23
23
  translations: StringTranslationsModel.StringTranslation[];
24
+ context: CrowdinContextInfo;
24
25
  }) => Promise<ExternalQaCheckResponse>;
25
26
  /**
26
27
  * Settings UI module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.58.0",
3
+ "version": "0.58.1",
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",