appwrite 20.0.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/services/databases.rb +5 -1
- data/lib/appwrite/services/tables_db.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e94fc52d4a381d2c53839f6502bb52a7a54c19a717594fb0102efdc147f99f7
|
|
4
|
+
data.tar.gz: 4c731fbee7c5241f2bb7e7dbb56beb2d7ff3133f47ad223d75c9f515fed265f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15719a8946212dfd735f932c02d09c7f6bafd29acad1e8815f4e83e4b923a1d5006947b5deb69872bfe22daa03a4bfe4bafc433b5f6c4d19cead5b91561a4c9c
|
|
7
|
+
data.tar.gz: 8b5bbd08f1835f4335fe634a7c9219d35359d51d8fe6417936c9d1b0569935b0e95527322afda8be8e01a6e56e8f29aeb2b5a6922afdb110b2e6d7eda05515ae
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -405,9 +405,11 @@ module Appwrite
|
|
|
405
405
|
# @param [Array] permissions An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
406
406
|
# @param [] document_security 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://appwrite.io/docs/permissions).
|
|
407
407
|
# @param [] 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.
|
|
408
|
+
# @param [Array] attributes Array of attribute definitions to create. Each attribute should contain: key (string), type (string: string, integer, float, boolean, datetime), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
|
|
409
|
+
# @param [Array] 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).
|
|
408
410
|
#
|
|
409
411
|
# @return [Collection]
|
|
410
|
-
def create_collection(database_id:, collection_id:, name:, permissions: nil, document_security: nil, enabled: nil)
|
|
412
|
+
def create_collection(database_id:, collection_id:, name:, permissions: nil, document_security: nil, enabled: nil, attributes: nil, indexes: nil)
|
|
411
413
|
api_path = '/databases/{databaseId}/collections'
|
|
412
414
|
.gsub('{databaseId}', database_id)
|
|
413
415
|
|
|
@@ -429,6 +431,8 @@ module Appwrite
|
|
|
429
431
|
permissions: permissions,
|
|
430
432
|
documentSecurity: document_security,
|
|
431
433
|
enabled: enabled,
|
|
434
|
+
attributes: attributes,
|
|
435
|
+
indexes: indexes,
|
|
432
436
|
}
|
|
433
437
|
|
|
434
438
|
api_headers = {
|
|
@@ -384,9 +384,11 @@ module Appwrite
|
|
|
384
384
|
# @param [Array] permissions An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
385
385
|
# @param [] row_security Enables configuring permissions for individual rows. A user needs one of row or table level permissions to access a row. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
386
386
|
# @param [] enabled Is table enabled? When set to 'disabled', users cannot access the table but Server SDKs with and API key can still read and write to the table. No data is lost when this is toggled.
|
|
387
|
+
# @param [Array] columns Array of column definitions to create. Each column should contain: key (string), type (string: string, integer, float, boolean, datetime, relationship), size (integer, required for string type), required (boolean, optional), default (mixed, optional), array (boolean, optional), and type-specific options.
|
|
388
|
+
# @param [Array] indexes Array of index definitions to create. Each index should contain: key (string), type (string: key, fulltext, unique, spatial), attributes (array of column keys), orders (array of ASC/DESC, optional), and lengths (array of integers, optional).
|
|
387
389
|
#
|
|
388
390
|
# @return [Table]
|
|
389
|
-
def create_table(database_id:, table_id:, name:, permissions: nil, row_security: nil, enabled: nil)
|
|
391
|
+
def create_table(database_id:, table_id:, name:, permissions: nil, row_security: nil, enabled: nil, columns: nil, indexes: nil)
|
|
390
392
|
api_path = '/tablesdb/{databaseId}/tables'
|
|
391
393
|
.gsub('{databaseId}', database_id)
|
|
392
394
|
|
|
@@ -408,6 +410,8 @@ module Appwrite
|
|
|
408
410
|
permissions: permissions,
|
|
409
411
|
rowSecurity: row_security,
|
|
410
412
|
enabled: enabled,
|
|
413
|
+
columns: columns,
|
|
414
|
+
indexes: indexes,
|
|
411
415
|
}
|
|
412
416
|
|
|
413
417
|
api_headers = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appwrite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 20.
|
|
4
|
+
version: 20.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Appwrite Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mime-types
|