appwrite-cli 12.0.1 → 13.0.0-rc.1
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/CHANGELOG.md +4 -0
- package/README.md +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +145 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/client.d.ts +89 -0
- package/dist/lib/client.d.ts.map +1 -0
- package/dist/lib/client.js +227 -0
- package/dist/lib/client.js.map +1 -0
- package/dist/lib/commands/account.d.ts +379 -0
- package/dist/lib/commands/account.d.ts.map +1 -0
- package/dist/lib/commands/account.js +1228 -0
- package/dist/lib/commands/account.js.map +1 -0
- package/dist/lib/commands/console.d.ts +20 -0
- package/dist/lib/commands/console.d.ts.map +1 -0
- package/dist/lib/commands/console.js +78 -0
- package/dist/lib/commands/console.js.map +1 -0
- package/dist/lib/commands/databases.d.ts +732 -0
- package/dist/lib/commands/databases.d.ts.map +1 -0
- package/dist/lib/commands/databases.js +2196 -0
- package/dist/lib/commands/databases.js.map +1 -0
- package/dist/lib/commands/functions.d.ts +310 -0
- package/dist/lib/commands/functions.d.ts.map +1 -0
- package/dist/lib/commands/functions.js +1100 -0
- package/dist/lib/commands/functions.js.map +1 -0
- package/dist/lib/commands/generic.d.ts +17 -0
- package/dist/lib/commands/generic.d.ts.map +1 -0
- package/dist/lib/commands/generic.js +279 -0
- package/dist/lib/commands/generic.js.map +1 -0
- package/dist/lib/commands/graphql.d.ts +19 -0
- package/dist/lib/commands/graphql.d.ts.map +1 -0
- package/dist/lib/commands/graphql.js +77 -0
- package/dist/lib/commands/graphql.js.map +1 -0
- package/dist/lib/commands/health.d.ts +153 -0
- package/dist/lib/commands/health.d.ts.map +1 -0
- package/dist/lib/commands/health.js +464 -0
- package/dist/lib/commands/health.js.map +1 -0
- package/dist/lib/commands/init.d.ts +3 -0
- package/dist/lib/commands/init.d.ts.map +1 -0
- package/dist/lib/commands/init.js +518 -0
- package/dist/lib/commands/init.js.map +1 -0
- package/dist/lib/commands/locale.d.ts +53 -0
- package/dist/lib/commands/locale.d.ts.map +1 -0
- package/dist/lib/commands/locale.js +165 -0
- package/dist/lib/commands/locale.js.map +1 -0
- package/dist/lib/commands/messaging.d.ts +588 -0
- package/dist/lib/commands/messaging.d.ts.map +1 -0
- package/dist/lib/commands/messaging.js +2042 -0
- package/dist/lib/commands/messaging.js.map +1 -0
- package/dist/lib/commands/migrations.d.ts +150 -0
- package/dist/lib/commands/migrations.d.ts.map +1 -0
- package/dist/lib/commands/migrations.js +524 -0
- package/dist/lib/commands/migrations.js.map +1 -0
- package/dist/lib/commands/organizations.d.ts +11 -0
- package/dist/lib/commands/organizations.d.ts.map +1 -0
- package/dist/lib/commands/organizations.js +31 -0
- package/dist/lib/commands/organizations.js.map +1 -0
- package/dist/lib/commands/project.d.ts +53 -0
- package/dist/lib/commands/project.d.ts.map +1 -0
- package/dist/lib/commands/project.js +176 -0
- package/dist/lib/commands/project.js.map +1 -0
- package/dist/lib/commands/projects.d.ts +516 -0
- package/dist/lib/commands/projects.d.ts.map +1 -0
- package/dist/lib/commands/projects.js +1590 -0
- package/dist/lib/commands/projects.js.map +1 -0
- package/dist/lib/commands/proxy.d.ts +71 -0
- package/dist/lib/commands/proxy.d.ts.map +1 -0
- package/dist/lib/commands/proxy.js +240 -0
- package/dist/lib/commands/proxy.js.map +1 -0
- package/dist/lib/commands/pull.d.ts +8 -0
- package/dist/lib/commands/pull.d.ts.map +1 -0
- package/dist/lib/commands/pull.js +455 -0
- package/dist/lib/commands/pull.js.map +1 -0
- package/dist/lib/commands/push.d.ts +4 -0
- package/dist/lib/commands/push.d.ts.map +1 -0
- package/dist/lib/commands/push.js +2154 -0
- package/dist/lib/commands/push.js.map +1 -0
- package/dist/lib/commands/run.d.ts +3 -0
- package/dist/lib/commands/run.d.ts.map +1 -0
- package/dist/lib/commands/run.js +287 -0
- package/dist/lib/commands/run.js.map +1 -0
- package/dist/lib/commands/sites.d.ts +296 -0
- package/dist/lib/commands/sites.d.ts.map +1 -0
- package/dist/lib/commands/sites.js +1046 -0
- package/dist/lib/commands/sites.js.map +1 -0
- package/dist/lib/commands/storage.d.ts +170 -0
- package/dist/lib/commands/storage.d.ts.map +1 -0
- package/dist/lib/commands/storage.js +651 -0
- package/dist/lib/commands/storage.js.map +1 -0
- package/dist/lib/commands/tables-db.d.ts +728 -0
- package/dist/lib/commands/tables-db.d.ts.map +1 -0
- package/dist/lib/commands/tables-db.js +2198 -0
- package/dist/lib/commands/tables-db.js.map +1 -0
- package/dist/lib/commands/teams.d.ts +129 -0
- package/dist/lib/commands/teams.d.ts.map +1 -0
- package/dist/lib/commands/teams.js +403 -0
- package/dist/lib/commands/teams.js.map +1 -0
- package/dist/lib/commands/tokens.d.ts +48 -0
- package/dist/lib/commands/tokens.d.ts.map +1 -0
- package/dist/lib/commands/tokens.js +156 -0
- package/dist/lib/commands/tokens.js.map +1 -0
- package/dist/lib/commands/types.d.ts +3 -0
- package/dist/lib/commands/types.d.ts.map +1 -0
- package/dist/lib/commands/types.js +155 -0
- package/dist/lib/commands/types.js.map +1 -0
- package/dist/lib/commands/update.d.ts +3 -0
- package/dist/lib/commands/update.d.ts.map +1 -0
- package/dist/lib/commands/update.js +202 -0
- package/dist/lib/commands/update.js.map +1 -0
- package/dist/lib/commands/users.d.ts +382 -0
- package/dist/lib/commands/users.d.ts.map +1 -0
- package/dist/lib/commands/users.js +1195 -0
- package/dist/lib/commands/users.js.map +1 -0
- package/dist/lib/commands/vcs.d.ts +92 -0
- package/dist/lib/commands/vcs.d.ts.map +1 -0
- package/dist/lib/commands/vcs.js +276 -0
- package/dist/lib/commands/vcs.js.map +1 -0
- package/dist/lib/config.d.ts +118 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/{lib → dist/lib}/config.js +204 -325
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/emulation/docker.d.ts +15 -0
- package/dist/lib/emulation/docker.d.ts.map +1 -0
- package/dist/lib/emulation/docker.js +220 -0
- package/dist/lib/emulation/docker.js.map +1 -0
- package/dist/lib/emulation/utils.d.ts +29 -0
- package/dist/lib/emulation/utils.d.ts.map +1 -0
- package/dist/lib/emulation/utils.js +168 -0
- package/dist/lib/emulation/utils.js.map +1 -0
- package/dist/lib/exception.d.ts +8 -0
- package/dist/lib/exception.d.ts.map +1 -0
- package/dist/lib/exception.js +16 -0
- package/dist/lib/exception.js.map +1 -0
- package/dist/lib/id.d.ts +7 -0
- package/dist/lib/id.d.ts.map +1 -0
- package/dist/lib/id.js +32 -0
- package/dist/lib/id.js.map +1 -0
- package/dist/lib/paginate.d.ts +10 -0
- package/dist/lib/paginate.d.ts.map +1 -0
- package/{lib → dist/lib}/paginate.js +9 -15
- package/dist/lib/paginate.js.map +1 -0
- package/dist/lib/parser.d.ts +18 -0
- package/dist/lib/parser.d.ts.map +1 -0
- package/dist/lib/parser.js +237 -0
- package/dist/lib/parser.js.map +1 -0
- package/dist/lib/questions.d.ts +59 -0
- package/dist/lib/questions.d.ts.map +1 -0
- package/dist/lib/questions.js +995 -0
- package/dist/lib/questions.js.map +1 -0
- package/dist/lib/sdks.d.ts +4 -0
- package/dist/lib/sdks.d.ts.map +1 -0
- package/dist/lib/sdks.js +51 -0
- package/dist/lib/sdks.js.map +1 -0
- package/dist/lib/spinner.d.ts +28 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/{lib → dist/lib}/spinner.js +34 -45
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/type-generation/attribute.d.ts +17 -0
- package/dist/lib/type-generation/attribute.d.ts.map +1 -0
- package/dist/lib/type-generation/attribute.js +19 -0
- package/dist/lib/type-generation/attribute.js.map +1 -0
- package/dist/lib/type-generation/languages/csharp.d.ts +7 -0
- package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/csharp.js +180 -0
- package/dist/lib/type-generation/languages/csharp.js.map +1 -0
- package/dist/lib/type-generation/languages/dart.d.ts +8 -0
- package/dist/lib/type-generation/languages/dart.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/dart.js +197 -0
- package/dist/lib/type-generation/languages/dart.js.map +1 -0
- package/dist/lib/type-generation/languages/java.d.ts +7 -0
- package/dist/lib/type-generation/languages/java.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/java.js +140 -0
- package/dist/lib/type-generation/languages/java.js.map +1 -0
- package/dist/lib/type-generation/languages/javascript.d.ts +9 -0
- package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/javascript.js +108 -0
- package/dist/lib/type-generation/languages/javascript.js.map +1 -0
- package/dist/lib/type-generation/languages/kotlin.d.ts +7 -0
- package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/kotlin.js +95 -0
- package/dist/lib/type-generation/languages/kotlin.js.map +1 -0
- package/dist/lib/type-generation/languages/language.d.ts +43 -0
- package/dist/lib/type-generation/languages/language.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/language.js +82 -0
- package/dist/lib/type-generation/languages/language.js.map +1 -0
- package/dist/lib/type-generation/languages/php.d.ts +7 -0
- package/dist/lib/type-generation/languages/php.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/php.js +116 -0
- package/dist/lib/type-generation/languages/php.js.map +1 -0
- package/dist/lib/type-generation/languages/swift.d.ts +7 -0
- package/dist/lib/type-generation/languages/swift.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/swift.js +179 -0
- package/dist/lib/type-generation/languages/swift.js.map +1 -0
- package/dist/lib/type-generation/languages/typescript.d.ts +9 -0
- package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/typescript.js +112 -0
- package/dist/lib/type-generation/languages/typescript.js.map +1 -0
- package/dist/lib/types.d.ts +133 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utils.d.ts +15 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/{lib → dist/lib}/utils.js +74 -120
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/validations.d.ts +2 -0
- package/dist/lib/validations.d.ts.map +1 -0
- package/dist/lib/validations.js +20 -0
- package/dist/lib/validations.js.map +1 -0
- package/docs/examples/databases/upsert-document.md +1 -2
- package/index.ts +152 -0
- package/install.ps1 +2 -5
- package/install.sh +1 -2
- package/lib/client.ts +259 -0
- package/lib/commands/{account.js → account.ts} +408 -662
- package/lib/commands/console.ts +112 -0
- package/lib/commands/{databases.js → databases.ts} +818 -1136
- package/lib/commands/{functions.js → functions.ts} +381 -526
- package/lib/commands/{generic.js → generic.ts} +47 -39
- package/lib/commands/graphql.ts +110 -0
- package/lib/commands/{health.js → health.ts} +168 -284
- package/lib/commands/{init.js → init.ts} +68 -66
- package/lib/commands/{locale.js → locale.ts} +75 -121
- package/lib/commands/{messaging.js → messaging.ts} +699 -937
- package/lib/commands/{migrations.js → migrations.ts} +182 -258
- package/lib/commands/organizations.ts +46 -0
- package/lib/commands/{project.js → project.ts} +75 -111
- package/lib/commands/{projects.js → projects.ts} +587 -843
- package/lib/commands/{proxy.js → proxy.ts} +94 -140
- package/lib/commands/{pull.js → pull.ts} +54 -44
- package/lib/commands/{push.js → push.ts} +235 -191
- package/lib/commands/{run.js → run.ts} +61 -55
- package/lib/commands/{sites.js → sites.ts} +364 -504
- package/lib/commands/{storage.js → storage.ts} +216 -292
- package/lib/commands/{tables-db.js → tables-db.ts} +817 -1126
- package/lib/commands/{teams.js → teams.ts} +162 -236
- package/lib/commands/{tokens.js → tokens.ts} +70 -99
- package/lib/commands/{types.js → types.ts} +37 -35
- package/lib/commands/{update.js → update.ts} +25 -27
- package/lib/commands/{users.js → users.ts} +426 -644
- package/lib/commands/{vcs.js → vcs.ts} +118 -174
- package/lib/config.ts +854 -0
- package/lib/emulation/{docker.js → docker.ts} +39 -38
- package/lib/emulation/utils.ts +193 -0
- package/lib/exception.ts +20 -0
- package/lib/{id.js → id.ts} +5 -5
- package/lib/paginate.ts +63 -0
- package/lib/parser.ts +238 -0
- package/lib/{questions.js → questions.ts} +148 -156
- package/lib/sdks.ts +55 -0
- package/lib/spinner.ts +118 -0
- package/lib/type-generation/attribute.ts +17 -0
- package/lib/type-generation/languages/{csharp.js → csharp.ts} +59 -57
- package/lib/type-generation/languages/{dart.js → dart.ts} +91 -89
- package/lib/type-generation/languages/{java.js → java.ts} +58 -56
- package/lib/type-generation/languages/javascript.ts +111 -0
- package/lib/type-generation/languages/kotlin.ts +96 -0
- package/lib/type-generation/languages/language.ts +119 -0
- package/lib/type-generation/languages/{php.js → php.ts} +55 -53
- package/lib/type-generation/languages/{swift.js → swift.ts} +59 -57
- package/lib/type-generation/languages/typescript.ts +116 -0
- package/lib/types.ts +150 -0
- package/lib/utils.ts +322 -0
- package/lib/validations.ts +17 -0
- package/package.json +21 -12
- package/scoop/appwrite.config.json +3 -3
- package/tsconfig.json +30 -0
- package/index.js +0 -147
- package/lib/client.js +0 -254
- package/lib/commands/console.js +0 -127
- package/lib/commands/graphql.js +0 -126
- package/lib/commands/organizations.js +0 -48
- package/lib/emulation/utils.js +0 -186
- package/lib/exception.js +0 -9
- package/lib/parser.js +0 -250
- package/lib/sdks.js +0 -60
- package/lib/type-generation/attribute.js +0 -19
- package/lib/type-generation/languages/javascript.js +0 -111
- package/lib/type-generation/languages/kotlin.js +0 -94
- package/lib/type-generation/languages/language.js +0 -125
- package/lib/type-generation/languages/typescript.js +0 -116
- package/lib/validations.js +0 -17
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @param {fs.ReadStream} readStream
|
|
17
|
-
* @returns {ReadableStream}
|
|
18
|
-
*/
|
|
19
|
-
function convertReadStreamToReadableStream(readStream) {
|
|
1
|
+
import fs = require('fs');
|
|
2
|
+
import pathLib = require('path');
|
|
3
|
+
import tar = require('tar');
|
|
4
|
+
import ignore = require('ignore');
|
|
5
|
+
import { promisify } from 'util';
|
|
6
|
+
import Client from '../client';
|
|
7
|
+
import { getAllFiles, showConsoleLink } from '../utils';
|
|
8
|
+
import { Command } from 'commander';
|
|
9
|
+
import { sdkForProject, sdkForConsole } from '../sdks';
|
|
10
|
+
import { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } from '../parser';
|
|
11
|
+
import { localConfig, globalConfig } from '../config';
|
|
12
|
+
import { File } from 'undici';
|
|
13
|
+
import { ReadableStream } from 'stream/web';
|
|
14
|
+
|
|
15
|
+
function convertReadStreamToReadableStream(readStream: fs.ReadStream): ReadableStream {
|
|
20
16
|
return new ReadableStream({
|
|
21
17
|
start(controller) {
|
|
22
|
-
readStream.on("data", (chunk) => {
|
|
18
|
+
readStream.on("data", (chunk: Buffer) => {
|
|
23
19
|
controller.enqueue(chunk);
|
|
24
20
|
});
|
|
25
21
|
readStream.on("end", () => {
|
|
26
22
|
controller.close();
|
|
27
23
|
});
|
|
28
|
-
readStream.on("error", (err) => {
|
|
24
|
+
readStream.on("error", (err: Error) => {
|
|
29
25
|
controller.error(err);
|
|
30
26
|
});
|
|
31
27
|
},
|
|
@@ -35,24 +31,21 @@ function convertReadStreamToReadableStream(readStream) {
|
|
|
35
31
|
});
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
const tablesDB = new Command("tables-db").description(commandDescriptions['tables-db'] ?? '').configureHelp({
|
|
34
|
+
export const tablesDB = new Command("tables-db").description(commandDescriptions['tables-db'] ?? '').configureHelp({
|
|
39
35
|
helpWidth: process.stdout.columns || 80
|
|
40
36
|
})
|
|
41
37
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
interface TablesDBListRequestParams {
|
|
39
|
+
queries?: string[];
|
|
40
|
+
search?: string;
|
|
41
|
+
total?: boolean;
|
|
42
|
+
overrideForCli?: boolean;
|
|
43
|
+
parseOutput?: boolean;
|
|
44
|
+
sdk?: Client;
|
|
45
|
+
console?: boolean;
|
|
46
|
+
}
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
* @param {TablesDBListRequestParams} params
|
|
54
|
-
*/
|
|
55
|
-
const tablesDBList = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
48
|
+
export const tablesDBList = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListRequestParams): Promise<any> => {
|
|
56
49
|
let client = !sdk ? await sdkForProject() :
|
|
57
50
|
sdk;
|
|
58
51
|
let apiPath = '/tablesdb';
|
|
@@ -73,7 +66,7 @@ const tablesDBList = async ({queries,search,total,parseOutput = true, overrideFo
|
|
|
73
66
|
}, payload);
|
|
74
67
|
|
|
75
68
|
if (parseOutput) {
|
|
76
|
-
if(
|
|
69
|
+
if(showConsole) {
|
|
77
70
|
showConsoleLink('tablesDB', 'list');
|
|
78
71
|
} else {
|
|
79
72
|
parse(response)
|
|
@@ -83,20 +76,16 @@ const tablesDBList = async ({queries,search,total,parseOutput = true, overrideFo
|
|
|
83
76
|
return response;
|
|
84
77
|
|
|
85
78
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*/
|
|
79
|
+
interface TablesDBCreateRequestParams {
|
|
80
|
+
databaseId: string;
|
|
81
|
+
name: string;
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
overrideForCli?: boolean;
|
|
84
|
+
parseOutput?: boolean;
|
|
85
|
+
sdk?: Client;
|
|
86
|
+
}
|
|
95
87
|
|
|
96
|
-
|
|
97
|
-
* @param {TablesDBCreateRequestParams} params
|
|
98
|
-
*/
|
|
99
|
-
const tablesDBCreate = async ({databaseId,name,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
88
|
+
export const tablesDBCreate = async ({databaseId,name,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateRequestParams): Promise<any> => {
|
|
100
89
|
let client = !sdk ? await sdkForProject() :
|
|
101
90
|
sdk;
|
|
102
91
|
let apiPath = '/tablesdb';
|
|
@@ -124,18 +113,15 @@ const tablesDBCreate = async ({databaseId,name,enabled,parseOutput = true, overr
|
|
|
124
113
|
return response;
|
|
125
114
|
|
|
126
115
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
116
|
+
interface TablesDBListTransactionsRequestParams {
|
|
117
|
+
queries?: string[];
|
|
118
|
+
overrideForCli?: boolean;
|
|
119
|
+
parseOutput?: boolean;
|
|
120
|
+
sdk?: Client;
|
|
121
|
+
console?: boolean;
|
|
122
|
+
}
|
|
134
123
|
|
|
135
|
-
|
|
136
|
-
* @param {TablesDBListTransactionsRequestParams} params
|
|
137
|
-
*/
|
|
138
|
-
const tablesDBListTransactions = async ({queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
124
|
+
export const tablesDBListTransactions = async ({queries,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListTransactionsRequestParams): Promise<any> => {
|
|
139
125
|
let client = !sdk ? await sdkForProject() :
|
|
140
126
|
sdk;
|
|
141
127
|
let apiPath = '/tablesdb/transactions';
|
|
@@ -150,7 +136,7 @@ const tablesDBListTransactions = async ({queries,parseOutput = true, overrideFor
|
|
|
150
136
|
}, payload);
|
|
151
137
|
|
|
152
138
|
if (parseOutput) {
|
|
153
|
-
if(
|
|
139
|
+
if(showConsole) {
|
|
154
140
|
showConsoleLink('tablesDB', 'listTransactions');
|
|
155
141
|
} else {
|
|
156
142
|
parse(response)
|
|
@@ -160,18 +146,14 @@ const tablesDBListTransactions = async ({queries,parseOutput = true, overrideFor
|
|
|
160
146
|
return response;
|
|
161
147
|
|
|
162
148
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
*/
|
|
149
|
+
interface TablesDBCreateTransactionRequestParams {
|
|
150
|
+
ttl?: number;
|
|
151
|
+
overrideForCli?: boolean;
|
|
152
|
+
parseOutput?: boolean;
|
|
153
|
+
sdk?: Client;
|
|
154
|
+
}
|
|
170
155
|
|
|
171
|
-
|
|
172
|
-
* @param {TablesDBCreateTransactionRequestParams} params
|
|
173
|
-
*/
|
|
174
|
-
const tablesDBCreateTransaction = async ({ttl,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
156
|
+
export const tablesDBCreateTransaction = async ({ttl,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateTransactionRequestParams): Promise<any> => {
|
|
175
157
|
let client = !sdk ? await sdkForProject() :
|
|
176
158
|
sdk;
|
|
177
159
|
let apiPath = '/tablesdb/transactions';
|
|
@@ -193,18 +175,15 @@ const tablesDBCreateTransaction = async ({ttl,parseOutput = true, overrideForCli
|
|
|
193
175
|
return response;
|
|
194
176
|
|
|
195
177
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
178
|
+
interface TablesDBGetTransactionRequestParams {
|
|
179
|
+
transactionId: string;
|
|
180
|
+
overrideForCli?: boolean;
|
|
181
|
+
parseOutput?: boolean;
|
|
182
|
+
sdk?: Client;
|
|
183
|
+
console?: boolean;
|
|
184
|
+
}
|
|
203
185
|
|
|
204
|
-
|
|
205
|
-
* @param {TablesDBGetTransactionRequestParams} params
|
|
206
|
-
*/
|
|
207
|
-
const tablesDBGetTransaction = async ({transactionId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
186
|
+
export const tablesDBGetTransaction = async ({transactionId,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetTransactionRequestParams): Promise<any> => {
|
|
208
187
|
let client = !sdk ? await sdkForProject() :
|
|
209
188
|
sdk;
|
|
210
189
|
let apiPath = '/tablesdb/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
@@ -216,7 +195,7 @@ const tablesDBGetTransaction = async ({transactionId,parseOutput = true, overrid
|
|
|
216
195
|
}, payload);
|
|
217
196
|
|
|
218
197
|
if (parseOutput) {
|
|
219
|
-
if(
|
|
198
|
+
if(showConsole) {
|
|
220
199
|
showConsoleLink('tablesDB', 'getTransaction', transactionId);
|
|
221
200
|
} else {
|
|
222
201
|
parse(response)
|
|
@@ -226,20 +205,16 @@ const tablesDBGetTransaction = async ({transactionId,parseOutput = true, overrid
|
|
|
226
205
|
return response;
|
|
227
206
|
|
|
228
207
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
*/
|
|
208
|
+
interface TablesDBUpdateTransactionRequestParams {
|
|
209
|
+
transactionId: string;
|
|
210
|
+
commit?: boolean;
|
|
211
|
+
rollback?: boolean;
|
|
212
|
+
overrideForCli?: boolean;
|
|
213
|
+
parseOutput?: boolean;
|
|
214
|
+
sdk?: Client;
|
|
215
|
+
}
|
|
238
216
|
|
|
239
|
-
|
|
240
|
-
* @param {TablesDBUpdateTransactionRequestParams} params
|
|
241
|
-
*/
|
|
242
|
-
const tablesDBUpdateTransaction = async ({transactionId,commit,rollback,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
217
|
+
export const tablesDBUpdateTransaction = async ({transactionId,commit,rollback,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateTransactionRequestParams): Promise<any> => {
|
|
243
218
|
let client = !sdk ? await sdkForProject() :
|
|
244
219
|
sdk;
|
|
245
220
|
let apiPath = '/tablesdb/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
@@ -264,18 +239,14 @@ const tablesDBUpdateTransaction = async ({transactionId,commit,rollback,parseOut
|
|
|
264
239
|
return response;
|
|
265
240
|
|
|
266
241
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
*/
|
|
242
|
+
interface TablesDBDeleteTransactionRequestParams {
|
|
243
|
+
transactionId: string;
|
|
244
|
+
overrideForCli?: boolean;
|
|
245
|
+
parseOutput?: boolean;
|
|
246
|
+
sdk?: Client;
|
|
247
|
+
}
|
|
274
248
|
|
|
275
|
-
|
|
276
|
-
* @param {TablesDBDeleteTransactionRequestParams} params
|
|
277
|
-
*/
|
|
278
|
-
const tablesDBDeleteTransaction = async ({transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
249
|
+
export const tablesDBDeleteTransaction = async ({transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteTransactionRequestParams): Promise<any> => {
|
|
279
250
|
let client = !sdk ? await sdkForProject() :
|
|
280
251
|
sdk;
|
|
281
252
|
let apiPath = '/tablesdb/transactions/{transactionId}'.replace('{transactionId}', transactionId);
|
|
@@ -294,19 +265,15 @@ const tablesDBDeleteTransaction = async ({transactionId,parseOutput = true, over
|
|
|
294
265
|
return response;
|
|
295
266
|
|
|
296
267
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
*/
|
|
268
|
+
interface TablesDBCreateOperationsRequestParams {
|
|
269
|
+
transactionId: string;
|
|
270
|
+
operations?: object[];
|
|
271
|
+
overrideForCli?: boolean;
|
|
272
|
+
parseOutput?: boolean;
|
|
273
|
+
sdk?: Client;
|
|
274
|
+
}
|
|
305
275
|
|
|
306
|
-
|
|
307
|
-
* @param {TablesDBCreateOperationsRequestParams} params
|
|
308
|
-
*/
|
|
309
|
-
const tablesDBCreateOperations = async ({transactionId,operations,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
276
|
+
export const tablesDBCreateOperations = async ({transactionId,operations,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateOperationsRequestParams): Promise<any> => {
|
|
310
277
|
let client = !sdk ? await sdkForProject() :
|
|
311
278
|
sdk;
|
|
312
279
|
let apiPath = '/tablesdb/transactions/{transactionId}/operations'.replace('{transactionId}', transactionId);
|
|
@@ -329,18 +296,15 @@ const tablesDBCreateOperations = async ({transactionId,operations,parseOutput =
|
|
|
329
296
|
return response;
|
|
330
297
|
|
|
331
298
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
299
|
+
interface TablesDBListUsageRequestParams {
|
|
300
|
+
range?: UsageRange;
|
|
301
|
+
overrideForCli?: boolean;
|
|
302
|
+
parseOutput?: boolean;
|
|
303
|
+
sdk?: Client;
|
|
304
|
+
console?: boolean;
|
|
305
|
+
}
|
|
339
306
|
|
|
340
|
-
|
|
341
|
-
* @param {TablesDBListUsageRequestParams} params
|
|
342
|
-
*/
|
|
343
|
-
const tablesDBListUsage = async ({range,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
307
|
+
export const tablesDBListUsage = async ({range,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListUsageRequestParams): Promise<any> => {
|
|
344
308
|
let client = !sdk ? await sdkForProject() :
|
|
345
309
|
sdk;
|
|
346
310
|
let apiPath = '/tablesdb/usage';
|
|
@@ -355,7 +319,7 @@ const tablesDBListUsage = async ({range,parseOutput = true, overrideForCli = fal
|
|
|
355
319
|
}, payload);
|
|
356
320
|
|
|
357
321
|
if (parseOutput) {
|
|
358
|
-
if(
|
|
322
|
+
if(showConsole) {
|
|
359
323
|
showConsoleLink('tablesDB', 'listUsage');
|
|
360
324
|
} else {
|
|
361
325
|
parse(response)
|
|
@@ -365,18 +329,15 @@ const tablesDBListUsage = async ({range,parseOutput = true, overrideForCli = fal
|
|
|
365
329
|
return response;
|
|
366
330
|
|
|
367
331
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
332
|
+
interface TablesDBGetRequestParams {
|
|
333
|
+
databaseId: string;
|
|
334
|
+
overrideForCli?: boolean;
|
|
335
|
+
parseOutput?: boolean;
|
|
336
|
+
sdk?: Client;
|
|
337
|
+
console?: boolean;
|
|
338
|
+
}
|
|
375
339
|
|
|
376
|
-
|
|
377
|
-
* @param {TablesDBGetRequestParams} params
|
|
378
|
-
*/
|
|
379
|
-
const tablesDBGet = async ({databaseId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
340
|
+
export const tablesDBGet = async ({databaseId,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetRequestParams): Promise<any> => {
|
|
380
341
|
let client = !sdk ? await sdkForProject() :
|
|
381
342
|
sdk;
|
|
382
343
|
let apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
|
|
@@ -388,7 +349,7 @@ const tablesDBGet = async ({databaseId,parseOutput = true, overrideForCli = fals
|
|
|
388
349
|
}, payload);
|
|
389
350
|
|
|
390
351
|
if (parseOutput) {
|
|
391
|
-
if(
|
|
352
|
+
if(showConsole) {
|
|
392
353
|
showConsoleLink('tablesDB', 'get', databaseId);
|
|
393
354
|
} else {
|
|
394
355
|
parse(response)
|
|
@@ -398,20 +359,16 @@ const tablesDBGet = async ({databaseId,parseOutput = true, overrideForCli = fals
|
|
|
398
359
|
return response;
|
|
399
360
|
|
|
400
361
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
*/
|
|
362
|
+
interface TablesDBUpdateRequestParams {
|
|
363
|
+
databaseId: string;
|
|
364
|
+
name: string;
|
|
365
|
+
enabled?: boolean;
|
|
366
|
+
overrideForCli?: boolean;
|
|
367
|
+
parseOutput?: boolean;
|
|
368
|
+
sdk?: Client;
|
|
369
|
+
}
|
|
410
370
|
|
|
411
|
-
|
|
412
|
-
* @param {TablesDBUpdateRequestParams} params
|
|
413
|
-
*/
|
|
414
|
-
const tablesDBUpdate = async ({databaseId,name,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
371
|
+
export const tablesDBUpdate = async ({databaseId,name,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateRequestParams): Promise<any> => {
|
|
415
372
|
let client = !sdk ? await sdkForProject() :
|
|
416
373
|
sdk;
|
|
417
374
|
let apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
|
|
@@ -436,18 +393,14 @@ const tablesDBUpdate = async ({databaseId,name,enabled,parseOutput = true, overr
|
|
|
436
393
|
return response;
|
|
437
394
|
|
|
438
395
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
*/
|
|
396
|
+
interface TablesDBDeleteRequestParams {
|
|
397
|
+
databaseId: string;
|
|
398
|
+
overrideForCli?: boolean;
|
|
399
|
+
parseOutput?: boolean;
|
|
400
|
+
sdk?: Client;
|
|
401
|
+
}
|
|
446
402
|
|
|
447
|
-
|
|
448
|
-
* @param {TablesDBDeleteRequestParams} params
|
|
449
|
-
*/
|
|
450
|
-
const tablesDBDelete = async ({databaseId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
403
|
+
export const tablesDBDelete = async ({databaseId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteRequestParams): Promise<any> => {
|
|
451
404
|
let client = !sdk ? await sdkForProject() :
|
|
452
405
|
sdk;
|
|
453
406
|
let apiPath = '/tablesdb/{databaseId}'.replace('{databaseId}', databaseId);
|
|
@@ -466,21 +419,18 @@ const tablesDBDelete = async ({databaseId,parseOutput = true, overrideForCli = f
|
|
|
466
419
|
return response;
|
|
467
420
|
|
|
468
421
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
422
|
+
interface TablesDBListTablesRequestParams {
|
|
423
|
+
databaseId: string;
|
|
424
|
+
queries?: string[];
|
|
425
|
+
search?: string;
|
|
426
|
+
total?: boolean;
|
|
427
|
+
overrideForCli?: boolean;
|
|
428
|
+
parseOutput?: boolean;
|
|
429
|
+
sdk?: Client;
|
|
430
|
+
console?: boolean;
|
|
431
|
+
}
|
|
479
432
|
|
|
480
|
-
|
|
481
|
-
* @param {TablesDBListTablesRequestParams} params
|
|
482
|
-
*/
|
|
483
|
-
const tablesDBListTables = async ({databaseId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
433
|
+
export const tablesDBListTables = async ({databaseId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListTablesRequestParams): Promise<any> => {
|
|
484
434
|
let client = !sdk ? await sdkForProject() :
|
|
485
435
|
sdk;
|
|
486
436
|
let apiPath = '/tablesdb/{databaseId}/tables'.replace('{databaseId}', databaseId);
|
|
@@ -501,7 +451,7 @@ const tablesDBListTables = async ({databaseId,queries,search,total,parseOutput =
|
|
|
501
451
|
}, payload);
|
|
502
452
|
|
|
503
453
|
if (parseOutput) {
|
|
504
|
-
if(
|
|
454
|
+
if(showConsole) {
|
|
505
455
|
showConsoleLink('tablesDB', 'listTables', databaseId);
|
|
506
456
|
} else {
|
|
507
457
|
parse(response)
|
|
@@ -511,23 +461,21 @@ const tablesDBListTables = async ({databaseId,queries,search,total,parseOutput =
|
|
|
511
461
|
return response;
|
|
512
462
|
|
|
513
463
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
464
|
+
interface TablesDBCreateTableRequestParams {
|
|
465
|
+
databaseId: string;
|
|
466
|
+
tableId: string;
|
|
467
|
+
name: string;
|
|
468
|
+
permissions?: string[];
|
|
469
|
+
rowSecurity?: boolean;
|
|
470
|
+
enabled?: boolean;
|
|
471
|
+
columns?: object[];
|
|
472
|
+
indexes?: object[];
|
|
473
|
+
overrideForCli?: boolean;
|
|
474
|
+
parseOutput?: boolean;
|
|
475
|
+
sdk?: Client;
|
|
476
|
+
}
|
|
526
477
|
|
|
527
|
-
|
|
528
|
-
* @param {TablesDBCreateTableRequestParams} params
|
|
529
|
-
*/
|
|
530
|
-
const tablesDBCreateTable = async ({databaseId,tableId,name,permissions,rowSecurity,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
478
|
+
export const tablesDBCreateTable = async ({databaseId,tableId,name,permissions,rowSecurity,enabled,columns,indexes,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateTableRequestParams): Promise<any> => {
|
|
531
479
|
let client = !sdk ? await sdkForProject() :
|
|
532
480
|
sdk;
|
|
533
481
|
let apiPath = '/tablesdb/{databaseId}/tables'.replace('{databaseId}', databaseId);
|
|
@@ -548,6 +496,14 @@ const tablesDBCreateTable = async ({databaseId,tableId,name,permissions,rowSecur
|
|
|
548
496
|
if (typeof enabled !== 'undefined') {
|
|
549
497
|
payload['enabled'] = enabled;
|
|
550
498
|
}
|
|
499
|
+
columns = columns === true ? [] : columns;
|
|
500
|
+
if (typeof columns !== 'undefined') {
|
|
501
|
+
payload['columns'] = columns;
|
|
502
|
+
}
|
|
503
|
+
indexes = indexes === true ? [] : indexes;
|
|
504
|
+
if (typeof indexes !== 'undefined') {
|
|
505
|
+
payload['indexes'] = indexes;
|
|
506
|
+
}
|
|
551
507
|
|
|
552
508
|
let response = undefined;
|
|
553
509
|
|
|
@@ -562,19 +518,16 @@ const tablesDBCreateTable = async ({databaseId,tableId,name,permissions,rowSecur
|
|
|
562
518
|
return response;
|
|
563
519
|
|
|
564
520
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
521
|
+
interface TablesDBGetTableRequestParams {
|
|
522
|
+
databaseId: string;
|
|
523
|
+
tableId: string;
|
|
524
|
+
overrideForCli?: boolean;
|
|
525
|
+
parseOutput?: boolean;
|
|
526
|
+
sdk?: Client;
|
|
527
|
+
console?: boolean;
|
|
528
|
+
}
|
|
573
529
|
|
|
574
|
-
|
|
575
|
-
* @param {TablesDBGetTableRequestParams} params
|
|
576
|
-
*/
|
|
577
|
-
const tablesDBGetTable = async ({databaseId,tableId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
530
|
+
export const tablesDBGetTable = async ({databaseId,tableId,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetTableRequestParams): Promise<any> => {
|
|
578
531
|
let client = !sdk ? await sdkForProject() :
|
|
579
532
|
sdk;
|
|
580
533
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -586,7 +539,7 @@ const tablesDBGetTable = async ({databaseId,tableId,parseOutput = true, override
|
|
|
586
539
|
}, payload);
|
|
587
540
|
|
|
588
541
|
if (parseOutput) {
|
|
589
|
-
if(
|
|
542
|
+
if(showConsole) {
|
|
590
543
|
showConsoleLink('tablesDB', 'getTable', databaseId, tableId);
|
|
591
544
|
} else {
|
|
592
545
|
parse(response)
|
|
@@ -596,23 +549,19 @@ const tablesDBGetTable = async ({databaseId,tableId,parseOutput = true, override
|
|
|
596
549
|
return response;
|
|
597
550
|
|
|
598
551
|
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
*/
|
|
552
|
+
interface TablesDBUpdateTableRequestParams {
|
|
553
|
+
databaseId: string;
|
|
554
|
+
tableId: string;
|
|
555
|
+
name: string;
|
|
556
|
+
permissions?: string[];
|
|
557
|
+
rowSecurity?: boolean;
|
|
558
|
+
enabled?: boolean;
|
|
559
|
+
overrideForCli?: boolean;
|
|
560
|
+
parseOutput?: boolean;
|
|
561
|
+
sdk?: Client;
|
|
562
|
+
}
|
|
611
563
|
|
|
612
|
-
|
|
613
|
-
* @param {TablesDBUpdateTableRequestParams} params
|
|
614
|
-
*/
|
|
615
|
-
const tablesDBUpdateTable = async ({databaseId,tableId,name,permissions,rowSecurity,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
564
|
+
export const tablesDBUpdateTable = async ({databaseId,tableId,name,permissions,rowSecurity,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateTableRequestParams): Promise<any> => {
|
|
616
565
|
let client = !sdk ? await sdkForProject() :
|
|
617
566
|
sdk;
|
|
618
567
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -644,19 +593,15 @@ const tablesDBUpdateTable = async ({databaseId,tableId,name,permissions,rowSecur
|
|
|
644
593
|
return response;
|
|
645
594
|
|
|
646
595
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
*/
|
|
596
|
+
interface TablesDBDeleteTableRequestParams {
|
|
597
|
+
databaseId: string;
|
|
598
|
+
tableId: string;
|
|
599
|
+
overrideForCli?: boolean;
|
|
600
|
+
parseOutput?: boolean;
|
|
601
|
+
sdk?: Client;
|
|
602
|
+
}
|
|
655
603
|
|
|
656
|
-
|
|
657
|
-
* @param {TablesDBDeleteTableRequestParams} params
|
|
658
|
-
*/
|
|
659
|
-
const tablesDBDeleteTable = async ({databaseId,tableId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
604
|
+
export const tablesDBDeleteTable = async ({databaseId,tableId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteTableRequestParams): Promise<any> => {
|
|
660
605
|
let client = !sdk ? await sdkForProject() :
|
|
661
606
|
sdk;
|
|
662
607
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -675,21 +620,18 @@ const tablesDBDeleteTable = async ({databaseId,tableId,parseOutput = true, overr
|
|
|
675
620
|
return response;
|
|
676
621
|
|
|
677
622
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
623
|
+
interface TablesDBListColumnsRequestParams {
|
|
624
|
+
databaseId: string;
|
|
625
|
+
tableId: string;
|
|
626
|
+
queries?: string[];
|
|
627
|
+
total?: boolean;
|
|
628
|
+
overrideForCli?: boolean;
|
|
629
|
+
parseOutput?: boolean;
|
|
630
|
+
sdk?: Client;
|
|
631
|
+
console?: boolean;
|
|
632
|
+
}
|
|
688
633
|
|
|
689
|
-
|
|
690
|
-
* @param {TablesDBListColumnsRequestParams} params
|
|
691
|
-
*/
|
|
692
|
-
const tablesDBListColumns = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
634
|
+
export const tablesDBListColumns = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListColumnsRequestParams): Promise<any> => {
|
|
693
635
|
let client = !sdk ? await sdkForProject() :
|
|
694
636
|
sdk;
|
|
695
637
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -707,7 +649,7 @@ const tablesDBListColumns = async ({databaseId,tableId,queries,total,parseOutput
|
|
|
707
649
|
}, payload);
|
|
708
650
|
|
|
709
651
|
if (parseOutput) {
|
|
710
|
-
if(
|
|
652
|
+
if(showConsole) {
|
|
711
653
|
showConsoleLink('tablesDB', 'listColumns', databaseId, tableId);
|
|
712
654
|
} else {
|
|
713
655
|
parse(response)
|
|
@@ -717,23 +659,19 @@ const tablesDBListColumns = async ({databaseId,tableId,queries,total,parseOutput
|
|
|
717
659
|
return response;
|
|
718
660
|
|
|
719
661
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
*/
|
|
662
|
+
interface TablesDBCreateBooleanColumnRequestParams {
|
|
663
|
+
databaseId: string;
|
|
664
|
+
tableId: string;
|
|
665
|
+
key: string;
|
|
666
|
+
required: boolean;
|
|
667
|
+
xdefault?: boolean;
|
|
668
|
+
array?: boolean;
|
|
669
|
+
overrideForCli?: boolean;
|
|
670
|
+
parseOutput?: boolean;
|
|
671
|
+
sdk?: Client;
|
|
672
|
+
}
|
|
732
673
|
|
|
733
|
-
|
|
734
|
-
* @param {TablesDBCreateBooleanColumnRequestParams} params
|
|
735
|
-
*/
|
|
736
|
-
const tablesDBCreateBooleanColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
674
|
+
export const tablesDBCreateBooleanColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateBooleanColumnRequestParams): Promise<any> => {
|
|
737
675
|
let client = !sdk ? await sdkForProject() :
|
|
738
676
|
sdk;
|
|
739
677
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -764,23 +702,19 @@ const tablesDBCreateBooleanColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
764
702
|
return response;
|
|
765
703
|
|
|
766
704
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
*/
|
|
705
|
+
interface TablesDBUpdateBooleanColumnRequestParams {
|
|
706
|
+
databaseId: string;
|
|
707
|
+
tableId: string;
|
|
708
|
+
key: string;
|
|
709
|
+
required: boolean;
|
|
710
|
+
xdefault: boolean;
|
|
711
|
+
newKey?: string;
|
|
712
|
+
overrideForCli?: boolean;
|
|
713
|
+
parseOutput?: boolean;
|
|
714
|
+
sdk?: Client;
|
|
715
|
+
}
|
|
779
716
|
|
|
780
|
-
|
|
781
|
-
* @param {TablesDBUpdateBooleanColumnRequestParams} params
|
|
782
|
-
*/
|
|
783
|
-
const tablesDBUpdateBooleanColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
717
|
+
export const tablesDBUpdateBooleanColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateBooleanColumnRequestParams): Promise<any> => {
|
|
784
718
|
let client = !sdk ? await sdkForProject() :
|
|
785
719
|
sdk;
|
|
786
720
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -808,23 +742,19 @@ const tablesDBUpdateBooleanColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
808
742
|
return response;
|
|
809
743
|
|
|
810
744
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
*/
|
|
745
|
+
interface TablesDBCreateDatetimeColumnRequestParams {
|
|
746
|
+
databaseId: string;
|
|
747
|
+
tableId: string;
|
|
748
|
+
key: string;
|
|
749
|
+
required: boolean;
|
|
750
|
+
xdefault?: string;
|
|
751
|
+
array?: boolean;
|
|
752
|
+
overrideForCli?: boolean;
|
|
753
|
+
parseOutput?: boolean;
|
|
754
|
+
sdk?: Client;
|
|
755
|
+
}
|
|
823
756
|
|
|
824
|
-
|
|
825
|
-
* @param {TablesDBCreateDatetimeColumnRequestParams} params
|
|
826
|
-
*/
|
|
827
|
-
const tablesDBCreateDatetimeColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
757
|
+
export const tablesDBCreateDatetimeColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateDatetimeColumnRequestParams): Promise<any> => {
|
|
828
758
|
let client = !sdk ? await sdkForProject() :
|
|
829
759
|
sdk;
|
|
830
760
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -855,23 +785,19 @@ const tablesDBCreateDatetimeColumn = async ({databaseId,tableId,key,required,xde
|
|
|
855
785
|
return response;
|
|
856
786
|
|
|
857
787
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
*/
|
|
788
|
+
interface TablesDBUpdateDatetimeColumnRequestParams {
|
|
789
|
+
databaseId: string;
|
|
790
|
+
tableId: string;
|
|
791
|
+
key: string;
|
|
792
|
+
required: boolean;
|
|
793
|
+
xdefault: string;
|
|
794
|
+
newKey?: string;
|
|
795
|
+
overrideForCli?: boolean;
|
|
796
|
+
parseOutput?: boolean;
|
|
797
|
+
sdk?: Client;
|
|
798
|
+
}
|
|
870
799
|
|
|
871
|
-
|
|
872
|
-
* @param {TablesDBUpdateDatetimeColumnRequestParams} params
|
|
873
|
-
*/
|
|
874
|
-
const tablesDBUpdateDatetimeColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
800
|
+
export const tablesDBUpdateDatetimeColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateDatetimeColumnRequestParams): Promise<any> => {
|
|
875
801
|
let client = !sdk ? await sdkForProject() :
|
|
876
802
|
sdk;
|
|
877
803
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -899,23 +825,19 @@ const tablesDBUpdateDatetimeColumn = async ({databaseId,tableId,key,required,xde
|
|
|
899
825
|
return response;
|
|
900
826
|
|
|
901
827
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
*/
|
|
828
|
+
interface TablesDBCreateEmailColumnRequestParams {
|
|
829
|
+
databaseId: string;
|
|
830
|
+
tableId: string;
|
|
831
|
+
key: string;
|
|
832
|
+
required: boolean;
|
|
833
|
+
xdefault?: string;
|
|
834
|
+
array?: boolean;
|
|
835
|
+
overrideForCli?: boolean;
|
|
836
|
+
parseOutput?: boolean;
|
|
837
|
+
sdk?: Client;
|
|
838
|
+
}
|
|
914
839
|
|
|
915
|
-
|
|
916
|
-
* @param {TablesDBCreateEmailColumnRequestParams} params
|
|
917
|
-
*/
|
|
918
|
-
const tablesDBCreateEmailColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
840
|
+
export const tablesDBCreateEmailColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateEmailColumnRequestParams): Promise<any> => {
|
|
919
841
|
let client = !sdk ? await sdkForProject() :
|
|
920
842
|
sdk;
|
|
921
843
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -946,23 +868,19 @@ const tablesDBCreateEmailColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
946
868
|
return response;
|
|
947
869
|
|
|
948
870
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
*/
|
|
871
|
+
interface TablesDBUpdateEmailColumnRequestParams {
|
|
872
|
+
databaseId: string;
|
|
873
|
+
tableId: string;
|
|
874
|
+
key: string;
|
|
875
|
+
required: boolean;
|
|
876
|
+
xdefault: string;
|
|
877
|
+
newKey?: string;
|
|
878
|
+
overrideForCli?: boolean;
|
|
879
|
+
parseOutput?: boolean;
|
|
880
|
+
sdk?: Client;
|
|
881
|
+
}
|
|
961
882
|
|
|
962
|
-
|
|
963
|
-
* @param {TablesDBUpdateEmailColumnRequestParams} params
|
|
964
|
-
*/
|
|
965
|
-
const tablesDBUpdateEmailColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
883
|
+
export const tablesDBUpdateEmailColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateEmailColumnRequestParams): Promise<any> => {
|
|
966
884
|
let client = !sdk ? await sdkForProject() :
|
|
967
885
|
sdk;
|
|
968
886
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -990,24 +908,20 @@ const tablesDBUpdateEmailColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
990
908
|
return response;
|
|
991
909
|
|
|
992
910
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
*/
|
|
911
|
+
interface TablesDBCreateEnumColumnRequestParams {
|
|
912
|
+
databaseId: string;
|
|
913
|
+
tableId: string;
|
|
914
|
+
key: string;
|
|
915
|
+
elements: string[];
|
|
916
|
+
required: boolean;
|
|
917
|
+
xdefault?: string;
|
|
918
|
+
array?: boolean;
|
|
919
|
+
overrideForCli?: boolean;
|
|
920
|
+
parseOutput?: boolean;
|
|
921
|
+
sdk?: Client;
|
|
922
|
+
}
|
|
1006
923
|
|
|
1007
|
-
|
|
1008
|
-
* @param {TablesDBCreateEnumColumnRequestParams} params
|
|
1009
|
-
*/
|
|
1010
|
-
const tablesDBCreateEnumColumn = async ({databaseId,tableId,key,elements,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
924
|
+
export const tablesDBCreateEnumColumn = async ({databaseId,tableId,key,elements,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateEnumColumnRequestParams): Promise<any> => {
|
|
1011
925
|
let client = !sdk ? await sdkForProject() :
|
|
1012
926
|
sdk;
|
|
1013
927
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1042,24 +956,20 @@ const tablesDBCreateEnumColumn = async ({databaseId,tableId,key,elements,require
|
|
|
1042
956
|
return response;
|
|
1043
957
|
|
|
1044
958
|
}
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
*/
|
|
959
|
+
interface TablesDBUpdateEnumColumnRequestParams {
|
|
960
|
+
databaseId: string;
|
|
961
|
+
tableId: string;
|
|
962
|
+
key: string;
|
|
963
|
+
elements: string[];
|
|
964
|
+
required: boolean;
|
|
965
|
+
xdefault: string;
|
|
966
|
+
newKey?: string;
|
|
967
|
+
overrideForCli?: boolean;
|
|
968
|
+
parseOutput?: boolean;
|
|
969
|
+
sdk?: Client;
|
|
970
|
+
}
|
|
1058
971
|
|
|
1059
|
-
|
|
1060
|
-
* @param {TablesDBUpdateEnumColumnRequestParams} params
|
|
1061
|
-
*/
|
|
1062
|
-
const tablesDBUpdateEnumColumn = async ({databaseId,tableId,key,elements,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
972
|
+
export const tablesDBUpdateEnumColumn = async ({databaseId,tableId,key,elements,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateEnumColumnRequestParams): Promise<any> => {
|
|
1063
973
|
let client = !sdk ? await sdkForProject() :
|
|
1064
974
|
sdk;
|
|
1065
975
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1091,25 +1001,21 @@ const tablesDBUpdateEnumColumn = async ({databaseId,tableId,key,elements,require
|
|
|
1091
1001
|
return response;
|
|
1092
1002
|
|
|
1093
1003
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
*/
|
|
1004
|
+
interface TablesDBCreateFloatColumnRequestParams {
|
|
1005
|
+
databaseId: string;
|
|
1006
|
+
tableId: string;
|
|
1007
|
+
key: string;
|
|
1008
|
+
required: boolean;
|
|
1009
|
+
min?: number;
|
|
1010
|
+
max?: number;
|
|
1011
|
+
xdefault?: number;
|
|
1012
|
+
array?: boolean;
|
|
1013
|
+
overrideForCli?: boolean;
|
|
1014
|
+
parseOutput?: boolean;
|
|
1015
|
+
sdk?: Client;
|
|
1016
|
+
}
|
|
1108
1017
|
|
|
1109
|
-
|
|
1110
|
-
* @param {TablesDBCreateFloatColumnRequestParams} params
|
|
1111
|
-
*/
|
|
1112
|
-
const tablesDBCreateFloatColumn = async ({databaseId,tableId,key,required,min,max,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1018
|
+
export const tablesDBCreateFloatColumn = async ({databaseId,tableId,key,required,min,max,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateFloatColumnRequestParams): Promise<any> => {
|
|
1113
1019
|
let client = !sdk ? await sdkForProject() :
|
|
1114
1020
|
sdk;
|
|
1115
1021
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1146,25 +1052,21 @@ const tablesDBCreateFloatColumn = async ({databaseId,tableId,key,required,min,ma
|
|
|
1146
1052
|
return response;
|
|
1147
1053
|
|
|
1148
1054
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
*/
|
|
1055
|
+
interface TablesDBUpdateFloatColumnRequestParams {
|
|
1056
|
+
databaseId: string;
|
|
1057
|
+
tableId: string;
|
|
1058
|
+
key: string;
|
|
1059
|
+
required: boolean;
|
|
1060
|
+
xdefault: number;
|
|
1061
|
+
min?: number;
|
|
1062
|
+
max?: number;
|
|
1063
|
+
newKey?: string;
|
|
1064
|
+
overrideForCli?: boolean;
|
|
1065
|
+
parseOutput?: boolean;
|
|
1066
|
+
sdk?: Client;
|
|
1067
|
+
}
|
|
1163
1068
|
|
|
1164
|
-
|
|
1165
|
-
* @param {TablesDBUpdateFloatColumnRequestParams} params
|
|
1166
|
-
*/
|
|
1167
|
-
const tablesDBUpdateFloatColumn = async ({databaseId,tableId,key,required,xdefault,min,max,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1069
|
+
export const tablesDBUpdateFloatColumn = async ({databaseId,tableId,key,required,xdefault,min,max,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateFloatColumnRequestParams): Promise<any> => {
|
|
1168
1070
|
let client = !sdk ? await sdkForProject() :
|
|
1169
1071
|
sdk;
|
|
1170
1072
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1198,25 +1100,21 @@ const tablesDBUpdateFloatColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
1198
1100
|
return response;
|
|
1199
1101
|
|
|
1200
1102
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
*/
|
|
1103
|
+
interface TablesDBCreateIntegerColumnRequestParams {
|
|
1104
|
+
databaseId: string;
|
|
1105
|
+
tableId: string;
|
|
1106
|
+
key: string;
|
|
1107
|
+
required: boolean;
|
|
1108
|
+
min?: number;
|
|
1109
|
+
max?: number;
|
|
1110
|
+
xdefault?: number;
|
|
1111
|
+
array?: boolean;
|
|
1112
|
+
overrideForCli?: boolean;
|
|
1113
|
+
parseOutput?: boolean;
|
|
1114
|
+
sdk?: Client;
|
|
1115
|
+
}
|
|
1215
1116
|
|
|
1216
|
-
|
|
1217
|
-
* @param {TablesDBCreateIntegerColumnRequestParams} params
|
|
1218
|
-
*/
|
|
1219
|
-
const tablesDBCreateIntegerColumn = async ({databaseId,tableId,key,required,min,max,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1117
|
+
export const tablesDBCreateIntegerColumn = async ({databaseId,tableId,key,required,min,max,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateIntegerColumnRequestParams): Promise<any> => {
|
|
1220
1118
|
let client = !sdk ? await sdkForProject() :
|
|
1221
1119
|
sdk;
|
|
1222
1120
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1253,25 +1151,21 @@ const tablesDBCreateIntegerColumn = async ({databaseId,tableId,key,required,min,
|
|
|
1253
1151
|
return response;
|
|
1254
1152
|
|
|
1255
1153
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
*/
|
|
1154
|
+
interface TablesDBUpdateIntegerColumnRequestParams {
|
|
1155
|
+
databaseId: string;
|
|
1156
|
+
tableId: string;
|
|
1157
|
+
key: string;
|
|
1158
|
+
required: boolean;
|
|
1159
|
+
xdefault: number;
|
|
1160
|
+
min?: number;
|
|
1161
|
+
max?: number;
|
|
1162
|
+
newKey?: string;
|
|
1163
|
+
overrideForCli?: boolean;
|
|
1164
|
+
parseOutput?: boolean;
|
|
1165
|
+
sdk?: Client;
|
|
1166
|
+
}
|
|
1270
1167
|
|
|
1271
|
-
|
|
1272
|
-
* @param {TablesDBUpdateIntegerColumnRequestParams} params
|
|
1273
|
-
*/
|
|
1274
|
-
const tablesDBUpdateIntegerColumn = async ({databaseId,tableId,key,required,xdefault,min,max,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1168
|
+
export const tablesDBUpdateIntegerColumn = async ({databaseId,tableId,key,required,xdefault,min,max,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateIntegerColumnRequestParams): Promise<any> => {
|
|
1275
1169
|
let client = !sdk ? await sdkForProject() :
|
|
1276
1170
|
sdk;
|
|
1277
1171
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1305,23 +1199,19 @@ const tablesDBUpdateIntegerColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
1305
1199
|
return response;
|
|
1306
1200
|
|
|
1307
1201
|
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
*/
|
|
1202
|
+
interface TablesDBCreateIpColumnRequestParams {
|
|
1203
|
+
databaseId: string;
|
|
1204
|
+
tableId: string;
|
|
1205
|
+
key: string;
|
|
1206
|
+
required: boolean;
|
|
1207
|
+
xdefault?: string;
|
|
1208
|
+
array?: boolean;
|
|
1209
|
+
overrideForCli?: boolean;
|
|
1210
|
+
parseOutput?: boolean;
|
|
1211
|
+
sdk?: Client;
|
|
1212
|
+
}
|
|
1320
1213
|
|
|
1321
|
-
|
|
1322
|
-
* @param {TablesDBCreateIpColumnRequestParams} params
|
|
1323
|
-
*/
|
|
1324
|
-
const tablesDBCreateIpColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1214
|
+
export const tablesDBCreateIpColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateIpColumnRequestParams): Promise<any> => {
|
|
1325
1215
|
let client = !sdk ? await sdkForProject() :
|
|
1326
1216
|
sdk;
|
|
1327
1217
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1352,23 +1242,19 @@ const tablesDBCreateIpColumn = async ({databaseId,tableId,key,required,xdefault,
|
|
|
1352
1242
|
return response;
|
|
1353
1243
|
|
|
1354
1244
|
}
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
*/
|
|
1245
|
+
interface TablesDBUpdateIpColumnRequestParams {
|
|
1246
|
+
databaseId: string;
|
|
1247
|
+
tableId: string;
|
|
1248
|
+
key: string;
|
|
1249
|
+
required: boolean;
|
|
1250
|
+
xdefault: string;
|
|
1251
|
+
newKey?: string;
|
|
1252
|
+
overrideForCli?: boolean;
|
|
1253
|
+
parseOutput?: boolean;
|
|
1254
|
+
sdk?: Client;
|
|
1255
|
+
}
|
|
1367
1256
|
|
|
1368
|
-
|
|
1369
|
-
* @param {TablesDBUpdateIpColumnRequestParams} params
|
|
1370
|
-
*/
|
|
1371
|
-
const tablesDBUpdateIpColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1257
|
+
export const tablesDBUpdateIpColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateIpColumnRequestParams): Promise<any> => {
|
|
1372
1258
|
let client = !sdk ? await sdkForProject() :
|
|
1373
1259
|
sdk;
|
|
1374
1260
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1396,22 +1282,18 @@ const tablesDBUpdateIpColumn = async ({databaseId,tableId,key,required,xdefault,
|
|
|
1396
1282
|
return response;
|
|
1397
1283
|
|
|
1398
1284
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
*/
|
|
1285
|
+
interface TablesDBCreateLineColumnRequestParams {
|
|
1286
|
+
databaseId: string;
|
|
1287
|
+
tableId: string;
|
|
1288
|
+
key: string;
|
|
1289
|
+
required: boolean;
|
|
1290
|
+
xdefault?: any[];
|
|
1291
|
+
overrideForCli?: boolean;
|
|
1292
|
+
parseOutput?: boolean;
|
|
1293
|
+
sdk?: Client;
|
|
1294
|
+
}
|
|
1410
1295
|
|
|
1411
|
-
|
|
1412
|
-
* @param {TablesDBCreateLineColumnRequestParams} params
|
|
1413
|
-
*/
|
|
1414
|
-
const tablesDBCreateLineColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1296
|
+
export const tablesDBCreateLineColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateLineColumnRequestParams): Promise<any> => {
|
|
1415
1297
|
let client = !sdk ? await sdkForProject() :
|
|
1416
1298
|
sdk;
|
|
1417
1299
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1440,23 +1322,19 @@ const tablesDBCreateLineColumn = async ({databaseId,tableId,key,required,xdefaul
|
|
|
1440
1322
|
return response;
|
|
1441
1323
|
|
|
1442
1324
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
*/
|
|
1325
|
+
interface TablesDBUpdateLineColumnRequestParams {
|
|
1326
|
+
databaseId: string;
|
|
1327
|
+
tableId: string;
|
|
1328
|
+
key: string;
|
|
1329
|
+
required: boolean;
|
|
1330
|
+
xdefault?: any[];
|
|
1331
|
+
newKey?: string;
|
|
1332
|
+
overrideForCli?: boolean;
|
|
1333
|
+
parseOutput?: boolean;
|
|
1334
|
+
sdk?: Client;
|
|
1335
|
+
}
|
|
1455
1336
|
|
|
1456
|
-
|
|
1457
|
-
* @param {TablesDBUpdateLineColumnRequestParams} params
|
|
1458
|
-
*/
|
|
1459
|
-
const tablesDBUpdateLineColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1337
|
+
export const tablesDBUpdateLineColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateLineColumnRequestParams): Promise<any> => {
|
|
1460
1338
|
let client = !sdk ? await sdkForProject() :
|
|
1461
1339
|
sdk;
|
|
1462
1340
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1485,22 +1363,18 @@ const tablesDBUpdateLineColumn = async ({databaseId,tableId,key,required,xdefaul
|
|
|
1485
1363
|
return response;
|
|
1486
1364
|
|
|
1487
1365
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
*/
|
|
1366
|
+
interface TablesDBCreatePointColumnRequestParams {
|
|
1367
|
+
databaseId: string;
|
|
1368
|
+
tableId: string;
|
|
1369
|
+
key: string;
|
|
1370
|
+
required: boolean;
|
|
1371
|
+
xdefault?: any[];
|
|
1372
|
+
overrideForCli?: boolean;
|
|
1373
|
+
parseOutput?: boolean;
|
|
1374
|
+
sdk?: Client;
|
|
1375
|
+
}
|
|
1499
1376
|
|
|
1500
|
-
|
|
1501
|
-
* @param {TablesDBCreatePointColumnRequestParams} params
|
|
1502
|
-
*/
|
|
1503
|
-
const tablesDBCreatePointColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1377
|
+
export const tablesDBCreatePointColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreatePointColumnRequestParams): Promise<any> => {
|
|
1504
1378
|
let client = !sdk ? await sdkForProject() :
|
|
1505
1379
|
sdk;
|
|
1506
1380
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1529,23 +1403,19 @@ const tablesDBCreatePointColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
1529
1403
|
return response;
|
|
1530
1404
|
|
|
1531
1405
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
*/
|
|
1406
|
+
interface TablesDBUpdatePointColumnRequestParams {
|
|
1407
|
+
databaseId: string;
|
|
1408
|
+
tableId: string;
|
|
1409
|
+
key: string;
|
|
1410
|
+
required: boolean;
|
|
1411
|
+
xdefault?: any[];
|
|
1412
|
+
newKey?: string;
|
|
1413
|
+
overrideForCli?: boolean;
|
|
1414
|
+
parseOutput?: boolean;
|
|
1415
|
+
sdk?: Client;
|
|
1416
|
+
}
|
|
1544
1417
|
|
|
1545
|
-
|
|
1546
|
-
* @param {TablesDBUpdatePointColumnRequestParams} params
|
|
1547
|
-
*/
|
|
1548
|
-
const tablesDBUpdatePointColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1418
|
+
export const tablesDBUpdatePointColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdatePointColumnRequestParams): Promise<any> => {
|
|
1549
1419
|
let client = !sdk ? await sdkForProject() :
|
|
1550
1420
|
sdk;
|
|
1551
1421
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1574,22 +1444,18 @@ const tablesDBUpdatePointColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
1574
1444
|
return response;
|
|
1575
1445
|
|
|
1576
1446
|
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
*/
|
|
1447
|
+
interface TablesDBCreatePolygonColumnRequestParams {
|
|
1448
|
+
databaseId: string;
|
|
1449
|
+
tableId: string;
|
|
1450
|
+
key: string;
|
|
1451
|
+
required: boolean;
|
|
1452
|
+
xdefault?: any[];
|
|
1453
|
+
overrideForCli?: boolean;
|
|
1454
|
+
parseOutput?: boolean;
|
|
1455
|
+
sdk?: Client;
|
|
1456
|
+
}
|
|
1588
1457
|
|
|
1589
|
-
|
|
1590
|
-
* @param {TablesDBCreatePolygonColumnRequestParams} params
|
|
1591
|
-
*/
|
|
1592
|
-
const tablesDBCreatePolygonColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1458
|
+
export const tablesDBCreatePolygonColumn = async ({databaseId,tableId,key,required,xdefault,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreatePolygonColumnRequestParams): Promise<any> => {
|
|
1593
1459
|
let client = !sdk ? await sdkForProject() :
|
|
1594
1460
|
sdk;
|
|
1595
1461
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1618,23 +1484,19 @@ const tablesDBCreatePolygonColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
1618
1484
|
return response;
|
|
1619
1485
|
|
|
1620
1486
|
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
*/
|
|
1487
|
+
interface TablesDBUpdatePolygonColumnRequestParams {
|
|
1488
|
+
databaseId: string;
|
|
1489
|
+
tableId: string;
|
|
1490
|
+
key: string;
|
|
1491
|
+
required: boolean;
|
|
1492
|
+
xdefault?: any[];
|
|
1493
|
+
newKey?: string;
|
|
1494
|
+
overrideForCli?: boolean;
|
|
1495
|
+
parseOutput?: boolean;
|
|
1496
|
+
sdk?: Client;
|
|
1497
|
+
}
|
|
1633
1498
|
|
|
1634
|
-
|
|
1635
|
-
* @param {TablesDBUpdatePolygonColumnRequestParams} params
|
|
1636
|
-
*/
|
|
1637
|
-
const tablesDBUpdatePolygonColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1499
|
+
export const tablesDBUpdatePolygonColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdatePolygonColumnRequestParams): Promise<any> => {
|
|
1638
1500
|
let client = !sdk ? await sdkForProject() :
|
|
1639
1501
|
sdk;
|
|
1640
1502
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1663,25 +1525,21 @@ const tablesDBUpdatePolygonColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
1663
1525
|
return response;
|
|
1664
1526
|
|
|
1665
1527
|
}
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
*/
|
|
1528
|
+
interface TablesDBCreateRelationshipColumnRequestParams {
|
|
1529
|
+
databaseId: string;
|
|
1530
|
+
tableId: string;
|
|
1531
|
+
relatedTableId: string;
|
|
1532
|
+
type: RelationshipType;
|
|
1533
|
+
twoWay?: boolean;
|
|
1534
|
+
key?: string;
|
|
1535
|
+
twoWayKey?: string;
|
|
1536
|
+
onDelete?: RelationMutate;
|
|
1537
|
+
overrideForCli?: boolean;
|
|
1538
|
+
parseOutput?: boolean;
|
|
1539
|
+
sdk?: Client;
|
|
1540
|
+
}
|
|
1680
1541
|
|
|
1681
|
-
|
|
1682
|
-
* @param {TablesDBCreateRelationshipColumnRequestParams} params
|
|
1683
|
-
*/
|
|
1684
|
-
const tablesDBCreateRelationshipColumn = async ({databaseId,tableId,relatedTableId,type,twoWay,key,twoWayKey,onDelete,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1542
|
+
export const tablesDBCreateRelationshipColumn = async ({databaseId,tableId,relatedTableId,type,twoWay,key,twoWayKey,onDelete,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateRelationshipColumnRequestParams): Promise<any> => {
|
|
1685
1543
|
let client = !sdk ? await sdkForProject() :
|
|
1686
1544
|
sdk;
|
|
1687
1545
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1718,25 +1576,21 @@ const tablesDBCreateRelationshipColumn = async ({databaseId,tableId,relatedTable
|
|
|
1718
1576
|
return response;
|
|
1719
1577
|
|
|
1720
1578
|
}
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
*/
|
|
1579
|
+
interface TablesDBCreateStringColumnRequestParams {
|
|
1580
|
+
databaseId: string;
|
|
1581
|
+
tableId: string;
|
|
1582
|
+
key: string;
|
|
1583
|
+
size: number;
|
|
1584
|
+
required: boolean;
|
|
1585
|
+
xdefault?: string;
|
|
1586
|
+
array?: boolean;
|
|
1587
|
+
encrypt?: boolean;
|
|
1588
|
+
overrideForCli?: boolean;
|
|
1589
|
+
parseOutput?: boolean;
|
|
1590
|
+
sdk?: Client;
|
|
1591
|
+
}
|
|
1735
1592
|
|
|
1736
|
-
|
|
1737
|
-
* @param {TablesDBCreateStringColumnRequestParams} params
|
|
1738
|
-
*/
|
|
1739
|
-
const tablesDBCreateStringColumn = async ({databaseId,tableId,key,size,required,xdefault,array,encrypt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1593
|
+
export const tablesDBCreateStringColumn = async ({databaseId,tableId,key,size,required,xdefault,array,encrypt,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateStringColumnRequestParams): Promise<any> => {
|
|
1740
1594
|
let client = !sdk ? await sdkForProject() :
|
|
1741
1595
|
sdk;
|
|
1742
1596
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1773,24 +1627,20 @@ const tablesDBCreateStringColumn = async ({databaseId,tableId,key,size,required,
|
|
|
1773
1627
|
return response;
|
|
1774
1628
|
|
|
1775
1629
|
}
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
*/
|
|
1630
|
+
interface TablesDBUpdateStringColumnRequestParams {
|
|
1631
|
+
databaseId: string;
|
|
1632
|
+
tableId: string;
|
|
1633
|
+
key: string;
|
|
1634
|
+
required: boolean;
|
|
1635
|
+
xdefault: string;
|
|
1636
|
+
size?: number;
|
|
1637
|
+
newKey?: string;
|
|
1638
|
+
overrideForCli?: boolean;
|
|
1639
|
+
parseOutput?: boolean;
|
|
1640
|
+
sdk?: Client;
|
|
1641
|
+
}
|
|
1789
1642
|
|
|
1790
|
-
|
|
1791
|
-
* @param {TablesDBUpdateStringColumnRequestParams} params
|
|
1792
|
-
*/
|
|
1793
|
-
const tablesDBUpdateStringColumn = async ({databaseId,tableId,key,required,xdefault,size,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1643
|
+
export const tablesDBUpdateStringColumn = async ({databaseId,tableId,key,required,xdefault,size,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateStringColumnRequestParams): Promise<any> => {
|
|
1794
1644
|
let client = !sdk ? await sdkForProject() :
|
|
1795
1645
|
sdk;
|
|
1796
1646
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1821,23 +1671,19 @@ const tablesDBUpdateStringColumn = async ({databaseId,tableId,key,required,xdefa
|
|
|
1821
1671
|
return response;
|
|
1822
1672
|
|
|
1823
1673
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
*/
|
|
1674
|
+
interface TablesDBCreateUrlColumnRequestParams {
|
|
1675
|
+
databaseId: string;
|
|
1676
|
+
tableId: string;
|
|
1677
|
+
key: string;
|
|
1678
|
+
required: boolean;
|
|
1679
|
+
xdefault?: string;
|
|
1680
|
+
array?: boolean;
|
|
1681
|
+
overrideForCli?: boolean;
|
|
1682
|
+
parseOutput?: boolean;
|
|
1683
|
+
sdk?: Client;
|
|
1684
|
+
}
|
|
1836
1685
|
|
|
1837
|
-
|
|
1838
|
-
* @param {TablesDBCreateUrlColumnRequestParams} params
|
|
1839
|
-
*/
|
|
1840
|
-
const tablesDBCreateUrlColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1686
|
+
export const tablesDBCreateUrlColumn = async ({databaseId,tableId,key,required,xdefault,array,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateUrlColumnRequestParams): Promise<any> => {
|
|
1841
1687
|
let client = !sdk ? await sdkForProject() :
|
|
1842
1688
|
sdk;
|
|
1843
1689
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -1868,23 +1714,19 @@ const tablesDBCreateUrlColumn = async ({databaseId,tableId,key,required,xdefault
|
|
|
1868
1714
|
return response;
|
|
1869
1715
|
|
|
1870
1716
|
}
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
*/
|
|
1717
|
+
interface TablesDBUpdateUrlColumnRequestParams {
|
|
1718
|
+
databaseId: string;
|
|
1719
|
+
tableId: string;
|
|
1720
|
+
key: string;
|
|
1721
|
+
required: boolean;
|
|
1722
|
+
xdefault: string;
|
|
1723
|
+
newKey?: string;
|
|
1724
|
+
overrideForCli?: boolean;
|
|
1725
|
+
parseOutput?: boolean;
|
|
1726
|
+
sdk?: Client;
|
|
1727
|
+
}
|
|
1883
1728
|
|
|
1884
|
-
|
|
1885
|
-
* @param {TablesDBUpdateUrlColumnRequestParams} params
|
|
1886
|
-
*/
|
|
1887
|
-
const tablesDBUpdateUrlColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1729
|
+
export const tablesDBUpdateUrlColumn = async ({databaseId,tableId,key,required,xdefault,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateUrlColumnRequestParams): Promise<any> => {
|
|
1888
1730
|
let client = !sdk ? await sdkForProject() :
|
|
1889
1731
|
sdk;
|
|
1890
1732
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1912,20 +1754,17 @@ const tablesDBUpdateUrlColumn = async ({databaseId,tableId,key,required,xdefault
|
|
|
1912
1754
|
return response;
|
|
1913
1755
|
|
|
1914
1756
|
}
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1757
|
+
interface TablesDBGetColumnRequestParams {
|
|
1758
|
+
databaseId: string;
|
|
1759
|
+
tableId: string;
|
|
1760
|
+
key: string;
|
|
1761
|
+
overrideForCli?: boolean;
|
|
1762
|
+
parseOutput?: boolean;
|
|
1763
|
+
sdk?: Client;
|
|
1764
|
+
console?: boolean;
|
|
1765
|
+
}
|
|
1924
1766
|
|
|
1925
|
-
|
|
1926
|
-
* @param {TablesDBGetColumnRequestParams} params
|
|
1927
|
-
*/
|
|
1928
|
-
const tablesDBGetColumn = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
1767
|
+
export const tablesDBGetColumn = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetColumnRequestParams): Promise<any> => {
|
|
1929
1768
|
let client = !sdk ? await sdkForProject() :
|
|
1930
1769
|
sdk;
|
|
1931
1770
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1937,7 +1776,7 @@ const tablesDBGetColumn = async ({databaseId,tableId,key,parseOutput = true, ove
|
|
|
1937
1776
|
}, payload);
|
|
1938
1777
|
|
|
1939
1778
|
if (parseOutput) {
|
|
1940
|
-
if(
|
|
1779
|
+
if(showConsole) {
|
|
1941
1780
|
showConsoleLink('tablesDB', 'getColumn', databaseId, tableId);
|
|
1942
1781
|
} else {
|
|
1943
1782
|
parse(response)
|
|
@@ -1947,20 +1786,16 @@ const tablesDBGetColumn = async ({databaseId,tableId,key,parseOutput = true, ove
|
|
|
1947
1786
|
return response;
|
|
1948
1787
|
|
|
1949
1788
|
}
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
*/
|
|
1789
|
+
interface TablesDBDeleteColumnRequestParams {
|
|
1790
|
+
databaseId: string;
|
|
1791
|
+
tableId: string;
|
|
1792
|
+
key: string;
|
|
1793
|
+
overrideForCli?: boolean;
|
|
1794
|
+
parseOutput?: boolean;
|
|
1795
|
+
sdk?: Client;
|
|
1796
|
+
}
|
|
1959
1797
|
|
|
1960
|
-
|
|
1961
|
-
* @param {TablesDBDeleteColumnRequestParams} params
|
|
1962
|
-
*/
|
|
1963
|
-
const tablesDBDeleteColumn = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1798
|
+
export const tablesDBDeleteColumn = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteColumnRequestParams): Promise<any> => {
|
|
1964
1799
|
let client = !sdk ? await sdkForProject() :
|
|
1965
1800
|
sdk;
|
|
1966
1801
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -1979,22 +1814,18 @@ const tablesDBDeleteColumn = async ({databaseId,tableId,key,parseOutput = true,
|
|
|
1979
1814
|
return response;
|
|
1980
1815
|
|
|
1981
1816
|
}
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
*/
|
|
1817
|
+
interface TablesDBUpdateRelationshipColumnRequestParams {
|
|
1818
|
+
databaseId: string;
|
|
1819
|
+
tableId: string;
|
|
1820
|
+
key: string;
|
|
1821
|
+
onDelete?: RelationMutate;
|
|
1822
|
+
newKey?: string;
|
|
1823
|
+
overrideForCli?: boolean;
|
|
1824
|
+
parseOutput?: boolean;
|
|
1825
|
+
sdk?: Client;
|
|
1826
|
+
}
|
|
1993
1827
|
|
|
1994
|
-
|
|
1995
|
-
* @param {TablesDBUpdateRelationshipColumnRequestParams} params
|
|
1996
|
-
*/
|
|
1997
|
-
const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1828
|
+
export const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete,newKey,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateRelationshipColumnRequestParams): Promise<any> => {
|
|
1998
1829
|
let client = !sdk ? await sdkForProject() :
|
|
1999
1830
|
sdk;
|
|
2000
1831
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}/relationship'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -2019,21 +1850,18 @@ const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete
|
|
|
2019
1850
|
return response;
|
|
2020
1851
|
|
|
2021
1852
|
}
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
1853
|
+
interface TablesDBListIndexesRequestParams {
|
|
1854
|
+
databaseId: string;
|
|
1855
|
+
tableId: string;
|
|
1856
|
+
queries?: string[];
|
|
1857
|
+
total?: boolean;
|
|
1858
|
+
overrideForCli?: boolean;
|
|
1859
|
+
parseOutput?: boolean;
|
|
1860
|
+
sdk?: Client;
|
|
1861
|
+
console?: boolean;
|
|
1862
|
+
}
|
|
2032
1863
|
|
|
2033
|
-
|
|
2034
|
-
* @param {TablesDBListIndexesRequestParams} params
|
|
2035
|
-
*/
|
|
2036
|
-
const tablesDBListIndexes = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
1864
|
+
export const tablesDBListIndexes = async ({databaseId,tableId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListIndexesRequestParams): Promise<any> => {
|
|
2037
1865
|
let client = !sdk ? await sdkForProject() :
|
|
2038
1866
|
sdk;
|
|
2039
1867
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/indexes'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2051,7 +1879,7 @@ const tablesDBListIndexes = async ({databaseId,tableId,queries,total,parseOutput
|
|
|
2051
1879
|
}, payload);
|
|
2052
1880
|
|
|
2053
1881
|
if (parseOutput) {
|
|
2054
|
-
if(
|
|
1882
|
+
if(showConsole) {
|
|
2055
1883
|
showConsoleLink('tablesDB', 'listIndexes', databaseId, tableId);
|
|
2056
1884
|
} else {
|
|
2057
1885
|
parse(response)
|
|
@@ -2061,24 +1889,20 @@ const tablesDBListIndexes = async ({databaseId,tableId,queries,total,parseOutput
|
|
|
2061
1889
|
return response;
|
|
2062
1890
|
|
|
2063
1891
|
}
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
*/
|
|
1892
|
+
interface TablesDBCreateIndexRequestParams {
|
|
1893
|
+
databaseId: string;
|
|
1894
|
+
tableId: string;
|
|
1895
|
+
key: string;
|
|
1896
|
+
type: IndexType;
|
|
1897
|
+
columns: string[];
|
|
1898
|
+
orders?: string[];
|
|
1899
|
+
lengths?: number[];
|
|
1900
|
+
overrideForCli?: boolean;
|
|
1901
|
+
parseOutput?: boolean;
|
|
1902
|
+
sdk?: Client;
|
|
1903
|
+
}
|
|
2077
1904
|
|
|
2078
|
-
|
|
2079
|
-
* @param {TablesDBCreateIndexRequestParams} params
|
|
2080
|
-
*/
|
|
2081
|
-
const tablesDBCreateIndex = async ({databaseId,tableId,key,type,columns,orders,lengths,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1905
|
+
export const tablesDBCreateIndex = async ({databaseId,tableId,key,type,columns,orders,lengths,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateIndexRequestParams): Promise<any> => {
|
|
2082
1906
|
let client = !sdk ? await sdkForProject() :
|
|
2083
1907
|
sdk;
|
|
2084
1908
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/indexes'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2115,20 +1939,16 @@ const tablesDBCreateIndex = async ({databaseId,tableId,key,type,columns,orders,l
|
|
|
2115
1939
|
return response;
|
|
2116
1940
|
|
|
2117
1941
|
}
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
*/
|
|
1942
|
+
interface TablesDBGetIndexRequestParams {
|
|
1943
|
+
databaseId: string;
|
|
1944
|
+
tableId: string;
|
|
1945
|
+
key: string;
|
|
1946
|
+
overrideForCli?: boolean;
|
|
1947
|
+
parseOutput?: boolean;
|
|
1948
|
+
sdk?: Client;
|
|
1949
|
+
}
|
|
2127
1950
|
|
|
2128
|
-
|
|
2129
|
-
* @param {TablesDBGetIndexRequestParams} params
|
|
2130
|
-
*/
|
|
2131
|
-
const tablesDBGetIndex = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1951
|
+
export const tablesDBGetIndex = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBGetIndexRequestParams): Promise<any> => {
|
|
2132
1952
|
let client = !sdk ? await sdkForProject() :
|
|
2133
1953
|
sdk;
|
|
2134
1954
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -2146,20 +1966,16 @@ const tablesDBGetIndex = async ({databaseId,tableId,key,parseOutput = true, over
|
|
|
2146
1966
|
return response;
|
|
2147
1967
|
|
|
2148
1968
|
}
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
*/
|
|
1969
|
+
interface TablesDBDeleteIndexRequestParams {
|
|
1970
|
+
databaseId: string;
|
|
1971
|
+
tableId: string;
|
|
1972
|
+
key: string;
|
|
1973
|
+
overrideForCli?: boolean;
|
|
1974
|
+
parseOutput?: boolean;
|
|
1975
|
+
sdk?: Client;
|
|
1976
|
+
}
|
|
2158
1977
|
|
|
2159
|
-
|
|
2160
|
-
* @param {TablesDBDeleteIndexRequestParams} params
|
|
2161
|
-
*/
|
|
2162
|
-
const tablesDBDeleteIndex = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1978
|
+
export const tablesDBDeleteIndex = async ({databaseId,tableId,key,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteIndexRequestParams): Promise<any> => {
|
|
2163
1979
|
let client = !sdk ? await sdkForProject() :
|
|
2164
1980
|
sdk;
|
|
2165
1981
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{key}', key);
|
|
@@ -2178,20 +1994,17 @@ const tablesDBDeleteIndex = async ({databaseId,tableId,key,parseOutput = true, o
|
|
|
2178
1994
|
return response;
|
|
2179
1995
|
|
|
2180
1996
|
}
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
1997
|
+
interface TablesDBListTableLogsRequestParams {
|
|
1998
|
+
databaseId: string;
|
|
1999
|
+
tableId: string;
|
|
2000
|
+
queries?: string[];
|
|
2001
|
+
overrideForCli?: boolean;
|
|
2002
|
+
parseOutput?: boolean;
|
|
2003
|
+
sdk?: Client;
|
|
2004
|
+
console?: boolean;
|
|
2005
|
+
}
|
|
2190
2006
|
|
|
2191
|
-
|
|
2192
|
-
* @param {TablesDBListTableLogsRequestParams} params
|
|
2193
|
-
*/
|
|
2194
|
-
const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2007
|
+
export const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListTableLogsRequestParams): Promise<any> => {
|
|
2195
2008
|
let client = !sdk ? await sdkForProject() :
|
|
2196
2009
|
sdk;
|
|
2197
2010
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/logs'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2206,7 +2019,7 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t
|
|
|
2206
2019
|
}, payload);
|
|
2207
2020
|
|
|
2208
2021
|
if (parseOutput) {
|
|
2209
|
-
if(
|
|
2022
|
+
if(showConsole) {
|
|
2210
2023
|
showConsoleLink('tablesDB', 'listTableLogs', databaseId, tableId);
|
|
2211
2024
|
} else {
|
|
2212
2025
|
parse(response)
|
|
@@ -2216,22 +2029,19 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t
|
|
|
2216
2029
|
return response;
|
|
2217
2030
|
|
|
2218
2031
|
}
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2032
|
+
interface TablesDBListRowsRequestParams {
|
|
2033
|
+
databaseId: string;
|
|
2034
|
+
tableId: string;
|
|
2035
|
+
queries?: string[];
|
|
2036
|
+
transactionId?: string;
|
|
2037
|
+
total?: boolean;
|
|
2038
|
+
overrideForCli?: boolean;
|
|
2039
|
+
parseOutput?: boolean;
|
|
2040
|
+
sdk?: Client;
|
|
2041
|
+
console?: boolean;
|
|
2042
|
+
}
|
|
2230
2043
|
|
|
2231
|
-
|
|
2232
|
-
* @param {TablesDBListRowsRequestParams} params
|
|
2233
|
-
*/
|
|
2234
|
-
const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2044
|
+
export const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,total,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListRowsRequestParams): Promise<any> => {
|
|
2235
2045
|
let client = !sdk ? await sdkForProject() :
|
|
2236
2046
|
sdk;
|
|
2237
2047
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2252,7 +2062,7 @@ const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,total,
|
|
|
2252
2062
|
}, payload);
|
|
2253
2063
|
|
|
2254
2064
|
if (parseOutput) {
|
|
2255
|
-
if(
|
|
2065
|
+
if(showConsole) {
|
|
2256
2066
|
showConsoleLink('tablesDB', 'listRows', databaseId, tableId);
|
|
2257
2067
|
} else {
|
|
2258
2068
|
parse(response)
|
|
@@ -2262,23 +2072,19 @@ const tablesDBListRows = async ({databaseId,tableId,queries,transactionId,total,
|
|
|
2262
2072
|
return response;
|
|
2263
2073
|
|
|
2264
2074
|
}
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
*/
|
|
2075
|
+
interface TablesDBCreateRowRequestParams {
|
|
2076
|
+
databaseId: string;
|
|
2077
|
+
tableId: string;
|
|
2078
|
+
rowId: string;
|
|
2079
|
+
data: object;
|
|
2080
|
+
permissions?: string[];
|
|
2081
|
+
transactionId?: string;
|
|
2082
|
+
overrideForCli?: boolean;
|
|
2083
|
+
parseOutput?: boolean;
|
|
2084
|
+
sdk?: Client;
|
|
2085
|
+
}
|
|
2277
2086
|
|
|
2278
|
-
|
|
2279
|
-
* @param {TablesDBCreateRowRequestParams} params
|
|
2280
|
-
*/
|
|
2281
|
-
const tablesDBCreateRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2087
|
+
export const tablesDBCreateRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateRowRequestParams): Promise<any> => {
|
|
2282
2088
|
let client = !sdk ? await sdkForProject() :
|
|
2283
2089
|
sdk;
|
|
2284
2090
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2310,21 +2116,17 @@ const tablesDBCreateRow = async ({databaseId,tableId,rowId,data,permissions,tran
|
|
|
2310
2116
|
return response;
|
|
2311
2117
|
|
|
2312
2118
|
}
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
*/
|
|
2119
|
+
interface TablesDBCreateRowsRequestParams {
|
|
2120
|
+
databaseId: string;
|
|
2121
|
+
tableId: string;
|
|
2122
|
+
rows: object[];
|
|
2123
|
+
transactionId?: string;
|
|
2124
|
+
overrideForCli?: boolean;
|
|
2125
|
+
parseOutput?: boolean;
|
|
2126
|
+
sdk?: Client;
|
|
2127
|
+
}
|
|
2323
2128
|
|
|
2324
|
-
|
|
2325
|
-
* @param {TablesDBCreateRowsRequestParams} params
|
|
2326
|
-
*/
|
|
2327
|
-
const tablesDBCreateRows = async ({databaseId,tableId,rows,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2129
|
+
export const tablesDBCreateRows = async ({databaseId,tableId,rows,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBCreateRowsRequestParams): Promise<any> => {
|
|
2328
2130
|
let client = !sdk ? await sdkForProject() :
|
|
2329
2131
|
sdk;
|
|
2330
2132
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2350,21 +2152,17 @@ const tablesDBCreateRows = async ({databaseId,tableId,rows,transactionId,parseOu
|
|
|
2350
2152
|
return response;
|
|
2351
2153
|
|
|
2352
2154
|
}
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
*/
|
|
2155
|
+
interface TablesDBUpsertRowsRequestParams {
|
|
2156
|
+
databaseId: string;
|
|
2157
|
+
tableId: string;
|
|
2158
|
+
rows: object[];
|
|
2159
|
+
transactionId?: string;
|
|
2160
|
+
overrideForCli?: boolean;
|
|
2161
|
+
parseOutput?: boolean;
|
|
2162
|
+
sdk?: Client;
|
|
2163
|
+
}
|
|
2363
2164
|
|
|
2364
|
-
|
|
2365
|
-
* @param {TablesDBUpsertRowsRequestParams} params
|
|
2366
|
-
*/
|
|
2367
|
-
const tablesDBUpsertRows = async ({databaseId,tableId,rows,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2165
|
+
export const tablesDBUpsertRows = async ({databaseId,tableId,rows,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpsertRowsRequestParams): Promise<any> => {
|
|
2368
2166
|
let client = !sdk ? await sdkForProject() :
|
|
2369
2167
|
sdk;
|
|
2370
2168
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2390,22 +2188,18 @@ const tablesDBUpsertRows = async ({databaseId,tableId,rows,transactionId,parseOu
|
|
|
2390
2188
|
return response;
|
|
2391
2189
|
|
|
2392
2190
|
}
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
*/
|
|
2191
|
+
interface TablesDBUpdateRowsRequestParams {
|
|
2192
|
+
databaseId: string;
|
|
2193
|
+
tableId: string;
|
|
2194
|
+
data?: object;
|
|
2195
|
+
queries?: string[];
|
|
2196
|
+
transactionId?: string;
|
|
2197
|
+
overrideForCli?: boolean;
|
|
2198
|
+
parseOutput?: boolean;
|
|
2199
|
+
sdk?: Client;
|
|
2200
|
+
}
|
|
2404
2201
|
|
|
2405
|
-
|
|
2406
|
-
* @param {TablesDBUpdateRowsRequestParams} params
|
|
2407
|
-
*/
|
|
2408
|
-
const tablesDBUpdateRows = async ({databaseId,tableId,data,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2202
|
+
export const tablesDBUpdateRows = async ({databaseId,tableId,data,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateRowsRequestParams): Promise<any> => {
|
|
2409
2203
|
let client = !sdk ? await sdkForProject() :
|
|
2410
2204
|
sdk;
|
|
2411
2205
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2434,21 +2228,17 @@ const tablesDBUpdateRows = async ({databaseId,tableId,data,queries,transactionId
|
|
|
2434
2228
|
return response;
|
|
2435
2229
|
|
|
2436
2230
|
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
*/
|
|
2231
|
+
interface TablesDBDeleteRowsRequestParams {
|
|
2232
|
+
databaseId: string;
|
|
2233
|
+
tableId: string;
|
|
2234
|
+
queries?: string[];
|
|
2235
|
+
transactionId?: string;
|
|
2236
|
+
overrideForCli?: boolean;
|
|
2237
|
+
parseOutput?: boolean;
|
|
2238
|
+
sdk?: Client;
|
|
2239
|
+
}
|
|
2447
2240
|
|
|
2448
|
-
|
|
2449
|
-
* @param {TablesDBDeleteRowsRequestParams} params
|
|
2450
|
-
*/
|
|
2451
|
-
const tablesDBDeleteRows = async ({databaseId,tableId,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2241
|
+
export const tablesDBDeleteRows = async ({databaseId,tableId,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteRowsRequestParams): Promise<any> => {
|
|
2452
2242
|
let client = !sdk ? await sdkForProject() :
|
|
2453
2243
|
sdk;
|
|
2454
2244
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2474,22 +2264,19 @@ const tablesDBDeleteRows = async ({databaseId,tableId,queries,transactionId,pars
|
|
|
2474
2264
|
return response;
|
|
2475
2265
|
|
|
2476
2266
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2267
|
+
interface TablesDBGetRowRequestParams {
|
|
2268
|
+
databaseId: string;
|
|
2269
|
+
tableId: string;
|
|
2270
|
+
rowId: string;
|
|
2271
|
+
queries?: string[];
|
|
2272
|
+
transactionId?: string;
|
|
2273
|
+
overrideForCli?: boolean;
|
|
2274
|
+
parseOutput?: boolean;
|
|
2275
|
+
sdk?: Client;
|
|
2276
|
+
console?: boolean;
|
|
2277
|
+
}
|
|
2488
2278
|
|
|
2489
|
-
|
|
2490
|
-
* @param {TablesDBGetRowRequestParams} params
|
|
2491
|
-
*/
|
|
2492
|
-
const tablesDBGetRow = async ({databaseId,tableId,rowId,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2279
|
+
export const tablesDBGetRow = async ({databaseId,tableId,rowId,queries,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetRowRequestParams): Promise<any> => {
|
|
2493
2280
|
let client = !sdk ? await sdkForProject() :
|
|
2494
2281
|
sdk;
|
|
2495
2282
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId);
|
|
@@ -2507,7 +2294,7 @@ const tablesDBGetRow = async ({databaseId,tableId,rowId,queries,transactionId,pa
|
|
|
2507
2294
|
}, payload);
|
|
2508
2295
|
|
|
2509
2296
|
if (parseOutput) {
|
|
2510
|
-
if(
|
|
2297
|
+
if(showConsole) {
|
|
2511
2298
|
showConsoleLink('tablesDB', 'getRow', databaseId, tableId, rowId);
|
|
2512
2299
|
} else {
|
|
2513
2300
|
parse(response)
|
|
@@ -2517,23 +2304,19 @@ const tablesDBGetRow = async ({databaseId,tableId,rowId,queries,transactionId,pa
|
|
|
2517
2304
|
return response;
|
|
2518
2305
|
|
|
2519
2306
|
}
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
*/
|
|
2307
|
+
interface TablesDBUpsertRowRequestParams {
|
|
2308
|
+
databaseId: string;
|
|
2309
|
+
tableId: string;
|
|
2310
|
+
rowId: string;
|
|
2311
|
+
data?: object;
|
|
2312
|
+
permissions?: string[];
|
|
2313
|
+
transactionId?: string;
|
|
2314
|
+
overrideForCli?: boolean;
|
|
2315
|
+
parseOutput?: boolean;
|
|
2316
|
+
sdk?: Client;
|
|
2317
|
+
}
|
|
2532
2318
|
|
|
2533
|
-
|
|
2534
|
-
* @param {TablesDBUpsertRowRequestParams} params
|
|
2535
|
-
*/
|
|
2536
|
-
const tablesDBUpsertRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2319
|
+
export const tablesDBUpsertRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpsertRowRequestParams): Promise<any> => {
|
|
2537
2320
|
let client = !sdk ? await sdkForProject() :
|
|
2538
2321
|
sdk;
|
|
2539
2322
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId);
|
|
@@ -2562,23 +2345,19 @@ const tablesDBUpsertRow = async ({databaseId,tableId,rowId,data,permissions,tran
|
|
|
2562
2345
|
return response;
|
|
2563
2346
|
|
|
2564
2347
|
}
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
*/
|
|
2348
|
+
interface TablesDBUpdateRowRequestParams {
|
|
2349
|
+
databaseId: string;
|
|
2350
|
+
tableId: string;
|
|
2351
|
+
rowId: string;
|
|
2352
|
+
data?: object;
|
|
2353
|
+
permissions?: string[];
|
|
2354
|
+
transactionId?: string;
|
|
2355
|
+
overrideForCli?: boolean;
|
|
2356
|
+
parseOutput?: boolean;
|
|
2357
|
+
sdk?: Client;
|
|
2358
|
+
}
|
|
2577
2359
|
|
|
2578
|
-
|
|
2579
|
-
* @param {TablesDBUpdateRowRequestParams} params
|
|
2580
|
-
*/
|
|
2581
|
-
const tablesDBUpdateRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2360
|
+
export const tablesDBUpdateRow = async ({databaseId,tableId,rowId,data,permissions,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBUpdateRowRequestParams): Promise<any> => {
|
|
2582
2361
|
let client = !sdk ? await sdkForProject() :
|
|
2583
2362
|
sdk;
|
|
2584
2363
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId);
|
|
@@ -2607,21 +2386,17 @@ const tablesDBUpdateRow = async ({databaseId,tableId,rowId,data,permissions,tran
|
|
|
2607
2386
|
return response;
|
|
2608
2387
|
|
|
2609
2388
|
}
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
*/
|
|
2389
|
+
interface TablesDBDeleteRowRequestParams {
|
|
2390
|
+
databaseId: string;
|
|
2391
|
+
tableId: string;
|
|
2392
|
+
rowId: string;
|
|
2393
|
+
transactionId?: string;
|
|
2394
|
+
overrideForCli?: boolean;
|
|
2395
|
+
parseOutput?: boolean;
|
|
2396
|
+
sdk?: Client;
|
|
2397
|
+
}
|
|
2620
2398
|
|
|
2621
|
-
|
|
2622
|
-
* @param {TablesDBDeleteRowRequestParams} params
|
|
2623
|
-
*/
|
|
2624
|
-
const tablesDBDeleteRow = async ({databaseId,tableId,rowId,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2399
|
+
export const tablesDBDeleteRow = async ({databaseId,tableId,rowId,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDeleteRowRequestParams): Promise<any> => {
|
|
2625
2400
|
let client = !sdk ? await sdkForProject() :
|
|
2626
2401
|
sdk;
|
|
2627
2402
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId);
|
|
@@ -2643,21 +2418,18 @@ const tablesDBDeleteRow = async ({databaseId,tableId,rowId,transactionId,parseOu
|
|
|
2643
2418
|
return response;
|
|
2644
2419
|
|
|
2645
2420
|
}
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2421
|
+
interface TablesDBListRowLogsRequestParams {
|
|
2422
|
+
databaseId: string;
|
|
2423
|
+
tableId: string;
|
|
2424
|
+
rowId: string;
|
|
2425
|
+
queries?: string[];
|
|
2426
|
+
overrideForCli?: boolean;
|
|
2427
|
+
parseOutput?: boolean;
|
|
2428
|
+
sdk?: Client;
|
|
2429
|
+
console?: boolean;
|
|
2430
|
+
}
|
|
2656
2431
|
|
|
2657
|
-
|
|
2658
|
-
* @param {TablesDBListRowLogsRequestParams} params
|
|
2659
|
-
*/
|
|
2660
|
-
const tablesDBListRowLogs = async ({databaseId,tableId,rowId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2432
|
+
export const tablesDBListRowLogs = async ({databaseId,tableId,rowId,queries,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBListRowLogsRequestParams): Promise<any> => {
|
|
2661
2433
|
let client = !sdk ? await sdkForProject() :
|
|
2662
2434
|
sdk;
|
|
2663
2435
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/logs'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId);
|
|
@@ -2672,7 +2444,7 @@ const tablesDBListRowLogs = async ({databaseId,tableId,rowId,queries,parseOutput
|
|
|
2672
2444
|
}, payload);
|
|
2673
2445
|
|
|
2674
2446
|
if (parseOutput) {
|
|
2675
|
-
if(
|
|
2447
|
+
if(showConsole) {
|
|
2676
2448
|
showConsoleLink('tablesDB', 'listRowLogs', databaseId, tableId, rowId);
|
|
2677
2449
|
} else {
|
|
2678
2450
|
parse(response)
|
|
@@ -2682,24 +2454,20 @@ const tablesDBListRowLogs = async ({databaseId,tableId,rowId,queries,parseOutput
|
|
|
2682
2454
|
return response;
|
|
2683
2455
|
|
|
2684
2456
|
}
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
*/
|
|
2457
|
+
interface TablesDBDecrementRowColumnRequestParams {
|
|
2458
|
+
databaseId: string;
|
|
2459
|
+
tableId: string;
|
|
2460
|
+
rowId: string;
|
|
2461
|
+
column: string;
|
|
2462
|
+
value?: number;
|
|
2463
|
+
min?: number;
|
|
2464
|
+
transactionId?: string;
|
|
2465
|
+
overrideForCli?: boolean;
|
|
2466
|
+
parseOutput?: boolean;
|
|
2467
|
+
sdk?: Client;
|
|
2468
|
+
}
|
|
2698
2469
|
|
|
2699
|
-
|
|
2700
|
-
* @param {TablesDBDecrementRowColumnRequestParams} params
|
|
2701
|
-
*/
|
|
2702
|
-
const tablesDBDecrementRowColumn = async ({databaseId,tableId,rowId,column,value,min,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2470
|
+
export const tablesDBDecrementRowColumn = async ({databaseId,tableId,rowId,column,value,min,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBDecrementRowColumnRequestParams): Promise<any> => {
|
|
2703
2471
|
let client = !sdk ? await sdkForProject() :
|
|
2704
2472
|
sdk;
|
|
2705
2473
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId).replace('{column}', column);
|
|
@@ -2727,24 +2495,20 @@ const tablesDBDecrementRowColumn = async ({databaseId,tableId,rowId,column,value
|
|
|
2727
2495
|
return response;
|
|
2728
2496
|
|
|
2729
2497
|
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
*/
|
|
2498
|
+
interface TablesDBIncrementRowColumnRequestParams {
|
|
2499
|
+
databaseId: string;
|
|
2500
|
+
tableId: string;
|
|
2501
|
+
rowId: string;
|
|
2502
|
+
column: string;
|
|
2503
|
+
value?: number;
|
|
2504
|
+
max?: number;
|
|
2505
|
+
transactionId?: string;
|
|
2506
|
+
overrideForCli?: boolean;
|
|
2507
|
+
parseOutput?: boolean;
|
|
2508
|
+
sdk?: Client;
|
|
2509
|
+
}
|
|
2743
2510
|
|
|
2744
|
-
|
|
2745
|
-
* @param {TablesDBIncrementRowColumnRequestParams} params
|
|
2746
|
-
*/
|
|
2747
|
-
const tablesDBIncrementRowColumn = async ({databaseId,tableId,rowId,column,value,max,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2511
|
+
export const tablesDBIncrementRowColumn = async ({databaseId,tableId,rowId,column,value,max,transactionId,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBIncrementRowColumnRequestParams): Promise<any> => {
|
|
2748
2512
|
let client = !sdk ? await sdkForProject() :
|
|
2749
2513
|
sdk;
|
|
2750
2514
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'.replace('{databaseId}', databaseId).replace('{tableId}', tableId).replace('{rowId}', rowId).replace('{column}', column);
|
|
@@ -2772,20 +2536,17 @@ const tablesDBIncrementRowColumn = async ({databaseId,tableId,rowId,column,value
|
|
|
2772
2536
|
return response;
|
|
2773
2537
|
|
|
2774
2538
|
}
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2539
|
+
interface TablesDBGetTableUsageRequestParams {
|
|
2540
|
+
databaseId: string;
|
|
2541
|
+
tableId: string;
|
|
2542
|
+
range?: UsageRange;
|
|
2543
|
+
overrideForCli?: boolean;
|
|
2544
|
+
parseOutput?: boolean;
|
|
2545
|
+
sdk?: Client;
|
|
2546
|
+
console?: boolean;
|
|
2547
|
+
}
|
|
2784
2548
|
|
|
2785
|
-
|
|
2786
|
-
* @param {TablesDBGetTableUsageRequestParams} params
|
|
2787
|
-
*/
|
|
2788
|
-
const tablesDBGetTableUsage = async ({databaseId,tableId,range,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
|
|
2549
|
+
export const tablesDBGetTableUsage = async ({databaseId,tableId,range,parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole}: TablesDBGetTableUsageRequestParams): Promise<any> => {
|
|
2789
2550
|
let client = !sdk ? await sdkForProject() :
|
|
2790
2551
|
sdk;
|
|
2791
2552
|
let apiPath = '/tablesdb/{databaseId}/tables/{tableId}/usage'.replace('{databaseId}', databaseId).replace('{tableId}', tableId);
|
|
@@ -2800,7 +2561,7 @@ const tablesDBGetTableUsage = async ({databaseId,tableId,range,parseOutput = tru
|
|
|
2800
2561
|
}, payload);
|
|
2801
2562
|
|
|
2802
2563
|
if (parseOutput) {
|
|
2803
|
-
if(
|
|
2564
|
+
if(showConsole) {
|
|
2804
2565
|
showConsoleLink('tablesDB', 'getTableUsage', databaseId, tableId);
|
|
2805
2566
|
} else {
|
|
2806
2567
|
parse(response)
|
|
@@ -2810,19 +2571,15 @@ const tablesDBGetTableUsage = async ({databaseId,tableId,range,parseOutput = tru
|
|
|
2810
2571
|
return response;
|
|
2811
2572
|
|
|
2812
2573
|
}
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
*/
|
|
2574
|
+
interface TablesDBGetUsageRequestParams {
|
|
2575
|
+
databaseId: string;
|
|
2576
|
+
range?: UsageRange;
|
|
2577
|
+
overrideForCli?: boolean;
|
|
2578
|
+
parseOutput?: boolean;
|
|
2579
|
+
sdk?: Client;
|
|
2580
|
+
}
|
|
2821
2581
|
|
|
2822
|
-
|
|
2823
|
-
* @param {TablesDBGetUsageRequestParams} params
|
|
2824
|
-
*/
|
|
2825
|
-
const tablesDBGetUsage = async ({databaseId,range,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
2582
|
+
export const tablesDBGetUsage = async ({databaseId,range,parseOutput = true, overrideForCli = false, sdk = undefined}: TablesDBGetUsageRequestParams): Promise<any> => {
|
|
2826
2583
|
let client = !sdk ? await sdkForProject() :
|
|
2827
2584
|
sdk;
|
|
2828
2585
|
let apiPath = '/tablesdb/{databaseId}/usage'.replace('{databaseId}', databaseId);
|
|
@@ -2848,7 +2605,7 @@ tablesDB
|
|
|
2848
2605
|
.description(`Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.`)
|
|
2849
2606
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name`)
|
|
2850
2607
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
2851
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2608
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2852
2609
|
.option(`--console`, `Get the resource console url`)
|
|
2853
2610
|
.action(actionRunner(tablesDBList))
|
|
2854
2611
|
|
|
@@ -2857,7 +2614,7 @@ tablesDB
|
|
|
2857
2614
|
.description(`Create a new Database. `)
|
|
2858
2615
|
.requiredOption(`--database-id <database-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
2859
2616
|
.requiredOption(`--name <name>`, `Database name. Max length: 128 chars.`)
|
|
2860
|
-
.option(`--enabled [value]`, `Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2617
|
+
.option(`--enabled [value]`, `Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2861
2618
|
.action(actionRunner(tablesDBCreate))
|
|
2862
2619
|
|
|
2863
2620
|
tablesDB
|
|
@@ -2884,8 +2641,8 @@ tablesDB
|
|
|
2884
2641
|
.command(`update-transaction`)
|
|
2885
2642
|
.description(`Update a transaction, to either commit or roll back its operations.`)
|
|
2886
2643
|
.requiredOption(`--transaction-id <transaction-id>`, `Transaction ID.`)
|
|
2887
|
-
.option(`--commit [value]`, `Commit transaction?`, (value) => value === undefined ? true : parseBool(value))
|
|
2888
|
-
.option(`--rollback [value]`, `Rollback transaction?`, (value) => value === undefined ? true : parseBool(value))
|
|
2644
|
+
.option(`--commit [value]`, `Commit transaction?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2645
|
+
.option(`--rollback [value]`, `Rollback transaction?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2889
2646
|
.action(actionRunner(tablesDBUpdateTransaction))
|
|
2890
2647
|
|
|
2891
2648
|
tablesDB
|
|
@@ -2920,7 +2677,7 @@ tablesDB
|
|
|
2920
2677
|
.description(`Update a database by its unique ID.`)
|
|
2921
2678
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2922
2679
|
.requiredOption(`--name <name>`, `Database name. Max length: 128 chars.`)
|
|
2923
|
-
.option(`--enabled [value]`, `Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2680
|
+
.option(`--enabled [value]`, `Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2924
2681
|
.action(actionRunner(tablesDBUpdate))
|
|
2925
2682
|
|
|
2926
2683
|
tablesDB
|
|
@@ -2935,7 +2692,7 @@ tablesDB
|
|
|
2935
2692
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2936
2693
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name, enabled, rowSecurity`)
|
|
2937
2694
|
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
2938
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2695
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2939
2696
|
.option(`--console`, `Get the resource console url`)
|
|
2940
2697
|
.action(actionRunner(tablesDBListTables))
|
|
2941
2698
|
|
|
@@ -2946,8 +2703,10 @@ tablesDB
|
|
|
2946
2703
|
.requiredOption(`--table-id <table-id>`, `Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
|
|
2947
2704
|
.requiredOption(`--name <name>`, `Table name. Max length: 128 chars.`)
|
|
2948
2705
|
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
2949
|
-
.option(`--row-security [value]`, `Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value) => value === undefined ? true : parseBool(value))
|
|
2950
|
-
.option(`--enabled [value]`, `Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2706
|
+
.option(`--row-security [value]`, `Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2707
|
+
.option(`--enabled [value]`, `Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2708
|
+
.option(`--columns [columns...]`, `Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.`)
|
|
2709
|
+
.option(`--indexes [indexes...]`, `Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).`)
|
|
2951
2710
|
.action(actionRunner(tablesDBCreateTable))
|
|
2952
2711
|
|
|
2953
2712
|
tablesDB
|
|
@@ -2965,8 +2724,8 @@ tablesDB
|
|
|
2965
2724
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
2966
2725
|
.requiredOption(`--name <name>`, `Table name. Max length: 128 chars.`)
|
|
2967
2726
|
.option(`--permissions [permissions...]`, `An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
2968
|
-
.option(`--row-security [value]`, `Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value) => value === undefined ? true : parseBool(value))
|
|
2969
|
-
.option(`--enabled [value]`, `Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2727
|
+
.option(`--row-security [value]`, `Enables configuring permissions for individual rows. A user needs one of row or table-level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2728
|
+
.option(`--enabled [value]`, `Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2970
2729
|
.action(actionRunner(tablesDBUpdateTable))
|
|
2971
2730
|
|
|
2972
2731
|
tablesDB
|
|
@@ -2982,7 +2741,7 @@ tablesDB
|
|
|
2982
2741
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2983
2742
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
2984
2743
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, size, required, array, status, error`)
|
|
2985
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
2744
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2986
2745
|
.option(`--console`, `Get the resource console url`)
|
|
2987
2746
|
.action(actionRunner(tablesDBListColumns))
|
|
2988
2747
|
|
|
@@ -2992,9 +2751,9 @@ tablesDB
|
|
|
2992
2751
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2993
2752
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2994
2753
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2995
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2996
|
-
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value))
|
|
2997
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2754
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2755
|
+
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2756
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2998
2757
|
.action(actionRunner(tablesDBCreateBooleanColumn))
|
|
2999
2758
|
|
|
3000
2759
|
tablesDB
|
|
@@ -3003,8 +2762,8 @@ tablesDB
|
|
|
3003
2762
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3004
2763
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3005
2764
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3006
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
3007
|
-
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value))
|
|
2765
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2766
|
+
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3008
2767
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3009
2768
|
.action(actionRunner(tablesDBUpdateBooleanColumn))
|
|
3010
2769
|
|
|
@@ -3014,9 +2773,9 @@ tablesDB
|
|
|
3014
2773
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3015
2774
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3016
2775
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3017
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2776
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3018
2777
|
.option(`--xdefault <xdefault>`, `Default value for the column in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when column is required.`)
|
|
3019
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2778
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3020
2779
|
.action(actionRunner(tablesDBCreateDatetimeColumn))
|
|
3021
2780
|
|
|
3022
2781
|
tablesDB
|
|
@@ -3025,7 +2784,7 @@ tablesDB
|
|
|
3025
2784
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3026
2785
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3027
2786
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3028
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2787
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3029
2788
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3030
2789
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3031
2790
|
.action(actionRunner(tablesDBUpdateDatetimeColumn))
|
|
@@ -3036,9 +2795,9 @@ tablesDB
|
|
|
3036
2795
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3037
2796
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3038
2797
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3039
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2798
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3040
2799
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3041
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2800
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3042
2801
|
.action(actionRunner(tablesDBCreateEmailColumn))
|
|
3043
2802
|
|
|
3044
2803
|
tablesDB
|
|
@@ -3047,7 +2806,7 @@ tablesDB
|
|
|
3047
2806
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3048
2807
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3049
2808
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3050
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2809
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3051
2810
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3052
2811
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3053
2812
|
.action(actionRunner(tablesDBUpdateEmailColumn))
|
|
@@ -3059,9 +2818,9 @@ tablesDB
|
|
|
3059
2818
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3060
2819
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3061
2820
|
.requiredOption(`--elements [elements...]`, `Array of enum values.`)
|
|
3062
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2821
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3063
2822
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3064
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2823
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3065
2824
|
.action(actionRunner(tablesDBCreateEnumColumn))
|
|
3066
2825
|
|
|
3067
2826
|
tablesDB
|
|
@@ -3071,7 +2830,7 @@ tablesDB
|
|
|
3071
2830
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3072
2831
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3073
2832
|
.requiredOption(`--elements [elements...]`, `Updated list of enum values.`)
|
|
3074
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2833
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3075
2834
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3076
2835
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3077
2836
|
.action(actionRunner(tablesDBUpdateEnumColumn))
|
|
@@ -3082,11 +2841,11 @@ tablesDB
|
|
|
3082
2841
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3083
2842
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3084
2843
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3085
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2844
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3086
2845
|
.option(`--min <min>`, `Minimum value`, parseInteger)
|
|
3087
2846
|
.option(`--max <max>`, `Maximum value`, parseInteger)
|
|
3088
2847
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when required.`, parseInteger)
|
|
3089
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2848
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3090
2849
|
.action(actionRunner(tablesDBCreateFloatColumn))
|
|
3091
2850
|
|
|
3092
2851
|
tablesDB
|
|
@@ -3095,7 +2854,7 @@ tablesDB
|
|
|
3095
2854
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3096
2855
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3097
2856
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3098
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2857
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3099
2858
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when required.`, parseInteger)
|
|
3100
2859
|
.option(`--min <min>`, `Minimum value`, parseInteger)
|
|
3101
2860
|
.option(`--max <max>`, `Maximum value`, parseInteger)
|
|
@@ -3108,11 +2867,11 @@ tablesDB
|
|
|
3108
2867
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3109
2868
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3110
2869
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3111
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2870
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3112
2871
|
.option(`--min <min>`, `Minimum value`, parseInteger)
|
|
3113
2872
|
.option(`--max <max>`, `Maximum value`, parseInteger)
|
|
3114
2873
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when column is required.`, parseInteger)
|
|
3115
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2874
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3116
2875
|
.action(actionRunner(tablesDBCreateIntegerColumn))
|
|
3117
2876
|
|
|
3118
2877
|
tablesDB
|
|
@@ -3121,7 +2880,7 @@ tablesDB
|
|
|
3121
2880
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3122
2881
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3123
2882
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3124
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2883
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3125
2884
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when column is required.`, parseInteger)
|
|
3126
2885
|
.option(`--min <min>`, `Minimum value`, parseInteger)
|
|
3127
2886
|
.option(`--max <max>`, `Maximum value`, parseInteger)
|
|
@@ -3134,9 +2893,9 @@ tablesDB
|
|
|
3134
2893
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3135
2894
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3136
2895
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3137
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2896
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3138
2897
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when column is required.`)
|
|
3139
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
2898
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3140
2899
|
.action(actionRunner(tablesDBCreateIpColumn))
|
|
3141
2900
|
|
|
3142
2901
|
tablesDB
|
|
@@ -3145,7 +2904,7 @@ tablesDB
|
|
|
3145
2904
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3146
2905
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3147
2906
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3148
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2907
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3149
2908
|
.option(`--xdefault <xdefault>`, `Default value. Cannot be set when column is required.`)
|
|
3150
2909
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3151
2910
|
.action(actionRunner(tablesDBUpdateIpColumn))
|
|
@@ -3156,7 +2915,7 @@ tablesDB
|
|
|
3156
2915
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3157
2916
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3158
2917
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3159
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2918
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3160
2919
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`)
|
|
3161
2920
|
.action(actionRunner(tablesDBCreateLineColumn))
|
|
3162
2921
|
|
|
@@ -3166,7 +2925,7 @@ tablesDB
|
|
|
3166
2925
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3167
2926
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3168
2927
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3169
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2928
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3170
2929
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`)
|
|
3171
2930
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3172
2931
|
.action(actionRunner(tablesDBUpdateLineColumn))
|
|
@@ -3177,7 +2936,7 @@ tablesDB
|
|
|
3177
2936
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3178
2937
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3179
2938
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3180
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2939
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3181
2940
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`)
|
|
3182
2941
|
.action(actionRunner(tablesDBCreatePointColumn))
|
|
3183
2942
|
|
|
@@ -3187,7 +2946,7 @@ tablesDB
|
|
|
3187
2946
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3188
2947
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3189
2948
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3190
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2949
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3191
2950
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`)
|
|
3192
2951
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3193
2952
|
.action(actionRunner(tablesDBUpdatePointColumn))
|
|
@@ -3198,7 +2957,7 @@ tablesDB
|
|
|
3198
2957
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3199
2958
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3200
2959
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3201
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2960
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3202
2961
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`)
|
|
3203
2962
|
.action(actionRunner(tablesDBCreatePolygonColumn))
|
|
3204
2963
|
|
|
@@ -3208,7 +2967,7 @@ tablesDB
|
|
|
3208
2967
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3209
2968
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3210
2969
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3211
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2970
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3212
2971
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`)
|
|
3213
2972
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3214
2973
|
.action(actionRunner(tablesDBUpdatePolygonColumn))
|
|
@@ -3220,7 +2979,7 @@ tablesDB
|
|
|
3220
2979
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3221
2980
|
.requiredOption(`--related-table-id <related-table-id>`, `Related Table ID.`)
|
|
3222
2981
|
.requiredOption(`--type <type>`, `Relation type`)
|
|
3223
|
-
.option(`--two-way [value]`, `Is Two Way?`, (value) => value === undefined ? true : parseBool(value))
|
|
2982
|
+
.option(`--two-way [value]`, `Is Two Way?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3224
2983
|
.option(`--key <key>`, `Column Key.`)
|
|
3225
2984
|
.option(`--two-way-key <two-way-key>`, `Two Way Column Key.`)
|
|
3226
2985
|
.option(`--on-delete <on-delete>`, `Constraints option`)
|
|
@@ -3233,10 +2992,10 @@ tablesDB
|
|
|
3233
2992
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3234
2993
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3235
2994
|
.requiredOption(`--size <size>`, `Column size for text columns, in number of characters.`, parseInteger)
|
|
3236
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2995
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3237
2996
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3238
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
3239
|
-
.option(`--encrypt [value]`, `Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.`, (value) => value === undefined ? true : parseBool(value))
|
|
2997
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
2998
|
+
.option(`--encrypt [value]`, `Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3240
2999
|
.action(actionRunner(tablesDBCreateStringColumn))
|
|
3241
3000
|
|
|
3242
3001
|
tablesDB
|
|
@@ -3245,7 +3004,7 @@ tablesDB
|
|
|
3245
3004
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3246
3005
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3247
3006
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3248
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
3007
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3249
3008
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3250
3009
|
.option(`--size <size>`, `Maximum size of the string column.`, parseInteger)
|
|
3251
3010
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
@@ -3257,9 +3016,9 @@ tablesDB
|
|
|
3257
3016
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3258
3017
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3259
3018
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3260
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
3019
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3261
3020
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3262
|
-
.option(`--array [value]`, `Is column an array?`, (value) => value === undefined ? true : parseBool(value))
|
|
3021
|
+
.option(`--array [value]`, `Is column an array?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3263
3022
|
.action(actionRunner(tablesDBCreateUrlColumn))
|
|
3264
3023
|
|
|
3265
3024
|
tablesDB
|
|
@@ -3268,7 +3027,7 @@ tablesDB
|
|
|
3268
3027
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3269
3028
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3270
3029
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
3271
|
-
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
3030
|
+
.requiredOption(`--required [value]`, `Is column required?`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3272
3031
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
3273
3032
|
.option(`--new-key <new-key>`, `New Column Key.`)
|
|
3274
3033
|
.action(actionRunner(tablesDBUpdateUrlColumn))
|
|
@@ -3306,7 +3065,7 @@ tablesDB
|
|
|
3306
3065
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3307
3066
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3308
3067
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error`)
|
|
3309
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
3068
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3310
3069
|
.option(`--console`, `Get the resource console url`)
|
|
3311
3070
|
.action(actionRunner(tablesDBListIndexes))
|
|
3312
3071
|
|
|
@@ -3354,7 +3113,7 @@ tablesDB
|
|
|
3354
3113
|
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).`)
|
|
3355
3114
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
3356
3115
|
.option(`--transaction-id <transaction-id>`, `Transaction ID to read uncommitted changes within the transaction.`)
|
|
3357
|
-
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
|
|
3116
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value: string | undefined) => value === undefined ? true : parseBool(value))
|
|
3358
3117
|
.option(`--console`, `Get the resource console url`)
|
|
3359
3118
|
.action(actionRunner(tablesDBListRows))
|
|
3360
3119
|
|
|
@@ -3498,72 +3257,4 @@ tablesDB
|
|
|
3498
3257
|
.option(`--range <range>`, `Date range.`)
|
|
3499
3258
|
.action(actionRunner(tablesDBGetUsage))
|
|
3500
3259
|
|
|
3501
|
-
|
|
3502
|
-
tablesDB,
|
|
3503
|
-
tablesDBList,
|
|
3504
|
-
tablesDBCreate,
|
|
3505
|
-
tablesDBListTransactions,
|
|
3506
|
-
tablesDBCreateTransaction,
|
|
3507
|
-
tablesDBGetTransaction,
|
|
3508
|
-
tablesDBUpdateTransaction,
|
|
3509
|
-
tablesDBDeleteTransaction,
|
|
3510
|
-
tablesDBCreateOperations,
|
|
3511
|
-
tablesDBListUsage,
|
|
3512
|
-
tablesDBGet,
|
|
3513
|
-
tablesDBUpdate,
|
|
3514
|
-
tablesDBDelete,
|
|
3515
|
-
tablesDBListTables,
|
|
3516
|
-
tablesDBCreateTable,
|
|
3517
|
-
tablesDBGetTable,
|
|
3518
|
-
tablesDBUpdateTable,
|
|
3519
|
-
tablesDBDeleteTable,
|
|
3520
|
-
tablesDBListColumns,
|
|
3521
|
-
tablesDBCreateBooleanColumn,
|
|
3522
|
-
tablesDBUpdateBooleanColumn,
|
|
3523
|
-
tablesDBCreateDatetimeColumn,
|
|
3524
|
-
tablesDBUpdateDatetimeColumn,
|
|
3525
|
-
tablesDBCreateEmailColumn,
|
|
3526
|
-
tablesDBUpdateEmailColumn,
|
|
3527
|
-
tablesDBCreateEnumColumn,
|
|
3528
|
-
tablesDBUpdateEnumColumn,
|
|
3529
|
-
tablesDBCreateFloatColumn,
|
|
3530
|
-
tablesDBUpdateFloatColumn,
|
|
3531
|
-
tablesDBCreateIntegerColumn,
|
|
3532
|
-
tablesDBUpdateIntegerColumn,
|
|
3533
|
-
tablesDBCreateIpColumn,
|
|
3534
|
-
tablesDBUpdateIpColumn,
|
|
3535
|
-
tablesDBCreateLineColumn,
|
|
3536
|
-
tablesDBUpdateLineColumn,
|
|
3537
|
-
tablesDBCreatePointColumn,
|
|
3538
|
-
tablesDBUpdatePointColumn,
|
|
3539
|
-
tablesDBCreatePolygonColumn,
|
|
3540
|
-
tablesDBUpdatePolygonColumn,
|
|
3541
|
-
tablesDBCreateRelationshipColumn,
|
|
3542
|
-
tablesDBCreateStringColumn,
|
|
3543
|
-
tablesDBUpdateStringColumn,
|
|
3544
|
-
tablesDBCreateUrlColumn,
|
|
3545
|
-
tablesDBUpdateUrlColumn,
|
|
3546
|
-
tablesDBGetColumn,
|
|
3547
|
-
tablesDBDeleteColumn,
|
|
3548
|
-
tablesDBUpdateRelationshipColumn,
|
|
3549
|
-
tablesDBListIndexes,
|
|
3550
|
-
tablesDBCreateIndex,
|
|
3551
|
-
tablesDBGetIndex,
|
|
3552
|
-
tablesDBDeleteIndex,
|
|
3553
|
-
tablesDBListTableLogs,
|
|
3554
|
-
tablesDBListRows,
|
|
3555
|
-
tablesDBCreateRow,
|
|
3556
|
-
tablesDBCreateRows,
|
|
3557
|
-
tablesDBUpsertRows,
|
|
3558
|
-
tablesDBUpdateRows,
|
|
3559
|
-
tablesDBDeleteRows,
|
|
3560
|
-
tablesDBGetRow,
|
|
3561
|
-
tablesDBUpsertRow,
|
|
3562
|
-
tablesDBUpdateRow,
|
|
3563
|
-
tablesDBDeleteRow,
|
|
3564
|
-
tablesDBListRowLogs,
|
|
3565
|
-
tablesDBDecrementRowColumn,
|
|
3566
|
-
tablesDBIncrementRowColumn,
|
|
3567
|
-
tablesDBGetTableUsage,
|
|
3568
|
-
tablesDBGetUsage
|
|
3569
|
-
};
|
|
3260
|
+
|