@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.
Files changed (214) hide show
  1. package/out/app-test/integration/get-integration-files.js +1 -1
  2. package/out/app-test/integration/index.js +6 -6
  3. package/out/app-test/integration/mocks/crowdin-storage.d.ts +16 -16
  4. package/out/app-test/integration/mocks/mock-crowdin-api-client.js +17 -7
  5. package/out/app-test/integration/update-crowdin.js +1 -1
  6. package/out/app-test/integration/update-integration.js +1 -1
  7. package/out/app-test/util/index.js +1 -2
  8. package/out/index.js +23 -13
  9. package/out/middlewares/api-call.js +1 -1
  10. package/out/middlewares/auto-credentials-masker.js +2 -3
  11. package/out/middlewares/crowdin-client.d.ts +1 -2
  12. package/out/middlewares/crowdin-client.js +5 -6
  13. package/out/middlewares/integration-credentials.d.ts +1 -2
  14. package/out/middlewares/integration-credentials.js +18 -8
  15. package/out/middlewares/json-response.js +1 -1
  16. package/out/middlewares/render-ui-module.d.ts +1 -2
  17. package/out/middlewares/render-ui-module.js +1 -1
  18. package/out/middlewares/ui-module.d.ts +1 -2
  19. package/out/middlewares/ui-module.js +1 -1
  20. package/out/modules/about.js +2 -3
  21. package/out/modules/ai-prompt-provider/handlers/compile.d.ts +1 -2
  22. package/out/modules/ai-prompt-provider/handlers/compile.js +1 -1
  23. package/out/modules/ai-prompt-provider/index.js +1 -2
  24. package/out/modules/ai-prompt-provider/types.js +1 -1
  25. package/out/modules/ai-provider/handlers/chat-completions.d.ts +1 -2
  26. package/out/modules/ai-provider/handlers/chat-completions.js +2 -2
  27. package/out/modules/ai-provider/handlers/get-model-list.d.ts +1 -2
  28. package/out/modules/ai-provider/handlers/get-model-list.js +1 -1
  29. package/out/modules/ai-provider/index.js +1 -2
  30. package/out/modules/ai-provider/util/index.js +6 -6
  31. package/out/modules/ai-request-processors/handler.d.ts +1 -2
  32. package/out/modules/ai-request-processors/handler.js +1 -1
  33. package/out/modules/ai-request-processors/index.js +5 -5
  34. package/out/modules/ai-tools/handlers/tool-calls.d.ts +1 -2
  35. package/out/modules/ai-tools/handlers/tool-calls.js +1 -1
  36. package/out/modules/ai-tools/index.js +2 -3
  37. package/out/modules/ai-tools/util/index.js +4 -5
  38. package/out/modules/api/api.js +4 -5
  39. package/out/modules/api/index.js +1 -2
  40. package/out/modules/api/types.js +1 -1
  41. package/out/modules/auth-guard/handlers/verify.d.ts +1 -2
  42. package/out/modules/auth-guard/handlers/verify.js +1 -1
  43. package/out/modules/auth-guard/index.js +1 -2
  44. package/out/modules/automation-action/handlers/execute.d.ts +1 -2
  45. package/out/modules/automation-action/handlers/execute.js +1 -1
  46. package/out/modules/automation-action/handlers/input-schema.d.ts +1 -2
  47. package/out/modules/automation-action/handlers/input-schema.js +1 -1
  48. package/out/modules/automation-action/handlers/output-schema.d.ts +1 -2
  49. package/out/modules/automation-action/handlers/output-schema.js +1 -1
  50. package/out/modules/automation-action/handlers/validate-settings.d.ts +1 -2
  51. package/out/modules/automation-action/handlers/validate-settings.js +1 -1
  52. package/out/modules/automation-action/index.js +1 -2
  53. package/out/modules/automation-action/util/index.js +2 -3
  54. package/out/modules/automation-action/util/validate-input.js +1 -2
  55. package/out/modules/context-menu/index.js +1 -2
  56. package/out/modules/context-menu/types.js +2 -2
  57. package/out/modules/custom-mt/handlers/translate.d.ts +1 -2
  58. package/out/modules/custom-mt/handlers/translate.js +1 -1
  59. package/out/modules/custom-mt/index.js +1 -2
  60. package/out/modules/custom-mt/types.d.ts +0 -2
  61. package/out/modules/custom-spell-check/handlers/get-languages-list.d.ts +1 -2
  62. package/out/modules/custom-spell-check/handlers/get-languages-list.js +1 -1
  63. package/out/modules/custom-spell-check/handlers/spell-check.d.ts +1 -2
  64. package/out/modules/custom-spell-check/handlers/spell-check.js +1 -1
  65. package/out/modules/custom-spell-check/index.js +1 -2
  66. package/out/modules/editor-right-panel/index.js +1 -2
  67. package/out/modules/external-qa-check/handlers/validate.d.ts +1 -2
  68. package/out/modules/external-qa-check/handlers/validate.js +1 -1
  69. package/out/modules/external-qa-check/index.js +1 -2
  70. package/out/modules/file-processing/handlers/custom-file-format.d.ts +1 -2
  71. package/out/modules/file-processing/handlers/custom-file-format.js +9 -9
  72. package/out/modules/file-processing/handlers/file-download.d.ts +1 -2
  73. package/out/modules/file-processing/handlers/file-download.js +1 -1
  74. package/out/modules/file-processing/handlers/pre-post-process.d.ts +1 -2
  75. package/out/modules/file-processing/handlers/pre-post-process.js +1 -1
  76. package/out/modules/file-processing/handlers/translations-alignment.d.ts +1 -2
  77. package/out/modules/file-processing/handlers/translations-alignment.js +1 -1
  78. package/out/modules/file-processing/index.js +6 -7
  79. package/out/modules/file-processing/types.d.ts +0 -2
  80. package/out/modules/file-processing/types.js +1 -1
  81. package/out/modules/file-processing/util/defaults.js +18 -9
  82. package/out/modules/file-processing/util/files.d.ts +0 -2
  83. package/out/modules/file-processing/util/files.js +4 -4
  84. package/out/modules/form-data-display.d.ts +1 -2
  85. package/out/modules/form-data-display.js +18 -8
  86. package/out/modules/form-data-save.d.ts +1 -2
  87. package/out/modules/form-data-save.js +18 -8
  88. package/out/modules/install.d.ts +1 -2
  89. package/out/modules/install.js +2 -2
  90. package/out/modules/integration/handlers/crowdin-file-progress.d.ts +1 -2
  91. package/out/modules/integration/handlers/crowdin-file-progress.js +1 -1
  92. package/out/modules/integration/handlers/crowdin-files-target-languages.d.ts +1 -2
  93. package/out/modules/integration/handlers/crowdin-files-target-languages.js +1 -1
  94. package/out/modules/integration/handlers/crowdin-files.d.ts +1 -2
  95. package/out/modules/integration/handlers/crowdin-files.js +1 -1
  96. package/out/modules/integration/handlers/crowdin-project.d.ts +1 -2
  97. package/out/modules/integration/handlers/crowdin-project.js +1 -1
  98. package/out/modules/integration/handlers/crowdin-update.d.ts +1 -2
  99. package/out/modules/integration/handlers/crowdin-update.js +1 -1
  100. package/out/modules/integration/handlers/crowdin-webhook.d.ts +1 -2
  101. package/out/modules/integration/handlers/crowdin-webhook.js +2 -2
  102. package/out/modules/integration/handlers/integration-data.d.ts +1 -2
  103. package/out/modules/integration/handlers/integration-data.js +1 -1
  104. package/out/modules/integration/handlers/integration-login.d.ts +1 -2
  105. package/out/modules/integration/handlers/integration-login.js +1 -1
  106. package/out/modules/integration/handlers/integration-logout.d.ts +1 -2
  107. package/out/modules/integration/handlers/integration-logout.js +18 -8
  108. package/out/modules/integration/handlers/integration-update.d.ts +1 -2
  109. package/out/modules/integration/handlers/integration-update.js +1 -1
  110. package/out/modules/integration/handlers/integration-webhook.d.ts +1 -2
  111. package/out/modules/integration/handlers/integration-webhook.js +1 -1
  112. package/out/modules/integration/handlers/invite-users.d.ts +1 -2
  113. package/out/modules/integration/handlers/invite-users.js +1 -1
  114. package/out/modules/integration/handlers/job-cancel.d.ts +1 -2
  115. package/out/modules/integration/handlers/job-cancel.js +1 -1
  116. package/out/modules/integration/handlers/job-info-deprecated.d.ts +1 -2
  117. package/out/modules/integration/handlers/job-info-deprecated.js +1 -1
  118. package/out/modules/integration/handlers/job-info.d.ts +1 -2
  119. package/out/modules/integration/handlers/job-info.js +1 -1
  120. package/out/modules/integration/handlers/job-list.d.ts +1 -2
  121. package/out/modules/integration/handlers/job-list.js +1 -1
  122. package/out/modules/integration/handlers/main.d.ts +1 -2
  123. package/out/modules/integration/handlers/main.js +1 -1
  124. package/out/modules/integration/handlers/oauth-login.d.ts +1 -2
  125. package/out/modules/integration/handlers/oauth-login.js +1 -1
  126. package/out/modules/integration/handlers/oauth-polling.d.ts +1 -2
  127. package/out/modules/integration/handlers/oauth-polling.js +1 -1
  128. package/out/modules/integration/handlers/oauth-url.d.ts +1 -2
  129. package/out/modules/integration/handlers/oauth-url.js +1 -1
  130. package/out/modules/integration/handlers/settings-save.d.ts +1 -2
  131. package/out/modules/integration/handlers/settings-save.js +1 -1
  132. package/out/modules/integration/handlers/settings.d.ts +1 -2
  133. package/out/modules/integration/handlers/settings.js +1 -1
  134. package/out/modules/integration/handlers/subscription-info.js +1 -1
  135. package/out/modules/integration/handlers/sync-settings-save.d.ts +1 -2
  136. package/out/modules/integration/handlers/sync-settings-save.js +1 -1
  137. package/out/modules/integration/handlers/sync-settings.d.ts +1 -2
  138. package/out/modules/integration/handlers/sync-settings.js +1 -1
  139. package/out/modules/integration/handlers/user-errors.d.ts +1 -2
  140. package/out/modules/integration/handlers/user-errors.js +1 -1
  141. package/out/modules/integration/handlers/users.d.ts +1 -2
  142. package/out/modules/integration/handlers/users.js +4 -5
  143. package/out/modules/integration/index.js +1 -2
  144. package/out/modules/integration/types.js +4 -4
  145. package/out/modules/integration/util/cron.js +46 -37
  146. package/out/modules/integration/util/defaults.js +33 -24
  147. package/out/modules/integration/util/files.js +29 -30
  148. package/out/modules/integration/util/job.js +29 -20
  149. package/out/modules/integration/util/snapshot.js +7 -8
  150. package/out/modules/integration/util/types.js +3 -3
  151. package/out/modules/integration/util/webhooks.js +54 -44
  152. package/out/modules/manifest.js +1 -1
  153. package/out/modules/modal/index.js +1 -2
  154. package/out/modules/organization-menu/index.js +1 -2
  155. package/out/modules/organization-settings-menu/index.js +1 -2
  156. package/out/modules/profile-resources-menu/index.js +1 -2
  157. package/out/modules/profile-settings-menu/index.js +1 -2
  158. package/out/modules/project-menu/index.js +1 -2
  159. package/out/modules/project-menu-crowdsource/index.js +1 -2
  160. package/out/modules/project-reports/index.js +1 -2
  161. package/out/modules/project-tools/index.js +1 -2
  162. package/out/modules/status.d.ts +1 -2
  163. package/out/modules/status.js +1 -1
  164. package/out/modules/subscription-paid.d.ts +1 -2
  165. package/out/modules/subscription-paid.js +1 -1
  166. package/out/modules/uninstall.d.ts +1 -2
  167. package/out/modules/uninstall.js +1 -1
  168. package/out/modules/webhooks/handlers/webhook-handler.d.ts +1 -2
  169. package/out/modules/webhooks/handlers/webhook-handler.js +18 -9
  170. package/out/modules/webhooks/index.js +1 -2
  171. package/out/modules/workflow-step-type/handlers/delete-step.d.ts +1 -2
  172. package/out/modules/workflow-step-type/handlers/delete-step.js +18 -8
  173. package/out/modules/workflow-step-type/handlers/step-settings-save.d.ts +1 -2
  174. package/out/modules/workflow-step-type/handlers/step-settings-save.js +18 -8
  175. package/out/modules/workflow-step-type/index.js +1 -2
  176. package/out/modules/workflow-step-type/types.js +1 -1
  177. package/out/modules/workflow-step-type/util/index.js +2 -3
  178. package/out/static/ui/error.bundle.js +446 -379
  179. package/out/static/ui/error.bundle.js.map +1 -1
  180. package/out/static/ui/form.bundle.js +29793 -29989
  181. package/out/static/ui/form.bundle.js.map +1 -1
  182. package/out/static/ui/install.bundle.js +446 -379
  183. package/out/static/ui/install.bundle.js.map +1 -1
  184. package/out/static/ui/login.bundle.js +448 -379
  185. package/out/static/ui/login.bundle.js.map +1 -1
  186. package/out/static/ui/main.bundle.js +448 -379
  187. package/out/static/ui/main.bundle.js.map +1 -1
  188. package/out/static/ui/oauth.bundle.js +448 -379
  189. package/out/static/ui/oauth.bundle.js.map +1 -1
  190. package/out/storage/d1.d.ts +1 -1
  191. package/out/storage/d1.js +29 -27
  192. package/out/storage/index.d.ts +1 -1
  193. package/out/storage/index.js +25 -11
  194. package/out/storage/mysql.d.ts +1 -1
  195. package/out/storage/mysql.js +35 -33
  196. package/out/storage/postgre.d.ts +1 -1
  197. package/out/storage/postgre.js +46 -44
  198. package/out/storage/sqlite.d.ts +1 -1
  199. package/out/storage/sqlite.js +18 -16
  200. package/out/types.d.ts +0 -2
  201. package/out/types.js +8 -8
  202. package/out/util/connection.js +34 -25
  203. package/out/util/credentials-masker.d.ts +1 -2
  204. package/out/util/credentials-masker.js +3 -4
  205. package/out/util/cron.js +20 -10
  206. package/out/util/form-schema.js +2 -3
  207. package/out/util/index.js +38 -28
  208. package/out/util/jsx-renderer.js +2 -3
  209. package/out/util/logger.js +41 -31
  210. package/out/util/static-files.d.ts +0 -1
  211. package/out/util/static-files.js +2 -3
  212. package/out/util/subscription.js +11 -12
  213. package/out/views/FormPage.js +3 -3
  214. 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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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.registerFileTranslationsAlignmentExport = exports.registerFilePostExport = exports.registerFilePreExport = exports.registerFilePostImport = exports.registerFilePreImport = exports.registerCustomFileFormat = void 0;
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 = exports.ProcessFileJobType || (exports.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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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 = void 0;
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;
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { ProcessFileString } from '../types';
4
2
  export declare const MAX_BODY_SIZE: number;
5
3
  export declare function storeFile(fileContent: Buffer, folder: string): Promise<string>;
@@ -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.getFileStrings = exports.getFileContent = exports.storeFile = exports.MAX_BODY_SIZE = void 0;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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;
@@ -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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
3
+ export default function handle(config: Config): (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 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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
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<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>> | import("../../../types").CrowdinClientRequest, res: Response<any, Record<string, any>>, next: Function) => void;
2
+ export default function handle(): (req: import("express").Request | import("../../../types").CrowdinClientRequest, res: Response, next: Function) => void;