ide-assi 0.44.0 → 0.46.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.
@@ -193349,7 +193349,7 @@ class IdeAi
193349
193349
  method: "POST",
193350
193350
  headers: { "Content-Type": "application/json" },
193351
193351
  body: JSON.stringify({
193352
- packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
193352
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service).replace(".service", ""),
193353
193353
  userPrompt: userPrompt,
193354
193354
  url: res.menu.url,
193355
193355
  tables: columnInfo.list,
@@ -193387,6 +193387,15 @@ class IdeAi
193387
193387
  })
193388
193388
  });
193389
193389
 
193390
+ await fetch(`/api/source/generateJsFile`, {
193391
+ method: "POST",
193392
+ headers: { "Content-Type": "application/json" },
193393
+ body: JSON.stringify({
193394
+ fileNm: res.js + "x",
193395
+ contents: source.js,
193396
+ })
193397
+ });
193398
+
193390
193399
  return await response4.json();
193391
193400
  }
193392
193401
 
@@ -193345,7 +193345,7 @@ class IdeAi
193345
193345
  method: "POST",
193346
193346
  headers: { "Content-Type": "application/json" },
193347
193347
  body: JSON.stringify({
193348
- packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
193348
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service).replace(".service", ""),
193349
193349
  userPrompt: userPrompt,
193350
193350
  url: res.menu.url,
193351
193351
  tables: columnInfo.list,
@@ -193383,6 +193383,15 @@ class IdeAi
193383
193383
  })
193384
193384
  });
193385
193385
 
193386
+ await fetch(`/api/source/generateJsFile`, {
193387
+ method: "POST",
193388
+ headers: { "Content-Type": "application/json" },
193389
+ body: JSON.stringify({
193390
+ fileNm: res.js + "x",
193391
+ contents: source.js,
193392
+ })
193393
+ });
193394
+
193386
193395
  return await response4.json();
193387
193396
  }
193388
193397
 
@@ -92,7 +92,7 @@ export class IdeAi
92
92
  method: "POST",
93
93
  headers: { "Content-Type": "application/json" },
94
94
  body: JSON.stringify({
95
- packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
95
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service).replace(".service", ""),
96
96
  userPrompt: userPrompt,
97
97
  url: res.menu.url,
98
98
  tables: columnInfo.list,
@@ -130,6 +130,15 @@ export class IdeAi
130
130
  })
131
131
  });
132
132
 
133
+ const response6 = await fetch(`/api/source/generateJsFile`, {
134
+ method: "POST",
135
+ headers: { "Content-Type": "application/json" },
136
+ body: JSON.stringify({
137
+ fileNm: res.js + "x",
138
+ contents: source.js,
139
+ })
140
+ });
141
+
133
142
  return await response4.json();
134
143
  }
135
144
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.44.0",
4
+ "version": "0.46.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -92,7 +92,7 @@ export class IdeAi
92
92
  method: "POST",
93
93
  headers: { "Content-Type": "application/json" },
94
94
  body: JSON.stringify({
95
- packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
95
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service).replace(".service", ""),
96
96
  userPrompt: userPrompt,
97
97
  url: res.menu.url,
98
98
  tables: columnInfo.list,
@@ -130,6 +130,15 @@ export class IdeAi
130
130
  })
131
131
  });
132
132
 
133
+ const response6 = await fetch(`/api/source/generateJsFile`, {
134
+ method: "POST",
135
+ headers: { "Content-Type": "application/json" },
136
+ body: JSON.stringify({
137
+ fileNm: res.js + "x",
138
+ contents: source.js,
139
+ })
140
+ });
141
+
133
142
  return await response4.json();
134
143
  }
135
144