ide-assi 0.38.0 → 0.40.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.
@@ -193351,7 +193351,7 @@ class IdeAi
193351
193351
 
193352
193352
  const source = await response2.json();
193353
193353
 
193354
- const response3 = await fetch(`/api/files/generateMybatisFile`, {
193354
+ await fetch(`/api/source/generateMybatisFile`, {
193355
193355
  method: "POST",
193356
193356
  headers: { "Content-Type": "application/json" },
193357
193357
  body: JSON.stringify({
@@ -193362,7 +193362,16 @@ class IdeAi
193362
193362
  //console.log(response3);
193363
193363
  //console.log(await response3.json());
193364
193364
 
193365
- return await response3.json();
193365
+ const response4 = await fetch(`/api/source/generateJavaFile`, {
193366
+ method: "POST",
193367
+ headers: { "Content-Type": "application/json" },
193368
+ body: JSON.stringify({
193369
+ fileNm: res.service,
193370
+ contents: source.service,
193371
+ })
193372
+ });
193373
+
193374
+ return await response4.json();
193366
193375
  }
193367
193376
 
193368
193377
  return null;
@@ -193347,7 +193347,7 @@ class IdeAi
193347
193347
 
193348
193348
  const source = await response2.json();
193349
193349
 
193350
- const response3 = await fetch(`/api/files/generateMybatisFile`, {
193350
+ await fetch(`/api/source/generateMybatisFile`, {
193351
193351
  method: "POST",
193352
193352
  headers: { "Content-Type": "application/json" },
193353
193353
  body: JSON.stringify({
@@ -193358,7 +193358,16 @@ class IdeAi
193358
193358
  //console.log(response3);
193359
193359
  //console.log(await response3.json());
193360
193360
 
193361
- return await response3.json();
193361
+ const response4 = await fetch(`/api/source/generateJavaFile`, {
193362
+ method: "POST",
193363
+ headers: { "Content-Type": "application/json" },
193364
+ body: JSON.stringify({
193365
+ fileNm: res.service,
193366
+ contents: source.service,
193367
+ })
193368
+ });
193369
+
193370
+ return await response4.json();
193362
193371
  }
193363
193372
 
193364
193373
  return null;
@@ -94,7 +94,7 @@ export class IdeAi
94
94
 
95
95
  const source = await response2.json();
96
96
 
97
- const response3 = await fetch(`/api/files/generateMybatisFile`, {
97
+ const response3 = await fetch(`/api/source/generateMybatisFile`, {
98
98
  method: "POST",
99
99
  headers: { "Content-Type": "application/json" },
100
100
  body: JSON.stringify({
@@ -105,7 +105,16 @@ export class IdeAi
105
105
  //console.log(response3);
106
106
  //console.log(await response3.json());
107
107
 
108
- return await response3.json();
108
+ const response4 = await fetch(`/api/source/generateJavaFile`, {
109
+ method: "POST",
110
+ headers: { "Content-Type": "application/json" },
111
+ body: JSON.stringify({
112
+ fileNm: res.service,
113
+ contents: source.service,
114
+ })
115
+ });
116
+
117
+ return await response4.json();
109
118
  }
110
119
 
111
120
  return null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.38.0",
4
+ "version": "0.40.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -94,7 +94,7 @@ export class IdeAi
94
94
 
95
95
  const source = await response2.json();
96
96
 
97
- const response3 = await fetch(`/api/files/generateMybatisFile`, {
97
+ const response3 = await fetch(`/api/source/generateMybatisFile`, {
98
98
  method: "POST",
99
99
  headers: { "Content-Type": "application/json" },
100
100
  body: JSON.stringify({
@@ -105,7 +105,16 @@ export class IdeAi
105
105
  //console.log(response3);
106
106
  //console.log(await response3.json());
107
107
 
108
- return await response3.json();
108
+ const response4 = await fetch(`/api/source/generateJavaFile`, {
109
+ method: "POST",
110
+ headers: { "Content-Type": "application/json" },
111
+ body: JSON.stringify({
112
+ fileNm: res.service,
113
+ contents: source.service,
114
+ })
115
+ });
116
+
117
+ return await response4.json();
109
118
  }
110
119
 
111
120
  return null;