@crowdin/app-project-module 0.81.0 → 0.82.0

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/types.d.ts CHANGED
@@ -18,6 +18,7 @@ import { AiTool, AiToolWidget } from './modules/ai-tools/types';
18
18
  import { ExternalQaCheckModule } from './modules/external-qa-check/types';
19
19
  import { Webhook } from './modules/webhooks/types';
20
20
  import { WorkflowStepTypeModule } from './modules/workflow-step-type/types';
21
+ import { AiRequestProcessorModule, AiStreamProcessorModule } from './modules/ai-request-processors/types';
21
22
  export interface ClientConfig extends ImagePath {
22
23
  /**
23
24
  * Authentication Crowdin App type: "authorization_code", "crowdin_app", "crowdin_agent". Default: "crowdin_app"
@@ -209,6 +210,22 @@ export interface ClientConfig extends ImagePath {
209
210
  * ai prompt provider module
210
211
  */
211
212
  aiPromptProvider?: AiPromptProviderModule & ImagePath;
213
+ /**
214
+ * ai request pre-compile processor module
215
+ */
216
+ aiRequestPreCompile?: AiRequestProcessorModule;
217
+ /**
218
+ * ai request post-compile processor module
219
+ */
220
+ aiRequestPostCompile?: AiRequestProcessorModule;
221
+ /**
222
+ * ai request pre-parse processor module
223
+ */
224
+ aiRequestPreParse?: AiStreamProcessorModule;
225
+ /**
226
+ * ai request post-parse processor module
227
+ */
228
+ aiRequestPostParse?: AiRequestProcessorModule;
212
229
  /**
213
230
  * AI tool_calls modules
214
231
  */
@@ -192,7 +192,9 @@ class AppModuleError extends Error {
192
192
  super(typeof error === 'string' ? error : error.message);
193
193
  this.isAxiosError = false;
194
194
  this.name = 'AppModuleError';
195
- this.stack = typeof error === 'string' ? this.stack : error.stack;
195
+ if (typeof error !== 'string' && error.stack) {
196
+ this.stack = error.stack;
197
+ }
196
198
  this.appData = data;
197
199
  if (typeof error !== 'string') {
198
200
  this.data = Object.assign({}, error);
@@ -1281,11 +1281,13 @@
1281
1281
 
1282
1282
  if (type === 'crowdin') {
1283
1283
  appComponent.setCrowdinScheduleSync(syncData, newFile, selectedFiles);
1284
+ appComponent.setCrowdinFilesHasSyncOption(true);
1284
1285
  const syncedFiles = await appComponent.getCrowdinScheduleSync(true);
1285
1286
  appComponent.setAttribute('is-crowdin-sync-settings-in-progress', true);
1286
1287
  updateSyncSettings(syncedFiles, 'schedule', 'crowdin');
1287
1288
  } else if (type === 'integration') {
1288
1289
  appComponent.setIntegrationScheduleSync(syncData, newFile, selectedFiles);
1290
+ appComponent.setIntegrationFilesHasSyncOption(true);
1289
1291
  const syncedFiles = await appComponent.getIntegrationScheduleSync(true);
1290
1292
  appComponent.setAttribute('is-integration-sync-settings-in-progress', true);
1291
1293
  {{#if integrationOneLevelFetching}}
@@ -1395,6 +1397,7 @@
1395
1397
  }
1396
1398
 
1397
1399
  appComponent.setIntegrationScheduleSync(e.detail);
1400
+ appComponent.setIntegrationFilesHasSyncOption(true);
1398
1401
  const syncedFiles = await appComponent.getIntegrationScheduleSync(true);
1399
1402
  {{else}}
1400
1403
  const syncedFiles = await appComponent.getIntegrationScheduleSync();
@@ -1423,6 +1426,7 @@
1423
1426
  }
1424
1427
 
1425
1428
  appComponent.setCrowdinScheduleSync(e.detail);
1429
+ appComponent.setCrowdinFilesHasSyncOption(true);
1426
1430
  const syncedFiles = await appComponent.getCrowdinScheduleSync(true);
1427
1431
  {{else}}
1428
1432
  const syncedFiles = await appComponent.getCrowdinScheduleSync();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.81.0",
3
+ "version": "0.82.0",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-sdk/client-s3": "^3.758.0",
23
23
  "@aws-sdk/s3-request-presigner": "^3.758.0",
24
- "@crowdin/crowdin-apps-functions": "^0.11.0",
24
+ "@crowdin/crowdin-apps-functions": "^0.12.0",
25
25
  "@crowdin/logs-formatter": "^2.1.7",
26
26
  "@godaddy/terminus": "^4.12.1",
27
27
  "@monaco-editor/react": "^4.7.0",
@@ -102,5 +102,5 @@
102
102
  "bugs": {
103
103
  "url": "https://github.com/crowdin/app-project-module/issues"
104
104
  },
105
- "homepage": "https://github.com/crowdin/app-project-module#readme"
105
+ "homepage": "https://crowdin.github.io/app-project-module"
106
106
  }