@vtecx/vtecxnext 2.2.21 → 2.2.22
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 +7 -3
- package/dist/vtecxnext.js +10 -6
- package/package.json +3 -3
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
|
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));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtecx/vtecxnext",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
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.0.4",
|
|
22
22
|
"@types/sqlstring": "^2.3.2",
|
|
23
23
|
"ts-node": "^10.9.2",
|
|
24
24
|
"typescript": "^5.8.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"next": "^15.3.
|
|
27
|
+
"next": "^15.3.4",
|
|
28
28
|
"sqlstring": "^2.3.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|