ide-assi 0.29.0 → 0.31.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.
@@ -193291,12 +193291,13 @@ class IdeAi
193291
193291
  return await response.json();
193292
193292
  };
193293
193293
 
193294
- #getColumnInfo = async () => {
193294
+ #getColumnInfo = async (tables) => {
193295
193295
  const response = await fetch("/api/meta/selectColumnInfo", {
193296
193296
  method: "POST",
193297
193297
  headers: { "Content-Type": "application/json" },
193298
193298
  body: JSON.stringify({
193299
193299
  schema: this.#SCHEMA,
193300
+ tables: tables,
193300
193301
  })
193301
193302
  });
193302
193303
 
@@ -193334,6 +193335,12 @@ class IdeAi
193334
193335
  console.log(res);
193335
193336
 
193336
193337
  if (res.result == "1") {
193338
+
193339
+ const columnInfo = this.#getColumnInfo(res.table);
193340
+
193341
+ const r1 = await columnInfo.json();
193342
+ console.log(r1);
193343
+
193337
193344
  const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
193338
193345
  method: "POST",
193339
193346
  headers: { "Content-Type": "application/json" },
@@ -193287,12 +193287,13 @@ class IdeAi
193287
193287
  return await response.json();
193288
193288
  };
193289
193289
 
193290
- #getColumnInfo = async () => {
193290
+ #getColumnInfo = async (tables) => {
193291
193291
  const response = await fetch("/api/meta/selectColumnInfo", {
193292
193292
  method: "POST",
193293
193293
  headers: { "Content-Type": "application/json" },
193294
193294
  body: JSON.stringify({
193295
193295
  schema: this.#SCHEMA,
193296
+ tables: tables,
193296
193297
  })
193297
193298
  });
193298
193299
 
@@ -193330,6 +193331,12 @@ class IdeAi
193330
193331
  console.log(res);
193331
193332
 
193332
193333
  if (res.result == "1") {
193334
+
193335
+ const columnInfo = this.#getColumnInfo(res.table);
193336
+
193337
+ const r1 = await columnInfo.json();
193338
+ console.log(r1);
193339
+
193333
193340
  const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
193334
193341
  method: "POST",
193335
193342
  headers: { "Content-Type": "application/json" },
@@ -34,12 +34,13 @@ export class IdeAi
34
34
  return await response.json();
35
35
  };
36
36
 
37
- #getColumnInfo = async () => {
37
+ #getColumnInfo = async (tables) => {
38
38
  const response = await fetch("/api/meta/selectColumnInfo", {
39
39
  method: "POST",
40
40
  headers: { "Content-Type": "application/json" },
41
41
  body: JSON.stringify({
42
42
  schema: this.#SCHEMA,
43
+ tables: tables,
43
44
  })
44
45
  });
45
46
 
@@ -77,6 +78,12 @@ export class IdeAi
77
78
  console.log(res);
78
79
 
79
80
  if (res.result == "1") {
81
+
82
+ const columnInfo = this.#getColumnInfo(res.table);
83
+
84
+ const r1 = await columnInfo.json();
85
+ console.log(r1);
86
+
80
87
  const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
81
88
  method: "POST",
82
89
  headers: { "Content-Type": "application/json" },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.29.0",
4
+ "version": "0.31.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -34,12 +34,13 @@ export class IdeAi
34
34
  return await response.json();
35
35
  };
36
36
 
37
- #getColumnInfo = async () => {
37
+ #getColumnInfo = async (tables) => {
38
38
  const response = await fetch("/api/meta/selectColumnInfo", {
39
39
  method: "POST",
40
40
  headers: { "Content-Type": "application/json" },
41
41
  body: JSON.stringify({
42
42
  schema: this.#SCHEMA,
43
+ tables: tables,
43
44
  })
44
45
  });
45
46
 
@@ -77,6 +78,12 @@ export class IdeAi
77
78
  console.log(res);
78
79
 
79
80
  if (res.result == "1") {
81
+
82
+ const columnInfo = this.#getColumnInfo(res.table);
83
+
84
+ const r1 = await columnInfo.json();
85
+ console.log(r1);
86
+
80
87
  const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
81
88
  method: "POST",
82
89
  headers: { "Content-Type": "application/json" },