@owbase/node 1.0.1 → 2.0.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/README.md +1 -1
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/databases-index-type.d.mts +2 -1
- package/dist/enums/databases-index-type.d.ts +2 -1
- package/dist/enums/databases-index-type.js +1 -0
- package/dist/enums/databases-index-type.js.map +1 -1
- package/dist/enums/databases-index-type.mjs +1 -0
- package/dist/enums/databases-index-type.mjs.map +1 -1
- package/dist/enums/project-policy-id.d.mts +1 -0
- package/dist/enums/project-policy-id.d.ts +1 -0
- package/dist/enums/project-policy-id.js +1 -0
- package/dist/enums/project-policy-id.js.map +1 -1
- package/dist/enums/project-policy-id.mjs +1 -0
- package/dist/enums/project-policy-id.mjs.map +1 -1
- package/dist/enums/tables-db-index-type.d.mts +2 -1
- package/dist/enums/tables-db-index-type.d.ts +2 -1
- package/dist/enums/tables-db-index-type.js +1 -0
- package/dist/enums/tables-db-index-type.js.map +1 -1
- package/dist/enums/tables-db-index-type.mjs +1 -0
- package/dist/enums/tables-db-index-type.mjs.map +1 -1
- package/dist/models.d.mts +236 -3
- package/dist/models.d.ts +236 -3
- package/dist/services/account.d.mts +32 -0
- package/dist/services/account.d.ts +32 -0
- package/dist/services/account.js +27 -0
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +27 -0
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/databases.d.mts +211 -47
- package/dist/services/databases.d.ts +211 -47
- package/dist/services/databases.js +301 -41
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +301 -41
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +30 -12
- package/dist/services/functions.d.ts +30 -12
- package/dist/services/functions.js +34 -4
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +34 -4
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +56 -44
- package/dist/services/messaging.d.ts +56 -44
- package/dist/services/messaging.js +96 -76
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +96 -76
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/organization.d.mts +4 -1
- package/dist/services/organization.d.ts +4 -1
- package/dist/services/organization.js +6 -1
- package/dist/services/organization.js.map +1 -1
- package/dist/services/organization.mjs +6 -1
- package/dist/services/organization.mjs.map +1 -1
- package/dist/services/project.d.mts +115 -65
- package/dist/services/project.d.ts +115 -65
- package/dist/services/project.js +138 -77
- package/dist/services/project.js.map +1 -1
- package/dist/services/project.mjs +138 -77
- package/dist/services/project.mjs.map +1 -1
- package/dist/services/sites.d.mts +20 -8
- package/dist/services/sites.d.ts +20 -8
- package/dist/services/sites.js +24 -4
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +24 -4
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +16 -4
- package/dist/services/storage.d.ts +16 -4
- package/dist/services/storage.js +22 -2
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +22 -2
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +210 -47
- package/dist/services/tables-db.d.ts +210 -47
- package/dist/services/tables-db.js +296 -41
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +296 -41
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +4 -1
- package/dist/services/teams.d.ts +4 -1
- package/dist/services/teams.js +6 -1
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +6 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/webhooks.d.mts +16 -10
- package/dist/services/webhooks.d.ts +16 -10
- package/dist/services/webhooks.js +12 -2
- package/dist/services/webhooks.js.map +1 -1
- package/dist/services/webhooks.mjs +12 -2
- package/dist/services/webhooks.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -68,6 +68,7 @@ declare class TablesDB {
|
|
|
68
68
|
* @param {string} params.databaseId - 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.
|
|
69
69
|
* @param {string} params.name - Database name. Max length: 128 chars.
|
|
70
70
|
* @param {boolean} params.enabled - 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.
|
|
71
|
+
* @param {string} params.description - Optional description for the database.
|
|
71
72
|
* @throws {OwbaseException}
|
|
72
73
|
* @returns {Promise<Models.Database>}
|
|
73
74
|
*/
|
|
@@ -75,6 +76,7 @@ declare class TablesDB {
|
|
|
75
76
|
databaseId: string;
|
|
76
77
|
name: string;
|
|
77
78
|
enabled?: boolean;
|
|
79
|
+
description?: string;
|
|
78
80
|
}): Promise<Models.Database>;
|
|
79
81
|
/**
|
|
80
82
|
* Create a new Database.
|
|
@@ -83,11 +85,12 @@ declare class TablesDB {
|
|
|
83
85
|
* @param {string} databaseId - 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.
|
|
84
86
|
* @param {string} name - Database name. Max length: 128 chars.
|
|
85
87
|
* @param {boolean} enabled - 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.
|
|
88
|
+
* @param {string} description - Optional description for the database.
|
|
86
89
|
* @throws {OwbaseException}
|
|
87
90
|
* @returns {Promise<Models.Database>}
|
|
88
91
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
89
92
|
*/
|
|
90
|
-
create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
|
|
93
|
+
create(databaseId: string, name: string, enabled?: boolean, description?: string): Promise<Models.Database>;
|
|
91
94
|
/**
|
|
92
95
|
* List transactions across all databases.
|
|
93
96
|
*
|
|
@@ -239,6 +242,7 @@ declare class TablesDB {
|
|
|
239
242
|
* @param {string} params.databaseId - Database ID.
|
|
240
243
|
* @param {string} params.name - Database name. Max length: 128 chars.
|
|
241
244
|
* @param {boolean} params.enabled - 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.
|
|
245
|
+
* @param {string} params.description - Optional description for the database.
|
|
242
246
|
* @throws {OwbaseException}
|
|
243
247
|
* @returns {Promise<Models.Database>}
|
|
244
248
|
*/
|
|
@@ -246,6 +250,7 @@ declare class TablesDB {
|
|
|
246
250
|
databaseId: string;
|
|
247
251
|
name?: string;
|
|
248
252
|
enabled?: boolean;
|
|
253
|
+
description?: string;
|
|
249
254
|
}): Promise<Models.Database>;
|
|
250
255
|
/**
|
|
251
256
|
* Update a database by its unique ID.
|
|
@@ -253,11 +258,12 @@ declare class TablesDB {
|
|
|
253
258
|
* @param {string} databaseId - Database ID.
|
|
254
259
|
* @param {string} name - Database name. Max length: 128 chars.
|
|
255
260
|
* @param {boolean} enabled - 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.
|
|
261
|
+
* @param {string} description - Optional description for the database.
|
|
256
262
|
* @throws {OwbaseException}
|
|
257
263
|
* @returns {Promise<Models.Database>}
|
|
258
264
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
259
265
|
*/
|
|
260
|
-
update(databaseId: string, name?: string, enabled?: boolean): Promise<Models.Database>;
|
|
266
|
+
update(databaseId: string, name?: string, enabled?: boolean, description?: string): Promise<Models.Database>;
|
|
261
267
|
/**
|
|
262
268
|
* Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
|
|
263
269
|
*
|
|
@@ -315,7 +321,8 @@ declare class TablesDB {
|
|
|
315
321
|
* @param {boolean} params.rowSecurity - 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://docs.owbase.dev/permissions).
|
|
316
322
|
* @param {boolean} params.enabled - 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.
|
|
317
323
|
* @param {object[]} params.columns - Array of column definitions to create. Each column should contain: key (string), type (string: string, varchar, text, mediumtext, longtext, integer, bigint, double, boolean, datetime, point, linestring, polygon, email, url, ip, enum), size (integer, required for string and varchar types), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
|
|
318
|
-
* @param {object[]} params.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).
|
|
324
|
+
* @param {object[]} params.indexes - Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial, trigram), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
325
|
+
* @param {string} params.description - Optional description for the table.
|
|
319
326
|
* @throws {OwbaseException}
|
|
320
327
|
* @returns {Promise<Models.Table>}
|
|
321
328
|
*/
|
|
@@ -328,6 +335,7 @@ declare class TablesDB {
|
|
|
328
335
|
enabled?: boolean;
|
|
329
336
|
columns?: object[];
|
|
330
337
|
indexes?: object[];
|
|
338
|
+
description?: string;
|
|
331
339
|
}): Promise<Models.Table>;
|
|
332
340
|
/**
|
|
333
341
|
* Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://docs.owbase.dev/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.
|
|
@@ -339,12 +347,13 @@ declare class TablesDB {
|
|
|
339
347
|
* @param {boolean} rowSecurity - 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://docs.owbase.dev/permissions).
|
|
340
348
|
* @param {boolean} enabled - 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.
|
|
341
349
|
* @param {object[]} columns - Array of column definitions to create. Each column should contain: key (string), type (string: string, varchar, text, mediumtext, longtext, integer, bigint, double, boolean, datetime, point, linestring, polygon, email, url, ip, enum), size (integer, required for string and varchar types), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
|
|
342
|
-
* @param {object[]} 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).
|
|
350
|
+
* @param {object[]} indexes - Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial, trigram), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
351
|
+
* @param {string} description - Optional description for the table.
|
|
343
352
|
* @throws {OwbaseException}
|
|
344
353
|
* @returns {Promise<Models.Table>}
|
|
345
354
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
346
355
|
*/
|
|
347
|
-
createTable(databaseId: string, tableId: string, name: string, permissions?: string[], rowSecurity?: boolean, enabled?: boolean, columns?: object[], indexes?: object[]): Promise<Models.Table>;
|
|
356
|
+
createTable(databaseId: string, tableId: string, name: string, permissions?: string[], rowSecurity?: boolean, enabled?: boolean, columns?: object[], indexes?: object[], description?: string): Promise<Models.Table>;
|
|
348
357
|
/**
|
|
349
358
|
* Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.
|
|
350
359
|
*
|
|
@@ -377,6 +386,7 @@ declare class TablesDB {
|
|
|
377
386
|
* @param {boolean} params.rowSecurity - 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://docs.owbase.dev/permissions).
|
|
378
387
|
* @param {boolean} params.enabled - 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.
|
|
379
388
|
* @param {boolean} params.purge - When true, purge all cached list responses for this table as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
|
|
389
|
+
* @param {string} params.description - Optional description for the table.
|
|
380
390
|
* @throws {OwbaseException}
|
|
381
391
|
* @returns {Promise<Models.Table>}
|
|
382
392
|
*/
|
|
@@ -388,6 +398,7 @@ declare class TablesDB {
|
|
|
388
398
|
rowSecurity?: boolean;
|
|
389
399
|
enabled?: boolean;
|
|
390
400
|
purge?: boolean;
|
|
401
|
+
description?: string;
|
|
391
402
|
}): Promise<Models.Table>;
|
|
392
403
|
/**
|
|
393
404
|
* Update a table by its unique ID.
|
|
@@ -399,11 +410,12 @@ declare class TablesDB {
|
|
|
399
410
|
* @param {boolean} rowSecurity - 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://docs.owbase.dev/permissions).
|
|
400
411
|
* @param {boolean} enabled - 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.
|
|
401
412
|
* @param {boolean} purge - When true, purge all cached list responses for this table as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
|
|
413
|
+
* @param {string} description - Optional description for the table.
|
|
402
414
|
* @throws {OwbaseException}
|
|
403
415
|
* @returns {Promise<Models.Table>}
|
|
404
416
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
405
417
|
*/
|
|
406
|
-
updateTable(databaseId: string, tableId: string, name?: string, permissions?: string[], rowSecurity?: boolean, enabled?: boolean, purge?: boolean): Promise<Models.Table>;
|
|
418
|
+
updateTable(databaseId: string, tableId: string, name?: string, permissions?: string[], rowSecurity?: boolean, enabled?: boolean, purge?: boolean, description?: string): Promise<Models.Table>;
|
|
407
419
|
/**
|
|
408
420
|
* Delete a table by its unique ID. Only users with write permissions have access to delete this resource.
|
|
409
421
|
*
|
|
@@ -466,6 +478,7 @@ declare class TablesDB {
|
|
|
466
478
|
* @param {number | bigint} params.max - Maximum value
|
|
467
479
|
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
468
480
|
* @param {boolean} params.array - Is column an array?
|
|
481
|
+
* @param {string} params.description - Optional description for the column.
|
|
469
482
|
* @throws {OwbaseException}
|
|
470
483
|
* @returns {Promise<Models.ColumnBigint>}
|
|
471
484
|
*/
|
|
@@ -478,6 +491,7 @@ declare class TablesDB {
|
|
|
478
491
|
max?: number | bigint;
|
|
479
492
|
xdefault?: number | bigint;
|
|
480
493
|
array?: boolean;
|
|
494
|
+
description?: string;
|
|
481
495
|
}): Promise<Models.ColumnBigint>;
|
|
482
496
|
/**
|
|
483
497
|
* Create a bigint column. Optionally, minimum and maximum values can be provided.
|
|
@@ -491,11 +505,12 @@ declare class TablesDB {
|
|
|
491
505
|
* @param {number | bigint} max - Maximum value
|
|
492
506
|
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
493
507
|
* @param {boolean} array - Is column an array?
|
|
508
|
+
* @param {string} description - Optional description for the column.
|
|
494
509
|
* @throws {OwbaseException}
|
|
495
510
|
* @returns {Promise<Models.ColumnBigint>}
|
|
496
511
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
497
512
|
*/
|
|
498
|
-
createBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnBigint>;
|
|
513
|
+
createBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean, description?: string): Promise<Models.ColumnBigint>;
|
|
499
514
|
/**
|
|
500
515
|
* Update a bigint column. Changing the `default` value will not update already existing rows.
|
|
501
516
|
*
|
|
@@ -508,6 +523,7 @@ declare class TablesDB {
|
|
|
508
523
|
* @param {number | bigint} params.min - Minimum value
|
|
509
524
|
* @param {number | bigint} params.max - Maximum value
|
|
510
525
|
* @param {string} params.newKey - New Column Key.
|
|
526
|
+
* @param {string} params.description - Optional description for the column.
|
|
511
527
|
* @throws {OwbaseException}
|
|
512
528
|
* @returns {Promise<Models.ColumnBigint>}
|
|
513
529
|
*/
|
|
@@ -520,6 +536,7 @@ declare class TablesDB {
|
|
|
520
536
|
min?: number | bigint;
|
|
521
537
|
max?: number | bigint;
|
|
522
538
|
newKey?: string;
|
|
539
|
+
description?: string;
|
|
523
540
|
}): Promise<Models.ColumnBigint>;
|
|
524
541
|
/**
|
|
525
542
|
* Update a bigint column. Changing the `default` value will not update already existing rows.
|
|
@@ -533,11 +550,12 @@ declare class TablesDB {
|
|
|
533
550
|
* @param {number | bigint} min - Minimum value
|
|
534
551
|
* @param {number | bigint} max - Maximum value
|
|
535
552
|
* @param {string} newKey - New Column Key.
|
|
553
|
+
* @param {string} description - Optional description for the column.
|
|
536
554
|
* @throws {OwbaseException}
|
|
537
555
|
* @returns {Promise<Models.ColumnBigint>}
|
|
538
556
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
539
557
|
*/
|
|
540
|
-
updateBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnBigint>;
|
|
558
|
+
updateBigIntColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string, description?: string): Promise<Models.ColumnBigint>;
|
|
541
559
|
/**
|
|
542
560
|
* Create a boolean column.
|
|
543
561
|
*
|
|
@@ -548,6 +566,7 @@ declare class TablesDB {
|
|
|
548
566
|
* @param {boolean} params.required - Is column required?
|
|
549
567
|
* @param {boolean} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
550
568
|
* @param {boolean} params.array - Is column an array?
|
|
569
|
+
* @param {string} params.description - Optional description for the column.
|
|
551
570
|
* @throws {OwbaseException}
|
|
552
571
|
* @returns {Promise<Models.ColumnBoolean>}
|
|
553
572
|
*/
|
|
@@ -558,6 +577,7 @@ declare class TablesDB {
|
|
|
558
577
|
required: boolean;
|
|
559
578
|
xdefault?: boolean;
|
|
560
579
|
array?: boolean;
|
|
580
|
+
description?: string;
|
|
561
581
|
}): Promise<Models.ColumnBoolean>;
|
|
562
582
|
/**
|
|
563
583
|
* Create a boolean column.
|
|
@@ -569,11 +589,12 @@ declare class TablesDB {
|
|
|
569
589
|
* @param {boolean} required - Is column required?
|
|
570
590
|
* @param {boolean} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
571
591
|
* @param {boolean} array - Is column an array?
|
|
592
|
+
* @param {string} description - Optional description for the column.
|
|
572
593
|
* @throws {OwbaseException}
|
|
573
594
|
* @returns {Promise<Models.ColumnBoolean>}
|
|
574
595
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
575
596
|
*/
|
|
576
|
-
createBooleanColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean): Promise<Models.ColumnBoolean>;
|
|
597
|
+
createBooleanColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean, description?: string): Promise<Models.ColumnBoolean>;
|
|
577
598
|
/**
|
|
578
599
|
* Update a boolean column. Changing the `default` value will not update already existing rows.
|
|
579
600
|
*
|
|
@@ -583,6 +604,7 @@ declare class TablesDB {
|
|
|
583
604
|
* @param {boolean} params.required - Is column required?
|
|
584
605
|
* @param {boolean} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
585
606
|
* @param {string} params.newKey - New Column Key.
|
|
607
|
+
* @param {string} params.description - Optional description for the column.
|
|
586
608
|
* @throws {OwbaseException}
|
|
587
609
|
* @returns {Promise<Models.ColumnBoolean>}
|
|
588
610
|
*/
|
|
@@ -593,6 +615,7 @@ declare class TablesDB {
|
|
|
593
615
|
required: boolean;
|
|
594
616
|
xdefault?: boolean;
|
|
595
617
|
newKey?: string;
|
|
618
|
+
description?: string;
|
|
596
619
|
}): Promise<Models.ColumnBoolean>;
|
|
597
620
|
/**
|
|
598
621
|
* Update a boolean column. Changing the `default` value will not update already existing rows.
|
|
@@ -603,11 +626,12 @@ declare class TablesDB {
|
|
|
603
626
|
* @param {boolean} required - Is column required?
|
|
604
627
|
* @param {boolean} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
605
628
|
* @param {string} newKey - New Column Key.
|
|
629
|
+
* @param {string} description - Optional description for the column.
|
|
606
630
|
* @throws {OwbaseException}
|
|
607
631
|
* @returns {Promise<Models.ColumnBoolean>}
|
|
608
632
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
609
633
|
*/
|
|
610
|
-
updateBooleanColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: boolean, newKey?: string): Promise<Models.ColumnBoolean>;
|
|
634
|
+
updateBooleanColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: boolean, newKey?: string, description?: string): Promise<Models.ColumnBoolean>;
|
|
611
635
|
/**
|
|
612
636
|
* Create a date time column according to the ISO 8601 standard.
|
|
613
637
|
*
|
|
@@ -617,6 +641,7 @@ declare class TablesDB {
|
|
|
617
641
|
* @param {boolean} params.required - Is column required?
|
|
618
642
|
* @param {string} params.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.
|
|
619
643
|
* @param {boolean} params.array - Is column an array?
|
|
644
|
+
* @param {string} params.description - Optional description for the column.
|
|
620
645
|
* @throws {OwbaseException}
|
|
621
646
|
* @returns {Promise<Models.ColumnDatetime>}
|
|
622
647
|
*/
|
|
@@ -627,6 +652,7 @@ declare class TablesDB {
|
|
|
627
652
|
required: boolean;
|
|
628
653
|
xdefault?: string;
|
|
629
654
|
array?: boolean;
|
|
655
|
+
description?: string;
|
|
630
656
|
}): Promise<Models.ColumnDatetime>;
|
|
631
657
|
/**
|
|
632
658
|
* Create a date time column according to the ISO 8601 standard.
|
|
@@ -637,11 +663,12 @@ declare class TablesDB {
|
|
|
637
663
|
* @param {boolean} required - Is column required?
|
|
638
664
|
* @param {string} 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.
|
|
639
665
|
* @param {boolean} array - Is column an array?
|
|
666
|
+
* @param {string} description - Optional description for the column.
|
|
640
667
|
* @throws {OwbaseException}
|
|
641
668
|
* @returns {Promise<Models.ColumnDatetime>}
|
|
642
669
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
643
670
|
*/
|
|
644
|
-
createDatetimeColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnDatetime>;
|
|
671
|
+
createDatetimeColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.ColumnDatetime>;
|
|
645
672
|
/**
|
|
646
673
|
* Update a date time column. Changing the `default` value will not update already existing rows.
|
|
647
674
|
*
|
|
@@ -651,6 +678,7 @@ declare class TablesDB {
|
|
|
651
678
|
* @param {boolean} params.required - Is column required?
|
|
652
679
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
653
680
|
* @param {string} params.newKey - New Column Key.
|
|
681
|
+
* @param {string} params.description - Optional description for the column.
|
|
654
682
|
* @throws {OwbaseException}
|
|
655
683
|
* @returns {Promise<Models.ColumnDatetime>}
|
|
656
684
|
*/
|
|
@@ -661,6 +689,7 @@ declare class TablesDB {
|
|
|
661
689
|
required: boolean;
|
|
662
690
|
xdefault?: string;
|
|
663
691
|
newKey?: string;
|
|
692
|
+
description?: string;
|
|
664
693
|
}): Promise<Models.ColumnDatetime>;
|
|
665
694
|
/**
|
|
666
695
|
* Update a date time column. Changing the `default` value will not update already existing rows.
|
|
@@ -671,11 +700,12 @@ declare class TablesDB {
|
|
|
671
700
|
* @param {boolean} required - Is column required?
|
|
672
701
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
673
702
|
* @param {string} newKey - New Column Key.
|
|
703
|
+
* @param {string} description - Optional description for the column.
|
|
674
704
|
* @throws {OwbaseException}
|
|
675
705
|
* @returns {Promise<Models.ColumnDatetime>}
|
|
676
706
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
677
707
|
*/
|
|
678
|
-
updateDatetimeColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnDatetime>;
|
|
708
|
+
updateDatetimeColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnDatetime>;
|
|
679
709
|
/**
|
|
680
710
|
* Create an email column.
|
|
681
711
|
*
|
|
@@ -686,6 +716,7 @@ declare class TablesDB {
|
|
|
686
716
|
* @param {boolean} params.required - Is column required?
|
|
687
717
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
688
718
|
* @param {boolean} params.array - Is column an array?
|
|
719
|
+
* @param {string} params.description - Optional description for the column.
|
|
689
720
|
* @throws {OwbaseException}
|
|
690
721
|
* @returns {Promise<Models.ColumnEmail>}
|
|
691
722
|
*/
|
|
@@ -696,6 +727,7 @@ declare class TablesDB {
|
|
|
696
727
|
required: boolean;
|
|
697
728
|
xdefault?: string;
|
|
698
729
|
array?: boolean;
|
|
730
|
+
description?: string;
|
|
699
731
|
}): Promise<Models.ColumnEmail>;
|
|
700
732
|
/**
|
|
701
733
|
* Create an email column.
|
|
@@ -707,11 +739,12 @@ declare class TablesDB {
|
|
|
707
739
|
* @param {boolean} required - Is column required?
|
|
708
740
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
709
741
|
* @param {boolean} array - Is column an array?
|
|
742
|
+
* @param {string} description - Optional description for the column.
|
|
710
743
|
* @throws {OwbaseException}
|
|
711
744
|
* @returns {Promise<Models.ColumnEmail>}
|
|
712
745
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
713
746
|
*/
|
|
714
|
-
createEmailColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnEmail>;
|
|
747
|
+
createEmailColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.ColumnEmail>;
|
|
715
748
|
/**
|
|
716
749
|
* Update an email column. Changing the `default` value will not update already existing rows.
|
|
717
750
|
*
|
|
@@ -722,6 +755,7 @@ declare class TablesDB {
|
|
|
722
755
|
* @param {boolean} params.required - Is column required?
|
|
723
756
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
724
757
|
* @param {string} params.newKey - New Column Key.
|
|
758
|
+
* @param {string} params.description - Optional description for the column.
|
|
725
759
|
* @throws {OwbaseException}
|
|
726
760
|
* @returns {Promise<Models.ColumnEmail>}
|
|
727
761
|
*/
|
|
@@ -732,6 +766,7 @@ declare class TablesDB {
|
|
|
732
766
|
required: boolean;
|
|
733
767
|
xdefault?: string;
|
|
734
768
|
newKey?: string;
|
|
769
|
+
description?: string;
|
|
735
770
|
}): Promise<Models.ColumnEmail>;
|
|
736
771
|
/**
|
|
737
772
|
* Update an email column. Changing the `default` value will not update already existing rows.
|
|
@@ -743,11 +778,12 @@ declare class TablesDB {
|
|
|
743
778
|
* @param {boolean} required - Is column required?
|
|
744
779
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
745
780
|
* @param {string} newKey - New Column Key.
|
|
781
|
+
* @param {string} description - Optional description for the column.
|
|
746
782
|
* @throws {OwbaseException}
|
|
747
783
|
* @returns {Promise<Models.ColumnEmail>}
|
|
748
784
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
749
785
|
*/
|
|
750
|
-
updateEmailColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnEmail>;
|
|
786
|
+
updateEmailColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnEmail>;
|
|
751
787
|
/**
|
|
752
788
|
* Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.
|
|
753
789
|
*
|
|
@@ -758,6 +794,7 @@ declare class TablesDB {
|
|
|
758
794
|
* @param {boolean} params.required - Is column required?
|
|
759
795
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
760
796
|
* @param {boolean} params.array - Is column an array?
|
|
797
|
+
* @param {string} params.description - Optional description for the column.
|
|
761
798
|
* @throws {OwbaseException}
|
|
762
799
|
* @returns {Promise<Models.ColumnEnum>}
|
|
763
800
|
*/
|
|
@@ -769,6 +806,7 @@ declare class TablesDB {
|
|
|
769
806
|
required: boolean;
|
|
770
807
|
xdefault?: string;
|
|
771
808
|
array?: boolean;
|
|
809
|
+
description?: string;
|
|
772
810
|
}): Promise<Models.ColumnEnum>;
|
|
773
811
|
/**
|
|
774
812
|
* Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.
|
|
@@ -780,11 +818,12 @@ declare class TablesDB {
|
|
|
780
818
|
* @param {boolean} required - Is column required?
|
|
781
819
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
782
820
|
* @param {boolean} array - Is column an array?
|
|
821
|
+
* @param {string} description - Optional description for the column.
|
|
783
822
|
* @throws {OwbaseException}
|
|
784
823
|
* @returns {Promise<Models.ColumnEnum>}
|
|
785
824
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
786
825
|
*/
|
|
787
|
-
createEnumColumn(databaseId: string, tableId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnEnum>;
|
|
826
|
+
createEnumColumn(databaseId: string, tableId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.ColumnEnum>;
|
|
788
827
|
/**
|
|
789
828
|
* Update an enum column. Changing the `default` value will not update already existing rows.
|
|
790
829
|
*
|
|
@@ -796,6 +835,7 @@ declare class TablesDB {
|
|
|
796
835
|
* @param {boolean} params.required - Is column required?
|
|
797
836
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
798
837
|
* @param {string} params.newKey - New Column Key.
|
|
838
|
+
* @param {string} params.description - Optional description for the column.
|
|
799
839
|
* @throws {OwbaseException}
|
|
800
840
|
* @returns {Promise<Models.ColumnEnum>}
|
|
801
841
|
*/
|
|
@@ -807,6 +847,7 @@ declare class TablesDB {
|
|
|
807
847
|
required: boolean;
|
|
808
848
|
xdefault?: string;
|
|
809
849
|
newKey?: string;
|
|
850
|
+
description?: string;
|
|
810
851
|
}): Promise<Models.ColumnEnum>;
|
|
811
852
|
/**
|
|
812
853
|
* Update an enum column. Changing the `default` value will not update already existing rows.
|
|
@@ -819,11 +860,12 @@ declare class TablesDB {
|
|
|
819
860
|
* @param {boolean} required - Is column required?
|
|
820
861
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
821
862
|
* @param {string} newKey - New Column Key.
|
|
863
|
+
* @param {string} description - Optional description for the column.
|
|
822
864
|
* @throws {OwbaseException}
|
|
823
865
|
* @returns {Promise<Models.ColumnEnum>}
|
|
824
866
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
825
867
|
*/
|
|
826
|
-
updateEnumColumn(databaseId: string, tableId: string, key: string, elements: string[], required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnEnum>;
|
|
868
|
+
updateEnumColumn(databaseId: string, tableId: string, key: string, elements: string[], required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnEnum>;
|
|
827
869
|
/**
|
|
828
870
|
* Create a float column. Optionally, minimum and maximum values can be provided.
|
|
829
871
|
*
|
|
@@ -836,6 +878,7 @@ declare class TablesDB {
|
|
|
836
878
|
* @param {number} params.max - Maximum value
|
|
837
879
|
* @param {number} params.xdefault - Default value. Cannot be set when required.
|
|
838
880
|
* @param {boolean} params.array - Is column an array?
|
|
881
|
+
* @param {string} params.description - Optional description for the column.
|
|
839
882
|
* @throws {OwbaseException}
|
|
840
883
|
* @returns {Promise<Models.ColumnFloat>}
|
|
841
884
|
*/
|
|
@@ -848,6 +891,7 @@ declare class TablesDB {
|
|
|
848
891
|
max?: number;
|
|
849
892
|
xdefault?: number;
|
|
850
893
|
array?: boolean;
|
|
894
|
+
description?: string;
|
|
851
895
|
}): Promise<Models.ColumnFloat>;
|
|
852
896
|
/**
|
|
853
897
|
* Create a float column. Optionally, minimum and maximum values can be provided.
|
|
@@ -861,11 +905,12 @@ declare class TablesDB {
|
|
|
861
905
|
* @param {number} max - Maximum value
|
|
862
906
|
* @param {number} xdefault - Default value. Cannot be set when required.
|
|
863
907
|
* @param {boolean} array - Is column an array?
|
|
908
|
+
* @param {string} description - Optional description for the column.
|
|
864
909
|
* @throws {OwbaseException}
|
|
865
910
|
* @returns {Promise<Models.ColumnFloat>}
|
|
866
911
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
867
912
|
*/
|
|
868
|
-
createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.ColumnFloat>;
|
|
913
|
+
createFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean, description?: string): Promise<Models.ColumnFloat>;
|
|
869
914
|
/**
|
|
870
915
|
* Update a float column. Changing the `default` value will not update already existing rows.
|
|
871
916
|
*
|
|
@@ -878,6 +923,7 @@ declare class TablesDB {
|
|
|
878
923
|
* @param {number} params.min - Minimum value
|
|
879
924
|
* @param {number} params.max - Maximum value
|
|
880
925
|
* @param {string} params.newKey - New Column Key.
|
|
926
|
+
* @param {string} params.description - Optional description for the column.
|
|
881
927
|
* @throws {OwbaseException}
|
|
882
928
|
* @returns {Promise<Models.ColumnFloat>}
|
|
883
929
|
*/
|
|
@@ -890,6 +936,7 @@ declare class TablesDB {
|
|
|
890
936
|
min?: number;
|
|
891
937
|
max?: number;
|
|
892
938
|
newKey?: string;
|
|
939
|
+
description?: string;
|
|
893
940
|
}): Promise<Models.ColumnFloat>;
|
|
894
941
|
/**
|
|
895
942
|
* Update a float column. Changing the `default` value will not update already existing rows.
|
|
@@ -903,11 +950,12 @@ declare class TablesDB {
|
|
|
903
950
|
* @param {number} min - Minimum value
|
|
904
951
|
* @param {number} max - Maximum value
|
|
905
952
|
* @param {string} newKey - New Column Key.
|
|
953
|
+
* @param {string} description - Optional description for the column.
|
|
906
954
|
* @throws {OwbaseException}
|
|
907
955
|
* @returns {Promise<Models.ColumnFloat>}
|
|
908
956
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
909
957
|
*/
|
|
910
|
-
updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.ColumnFloat>;
|
|
958
|
+
updateFloatColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string, description?: string): Promise<Models.ColumnFloat>;
|
|
911
959
|
/**
|
|
912
960
|
* Create an integer column. Optionally, minimum and maximum values can be provided.
|
|
913
961
|
*
|
|
@@ -920,6 +968,7 @@ declare class TablesDB {
|
|
|
920
968
|
* @param {number | bigint} params.max - Maximum value
|
|
921
969
|
* @param {number | bigint} params.xdefault - Default value. Cannot be set when column is required.
|
|
922
970
|
* @param {boolean} params.array - Is column an array?
|
|
971
|
+
* @param {string} params.description - Optional description for the column.
|
|
923
972
|
* @throws {OwbaseException}
|
|
924
973
|
* @returns {Promise<Models.ColumnInteger>}
|
|
925
974
|
*/
|
|
@@ -932,6 +981,7 @@ declare class TablesDB {
|
|
|
932
981
|
max?: number | bigint;
|
|
933
982
|
xdefault?: number | bigint;
|
|
934
983
|
array?: boolean;
|
|
984
|
+
description?: string;
|
|
935
985
|
}): Promise<Models.ColumnInteger>;
|
|
936
986
|
/**
|
|
937
987
|
* Create an integer column. Optionally, minimum and maximum values can be provided.
|
|
@@ -945,11 +995,12 @@ declare class TablesDB {
|
|
|
945
995
|
* @param {number | bigint} max - Maximum value
|
|
946
996
|
* @param {number | bigint} xdefault - Default value. Cannot be set when column is required.
|
|
947
997
|
* @param {boolean} array - Is column an array?
|
|
998
|
+
* @param {string} description - Optional description for the column.
|
|
948
999
|
* @throws {OwbaseException}
|
|
949
1000
|
* @returns {Promise<Models.ColumnInteger>}
|
|
950
1001
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
951
1002
|
*/
|
|
952
|
-
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.ColumnInteger>;
|
|
1003
|
+
createIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean, description?: string): Promise<Models.ColumnInteger>;
|
|
953
1004
|
/**
|
|
954
1005
|
* Update an integer column. Changing the `default` value will not update already existing rows.
|
|
955
1006
|
*
|
|
@@ -962,6 +1013,7 @@ declare class TablesDB {
|
|
|
962
1013
|
* @param {number | bigint} params.min - Minimum value
|
|
963
1014
|
* @param {number | bigint} params.max - Maximum value
|
|
964
1015
|
* @param {string} params.newKey - New Column Key.
|
|
1016
|
+
* @param {string} params.description - Optional description for the column.
|
|
965
1017
|
* @throws {OwbaseException}
|
|
966
1018
|
* @returns {Promise<Models.ColumnInteger>}
|
|
967
1019
|
*/
|
|
@@ -974,6 +1026,7 @@ declare class TablesDB {
|
|
|
974
1026
|
min?: number | bigint;
|
|
975
1027
|
max?: number | bigint;
|
|
976
1028
|
newKey?: string;
|
|
1029
|
+
description?: string;
|
|
977
1030
|
}): Promise<Models.ColumnInteger>;
|
|
978
1031
|
/**
|
|
979
1032
|
* Update an integer column. Changing the `default` value will not update already existing rows.
|
|
@@ -987,11 +1040,12 @@ declare class TablesDB {
|
|
|
987
1040
|
* @param {number | bigint} min - Minimum value
|
|
988
1041
|
* @param {number | bigint} max - Maximum value
|
|
989
1042
|
* @param {string} newKey - New Column Key.
|
|
1043
|
+
* @param {string} description - Optional description for the column.
|
|
990
1044
|
* @throws {OwbaseException}
|
|
991
1045
|
* @returns {Promise<Models.ColumnInteger>}
|
|
992
1046
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
993
1047
|
*/
|
|
994
|
-
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.ColumnInteger>;
|
|
1048
|
+
updateIntegerColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string, description?: string): Promise<Models.ColumnInteger>;
|
|
995
1049
|
/**
|
|
996
1050
|
* Create IP address column.
|
|
997
1051
|
*
|
|
@@ -1002,6 +1056,7 @@ declare class TablesDB {
|
|
|
1002
1056
|
* @param {boolean} params.required - Is column required?
|
|
1003
1057
|
* @param {string} params.xdefault - Default value. Cannot be set when column is required.
|
|
1004
1058
|
* @param {boolean} params.array - Is column an array?
|
|
1059
|
+
* @param {string} params.description - Optional description for the column.
|
|
1005
1060
|
* @throws {OwbaseException}
|
|
1006
1061
|
* @returns {Promise<Models.ColumnIp>}
|
|
1007
1062
|
*/
|
|
@@ -1012,6 +1067,7 @@ declare class TablesDB {
|
|
|
1012
1067
|
required: boolean;
|
|
1013
1068
|
xdefault?: string;
|
|
1014
1069
|
array?: boolean;
|
|
1070
|
+
description?: string;
|
|
1015
1071
|
}): Promise<Models.ColumnIp>;
|
|
1016
1072
|
/**
|
|
1017
1073
|
* Create IP address column.
|
|
@@ -1023,11 +1079,12 @@ declare class TablesDB {
|
|
|
1023
1079
|
* @param {boolean} required - Is column required?
|
|
1024
1080
|
* @param {string} xdefault - Default value. Cannot be set when column is required.
|
|
1025
1081
|
* @param {boolean} array - Is column an array?
|
|
1082
|
+
* @param {string} description - Optional description for the column.
|
|
1026
1083
|
* @throws {OwbaseException}
|
|
1027
1084
|
* @returns {Promise<Models.ColumnIp>}
|
|
1028
1085
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1029
1086
|
*/
|
|
1030
|
-
createIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnIp>;
|
|
1087
|
+
createIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.ColumnIp>;
|
|
1031
1088
|
/**
|
|
1032
1089
|
* Update an ip column. Changing the `default` value will not update already existing rows.
|
|
1033
1090
|
*
|
|
@@ -1038,6 +1095,7 @@ declare class TablesDB {
|
|
|
1038
1095
|
* @param {boolean} params.required - Is column required?
|
|
1039
1096
|
* @param {string} params.xdefault - Default value. Cannot be set when column is required.
|
|
1040
1097
|
* @param {string} params.newKey - New Column Key.
|
|
1098
|
+
* @param {string} params.description - Optional description for the column.
|
|
1041
1099
|
* @throws {OwbaseException}
|
|
1042
1100
|
* @returns {Promise<Models.ColumnIp>}
|
|
1043
1101
|
*/
|
|
@@ -1048,6 +1106,7 @@ declare class TablesDB {
|
|
|
1048
1106
|
required: boolean;
|
|
1049
1107
|
xdefault?: string;
|
|
1050
1108
|
newKey?: string;
|
|
1109
|
+
description?: string;
|
|
1051
1110
|
}): Promise<Models.ColumnIp>;
|
|
1052
1111
|
/**
|
|
1053
1112
|
* Update an ip column. Changing the `default` value will not update already existing rows.
|
|
@@ -1059,11 +1118,12 @@ declare class TablesDB {
|
|
|
1059
1118
|
* @param {boolean} required - Is column required?
|
|
1060
1119
|
* @param {string} xdefault - Default value. Cannot be set when column is required.
|
|
1061
1120
|
* @param {string} newKey - New Column Key.
|
|
1121
|
+
* @param {string} description - Optional description for the column.
|
|
1062
1122
|
* @throws {OwbaseException}
|
|
1063
1123
|
* @returns {Promise<Models.ColumnIp>}
|
|
1064
1124
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1065
1125
|
*/
|
|
1066
|
-
updateIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnIp>;
|
|
1126
|
+
updateIpColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnIp>;
|
|
1067
1127
|
/**
|
|
1068
1128
|
* Create a geometric line column.
|
|
1069
1129
|
*
|
|
@@ -1072,6 +1132,7 @@ declare class TablesDB {
|
|
|
1072
1132
|
* @param {string} params.key - Column Key.
|
|
1073
1133
|
* @param {boolean} params.required - Is column required?
|
|
1074
1134
|
* @param {any[][]} params.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.
|
|
1135
|
+
* @param {string} params.description - Optional description for the column.
|
|
1075
1136
|
* @throws {OwbaseException}
|
|
1076
1137
|
* @returns {Promise<Models.ColumnLine>}
|
|
1077
1138
|
*/
|
|
@@ -1081,6 +1142,7 @@ declare class TablesDB {
|
|
|
1081
1142
|
key: string;
|
|
1082
1143
|
required: boolean;
|
|
1083
1144
|
xdefault?: any[][];
|
|
1145
|
+
description?: string;
|
|
1084
1146
|
}): Promise<Models.ColumnLine>;
|
|
1085
1147
|
/**
|
|
1086
1148
|
* Create a geometric line column.
|
|
@@ -1090,11 +1152,12 @@ declare class TablesDB {
|
|
|
1090
1152
|
* @param {string} key - Column Key.
|
|
1091
1153
|
* @param {boolean} required - Is column required?
|
|
1092
1154
|
* @param {any[][]} 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.
|
|
1155
|
+
* @param {string} description - Optional description for the column.
|
|
1093
1156
|
* @throws {OwbaseException}
|
|
1094
1157
|
* @returns {Promise<Models.ColumnLine>}
|
|
1095
1158
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1096
1159
|
*/
|
|
1097
|
-
createLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][]): Promise<Models.ColumnLine>;
|
|
1160
|
+
createLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], description?: string): Promise<Models.ColumnLine>;
|
|
1098
1161
|
/**
|
|
1099
1162
|
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
1100
1163
|
*
|
|
@@ -1104,6 +1167,7 @@ declare class TablesDB {
|
|
|
1104
1167
|
* @param {boolean} params.required - Is column required?
|
|
1105
1168
|
* @param {any[][]} params.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.
|
|
1106
1169
|
* @param {string} params.newKey - New Column Key.
|
|
1170
|
+
* @param {string} params.description - Optional description for the column.
|
|
1107
1171
|
* @throws {OwbaseException}
|
|
1108
1172
|
* @returns {Promise<Models.ColumnLine>}
|
|
1109
1173
|
*/
|
|
@@ -1114,6 +1178,7 @@ declare class TablesDB {
|
|
|
1114
1178
|
required: boolean;
|
|
1115
1179
|
xdefault?: any[][];
|
|
1116
1180
|
newKey?: string;
|
|
1181
|
+
description?: string;
|
|
1117
1182
|
}): Promise<Models.ColumnLine>;
|
|
1118
1183
|
/**
|
|
1119
1184
|
* Update a line column. Changing the `default` value will not update already existing rows.
|
|
@@ -1124,11 +1189,12 @@ declare class TablesDB {
|
|
|
1124
1189
|
* @param {boolean} required - Is column required?
|
|
1125
1190
|
* @param {any[][]} 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.
|
|
1126
1191
|
* @param {string} newKey - New Column Key.
|
|
1192
|
+
* @param {string} description - Optional description for the column.
|
|
1127
1193
|
* @throws {OwbaseException}
|
|
1128
1194
|
* @returns {Promise<Models.ColumnLine>}
|
|
1129
1195
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1130
1196
|
*/
|
|
1131
|
-
updateLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string): Promise<Models.ColumnLine>;
|
|
1197
|
+
updateLineColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string, description?: string): Promise<Models.ColumnLine>;
|
|
1132
1198
|
/**
|
|
1133
1199
|
* Create a longtext column.
|
|
1134
1200
|
*
|
|
@@ -1140,6 +1206,7 @@ declare class TablesDB {
|
|
|
1140
1206
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1141
1207
|
* @param {boolean} params.array - Is column an array?
|
|
1142
1208
|
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1209
|
+
* @param {string} params.description - Optional description for the column.
|
|
1143
1210
|
* @throws {OwbaseException}
|
|
1144
1211
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
1145
1212
|
*/
|
|
@@ -1151,6 +1218,7 @@ declare class TablesDB {
|
|
|
1151
1218
|
xdefault?: string;
|
|
1152
1219
|
array?: boolean;
|
|
1153
1220
|
encrypt?: boolean;
|
|
1221
|
+
description?: string;
|
|
1154
1222
|
}): Promise<Models.ColumnLongtext>;
|
|
1155
1223
|
/**
|
|
1156
1224
|
* Create a longtext column.
|
|
@@ -1163,11 +1231,12 @@ declare class TablesDB {
|
|
|
1163
1231
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1164
1232
|
* @param {boolean} array - Is column an array?
|
|
1165
1233
|
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1234
|
+
* @param {string} description - Optional description for the column.
|
|
1166
1235
|
* @throws {OwbaseException}
|
|
1167
1236
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
1168
1237
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1169
1238
|
*/
|
|
1170
|
-
createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnLongtext>;
|
|
1239
|
+
createLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.ColumnLongtext>;
|
|
1171
1240
|
/**
|
|
1172
1241
|
* Update a longtext column. Changing the `default` value will not update already existing rows.
|
|
1173
1242
|
*
|
|
@@ -1178,6 +1247,7 @@ declare class TablesDB {
|
|
|
1178
1247
|
* @param {boolean} params.required - Is column required?
|
|
1179
1248
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1180
1249
|
* @param {string} params.newKey - New Column Key.
|
|
1250
|
+
* @param {string} params.description - Optional description for the column.
|
|
1181
1251
|
* @throws {OwbaseException}
|
|
1182
1252
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
1183
1253
|
*/
|
|
@@ -1188,6 +1258,7 @@ declare class TablesDB {
|
|
|
1188
1258
|
required: boolean;
|
|
1189
1259
|
xdefault?: string;
|
|
1190
1260
|
newKey?: string;
|
|
1261
|
+
description?: string;
|
|
1191
1262
|
}): Promise<Models.ColumnLongtext>;
|
|
1192
1263
|
/**
|
|
1193
1264
|
* Update a longtext column. Changing the `default` value will not update already existing rows.
|
|
@@ -1199,11 +1270,12 @@ declare class TablesDB {
|
|
|
1199
1270
|
* @param {boolean} required - Is column required?
|
|
1200
1271
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1201
1272
|
* @param {string} newKey - New Column Key.
|
|
1273
|
+
* @param {string} description - Optional description for the column.
|
|
1202
1274
|
* @throws {OwbaseException}
|
|
1203
1275
|
* @returns {Promise<Models.ColumnLongtext>}
|
|
1204
1276
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1205
1277
|
*/
|
|
1206
|
-
updateLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnLongtext>;
|
|
1278
|
+
updateLongtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnLongtext>;
|
|
1207
1279
|
/**
|
|
1208
1280
|
* Create a mediumtext column.
|
|
1209
1281
|
*
|
|
@@ -1215,6 +1287,7 @@ declare class TablesDB {
|
|
|
1215
1287
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1216
1288
|
* @param {boolean} params.array - Is column an array?
|
|
1217
1289
|
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1290
|
+
* @param {string} params.description - Optional description for the column.
|
|
1218
1291
|
* @throws {OwbaseException}
|
|
1219
1292
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
1220
1293
|
*/
|
|
@@ -1226,6 +1299,7 @@ declare class TablesDB {
|
|
|
1226
1299
|
xdefault?: string;
|
|
1227
1300
|
array?: boolean;
|
|
1228
1301
|
encrypt?: boolean;
|
|
1302
|
+
description?: string;
|
|
1229
1303
|
}): Promise<Models.ColumnMediumtext>;
|
|
1230
1304
|
/**
|
|
1231
1305
|
* Create a mediumtext column.
|
|
@@ -1238,11 +1312,12 @@ declare class TablesDB {
|
|
|
1238
1312
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1239
1313
|
* @param {boolean} array - Is column an array?
|
|
1240
1314
|
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1315
|
+
* @param {string} description - Optional description for the column.
|
|
1241
1316
|
* @throws {OwbaseException}
|
|
1242
1317
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
1243
1318
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1244
1319
|
*/
|
|
1245
|
-
createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnMediumtext>;
|
|
1320
|
+
createMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.ColumnMediumtext>;
|
|
1246
1321
|
/**
|
|
1247
1322
|
* Update a mediumtext column. Changing the `default` value will not update already existing rows.
|
|
1248
1323
|
*
|
|
@@ -1253,6 +1328,7 @@ declare class TablesDB {
|
|
|
1253
1328
|
* @param {boolean} params.required - Is column required?
|
|
1254
1329
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1255
1330
|
* @param {string} params.newKey - New Column Key.
|
|
1331
|
+
* @param {string} params.description - Optional description for the column.
|
|
1256
1332
|
* @throws {OwbaseException}
|
|
1257
1333
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
1258
1334
|
*/
|
|
@@ -1263,6 +1339,7 @@ declare class TablesDB {
|
|
|
1263
1339
|
required: boolean;
|
|
1264
1340
|
xdefault?: string;
|
|
1265
1341
|
newKey?: string;
|
|
1342
|
+
description?: string;
|
|
1266
1343
|
}): Promise<Models.ColumnMediumtext>;
|
|
1267
1344
|
/**
|
|
1268
1345
|
* Update a mediumtext column. Changing the `default` value will not update already existing rows.
|
|
@@ -1274,11 +1351,12 @@ declare class TablesDB {
|
|
|
1274
1351
|
* @param {boolean} required - Is column required?
|
|
1275
1352
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1276
1353
|
* @param {string} newKey - New Column Key.
|
|
1354
|
+
* @param {string} description - Optional description for the column.
|
|
1277
1355
|
* @throws {OwbaseException}
|
|
1278
1356
|
* @returns {Promise<Models.ColumnMediumtext>}
|
|
1279
1357
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1280
1358
|
*/
|
|
1281
|
-
updateMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnMediumtext>;
|
|
1359
|
+
updateMediumtextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnMediumtext>;
|
|
1282
1360
|
/**
|
|
1283
1361
|
* Create a geometric point column.
|
|
1284
1362
|
*
|
|
@@ -1287,6 +1365,7 @@ declare class TablesDB {
|
|
|
1287
1365
|
* @param {string} params.key - Column Key.
|
|
1288
1366
|
* @param {boolean} params.required - Is column required?
|
|
1289
1367
|
* @param {number[]} params.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.
|
|
1368
|
+
* @param {string} params.description - Optional description for the column.
|
|
1290
1369
|
* @throws {OwbaseException}
|
|
1291
1370
|
* @returns {Promise<Models.ColumnPoint>}
|
|
1292
1371
|
*/
|
|
@@ -1296,6 +1375,7 @@ declare class TablesDB {
|
|
|
1296
1375
|
key: string;
|
|
1297
1376
|
required: boolean;
|
|
1298
1377
|
xdefault?: number[];
|
|
1378
|
+
description?: string;
|
|
1299
1379
|
}): Promise<Models.ColumnPoint>;
|
|
1300
1380
|
/**
|
|
1301
1381
|
* Create a geometric point column.
|
|
@@ -1305,11 +1385,12 @@ declare class TablesDB {
|
|
|
1305
1385
|
* @param {string} key - Column Key.
|
|
1306
1386
|
* @param {boolean} required - Is column required?
|
|
1307
1387
|
* @param {number[]} 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.
|
|
1388
|
+
* @param {string} description - Optional description for the column.
|
|
1308
1389
|
* @throws {OwbaseException}
|
|
1309
1390
|
* @returns {Promise<Models.ColumnPoint>}
|
|
1310
1391
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1311
1392
|
*/
|
|
1312
|
-
createPointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number[]): Promise<Models.ColumnPoint>;
|
|
1393
|
+
createPointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number[], description?: string): Promise<Models.ColumnPoint>;
|
|
1313
1394
|
/**
|
|
1314
1395
|
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
1315
1396
|
*
|
|
@@ -1319,6 +1400,7 @@ declare class TablesDB {
|
|
|
1319
1400
|
* @param {boolean} params.required - Is column required?
|
|
1320
1401
|
* @param {number[]} params.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.
|
|
1321
1402
|
* @param {string} params.newKey - New Column Key.
|
|
1403
|
+
* @param {string} params.description - Optional description for the column.
|
|
1322
1404
|
* @throws {OwbaseException}
|
|
1323
1405
|
* @returns {Promise<Models.ColumnPoint>}
|
|
1324
1406
|
*/
|
|
@@ -1329,6 +1411,7 @@ declare class TablesDB {
|
|
|
1329
1411
|
required: boolean;
|
|
1330
1412
|
xdefault?: number[];
|
|
1331
1413
|
newKey?: string;
|
|
1414
|
+
description?: string;
|
|
1332
1415
|
}): Promise<Models.ColumnPoint>;
|
|
1333
1416
|
/**
|
|
1334
1417
|
* Update a point column. Changing the `default` value will not update already existing rows.
|
|
@@ -1339,11 +1422,12 @@ declare class TablesDB {
|
|
|
1339
1422
|
* @param {boolean} required - Is column required?
|
|
1340
1423
|
* @param {number[]} 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.
|
|
1341
1424
|
* @param {string} newKey - New Column Key.
|
|
1425
|
+
* @param {string} description - Optional description for the column.
|
|
1342
1426
|
* @throws {OwbaseException}
|
|
1343
1427
|
* @returns {Promise<Models.ColumnPoint>}
|
|
1344
1428
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1345
1429
|
*/
|
|
1346
|
-
updatePointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number[], newKey?: string): Promise<Models.ColumnPoint>;
|
|
1430
|
+
updatePointColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: number[], newKey?: string, description?: string): Promise<Models.ColumnPoint>;
|
|
1347
1431
|
/**
|
|
1348
1432
|
* Create a geometric polygon column.
|
|
1349
1433
|
*
|
|
@@ -1352,6 +1436,7 @@ declare class TablesDB {
|
|
|
1352
1436
|
* @param {string} params.key - Column Key.
|
|
1353
1437
|
* @param {boolean} params.required - Is column required?
|
|
1354
1438
|
* @param {any[][]} params.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.
|
|
1439
|
+
* @param {string} params.description - Optional description for the column.
|
|
1355
1440
|
* @throws {OwbaseException}
|
|
1356
1441
|
* @returns {Promise<Models.ColumnPolygon>}
|
|
1357
1442
|
*/
|
|
@@ -1361,6 +1446,7 @@ declare class TablesDB {
|
|
|
1361
1446
|
key: string;
|
|
1362
1447
|
required: boolean;
|
|
1363
1448
|
xdefault?: any[][];
|
|
1449
|
+
description?: string;
|
|
1364
1450
|
}): Promise<Models.ColumnPolygon>;
|
|
1365
1451
|
/**
|
|
1366
1452
|
* Create a geometric polygon column.
|
|
@@ -1370,11 +1456,12 @@ declare class TablesDB {
|
|
|
1370
1456
|
* @param {string} key - Column Key.
|
|
1371
1457
|
* @param {boolean} required - Is column required?
|
|
1372
1458
|
* @param {any[][]} 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.
|
|
1459
|
+
* @param {string} description - Optional description for the column.
|
|
1373
1460
|
* @throws {OwbaseException}
|
|
1374
1461
|
* @returns {Promise<Models.ColumnPolygon>}
|
|
1375
1462
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1376
1463
|
*/
|
|
1377
|
-
createPolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][]): Promise<Models.ColumnPolygon>;
|
|
1464
|
+
createPolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], description?: string): Promise<Models.ColumnPolygon>;
|
|
1378
1465
|
/**
|
|
1379
1466
|
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
1380
1467
|
*
|
|
@@ -1384,6 +1471,7 @@ declare class TablesDB {
|
|
|
1384
1471
|
* @param {boolean} params.required - Is column required?
|
|
1385
1472
|
* @param {any[][]} params.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.
|
|
1386
1473
|
* @param {string} params.newKey - New Column Key.
|
|
1474
|
+
* @param {string} params.description - Optional description for the column.
|
|
1387
1475
|
* @throws {OwbaseException}
|
|
1388
1476
|
* @returns {Promise<Models.ColumnPolygon>}
|
|
1389
1477
|
*/
|
|
@@ -1394,6 +1482,7 @@ declare class TablesDB {
|
|
|
1394
1482
|
required: boolean;
|
|
1395
1483
|
xdefault?: any[][];
|
|
1396
1484
|
newKey?: string;
|
|
1485
|
+
description?: string;
|
|
1397
1486
|
}): Promise<Models.ColumnPolygon>;
|
|
1398
1487
|
/**
|
|
1399
1488
|
* Update a polygon column. Changing the `default` value will not update already existing rows.
|
|
@@ -1404,11 +1493,12 @@ declare class TablesDB {
|
|
|
1404
1493
|
* @param {boolean} required - Is column required?
|
|
1405
1494
|
* @param {any[][]} 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.
|
|
1406
1495
|
* @param {string} newKey - New Column Key.
|
|
1496
|
+
* @param {string} description - Optional description for the column.
|
|
1407
1497
|
* @throws {OwbaseException}
|
|
1408
1498
|
* @returns {Promise<Models.ColumnPolygon>}
|
|
1409
1499
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1410
1500
|
*/
|
|
1411
|
-
updatePolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string): Promise<Models.ColumnPolygon>;
|
|
1501
|
+
updatePolygonColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string, description?: string): Promise<Models.ColumnPolygon>;
|
|
1412
1502
|
/**
|
|
1413
1503
|
* Create relationship column. [Learn more about relationship columns](https://docs.owbase.dev/databases-relationships#relationship-columns).
|
|
1414
1504
|
*
|
|
@@ -1421,6 +1511,7 @@ declare class TablesDB {
|
|
|
1421
1511
|
* @param {string} params.key - Column Key.
|
|
1422
1512
|
* @param {string} params.twoWayKey - Two Way Column Key.
|
|
1423
1513
|
* @param {RelationMutate} params.onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1514
|
+
* @param {string} params.description - Optional description for the column.
|
|
1424
1515
|
* @throws {OwbaseException}
|
|
1425
1516
|
* @returns {Promise<Models.ColumnRelationship>}
|
|
1426
1517
|
*/
|
|
@@ -1433,6 +1524,7 @@ declare class TablesDB {
|
|
|
1433
1524
|
key?: string;
|
|
1434
1525
|
twoWayKey?: string;
|
|
1435
1526
|
onDelete?: RelationMutate;
|
|
1527
|
+
description?: string;
|
|
1436
1528
|
}): Promise<Models.ColumnRelationship>;
|
|
1437
1529
|
/**
|
|
1438
1530
|
* Create relationship column. [Learn more about relationship columns](https://docs.owbase.dev/databases-relationships#relationship-columns).
|
|
@@ -1446,11 +1538,12 @@ declare class TablesDB {
|
|
|
1446
1538
|
* @param {string} key - Column Key.
|
|
1447
1539
|
* @param {string} twoWayKey - Two Way Column Key.
|
|
1448
1540
|
* @param {RelationMutate} onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1541
|
+
* @param {string} description - Optional description for the column.
|
|
1449
1542
|
* @throws {OwbaseException}
|
|
1450
1543
|
* @returns {Promise<Models.ColumnRelationship>}
|
|
1451
1544
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1452
1545
|
*/
|
|
1453
|
-
createRelationshipColumn(databaseId: string, tableId: string, relatedTableId: string, type: RelationshipType, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: RelationMutate): Promise<Models.ColumnRelationship>;
|
|
1546
|
+
createRelationshipColumn(databaseId: string, tableId: string, relatedTableId: string, type: RelationshipType, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: RelationMutate, description?: string): Promise<Models.ColumnRelationship>;
|
|
1454
1547
|
/**
|
|
1455
1548
|
* Update relationship column. [Learn more about relationship columns](https://docs.owbase.dev/databases-relationships#relationship-columns).
|
|
1456
1549
|
*
|
|
@@ -1460,6 +1553,7 @@ declare class TablesDB {
|
|
|
1460
1553
|
* @param {string} params.key - Column Key.
|
|
1461
1554
|
* @param {RelationMutate} params.onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1462
1555
|
* @param {string} params.newKey - New Column Key.
|
|
1556
|
+
* @param {string} params.description - Optional description for the column.
|
|
1463
1557
|
* @throws {OwbaseException}
|
|
1464
1558
|
* @returns {Promise<Models.ColumnRelationship>}
|
|
1465
1559
|
*/
|
|
@@ -1469,6 +1563,7 @@ declare class TablesDB {
|
|
|
1469
1563
|
key: string;
|
|
1470
1564
|
onDelete?: RelationMutate;
|
|
1471
1565
|
newKey?: string;
|
|
1566
|
+
description?: string;
|
|
1472
1567
|
}): Promise<Models.ColumnRelationship>;
|
|
1473
1568
|
/**
|
|
1474
1569
|
* Update relationship column. [Learn more about relationship columns](https://docs.owbase.dev/databases-relationships#relationship-columns).
|
|
@@ -1479,11 +1574,12 @@ declare class TablesDB {
|
|
|
1479
1574
|
* @param {string} key - Column Key.
|
|
1480
1575
|
* @param {RelationMutate} onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1481
1576
|
* @param {string} newKey - New Column Key.
|
|
1577
|
+
* @param {string} description - Optional description for the column.
|
|
1482
1578
|
* @throws {OwbaseException}
|
|
1483
1579
|
* @returns {Promise<Models.ColumnRelationship>}
|
|
1484
1580
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1485
1581
|
*/
|
|
1486
|
-
updateRelationshipColumn(databaseId: string, tableId: string, key: string, onDelete?: RelationMutate, newKey?: string): Promise<Models.ColumnRelationship>;
|
|
1582
|
+
updateRelationshipColumn(databaseId: string, tableId: string, key: string, onDelete?: RelationMutate, newKey?: string, description?: string): Promise<Models.ColumnRelationship>;
|
|
1487
1583
|
/**
|
|
1488
1584
|
* Create a string column.
|
|
1489
1585
|
*
|
|
@@ -1496,6 +1592,7 @@ declare class TablesDB {
|
|
|
1496
1592
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1497
1593
|
* @param {boolean} params.array - Is column an array?
|
|
1498
1594
|
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1595
|
+
* @param {string} params.description - Optional description for the column.
|
|
1499
1596
|
* @throws {OwbaseException}
|
|
1500
1597
|
* @returns {Promise<Models.ColumnString>}
|
|
1501
1598
|
* @deprecated This API has been deprecated since 1.9.0. Please use `TablesDB.createTextColumn` instead.
|
|
@@ -1509,6 +1606,7 @@ declare class TablesDB {
|
|
|
1509
1606
|
xdefault?: string;
|
|
1510
1607
|
array?: boolean;
|
|
1511
1608
|
encrypt?: boolean;
|
|
1609
|
+
description?: string;
|
|
1512
1610
|
}): Promise<Models.ColumnString>;
|
|
1513
1611
|
/**
|
|
1514
1612
|
* Create a string column.
|
|
@@ -1522,11 +1620,12 @@ declare class TablesDB {
|
|
|
1522
1620
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1523
1621
|
* @param {boolean} array - Is column an array?
|
|
1524
1622
|
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1623
|
+
* @param {string} description - Optional description for the column.
|
|
1525
1624
|
* @throws {OwbaseException}
|
|
1526
1625
|
* @returns {Promise<Models.ColumnString>}
|
|
1527
1626
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1528
1627
|
*/
|
|
1529
|
-
createStringColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnString>;
|
|
1628
|
+
createStringColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.ColumnString>;
|
|
1530
1629
|
/**
|
|
1531
1630
|
* Update a string column. Changing the `default` value will not update already existing rows.
|
|
1532
1631
|
*
|
|
@@ -1538,6 +1637,7 @@ declare class TablesDB {
|
|
|
1538
1637
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1539
1638
|
* @param {number} params.size - Maximum size of the string column.
|
|
1540
1639
|
* @param {string} params.newKey - New Column Key.
|
|
1640
|
+
* @param {string} params.description - Optional description for the column.
|
|
1541
1641
|
* @throws {OwbaseException}
|
|
1542
1642
|
* @returns {Promise<Models.ColumnString>}
|
|
1543
1643
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTextColumn` instead.
|
|
@@ -1550,6 +1650,7 @@ declare class TablesDB {
|
|
|
1550
1650
|
xdefault?: string;
|
|
1551
1651
|
size?: number;
|
|
1552
1652
|
newKey?: string;
|
|
1653
|
+
description?: string;
|
|
1553
1654
|
}): Promise<Models.ColumnString>;
|
|
1554
1655
|
/**
|
|
1555
1656
|
* Update a string column. Changing the `default` value will not update already existing rows.
|
|
@@ -1562,11 +1663,12 @@ declare class TablesDB {
|
|
|
1562
1663
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1563
1664
|
* @param {number} size - Maximum size of the string column.
|
|
1564
1665
|
* @param {string} newKey - New Column Key.
|
|
1666
|
+
* @param {string} description - Optional description for the column.
|
|
1565
1667
|
* @throws {OwbaseException}
|
|
1566
1668
|
* @returns {Promise<Models.ColumnString>}
|
|
1567
1669
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1568
1670
|
*/
|
|
1569
|
-
updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.ColumnString>;
|
|
1671
|
+
updateStringColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string, description?: string): Promise<Models.ColumnString>;
|
|
1570
1672
|
/**
|
|
1571
1673
|
* Create a text column.
|
|
1572
1674
|
*
|
|
@@ -1578,6 +1680,7 @@ declare class TablesDB {
|
|
|
1578
1680
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1579
1681
|
* @param {boolean} params.array - Is column an array?
|
|
1580
1682
|
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1683
|
+
* @param {string} params.description - Optional description for the column.
|
|
1581
1684
|
* @throws {OwbaseException}
|
|
1582
1685
|
* @returns {Promise<Models.ColumnText>}
|
|
1583
1686
|
*/
|
|
@@ -1589,6 +1692,7 @@ declare class TablesDB {
|
|
|
1589
1692
|
xdefault?: string;
|
|
1590
1693
|
array?: boolean;
|
|
1591
1694
|
encrypt?: boolean;
|
|
1695
|
+
description?: string;
|
|
1592
1696
|
}): Promise<Models.ColumnText>;
|
|
1593
1697
|
/**
|
|
1594
1698
|
* Create a text column.
|
|
@@ -1601,11 +1705,12 @@ declare class TablesDB {
|
|
|
1601
1705
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1602
1706
|
* @param {boolean} array - Is column an array?
|
|
1603
1707
|
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1708
|
+
* @param {string} description - Optional description for the column.
|
|
1604
1709
|
* @throws {OwbaseException}
|
|
1605
1710
|
* @returns {Promise<Models.ColumnText>}
|
|
1606
1711
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1607
1712
|
*/
|
|
1608
|
-
createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnText>;
|
|
1713
|
+
createTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.ColumnText>;
|
|
1609
1714
|
/**
|
|
1610
1715
|
* Update a text column. Changing the `default` value will not update already existing rows.
|
|
1611
1716
|
*
|
|
@@ -1616,6 +1721,7 @@ declare class TablesDB {
|
|
|
1616
1721
|
* @param {boolean} params.required - Is column required?
|
|
1617
1722
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1618
1723
|
* @param {string} params.newKey - New Column Key.
|
|
1724
|
+
* @param {string} params.description - Optional description for the column.
|
|
1619
1725
|
* @throws {OwbaseException}
|
|
1620
1726
|
* @returns {Promise<Models.ColumnText>}
|
|
1621
1727
|
*/
|
|
@@ -1626,6 +1732,7 @@ declare class TablesDB {
|
|
|
1626
1732
|
required: boolean;
|
|
1627
1733
|
xdefault?: string;
|
|
1628
1734
|
newKey?: string;
|
|
1735
|
+
description?: string;
|
|
1629
1736
|
}): Promise<Models.ColumnText>;
|
|
1630
1737
|
/**
|
|
1631
1738
|
* Update a text column. Changing the `default` value will not update already existing rows.
|
|
@@ -1637,11 +1744,12 @@ declare class TablesDB {
|
|
|
1637
1744
|
* @param {boolean} required - Is column required?
|
|
1638
1745
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1639
1746
|
* @param {string} newKey - New Column Key.
|
|
1747
|
+
* @param {string} description - Optional description for the column.
|
|
1640
1748
|
* @throws {OwbaseException}
|
|
1641
1749
|
* @returns {Promise<Models.ColumnText>}
|
|
1642
1750
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1643
1751
|
*/
|
|
1644
|
-
updateTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnText>;
|
|
1752
|
+
updateTextColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnText>;
|
|
1645
1753
|
/**
|
|
1646
1754
|
* Create a URL column.
|
|
1647
1755
|
*
|
|
@@ -1652,6 +1760,7 @@ declare class TablesDB {
|
|
|
1652
1760
|
* @param {boolean} params.required - Is column required?
|
|
1653
1761
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1654
1762
|
* @param {boolean} params.array - Is column an array?
|
|
1763
|
+
* @param {string} params.description - Optional description for the column.
|
|
1655
1764
|
* @throws {OwbaseException}
|
|
1656
1765
|
* @returns {Promise<Models.ColumnUrl>}
|
|
1657
1766
|
*/
|
|
@@ -1662,6 +1771,7 @@ declare class TablesDB {
|
|
|
1662
1771
|
required: boolean;
|
|
1663
1772
|
xdefault?: string;
|
|
1664
1773
|
array?: boolean;
|
|
1774
|
+
description?: string;
|
|
1665
1775
|
}): Promise<Models.ColumnUrl>;
|
|
1666
1776
|
/**
|
|
1667
1777
|
* Create a URL column.
|
|
@@ -1673,11 +1783,12 @@ declare class TablesDB {
|
|
|
1673
1783
|
* @param {boolean} required - Is column required?
|
|
1674
1784
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1675
1785
|
* @param {boolean} array - Is column an array?
|
|
1786
|
+
* @param {string} description - Optional description for the column.
|
|
1676
1787
|
* @throws {OwbaseException}
|
|
1677
1788
|
* @returns {Promise<Models.ColumnUrl>}
|
|
1678
1789
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1679
1790
|
*/
|
|
1680
|
-
createUrlColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.ColumnUrl>;
|
|
1791
|
+
createUrlColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.ColumnUrl>;
|
|
1681
1792
|
/**
|
|
1682
1793
|
* Update an url column. Changing the `default` value will not update already existing rows.
|
|
1683
1794
|
*
|
|
@@ -1688,6 +1799,7 @@ declare class TablesDB {
|
|
|
1688
1799
|
* @param {boolean} params.required - Is column required?
|
|
1689
1800
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1690
1801
|
* @param {string} params.newKey - New Column Key.
|
|
1802
|
+
* @param {string} params.description - Optional description for the column.
|
|
1691
1803
|
* @throws {OwbaseException}
|
|
1692
1804
|
* @returns {Promise<Models.ColumnUrl>}
|
|
1693
1805
|
*/
|
|
@@ -1698,6 +1810,7 @@ declare class TablesDB {
|
|
|
1698
1810
|
required: boolean;
|
|
1699
1811
|
xdefault?: string;
|
|
1700
1812
|
newKey?: string;
|
|
1813
|
+
description?: string;
|
|
1701
1814
|
}): Promise<Models.ColumnUrl>;
|
|
1702
1815
|
/**
|
|
1703
1816
|
* Update an url column. Changing the `default` value will not update already existing rows.
|
|
@@ -1709,11 +1822,12 @@ declare class TablesDB {
|
|
|
1709
1822
|
* @param {boolean} required - Is column required?
|
|
1710
1823
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1711
1824
|
* @param {string} newKey - New Column Key.
|
|
1825
|
+
* @param {string} description - Optional description for the column.
|
|
1712
1826
|
* @throws {OwbaseException}
|
|
1713
1827
|
* @returns {Promise<Models.ColumnUrl>}
|
|
1714
1828
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1715
1829
|
*/
|
|
1716
|
-
updateUrlColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.ColumnUrl>;
|
|
1830
|
+
updateUrlColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.ColumnUrl>;
|
|
1717
1831
|
/**
|
|
1718
1832
|
* Create a varchar column.
|
|
1719
1833
|
*
|
|
@@ -1726,6 +1840,7 @@ declare class TablesDB {
|
|
|
1726
1840
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1727
1841
|
* @param {boolean} params.array - Is column an array?
|
|
1728
1842
|
* @param {boolean} params.encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1843
|
+
* @param {string} params.description - Optional description for the column.
|
|
1729
1844
|
* @throws {OwbaseException}
|
|
1730
1845
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
1731
1846
|
*/
|
|
@@ -1738,6 +1853,7 @@ declare class TablesDB {
|
|
|
1738
1853
|
xdefault?: string;
|
|
1739
1854
|
array?: boolean;
|
|
1740
1855
|
encrypt?: boolean;
|
|
1856
|
+
description?: string;
|
|
1741
1857
|
}): Promise<Models.ColumnVarchar>;
|
|
1742
1858
|
/**
|
|
1743
1859
|
* Create a varchar column.
|
|
@@ -1751,11 +1867,12 @@ declare class TablesDB {
|
|
|
1751
1867
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1752
1868
|
* @param {boolean} array - Is column an array?
|
|
1753
1869
|
* @param {boolean} encrypt - Toggle encryption for the column. Encryption enhances security by not storing any plain text values in the database. However, encrypted columns cannot be queried.
|
|
1870
|
+
* @param {string} description - Optional description for the column.
|
|
1754
1871
|
* @throws {OwbaseException}
|
|
1755
1872
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
1756
1873
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1757
1874
|
*/
|
|
1758
|
-
createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.ColumnVarchar>;
|
|
1875
|
+
createVarcharColumn(databaseId: string, tableId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.ColumnVarchar>;
|
|
1759
1876
|
/**
|
|
1760
1877
|
* Update a varchar column. Changing the `default` value will not update already existing rows.
|
|
1761
1878
|
*
|
|
@@ -1767,6 +1884,7 @@ declare class TablesDB {
|
|
|
1767
1884
|
* @param {string} params.xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1768
1885
|
* @param {number} params.size - Maximum size of the varchar column.
|
|
1769
1886
|
* @param {string} params.newKey - New Column Key.
|
|
1887
|
+
* @param {string} params.description - Optional description for the column.
|
|
1770
1888
|
* @throws {OwbaseException}
|
|
1771
1889
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
1772
1890
|
*/
|
|
@@ -1778,6 +1896,7 @@ declare class TablesDB {
|
|
|
1778
1896
|
xdefault?: string;
|
|
1779
1897
|
size?: number;
|
|
1780
1898
|
newKey?: string;
|
|
1899
|
+
description?: string;
|
|
1781
1900
|
}): Promise<Models.ColumnVarchar>;
|
|
1782
1901
|
/**
|
|
1783
1902
|
* Update a varchar column. Changing the `default` value will not update already existing rows.
|
|
@@ -1790,11 +1909,12 @@ declare class TablesDB {
|
|
|
1790
1909
|
* @param {string} xdefault - Default value for column when not provided. Cannot be set when column is required.
|
|
1791
1910
|
* @param {number} size - Maximum size of the varchar column.
|
|
1792
1911
|
* @param {string} newKey - New Column Key.
|
|
1912
|
+
* @param {string} description - Optional description for the column.
|
|
1793
1913
|
* @throws {OwbaseException}
|
|
1794
1914
|
* @returns {Promise<Models.ColumnVarchar>}
|
|
1795
1915
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1796
1916
|
*/
|
|
1797
|
-
updateVarcharColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.ColumnVarchar>;
|
|
1917
|
+
updateVarcharColumn(databaseId: string, tableId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string, description?: string): Promise<Models.ColumnVarchar>;
|
|
1798
1918
|
/**
|
|
1799
1919
|
* Get column by ID.
|
|
1800
1920
|
*
|
|
@@ -1875,7 +1995,7 @@ declare class TablesDB {
|
|
|
1875
1995
|
listIndexes(databaseId: string, tableId: string, queries?: string[], total?: boolean): Promise<Models.ColumnIndexList>;
|
|
1876
1996
|
/**
|
|
1877
1997
|
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
|
|
1878
|
-
* Type can be `key`, `fulltext`, or `
|
|
1998
|
+
* Type can be `key`, `fulltext`, `unique`, `spatial`, or `trigram`. `trigram` is only available on PostgreSQL and lets `contains`, `startsWith`, and `endsWith` queries on string columns use an index.
|
|
1879
1999
|
*
|
|
1880
2000
|
* @param {string} params.databaseId - Database ID.
|
|
1881
2001
|
* @param {string} params.tableId - Table ID. You can create a new table using the Database service [server integration](https://docs.owbase.dev/references/cloud/server-dart/tablesDB#createTable).
|
|
@@ -1884,6 +2004,7 @@ declare class TablesDB {
|
|
|
1884
2004
|
* @param {string[]} params.columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
|
|
1885
2005
|
* @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
1886
2006
|
* @param {number[]} params.lengths - Length of index. Maximum of 100
|
|
2007
|
+
* @param {string} params.description - Optional description for the index.
|
|
1887
2008
|
* @throws {OwbaseException}
|
|
1888
2009
|
* @returns {Promise<Models.ColumnIndex>}
|
|
1889
2010
|
*/
|
|
@@ -1895,10 +2016,11 @@ declare class TablesDB {
|
|
|
1895
2016
|
columns: string[];
|
|
1896
2017
|
orders?: OrderBy[];
|
|
1897
2018
|
lengths?: number[];
|
|
2019
|
+
description?: string;
|
|
1898
2020
|
}): Promise<Models.ColumnIndex>;
|
|
1899
2021
|
/**
|
|
1900
2022
|
* Creates an index on the columns listed. Your index should include all the columns you will query in a single request.
|
|
1901
|
-
* Type can be `key`, `fulltext`, or `
|
|
2023
|
+
* Type can be `key`, `fulltext`, `unique`, `spatial`, or `trigram`. `trigram` is only available on PostgreSQL and lets `contains`, `startsWith`, and `endsWith` queries on string columns use an index.
|
|
1902
2024
|
*
|
|
1903
2025
|
* @param {string} databaseId - Database ID.
|
|
1904
2026
|
* @param {string} tableId - Table ID. You can create a new table using the Database service [server integration](https://docs.owbase.dev/references/cloud/server-dart/tablesDB#createTable).
|
|
@@ -1907,11 +2029,12 @@ declare class TablesDB {
|
|
|
1907
2029
|
* @param {string[]} columns - Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
|
|
1908
2030
|
* @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
1909
2031
|
* @param {number[]} lengths - Length of index. Maximum of 100
|
|
2032
|
+
* @param {string} description - Optional description for the index.
|
|
1910
2033
|
* @throws {OwbaseException}
|
|
1911
2034
|
* @returns {Promise<Models.ColumnIndex>}
|
|
1912
2035
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1913
2036
|
*/
|
|
1914
|
-
createIndex(databaseId: string, tableId: string, key: string, type: TablesDBIndexType, columns: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.ColumnIndex>;
|
|
2037
|
+
createIndex(databaseId: string, tableId: string, key: string, type: TablesDBIndexType, columns: string[], orders?: OrderBy[], lengths?: number[], description?: string): Promise<Models.ColumnIndex>;
|
|
1915
2038
|
/**
|
|
1916
2039
|
* Get index by ID.
|
|
1917
2040
|
*
|
|
@@ -1965,12 +2088,14 @@ declare class TablesDB {
|
|
|
1965
2088
|
/**
|
|
1966
2089
|
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
|
|
1967
2090
|
*
|
|
2091
|
+
* Rows returned by aggregate, groupBy or distinct queries hold only the columns they select, group or aggregate, typed as a row types them, with a joined column named by its join alias (`alias.column`). The response omits their `$id`, `$sequence`, `$createdAt`, `$updatedAt`, `$permissions`, `$databaseId` and `$tableId` unless they select or group it, and those of a right or full join row that no row of this table matched. SDK row models fill omitted system columns with empty values.
|
|
2092
|
+
*
|
|
1968
2093
|
* @param {string} params.databaseId - Database ID.
|
|
1969
2094
|
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://docs.owbase.dev/products/databases/tables#create-table).
|
|
1970
2095
|
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
1971
2096
|
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1972
2097
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1973
|
-
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
|
|
2098
|
+
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
|
|
1974
2099
|
* @throws {OwbaseException}
|
|
1975
2100
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1976
2101
|
*/
|
|
@@ -1985,12 +2110,14 @@ declare class TablesDB {
|
|
|
1985
2110
|
/**
|
|
1986
2111
|
* Get a list of all the user's rows in a given table. You can use the query params to filter your results.
|
|
1987
2112
|
*
|
|
2113
|
+
* Rows returned by aggregate, groupBy or distinct queries hold only the columns they select, group or aggregate, typed as a row types them, with a joined column named by its join alias (`alias.column`). The response omits their `$id`, `$sequence`, `$createdAt`, `$updatedAt`, `$permissions`, `$databaseId` and `$tableId` unless they select or group it, and those of a right or full join row that no row of this table matched. SDK row models fill omitted system columns with empty values.
|
|
2114
|
+
*
|
|
1988
2115
|
* @param {string} databaseId - Database ID.
|
|
1989
2116
|
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://docs.owbase.dev/products/databases/tables#create-table).
|
|
1990
2117
|
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
1991
2118
|
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1992
2119
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1993
|
-
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Must be between 0 and 86400 (24 hours).
|
|
2120
|
+
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
|
|
1994
2121
|
* @throws {OwbaseException}
|
|
1995
2122
|
* @returns {Promise<Models.RowList<Row>>}
|
|
1996
2123
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -2147,6 +2274,42 @@ declare class TablesDB {
|
|
|
2147
2274
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2148
2275
|
*/
|
|
2149
2276
|
deleteRows<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string): Promise<Models.RowList<Row>>;
|
|
2277
|
+
/**
|
|
2278
|
+
* Get a list of all the user's rows in a given table using a POST request. This behaves identically to the list rows endpoint but accepts the queries in the request body, allowing much larger `queries` arrays than can fit in a URL query string.
|
|
2279
|
+
*
|
|
2280
|
+
*
|
|
2281
|
+
* @param {string} params.databaseId - Database ID.
|
|
2282
|
+
* @param {string} params.tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://docs.owbase.dev/products/databases/tables#create-table).
|
|
2283
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2284
|
+
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
2285
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
2286
|
+
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
|
|
2287
|
+
* @throws {OwbaseException}
|
|
2288
|
+
* @returns {Promise<Models.RowList<Row>>}
|
|
2289
|
+
*/
|
|
2290
|
+
createQuery<Row extends Models.Row = Models.DefaultRow>(params: {
|
|
2291
|
+
databaseId: string;
|
|
2292
|
+
tableId: string;
|
|
2293
|
+
queries?: string[];
|
|
2294
|
+
transactionId?: string;
|
|
2295
|
+
total?: boolean;
|
|
2296
|
+
ttl?: number;
|
|
2297
|
+
}): Promise<Models.RowList<Row>>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Get a list of all the user's rows in a given table using a POST request. This behaves identically to the list rows endpoint but accepts the queries in the request body, allowing much larger `queries` arrays than can fit in a URL query string.
|
|
2300
|
+
*
|
|
2301
|
+
*
|
|
2302
|
+
* @param {string} databaseId - Database ID.
|
|
2303
|
+
* @param {string} tableId - Table ID. You can create a new table using the TablesDB service [server integration](https://docs.owbase.dev/products/databases/tables#create-table).
|
|
2304
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://docs.owbase.dev/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2305
|
+
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
2306
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
2307
|
+
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, table, schema version (columns and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; row writes do not, so choose a TTL you are comfortable serving as stale data. Set to 0 to disable caching. Lists with join queries are not cached. Must be between 0 and 86400 (24 hours).
|
|
2308
|
+
* @throws {OwbaseException}
|
|
2309
|
+
* @returns {Promise<Models.RowList<Row>>}
|
|
2310
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2311
|
+
*/
|
|
2312
|
+
createQuery<Row extends Models.Row = Models.DefaultRow>(databaseId: string, tableId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number): Promise<Models.RowList<Row>>;
|
|
2150
2313
|
/**
|
|
2151
2314
|
* Get a row by its unique ID. This endpoint response returns a JSON object with the row data.
|
|
2152
2315
|
*
|