ide-assi 0.11.0 → 0.13.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.
@@ -193260,6 +193260,7 @@ window.jQuery = window.$ = $$1;
193260
193260
  class IdeAi
193261
193261
  {
193262
193262
  #API_URL = "http://localhost:8091";
193263
+ #SCHEMA = "booxtory_250131";
193263
193264
 
193264
193265
  constructor() {
193265
193266
  }
@@ -193279,16 +193280,15 @@ class IdeAi
193279
193280
  };
193280
193281
 
193281
193282
  #getTableInfo = async (question) => {
193282
- const response = await fetch(`${this.#API_URL}/api/meta/selectTableList`, {
193283
+ const response = await fetch("/api/meta/selectTableList", {
193283
193284
  method: "POST",
193284
193285
  headers: { "Content-Type": "application/json" },
193285
193286
  body: JSON.stringify({
193286
- schema: "aidemo",
193287
+ schema: this.#SCHEMA,
193287
193288
  })
193288
193289
  });
193289
193290
 
193290
- console.log(response);
193291
- console.log(await response.json());
193291
+ return await response.json();
193292
193292
  };
193293
193293
 
193294
193294
 
@@ -193301,11 +193301,11 @@ class IdeAi
193301
193301
  */
193302
193302
  generateSource = async (question) => {
193303
193303
 
193304
- const menuInfo = this.#getMenuInfo();
193305
- const tableInfo = await this.#getTableInfo();
193304
+ const menus = this.#getMenuInfo();
193305
+ const tables = await this.#getTableInfo();
193306
193306
 
193307
- console.log(menuInfo);
193308
- console.log(tableInfo);
193307
+ console.log(menus);
193308
+ console.log(tables);
193309
193309
  };
193310
193310
  }
193311
193311
 
@@ -193256,6 +193256,7 @@ window.jQuery = window.$ = $$1;
193256
193256
  class IdeAi
193257
193257
  {
193258
193258
  #API_URL = "http://localhost:8091";
193259
+ #SCHEMA = "booxtory_250131";
193259
193260
 
193260
193261
  constructor() {
193261
193262
  }
@@ -193275,16 +193276,15 @@ class IdeAi
193275
193276
  };
193276
193277
 
193277
193278
  #getTableInfo = async (question) => {
193278
- const response = await fetch(`${this.#API_URL}/api/meta/selectTableList`, {
193279
+ const response = await fetch("/api/meta/selectTableList", {
193279
193280
  method: "POST",
193280
193281
  headers: { "Content-Type": "application/json" },
193281
193282
  body: JSON.stringify({
193282
- schema: "aidemo",
193283
+ schema: this.#SCHEMA,
193283
193284
  })
193284
193285
  });
193285
193286
 
193286
- console.log(response);
193287
- console.log(await response.json());
193287
+ return await response.json();
193288
193288
  };
193289
193289
 
193290
193290
 
@@ -193297,11 +193297,11 @@ class IdeAi
193297
193297
  */
193298
193298
  generateSource = async (question) => {
193299
193299
 
193300
- const menuInfo = this.#getMenuInfo();
193301
- const tableInfo = await this.#getTableInfo();
193300
+ const menus = this.#getMenuInfo();
193301
+ const tables = await this.#getTableInfo();
193302
193302
 
193303
- console.log(menuInfo);
193304
- console.log(tableInfo);
193303
+ console.log(menus);
193304
+ console.log(tables);
193305
193305
  };
193306
193306
  }
193307
193307
 
@@ -3,6 +3,7 @@ import ninegrid from "ninegrid2";
3
3
  export class IdeAi
4
4
  {
5
5
  #API_URL = "http://localhost:8091";
6
+ #SCHEMA = "booxtory_250131";
6
7
 
7
8
  constructor() {
8
9
  }
@@ -22,16 +23,15 @@ export class IdeAi
22
23
  };
23
24
 
24
25
  #getTableInfo = async (question) => {
25
- const response = await fetch(`${this.#API_URL}/api/meta/selectTableList`, {
26
+ const response = await fetch("/api/meta/selectTableList", {
26
27
  method: "POST",
27
28
  headers: { "Content-Type": "application/json" },
28
29
  body: JSON.stringify({
29
- schema: "aidemo",
30
+ schema: this.#SCHEMA,
30
31
  })
31
32
  });
32
33
 
33
- console.log(response);
34
- console.log(await response.json());
34
+ return await response.json();
35
35
  };
36
36
 
37
37
 
@@ -44,11 +44,11 @@ export class IdeAi
44
44
  */
45
45
  generateSource = async (question) => {
46
46
 
47
- const menuInfo = this.#getMenuInfo();
48
- const tableInfo = await this.#getTableInfo();
47
+ const menus = this.#getMenuInfo();
48
+ const tables = await this.#getTableInfo();
49
49
 
50
- console.log(menuInfo);
51
- console.log(tableInfo);
50
+ console.log(menus);
51
+ console.log(tables);
52
52
  };
53
53
  }
54
54
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.13.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -3,6 +3,7 @@ import ninegrid from "ninegrid2";
3
3
  export class IdeAi
4
4
  {
5
5
  #API_URL = "http://localhost:8091";
6
+ #SCHEMA = "booxtory_250131";
6
7
 
7
8
  constructor() {
8
9
  }
@@ -22,16 +23,15 @@ export class IdeAi
22
23
  };
23
24
 
24
25
  #getTableInfo = async (question) => {
25
- const response = await fetch(`${this.#API_URL}/api/meta/selectTableList`, {
26
+ const response = await fetch("/api/meta/selectTableList", {
26
27
  method: "POST",
27
28
  headers: { "Content-Type": "application/json" },
28
29
  body: JSON.stringify({
29
- schema: "aidemo",
30
+ schema: this.#SCHEMA,
30
31
  })
31
32
  });
32
33
 
33
- console.log(response);
34
- console.log(await response.json());
34
+ return await response.json();
35
35
  };
36
36
 
37
37
 
@@ -44,11 +44,11 @@ export class IdeAi
44
44
  */
45
45
  generateSource = async (question) => {
46
46
 
47
- const menuInfo = this.#getMenuInfo();
48
- const tableInfo = await this.#getTableInfo();
47
+ const menus = this.#getMenuInfo();
48
+ const tables = await this.#getTableInfo();
49
49
 
50
- console.log(menuInfo);
51
- console.log(tableInfo);
50
+ console.log(menus);
51
+ console.log(tables);
52
52
  };
53
53
  }
54
54