@crowdin/app-project-module 0.30.1 → 0.30.3
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/.release-it.json +17 -0
- package/CONTRIBUTING.md +3 -0
- package/out/handlers/{crowdin-file-progress.d.ts → integration/crowdin-file-progress.d.ts} +1 -1
- package/out/handlers/{crowdin-file-progress.js → integration/crowdin-file-progress.js} +1 -1
- package/out/handlers/{crowdin-files.d.ts → integration/crowdin-files.d.ts} +1 -1
- package/out/handlers/{crowdin-files.js → integration/crowdin-files.js} +2 -2
- package/out/handlers/{crowdin-project.d.ts → integration/crowdin-project.d.ts} +1 -1
- package/out/handlers/{crowdin-project.js → integration/crowdin-project.js} +1 -1
- package/out/handlers/{crowdin-update.d.ts → integration/crowdin-update.d.ts} +1 -1
- package/out/handlers/{crowdin-update.js → integration/crowdin-update.js} +3 -3
- package/out/handlers/{crowdin-webhook.d.ts → integration/crowdin-webhook.d.ts} +1 -1
- package/out/handlers/{crowdin-webhook.js → integration/crowdin-webhook.js} +6 -6
- package/out/handlers/{integration-data.d.ts → integration/integration-data.d.ts} +1 -1
- package/out/handlers/{integration-data.js → integration/integration-data.js} +1 -1
- package/out/handlers/{integration-login.d.ts → integration/integration-login.d.ts} +1 -1
- package/out/handlers/{integration-login.js → integration/integration-login.js} +2 -2
- package/out/handlers/{integration-logout.d.ts → integration/integration-logout.d.ts} +1 -1
- package/out/handlers/{integration-logout.js → integration/integration-logout.js} +4 -4
- package/out/handlers/{integration-update.d.ts → integration/integration-update.d.ts} +1 -1
- package/out/handlers/{integration-update.js → integration/integration-update.js} +2 -2
- package/out/handlers/{integration-webhook.d.ts → integration/integration-webhook.d.ts} +1 -1
- package/out/handlers/{integration-webhook.js → integration/integration-webhook.js} +3 -3
- package/out/handlers/{main.d.ts → integration/main.d.ts} +1 -1
- package/out/handlers/{main.js → integration/main.js} +3 -3
- package/out/handlers/{oauth-login.d.ts → integration/oauth-login.d.ts} +1 -1
- package/out/handlers/{oauth-login.js → integration/oauth-login.js} +2 -2
- package/out/handlers/{oauth-url.d.ts → integration/oauth-url.d.ts} +1 -1
- package/out/handlers/{oauth-url.js → integration/oauth-url.js} +2 -2
- package/out/handlers/{settings-save.d.ts → integration/settings-save.d.ts} +1 -1
- package/out/handlers/{settings-save.js → integration/settings-save.js} +6 -6
- package/out/handlers/{settings.d.ts → integration/settings.d.ts} +1 -1
- package/out/handlers/{settings.js → integration/settings.js} +1 -1
- package/out/handlers/{subscription-info.d.ts → integration/subscription-info.d.ts} +1 -1
- package/out/handlers/{subscription-info.js → integration/subscription-info.js} +1 -1
- package/out/handlers/{sync-settings-save.d.ts → integration/sync-settings-save.d.ts} +1 -1
- package/out/handlers/{sync-settings-save.js → integration/sync-settings-save.js} +3 -3
- package/out/handlers/{sync-settings.d.ts → integration/sync-settings.d.ts} +1 -1
- package/out/handlers/{sync-settings.js → integration/sync-settings.js} +2 -2
- package/out/handlers/{synced-files.d.ts → integration/synced-files.d.ts} +1 -1
- package/out/handlers/{synced-files.js → integration/synced-files.js} +2 -2
- package/out/index.d.ts +1 -1
- package/out/index.js +21 -21
- package/out/static/js/form.js +14 -14
- package/out/util/api/api.d.ts +1 -1
- package/out/util/api/api.js +13 -13
- package/out/util/axios.d.ts +10 -0
- package/out/util/axios.js +42 -0
- package/out/util/connection.d.ts +1 -1
- package/out/util/connection.js +148 -6
- package/out/util/cron.d.ts +1 -1
- package/out/util/cron.js +6 -21
- package/package.json +5 -5
package/.release-it.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"git": {
|
|
3
|
+
"push": true,
|
|
4
|
+
"commit": true,
|
|
5
|
+
"commitMessage": "chore: version ${version} [skip ci]",
|
|
6
|
+
"requireBranch": "master",
|
|
7
|
+
"tag": true
|
|
8
|
+
},
|
|
9
|
+
"github": {
|
|
10
|
+
"release": true,
|
|
11
|
+
"autoGenerate": true,
|
|
12
|
+
"releaseName": "${version}"
|
|
13
|
+
},
|
|
14
|
+
"npm": {
|
|
15
|
+
"publish": false
|
|
16
|
+
}
|
|
17
|
+
}
|
package/CONTRIBUTING.md
CHANGED
|
@@ -65,6 +65,9 @@ Before sending your pull requests, make sure you followed the list below:
|
|
|
65
65
|
- Ensure that there are unit tests for your code.
|
|
66
66
|
- Run unit tests.
|
|
67
67
|
|
|
68
|
+
> **Note**
|
|
69
|
+
> This project uses the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification for commit messages and PR titles.
|
|
70
|
+
|
|
68
71
|
##### Contributing to the docs
|
|
69
72
|
|
|
70
73
|
First of all, you need to install Python (v3). Then install dependencies:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,7 +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
|
-
const util_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
13
|
function handle(config, integration) {
|
|
14
14
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
const fileId = Number(req.params.fileId || req.body.fileId);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const defaults_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const defaults_1 = require("../../util/defaults");
|
|
14
14
|
function handle(config, integration) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
(0, util_1.log)('Loading crowdin files', config.logger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config } from '
|
|
3
|
+
import { Config } from '../../models';
|
|
4
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,7 +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
|
-
const util_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
13
|
function handle(config) {
|
|
14
14
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
const projectId = req.crowdinContext.jwtPayload.context.project_id;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const defaults_1 = require("
|
|
14
|
-
const synced_files_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const defaults_1 = require("../../util/defaults");
|
|
14
|
+
const synced_files_1 = require("../../util/synced-files");
|
|
15
15
|
function handle(config, integration) {
|
|
16
16
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
var _a, _b, _c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
|
-
import { Config, IntegrationLogic } from '../models';
|
|
3
2
|
import { Request, Response } from 'express';
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
export default function handle(config: Config, integration: IntegrationLogic): (req: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const models_1 = require("
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const file_snapshot_1 = require("
|
|
17
|
-
const
|
|
12
|
+
const models_1 = require("../../models");
|
|
13
|
+
const storage_1 = require("../../storage");
|
|
14
|
+
const util_1 = require("../../util");
|
|
15
|
+
const cron_1 = require("../../util/cron");
|
|
16
|
+
const file_snapshot_1 = require("../../util/file-snapshot");
|
|
17
|
+
const webhooks_1 = require("../../util/webhooks");
|
|
18
18
|
function handle(config, integration) {
|
|
19
19
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
var _a, _b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,7 +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
|
-
const util_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
13
|
function handle(config, integration) {
|
|
14
14
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
const { parent_id: parentId, search, page } = req.query;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const storage_1 = require("
|
|
13
|
-
const util_1 = require("
|
|
12
|
+
const storage_1 = require("../../storage");
|
|
13
|
+
const util_1 = require("../../util");
|
|
14
14
|
function handle(config, integration) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
(0, util_1.log)('Received integration login request', config.logger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,10 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const storage_1 = require("
|
|
13
|
-
const util_1 = require("
|
|
14
|
-
const connection_1 = require("
|
|
15
|
-
const webhooks_1 = require("
|
|
12
|
+
const storage_1 = require("../../storage");
|
|
13
|
+
const util_1 = require("../../util");
|
|
14
|
+
const connection_1 = require("../../util/connection");
|
|
15
|
+
const webhooks_1 = require("../../util/webhooks");
|
|
16
16
|
function handle(config, integration) {
|
|
17
17
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
(0, util_1.log)('Received integration logout request', config.logger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const defaults_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const defaults_1 = require("../../util/defaults");
|
|
14
14
|
function handle(config, integration) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
|
-
import { Config, IntegrationLogic } from '../models';
|
|
3
2
|
import { Request, Response } from 'express';
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
export default function handle(config: Config, integration: IntegrationLogic): (req: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const models_1 = require("
|
|
13
|
-
const util_1 = require("
|
|
14
|
-
const webhooks_1 = require("
|
|
12
|
+
const models_1 = require("../../models");
|
|
13
|
+
const util_1 = require("../../util");
|
|
14
|
+
const webhooks_1 = require("../../util/webhooks");
|
|
15
15
|
function handle(config, integration) {
|
|
16
16
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
var _a, _b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const connection_1 = require("
|
|
14
|
-
const defaults_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const connection_1 = require("../../util/connection");
|
|
14
|
+
const defaults_1 = require("../../util/defaults");
|
|
15
15
|
function handle(config, integration) {
|
|
16
16
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
export default function handle(config: Config, integration: IntegrationLogic): (req: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const axios_1 = __importDefault(require("axios"));
|
|
16
|
-
const util_1 = require("
|
|
17
|
-
const defaults_1 = require("
|
|
16
|
+
const util_1 = require("../../util");
|
|
17
|
+
const defaults_1 = require("../../util/defaults");
|
|
18
18
|
function handle(config, integration) {
|
|
19
19
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const defaults_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const defaults_1 = require("../../util/defaults");
|
|
14
14
|
function handle(config, integration) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
(0, util_1.log)('Received OAuth login url request', config.logger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const models_1 = require("
|
|
13
|
-
const storage_1 = require("
|
|
14
|
-
const util_1 = require("
|
|
15
|
-
const
|
|
16
|
-
const file_snapshot_1 = require("
|
|
17
|
-
const
|
|
12
|
+
const models_1 = require("../../models");
|
|
13
|
+
const storage_1 = require("../../storage");
|
|
14
|
+
const util_1 = require("../../util");
|
|
15
|
+
const cron_1 = require("../../util/cron");
|
|
16
|
+
const file_snapshot_1 = require("../../util/file-snapshot");
|
|
17
|
+
const webhooks_1 = require("../../util/webhooks");
|
|
18
18
|
function handle(config, integration) {
|
|
19
19
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const appSettings = req.body.config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config } from '
|
|
3
|
+
import { Config } from '../../models';
|
|
4
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,7 +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
|
-
const util_1 = require("
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
13
|
function handle(config) {
|
|
14
14
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
let settings = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config, IntegrationLogic } from '
|
|
3
|
+
import { Config, IntegrationLogic } from '../../models';
|
|
4
4
|
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const util_1 = require("
|
|
13
|
-
const
|
|
14
|
-
const
|
|
12
|
+
const util_1 = require("../../util");
|
|
13
|
+
const cron_1 = require("../../util/cron");
|
|
14
|
+
const file_snapshot_1 = require("../../util/file-snapshot");
|
|
15
15
|
function handle(config, integration) {
|
|
16
16
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config } from '
|
|
3
|
+
import { Config } from '../../models';
|
|
4
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const storage_1 = require("
|
|
13
|
-
const util_1 = require("
|
|
12
|
+
const storage_1 = require("../../storage");
|
|
13
|
+
const util_1 = require("../../util");
|
|
14
14
|
function handle(config) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
let files = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import { Response } from 'express';
|
|
3
|
-
import { Config } from '
|
|
3
|
+
import { Config } from '../../models';
|
|
4
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>>, res: Response<any, Record<string, any>>, next: Function) => void;
|
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const storage_1 = require("
|
|
13
|
-
const util_1 = require("
|
|
12
|
+
const storage_1 = require("../../storage");
|
|
13
|
+
const util_1 = require("../../util");
|
|
14
14
|
function handle(config) {
|
|
15
15
|
return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
let fileIds = [];
|
package/out/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Express } from 'express';
|
|
2
|
-
import express from './util/terminus-express';
|
|
3
2
|
import { ClientConfig, Config, CrowdinAppUtilities } from './models';
|
|
3
|
+
import express from './util/terminus-express';
|
|
4
4
|
export { Scope } from './models';
|
|
5
5
|
export { express };
|
|
6
6
|
export declare function addCrowdinEndpoints(app: Express, clientConfig: Config | ClientConfig): CrowdinAppUtilities;
|
package/out/index.js
CHANGED
|
@@ -39,13 +39,6 @@ exports.createApp = exports.addCrowdinEndpoints = exports.express = exports.Scop
|
|
|
39
39
|
const express_handlebars_1 = __importDefault(require("express-handlebars"));
|
|
40
40
|
const cron = __importStar(require("node-cron"));
|
|
41
41
|
const path_1 = require("path");
|
|
42
|
-
const terminus_express_1 = __importDefault(require("./util/terminus-express"));
|
|
43
|
-
exports.express = terminus_express_1.default;
|
|
44
|
-
const crowdin_file_progress_1 = __importDefault(require("./handlers/crowdin-file-progress"));
|
|
45
|
-
const crowdin_files_1 = __importDefault(require("./handlers/crowdin-files"));
|
|
46
|
-
const crowdin_project_1 = __importDefault(require("./handlers/crowdin-project"));
|
|
47
|
-
const crowdin_update_1 = __importDefault(require("./handlers/crowdin-update"));
|
|
48
|
-
const crowdin_webhook_1 = __importDefault(require("./handlers/crowdin-webhook"));
|
|
49
42
|
const translate_1 = __importDefault(require("./handlers/custom-mt/translate"));
|
|
50
43
|
const custom_file_format_1 = __importDefault(require("./handlers/file-processing/custom-file-format"));
|
|
51
44
|
const file_download_1 = __importDefault(require("./handlers/file-processing/file-download"));
|
|
@@ -53,21 +46,26 @@ const pre_post_process_1 = __importDefault(require("./handlers/file-processing/p
|
|
|
53
46
|
const form_data_display_1 = __importDefault(require("./handlers/form-data-display"));
|
|
54
47
|
const form_data_save_1 = __importDefault(require("./handlers/form-data-save"));
|
|
55
48
|
const install_1 = __importDefault(require("./handlers/install"));
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
49
|
+
const crowdin_file_progress_1 = __importDefault(require("./handlers/integration/crowdin-file-progress"));
|
|
50
|
+
const crowdin_files_1 = __importDefault(require("./handlers/integration/crowdin-files"));
|
|
51
|
+
const crowdin_project_1 = __importDefault(require("./handlers/integration/crowdin-project"));
|
|
52
|
+
const crowdin_update_1 = __importDefault(require("./handlers/integration/crowdin-update"));
|
|
53
|
+
const crowdin_webhook_1 = __importDefault(require("./handlers/integration/crowdin-webhook"));
|
|
54
|
+
const integration_data_1 = __importDefault(require("./handlers/integration/integration-data"));
|
|
55
|
+
const integration_login_1 = __importDefault(require("./handlers/integration/integration-login"));
|
|
56
|
+
const integration_logout_1 = __importDefault(require("./handlers/integration/integration-logout"));
|
|
57
|
+
const integration_update_1 = __importDefault(require("./handlers/integration/integration-update"));
|
|
58
|
+
const integration_webhook_1 = __importDefault(require("./handlers/integration/integration-webhook"));
|
|
59
|
+
const main_1 = __importDefault(require("./handlers/integration/main"));
|
|
60
|
+
const oauth_login_1 = __importDefault(require("./handlers/integration/oauth-login"));
|
|
61
|
+
const oauth_url_1 = __importDefault(require("./handlers/integration/oauth-url"));
|
|
62
|
+
const settings_save_1 = __importDefault(require("./handlers/integration/settings-save"));
|
|
63
|
+
const subscription_info_1 = __importDefault(require("./handlers/integration/subscription-info"));
|
|
64
|
+
const sync_settings_1 = __importDefault(require("./handlers/integration/sync-settings"));
|
|
65
|
+
const sync_settings_save_1 = __importDefault(require("./handlers/integration/sync-settings-save"));
|
|
66
|
+
const synced_files_1 = __importDefault(require("./handlers/integration/synced-files"));
|
|
62
67
|
const manifest_1 = __importDefault(require("./handlers/manifest"));
|
|
63
|
-
const oauth_login_1 = __importDefault(require("./handlers/oauth-login"));
|
|
64
|
-
const oauth_url_1 = __importDefault(require("./handlers/oauth-url"));
|
|
65
|
-
const settings_save_1 = __importDefault(require("./handlers/settings-save"));
|
|
66
|
-
const subscription_info_1 = __importDefault(require("./handlers/subscription-info"));
|
|
67
68
|
const subscription_paid_1 = __importDefault(require("./handlers/subscription-paid"));
|
|
68
|
-
const sync_settings_1 = __importDefault(require("./handlers/sync-settings"));
|
|
69
|
-
const sync_settings_save_1 = __importDefault(require("./handlers/sync-settings-save"));
|
|
70
|
-
const synced_files_1 = __importDefault(require("./handlers/synced-files"));
|
|
71
69
|
const uninstall_1 = __importDefault(require("./handlers/uninstall"));
|
|
72
70
|
const crowdin_client_1 = __importStar(require("./middlewares/crowdin-client"));
|
|
73
71
|
const integration_credentials_1 = __importDefault(require("./middlewares/integration-credentials"));
|
|
@@ -77,11 +75,13 @@ const ui_module_1 = __importDefault(require("./middlewares/ui-module"));
|
|
|
77
75
|
const models_1 = require("./models");
|
|
78
76
|
const storage = __importStar(require("./storage"));
|
|
79
77
|
const util_1 = require("./util");
|
|
78
|
+
const api_1 = require("./util/api/api");
|
|
80
79
|
const connection_1 = require("./util/connection");
|
|
81
80
|
const cron_1 = require("./util/cron");
|
|
82
81
|
const defaults_1 = require("./util/defaults");
|
|
82
|
+
const terminus_express_1 = __importDefault(require("./util/terminus-express"));
|
|
83
|
+
exports.express = terminus_express_1.default;
|
|
83
84
|
const webhooks_1 = require("./util/webhooks");
|
|
84
|
-
const api_1 = require("./util/api/api");
|
|
85
85
|
var models_2 = require("./models");
|
|
86
86
|
Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return models_2.Scope; } });
|
|
87
87
|
function addCrowdinEndpoints(app, clientConfig) {
|