ide-assi 0.12.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,11 +193280,11 @@ 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: "booxtory_250131",
193287
+ schema: this.#SCHEMA,
193287
193288
  })
193288
193289
  });
193289
193290
 
@@ -193300,11 +193301,11 @@ class IdeAi
193300
193301
  */
193301
193302
  generateSource = async (question) => {
193302
193303
 
193303
- const menuInfo = this.#getMenuInfo();
193304
- const tableInfo = await this.#getTableInfo();
193304
+ const menus = this.#getMenuInfo();
193305
+ const tables = await this.#getTableInfo();
193305
193306
 
193306
- console.log(menuInfo);
193307
- console.log(tableInfo);
193307
+ console.log(menus);
193308
+ console.log(tables);
193308
193309
  };
193309
193310
  }
193310
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,11 +193276,11 @@ 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: "booxtory_250131",
193283
+ schema: this.#SCHEMA,
193283
193284
  })
193284
193285
  });
193285
193286
 
@@ -193296,11 +193297,11 @@ class IdeAi
193296
193297
  */
193297
193298
  generateSource = async (question) => {
193298
193299
 
193299
- const menuInfo = this.#getMenuInfo();
193300
- const tableInfo = await this.#getTableInfo();
193300
+ const menus = this.#getMenuInfo();
193301
+ const tables = await this.#getTableInfo();
193301
193302
 
193302
- console.log(menuInfo);
193303
- console.log(tableInfo);
193303
+ console.log(menus);
193304
+ console.log(tables);
193304
193305
  };
193305
193306
  }
193306
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,11 +23,11 @@ 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: "booxtory_250131",
30
+ schema: this.#SCHEMA,
30
31
  })
31
32
  });
32
33
 
@@ -43,11 +44,11 @@ export class IdeAi
43
44
  */
44
45
  generateSource = async (question) => {
45
46
 
46
- const menuInfo = this.#getMenuInfo();
47
- const tableInfo = await this.#getTableInfo();
47
+ const menus = this.#getMenuInfo();
48
+ const tables = await this.#getTableInfo();
48
49
 
49
- console.log(menuInfo);
50
- console.log(tableInfo);
50
+ console.log(menus);
51
+ console.log(tables);
51
52
  };
52
53
  }
53
54
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.12.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,11 +23,11 @@ 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: "booxtory_250131",
30
+ schema: this.#SCHEMA,
30
31
  })
31
32
  });
32
33
 
@@ -43,11 +44,11 @@ export class IdeAi
43
44
  */
44
45
  generateSource = async (question) => {
45
46
 
46
- const menuInfo = this.#getMenuInfo();
47
- const tableInfo = await this.#getTableInfo();
47
+ const menus = this.#getMenuInfo();
48
+ const tables = await this.#getTableInfo();
48
49
 
49
- console.log(menuInfo);
50
- console.log(tableInfo);
50
+ console.log(menus);
51
+ console.log(tables);
51
52
  };
52
53
  }
53
54