@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
|
@@ -69,6 +69,7 @@ declare class Databases {
|
|
|
69
69
|
* @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.
|
|
70
70
|
* @param {string} params.name - Database name. Max length: 128 chars.
|
|
71
71
|
* @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.
|
|
72
|
+
* @param {string} params.description - Optional description for the database.
|
|
72
73
|
* @throws {OwbaseException}
|
|
73
74
|
* @returns {Promise<Models.Database>}
|
|
74
75
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.create` instead.
|
|
@@ -77,6 +78,7 @@ declare class Databases {
|
|
|
77
78
|
databaseId: string;
|
|
78
79
|
name: string;
|
|
79
80
|
enabled?: boolean;
|
|
81
|
+
description?: string;
|
|
80
82
|
}): Promise<Models.Database>;
|
|
81
83
|
/**
|
|
82
84
|
* Create a new Database.
|
|
@@ -85,11 +87,12 @@ declare class Databases {
|
|
|
85
87
|
* @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.
|
|
86
88
|
* @param {string} name - Database name. Max length: 128 chars.
|
|
87
89
|
* @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.
|
|
90
|
+
* @param {string} description - Optional description for the database.
|
|
88
91
|
* @throws {OwbaseException}
|
|
89
92
|
* @returns {Promise<Models.Database>}
|
|
90
93
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
91
94
|
*/
|
|
92
|
-
create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
|
|
95
|
+
create(databaseId: string, name: string, enabled?: boolean, description?: string): Promise<Models.Database>;
|
|
93
96
|
/**
|
|
94
97
|
* List transactions across all databases.
|
|
95
98
|
*
|
|
@@ -248,6 +251,7 @@ declare class Databases {
|
|
|
248
251
|
* @param {string} params.databaseId - Database ID.
|
|
249
252
|
* @param {string} params.name - Database name. Max length: 128 chars.
|
|
250
253
|
* @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.
|
|
254
|
+
* @param {string} params.description - Optional description for the database.
|
|
251
255
|
* @throws {OwbaseException}
|
|
252
256
|
* @returns {Promise<Models.Database>}
|
|
253
257
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.update` instead.
|
|
@@ -256,6 +260,7 @@ declare class Databases {
|
|
|
256
260
|
databaseId: string;
|
|
257
261
|
name?: string;
|
|
258
262
|
enabled?: boolean;
|
|
263
|
+
description?: string;
|
|
259
264
|
}): Promise<Models.Database>;
|
|
260
265
|
/**
|
|
261
266
|
* Update a database by its unique ID.
|
|
@@ -263,11 +268,12 @@ declare class Databases {
|
|
|
263
268
|
* @param {string} databaseId - Database ID.
|
|
264
269
|
* @param {string} name - Database name. Max length: 128 chars.
|
|
265
270
|
* @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.
|
|
271
|
+
* @param {string} description - Optional description for the database.
|
|
266
272
|
* @throws {OwbaseException}
|
|
267
273
|
* @returns {Promise<Models.Database>}
|
|
268
274
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
269
275
|
*/
|
|
270
|
-
update(databaseId: string, name?: string, enabled?: boolean): Promise<Models.Database>;
|
|
276
|
+
update(databaseId: string, name?: string, enabled?: boolean, description?: string): Promise<Models.Database>;
|
|
271
277
|
/**
|
|
272
278
|
* Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
|
|
273
279
|
*
|
|
@@ -327,7 +333,8 @@ declare class Databases {
|
|
|
327
333
|
* @param {boolean} params.documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://docs.owbase.dev/permissions).
|
|
328
334
|
* @param {boolean} params.enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
|
|
329
335
|
* @param {object[]} params.attributes - Array of attribute definitions to create. Each attribute 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.
|
|
330
|
-
* @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 attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
336
|
+
* @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 attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
337
|
+
* @param {string} params.description - Optional description for the collection.
|
|
331
338
|
* @throws {OwbaseException}
|
|
332
339
|
* @returns {Promise<Models.Collection>}
|
|
333
340
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTable` instead.
|
|
@@ -341,6 +348,7 @@ declare class Databases {
|
|
|
341
348
|
enabled?: boolean;
|
|
342
349
|
attributes?: object[];
|
|
343
350
|
indexes?: object[];
|
|
351
|
+
description?: string;
|
|
344
352
|
}): Promise<Models.Collection>;
|
|
345
353
|
/**
|
|
346
354
|
* Create a new Collection. Before using this route, you should create a new database resource using either a [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
@@ -352,12 +360,13 @@ declare class Databases {
|
|
|
352
360
|
* @param {boolean} documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://docs.owbase.dev/permissions).
|
|
353
361
|
* @param {boolean} enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
|
|
354
362
|
* @param {object[]} attributes - Array of attribute definitions to create. Each attribute 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.
|
|
355
|
-
* @param {object[]} indexes - Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
363
|
+
* @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 attribute keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
364
|
+
* @param {string} description - Optional description for the collection.
|
|
356
365
|
* @throws {OwbaseException}
|
|
357
366
|
* @returns {Promise<Models.Collection>}
|
|
358
367
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
359
368
|
*/
|
|
360
|
-
createCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean, attributes?: object[], indexes?: object[]): Promise<Models.Collection>;
|
|
369
|
+
createCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean, attributes?: object[], indexes?: object[], description?: string): Promise<Models.Collection>;
|
|
361
370
|
/**
|
|
362
371
|
* Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
|
|
363
372
|
*
|
|
@@ -391,6 +400,7 @@ declare class Databases {
|
|
|
391
400
|
* @param {boolean} params.documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://docs.owbase.dev/permissions).
|
|
392
401
|
* @param {boolean} params.enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
|
|
393
402
|
* @param {boolean} params.purge - When true, purge all cached list responses for this collection as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
|
|
403
|
+
* @param {string} params.description - Optional description for the collection.
|
|
394
404
|
* @throws {OwbaseException}
|
|
395
405
|
* @returns {Promise<Models.Collection>}
|
|
396
406
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTable` instead.
|
|
@@ -403,6 +413,7 @@ declare class Databases {
|
|
|
403
413
|
documentSecurity?: boolean;
|
|
404
414
|
enabled?: boolean;
|
|
405
415
|
purge?: boolean;
|
|
416
|
+
description?: string;
|
|
406
417
|
}): Promise<Models.Collection>;
|
|
407
418
|
/**
|
|
408
419
|
* Update a collection by its unique ID.
|
|
@@ -414,11 +425,12 @@ declare class Databases {
|
|
|
414
425
|
* @param {boolean} documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://docs.owbase.dev/permissions).
|
|
415
426
|
* @param {boolean} enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
|
|
416
427
|
* @param {boolean} purge - When true, purge all cached list responses for this collection as part of the update. Use this to force readers to see fresh data immediately instead of waiting for the cache TTL to expire.
|
|
428
|
+
* @param {string} description - Optional description for the collection.
|
|
417
429
|
* @throws {OwbaseException}
|
|
418
430
|
* @returns {Promise<Models.Collection>}
|
|
419
431
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
420
432
|
*/
|
|
421
|
-
updateCollection(databaseId: string, collectionId: string, name?: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean, purge?: boolean): Promise<Models.Collection>;
|
|
433
|
+
updateCollection(databaseId: string, collectionId: string, name?: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean, purge?: boolean, description?: string): Promise<Models.Collection>;
|
|
422
434
|
/**
|
|
423
435
|
* Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.
|
|
424
436
|
*
|
|
@@ -483,6 +495,7 @@ declare class Databases {
|
|
|
483
495
|
* @param {number | bigint} params.max - Maximum value
|
|
484
496
|
* @param {number | bigint} params.xdefault - Default value. Cannot be set when attribute is required.
|
|
485
497
|
* @param {boolean} params.array - Is attribute an array?
|
|
498
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
486
499
|
* @throws {OwbaseException}
|
|
487
500
|
* @returns {Promise<Models.AttributeBigint>}
|
|
488
501
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createBigIntColumn` instead.
|
|
@@ -496,6 +509,7 @@ declare class Databases {
|
|
|
496
509
|
max?: number | bigint;
|
|
497
510
|
xdefault?: number | bigint;
|
|
498
511
|
array?: boolean;
|
|
512
|
+
description?: string;
|
|
499
513
|
}): Promise<Models.AttributeBigint>;
|
|
500
514
|
/**
|
|
501
515
|
* Create a bigint attribute. Optionally, minimum and maximum values can be provided.
|
|
@@ -509,11 +523,12 @@ declare class Databases {
|
|
|
509
523
|
* @param {number | bigint} max - Maximum value
|
|
510
524
|
* @param {number | bigint} xdefault - Default value. Cannot be set when attribute is required.
|
|
511
525
|
* @param {boolean} array - Is attribute an array?
|
|
526
|
+
* @param {string} description - Optional description for the attribute.
|
|
512
527
|
* @throws {OwbaseException}
|
|
513
528
|
* @returns {Promise<Models.AttributeBigint>}
|
|
514
529
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
515
530
|
*/
|
|
516
|
-
createBigIntAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.AttributeBigint>;
|
|
531
|
+
createBigIntAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean, description?: string): Promise<Models.AttributeBigint>;
|
|
517
532
|
/**
|
|
518
533
|
* Update a bigint attribute. Changing the `default` value will not update already existing documents.
|
|
519
534
|
*
|
|
@@ -526,6 +541,7 @@ declare class Databases {
|
|
|
526
541
|
* @param {number | bigint} params.min - Minimum value
|
|
527
542
|
* @param {number | bigint} params.max - Maximum value
|
|
528
543
|
* @param {string} params.newKey - New Attribute Key.
|
|
544
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
529
545
|
* @throws {OwbaseException}
|
|
530
546
|
* @returns {Promise<Models.AttributeBigint>}
|
|
531
547
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateBigIntColumn` instead.
|
|
@@ -539,6 +555,7 @@ declare class Databases {
|
|
|
539
555
|
min?: number | bigint;
|
|
540
556
|
max?: number | bigint;
|
|
541
557
|
newKey?: string;
|
|
558
|
+
description?: string;
|
|
542
559
|
}): Promise<Models.AttributeBigint>;
|
|
543
560
|
/**
|
|
544
561
|
* Update a bigint attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -552,11 +569,12 @@ declare class Databases {
|
|
|
552
569
|
* @param {number | bigint} min - Minimum value
|
|
553
570
|
* @param {number | bigint} max - Maximum value
|
|
554
571
|
* @param {string} newKey - New Attribute Key.
|
|
572
|
+
* @param {string} description - Optional description for the attribute.
|
|
555
573
|
* @throws {OwbaseException}
|
|
556
574
|
* @returns {Promise<Models.AttributeBigint>}
|
|
557
575
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
558
576
|
*/
|
|
559
|
-
updateBigIntAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.AttributeBigint>;
|
|
577
|
+
updateBigIntAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string, description?: string): Promise<Models.AttributeBigint>;
|
|
560
578
|
/**
|
|
561
579
|
* Create a boolean attribute.
|
|
562
580
|
*
|
|
@@ -567,6 +585,7 @@ declare class Databases {
|
|
|
567
585
|
* @param {boolean} params.required - Is attribute required?
|
|
568
586
|
* @param {boolean} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
569
587
|
* @param {boolean} params.array - Is attribute an array?
|
|
588
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
570
589
|
* @throws {OwbaseException}
|
|
571
590
|
* @returns {Promise<Models.AttributeBoolean>}
|
|
572
591
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createBooleanColumn` instead.
|
|
@@ -578,6 +597,7 @@ declare class Databases {
|
|
|
578
597
|
required: boolean;
|
|
579
598
|
xdefault?: boolean;
|
|
580
599
|
array?: boolean;
|
|
600
|
+
description?: string;
|
|
581
601
|
}): Promise<Models.AttributeBoolean>;
|
|
582
602
|
/**
|
|
583
603
|
* Create a boolean attribute.
|
|
@@ -589,11 +609,12 @@ declare class Databases {
|
|
|
589
609
|
* @param {boolean} required - Is attribute required?
|
|
590
610
|
* @param {boolean} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
591
611
|
* @param {boolean} array - Is attribute an array?
|
|
612
|
+
* @param {string} description - Optional description for the attribute.
|
|
592
613
|
* @throws {OwbaseException}
|
|
593
614
|
* @returns {Promise<Models.AttributeBoolean>}
|
|
594
615
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
595
616
|
*/
|
|
596
|
-
createBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean): Promise<Models.AttributeBoolean>;
|
|
617
|
+
createBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean, description?: string): Promise<Models.AttributeBoolean>;
|
|
597
618
|
/**
|
|
598
619
|
* Update a boolean attribute. Changing the `default` value will not update already existing documents.
|
|
599
620
|
*
|
|
@@ -603,6 +624,7 @@ declare class Databases {
|
|
|
603
624
|
* @param {boolean} params.required - Is attribute required?
|
|
604
625
|
* @param {boolean} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
605
626
|
* @param {string} params.newKey - New attribute key.
|
|
627
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
606
628
|
* @throws {OwbaseException}
|
|
607
629
|
* @returns {Promise<Models.AttributeBoolean>}
|
|
608
630
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateBooleanColumn` instead.
|
|
@@ -614,6 +636,7 @@ declare class Databases {
|
|
|
614
636
|
required: boolean;
|
|
615
637
|
xdefault?: boolean;
|
|
616
638
|
newKey?: string;
|
|
639
|
+
description?: string;
|
|
617
640
|
}): Promise<Models.AttributeBoolean>;
|
|
618
641
|
/**
|
|
619
642
|
* Update a boolean attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -624,11 +647,12 @@ declare class Databases {
|
|
|
624
647
|
* @param {boolean} required - Is attribute required?
|
|
625
648
|
* @param {boolean} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
626
649
|
* @param {string} newKey - New attribute key.
|
|
650
|
+
* @param {string} description - Optional description for the attribute.
|
|
627
651
|
* @throws {OwbaseException}
|
|
628
652
|
* @returns {Promise<Models.AttributeBoolean>}
|
|
629
653
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
630
654
|
*/
|
|
631
|
-
updateBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, newKey?: string): Promise<Models.AttributeBoolean>;
|
|
655
|
+
updateBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, newKey?: string, description?: string): Promise<Models.AttributeBoolean>;
|
|
632
656
|
/**
|
|
633
657
|
* Create a date time attribute according to the ISO 8601 standard.
|
|
634
658
|
*
|
|
@@ -638,6 +662,7 @@ declare class Databases {
|
|
|
638
662
|
* @param {boolean} params.required - Is attribute required?
|
|
639
663
|
* @param {string} params.xdefault - Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required.
|
|
640
664
|
* @param {boolean} params.array - Is attribute an array?
|
|
665
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
641
666
|
* @throws {OwbaseException}
|
|
642
667
|
* @returns {Promise<Models.AttributeDatetime>}
|
|
643
668
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createDatetimeColumn` instead.
|
|
@@ -649,6 +674,7 @@ declare class Databases {
|
|
|
649
674
|
required: boolean;
|
|
650
675
|
xdefault?: string;
|
|
651
676
|
array?: boolean;
|
|
677
|
+
description?: string;
|
|
652
678
|
}): Promise<Models.AttributeDatetime>;
|
|
653
679
|
/**
|
|
654
680
|
* Create a date time attribute according to the ISO 8601 standard.
|
|
@@ -659,11 +685,12 @@ declare class Databases {
|
|
|
659
685
|
* @param {boolean} required - Is attribute required?
|
|
660
686
|
* @param {string} xdefault - Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required.
|
|
661
687
|
* @param {boolean} array - Is attribute an array?
|
|
688
|
+
* @param {string} description - Optional description for the attribute.
|
|
662
689
|
* @throws {OwbaseException}
|
|
663
690
|
* @returns {Promise<Models.AttributeDatetime>}
|
|
664
691
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
665
692
|
*/
|
|
666
|
-
createDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeDatetime>;
|
|
693
|
+
createDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.AttributeDatetime>;
|
|
667
694
|
/**
|
|
668
695
|
* Update a date time attribute. Changing the `default` value will not update already existing documents.
|
|
669
696
|
*
|
|
@@ -673,6 +700,7 @@ declare class Databases {
|
|
|
673
700
|
* @param {boolean} params.required - Is attribute required?
|
|
674
701
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
675
702
|
* @param {string} params.newKey - New attribute key.
|
|
703
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
676
704
|
* @throws {OwbaseException}
|
|
677
705
|
* @returns {Promise<Models.AttributeDatetime>}
|
|
678
706
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateDatetimeColumn` instead.
|
|
@@ -684,6 +712,7 @@ declare class Databases {
|
|
|
684
712
|
required: boolean;
|
|
685
713
|
xdefault?: string;
|
|
686
714
|
newKey?: string;
|
|
715
|
+
description?: string;
|
|
687
716
|
}): Promise<Models.AttributeDatetime>;
|
|
688
717
|
/**
|
|
689
718
|
* Update a date time attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -694,11 +723,12 @@ declare class Databases {
|
|
|
694
723
|
* @param {boolean} required - Is attribute required?
|
|
695
724
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
696
725
|
* @param {string} newKey - New attribute key.
|
|
726
|
+
* @param {string} description - Optional description for the attribute.
|
|
697
727
|
* @throws {OwbaseException}
|
|
698
728
|
* @returns {Promise<Models.AttributeDatetime>}
|
|
699
729
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
700
730
|
*/
|
|
701
|
-
updateDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeDatetime>;
|
|
731
|
+
updateDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeDatetime>;
|
|
702
732
|
/**
|
|
703
733
|
* Create an email attribute.
|
|
704
734
|
*
|
|
@@ -709,6 +739,7 @@ declare class Databases {
|
|
|
709
739
|
* @param {boolean} params.required - Is attribute required?
|
|
710
740
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
711
741
|
* @param {boolean} params.array - Is attribute an array?
|
|
742
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
712
743
|
* @throws {OwbaseException}
|
|
713
744
|
* @returns {Promise<Models.AttributeEmail>}
|
|
714
745
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createEmailColumn` instead.
|
|
@@ -720,6 +751,7 @@ declare class Databases {
|
|
|
720
751
|
required: boolean;
|
|
721
752
|
xdefault?: string;
|
|
722
753
|
array?: boolean;
|
|
754
|
+
description?: string;
|
|
723
755
|
}): Promise<Models.AttributeEmail>;
|
|
724
756
|
/**
|
|
725
757
|
* Create an email attribute.
|
|
@@ -731,11 +763,12 @@ declare class Databases {
|
|
|
731
763
|
* @param {boolean} required - Is attribute required?
|
|
732
764
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
733
765
|
* @param {boolean} array - Is attribute an array?
|
|
766
|
+
* @param {string} description - Optional description for the attribute.
|
|
734
767
|
* @throws {OwbaseException}
|
|
735
768
|
* @returns {Promise<Models.AttributeEmail>}
|
|
736
769
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
737
770
|
*/
|
|
738
|
-
createEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEmail>;
|
|
771
|
+
createEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.AttributeEmail>;
|
|
739
772
|
/**
|
|
740
773
|
* Update an email attribute. Changing the `default` value will not update already existing documents.
|
|
741
774
|
*
|
|
@@ -746,6 +779,7 @@ declare class Databases {
|
|
|
746
779
|
* @param {boolean} params.required - Is attribute required?
|
|
747
780
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
748
781
|
* @param {string} params.newKey - New Attribute Key.
|
|
782
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
749
783
|
* @throws {OwbaseException}
|
|
750
784
|
* @returns {Promise<Models.AttributeEmail>}
|
|
751
785
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateEmailColumn` instead.
|
|
@@ -757,6 +791,7 @@ declare class Databases {
|
|
|
757
791
|
required: boolean;
|
|
758
792
|
xdefault?: string;
|
|
759
793
|
newKey?: string;
|
|
794
|
+
description?: string;
|
|
760
795
|
}): Promise<Models.AttributeEmail>;
|
|
761
796
|
/**
|
|
762
797
|
* Update an email attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -768,11 +803,12 @@ declare class Databases {
|
|
|
768
803
|
* @param {boolean} required - Is attribute required?
|
|
769
804
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
770
805
|
* @param {string} newKey - New Attribute Key.
|
|
806
|
+
* @param {string} description - Optional description for the attribute.
|
|
771
807
|
* @throws {OwbaseException}
|
|
772
808
|
* @returns {Promise<Models.AttributeEmail>}
|
|
773
809
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
774
810
|
*/
|
|
775
|
-
updateEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeEmail>;
|
|
811
|
+
updateEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeEmail>;
|
|
776
812
|
/**
|
|
777
813
|
* Create an enum attribute. The `elements` param acts as a white-list of accepted values for this attribute.
|
|
778
814
|
*
|
|
@@ -784,6 +820,7 @@ declare class Databases {
|
|
|
784
820
|
* @param {boolean} params.required - Is attribute required?
|
|
785
821
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
786
822
|
* @param {boolean} params.array - Is attribute an array?
|
|
823
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
787
824
|
* @throws {OwbaseException}
|
|
788
825
|
* @returns {Promise<Models.AttributeEnum>}
|
|
789
826
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createEnumColumn` instead.
|
|
@@ -796,6 +833,7 @@ declare class Databases {
|
|
|
796
833
|
required: boolean;
|
|
797
834
|
xdefault?: string;
|
|
798
835
|
array?: boolean;
|
|
836
|
+
description?: string;
|
|
799
837
|
}): Promise<Models.AttributeEnum>;
|
|
800
838
|
/**
|
|
801
839
|
* Create an enum attribute. The `elements` param acts as a white-list of accepted values for this attribute.
|
|
@@ -808,11 +846,12 @@ declare class Databases {
|
|
|
808
846
|
* @param {boolean} required - Is attribute required?
|
|
809
847
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
810
848
|
* @param {boolean} array - Is attribute an array?
|
|
849
|
+
* @param {string} description - Optional description for the attribute.
|
|
811
850
|
* @throws {OwbaseException}
|
|
812
851
|
* @returns {Promise<Models.AttributeEnum>}
|
|
813
852
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
814
853
|
*/
|
|
815
|
-
createEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEnum>;
|
|
854
|
+
createEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.AttributeEnum>;
|
|
816
855
|
/**
|
|
817
856
|
* Update an enum attribute. Changing the `default` value will not update already existing documents.
|
|
818
857
|
*
|
|
@@ -824,6 +863,7 @@ declare class Databases {
|
|
|
824
863
|
* @param {boolean} params.required - Is attribute required?
|
|
825
864
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
826
865
|
* @param {string} params.newKey - New Attribute Key.
|
|
866
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
827
867
|
* @throws {OwbaseException}
|
|
828
868
|
* @returns {Promise<Models.AttributeEnum>}
|
|
829
869
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateEnumColumn` instead.
|
|
@@ -836,6 +876,7 @@ declare class Databases {
|
|
|
836
876
|
required: boolean;
|
|
837
877
|
xdefault?: string;
|
|
838
878
|
newKey?: string;
|
|
879
|
+
description?: string;
|
|
839
880
|
}): Promise<Models.AttributeEnum>;
|
|
840
881
|
/**
|
|
841
882
|
* Update an enum attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -848,11 +889,12 @@ declare class Databases {
|
|
|
848
889
|
* @param {boolean} required - Is attribute required?
|
|
849
890
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
850
891
|
* @param {string} newKey - New Attribute Key.
|
|
892
|
+
* @param {string} description - Optional description for the attribute.
|
|
851
893
|
* @throws {OwbaseException}
|
|
852
894
|
* @returns {Promise<Models.AttributeEnum>}
|
|
853
895
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
854
896
|
*/
|
|
855
|
-
updateEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeEnum>;
|
|
897
|
+
updateEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeEnum>;
|
|
856
898
|
/**
|
|
857
899
|
* Create a float attribute. Optionally, minimum and maximum values can be provided.
|
|
858
900
|
*
|
|
@@ -865,6 +907,7 @@ declare class Databases {
|
|
|
865
907
|
* @param {number} params.max - Maximum value.
|
|
866
908
|
* @param {number} params.xdefault - Default value. Cannot be set when required.
|
|
867
909
|
* @param {boolean} params.array - Is attribute an array?
|
|
910
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
868
911
|
* @throws {OwbaseException}
|
|
869
912
|
* @returns {Promise<Models.AttributeFloat>}
|
|
870
913
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createFloatColumn` instead.
|
|
@@ -878,6 +921,7 @@ declare class Databases {
|
|
|
878
921
|
max?: number;
|
|
879
922
|
xdefault?: number;
|
|
880
923
|
array?: boolean;
|
|
924
|
+
description?: string;
|
|
881
925
|
}): Promise<Models.AttributeFloat>;
|
|
882
926
|
/**
|
|
883
927
|
* Create a float attribute. Optionally, minimum and maximum values can be provided.
|
|
@@ -891,11 +935,12 @@ declare class Databases {
|
|
|
891
935
|
* @param {number} max - Maximum value.
|
|
892
936
|
* @param {number} xdefault - Default value. Cannot be set when required.
|
|
893
937
|
* @param {boolean} array - Is attribute an array?
|
|
938
|
+
* @param {string} description - Optional description for the attribute.
|
|
894
939
|
* @throws {OwbaseException}
|
|
895
940
|
* @returns {Promise<Models.AttributeFloat>}
|
|
896
941
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
897
942
|
*/
|
|
898
|
-
createFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.AttributeFloat>;
|
|
943
|
+
createFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean, description?: string): Promise<Models.AttributeFloat>;
|
|
899
944
|
/**
|
|
900
945
|
* Update a float attribute. Changing the `default` value will not update already existing documents.
|
|
901
946
|
*
|
|
@@ -908,6 +953,7 @@ declare class Databases {
|
|
|
908
953
|
* @param {number} params.min - Minimum value.
|
|
909
954
|
* @param {number} params.max - Maximum value.
|
|
910
955
|
* @param {string} params.newKey - New Attribute Key.
|
|
956
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
911
957
|
* @throws {OwbaseException}
|
|
912
958
|
* @returns {Promise<Models.AttributeFloat>}
|
|
913
959
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateFloatColumn` instead.
|
|
@@ -921,6 +967,7 @@ declare class Databases {
|
|
|
921
967
|
min?: number;
|
|
922
968
|
max?: number;
|
|
923
969
|
newKey?: string;
|
|
970
|
+
description?: string;
|
|
924
971
|
}): Promise<Models.AttributeFloat>;
|
|
925
972
|
/**
|
|
926
973
|
* Update a float attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -934,11 +981,12 @@ declare class Databases {
|
|
|
934
981
|
* @param {number} min - Minimum value.
|
|
935
982
|
* @param {number} max - Maximum value.
|
|
936
983
|
* @param {string} newKey - New Attribute Key.
|
|
984
|
+
* @param {string} description - Optional description for the attribute.
|
|
937
985
|
* @throws {OwbaseException}
|
|
938
986
|
* @returns {Promise<Models.AttributeFloat>}
|
|
939
987
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
940
988
|
*/
|
|
941
|
-
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeFloat>;
|
|
989
|
+
updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string, description?: string): Promise<Models.AttributeFloat>;
|
|
942
990
|
/**
|
|
943
991
|
* Create an integer attribute. Optionally, minimum and maximum values can be provided.
|
|
944
992
|
*
|
|
@@ -951,6 +999,7 @@ declare class Databases {
|
|
|
951
999
|
* @param {number | bigint} params.max - Maximum value
|
|
952
1000
|
* @param {number | bigint} params.xdefault - Default value. Cannot be set when attribute is required.
|
|
953
1001
|
* @param {boolean} params.array - Is attribute an array?
|
|
1002
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
954
1003
|
* @throws {OwbaseException}
|
|
955
1004
|
* @returns {Promise<Models.AttributeInteger>}
|
|
956
1005
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createIntegerColumn` instead.
|
|
@@ -964,6 +1013,7 @@ declare class Databases {
|
|
|
964
1013
|
max?: number | bigint;
|
|
965
1014
|
xdefault?: number | bigint;
|
|
966
1015
|
array?: boolean;
|
|
1016
|
+
description?: string;
|
|
967
1017
|
}): Promise<Models.AttributeInteger>;
|
|
968
1018
|
/**
|
|
969
1019
|
* Create an integer attribute. Optionally, minimum and maximum values can be provided.
|
|
@@ -977,11 +1027,12 @@ declare class Databases {
|
|
|
977
1027
|
* @param {number | bigint} max - Maximum value
|
|
978
1028
|
* @param {number | bigint} xdefault - Default value. Cannot be set when attribute is required.
|
|
979
1029
|
* @param {boolean} array - Is attribute an array?
|
|
1030
|
+
* @param {string} description - Optional description for the attribute.
|
|
980
1031
|
* @throws {OwbaseException}
|
|
981
1032
|
* @returns {Promise<Models.AttributeInteger>}
|
|
982
1033
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
983
1034
|
*/
|
|
984
|
-
createIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean): Promise<Models.AttributeInteger>;
|
|
1035
|
+
createIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number | bigint, max?: number | bigint, xdefault?: number | bigint, array?: boolean, description?: string): Promise<Models.AttributeInteger>;
|
|
985
1036
|
/**
|
|
986
1037
|
* Update an integer attribute. Changing the `default` value will not update already existing documents.
|
|
987
1038
|
*
|
|
@@ -994,6 +1045,7 @@ declare class Databases {
|
|
|
994
1045
|
* @param {number | bigint} params.min - Minimum value
|
|
995
1046
|
* @param {number | bigint} params.max - Maximum value
|
|
996
1047
|
* @param {string} params.newKey - New Attribute Key.
|
|
1048
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
997
1049
|
* @throws {OwbaseException}
|
|
998
1050
|
* @returns {Promise<Models.AttributeInteger>}
|
|
999
1051
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateIntegerColumn` instead.
|
|
@@ -1007,6 +1059,7 @@ declare class Databases {
|
|
|
1007
1059
|
min?: number | bigint;
|
|
1008
1060
|
max?: number | bigint;
|
|
1009
1061
|
newKey?: string;
|
|
1062
|
+
description?: string;
|
|
1010
1063
|
}): Promise<Models.AttributeInteger>;
|
|
1011
1064
|
/**
|
|
1012
1065
|
* Update an integer attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1020,11 +1073,12 @@ declare class Databases {
|
|
|
1020
1073
|
* @param {number | bigint} min - Minimum value
|
|
1021
1074
|
* @param {number | bigint} max - Maximum value
|
|
1022
1075
|
* @param {string} newKey - New Attribute Key.
|
|
1076
|
+
* @param {string} description - Optional description for the attribute.
|
|
1023
1077
|
* @throws {OwbaseException}
|
|
1024
1078
|
* @returns {Promise<Models.AttributeInteger>}
|
|
1025
1079
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1026
1080
|
*/
|
|
1027
|
-
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string): Promise<Models.AttributeInteger>;
|
|
1081
|
+
updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number | bigint, min?: number | bigint, max?: number | bigint, newKey?: string, description?: string): Promise<Models.AttributeInteger>;
|
|
1028
1082
|
/**
|
|
1029
1083
|
* Create IP address attribute.
|
|
1030
1084
|
*
|
|
@@ -1035,6 +1089,7 @@ declare class Databases {
|
|
|
1035
1089
|
* @param {boolean} params.required - Is attribute required?
|
|
1036
1090
|
* @param {string} params.xdefault - Default value. Cannot be set when attribute is required.
|
|
1037
1091
|
* @param {boolean} params.array - Is attribute an array?
|
|
1092
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1038
1093
|
* @throws {OwbaseException}
|
|
1039
1094
|
* @returns {Promise<Models.AttributeIp>}
|
|
1040
1095
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createIpColumn` instead.
|
|
@@ -1046,6 +1101,7 @@ declare class Databases {
|
|
|
1046
1101
|
required: boolean;
|
|
1047
1102
|
xdefault?: string;
|
|
1048
1103
|
array?: boolean;
|
|
1104
|
+
description?: string;
|
|
1049
1105
|
}): Promise<Models.AttributeIp>;
|
|
1050
1106
|
/**
|
|
1051
1107
|
* Create IP address attribute.
|
|
@@ -1057,11 +1113,12 @@ declare class Databases {
|
|
|
1057
1113
|
* @param {boolean} required - Is attribute required?
|
|
1058
1114
|
* @param {string} xdefault - Default value. Cannot be set when attribute is required.
|
|
1059
1115
|
* @param {boolean} array - Is attribute an array?
|
|
1116
|
+
* @param {string} description - Optional description for the attribute.
|
|
1060
1117
|
* @throws {OwbaseException}
|
|
1061
1118
|
* @returns {Promise<Models.AttributeIp>}
|
|
1062
1119
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1063
1120
|
*/
|
|
1064
|
-
createIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeIp>;
|
|
1121
|
+
createIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.AttributeIp>;
|
|
1065
1122
|
/**
|
|
1066
1123
|
* Update an ip attribute. Changing the `default` value will not update already existing documents.
|
|
1067
1124
|
*
|
|
@@ -1072,6 +1129,7 @@ declare class Databases {
|
|
|
1072
1129
|
* @param {boolean} params.required - Is attribute required?
|
|
1073
1130
|
* @param {string} params.xdefault - Default value. Cannot be set when attribute is required.
|
|
1074
1131
|
* @param {string} params.newKey - New Attribute Key.
|
|
1132
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1075
1133
|
* @throws {OwbaseException}
|
|
1076
1134
|
* @returns {Promise<Models.AttributeIp>}
|
|
1077
1135
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateIpColumn` instead.
|
|
@@ -1083,6 +1141,7 @@ declare class Databases {
|
|
|
1083
1141
|
required: boolean;
|
|
1084
1142
|
xdefault?: string;
|
|
1085
1143
|
newKey?: string;
|
|
1144
|
+
description?: string;
|
|
1086
1145
|
}): Promise<Models.AttributeIp>;
|
|
1087
1146
|
/**
|
|
1088
1147
|
* Update an ip attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1094,11 +1153,12 @@ declare class Databases {
|
|
|
1094
1153
|
* @param {boolean} required - Is attribute required?
|
|
1095
1154
|
* @param {string} xdefault - Default value. Cannot be set when attribute is required.
|
|
1096
1155
|
* @param {string} newKey - New Attribute Key.
|
|
1156
|
+
* @param {string} description - Optional description for the attribute.
|
|
1097
1157
|
* @throws {OwbaseException}
|
|
1098
1158
|
* @returns {Promise<Models.AttributeIp>}
|
|
1099
1159
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1100
1160
|
*/
|
|
1101
|
-
updateIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeIp>;
|
|
1161
|
+
updateIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeIp>;
|
|
1102
1162
|
/**
|
|
1103
1163
|
* Create a geometric line attribute.
|
|
1104
1164
|
*
|
|
@@ -1107,6 +1167,7 @@ declare class Databases {
|
|
|
1107
1167
|
* @param {string} params.key - Attribute Key.
|
|
1108
1168
|
* @param {boolean} params.required - Is attribute required?
|
|
1109
1169
|
* @param {any[][]} params.xdefault - Default value for attribute 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 attribute is required.
|
|
1170
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1110
1171
|
* @throws {OwbaseException}
|
|
1111
1172
|
* @returns {Promise<Models.AttributeLine>}
|
|
1112
1173
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createLineColumn` instead.
|
|
@@ -1117,6 +1178,7 @@ declare class Databases {
|
|
|
1117
1178
|
key: string;
|
|
1118
1179
|
required: boolean;
|
|
1119
1180
|
xdefault?: any[][];
|
|
1181
|
+
description?: string;
|
|
1120
1182
|
}): Promise<Models.AttributeLine>;
|
|
1121
1183
|
/**
|
|
1122
1184
|
* Create a geometric line attribute.
|
|
@@ -1126,11 +1188,12 @@ declare class Databases {
|
|
|
1126
1188
|
* @param {string} key - Attribute Key.
|
|
1127
1189
|
* @param {boolean} required - Is attribute required?
|
|
1128
1190
|
* @param {any[][]} xdefault - Default value for attribute 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 attribute is required.
|
|
1191
|
+
* @param {string} description - Optional description for the attribute.
|
|
1129
1192
|
* @throws {OwbaseException}
|
|
1130
1193
|
* @returns {Promise<Models.AttributeLine>}
|
|
1131
1194
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1132
1195
|
*/
|
|
1133
|
-
createLineAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][]): Promise<Models.AttributeLine>;
|
|
1196
|
+
createLineAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], description?: string): Promise<Models.AttributeLine>;
|
|
1134
1197
|
/**
|
|
1135
1198
|
* Update a line attribute. Changing the `default` value will not update already existing documents.
|
|
1136
1199
|
*
|
|
@@ -1140,6 +1203,7 @@ declare class Databases {
|
|
|
1140
1203
|
* @param {boolean} params.required - Is attribute required?
|
|
1141
1204
|
* @param {any[][]} params.xdefault - Default value for attribute 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 attribute is required.
|
|
1142
1205
|
* @param {string} params.newKey - New attribute key.
|
|
1206
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1143
1207
|
* @throws {OwbaseException}
|
|
1144
1208
|
* @returns {Promise<Models.AttributeLine>}
|
|
1145
1209
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateLineColumn` instead.
|
|
@@ -1151,6 +1215,7 @@ declare class Databases {
|
|
|
1151
1215
|
required: boolean;
|
|
1152
1216
|
xdefault?: any[][];
|
|
1153
1217
|
newKey?: string;
|
|
1218
|
+
description?: string;
|
|
1154
1219
|
}): Promise<Models.AttributeLine>;
|
|
1155
1220
|
/**
|
|
1156
1221
|
* Update a line attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1161,11 +1226,12 @@ declare class Databases {
|
|
|
1161
1226
|
* @param {boolean} required - Is attribute required?
|
|
1162
1227
|
* @param {any[][]} xdefault - Default value for attribute 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 attribute is required.
|
|
1163
1228
|
* @param {string} newKey - New attribute key.
|
|
1229
|
+
* @param {string} description - Optional description for the attribute.
|
|
1164
1230
|
* @throws {OwbaseException}
|
|
1165
1231
|
* @returns {Promise<Models.AttributeLine>}
|
|
1166
1232
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1167
1233
|
*/
|
|
1168
|
-
updateLineAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string): Promise<Models.AttributeLine>;
|
|
1234
|
+
updateLineAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string, description?: string): Promise<Models.AttributeLine>;
|
|
1169
1235
|
/**
|
|
1170
1236
|
* Create a longtext attribute.
|
|
1171
1237
|
*
|
|
@@ -1177,6 +1243,7 @@ declare class Databases {
|
|
|
1177
1243
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1178
1244
|
* @param {boolean} params.array - Is attribute an array?
|
|
1179
1245
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1246
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1180
1247
|
* @throws {OwbaseException}
|
|
1181
1248
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1182
1249
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createLongtextColumn` instead.
|
|
@@ -1189,6 +1256,7 @@ declare class Databases {
|
|
|
1189
1256
|
xdefault?: string;
|
|
1190
1257
|
array?: boolean;
|
|
1191
1258
|
encrypt?: boolean;
|
|
1259
|
+
description?: string;
|
|
1192
1260
|
}): Promise<Models.AttributeLongtext>;
|
|
1193
1261
|
/**
|
|
1194
1262
|
* Create a longtext attribute.
|
|
@@ -1201,11 +1269,12 @@ declare class Databases {
|
|
|
1201
1269
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1202
1270
|
* @param {boolean} array - Is attribute an array?
|
|
1203
1271
|
* @param {boolean} encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1272
|
+
* @param {string} description - Optional description for the attribute.
|
|
1204
1273
|
* @throws {OwbaseException}
|
|
1205
1274
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1206
1275
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1207
1276
|
*/
|
|
1208
|
-
createLongtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeLongtext>;
|
|
1277
|
+
createLongtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.AttributeLongtext>;
|
|
1209
1278
|
/**
|
|
1210
1279
|
* Update a longtext attribute. Changing the `default` value will not update already existing documents.
|
|
1211
1280
|
*
|
|
@@ -1216,6 +1285,7 @@ declare class Databases {
|
|
|
1216
1285
|
* @param {boolean} params.required - Is attribute required?
|
|
1217
1286
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1218
1287
|
* @param {string} params.newKey - New Attribute Key.
|
|
1288
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1219
1289
|
* @throws {OwbaseException}
|
|
1220
1290
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1221
1291
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateLongtextColumn` instead.
|
|
@@ -1227,6 +1297,7 @@ declare class Databases {
|
|
|
1227
1297
|
required: boolean;
|
|
1228
1298
|
xdefault?: string;
|
|
1229
1299
|
newKey?: string;
|
|
1300
|
+
description?: string;
|
|
1230
1301
|
}): Promise<Models.AttributeLongtext>;
|
|
1231
1302
|
/**
|
|
1232
1303
|
* Update a longtext attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1238,11 +1309,12 @@ declare class Databases {
|
|
|
1238
1309
|
* @param {boolean} required - Is attribute required?
|
|
1239
1310
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1240
1311
|
* @param {string} newKey - New Attribute Key.
|
|
1312
|
+
* @param {string} description - Optional description for the attribute.
|
|
1241
1313
|
* @throws {OwbaseException}
|
|
1242
1314
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1243
1315
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1244
1316
|
*/
|
|
1245
|
-
updateLongtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeLongtext>;
|
|
1317
|
+
updateLongtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeLongtext>;
|
|
1246
1318
|
/**
|
|
1247
1319
|
* Create a mediumtext attribute.
|
|
1248
1320
|
*
|
|
@@ -1254,6 +1326,7 @@ declare class Databases {
|
|
|
1254
1326
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1255
1327
|
* @param {boolean} params.array - Is attribute an array?
|
|
1256
1328
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1329
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1257
1330
|
* @throws {OwbaseException}
|
|
1258
1331
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1259
1332
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createMediumtextColumn` instead.
|
|
@@ -1266,6 +1339,7 @@ declare class Databases {
|
|
|
1266
1339
|
xdefault?: string;
|
|
1267
1340
|
array?: boolean;
|
|
1268
1341
|
encrypt?: boolean;
|
|
1342
|
+
description?: string;
|
|
1269
1343
|
}): Promise<Models.AttributeMediumtext>;
|
|
1270
1344
|
/**
|
|
1271
1345
|
* Create a mediumtext attribute.
|
|
@@ -1278,11 +1352,12 @@ declare class Databases {
|
|
|
1278
1352
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1279
1353
|
* @param {boolean} array - Is attribute an array?
|
|
1280
1354
|
* @param {boolean} encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1355
|
+
* @param {string} description - Optional description for the attribute.
|
|
1281
1356
|
* @throws {OwbaseException}
|
|
1282
1357
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1283
1358
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1284
1359
|
*/
|
|
1285
|
-
createMediumtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeMediumtext>;
|
|
1360
|
+
createMediumtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.AttributeMediumtext>;
|
|
1286
1361
|
/**
|
|
1287
1362
|
* Update a mediumtext attribute. Changing the `default` value will not update already existing documents.
|
|
1288
1363
|
*
|
|
@@ -1293,6 +1368,7 @@ declare class Databases {
|
|
|
1293
1368
|
* @param {boolean} params.required - Is attribute required?
|
|
1294
1369
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1295
1370
|
* @param {string} params.newKey - New Attribute Key.
|
|
1371
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1296
1372
|
* @throws {OwbaseException}
|
|
1297
1373
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1298
1374
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateMediumtextColumn` instead.
|
|
@@ -1304,6 +1380,7 @@ declare class Databases {
|
|
|
1304
1380
|
required: boolean;
|
|
1305
1381
|
xdefault?: string;
|
|
1306
1382
|
newKey?: string;
|
|
1383
|
+
description?: string;
|
|
1307
1384
|
}): Promise<Models.AttributeMediumtext>;
|
|
1308
1385
|
/**
|
|
1309
1386
|
* Update a mediumtext attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1315,11 +1392,12 @@ declare class Databases {
|
|
|
1315
1392
|
* @param {boolean} required - Is attribute required?
|
|
1316
1393
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1317
1394
|
* @param {string} newKey - New Attribute Key.
|
|
1395
|
+
* @param {string} description - Optional description for the attribute.
|
|
1318
1396
|
* @throws {OwbaseException}
|
|
1319
1397
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1320
1398
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1321
1399
|
*/
|
|
1322
|
-
updateMediumtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeMediumtext>;
|
|
1400
|
+
updateMediumtextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeMediumtext>;
|
|
1323
1401
|
/**
|
|
1324
1402
|
* Create a geometric point attribute.
|
|
1325
1403
|
*
|
|
@@ -1328,6 +1406,7 @@ declare class Databases {
|
|
|
1328
1406
|
* @param {string} params.key - Attribute Key.
|
|
1329
1407
|
* @param {boolean} params.required - Is attribute required?
|
|
1330
1408
|
* @param {number[]} params.xdefault - Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.
|
|
1409
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1331
1410
|
* @throws {OwbaseException}
|
|
1332
1411
|
* @returns {Promise<Models.AttributePoint>}
|
|
1333
1412
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createPointColumn` instead.
|
|
@@ -1338,6 +1417,7 @@ declare class Databases {
|
|
|
1338
1417
|
key: string;
|
|
1339
1418
|
required: boolean;
|
|
1340
1419
|
xdefault?: number[];
|
|
1420
|
+
description?: string;
|
|
1341
1421
|
}): Promise<Models.AttributePoint>;
|
|
1342
1422
|
/**
|
|
1343
1423
|
* Create a geometric point attribute.
|
|
@@ -1347,11 +1427,12 @@ declare class Databases {
|
|
|
1347
1427
|
* @param {string} key - Attribute Key.
|
|
1348
1428
|
* @param {boolean} required - Is attribute required?
|
|
1349
1429
|
* @param {number[]} xdefault - Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.
|
|
1430
|
+
* @param {string} description - Optional description for the attribute.
|
|
1350
1431
|
* @throws {OwbaseException}
|
|
1351
1432
|
* @returns {Promise<Models.AttributePoint>}
|
|
1352
1433
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1353
1434
|
*/
|
|
1354
|
-
createPointAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number[]): Promise<Models.AttributePoint>;
|
|
1435
|
+
createPointAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number[], description?: string): Promise<Models.AttributePoint>;
|
|
1355
1436
|
/**
|
|
1356
1437
|
* Update a point attribute. Changing the `default` value will not update already existing documents.
|
|
1357
1438
|
*
|
|
@@ -1361,6 +1442,7 @@ declare class Databases {
|
|
|
1361
1442
|
* @param {boolean} params.required - Is attribute required?
|
|
1362
1443
|
* @param {number[]} params.xdefault - Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.
|
|
1363
1444
|
* @param {string} params.newKey - New attribute key.
|
|
1445
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1364
1446
|
* @throws {OwbaseException}
|
|
1365
1447
|
* @returns {Promise<Models.AttributePoint>}
|
|
1366
1448
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updatePointColumn` instead.
|
|
@@ -1372,6 +1454,7 @@ declare class Databases {
|
|
|
1372
1454
|
required: boolean;
|
|
1373
1455
|
xdefault?: number[];
|
|
1374
1456
|
newKey?: string;
|
|
1457
|
+
description?: string;
|
|
1375
1458
|
}): Promise<Models.AttributePoint>;
|
|
1376
1459
|
/**
|
|
1377
1460
|
* Update a point attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1382,11 +1465,12 @@ declare class Databases {
|
|
|
1382
1465
|
* @param {boolean} required - Is attribute required?
|
|
1383
1466
|
* @param {number[]} xdefault - Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.
|
|
1384
1467
|
* @param {string} newKey - New attribute key.
|
|
1468
|
+
* @param {string} description - Optional description for the attribute.
|
|
1385
1469
|
* @throws {OwbaseException}
|
|
1386
1470
|
* @returns {Promise<Models.AttributePoint>}
|
|
1387
1471
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1388
1472
|
*/
|
|
1389
|
-
updatePointAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number[], newKey?: string): Promise<Models.AttributePoint>;
|
|
1473
|
+
updatePointAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number[], newKey?: string, description?: string): Promise<Models.AttributePoint>;
|
|
1390
1474
|
/**
|
|
1391
1475
|
* Create a geometric polygon attribute.
|
|
1392
1476
|
*
|
|
@@ -1395,6 +1479,7 @@ declare class Databases {
|
|
|
1395
1479
|
* @param {string} params.key - Attribute Key.
|
|
1396
1480
|
* @param {boolean} params.required - Is attribute required?
|
|
1397
1481
|
* @param {any[][]} params.xdefault - Default value for attribute 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 attribute is required.
|
|
1482
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1398
1483
|
* @throws {OwbaseException}
|
|
1399
1484
|
* @returns {Promise<Models.AttributePolygon>}
|
|
1400
1485
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createPolygonColumn` instead.
|
|
@@ -1405,6 +1490,7 @@ declare class Databases {
|
|
|
1405
1490
|
key: string;
|
|
1406
1491
|
required: boolean;
|
|
1407
1492
|
xdefault?: any[][];
|
|
1493
|
+
description?: string;
|
|
1408
1494
|
}): Promise<Models.AttributePolygon>;
|
|
1409
1495
|
/**
|
|
1410
1496
|
* Create a geometric polygon attribute.
|
|
@@ -1414,11 +1500,12 @@ declare class Databases {
|
|
|
1414
1500
|
* @param {string} key - Attribute Key.
|
|
1415
1501
|
* @param {boolean} required - Is attribute required?
|
|
1416
1502
|
* @param {any[][]} xdefault - Default value for attribute 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 attribute is required.
|
|
1503
|
+
* @param {string} description - Optional description for the attribute.
|
|
1417
1504
|
* @throws {OwbaseException}
|
|
1418
1505
|
* @returns {Promise<Models.AttributePolygon>}
|
|
1419
1506
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1420
1507
|
*/
|
|
1421
|
-
createPolygonAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][]): Promise<Models.AttributePolygon>;
|
|
1508
|
+
createPolygonAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], description?: string): Promise<Models.AttributePolygon>;
|
|
1422
1509
|
/**
|
|
1423
1510
|
* Update a polygon attribute. Changing the `default` value will not update already existing documents.
|
|
1424
1511
|
*
|
|
@@ -1428,6 +1515,7 @@ declare class Databases {
|
|
|
1428
1515
|
* @param {boolean} params.required - Is attribute required?
|
|
1429
1516
|
* @param {any[][]} params.xdefault - Default value for attribute 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 attribute is required.
|
|
1430
1517
|
* @param {string} params.newKey - New attribute key.
|
|
1518
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1431
1519
|
* @throws {OwbaseException}
|
|
1432
1520
|
* @returns {Promise<Models.AttributePolygon>}
|
|
1433
1521
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updatePolygonColumn` instead.
|
|
@@ -1439,6 +1527,7 @@ declare class Databases {
|
|
|
1439
1527
|
required: boolean;
|
|
1440
1528
|
xdefault?: any[][];
|
|
1441
1529
|
newKey?: string;
|
|
1530
|
+
description?: string;
|
|
1442
1531
|
}): Promise<Models.AttributePolygon>;
|
|
1443
1532
|
/**
|
|
1444
1533
|
* Update a polygon attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1449,11 +1538,12 @@ declare class Databases {
|
|
|
1449
1538
|
* @param {boolean} required - Is attribute required?
|
|
1450
1539
|
* @param {any[][]} xdefault - Default value for attribute 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 attribute is required.
|
|
1451
1540
|
* @param {string} newKey - New attribute key.
|
|
1541
|
+
* @param {string} description - Optional description for the attribute.
|
|
1452
1542
|
* @throws {OwbaseException}
|
|
1453
1543
|
* @returns {Promise<Models.AttributePolygon>}
|
|
1454
1544
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1455
1545
|
*/
|
|
1456
|
-
updatePolygonAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string): Promise<Models.AttributePolygon>;
|
|
1546
|
+
updatePolygonAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: any[][], newKey?: string, description?: string): Promise<Models.AttributePolygon>;
|
|
1457
1547
|
/**
|
|
1458
1548
|
* Create relationship attribute. [Learn more about relationship attributes](https://docs.owbase.dev/databases-relationships#relationship-attributes).
|
|
1459
1549
|
*
|
|
@@ -1466,6 +1556,7 @@ declare class Databases {
|
|
|
1466
1556
|
* @param {string} params.key - Attribute Key.
|
|
1467
1557
|
* @param {string} params.twoWayKey - Two Way Attribute Key.
|
|
1468
1558
|
* @param {RelationMutate} params.onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1559
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1469
1560
|
* @throws {OwbaseException}
|
|
1470
1561
|
* @returns {Promise<Models.AttributeRelationship>}
|
|
1471
1562
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createRelationshipColumn` instead.
|
|
@@ -1479,6 +1570,7 @@ declare class Databases {
|
|
|
1479
1570
|
key?: string;
|
|
1480
1571
|
twoWayKey?: string;
|
|
1481
1572
|
onDelete?: RelationMutate;
|
|
1573
|
+
description?: string;
|
|
1482
1574
|
}): Promise<Models.AttributeRelationship>;
|
|
1483
1575
|
/**
|
|
1484
1576
|
* Create relationship attribute. [Learn more about relationship attributes](https://docs.owbase.dev/databases-relationships#relationship-attributes).
|
|
@@ -1492,11 +1584,12 @@ declare class Databases {
|
|
|
1492
1584
|
* @param {string} key - Attribute Key.
|
|
1493
1585
|
* @param {string} twoWayKey - Two Way Attribute Key.
|
|
1494
1586
|
* @param {RelationMutate} onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1587
|
+
* @param {string} description - Optional description for the attribute.
|
|
1495
1588
|
* @throws {OwbaseException}
|
|
1496
1589
|
* @returns {Promise<Models.AttributeRelationship>}
|
|
1497
1590
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1498
1591
|
*/
|
|
1499
|
-
createRelationshipAttribute(databaseId: string, collectionId: string, relatedCollectionId: string, type: RelationshipType, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: RelationMutate): Promise<Models.AttributeRelationship>;
|
|
1592
|
+
createRelationshipAttribute(databaseId: string, collectionId: string, relatedCollectionId: string, type: RelationshipType, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: RelationMutate, description?: string): Promise<Models.AttributeRelationship>;
|
|
1500
1593
|
/**
|
|
1501
1594
|
* Update relationship attribute. [Learn more about relationship attributes](https://docs.owbase.dev/databases-relationships#relationship-attributes).
|
|
1502
1595
|
*
|
|
@@ -1506,6 +1599,7 @@ declare class Databases {
|
|
|
1506
1599
|
* @param {string} params.key - Attribute Key.
|
|
1507
1600
|
* @param {RelationMutate} params.onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1508
1601
|
* @param {string} params.newKey - New Attribute Key.
|
|
1602
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1509
1603
|
* @throws {OwbaseException}
|
|
1510
1604
|
* @returns {Promise<Models.AttributeRelationship>}
|
|
1511
1605
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateRelationshipColumn` instead.
|
|
@@ -1516,6 +1610,7 @@ declare class Databases {
|
|
|
1516
1610
|
key: string;
|
|
1517
1611
|
onDelete?: RelationMutate;
|
|
1518
1612
|
newKey?: string;
|
|
1613
|
+
description?: string;
|
|
1519
1614
|
}): Promise<Models.AttributeRelationship>;
|
|
1520
1615
|
/**
|
|
1521
1616
|
* Update relationship attribute. [Learn more about relationship attributes](https://docs.owbase.dev/databases-relationships#relationship-attributes).
|
|
@@ -1526,11 +1621,12 @@ declare class Databases {
|
|
|
1526
1621
|
* @param {string} key - Attribute Key.
|
|
1527
1622
|
* @param {RelationMutate} onDelete - Delete constraint. Possible values are: cascade, restrict, setNull.
|
|
1528
1623
|
* @param {string} newKey - New Attribute Key.
|
|
1624
|
+
* @param {string} description - Optional description for the attribute.
|
|
1529
1625
|
* @throws {OwbaseException}
|
|
1530
1626
|
* @returns {Promise<Models.AttributeRelationship>}
|
|
1531
1627
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1532
1628
|
*/
|
|
1533
|
-
updateRelationshipAttribute(databaseId: string, collectionId: string, key: string, onDelete?: RelationMutate, newKey?: string): Promise<Models.AttributeRelationship>;
|
|
1629
|
+
updateRelationshipAttribute(databaseId: string, collectionId: string, key: string, onDelete?: RelationMutate, newKey?: string, description?: string): Promise<Models.AttributeRelationship>;
|
|
1534
1630
|
/**
|
|
1535
1631
|
* Create a string attribute.
|
|
1536
1632
|
*
|
|
@@ -1543,6 +1639,7 @@ declare class Databases {
|
|
|
1543
1639
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1544
1640
|
* @param {boolean} params.array - Is attribute an array?
|
|
1545
1641
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1642
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1546
1643
|
* @throws {OwbaseException}
|
|
1547
1644
|
* @returns {Promise<Models.AttributeString>}
|
|
1548
1645
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createStringColumn` instead.
|
|
@@ -1556,6 +1653,7 @@ declare class Databases {
|
|
|
1556
1653
|
xdefault?: string;
|
|
1557
1654
|
array?: boolean;
|
|
1558
1655
|
encrypt?: boolean;
|
|
1656
|
+
description?: string;
|
|
1559
1657
|
}): Promise<Models.AttributeString>;
|
|
1560
1658
|
/**
|
|
1561
1659
|
* Create a string attribute.
|
|
@@ -1569,11 +1667,12 @@ declare class Databases {
|
|
|
1569
1667
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1570
1668
|
* @param {boolean} array - Is attribute an array?
|
|
1571
1669
|
* @param {boolean} encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1670
|
+
* @param {string} description - Optional description for the attribute.
|
|
1572
1671
|
* @throws {OwbaseException}
|
|
1573
1672
|
* @returns {Promise<Models.AttributeString>}
|
|
1574
1673
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1575
1674
|
*/
|
|
1576
|
-
createStringAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeString>;
|
|
1675
|
+
createStringAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.AttributeString>;
|
|
1577
1676
|
/**
|
|
1578
1677
|
* Update a string attribute. Changing the `default` value will not update already existing documents.
|
|
1579
1678
|
*
|
|
@@ -1585,6 +1684,7 @@ declare class Databases {
|
|
|
1585
1684
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1586
1685
|
* @param {number} params.size - Maximum size of the string attribute.
|
|
1587
1686
|
* @param {string} params.newKey - New Attribute Key.
|
|
1687
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1588
1688
|
* @throws {OwbaseException}
|
|
1589
1689
|
* @returns {Promise<Models.AttributeString>}
|
|
1590
1690
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateStringColumn` instead.
|
|
@@ -1597,6 +1697,7 @@ declare class Databases {
|
|
|
1597
1697
|
xdefault?: string;
|
|
1598
1698
|
size?: number;
|
|
1599
1699
|
newKey?: string;
|
|
1700
|
+
description?: string;
|
|
1600
1701
|
}): Promise<Models.AttributeString>;
|
|
1601
1702
|
/**
|
|
1602
1703
|
* Update a string attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1609,11 +1710,12 @@ declare class Databases {
|
|
|
1609
1710
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1610
1711
|
* @param {number} size - Maximum size of the string attribute.
|
|
1611
1712
|
* @param {string} newKey - New Attribute Key.
|
|
1713
|
+
* @param {string} description - Optional description for the attribute.
|
|
1612
1714
|
* @throws {OwbaseException}
|
|
1613
1715
|
* @returns {Promise<Models.AttributeString>}
|
|
1614
1716
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1615
1717
|
*/
|
|
1616
|
-
updateStringAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.AttributeString>;
|
|
1718
|
+
updateStringAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string, description?: string): Promise<Models.AttributeString>;
|
|
1617
1719
|
/**
|
|
1618
1720
|
* Create a text attribute.
|
|
1619
1721
|
*
|
|
@@ -1625,6 +1727,7 @@ declare class Databases {
|
|
|
1625
1727
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1626
1728
|
* @param {boolean} params.array - Is attribute an array?
|
|
1627
1729
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1730
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1628
1731
|
* @throws {OwbaseException}
|
|
1629
1732
|
* @returns {Promise<Models.AttributeText>}
|
|
1630
1733
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTextColumn` instead.
|
|
@@ -1637,6 +1740,7 @@ declare class Databases {
|
|
|
1637
1740
|
xdefault?: string;
|
|
1638
1741
|
array?: boolean;
|
|
1639
1742
|
encrypt?: boolean;
|
|
1743
|
+
description?: string;
|
|
1640
1744
|
}): Promise<Models.AttributeText>;
|
|
1641
1745
|
/**
|
|
1642
1746
|
* Create a text attribute.
|
|
@@ -1649,11 +1753,12 @@ declare class Databases {
|
|
|
1649
1753
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1650
1754
|
* @param {boolean} array - Is attribute an array?
|
|
1651
1755
|
* @param {boolean} encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1756
|
+
* @param {string} description - Optional description for the attribute.
|
|
1652
1757
|
* @throws {OwbaseException}
|
|
1653
1758
|
* @returns {Promise<Models.AttributeText>}
|
|
1654
1759
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1655
1760
|
*/
|
|
1656
|
-
createTextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeText>;
|
|
1761
|
+
createTextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.AttributeText>;
|
|
1657
1762
|
/**
|
|
1658
1763
|
* Update a text attribute. Changing the `default` value will not update already existing documents.
|
|
1659
1764
|
*
|
|
@@ -1664,6 +1769,7 @@ declare class Databases {
|
|
|
1664
1769
|
* @param {boolean} params.required - Is attribute required?
|
|
1665
1770
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1666
1771
|
* @param {string} params.newKey - New Attribute Key.
|
|
1772
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1667
1773
|
* @throws {OwbaseException}
|
|
1668
1774
|
* @returns {Promise<Models.AttributeText>}
|
|
1669
1775
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTextColumn` instead.
|
|
@@ -1675,6 +1781,7 @@ declare class Databases {
|
|
|
1675
1781
|
required: boolean;
|
|
1676
1782
|
xdefault?: string;
|
|
1677
1783
|
newKey?: string;
|
|
1784
|
+
description?: string;
|
|
1678
1785
|
}): Promise<Models.AttributeText>;
|
|
1679
1786
|
/**
|
|
1680
1787
|
* Update a text attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1686,11 +1793,12 @@ declare class Databases {
|
|
|
1686
1793
|
* @param {boolean} required - Is attribute required?
|
|
1687
1794
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1688
1795
|
* @param {string} newKey - New Attribute Key.
|
|
1796
|
+
* @param {string} description - Optional description for the attribute.
|
|
1689
1797
|
* @throws {OwbaseException}
|
|
1690
1798
|
* @returns {Promise<Models.AttributeText>}
|
|
1691
1799
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1692
1800
|
*/
|
|
1693
|
-
updateTextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeText>;
|
|
1801
|
+
updateTextAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeText>;
|
|
1694
1802
|
/**
|
|
1695
1803
|
* Create a URL attribute.
|
|
1696
1804
|
*
|
|
@@ -1701,6 +1809,7 @@ declare class Databases {
|
|
|
1701
1809
|
* @param {boolean} params.required - Is attribute required?
|
|
1702
1810
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1703
1811
|
* @param {boolean} params.array - Is attribute an array?
|
|
1812
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1704
1813
|
* @throws {OwbaseException}
|
|
1705
1814
|
* @returns {Promise<Models.AttributeUrl>}
|
|
1706
1815
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createUrlColumn` instead.
|
|
@@ -1712,6 +1821,7 @@ declare class Databases {
|
|
|
1712
1821
|
required: boolean;
|
|
1713
1822
|
xdefault?: string;
|
|
1714
1823
|
array?: boolean;
|
|
1824
|
+
description?: string;
|
|
1715
1825
|
}): Promise<Models.AttributeUrl>;
|
|
1716
1826
|
/**
|
|
1717
1827
|
* Create a URL attribute.
|
|
@@ -1723,11 +1833,12 @@ declare class Databases {
|
|
|
1723
1833
|
* @param {boolean} required - Is attribute required?
|
|
1724
1834
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1725
1835
|
* @param {boolean} array - Is attribute an array?
|
|
1836
|
+
* @param {string} description - Optional description for the attribute.
|
|
1726
1837
|
* @throws {OwbaseException}
|
|
1727
1838
|
* @returns {Promise<Models.AttributeUrl>}
|
|
1728
1839
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1729
1840
|
*/
|
|
1730
|
-
createUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeUrl>;
|
|
1841
|
+
createUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean, description?: string): Promise<Models.AttributeUrl>;
|
|
1731
1842
|
/**
|
|
1732
1843
|
* Update an url attribute. Changing the `default` value will not update already existing documents.
|
|
1733
1844
|
*
|
|
@@ -1738,6 +1849,7 @@ declare class Databases {
|
|
|
1738
1849
|
* @param {boolean} params.required - Is attribute required?
|
|
1739
1850
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1740
1851
|
* @param {string} params.newKey - New Attribute Key.
|
|
1852
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1741
1853
|
* @throws {OwbaseException}
|
|
1742
1854
|
* @returns {Promise<Models.AttributeUrl>}
|
|
1743
1855
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateUrlColumn` instead.
|
|
@@ -1749,6 +1861,7 @@ declare class Databases {
|
|
|
1749
1861
|
required: boolean;
|
|
1750
1862
|
xdefault?: string;
|
|
1751
1863
|
newKey?: string;
|
|
1864
|
+
description?: string;
|
|
1752
1865
|
}): Promise<Models.AttributeUrl>;
|
|
1753
1866
|
/**
|
|
1754
1867
|
* Update an url attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1760,11 +1873,12 @@ declare class Databases {
|
|
|
1760
1873
|
* @param {boolean} required - Is attribute required?
|
|
1761
1874
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1762
1875
|
* @param {string} newKey - New Attribute Key.
|
|
1876
|
+
* @param {string} description - Optional description for the attribute.
|
|
1763
1877
|
* @throws {OwbaseException}
|
|
1764
1878
|
* @returns {Promise<Models.AttributeUrl>}
|
|
1765
1879
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1766
1880
|
*/
|
|
1767
|
-
updateUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string): Promise<Models.AttributeUrl>;
|
|
1881
|
+
updateUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, newKey?: string, description?: string): Promise<Models.AttributeUrl>;
|
|
1768
1882
|
/**
|
|
1769
1883
|
* Create a varchar attribute.
|
|
1770
1884
|
*
|
|
@@ -1777,6 +1891,7 @@ declare class Databases {
|
|
|
1777
1891
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1778
1892
|
* @param {boolean} params.array - Is attribute an array?
|
|
1779
1893
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1894
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1780
1895
|
* @throws {OwbaseException}
|
|
1781
1896
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1782
1897
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createVarcharColumn` instead.
|
|
@@ -1790,6 +1905,7 @@ declare class Databases {
|
|
|
1790
1905
|
xdefault?: string;
|
|
1791
1906
|
array?: boolean;
|
|
1792
1907
|
encrypt?: boolean;
|
|
1908
|
+
description?: string;
|
|
1793
1909
|
}): Promise<Models.AttributeVarchar>;
|
|
1794
1910
|
/**
|
|
1795
1911
|
* Create a varchar attribute.
|
|
@@ -1803,11 +1919,12 @@ declare class Databases {
|
|
|
1803
1919
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1804
1920
|
* @param {boolean} array - Is attribute an array?
|
|
1805
1921
|
* @param {boolean} encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1922
|
+
* @param {string} description - Optional description for the attribute.
|
|
1806
1923
|
* @throws {OwbaseException}
|
|
1807
1924
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1808
1925
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1809
1926
|
*/
|
|
1810
|
-
createVarcharAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeVarchar>;
|
|
1927
|
+
createVarcharAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean, description?: string): Promise<Models.AttributeVarchar>;
|
|
1811
1928
|
/**
|
|
1812
1929
|
* Update a varchar attribute. Changing the `default` value will not update already existing documents.
|
|
1813
1930
|
*
|
|
@@ -1819,6 +1936,7 @@ declare class Databases {
|
|
|
1819
1936
|
* @param {string} params.xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1820
1937
|
* @param {number} params.size - Maximum size of the varchar attribute.
|
|
1821
1938
|
* @param {string} params.newKey - New Attribute Key.
|
|
1939
|
+
* @param {string} params.description - Optional description for the attribute.
|
|
1822
1940
|
* @throws {OwbaseException}
|
|
1823
1941
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1824
1942
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateVarcharColumn` instead.
|
|
@@ -1831,6 +1949,7 @@ declare class Databases {
|
|
|
1831
1949
|
xdefault?: string;
|
|
1832
1950
|
size?: number;
|
|
1833
1951
|
newKey?: string;
|
|
1952
|
+
description?: string;
|
|
1834
1953
|
}): Promise<Models.AttributeVarchar>;
|
|
1835
1954
|
/**
|
|
1836
1955
|
* Update a varchar attribute. Changing the `default` value will not update already existing documents.
|
|
@@ -1843,11 +1962,12 @@ declare class Databases {
|
|
|
1843
1962
|
* @param {string} xdefault - Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1844
1963
|
* @param {number} size - Maximum size of the varchar attribute.
|
|
1845
1964
|
* @param {string} newKey - New Attribute Key.
|
|
1965
|
+
* @param {string} description - Optional description for the attribute.
|
|
1846
1966
|
* @throws {OwbaseException}
|
|
1847
1967
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1848
1968
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1849
1969
|
*/
|
|
1850
|
-
updateVarcharAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string): Promise<Models.AttributeVarchar>;
|
|
1970
|
+
updateVarcharAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, size?: number, newKey?: string, description?: string): Promise<Models.AttributeVarchar>;
|
|
1851
1971
|
/**
|
|
1852
1972
|
* Get attribute by ID.
|
|
1853
1973
|
*
|
|
@@ -1903,12 +2023,14 @@ declare class Databases {
|
|
|
1903
2023
|
/**
|
|
1904
2024
|
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
|
|
1905
2025
|
*
|
|
2026
|
+
* Documents returned by aggregate, groupBy or distinct queries hold only the attributes they select, group or aggregate, typed as a document types them, with a joined attribute named by its join alias (`alias.attribute`). The response omits their `$id`, `$sequence`, `$createdAt`, `$updatedAt`, `$permissions`, `$databaseId` and `$collectionId` unless they select or group it, and those of a right or full join document that no document of this collection matched. SDK document models fill omitted system attributes with empty values.
|
|
2027
|
+
*
|
|
1906
2028
|
* @param {string} params.databaseId - Database ID.
|
|
1907
2029
|
* @param {string} params.collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
1908
2030
|
* @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.
|
|
1909
2031
|
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1910
2032
|
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1911
|
-
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
2033
|
+
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
1912
2034
|
* @throws {OwbaseException}
|
|
1913
2035
|
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1914
2036
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.listRows` instead.
|
|
@@ -1924,12 +2046,14 @@ declare class Databases {
|
|
|
1924
2046
|
/**
|
|
1925
2047
|
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
|
|
1926
2048
|
*
|
|
2049
|
+
* Documents returned by aggregate, groupBy or distinct queries hold only the attributes they select, group or aggregate, typed as a document types them, with a joined attribute named by its join alias (`alias.attribute`). The response omits their `$id`, `$sequence`, `$createdAt`, `$updatedAt`, `$permissions`, `$databaseId` and `$collectionId` unless they select or group it, and those of a right or full join document that no document of this collection matched. SDK document models fill omitted system attributes with empty values.
|
|
2050
|
+
*
|
|
1927
2051
|
* @param {string} databaseId - Database ID.
|
|
1928
2052
|
* @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
1929
2053
|
* @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.
|
|
1930
2054
|
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
1931
2055
|
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
1932
|
-
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
2056
|
+
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
1933
2057
|
* @throws {OwbaseException}
|
|
1934
2058
|
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1935
2059
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
@@ -2091,6 +2215,43 @@ declare class Databases {
|
|
|
2091
2215
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2092
2216
|
*/
|
|
2093
2217
|
deleteDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, queries?: string[], transactionId?: string): Promise<Models.DocumentList<Document>>;
|
|
2218
|
+
/**
|
|
2219
|
+
* Get a list of all the user's documents in a given collection using a POST request. This behaves identically to the list documents endpoint but accepts the queries in the request body, allowing much larger `queries` arrays than can fit in a URL query string.
|
|
2220
|
+
*
|
|
2221
|
+
*
|
|
2222
|
+
* @param {string} params.databaseId - Database ID.
|
|
2223
|
+
* @param {string} params.collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
2224
|
+
* @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.
|
|
2225
|
+
* @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
2226
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
2227
|
+
* @param {number} params.ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
2228
|
+
* @throws {OwbaseException}
|
|
2229
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
2230
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createQuery` instead.
|
|
2231
|
+
*/
|
|
2232
|
+
createQuery<Document extends Models.Document = Models.DefaultDocument>(params: {
|
|
2233
|
+
databaseId: string;
|
|
2234
|
+
collectionId: string;
|
|
2235
|
+
queries?: string[];
|
|
2236
|
+
transactionId?: string;
|
|
2237
|
+
total?: boolean;
|
|
2238
|
+
ttl?: number;
|
|
2239
|
+
}): Promise<Models.DocumentList<Document>>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Get a list of all the user's documents in a given collection using a POST request. This behaves identically to the list documents endpoint but accepts the queries in the request body, allowing much larger `queries` arrays than can fit in a URL query string.
|
|
2242
|
+
*
|
|
2243
|
+
*
|
|
2244
|
+
* @param {string} databaseId - Database ID.
|
|
2245
|
+
* @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
2246
|
+
* @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.
|
|
2247
|
+
* @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
|
|
2248
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
2249
|
+
* @param {number} ttl - TTL (seconds) for caching list responses. Responses are stored in an in-memory key-value cache, keyed per project, collection, schema version (attributes and indexes), caller authorization roles, and the exact query — so users with different permissions never share cached entries. Schema changes invalidate cached entries automatically; document 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).
|
|
2250
|
+
* @throws {OwbaseException}
|
|
2251
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
2252
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2253
|
+
*/
|
|
2254
|
+
createQuery<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number): Promise<Models.DocumentList<Document>>;
|
|
2094
2255
|
/**
|
|
2095
2256
|
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
|
|
2096
2257
|
*
|
|
@@ -2329,7 +2490,7 @@ declare class Databases {
|
|
|
2329
2490
|
listIndexes(databaseId: string, collectionId: string, queries?: string[], total?: boolean): Promise<Models.IndexList>;
|
|
2330
2491
|
/**
|
|
2331
2492
|
* Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
|
|
2332
|
-
* Attributes can be `key`, `fulltext`, and `
|
|
2493
|
+
* Attributes can be `key`, `fulltext`, `unique`, `spatial`, and `trigram`. `trigram` is only available on PostgreSQL and lets `contains`, `startsWith`, and `endsWith` queries on string attributes use an index.
|
|
2333
2494
|
*
|
|
2334
2495
|
* @param {string} params.databaseId - Database ID.
|
|
2335
2496
|
* @param {string} params.collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
@@ -2338,6 +2499,7 @@ declare class Databases {
|
|
|
2338
2499
|
* @param {string[]} params.attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
2339
2500
|
* @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
2340
2501
|
* @param {number[]} params.lengths - Length of index. Maximum of 100
|
|
2502
|
+
* @param {string} params.description - Optional description for the index.
|
|
2341
2503
|
* @throws {OwbaseException}
|
|
2342
2504
|
* @returns {Promise<Models.Index>}
|
|
2343
2505
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createIndex` instead.
|
|
@@ -2350,10 +2512,11 @@ declare class Databases {
|
|
|
2350
2512
|
attributes: string[];
|
|
2351
2513
|
orders?: OrderBy[];
|
|
2352
2514
|
lengths?: number[];
|
|
2515
|
+
description?: string;
|
|
2353
2516
|
}): Promise<Models.Index>;
|
|
2354
2517
|
/**
|
|
2355
2518
|
* Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
|
|
2356
|
-
* Attributes can be `key`, `fulltext`, and `
|
|
2519
|
+
* Attributes can be `key`, `fulltext`, `unique`, `spatial`, and `trigram`. `trigram` is only available on PostgreSQL and lets `contains`, `startsWith`, and `endsWith` queries on string attributes use an index.
|
|
2357
2520
|
*
|
|
2358
2521
|
* @param {string} databaseId - Database ID.
|
|
2359
2522
|
* @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://docs.owbase.dev/server/databases#databasesCreateCollection).
|
|
@@ -2362,11 +2525,12 @@ declare class Databases {
|
|
|
2362
2525
|
* @param {string[]} attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
2363
2526
|
* @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
2364
2527
|
* @param {number[]} lengths - Length of index. Maximum of 100
|
|
2528
|
+
* @param {string} description - Optional description for the index.
|
|
2365
2529
|
* @throws {OwbaseException}
|
|
2366
2530
|
* @returns {Promise<Models.Index>}
|
|
2367
2531
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
2368
2532
|
*/
|
|
2369
|
-
createIndex(databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
|
|
2533
|
+
createIndex(databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[], description?: string): Promise<Models.Index>;
|
|
2370
2534
|
/**
|
|
2371
2535
|
* Get an index by its unique ID.
|
|
2372
2536
|
*
|