ide-assi 0.13.0 → 0.15.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.
@@ -193265,7 +193265,7 @@ class IdeAi
193265
193265
  constructor() {
193266
193266
  }
193267
193267
 
193268
- #getMenuInfo = (question) => {
193268
+ #getMenuInfo = () => {
193269
193269
  let arr = [];
193270
193270
 
193271
193271
  ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
@@ -193279,7 +193279,7 @@ class IdeAi
193279
193279
  return arr;
193280
193280
  };
193281
193281
 
193282
- #getTableInfo = async (question) => {
193282
+ #getTableInfo = async () => {
193283
193283
  const response = await fetch("/api/meta/selectTableList", {
193284
193284
  method: "POST",
193285
193285
  headers: { "Content-Type": "application/json" },
@@ -193291,6 +193291,14 @@ class IdeAi
193291
193291
  return await response.json();
193292
193292
  };
193293
193293
 
193294
+ #findMenu = async (question) => {
193295
+ const menus = this.#getMenuInfo();
193296
+ const tables = await this.#getTableInfo();
193297
+
193298
+ console.log(menus);
193299
+ console.log(tables);
193300
+ };
193301
+
193294
193302
 
193295
193303
  /**
193296
193304
  * 1. 소스 명칭 package 예) tmpl.population
@@ -193306,6 +193314,20 @@ class IdeAi
193306
193314
 
193307
193315
  console.log(menus);
193308
193316
  console.log(tables);
193317
+
193318
+ const response = await fetch(`${this.#API_URL}/ai/generateSource`, {
193319
+ method: "POST",
193320
+ headers: { "Content-Type": "application/json" },
193321
+ body: JSON.stringify({
193322
+ question: question,
193323
+ menus: menus,
193324
+ tables: tables,
193325
+ })
193326
+ });
193327
+
193328
+ //console.log(await response.json());
193329
+
193330
+ return await response.json();
193309
193331
  };
193310
193332
  }
193311
193333
 
@@ -193261,7 +193261,7 @@ class IdeAi
193261
193261
  constructor() {
193262
193262
  }
193263
193263
 
193264
- #getMenuInfo = (question) => {
193264
+ #getMenuInfo = () => {
193265
193265
  let arr = [];
193266
193266
 
193267
193267
  ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
@@ -193275,7 +193275,7 @@ class IdeAi
193275
193275
  return arr;
193276
193276
  };
193277
193277
 
193278
- #getTableInfo = async (question) => {
193278
+ #getTableInfo = async () => {
193279
193279
  const response = await fetch("/api/meta/selectTableList", {
193280
193280
  method: "POST",
193281
193281
  headers: { "Content-Type": "application/json" },
@@ -193287,6 +193287,14 @@ class IdeAi
193287
193287
  return await response.json();
193288
193288
  };
193289
193289
 
193290
+ #findMenu = async (question) => {
193291
+ const menus = this.#getMenuInfo();
193292
+ const tables = await this.#getTableInfo();
193293
+
193294
+ console.log(menus);
193295
+ console.log(tables);
193296
+ };
193297
+
193290
193298
 
193291
193299
  /**
193292
193300
  * 1. 소스 명칭 package 예) tmpl.population
@@ -193302,6 +193310,20 @@ class IdeAi
193302
193310
 
193303
193311
  console.log(menus);
193304
193312
  console.log(tables);
193313
+
193314
+ const response = await fetch(`${this.#API_URL}/ai/generateSource`, {
193315
+ method: "POST",
193316
+ headers: { "Content-Type": "application/json" },
193317
+ body: JSON.stringify({
193318
+ question: question,
193319
+ menus: menus,
193320
+ tables: tables,
193321
+ })
193322
+ });
193323
+
193324
+ //console.log(await response.json());
193325
+
193326
+ return await response.json();
193305
193327
  };
193306
193328
  }
193307
193329
 
@@ -8,7 +8,7 @@ export class IdeAi
8
8
  constructor() {
9
9
  }
10
10
 
11
- #getMenuInfo = (question) => {
11
+ #getMenuInfo = () => {
12
12
  let arr = [];
13
13
 
14
14
  ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
@@ -22,7 +22,7 @@ export class IdeAi
22
22
  return arr;
23
23
  };
24
24
 
25
- #getTableInfo = async (question) => {
25
+ #getTableInfo = async () => {
26
26
  const response = await fetch("/api/meta/selectTableList", {
27
27
  method: "POST",
28
28
  headers: { "Content-Type": "application/json" },
@@ -34,6 +34,14 @@ export class IdeAi
34
34
  return await response.json();
35
35
  };
36
36
 
37
+ #findMenu = async (question) => {
38
+ const menus = this.#getMenuInfo();
39
+ const tables = await this.#getTableInfo();
40
+
41
+ console.log(menus);
42
+ console.log(tables);
43
+ };
44
+
37
45
 
38
46
  /**
39
47
  * 1. 소스 명칭 package 예) tmpl.population
@@ -49,6 +57,20 @@ export class IdeAi
49
57
 
50
58
  console.log(menus);
51
59
  console.log(tables);
60
+
61
+ const response = await fetch(`${this.#API_URL}/ai/generateSource`, {
62
+ method: "POST",
63
+ headers: { "Content-Type": "application/json" },
64
+ body: JSON.stringify({
65
+ question: question,
66
+ menus: menus,
67
+ tables: tables,
68
+ })
69
+ });
70
+
71
+ //console.log(await response.json());
72
+
73
+ return await response.json();
52
74
  };
53
75
  }
54
76
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.15.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -8,7 +8,7 @@ export class IdeAi
8
8
  constructor() {
9
9
  }
10
10
 
11
- #getMenuInfo = (question) => {
11
+ #getMenuInfo = () => {
12
12
  let arr = [];
13
13
 
14
14
  ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
@@ -22,7 +22,7 @@ export class IdeAi
22
22
  return arr;
23
23
  };
24
24
 
25
- #getTableInfo = async (question) => {
25
+ #getTableInfo = async () => {
26
26
  const response = await fetch("/api/meta/selectTableList", {
27
27
  method: "POST",
28
28
  headers: { "Content-Type": "application/json" },
@@ -34,6 +34,14 @@ export class IdeAi
34
34
  return await response.json();
35
35
  };
36
36
 
37
+ #findMenu = async (question) => {
38
+ const menus = this.#getMenuInfo();
39
+ const tables = await this.#getTableInfo();
40
+
41
+ console.log(menus);
42
+ console.log(tables);
43
+ };
44
+
37
45
 
38
46
  /**
39
47
  * 1. 소스 명칭 package 예) tmpl.population
@@ -49,6 +57,20 @@ export class IdeAi
49
57
 
50
58
  console.log(menus);
51
59
  console.log(tables);
60
+
61
+ const response = await fetch(`${this.#API_URL}/ai/generateSource`, {
62
+ method: "POST",
63
+ headers: { "Content-Type": "application/json" },
64
+ body: JSON.stringify({
65
+ question: question,
66
+ menus: menus,
67
+ tables: tables,
68
+ })
69
+ });
70
+
71
+ //console.log(await response.json());
72
+
73
+ return await response.json();
52
74
  };
53
75
  }
54
76