@crowdin/app-project-module 0.46.1 → 0.47.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.
|
@@ -81,11 +81,11 @@ function runJob({ config, integration, job, }) {
|
|
|
81
81
|
}
|
|
82
82
|
exports.runJob = runJob;
|
|
83
83
|
function filesCron({ config, integration, period, }) {
|
|
84
|
+
var _a;
|
|
84
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
86
|
(0, logger_1.log)(`Starting files cron job with period [${period}]`);
|
|
86
87
|
const syncSettingsList = yield (0, storage_1.getStorage)().getAllSyncSettingsByType('schedule');
|
|
87
|
-
|
|
88
|
-
var _a;
|
|
88
|
+
for (const syncSettings of syncSettingsList) {
|
|
89
89
|
let files = JSON.parse(syncSettings.files);
|
|
90
90
|
let newFiles = [];
|
|
91
91
|
const crowdinCredentials = yield (0, storage_1.getStorage)().getCrowdinCredentials(syncSettings.crowdinId);
|
|
@@ -264,7 +264,7 @@ function filesCron({ config, integration, period, }) {
|
|
|
264
264
|
}
|
|
265
265
|
(0, logger_1.log)(`updateCrowdin task for files cron job with period [${period}] for project ${projectId} completed`);
|
|
266
266
|
}
|
|
267
|
-
}
|
|
267
|
+
}
|
|
268
268
|
(0, logger_1.log)(`Files cron job with period [${period}] completed`);
|
|
269
269
|
});
|
|
270
270
|
}
|
|
@@ -195,15 +195,14 @@
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.error-detail-table tr td:first-child {
|
|
198
|
-
color: #263238;
|
|
199
198
|
font-weight: 500;
|
|
200
199
|
min-width: 200px;
|
|
201
200
|
vertical-align: top;
|
|
202
201
|
}
|
|
203
202
|
|
|
204
203
|
.error-detail-table tr td:last-child {
|
|
205
|
-
background: #f6f6f6;
|
|
206
|
-
color: rgba(38,50,56
|
|
204
|
+
background: var(--crowdin-primary-blue-gray, #f6f6f6);
|
|
205
|
+
color: var(--crowdin-body-color, rgba(38, 50, 56, 0.87));
|
|
207
206
|
word-break: break-all;
|
|
208
207
|
}
|
|
209
208
|
|
package/out/types.d.ts
CHANGED
|
@@ -213,10 +213,16 @@ export declare enum Scope {
|
|
|
213
213
|
TRANSLATION_STATUS = "project.status",
|
|
214
214
|
SOURCE_FILES_AND_STRINGS = "project.source",
|
|
215
215
|
WEBHOOKS = "project.webhook",
|
|
216
|
+
ORGANIZATION_WEBHOOKS = "webhook",
|
|
216
217
|
TRANSLATIONS = "project.translation",
|
|
217
218
|
SCREENSHOTS = "project.screenshot",
|
|
218
219
|
SECURITY_LOGS = "security-log",
|
|
219
|
-
VENDORS = "vendor"
|
|
220
|
+
VENDORS = "vendor",
|
|
221
|
+
FIELDS = "field",
|
|
222
|
+
AI = "ai",
|
|
223
|
+
AI_PROVIDERS = "ai.provider",
|
|
224
|
+
AI_PROMPTS = "ai.prompt",
|
|
225
|
+
AI_PROXIES = "ai.proxy"
|
|
220
226
|
}
|
|
221
227
|
export interface CrowdinClientRequest extends Request {
|
|
222
228
|
crowdinApiClient: Crowdin;
|
package/out/types.js
CHANGED
|
@@ -23,10 +23,16 @@ var Scope;
|
|
|
23
23
|
Scope["TRANSLATION_STATUS"] = "project.status";
|
|
24
24
|
Scope["SOURCE_FILES_AND_STRINGS"] = "project.source";
|
|
25
25
|
Scope["WEBHOOKS"] = "project.webhook";
|
|
26
|
+
Scope["ORGANIZATION_WEBHOOKS"] = "webhook";
|
|
26
27
|
Scope["TRANSLATIONS"] = "project.translation";
|
|
27
28
|
Scope["SCREENSHOTS"] = "project.screenshot";
|
|
28
29
|
Scope["SECURITY_LOGS"] = "security-log";
|
|
29
30
|
Scope["VENDORS"] = "vendor";
|
|
31
|
+
Scope["FIELDS"] = "field";
|
|
32
|
+
Scope["AI"] = "ai";
|
|
33
|
+
Scope["AI_PROVIDERS"] = "ai.provider";
|
|
34
|
+
Scope["AI_PROMPTS"] = "ai.prompt";
|
|
35
|
+
Scope["AI_PROXIES"] = "ai.proxy";
|
|
30
36
|
})(Scope = exports.Scope || (exports.Scope = {}));
|
|
31
37
|
var AccountType;
|
|
32
38
|
(function (AccountType) {
|
package/package.json
CHANGED