@crowdin/app-project-module 0.78.0 → 0.78.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/storage/mysql.js +8 -8
- package/out/storage/postgre.js +9 -9
- package/package.json +1 -1
package/out/storage/mysql.js
CHANGED
|
@@ -572,8 +572,8 @@ class MySQLStorage {
|
|
|
572
572
|
yield this.dbPromise;
|
|
573
573
|
return this.executeQuery((connection) => __awaiter(this, void 0, void 0, function* () {
|
|
574
574
|
const [rows] = yield connection.execute(`
|
|
575
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
576
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
575
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
576
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
577
577
|
FROM job
|
|
578
578
|
WHERE id = ?
|
|
579
579
|
`, [id]);
|
|
@@ -586,8 +586,8 @@ class MySQLStorage {
|
|
|
586
586
|
yield this.dbPromise;
|
|
587
587
|
return this.executeQuery((connection) => __awaiter(this, void 0, void 0, function* () {
|
|
588
588
|
const [rows] = yield connection.execute(`
|
|
589
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
590
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
589
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
590
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
591
591
|
FROM job
|
|
592
592
|
WHERE integration_id = ? AND crowdin_id = ? AND finished_at is NULL
|
|
593
593
|
`, [integrationId, crowdinId]);
|
|
@@ -606,8 +606,8 @@ class MySQLStorage {
|
|
|
606
606
|
yield this.dbPromise;
|
|
607
607
|
return this.executeQuery((connection) => __awaiter(this, void 0, void 0, function* () {
|
|
608
608
|
const [rows] = yield connection.execute(`
|
|
609
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
610
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
609
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
610
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
611
611
|
FROM job
|
|
612
612
|
WHERE status IN (?, ?) AND finished_at is NULL
|
|
613
613
|
`, [types_1.JobStatus.IN_PROGRESS, types_1.JobStatus.CREATED]);
|
|
@@ -629,7 +629,7 @@ class MySQLStorage {
|
|
|
629
629
|
yield this.dbPromise;
|
|
630
630
|
return this.executeQuery((connection) => __awaiter(this, void 0, void 0, function* () {
|
|
631
631
|
const [rows] = yield connection.execute(`
|
|
632
|
-
SELECT integration_id as integrationId, crowdin_id as crowdinId, file_id as fileId, language_id as languageId, etag
|
|
632
|
+
SELECT integration_id as "integrationId", crowdin_id as "crowdinId", file_id as "fileId", language_id as "languageId", etag
|
|
633
633
|
FROM translation_file_cache
|
|
634
634
|
WHERE integration_id = ? AND crowdin_id = ? AND file_id = ?
|
|
635
635
|
`, [integrationId, crowdinId, fileId]);
|
|
@@ -642,7 +642,7 @@ class MySQLStorage {
|
|
|
642
642
|
yield this.dbPromise;
|
|
643
643
|
return this.executeQuery((connection) => __awaiter(this, void 0, void 0, function* () {
|
|
644
644
|
const [rows] = yield connection.execute(`
|
|
645
|
-
SELECT integration_id as integrationId, crowdin_id as
|
|
645
|
+
SELECT integration_id as "integrationId", crowdin_id as "crowdinId", file_id as "fileId", language_id as "languageId", etag
|
|
646
646
|
FROM translation_file_cache
|
|
647
647
|
WHERE integration_id = ? AND crowdin_id = ? AND file_id = ? AND language_id = ?
|
|
648
648
|
`, [integrationId, crowdinId, fileId, languageId]);
|
package/out/storage/postgre.js
CHANGED
|
@@ -624,8 +624,8 @@ class PostgreStorage {
|
|
|
624
624
|
yield this.dbPromise;
|
|
625
625
|
return this.executeQuery((client) => __awaiter(this, void 0, void 0, function* () {
|
|
626
626
|
const res = yield client.query(`
|
|
627
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
628
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
627
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
628
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
629
629
|
FROM job
|
|
630
630
|
WHERE id = $1
|
|
631
631
|
`, [id]);
|
|
@@ -638,8 +638,8 @@ class PostgreStorage {
|
|
|
638
638
|
yield this.dbPromise;
|
|
639
639
|
return this.executeQuery((client) => __awaiter(this, void 0, void 0, function* () {
|
|
640
640
|
const res = yield client.query(`
|
|
641
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
642
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
641
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
642
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
643
643
|
FROM job
|
|
644
644
|
WHERE integration_id = $1 AND crowdin_id = $2 AND finished_at is NULL
|
|
645
645
|
`, [integrationId, crowdinId]);
|
|
@@ -658,8 +658,8 @@ class PostgreStorage {
|
|
|
658
658
|
yield this.dbPromise;
|
|
659
659
|
return this.executeQuery((client) => __awaiter(this, void 0, void 0, function* () {
|
|
660
660
|
const res = yield client.query(`
|
|
661
|
-
SELECT id, integration_id as integrationId, crowdin_id as crowdinId, type, payload, progress, status,
|
|
662
|
-
title, info, data, attempt, created_at as createdAt, updated_at as updatedAt, finished_at as finishedAt
|
|
661
|
+
SELECT id, integration_id as "integrationId", crowdin_id as "crowdinId", type, payload, progress, status,
|
|
662
|
+
title, info, data, attempt, created_at as "createdAt", updated_at as "updatedAt", finished_at as "finishedAt"
|
|
663
663
|
FROM job
|
|
664
664
|
WHERE status IN ($1, $2) AND finished_at is NULL
|
|
665
665
|
`, [types_2.JobStatus.IN_PROGRESS, types_2.JobStatus.CREATED]);
|
|
@@ -673,7 +673,7 @@ class PostgreStorage {
|
|
|
673
673
|
yield this.executeQuery((client) => client.query(`
|
|
674
674
|
INSERT
|
|
675
675
|
INTO translation_file_cache(integration_id, crowdin_id, file_id, language_id, etag)
|
|
676
|
-
VALUES ($1, $2, $3, $4, $
|
|
676
|
+
VALUES ($1, $2, $3, $4, $5)
|
|
677
677
|
`, [integrationId, crowdinId, fileId, languageId, etag]));
|
|
678
678
|
});
|
|
679
679
|
}
|
|
@@ -682,7 +682,7 @@ class PostgreStorage {
|
|
|
682
682
|
yield this.dbPromise;
|
|
683
683
|
return this.executeQuery((client) => __awaiter(this, void 0, void 0, function* () {
|
|
684
684
|
const res = yield client.query(`
|
|
685
|
-
SELECT integration_id as integrationId, crowdin_id as crowdinId, file_id as fileId, language_id as languageId, etag
|
|
685
|
+
SELECT integration_id as "integrationId", crowdin_id as "crowdinId", file_id as "fileId", language_id as "languageId", etag
|
|
686
686
|
FROM translation_file_cache
|
|
687
687
|
WHERE integration_id = $1 AND crowdin_id = $2 AND file_id = $3
|
|
688
688
|
`, [integrationId, crowdinId, fileId]);
|
|
@@ -695,7 +695,7 @@ class PostgreStorage {
|
|
|
695
695
|
yield this.dbPromise;
|
|
696
696
|
return this.executeQuery((client) => __awaiter(this, void 0, void 0, function* () {
|
|
697
697
|
const res = yield client.query(`
|
|
698
|
-
SELECT integration_id as integrationId, crowdin_id as crowdinId, file_id as fileId, language_id as languageId
|
|
698
|
+
SELECT integration_id as "integrationId", crowdin_id as "crowdinId", file_id as "fileId", language_id as "languageId", etag
|
|
699
699
|
FROM translation_file_cache
|
|
700
700
|
WHERE integration_id = $1 AND crowdin_id = $2 AND file_id = $3 AND language_id = $4
|
|
701
701
|
`, [integrationId, crowdinId, fileId, languageId]);
|
package/package.json
CHANGED