@vtecx/vtecxnext 2.2.21 → 2.3.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.
- package/dist/vtecxnext.d.ts +9 -4
- package/dist/vtecxnext.js +12 -9
- package/package.json +4 -4
package/dist/vtecxnext.d.ts
CHANGED
|
@@ -478,24 +478,28 @@ export declare class VtecxNext {
|
|
|
478
478
|
* @param feed entries (JSON)
|
|
479
479
|
* @param uri parent key if not specified in entry
|
|
480
480
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
481
|
+
* @param async execute async
|
|
481
482
|
* @return registed entries
|
|
482
483
|
*/
|
|
483
|
-
postBDBQ: (feed: any, uri?: string, tablenames?: any) => Promise<any>;
|
|
484
|
+
postBDBQ: (feed: any, uri?: string, tablenames?: any, async?: boolean) => Promise<any>;
|
|
484
485
|
/**
|
|
485
486
|
* put data to bdb and post bigquery
|
|
486
487
|
* @param feed entries (JSON)
|
|
487
488
|
* @param uri parent key if not specified in entry
|
|
488
489
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
490
|
+
* @param async execute async
|
|
491
|
+
* @param isbulk Forcibly execute even if it exceeds the upper limit of entries of request feed.
|
|
489
492
|
* @return true if successful
|
|
490
493
|
*/
|
|
491
|
-
putBDBQ: (feed: any, uri?: string, tablenames?: any) => Promise<any>;
|
|
494
|
+
putBDBQ: (feed: any, uri?: string, tablenames?: any, async?: boolean, isbulk?: boolean) => Promise<any>;
|
|
492
495
|
/**
|
|
493
496
|
* delete data from bdb and bigquery
|
|
494
497
|
* @param keys delete keys
|
|
495
498
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
499
|
+
* @param async execute async
|
|
496
500
|
* @return true if successful
|
|
497
501
|
*/
|
|
498
|
-
deleteBDBQ: (keys: string[], tablenames?: any) => Promise<boolean>;
|
|
502
|
+
deleteBDBQ: (keys: string[], tablenames?: any, async?: boolean) => Promise<boolean>;
|
|
499
503
|
/**
|
|
500
504
|
* Execute a query SQL to the database and get the result.
|
|
501
505
|
* @param sql query sql
|
|
@@ -520,6 +524,7 @@ export declare class VtecxNext {
|
|
|
520
524
|
* @param values values of query arguments
|
|
521
525
|
* @param async execute async
|
|
522
526
|
* @param isbulk execute with autocommit
|
|
527
|
+
* @return message
|
|
523
528
|
*/
|
|
524
529
|
execRDB: (sqls: string[], values?: any[][], async?: boolean, isbulk?: boolean) => Promise<any>;
|
|
525
530
|
/**
|
|
@@ -667,7 +672,7 @@ export declare class VtecxNext {
|
|
|
667
672
|
* add user
|
|
668
673
|
* @param adduserInfo adduser infomation
|
|
669
674
|
* @param reCaptchaToken reCAPTCHA token
|
|
670
|
-
* @return message feed
|
|
675
|
+
* @return message feed (uid)
|
|
671
676
|
*/
|
|
672
677
|
adduser: (adduserInfo: AdduserInfo, reCaptchaToken: string) => Promise<any>;
|
|
673
678
|
/**
|
package/dist/vtecxnext.js
CHANGED
|
@@ -1747,9 +1747,10 @@ class VtecxNext {
|
|
|
1747
1747
|
* @param feed entries (JSON)
|
|
1748
1748
|
* @param uri parent key if not specified in entry
|
|
1749
1749
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
1750
|
+
* @param async execute async
|
|
1750
1751
|
* @return registed entries
|
|
1751
1752
|
*/
|
|
1752
|
-
postBDBQ = async (feed, uri, tablenames) => {
|
|
1753
|
+
postBDBQ = async (feed, uri, tablenames, async) => {
|
|
1753
1754
|
//console.log(`[vtecxnext postBQ] start. async=${async} feed=${feed}`)
|
|
1754
1755
|
// 入力チェック
|
|
1755
1756
|
checkNotNull(feed, 'Feed');
|
|
@@ -1766,7 +1767,7 @@ class VtecxNext {
|
|
|
1766
1767
|
}
|
|
1767
1768
|
// vte.cxへリクエスト
|
|
1768
1769
|
const method = 'POST';
|
|
1769
|
-
const url = `${SERVLETPATH_PROVIDER}${uri ? uri : '/'}?_bdbq`;
|
|
1770
|
+
const url = `${SERVLETPATH_PROVIDER}${uri ? uri : '/'}?_bdbq${async ? '&_async' : ''}`;
|
|
1770
1771
|
let response;
|
|
1771
1772
|
try {
|
|
1772
1773
|
response = await this.requestVtecx(method, url, JSON.stringify(reqFeed));
|
|
@@ -1786,9 +1787,11 @@ class VtecxNext {
|
|
|
1786
1787
|
* @param feed entries (JSON)
|
|
1787
1788
|
* @param uri parent key if not specified in entry
|
|
1788
1789
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
1790
|
+
* @param async execute async
|
|
1791
|
+
* @param isbulk Forcibly execute even if it exceeds the upper limit of entries of request feed.
|
|
1789
1792
|
* @return true if successful
|
|
1790
1793
|
*/
|
|
1791
|
-
putBDBQ = async (feed, uri, tablenames) => {
|
|
1794
|
+
putBDBQ = async (feed, uri, tablenames, async, isbulk) => {
|
|
1792
1795
|
//console.log(`[vtecxnext putBDBQ] start. feed=${feed}`)
|
|
1793
1796
|
// 入力チェック
|
|
1794
1797
|
checkNotNull(feed, 'Feed');
|
|
@@ -1806,7 +1809,7 @@ class VtecxNext {
|
|
|
1806
1809
|
}
|
|
1807
1810
|
// vte.cxへリクエスト
|
|
1808
1811
|
const method = 'PUT';
|
|
1809
|
-
const url = `${SERVLETPATH_PROVIDER}${uri ? uri : '/'}?_bdbq`;
|
|
1812
|
+
const url = `${SERVLETPATH_PROVIDER}${uri ? uri : '/'}?_bdbq${async ? '&_async' : ''}${isbulk ? '&_bulk' : ''}`;
|
|
1810
1813
|
let response;
|
|
1811
1814
|
try {
|
|
1812
1815
|
response = await this.requestVtecx(method, url, JSON.stringify(reqFeed));
|
|
@@ -1825,9 +1828,10 @@ class VtecxNext {
|
|
|
1825
1828
|
* delete data from bdb and bigquery
|
|
1826
1829
|
* @param keys delete keys
|
|
1827
1830
|
* @param tablenames key:entity's prop name, value:BigQuery table name
|
|
1831
|
+
* @param async execute async
|
|
1828
1832
|
* @return true if successful
|
|
1829
1833
|
*/
|
|
1830
|
-
deleteBDBQ = async (keys, tablenames) => {
|
|
1834
|
+
deleteBDBQ = async (keys, tablenames, async) => {
|
|
1831
1835
|
//console.log(`[vtecxnext deleteBDBQ] start. keys=${keys}`)
|
|
1832
1836
|
// 入力チェック
|
|
1833
1837
|
checkNotNull(keys, 'Key');
|
|
@@ -1849,7 +1853,7 @@ class VtecxNext {
|
|
|
1849
1853
|
//console.log(`[vtecxnext deleteBDBQ] feed=${feed}`)
|
|
1850
1854
|
// vte.cxへリクエスト
|
|
1851
1855
|
const method = 'DELETE';
|
|
1852
|
-
const url = `${SERVLETPATH_PROVIDER}/?_bdbq`;
|
|
1856
|
+
const url = `${SERVLETPATH_PROVIDER}/?_bdbq${async ? '&_async' : ''}`;
|
|
1853
1857
|
let response;
|
|
1854
1858
|
try {
|
|
1855
1859
|
response = await this.requestVtecx(method, url, JSON.stringify(feed));
|
|
@@ -1946,6 +1950,7 @@ class VtecxNext {
|
|
|
1946
1950
|
* @param values values of query arguments
|
|
1947
1951
|
* @param async execute async
|
|
1948
1952
|
* @param isbulk execute with autocommit
|
|
1953
|
+
* @return message
|
|
1949
1954
|
*/
|
|
1950
1955
|
execRDB = async (sqls, values, async, isbulk) => {
|
|
1951
1956
|
//console.log(`[vtecxnext execRDB] start. sql=${sql} values=${values}`)
|
|
@@ -2005,7 +2010,6 @@ class VtecxNext {
|
|
|
2005
2010
|
const resData = await response.blob();
|
|
2006
2011
|
this.setResponseHeaders(response);
|
|
2007
2012
|
this.bufferData = await resData.arrayBuffer();
|
|
2008
|
-
//res.end(new Uint8Array(pdfData))
|
|
2009
2013
|
return true;
|
|
2010
2014
|
};
|
|
2011
2015
|
/**
|
|
@@ -2612,7 +2616,7 @@ class VtecxNext {
|
|
|
2612
2616
|
* add user
|
|
2613
2617
|
* @param adduserInfo adduser infomation
|
|
2614
2618
|
* @param reCaptchaToken reCAPTCHA token
|
|
2615
|
-
* @return message feed
|
|
2619
|
+
* @return message feed (uid)
|
|
2616
2620
|
*/
|
|
2617
2621
|
adduser = async (adduserInfo, reCaptchaToken) => {
|
|
2618
2622
|
//console.log(`[vtecxnext adduser] start. feed=${feed}`)
|
|
@@ -2664,7 +2668,6 @@ class VtecxNext {
|
|
|
2664
2668
|
* @param feed entries (JSON)
|
|
2665
2669
|
* @return message feed
|
|
2666
2670
|
*/
|
|
2667
|
-
//adduserByAdmin = async (feed:any): Promise<any> => {
|
|
2668
2671
|
adduserByAdmin = async (adduserInfos) => {
|
|
2669
2672
|
//console.log(`[vtecxnext adduserByAdmin] start. feed=${feed}`)
|
|
2670
2673
|
// 入力チェック
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtecx/vtecxnext",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "vte.cx Next.js api",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/reflexworks/vtecxnext#readme",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^24.9.1",
|
|
22
22
|
"@types/sqlstring": "^2.3.2",
|
|
23
23
|
"ts-node": "^10.9.2",
|
|
24
|
-
"typescript": "^5.
|
|
24
|
+
"typescript": "^5.9.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"next": "^
|
|
27
|
+
"next": "^16.0.0",
|
|
28
28
|
"sqlstring": "^2.3.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|