@crowdin/app-project-module 1.2.1 → 1.3.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.
- 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.d.ts +1 -1
- package/out/storage/d1.js +29 -27
- package/out/storage/index.d.ts +1 -1
- package/out/storage/index.js +25 -11
- package/out/storage/mysql.d.ts +1 -1
- package/out/storage/mysql.js +35 -33
- package/out/storage/postgre.d.ts +1 -1
- package/out/storage/postgre.js +46 -44
- package/out/storage/sqlite.d.ts +1 -1
- package/out/storage/sqlite.js +18 -16
- 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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { Config, CrowdinClientRequest } from '../../../types';
|
|
4
3
|
import { FileImportExportLogic } from '../types';
|
|
5
|
-
export default function handle(baseConfig: Config, config: FileImportExportLogic, folderName: string): (req: import("express").Request
|
|
4
|
+
export default function handle(baseConfig: Config, config: FileImportExportLogic, folderName: string): (req: import("express").Request | 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 fs_1 = __importDefault(require("fs"));
|
|
16
17
|
const path_1 = __importDefault(require("path"));
|
|
17
18
|
const util_1 = require("../../../util");
|
|
@@ -163,4 +164,3 @@ function handle(baseConfig, config, folderName) {
|
|
|
163
164
|
res.send({ data: response, error: processingError ? { message: processingError } : undefined });
|
|
164
165
|
}));
|
|
165
166
|
}
|
|
166
|
-
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 { TranslationsAlignmentLogic } from '../types';
|
|
5
|
-
export default function handle(baseConfig: Config, config: TranslationsAlignmentLogic, folderName: string): (req: import("express").Request
|
|
4
|
+
export default function handle(baseConfig: Config, config: TranslationsAlignmentLogic, folderName: string): (req: import("express").Request | 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 fs_1 = __importDefault(require("fs"));
|
|
16
17
|
const path_1 = __importDefault(require("path"));
|
|
17
18
|
const util_1 = require("../../../util");
|
|
@@ -75,4 +76,3 @@ function handle(baseConfig, config, folderName) {
|
|
|
75
76
|
res.send({ data: response, error: processingErrorMessage ? { message: processingErrorMessage } : undefined });
|
|
76
77
|
}));
|
|
77
78
|
}
|
|
78
|
-
exports.default = handle;
|
|
@@ -3,7 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.registerCustomFileFormat = registerCustomFileFormat;
|
|
7
|
+
exports.registerFilePreImport = registerFilePreImport;
|
|
8
|
+
exports.registerFilePostImport = registerFilePostImport;
|
|
9
|
+
exports.registerFilePreExport = registerFilePreExport;
|
|
10
|
+
exports.registerFilePostExport = registerFilePostExport;
|
|
11
|
+
exports.registerFileTranslationsAlignmentExport = registerFileTranslationsAlignmentExport;
|
|
7
12
|
const crowdin_client_1 = __importDefault(require("../../middlewares/crowdin-client"));
|
|
8
13
|
const custom_file_format_1 = __importDefault(require("./handlers/custom-file-format"));
|
|
9
14
|
const file_download_1 = __importDefault(require("./handlers/file-download"));
|
|
@@ -41,7 +46,6 @@ function registerCustomFileFormat({ config, app }) {
|
|
|
41
46
|
// END TEMPORARY CODE
|
|
42
47
|
app.get('/file/download', (0, file_download_1.default)(config, config.customFileFormat, 'custom-file-format'));
|
|
43
48
|
}
|
|
44
|
-
exports.registerCustomFileFormat = registerCustomFileFormat;
|
|
45
49
|
function registerFilePreImport({ config, app }) {
|
|
46
50
|
if (!config.filePreImport) {
|
|
47
51
|
return;
|
|
@@ -55,7 +59,6 @@ function registerFilePreImport({ config, app }) {
|
|
|
55
59
|
}), (0, pre_post_process_1.default)(config, config.filePreImport, types_1.ProcessFileJobType.PRE_IMPORT));
|
|
56
60
|
app.get(`/file/download/${types_1.ProcessFileJobType.PRE_IMPORT}`, (0, file_download_1.default)(config, config.filePreImport, types_1.ProcessFileJobType.PRE_IMPORT));
|
|
57
61
|
}
|
|
58
|
-
exports.registerFilePreImport = registerFilePreImport;
|
|
59
62
|
function registerFilePostImport({ config, app }) {
|
|
60
63
|
if (!config.filePostImport) {
|
|
61
64
|
return;
|
|
@@ -69,7 +72,6 @@ function registerFilePostImport({ config, app }) {
|
|
|
69
72
|
}), (0, pre_post_process_1.default)(config, config.filePostImport, types_1.ProcessFileJobType.POST_IMPORT));
|
|
70
73
|
app.get(`/file/download/${types_1.ProcessFileJobType.POST_IMPORT}`, (0, file_download_1.default)(config, config.filePostImport, types_1.ProcessFileJobType.POST_IMPORT));
|
|
71
74
|
}
|
|
72
|
-
exports.registerFilePostImport = registerFilePostImport;
|
|
73
75
|
function registerFilePreExport({ config, app }) {
|
|
74
76
|
if (!config.filePreExport) {
|
|
75
77
|
return;
|
|
@@ -83,7 +85,6 @@ function registerFilePreExport({ config, app }) {
|
|
|
83
85
|
}), (0, pre_post_process_1.default)(config, config.filePreExport, types_1.ProcessFileJobType.PRE_EXPORT));
|
|
84
86
|
app.get(`/file/download/${types_1.ProcessFileJobType.PRE_EXPORT}`, (0, file_download_1.default)(config, config.filePreExport, types_1.ProcessFileJobType.PRE_EXPORT));
|
|
85
87
|
}
|
|
86
|
-
exports.registerFilePreExport = registerFilePreExport;
|
|
87
88
|
function registerFilePostExport({ config, app }) {
|
|
88
89
|
if (!config.filePostExport) {
|
|
89
90
|
return;
|
|
@@ -97,7 +98,6 @@ function registerFilePostExport({ config, app }) {
|
|
|
97
98
|
}), (0, pre_post_process_1.default)(config, config.filePostExport, types_1.ProcessFileJobType.POST_EXPORT));
|
|
98
99
|
app.get(`/file/download/${types_1.ProcessFileJobType.POST_EXPORT}`, (0, file_download_1.default)(config, config.filePostExport, types_1.ProcessFileJobType.POST_EXPORT));
|
|
99
100
|
}
|
|
100
|
-
exports.registerFilePostExport = registerFilePostExport;
|
|
101
101
|
function registerFileTranslationsAlignmentExport({ config, app }) {
|
|
102
102
|
if (!config.fileTranslationsAlignmentExport) {
|
|
103
103
|
return;
|
|
@@ -111,4 +111,3 @@ function registerFileTranslationsAlignmentExport({ config, app }) {
|
|
|
111
111
|
}), (0, translations_alignment_1.default)(config, config.fileTranslationsAlignmentExport, types_1.ProcessFileJobType.TRANSLATIONS_ALIGNMENT));
|
|
112
112
|
app.get(`/file/download/${types_1.ProcessFileJobType.POST_EXPORT}`, (0, file_download_1.default)(config, config.fileTranslationsAlignmentExport, types_1.ProcessFileJobType.TRANSLATIONS_ALIGNMENT));
|
|
113
113
|
}
|
|
114
|
-
exports.registerFileTranslationsAlignmentExport = registerFileTranslationsAlignmentExport;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import Crowdin, { LanguagesModel, SourceStringsModel } from '@crowdin/crowdin-api-client';
|
|
4
2
|
import { CrowdinContextInfo, ModuleKey, SignaturePatterns } from '../../types';
|
|
5
3
|
export interface FileProcessLogic extends ModuleKey {
|
|
@@ -10,4 +10,4 @@ var ProcessFileJobType;
|
|
|
10
10
|
ProcessFileJobType["PRE_EXPORT"] = "pre-export-file";
|
|
11
11
|
ProcessFileJobType["POST_EXPORT"] = "post-export-file";
|
|
12
12
|
ProcessFileJobType["TRANSLATIONS_ALIGNMENT"] = "translations-alignment-file";
|
|
13
|
-
})(ProcessFileJobType
|
|
13
|
+
})(ProcessFileJobType || (exports.ProcessFileJobType = ProcessFileJobType = {}));
|
|
@@ -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,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.applyFileProcessorsModuleDefaults =
|
|
45
|
+
exports.applyFileProcessorsModuleDefaults = applyFileProcessorsModuleDefaults;
|
|
36
46
|
function loadAwsSdk() {
|
|
37
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
48
|
try {
|
|
@@ -71,4 +81,3 @@ function applyFileProcessorsModuleDefaults(config, fileModule) {
|
|
|
71
81
|
});
|
|
72
82
|
}
|
|
73
83
|
}
|
|
74
|
-
exports.applyFileProcessorsModuleDefaults = applyFileProcessorsModuleDefaults;
|
|
@@ -12,7 +12,10 @@ 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.
|
|
15
|
+
exports.MAX_BODY_SIZE = void 0;
|
|
16
|
+
exports.storeFile = storeFile;
|
|
17
|
+
exports.getFileContent = getFileContent;
|
|
18
|
+
exports.getFileStrings = getFileStrings;
|
|
16
19
|
const axios_1 = __importDefault(require("axios"));
|
|
17
20
|
const fs_1 = __importDefault(require("fs"));
|
|
18
21
|
const path_1 = __importDefault(require("path"));
|
|
@@ -28,7 +31,6 @@ function storeFile(fileContent, folder) {
|
|
|
28
31
|
}
|
|
29
32
|
}));
|
|
30
33
|
}
|
|
31
|
-
exports.storeFile = storeFile;
|
|
32
34
|
function getFileContent(url) {
|
|
33
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
36
|
const response = (yield axios_1.default.get(url, { responseType: 'arraybuffer' })).data;
|
|
@@ -36,7 +38,6 @@ function getFileContent(url) {
|
|
|
36
38
|
return Buffer.isBuffer(response) ? response : Buffer.from(response);
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
|
-
exports.getFileContent = getFileContent;
|
|
40
41
|
function getFileStrings(url) {
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
43
|
const response = (yield axios_1.default.get(url)).data;
|
|
@@ -45,4 +46,3 @@ function getFileStrings(url) {
|
|
|
45
46
|
return jsonRows.map((jsonStringRow) => JSON.parse(jsonStringRow));
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
|
-
exports.getFileStrings = getFileStrings;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Config, CrowdinClientRequest } from '../types';
|
|
3
2
|
import { Response } from 'express';
|
|
4
|
-
export default function handle(config: Config): (req: import("express").Request
|
|
3
|
+
export default function handle(config: Config): (req: import("express").Request | CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -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,6 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.default = handle;
|
|
35
46
|
const util_1 = require("../util");
|
|
36
47
|
const storage = __importStar(require("../storage"));
|
|
37
48
|
function handle(config) {
|
|
@@ -46,4 +57,3 @@ function handle(config) {
|
|
|
46
57
|
});
|
|
47
58
|
}));
|
|
48
59
|
}
|
|
49
|
-
exports.default = handle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Config, CrowdinClientRequest } from '../types';
|
|
3
2
|
import { Response } from 'express';
|
|
4
|
-
export default function handle(config: Config): (req: import("express").Request
|
|
3
|
+
export default function handle(config: Config): (req: import("express").Request | CrowdinClientRequest, res: Response, next: Function) => void;
|
|
@@ -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,6 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.default = handle;
|
|
35
46
|
const util_1 = require("../util");
|
|
36
47
|
const storage = __importStar(require("../storage"));
|
|
37
48
|
function handle(config) {
|
|
@@ -56,4 +67,3 @@ function handle(config) {
|
|
|
56
67
|
res.status(204).end();
|
|
57
68
|
}));
|
|
58
69
|
}
|
|
59
|
-
exports.default = handle;
|
package/out/modules/install.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Request, Response } from 'express';
|
|
3
2
|
import { Config } from '../types';
|
|
4
|
-
export default function handle(config: Config): (req: Request
|
|
3
|
+
export default function handle(config: Config): (req: Request | import("../types").CrowdinClientRequest, res: Response, next: Function) => void;
|
package/out/modules/install.js
CHANGED
|
@@ -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 crowdin_apps_functions_1 = require("@crowdin/crowdin-apps-functions");
|
|
13
14
|
const types_1 = require("../types");
|
|
14
15
|
const storage_1 = require("../storage");
|
|
@@ -52,10 +53,9 @@ function handle(config) {
|
|
|
52
53
|
res.status(204).end();
|
|
53
54
|
}));
|
|
54
55
|
}
|
|
55
|
-
exports.default = handle;
|
|
56
56
|
function fetchToken(config, event) {
|
|
57
|
-
var _a, _b, _c, _d;
|
|
58
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
var _a, _b, _c, _d;
|
|
59
59
|
if (config.authenticationType === types_1.AuthenticationType.CODE) {
|
|
60
60
|
const token = yield (0, crowdin_apps_functions_1.generateOAuthToken)({
|
|
61
61
|
clientId: config.clientId,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { CrowdinClientRequest } from '../../../types';
|
|
4
3
|
import { IntegrationLogic } from '../types';
|
|
5
|
-
export default function handle(integration: IntegrationLogic): (req: import("express").Request
|
|
4
|
+
export default function handle(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 util_1 = require("../../../util");
|
|
13
14
|
const logger_1 = require("../../../util/logger");
|
|
14
15
|
function handle(integration) {
|
|
@@ -47,4 +48,3 @@ function handle(integration) {
|
|
|
47
48
|
}
|
|
48
49
|
}));
|
|
49
50
|
}
|
|
50
|
-
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 logger_1 = require("../../../util/logger");
|
|
14
15
|
const files_1 = require("../util/files");
|
|
@@ -100,4 +101,3 @@ function handle(config, integration) {
|
|
|
100
101
|
});
|
|
101
102
|
}));
|
|
102
103
|
}
|
|
103
|
-
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 defaults_1 = require("../util/defaults");
|
|
14
15
|
const logger_1 = require("../../../util/logger");
|
|
@@ -58,4 +59,3 @@ function handle(config, integration) {
|
|
|
58
59
|
}
|
|
59
60
|
}));
|
|
60
61
|
}
|
|
61
|
-
exports.default = handle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { CrowdinClientRequest } from '../../../types';
|
|
4
|
-
export default function handle(): (req: import("express").Request
|
|
3
|
+
export default function handle(): (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 util_1 = require("../../../util");
|
|
13
14
|
function handle() {
|
|
14
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -26,4 +27,3 @@ function handle() {
|
|
|
26
27
|
res.send(Object.assign(Object.assign({}, project.data), { projectEditorLink }));
|
|
27
28
|
}));
|
|
28
29
|
}
|
|
29
|
-
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 types_1 = require("../util/types");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const defaults_1 = require("../util/defaults");
|
|
@@ -164,4 +165,3 @@ function handle(config, integration) {
|
|
|
164
165
|
});
|
|
165
166
|
}));
|
|
166
167
|
}
|
|
167
|
-
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;
|
|
@@ -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");
|
|
@@ -17,8 +18,8 @@ const types_1 = require("../types");
|
|
|
17
18
|
const cron_1 = require("../util/cron");
|
|
18
19
|
const files_1 = require("../util/files");
|
|
19
20
|
function filterSyncFiles(args) {
|
|
20
|
-
var _a, _b;
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
var _a, _b;
|
|
22
23
|
const { projectId, client, events, syncFileSettings, settings } = args;
|
|
23
24
|
const files = {};
|
|
24
25
|
let projectData;
|
|
@@ -137,4 +138,3 @@ function handle(config, integration) {
|
|
|
137
138
|
}
|
|
138
139
|
}));
|
|
139
140
|
}
|
|
140
|
-
exports.default = handle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="qs" />
|
|
2
1
|
import { Response } from 'express';
|
|
3
2
|
import { IntegrationLogic } from '../types';
|
|
4
|
-
export default function handle(integration: IntegrationLogic): (req: import("express").Request
|
|
3
|
+
export default function handle(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 logger_1 = require("../../../util/logger");
|
|
14
15
|
const files_1 = require("../util/files");
|
|
@@ -109,4 +110,3 @@ function handle(integration) {
|
|
|
109
110
|
res.send({ data: files, message, stopPagination });
|
|
110
111
|
}));
|
|
111
112
|
}
|
|
112
|
-
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 logger_1 = require("../../../util/logger");
|
|
@@ -71,4 +72,3 @@ function handle(config, integration) {
|
|
|
71
72
|
res.status(204).end();
|
|
72
73
|
}));
|
|
73
74
|
}
|
|
74
|
-
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;
|
|
@@ -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,6 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.default = handle;
|
|
35
46
|
const storage_1 = require("../../../storage");
|
|
36
47
|
const util_1 = require("../../../util");
|
|
37
48
|
const logger_1 = require("../../../util/logger");
|
|
@@ -81,4 +92,3 @@ function handle(config, integration) {
|
|
|
81
92
|
res.status(204).end();
|
|
82
93
|
}));
|
|
83
94
|
}
|
|
84
|
-
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 types_1 = require("../util/types");
|
|
13
14
|
const util_1 = require("../../../util");
|
|
14
15
|
const defaults_1 = require("../util/defaults");
|
|
@@ -127,4 +128,3 @@ function handle(config, integration) {
|
|
|
127
128
|
});
|
|
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;
|
|
@@ -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 webhooks_1 = require("../util/webhooks");
|
|
14
15
|
const types_1 = require("../types");
|
|
@@ -41,4 +42,3 @@ function handle(config, integration) {
|
|
|
41
42
|
}
|
|
42
43
|
}));
|
|
43
44
|
}
|
|
44
|
-
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;
|