@adminforth/bulk-ai-flow 1.5.0 → 1.5.2

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/build.log CHANGED
@@ -11,5 +11,5 @@ custom/tsconfig.json
11
11
  custom/visionAction.vue
12
12
  custom/visionTable.vue
13
13
 
14
- sent 182,087 bytes received 134 bytes 364,442.00 bytes/sec
15
- total size is 181,552 speedup is 1.00
14
+ sent 182,050 bytes received 134 bytes 364,368.00 bytes/sec
15
+ total size is 181,515 speedup is 1.00
@@ -11,7 +11,6 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "@iconify-prerendered/vue-mdi": "^0.25.1718880438",
14
- "adminforth": "^2.4.0-next.112",
15
14
  "medium-zoom": "^1.1.0"
16
15
  }
17
16
  }
@@ -11,7 +11,6 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "@iconify-prerendered/vue-mdi": "^0.25.1718880438",
14
- "adminforth": "^2.4.0-next.112",
15
14
  "medium-zoom": "^1.1.0"
16
15
  }
17
16
  }
package/dist/index.js CHANGED
@@ -367,7 +367,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
367
367
  return { error: "Rate limit exceeded" };
368
368
  }
369
369
  const start = +new Date();
370
- const STUB_MODE = true;
370
+ const STUB_MODE = false;
371
371
  const record = yield this.adminforth.resource(this.resourceConfig.resourceId).get([Filters.EQ((_b = this.resourceConfig.columns.find(c => c.primaryKey)) === null || _b === void 0 ? void 0 : _b.name, Id)]);
372
372
  let attachmentFiles;
373
373
  if (!this.options.attachFiles) {
@@ -406,7 +406,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
406
406
  path: `/plugin/${this.pluginInstanceId}/initial_image_generate`,
407
407
  handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, headers }) {
408
408
  const selectedIds = body.selectedIds || [];
409
- const STUB_MODE = true;
409
+ const STUB_MODE = false;
410
410
  if (typeof (this.options.rateLimits.generateImages) === 'string') {
411
411
  if (this.checkRateLimit("generateImages", this.options.rateLimits.generateImages, headers)) {
412
412
  return { error: "Rate limit exceeded" };
package/index.ts CHANGED
@@ -415,7 +415,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
415
415
  return { error: "Rate limit exceeded" };
416
416
  }
417
417
  const start = +new Date();
418
- const STUB_MODE = true;
418
+ const STUB_MODE = false;
419
419
  const record = await this.adminforth.resource(this.resourceConfig.resourceId).get([Filters.EQ(this.resourceConfig.columns.find(c => c.primaryKey)?.name, Id)]);
420
420
  let attachmentFiles
421
421
  if(!this.options.attachFiles){
@@ -460,7 +460,7 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
460
460
  path: `/plugin/${this.pluginInstanceId}/initial_image_generate`,
461
461
  handler: async ({ body, headers }) => {
462
462
  const selectedIds = body.selectedIds || [];
463
- const STUB_MODE = true;
463
+ const STUB_MODE = false;
464
464
  if (typeof(this.options.rateLimits.generateImages) === 'string'){
465
465
  if (this.checkRateLimit("generateImages", this.options.rateLimits.generateImages, headers)) {
466
466
  return { error: "Rate limit exceeded" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/bulk-ai-flow",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,7 +21,6 @@
21
21
  "dependencies": {
22
22
  "@types/handlebars": "^4.0.40",
23
23
  "adminforth": "^2.4.0-next.112",
24
- "handlebars": "^4.7.8",
25
- "medium-zoom": "^1.1.0"
24
+ "handlebars": "^4.7.8"
26
25
  }
27
26
  }