@crowdin/app-project-module 1.2.0 → 1.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/out/app-test/integration/get-integration-files.js +1 -1
- package/out/app-test/integration/index.js +6 -6
- package/out/app-test/integration/mocks/crowdin-storage.d.ts +16 -16
- package/out/app-test/integration/mocks/mock-crowdin-api-client.js +17 -7
- package/out/app-test/integration/update-crowdin.js +1 -1
- package/out/app-test/integration/update-integration.js +1 -1
- package/out/app-test/util/index.js +1 -2
- package/out/index.js +23 -13
- package/out/middlewares/api-call.js +1 -1
- package/out/middlewares/auto-credentials-masker.js +2 -3
- package/out/middlewares/crowdin-client.d.ts +1 -2
- package/out/middlewares/crowdin-client.js +5 -6
- package/out/middlewares/integration-credentials.d.ts +1 -2
- package/out/middlewares/integration-credentials.js +18 -8
- package/out/middlewares/json-response.js +1 -1
- package/out/middlewares/render-ui-module.d.ts +1 -2
- package/out/middlewares/render-ui-module.js +1 -1
- package/out/middlewares/ui-module.d.ts +1 -2
- package/out/middlewares/ui-module.js +1 -1
- package/out/modules/about.js +2 -3
- package/out/modules/ai-prompt-provider/handlers/compile.d.ts +1 -2
- package/out/modules/ai-prompt-provider/handlers/compile.js +1 -1
- package/out/modules/ai-prompt-provider/index.js +1 -2
- package/out/modules/ai-prompt-provider/types.js +1 -1
- package/out/modules/ai-provider/handlers/chat-completions.d.ts +1 -2
- package/out/modules/ai-provider/handlers/chat-completions.js +2 -2
- package/out/modules/ai-provider/handlers/get-model-list.d.ts +1 -2
- package/out/modules/ai-provider/handlers/get-model-list.js +1 -1
- package/out/modules/ai-provider/index.js +1 -2
- package/out/modules/ai-provider/util/index.js +6 -6
- package/out/modules/ai-request-processors/handler.d.ts +1 -2
- package/out/modules/ai-request-processors/handler.js +1 -1
- package/out/modules/ai-request-processors/index.js +5 -5
- package/out/modules/ai-tools/handlers/tool-calls.d.ts +1 -2
- package/out/modules/ai-tools/handlers/tool-calls.js +1 -1
- package/out/modules/ai-tools/index.js +2 -3
- package/out/modules/ai-tools/util/index.js +4 -5
- package/out/modules/api/api.js +4 -5
- package/out/modules/api/index.js +1 -2
- package/out/modules/api/types.js +1 -1
- package/out/modules/auth-guard/handlers/verify.d.ts +1 -2
- package/out/modules/auth-guard/handlers/verify.js +1 -1
- package/out/modules/auth-guard/index.js +1 -2
- package/out/modules/automation-action/handlers/execute.d.ts +1 -2
- package/out/modules/automation-action/handlers/execute.js +1 -1
- package/out/modules/automation-action/handlers/input-schema.d.ts +1 -2
- package/out/modules/automation-action/handlers/input-schema.js +1 -1
- package/out/modules/automation-action/handlers/output-schema.d.ts +1 -2
- package/out/modules/automation-action/handlers/output-schema.js +1 -1
- package/out/modules/automation-action/handlers/validate-settings.d.ts +1 -2
- package/out/modules/automation-action/handlers/validate-settings.js +1 -1
- package/out/modules/automation-action/index.js +1 -2
- package/out/modules/automation-action/util/index.js +2 -3
- package/out/modules/automation-action/util/validate-input.js +1 -2
- package/out/modules/context-menu/index.js +1 -2
- package/out/modules/context-menu/types.js +2 -2
- package/out/modules/custom-mt/handlers/translate.d.ts +1 -2
- package/out/modules/custom-mt/handlers/translate.js +1 -1
- package/out/modules/custom-mt/index.js +1 -2
- package/out/modules/custom-mt/types.d.ts +0 -2
- package/out/modules/custom-spell-check/handlers/get-languages-list.d.ts +1 -2
- package/out/modules/custom-spell-check/handlers/get-languages-list.js +1 -1
- package/out/modules/custom-spell-check/handlers/spell-check.d.ts +1 -2
- package/out/modules/custom-spell-check/handlers/spell-check.js +1 -1
- package/out/modules/custom-spell-check/index.js +1 -2
- package/out/modules/editor-right-panel/index.js +1 -2
- package/out/modules/external-qa-check/handlers/validate.d.ts +1 -2
- package/out/modules/external-qa-check/handlers/validate.js +1 -1
- package/out/modules/external-qa-check/index.js +1 -2
- package/out/modules/file-processing/handlers/custom-file-format.d.ts +1 -2
- package/out/modules/file-processing/handlers/custom-file-format.js +9 -9
- package/out/modules/file-processing/handlers/file-download.d.ts +1 -2
- package/out/modules/file-processing/handlers/file-download.js +1 -1
- package/out/modules/file-processing/handlers/pre-post-process.d.ts +1 -2
- package/out/modules/file-processing/handlers/pre-post-process.js +1 -1
- package/out/modules/file-processing/handlers/translations-alignment.d.ts +1 -2
- package/out/modules/file-processing/handlers/translations-alignment.js +1 -1
- package/out/modules/file-processing/index.js +6 -7
- package/out/modules/file-processing/types.d.ts +0 -2
- package/out/modules/file-processing/types.js +1 -1
- package/out/modules/file-processing/util/defaults.js +18 -9
- package/out/modules/file-processing/util/files.d.ts +0 -2
- package/out/modules/file-processing/util/files.js +4 -4
- package/out/modules/form-data-display.d.ts +1 -2
- package/out/modules/form-data-display.js +18 -8
- package/out/modules/form-data-save.d.ts +1 -2
- package/out/modules/form-data-save.js +18 -8
- package/out/modules/install.d.ts +1 -2
- package/out/modules/install.js +2 -2
- package/out/modules/integration/handlers/crowdin-file-progress.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-file-progress.js +1 -1
- package/out/modules/integration/handlers/crowdin-files-target-languages.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-files-target-languages.js +1 -1
- package/out/modules/integration/handlers/crowdin-files.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-files.js +1 -1
- package/out/modules/integration/handlers/crowdin-project.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-project.js +1 -1
- package/out/modules/integration/handlers/crowdin-update.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-update.js +1 -1
- package/out/modules/integration/handlers/crowdin-webhook.d.ts +1 -2
- package/out/modules/integration/handlers/crowdin-webhook.js +2 -2
- package/out/modules/integration/handlers/integration-data.d.ts +1 -2
- package/out/modules/integration/handlers/integration-data.js +1 -1
- package/out/modules/integration/handlers/integration-login.d.ts +1 -2
- package/out/modules/integration/handlers/integration-login.js +1 -1
- package/out/modules/integration/handlers/integration-logout.d.ts +1 -2
- package/out/modules/integration/handlers/integration-logout.js +18 -8
- package/out/modules/integration/handlers/integration-update.d.ts +1 -2
- package/out/modules/integration/handlers/integration-update.js +1 -1
- package/out/modules/integration/handlers/integration-webhook.d.ts +1 -2
- package/out/modules/integration/handlers/integration-webhook.js +1 -1
- package/out/modules/integration/handlers/invite-users.d.ts +1 -2
- package/out/modules/integration/handlers/invite-users.js +1 -1
- package/out/modules/integration/handlers/job-cancel.d.ts +1 -2
- package/out/modules/integration/handlers/job-cancel.js +1 -1
- package/out/modules/integration/handlers/job-info-deprecated.d.ts +1 -2
- package/out/modules/integration/handlers/job-info-deprecated.js +1 -1
- package/out/modules/integration/handlers/job-info.d.ts +1 -2
- package/out/modules/integration/handlers/job-info.js +1 -1
- package/out/modules/integration/handlers/job-list.d.ts +1 -2
- package/out/modules/integration/handlers/job-list.js +1 -1
- package/out/modules/integration/handlers/main.d.ts +1 -2
- package/out/modules/integration/handlers/main.js +1 -1
- package/out/modules/integration/handlers/oauth-login.d.ts +1 -2
- package/out/modules/integration/handlers/oauth-login.js +1 -1
- package/out/modules/integration/handlers/oauth-polling.d.ts +1 -2
- package/out/modules/integration/handlers/oauth-polling.js +1 -1
- package/out/modules/integration/handlers/oauth-url.d.ts +1 -2
- package/out/modules/integration/handlers/oauth-url.js +1 -1
- package/out/modules/integration/handlers/settings-save.d.ts +1 -2
- package/out/modules/integration/handlers/settings-save.js +1 -1
- package/out/modules/integration/handlers/settings.d.ts +1 -2
- package/out/modules/integration/handlers/settings.js +1 -1
- package/out/modules/integration/handlers/subscription-info.js +1 -1
- package/out/modules/integration/handlers/sync-settings-save.d.ts +1 -2
- package/out/modules/integration/handlers/sync-settings-save.js +1 -1
- package/out/modules/integration/handlers/sync-settings.d.ts +1 -2
- package/out/modules/integration/handlers/sync-settings.js +1 -1
- package/out/modules/integration/handlers/user-errors.d.ts +1 -2
- package/out/modules/integration/handlers/user-errors.js +1 -1
- package/out/modules/integration/handlers/users.d.ts +1 -2
- package/out/modules/integration/handlers/users.js +4 -5
- package/out/modules/integration/index.js +1 -2
- package/out/modules/integration/types.js +4 -4
- package/out/modules/integration/util/cron.js +46 -37
- package/out/modules/integration/util/defaults.js +33 -24
- package/out/modules/integration/util/files.js +29 -30
- package/out/modules/integration/util/job.js +29 -20
- package/out/modules/integration/util/snapshot.js +7 -8
- package/out/modules/integration/util/types.js +3 -3
- package/out/modules/integration/util/webhooks.js +54 -44
- package/out/modules/manifest.js +1 -1
- package/out/modules/modal/index.js +1 -2
- package/out/modules/organization-menu/index.js +1 -2
- package/out/modules/organization-settings-menu/index.js +1 -2
- package/out/modules/profile-resources-menu/index.js +1 -2
- package/out/modules/profile-settings-menu/index.js +1 -2
- package/out/modules/project-menu/index.js +1 -2
- package/out/modules/project-menu-crowdsource/index.js +1 -2
- package/out/modules/project-reports/index.js +1 -2
- package/out/modules/project-tools/index.js +1 -2
- package/out/modules/status.d.ts +1 -2
- package/out/modules/status.js +1 -1
- package/out/modules/subscription-paid.d.ts +1 -2
- package/out/modules/subscription-paid.js +1 -1
- package/out/modules/uninstall.d.ts +1 -2
- package/out/modules/uninstall.js +1 -1
- package/out/modules/webhooks/handlers/webhook-handler.d.ts +1 -2
- package/out/modules/webhooks/handlers/webhook-handler.js +18 -9
- package/out/modules/webhooks/index.js +1 -2
- package/out/modules/workflow-step-type/handlers/delete-step.d.ts +1 -2
- package/out/modules/workflow-step-type/handlers/delete-step.js +18 -8
- package/out/modules/workflow-step-type/handlers/step-settings-save.d.ts +1 -2
- package/out/modules/workflow-step-type/handlers/step-settings-save.js +18 -8
- package/out/modules/workflow-step-type/index.js +1 -2
- package/out/modules/workflow-step-type/types.js +1 -1
- package/out/modules/workflow-step-type/util/index.js +2 -3
- package/out/static/ui/error.bundle.js +446 -379
- package/out/static/ui/error.bundle.js.map +1 -1
- package/out/static/ui/form.bundle.js +29793 -29989
- package/out/static/ui/form.bundle.js.map +1 -1
- package/out/static/ui/install.bundle.js +446 -379
- package/out/static/ui/install.bundle.js.map +1 -1
- package/out/static/ui/login.bundle.js +448 -379
- package/out/static/ui/login.bundle.js.map +1 -1
- package/out/static/ui/main.bundle.js +448 -379
- package/out/static/ui/main.bundle.js.map +1 -1
- package/out/static/ui/oauth.bundle.js +448 -379
- package/out/static/ui/oauth.bundle.js.map +1 -1
- package/out/storage/d1.js +9 -9
- package/out/storage/index.js +24 -10
- package/out/storage/mysql.js +31 -31
- package/out/storage/postgre.js +31 -31
- package/out/storage/sqlite.js +9 -8
- package/out/types.d.ts +0 -2
- package/out/types.js +8 -8
- package/out/util/connection.js +34 -25
- package/out/util/credentials-masker.d.ts +1 -2
- package/out/util/credentials-masker.js +3 -4
- package/out/util/cron.js +20 -10
- package/out/util/form-schema.js +2 -3
- package/out/util/index.js +38 -28
- package/out/util/jsx-renderer.js +2 -3
- package/out/util/logger.js +41 -31
- package/out/util/static-files.d.ts +0 -1
- package/out/util/static-files.js +2 -3
- package/out/util/subscription.js +11 -12
- package/out/views/FormPage.js +3 -3
- package/package.json +28 -33
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const util_1 = require("../../../util");
|
|
13
14
|
const storage_1 = require("../../../storage");
|
|
14
15
|
function handle() {
|
|
@@ -27,4 +28,3 @@ function handle() {
|
|
|
27
28
|
});
|
|
28
29
|
}));
|
|
29
30
|
}
|
|
30
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const types_1 = require("../util/types");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const storage_1 = require("../../../storage");
|
|
@@ -35,4 +36,3 @@ function handle() {
|
|
|
35
36
|
res.sendStatus(204);
|
|
36
37
|
}));
|
|
37
38
|
}
|
|
38
|
-
exports.default = handle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config } from '../../../types';
|
|
4
|
-
export default function handle(config: Config): (req: import("express").Request
|
|
3
|
+
export default function handle(config: Config): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const types_1 = require("../util/types");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const storage_1 = require("../../../storage");
|
|
@@ -136,4 +137,3 @@ function handle(config) {
|
|
|
136
137
|
res.send(job);
|
|
137
138
|
}));
|
|
138
139
|
}
|
|
139
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const types_1 = require("../util/types");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const storage_1 = require("../../../storage");
|
|
@@ -80,4 +81,3 @@ function handle() {
|
|
|
80
81
|
res.send(job);
|
|
81
82
|
}));
|
|
82
83
|
}
|
|
83
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const util_1 = require("../../../util");
|
|
13
14
|
const storage_1 = require("../../../storage");
|
|
14
15
|
function handle() {
|
|
@@ -43,4 +44,3 @@ function handle() {
|
|
|
43
44
|
res.send(filteredJobs);
|
|
44
45
|
}));
|
|
45
46
|
}
|
|
46
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const util_1 = require("../../../util");
|
|
13
14
|
const jsx_renderer_1 = require("../../../util/jsx-renderer");
|
|
14
15
|
const logger_1 = require("../../../util/logger");
|
|
@@ -127,4 +128,3 @@ function handle(config, integration) {
|
|
|
127
128
|
return res.send(html);
|
|
128
129
|
}));
|
|
129
130
|
}
|
|
130
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Request, Response } from 'express';
|
|
3
2
|
import { Config } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.default = handle;
|
|
15
16
|
const crowdin_apps_functions_1 = require("@crowdin/crowdin-apps-functions");
|
|
16
17
|
const axios_1 = __importDefault(require("axios"));
|
|
17
18
|
const storage_1 = require("../../../storage");
|
|
@@ -97,4 +98,3 @@ function handle(config, integration) {
|
|
|
97
98
|
}
|
|
98
99
|
}));
|
|
99
100
|
}
|
|
100
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config, CrowdinClientRequest } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request | CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const storage_1 = require("../../../storage");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const defaults_1 = require("../util/defaults");
|
|
@@ -31,4 +32,3 @@ function handle(config, integration) {
|
|
|
31
32
|
res.send({ oauthCreds });
|
|
32
33
|
}));
|
|
33
34
|
}
|
|
34
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config, CrowdinClientRequest } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request | CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const storage_1 = require("../../../storage");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const defaults_1 = require("../util/defaults");
|
|
@@ -28,4 +29,3 @@ function handle(config, integration) {
|
|
|
28
29
|
res.send({ url });
|
|
29
30
|
}));
|
|
30
31
|
}
|
|
31
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const storage_1 = require("../../../storage");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const snapshot_1 = require("../util/snapshot");
|
|
@@ -84,4 +85,3 @@ function handle(config, integration) {
|
|
|
84
85
|
res.status(204).end();
|
|
85
86
|
}));
|
|
86
87
|
}
|
|
87
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const util_1 = require("../../../util");
|
|
13
14
|
function handle() {
|
|
14
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19,4 +20,3 @@ function handle() {
|
|
|
19
20
|
res.send(settings);
|
|
20
21
|
}));
|
|
21
22
|
}
|
|
22
|
-
exports.default = handle;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = handle;
|
|
3
4
|
const types_1 = require("../../../types");
|
|
4
5
|
function handle(config) {
|
|
5
6
|
return (req, res) => {
|
|
@@ -12,4 +13,3 @@ function handle(config) {
|
|
|
12
13
|
res.send(Object.assign(Object.assign({}, (subscriptionInfo || {})), { showInfo }));
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
|
-
exports.default = handle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(config: Config, integration: IntegrationLogic): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const util_1 = require("../../../util");
|
|
13
14
|
const cron_1 = require("../util/cron");
|
|
14
15
|
const snapshot_1 = require("../util/snapshot");
|
|
@@ -90,4 +91,3 @@ function handle(config, integration) {
|
|
|
90
91
|
});
|
|
91
92
|
}));
|
|
92
93
|
}
|
|
93
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const storage_1 = require("../../../storage");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
function handle() {
|
|
@@ -31,4 +32,3 @@ function handle() {
|
|
|
31
32
|
res.send(files);
|
|
32
33
|
}));
|
|
33
34
|
}
|
|
34
|
-
exports.default = handle;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
|
-
export default function handle(): (req: import("express").Request
|
|
2
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = handle;
|
|
12
13
|
const storage_1 = require("../../../storage");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const logger_1 = require("../../../util/logger");
|
|
@@ -32,4 +33,3 @@ function handle() {
|
|
|
32
33
|
res.send(userErrors);
|
|
33
34
|
}));
|
|
34
35
|
}
|
|
35
|
-
exports.default = handle;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import Crowdin, { UsersModel } from '@crowdin/crowdin-api-client';
|
|
3
2
|
import { Response } from 'express';
|
|
4
3
|
export type ProjectMember = UsersModel.ProjectMember | UsersModel.EnterpriseProjectMember;
|
|
5
|
-
export default function handle(): (req: import("express").Request
|
|
4
|
+
export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
|
6
5
|
export declare function isManager({ client, projectId, memberId, }: {
|
|
7
6
|
client: Crowdin;
|
|
8
7
|
projectId: number;
|
|
@@ -9,7 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.default = handle;
|
|
13
|
+
exports.isManager = isManager;
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const storage_1 = require("../../../storage");
|
|
15
16
|
const MANAGER_ROLES = ['owner', 'manager'];
|
|
@@ -27,13 +28,11 @@ function handle() {
|
|
|
27
28
|
});
|
|
28
29
|
}));
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
function isManager(_a) {
|
|
32
|
+
return __awaiter(this, arguments, void 0, function* ({ client, projectId, memberId, }) {
|
|
33
33
|
const member = (yield client.usersApi.getProjectMemberPermissions(projectId, memberId)).data;
|
|
34
34
|
const isAdmin = 'isAdmin' in member ? member.isAdmin : 'role' in member && member.role === 'owner';
|
|
35
35
|
const isManager = ('role' in member && MANAGER_ROLES.includes(member.role)) || ('isManager' in member && member.isManager);
|
|
36
36
|
return isAdmin || isManager;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
exports.isManager = isManager;
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.register =
|
|
15
|
+
exports.register = register;
|
|
16
16
|
const crowdin_client_1 = __importDefault(require("../../middlewares/crowdin-client"));
|
|
17
17
|
const integration_credentials_1 = __importDefault(require("../../middlewares/integration-credentials"));
|
|
18
18
|
const json_response_1 = __importDefault(require("../../middlewares/json-response"));
|
|
@@ -240,4 +240,3 @@ function register({ config, app }) {
|
|
|
240
240
|
moduleKey: integrationLogic.key,
|
|
241
241
|
}), (0, integration_credentials_1.default)(config, integrationLogic), (0, invite_users_1.default)());
|
|
242
242
|
}
|
|
243
|
-
exports.register = register;
|
|
@@ -5,21 +5,21 @@ var Provider;
|
|
|
5
5
|
(function (Provider) {
|
|
6
6
|
Provider["CROWDIN"] = "crowdin";
|
|
7
7
|
Provider["INTEGRATION"] = "integration";
|
|
8
|
-
})(Provider
|
|
8
|
+
})(Provider || (exports.Provider = Provider = {}));
|
|
9
9
|
var SyncCondition;
|
|
10
10
|
(function (SyncCondition) {
|
|
11
11
|
SyncCondition[SyncCondition["ALL"] = 0] = "ALL";
|
|
12
12
|
SyncCondition[SyncCondition["TRANSLATED"] = 1] = "TRANSLATED";
|
|
13
13
|
SyncCondition[SyncCondition["APPROVED"] = 2] = "APPROVED";
|
|
14
|
-
})(SyncCondition
|
|
14
|
+
})(SyncCondition || (exports.SyncCondition = SyncCondition = {}));
|
|
15
15
|
var SyncSchedule;
|
|
16
16
|
(function (SyncSchedule) {
|
|
17
17
|
SyncSchedule[SyncSchedule["DISABLED"] = 0] = "DISABLED";
|
|
18
18
|
SyncSchedule[SyncSchedule["ACTIVE"] = 1 || 3 || 6 || 12 || 24] = "ACTIVE";
|
|
19
|
-
})(SyncSchedule
|
|
19
|
+
})(SyncSchedule || (exports.SyncSchedule = SyncSchedule = {}));
|
|
20
20
|
var DefaultCategory;
|
|
21
21
|
(function (DefaultCategory) {
|
|
22
22
|
DefaultCategory["GENERAL"] = "General Settings";
|
|
23
23
|
DefaultCategory["SYNC"] = "Sync settings";
|
|
24
24
|
DefaultCategory["ADVANCED"] = "Advanced";
|
|
25
|
-
})(DefaultCategory
|
|
25
|
+
})(DefaultCategory || (exports.DefaultCategory = DefaultCategory = {}));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,7 +42,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.
|
|
45
|
+
exports.runJob = runJob;
|
|
46
|
+
exports.runUpdateProviderJob = runUpdateProviderJob;
|
|
47
|
+
exports.filesCron = filesCron;
|
|
48
|
+
exports.filterFilesFromIntegrationRequest = filterFilesFromIntegrationRequest;
|
|
49
|
+
exports.createOrUpdateSyncSettings = createOrUpdateSyncSettings;
|
|
50
|
+
exports.removeFinishedJobs = removeFinishedJobs;
|
|
36
51
|
const crowdinAppFunctions = __importStar(require("@crowdin/crowdin-apps-functions"));
|
|
37
52
|
const storage_1 = require("../../../storage");
|
|
38
53
|
const connection_1 = require("../../../util/connection");
|
|
@@ -44,8 +59,8 @@ const job_1 = require("./job");
|
|
|
44
59
|
const types_2 = require("./types");
|
|
45
60
|
const subscription_1 = require("../../../util/subscription");
|
|
46
61
|
const files_1 = require("./files");
|
|
47
|
-
function runJob(
|
|
48
|
-
return __awaiter(this,
|
|
62
|
+
function runJob(_a) {
|
|
63
|
+
return __awaiter(this, arguments, void 0, function* ({ config, integration, job, }) {
|
|
49
64
|
(0, logger_1.log)(`Starting cron job with expression [${job.expression}]`);
|
|
50
65
|
const crowdinCredentialsList = yield (0, storage_1.getStorage)().getAllCrowdinCredentials();
|
|
51
66
|
yield Promise.all(crowdinCredentialsList.map((crowdinCredentials) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -86,9 +101,8 @@ function runJob({ config, integration, job, }) {
|
|
|
86
101
|
(0, logger_1.log)(`Cron job with expression [${job.expression}] completed`);
|
|
87
102
|
});
|
|
88
103
|
}
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
function runUpdateProviderJob(_a) {
|
|
105
|
+
return __awaiter(this, arguments, void 0, function* ({ integrationId, crowdinId, type, title, payload, jobType, projectId, client, integration, context, credentials, rootFolder, settings, reRunJobId, }) {
|
|
92
106
|
try {
|
|
93
107
|
yield (0, job_1.runAsJob)({
|
|
94
108
|
integrationId,
|
|
@@ -146,9 +160,8 @@ function runUpdateProviderJob({ integrationId, crowdinId, type, title, payload,
|
|
|
146
160
|
}
|
|
147
161
|
});
|
|
148
162
|
}
|
|
149
|
-
|
|
150
|
-
function
|
|
151
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
function filesCron(_a) {
|
|
164
|
+
return __awaiter(this, arguments, void 0, function* ({ config, integration, period, }) {
|
|
152
165
|
(0, logger_1.log)(`Starting files cron job with period [${period}]`);
|
|
153
166
|
const syncSettingsList = yield (0, storage_1.getStorage)().getSyncSettingsBySchedule('schedule', period);
|
|
154
167
|
const crowdinSyncSettings = syncSettingsList.filter((syncSettings) => syncSettings.provider === types_1.Provider.CROWDIN);
|
|
@@ -160,10 +173,9 @@ function filesCron({ config, integration, period, }) {
|
|
|
160
173
|
(0, logger_1.log)(`Files cron job with period [${period}] completed`);
|
|
161
174
|
});
|
|
162
175
|
}
|
|
163
|
-
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
function processSyncSettings(_a) {
|
|
177
|
+
return __awaiter(this, arguments, void 0, function* ({ config, integration, period, syncSettings, }) {
|
|
178
|
+
var _b, _c, _d, _e;
|
|
167
179
|
let projectData;
|
|
168
180
|
let crowdinClient;
|
|
169
181
|
let token;
|
|
@@ -235,11 +247,11 @@ function processSyncSettings({ config, integration, period, syncSettings, }) {
|
|
|
235
247
|
const credentials = yield (0, connection_1.prepareIntegrationCredentials)(config, integration, integrationCredentials);
|
|
236
248
|
let currentFileSnapshot = [];
|
|
237
249
|
let needsSnapshotForNewFiles = !integration.webhooks &&
|
|
238
|
-
((
|
|
250
|
+
((_b = integration.syncNewElements) === null || _b === void 0 ? void 0 : _b[syncSettings.provider]) &&
|
|
239
251
|
(intConfig[`new-${syncSettings.provider}-files`] || (0, files_1.hasFolders)(files));
|
|
240
252
|
if (!needsSnapshotForNewFiles &&
|
|
241
253
|
!integration.webhooks &&
|
|
242
|
-
((
|
|
254
|
+
((_c = integration.syncNewElements) === null || _c === void 0 ? void 0 : _c[syncSettings.provider]) &&
|
|
243
255
|
syncSettings.provider === types_1.Provider.CROWDIN) {
|
|
244
256
|
currentFileSnapshot = yield (0, snapshot_1.getCrowdinSnapshot)(config, integration, crowdinClient, projectData.id, intConfig);
|
|
245
257
|
const syncedFileIds = Object.keys(files);
|
|
@@ -393,8 +405,8 @@ function processSyncSettings({ config, integration, period, syncSettings, }) {
|
|
|
393
405
|
(0, logger_1.log)(`Executing updateCrowdin task for files cron job with period [${period}] for project ${projectId}. Files ${intFiles.length}`);
|
|
394
406
|
const credentials = yield (0, connection_1.prepareIntegrationCredentials)(config, integration, integrationCredentials);
|
|
395
407
|
if (integration.filterByPathIntegrationFiles) {
|
|
396
|
-
const includePatterns = (
|
|
397
|
-
const excludePatterns = (
|
|
408
|
+
const includePatterns = (_d = intConfig === null || intConfig === void 0 ? void 0 : intConfig.includeByFilePath) === null || _d === void 0 ? void 0 : _d.split('\n').filter(Boolean);
|
|
409
|
+
const excludePatterns = (_e = intConfig === null || intConfig === void 0 ? void 0 : intConfig.excludeByFilePath) === null || _e === void 0 ? void 0 : _e.split('\n').filter(Boolean);
|
|
398
410
|
try {
|
|
399
411
|
const fullTreeResult = yield integration.getIntegrationFiles({
|
|
400
412
|
credentials,
|
|
@@ -456,8 +468,8 @@ function processSyncSettings({ config, integration, period, syncSettings, }) {
|
|
|
456
468
|
function getFileDiff(currentFiles, savedFiles) {
|
|
457
469
|
return currentFiles.filter((x) => !savedFiles.some((x2) => x2.id === x.id));
|
|
458
470
|
}
|
|
459
|
-
function getAllNewFiles(
|
|
460
|
-
return __awaiter(this,
|
|
471
|
+
function getAllNewFiles(_a) {
|
|
472
|
+
return __awaiter(this, arguments, void 0, function* ({ crowdinId, integrationId, projectData, integrationSettings, syncSettings, currentFileSnapshot, }) {
|
|
461
473
|
const fileSnapshotData = yield (0, storage_1.getStorage)().getFilesSnapshot(integrationId, crowdinId, syncSettings.provider);
|
|
462
474
|
const snapshotFiles = (fileSnapshotData === null || fileSnapshotData === void 0 ? void 0 : fileSnapshotData.files) ? JSON.parse(fileSnapshotData.files) : [];
|
|
463
475
|
const difference = getFileDiff(currentFileSnapshot, snapshotFiles);
|
|
@@ -503,8 +515,8 @@ function getNewFoldersFile(folders, snapshotFiles) {
|
|
|
503
515
|
files = files.filter((file) => 'type' in file);
|
|
504
516
|
return files;
|
|
505
517
|
}
|
|
506
|
-
function getOnlyTranslatedOrApprovedFiles(
|
|
507
|
-
return __awaiter(this,
|
|
518
|
+
function getOnlyTranslatedOrApprovedFiles(_a) {
|
|
519
|
+
return __awaiter(this, arguments, void 0, function* ({ projectId, crowdinFiles, crowdinClient, onlyApproved, onlyTranslated, context, }) {
|
|
508
520
|
const deletedFiles = [];
|
|
509
521
|
(0, logger_1.log)(`Filtering files to process only ${onlyApproved ? 'approved' : 'translated'} files`);
|
|
510
522
|
const filesInfo = yield Promise.all(Object.keys(crowdinFiles).map((fileId) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -569,14 +581,14 @@ function getOnlyTranslatedOrApprovedFiles({ projectId, crowdinFiles, crowdinClie
|
|
|
569
581
|
return { filteredFiles, deletedFiles };
|
|
570
582
|
});
|
|
571
583
|
}
|
|
572
|
-
function filterFilesFromIntegrationRequest(
|
|
573
|
-
|
|
574
|
-
|
|
584
|
+
function filterFilesFromIntegrationRequest(_a) {
|
|
585
|
+
return __awaiter(this, arguments, void 0, function* ({ config, integration, projectId, crowdinClient, crowdinFiles, }) {
|
|
586
|
+
var _b;
|
|
575
587
|
if (integration.skipAutoSyncFoldersFilter) {
|
|
576
588
|
return crowdinFiles;
|
|
577
589
|
}
|
|
578
590
|
let folders;
|
|
579
|
-
if ((
|
|
591
|
+
if ((_b = config.projectIntegration) === null || _b === void 0 ? void 0 : _b.withRootFolder) {
|
|
580
592
|
const rootFolder = yield (0, defaults_1.getRootFolder)(config, integration, crowdinClient, projectId);
|
|
581
593
|
if (rootFolder) {
|
|
582
594
|
folders = (yield crowdinClient.sourceFilesApi.withFetchAll().listProjectDirectories(projectId, {
|
|
@@ -598,9 +610,8 @@ function filterFilesFromIntegrationRequest({ config, integration, projectId, cro
|
|
|
598
610
|
return crowdinFiles;
|
|
599
611
|
});
|
|
600
612
|
}
|
|
601
|
-
|
|
602
|
-
function
|
|
603
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
613
|
+
function createOrUpdateSyncSettings(_a) {
|
|
614
|
+
return __awaiter(this, arguments, void 0, function* ({ req, files, provider, onlyCreate = false, }) {
|
|
604
615
|
const existingSettings = yield (0, storage_1.getStorage)().getSyncSettings(req.crowdinContext.clientId, req.crowdinContext.crowdinId, 'schedule', provider);
|
|
605
616
|
if (!existingSettings) {
|
|
606
617
|
(0, logger_1.log)(`Saving sync settings for type schedule and provider ${provider} ${JSON.stringify(files, null, 2)}`);
|
|
@@ -612,7 +623,6 @@ function createOrUpdateSyncSettings({ req, files, provider, onlyCreate = false,
|
|
|
612
623
|
}
|
|
613
624
|
});
|
|
614
625
|
}
|
|
615
|
-
exports.createOrUpdateSyncSettings = createOrUpdateSyncSettings;
|
|
616
626
|
function removeFinishedJobs() {
|
|
617
627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
618
628
|
(0, logger_1.log)('Removing all finished jobs');
|
|
@@ -620,7 +630,6 @@ function removeFinishedJobs() {
|
|
|
620
630
|
(0, logger_1.log)('Removed all finished jobs');
|
|
621
631
|
});
|
|
622
632
|
}
|
|
623
|
-
exports.removeFinishedJobs = removeFinishedJobs;
|
|
624
633
|
function removeInContextLanguage(filesToProcess, projectData) {
|
|
625
634
|
(0, logger_1.log)('Removing in-context language from files to process');
|
|
626
635
|
if (!projectData.inContext) {
|