appwrite 7.1.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +2 -2
- data/lib/appwrite/models/algo_argon2.rb +5 -0
- data/lib/appwrite/models/algo_bcrypt.rb +5 -0
- data/lib/appwrite/models/algo_md5.rb +5 -0
- data/lib/appwrite/models/algo_phpass.rb +5 -0
- data/lib/appwrite/models/algo_scrypt.rb +5 -0
- data/lib/appwrite/models/algo_scrypt_modified.rb +5 -0
- data/lib/appwrite/models/algo_sha.rb +5 -0
- data/lib/appwrite/models/attribute_boolean.rb +5 -0
- data/lib/appwrite/models/attribute_datetime.rb +5 -0
- data/lib/appwrite/models/attribute_email.rb +5 -0
- data/lib/appwrite/models/attribute_enum.rb +5 -0
- data/lib/appwrite/models/attribute_float.rb +5 -0
- data/lib/appwrite/models/attribute_integer.rb +5 -0
- data/lib/appwrite/models/attribute_ip.rb +5 -0
- data/lib/appwrite/models/attribute_relationship.rb +82 -0
- data/lib/appwrite/models/attribute_string.rb +5 -0
- data/lib/appwrite/models/attribute_url.rb +5 -0
- data/lib/appwrite/models/database.rb +8 -3
- data/lib/appwrite/models/deployment.rb +65 -10
- data/lib/appwrite/models/execution.rb +40 -20
- data/lib/appwrite/models/function.rb +53 -13
- data/lib/appwrite/models/headers.rb +32 -0
- data/lib/appwrite/models/health_status.rb +5 -0
- data/lib/appwrite/models/identity.rb +72 -0
- data/lib/appwrite/models/identity_list.rb +32 -0
- data/lib/appwrite/models/index.rb +5 -0
- data/lib/appwrite/models/locale_code.rb +32 -0
- data/lib/appwrite/models/locale_code_list.rb +32 -0
- data/lib/appwrite/models/team.rb +8 -3
- data/lib/appwrite/models/user.rb +16 -6
- data/lib/appwrite/models/variable.rb +10 -5
- data/lib/appwrite/query.rb +41 -17
- data/lib/appwrite/services/account.rb +120 -65
- data/lib/appwrite/services/avatars.rb +14 -14
- data/lib/appwrite/services/databases.rb +834 -188
- data/lib/appwrite/services/functions.rb +150 -74
- data/lib/appwrite/services/graphql.rb +71 -0
- data/lib/appwrite/services/health.rb +71 -22
- data/lib/appwrite/services/locale.rb +39 -14
- data/lib/appwrite/services/storage.rb +43 -42
- data/lib/appwrite/services/teams.rb +123 -50
- data/lib/appwrite/services/users.rb +158 -60
- data/lib/appwrite.rb +7 -1
- metadata +10 -4
- data/lib/appwrite/models/account.rb +0 -82
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9f3fda23d3f2943c0e41b560c3195f13c0130105d18a790c4e1110b02daea6f
|
4
|
+
data.tar.gz: 31c3ce255470e07986dadc415966b73859f4fff1e1de4d93a90bdf608d7e0e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf9c4fae105faa4bc971bcdcf05197b8b4f1b8481cb138ae10c9632575136f662c992bc907aca7bb2cf84ea725a832fc41e3cdc750385c07441a642a4722816
|
7
|
+
data.tar.gz: 5a69deb9c936e526e7e88b3466246ae246132f8710a7b95b2c1d43d208ddbacff301b8b93f3b1031e755b13cca2535893235ee5097c02122e3c58a49f4c59217
|
data/lib/appwrite/client.rb
CHANGED
@@ -15,8 +15,8 @@ module Appwrite
|
|
15
15
|
'x-sdk-name'=> 'Ruby',
|
16
16
|
'x-sdk-platform'=> 'server',
|
17
17
|
'x-sdk-language'=> 'ruby',
|
18
|
-
'x-sdk-version'=> '
|
19
|
-
'X-Appwrite-Response-Format' => '1.
|
18
|
+
'x-sdk-version'=> '9.0.0',
|
19
|
+
'X-Appwrite-Response-Format' => '1.4.0'
|
20
20
|
}
|
21
21
|
@endpoint = 'https://HOSTNAME/v1'
|
22
22
|
end
|
@@ -3,15 +3,18 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoArgon2
|
6
|
+
attr_reader :type
|
6
7
|
attr_reader :memory_cost
|
7
8
|
attr_reader :time_cost
|
8
9
|
attr_reader :threads
|
9
10
|
|
10
11
|
def initialize(
|
12
|
+
type:,
|
11
13
|
memory_cost:,
|
12
14
|
time_cost:,
|
13
15
|
threads:
|
14
16
|
)
|
17
|
+
@type = type
|
15
18
|
@memory_cost = memory_cost
|
16
19
|
@time_cost = time_cost
|
17
20
|
@threads = threads
|
@@ -19,6 +22,7 @@ module Appwrite
|
|
19
22
|
|
20
23
|
def self.from(map:)
|
21
24
|
AlgoArgon2.new(
|
25
|
+
type: map["type"],
|
22
26
|
memory_cost: map["memoryCost"],
|
23
27
|
time_cost: map["timeCost"],
|
24
28
|
threads: map["threads"]
|
@@ -27,6 +31,7 @@ module Appwrite
|
|
27
31
|
|
28
32
|
def to_map
|
29
33
|
{
|
34
|
+
"type": @type,
|
30
35
|
"memoryCost": @memory_cost,
|
31
36
|
"timeCost": @time_cost,
|
32
37
|
"threads": @threads
|
@@ -3,18 +3,23 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoBcrypt
|
6
|
+
attr_reader :type
|
6
7
|
|
7
8
|
def initialize(
|
9
|
+
type:
|
8
10
|
)
|
11
|
+
@type = type
|
9
12
|
end
|
10
13
|
|
11
14
|
def self.from(map:)
|
12
15
|
AlgoBcrypt.new(
|
16
|
+
type: map["type"]
|
13
17
|
)
|
14
18
|
end
|
15
19
|
|
16
20
|
def to_map
|
17
21
|
{
|
22
|
+
"type": @type
|
18
23
|
}
|
19
24
|
end
|
20
25
|
end
|
@@ -3,18 +3,23 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoMd5
|
6
|
+
attr_reader :type
|
6
7
|
|
7
8
|
def initialize(
|
9
|
+
type:
|
8
10
|
)
|
11
|
+
@type = type
|
9
12
|
end
|
10
13
|
|
11
14
|
def self.from(map:)
|
12
15
|
AlgoMd5.new(
|
16
|
+
type: map["type"]
|
13
17
|
)
|
14
18
|
end
|
15
19
|
|
16
20
|
def to_map
|
17
21
|
{
|
22
|
+
"type": @type
|
18
23
|
}
|
19
24
|
end
|
20
25
|
end
|
@@ -3,18 +3,23 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoPhpass
|
6
|
+
attr_reader :type
|
6
7
|
|
7
8
|
def initialize(
|
9
|
+
type:
|
8
10
|
)
|
11
|
+
@type = type
|
9
12
|
end
|
10
13
|
|
11
14
|
def self.from(map:)
|
12
15
|
AlgoPhpass.new(
|
16
|
+
type: map["type"]
|
13
17
|
)
|
14
18
|
end
|
15
19
|
|
16
20
|
def to_map
|
17
21
|
{
|
22
|
+
"type": @type
|
18
23
|
}
|
19
24
|
end
|
20
25
|
end
|
@@ -3,17 +3,20 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoScrypt
|
6
|
+
attr_reader :type
|
6
7
|
attr_reader :cost_cpu
|
7
8
|
attr_reader :cost_memory
|
8
9
|
attr_reader :cost_parallel
|
9
10
|
attr_reader :length
|
10
11
|
|
11
12
|
def initialize(
|
13
|
+
type:,
|
12
14
|
cost_cpu:,
|
13
15
|
cost_memory:,
|
14
16
|
cost_parallel:,
|
15
17
|
length:
|
16
18
|
)
|
19
|
+
@type = type
|
17
20
|
@cost_cpu = cost_cpu
|
18
21
|
@cost_memory = cost_memory
|
19
22
|
@cost_parallel = cost_parallel
|
@@ -22,6 +25,7 @@ module Appwrite
|
|
22
25
|
|
23
26
|
def self.from(map:)
|
24
27
|
AlgoScrypt.new(
|
28
|
+
type: map["type"],
|
25
29
|
cost_cpu: map["costCpu"],
|
26
30
|
cost_memory: map["costMemory"],
|
27
31
|
cost_parallel: map["costParallel"],
|
@@ -31,6 +35,7 @@ module Appwrite
|
|
31
35
|
|
32
36
|
def to_map
|
33
37
|
{
|
38
|
+
"type": @type,
|
34
39
|
"costCpu": @cost_cpu,
|
35
40
|
"costMemory": @cost_memory,
|
36
41
|
"costParallel": @cost_parallel,
|
@@ -3,15 +3,18 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoScryptModified
|
6
|
+
attr_reader :type
|
6
7
|
attr_reader :salt
|
7
8
|
attr_reader :salt_separator
|
8
9
|
attr_reader :signer_key
|
9
10
|
|
10
11
|
def initialize(
|
12
|
+
type:,
|
11
13
|
salt:,
|
12
14
|
salt_separator:,
|
13
15
|
signer_key:
|
14
16
|
)
|
17
|
+
@type = type
|
15
18
|
@salt = salt
|
16
19
|
@salt_separator = salt_separator
|
17
20
|
@signer_key = signer_key
|
@@ -19,6 +22,7 @@ module Appwrite
|
|
19
22
|
|
20
23
|
def self.from(map:)
|
21
24
|
AlgoScryptModified.new(
|
25
|
+
type: map["type"],
|
22
26
|
salt: map["salt"],
|
23
27
|
salt_separator: map["saltSeparator"],
|
24
28
|
signer_key: map["signerKey"]
|
@@ -27,6 +31,7 @@ module Appwrite
|
|
27
31
|
|
28
32
|
def to_map
|
29
33
|
{
|
34
|
+
"type": @type,
|
30
35
|
"salt": @salt,
|
31
36
|
"saltSeparator": @salt_separator,
|
32
37
|
"signerKey": @signer_key
|
@@ -3,18 +3,23 @@
|
|
3
3
|
module Appwrite
|
4
4
|
module Models
|
5
5
|
class AlgoSha
|
6
|
+
attr_reader :type
|
6
7
|
|
7
8
|
def initialize(
|
9
|
+
type:
|
8
10
|
)
|
11
|
+
@type = type
|
9
12
|
end
|
10
13
|
|
11
14
|
def self.from(map:)
|
12
15
|
AlgoSha.new(
|
16
|
+
type: map["type"]
|
13
17
|
)
|
14
18
|
end
|
15
19
|
|
16
20
|
def to_map
|
17
21
|
{
|
22
|
+
"type": @type
|
18
23
|
}
|
19
24
|
end
|
20
25
|
end
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :default
|
@@ -14,6 +15,7 @@ module Appwrite
|
|
14
15
|
key:,
|
15
16
|
type:,
|
16
17
|
status:,
|
18
|
+
error:,
|
17
19
|
required:,
|
18
20
|
array: ,
|
19
21
|
default:
|
@@ -21,6 +23,7 @@ module Appwrite
|
|
21
23
|
@key = key
|
22
24
|
@type = type
|
23
25
|
@status = status
|
26
|
+
@error = error
|
24
27
|
@required = required
|
25
28
|
@array = array
|
26
29
|
@default = default
|
@@ -31,6 +34,7 @@ module Appwrite
|
|
31
34
|
key: map["key"],
|
32
35
|
type: map["type"],
|
33
36
|
status: map["status"],
|
37
|
+
error: map["error"],
|
34
38
|
required: map["required"],
|
35
39
|
array: map["array"],
|
36
40
|
default: map["default"]
|
@@ -42,6 +46,7 @@ module Appwrite
|
|
42
46
|
"key": @key,
|
43
47
|
"type": @type,
|
44
48
|
"status": @status,
|
49
|
+
"error": @error,
|
45
50
|
"required": @required,
|
46
51
|
"array": @array,
|
47
52
|
"default": @default
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :format
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
15
16
|
key:,
|
16
17
|
type:,
|
17
18
|
status:,
|
19
|
+
error:,
|
18
20
|
required:,
|
19
21
|
array: ,
|
20
22
|
format:,
|
@@ -23,6 +25,7 @@ module Appwrite
|
|
23
25
|
@key = key
|
24
26
|
@type = type
|
25
27
|
@status = status
|
28
|
+
@error = error
|
26
29
|
@required = required
|
27
30
|
@array = array
|
28
31
|
@format = format
|
@@ -34,6 +37,7 @@ module Appwrite
|
|
34
37
|
key: map["key"],
|
35
38
|
type: map["type"],
|
36
39
|
status: map["status"],
|
40
|
+
error: map["error"],
|
37
41
|
required: map["required"],
|
38
42
|
array: map["array"],
|
39
43
|
format: map["format"],
|
@@ -46,6 +50,7 @@ module Appwrite
|
|
46
50
|
"key": @key,
|
47
51
|
"type": @type,
|
48
52
|
"status": @status,
|
53
|
+
"error": @error,
|
49
54
|
"required": @required,
|
50
55
|
"array": @array,
|
51
56
|
"format": @format,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :format
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
15
16
|
key:,
|
16
17
|
type:,
|
17
18
|
status:,
|
19
|
+
error:,
|
18
20
|
required:,
|
19
21
|
array: ,
|
20
22
|
format:,
|
@@ -23,6 +25,7 @@ module Appwrite
|
|
23
25
|
@key = key
|
24
26
|
@type = type
|
25
27
|
@status = status
|
28
|
+
@error = error
|
26
29
|
@required = required
|
27
30
|
@array = array
|
28
31
|
@format = format
|
@@ -34,6 +37,7 @@ module Appwrite
|
|
34
37
|
key: map["key"],
|
35
38
|
type: map["type"],
|
36
39
|
status: map["status"],
|
40
|
+
error: map["error"],
|
37
41
|
required: map["required"],
|
38
42
|
array: map["array"],
|
39
43
|
format: map["format"],
|
@@ -46,6 +50,7 @@ module Appwrite
|
|
46
50
|
"key": @key,
|
47
51
|
"type": @type,
|
48
52
|
"status": @status,
|
53
|
+
"error": @error,
|
49
54
|
"required": @required,
|
50
55
|
"array": @array,
|
51
56
|
"format": @format,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :elements
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
16
17
|
key:,
|
17
18
|
type:,
|
18
19
|
status:,
|
20
|
+
error:,
|
19
21
|
required:,
|
20
22
|
array: ,
|
21
23
|
elements:,
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
25
27
|
@key = key
|
26
28
|
@type = type
|
27
29
|
@status = status
|
30
|
+
@error = error
|
28
31
|
@required = required
|
29
32
|
@array = array
|
30
33
|
@elements = elements
|
@@ -37,6 +40,7 @@ module Appwrite
|
|
37
40
|
key: map["key"],
|
38
41
|
type: map["type"],
|
39
42
|
status: map["status"],
|
43
|
+
error: map["error"],
|
40
44
|
required: map["required"],
|
41
45
|
array: map["array"],
|
42
46
|
elements: map["elements"],
|
@@ -50,6 +54,7 @@ module Appwrite
|
|
50
54
|
"key": @key,
|
51
55
|
"type": @type,
|
52
56
|
"status": @status,
|
57
|
+
"error": @error,
|
53
58
|
"required": @required,
|
54
59
|
"array": @array,
|
55
60
|
"elements": @elements,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :min
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
16
17
|
key:,
|
17
18
|
type:,
|
18
19
|
status:,
|
20
|
+
error:,
|
19
21
|
required:,
|
20
22
|
array: ,
|
21
23
|
min: ,
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
25
27
|
@key = key
|
26
28
|
@type = type
|
27
29
|
@status = status
|
30
|
+
@error = error
|
28
31
|
@required = required
|
29
32
|
@array = array
|
30
33
|
@min = min
|
@@ -37,6 +40,7 @@ module Appwrite
|
|
37
40
|
key: map["key"],
|
38
41
|
type: map["type"],
|
39
42
|
status: map["status"],
|
43
|
+
error: map["error"],
|
40
44
|
required: map["required"],
|
41
45
|
array: map["array"],
|
42
46
|
min: map["min"],
|
@@ -50,6 +54,7 @@ module Appwrite
|
|
50
54
|
"key": @key,
|
51
55
|
"type": @type,
|
52
56
|
"status": @status,
|
57
|
+
"error": @error,
|
53
58
|
"required": @required,
|
54
59
|
"array": @array,
|
55
60
|
"min": @min,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :min
|
@@ -16,6 +17,7 @@ module Appwrite
|
|
16
17
|
key:,
|
17
18
|
type:,
|
18
19
|
status:,
|
20
|
+
error:,
|
19
21
|
required:,
|
20
22
|
array: ,
|
21
23
|
min: ,
|
@@ -25,6 +27,7 @@ module Appwrite
|
|
25
27
|
@key = key
|
26
28
|
@type = type
|
27
29
|
@status = status
|
30
|
+
@error = error
|
28
31
|
@required = required
|
29
32
|
@array = array
|
30
33
|
@min = min
|
@@ -37,6 +40,7 @@ module Appwrite
|
|
37
40
|
key: map["key"],
|
38
41
|
type: map["type"],
|
39
42
|
status: map["status"],
|
43
|
+
error: map["error"],
|
40
44
|
required: map["required"],
|
41
45
|
array: map["array"],
|
42
46
|
min: map["min"],
|
@@ -50,6 +54,7 @@ module Appwrite
|
|
50
54
|
"key": @key,
|
51
55
|
"type": @type,
|
52
56
|
"status": @status,
|
57
|
+
"error": @error,
|
53
58
|
"required": @required,
|
54
59
|
"array": @array,
|
55
60
|
"min": @min,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :format
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
15
16
|
key:,
|
16
17
|
type:,
|
17
18
|
status:,
|
19
|
+
error:,
|
18
20
|
required:,
|
19
21
|
array: ,
|
20
22
|
format:,
|
@@ -23,6 +25,7 @@ module Appwrite
|
|
23
25
|
@key = key
|
24
26
|
@type = type
|
25
27
|
@status = status
|
28
|
+
@error = error
|
26
29
|
@required = required
|
27
30
|
@array = array
|
28
31
|
@format = format
|
@@ -34,6 +37,7 @@ module Appwrite
|
|
34
37
|
key: map["key"],
|
35
38
|
type: map["type"],
|
36
39
|
status: map["status"],
|
40
|
+
error: map["error"],
|
37
41
|
required: map["required"],
|
38
42
|
array: map["array"],
|
39
43
|
format: map["format"],
|
@@ -46,6 +50,7 @@ module Appwrite
|
|
46
50
|
"key": @key,
|
47
51
|
"type": @type,
|
48
52
|
"status": @status,
|
53
|
+
"error": @error,
|
49
54
|
"required": @required,
|
50
55
|
"array": @array,
|
51
56
|
"format": @format,
|
@@ -0,0 +1,82 @@
|
|
1
|
+
#frozen_string_literal: true
|
2
|
+
|
3
|
+
module Appwrite
|
4
|
+
module Models
|
5
|
+
class AttributeRelationship
|
6
|
+
attr_reader :key
|
7
|
+
attr_reader :type
|
8
|
+
attr_reader :status
|
9
|
+
attr_reader :error
|
10
|
+
attr_reader :required
|
11
|
+
attr_reader :array
|
12
|
+
attr_reader :related_collection
|
13
|
+
attr_reader :relation_type
|
14
|
+
attr_reader :two_way
|
15
|
+
attr_reader :two_way_key
|
16
|
+
attr_reader :on_delete
|
17
|
+
attr_reader :side
|
18
|
+
|
19
|
+
def initialize(
|
20
|
+
key:,
|
21
|
+
type:,
|
22
|
+
status:,
|
23
|
+
error:,
|
24
|
+
required:,
|
25
|
+
array: ,
|
26
|
+
related_collection:,
|
27
|
+
relation_type:,
|
28
|
+
two_way:,
|
29
|
+
two_way_key:,
|
30
|
+
on_delete:,
|
31
|
+
side:
|
32
|
+
)
|
33
|
+
@key = key
|
34
|
+
@type = type
|
35
|
+
@status = status
|
36
|
+
@error = error
|
37
|
+
@required = required
|
38
|
+
@array = array
|
39
|
+
@related_collection = related_collection
|
40
|
+
@relation_type = relation_type
|
41
|
+
@two_way = two_way
|
42
|
+
@two_way_key = two_way_key
|
43
|
+
@on_delete = on_delete
|
44
|
+
@side = side
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.from(map:)
|
48
|
+
AttributeRelationship.new(
|
49
|
+
key: map["key"],
|
50
|
+
type: map["type"],
|
51
|
+
status: map["status"],
|
52
|
+
error: map["error"],
|
53
|
+
required: map["required"],
|
54
|
+
array: map["array"],
|
55
|
+
related_collection: map["relatedCollection"],
|
56
|
+
relation_type: map["relationType"],
|
57
|
+
two_way: map["twoWay"],
|
58
|
+
two_way_key: map["twoWayKey"],
|
59
|
+
on_delete: map["onDelete"],
|
60
|
+
side: map["side"]
|
61
|
+
)
|
62
|
+
end
|
63
|
+
|
64
|
+
def to_map
|
65
|
+
{
|
66
|
+
"key": @key,
|
67
|
+
"type": @type,
|
68
|
+
"status": @status,
|
69
|
+
"error": @error,
|
70
|
+
"required": @required,
|
71
|
+
"array": @array,
|
72
|
+
"relatedCollection": @related_collection,
|
73
|
+
"relationType": @relation_type,
|
74
|
+
"twoWay": @two_way,
|
75
|
+
"twoWayKey": @two_way_key,
|
76
|
+
"onDelete": @on_delete,
|
77
|
+
"side": @side
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :size
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
15
16
|
key:,
|
16
17
|
type:,
|
17
18
|
status:,
|
19
|
+
error:,
|
18
20
|
required:,
|
19
21
|
array: ,
|
20
22
|
size:,
|
@@ -23,6 +25,7 @@ module Appwrite
|
|
23
25
|
@key = key
|
24
26
|
@type = type
|
25
27
|
@status = status
|
28
|
+
@error = error
|
26
29
|
@required = required
|
27
30
|
@array = array
|
28
31
|
@size = size
|
@@ -34,6 +37,7 @@ module Appwrite
|
|
34
37
|
key: map["key"],
|
35
38
|
type: map["type"],
|
36
39
|
status: map["status"],
|
40
|
+
error: map["error"],
|
37
41
|
required: map["required"],
|
38
42
|
array: map["array"],
|
39
43
|
size: map["size"],
|
@@ -46,6 +50,7 @@ module Appwrite
|
|
46
50
|
"key": @key,
|
47
51
|
"type": @type,
|
48
52
|
"status": @status,
|
53
|
+
"error": @error,
|
49
54
|
"required": @required,
|
50
55
|
"array": @array,
|
51
56
|
"size": @size,
|
@@ -6,6 +6,7 @@ module Appwrite
|
|
6
6
|
attr_reader :key
|
7
7
|
attr_reader :type
|
8
8
|
attr_reader :status
|
9
|
+
attr_reader :error
|
9
10
|
attr_reader :required
|
10
11
|
attr_reader :array
|
11
12
|
attr_reader :format
|
@@ -15,6 +16,7 @@ module Appwrite
|
|
15
16
|
key:,
|
16
17
|
type:,
|
17
18
|
status:,
|
19
|
+
error:,
|
18
20
|
required:,
|
19
21
|
array: ,
|
20
22
|
format:,
|
@@ -23,6 +25,7 @@ module Appwrite
|
|
23
25
|
@key = key
|
24
26
|
@type = type
|
25
27
|
@status = status
|
28
|
+
@error = error
|
26
29
|
@required = required
|
27
30
|
@array = array
|
28
31
|
@format = format
|
@@ -34,6 +37,7 @@ module Appwrite
|
|
34
37
|
key: map["key"],
|
35
38
|
type: map["type"],
|
36
39
|
status: map["status"],
|
40
|
+
error: map["error"],
|
37
41
|
required: map["required"],
|
38
42
|
array: map["array"],
|
39
43
|
format: map["format"],
|
@@ -46,6 +50,7 @@ module Appwrite
|
|
46
50
|
"key": @key,
|
47
51
|
"type": @type,
|
48
52
|
"status": @status,
|
53
|
+
"error": @error,
|
49
54
|
"required": @required,
|
50
55
|
"array": @array,
|
51
56
|
"format": @format,
|