appwrite 4.1.0 → 7.0.0.pre.RC1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +32 -11
  3. data/lib/appwrite/id.rb +11 -0
  4. data/lib/appwrite/input_file.rb +33 -0
  5. data/lib/appwrite/models/account.rb +82 -0
  6. data/lib/appwrite/models/algo_argon2.rb +37 -0
  7. data/lib/appwrite/models/algo_bcrypt.rb +22 -0
  8. data/lib/appwrite/models/algo_md5.rb +22 -0
  9. data/lib/appwrite/models/algo_phpass.rb +22 -0
  10. data/lib/appwrite/models/algo_scrypt.rb +42 -0
  11. data/lib/appwrite/models/algo_scrypt_modified.rb +37 -0
  12. data/lib/appwrite/models/algo_sha.rb +22 -0
  13. data/lib/appwrite/models/attribute_datetime.rb +57 -0
  14. data/lib/appwrite/models/bucket.rb +25 -25
  15. data/lib/appwrite/models/collection.rb +25 -15
  16. data/lib/appwrite/models/database.rb +42 -0
  17. data/lib/appwrite/models/database_list.rb +32 -0
  18. data/lib/appwrite/models/deployment.rb +10 -5
  19. data/lib/appwrite/models/document.rb +15 -10
  20. data/lib/appwrite/models/execution.rb +20 -10
  21. data/lib/appwrite/models/file.rb +15 -15
  22. data/lib/appwrite/models/function.rb +12 -12
  23. data/lib/appwrite/models/index.rb +1 -1
  24. data/lib/appwrite/models/membership.rb +25 -10
  25. data/lib/appwrite/models/session.rb +5 -0
  26. data/lib/appwrite/models/team.rb +10 -5
  27. data/lib/appwrite/models/token.rb +5 -0
  28. data/lib/appwrite/models/user.rb +35 -0
  29. data/lib/appwrite/models/variable.rb +52 -0
  30. data/lib/appwrite/models/variable_list.rb +32 -0
  31. data/lib/appwrite/permission.rb +21 -0
  32. data/lib/appwrite/query.rb +43 -14
  33. data/lib/appwrite/role.rb +31 -0
  34. data/lib/appwrite/services/account.rb +274 -126
  35. data/lib/appwrite/services/avatars.rb +106 -59
  36. data/lib/appwrite/services/databases.rb +1425 -0
  37. data/lib/appwrite/services/functions.rb +381 -176
  38. data/lib/appwrite/services/health.rb +34 -34
  39. data/lib/appwrite/services/locale.rb +25 -7
  40. data/lib/appwrite/services/storage.rb +195 -193
  41. data/lib/appwrite/services/teams.rb +138 -128
  42. data/lib/appwrite/services/users.rb +637 -123
  43. data/lib/appwrite.rb +19 -2
  44. metadata +22 -6
  45. data/lib/appwrite/file.rb +0 -17
  46. data/lib/appwrite/services/database.rb +0 -1049
data/lib/appwrite.rb CHANGED
@@ -6,10 +6,15 @@ require 'mime/types'
6
6
  require_relative 'appwrite/client'
7
7
  require_relative 'appwrite/service'
8
8
  require_relative 'appwrite/exception'
9
- require_relative 'appwrite/file'
9
+ require_relative 'appwrite/input_file'
10
+ require_relative 'appwrite/query'
11
+ require_relative 'appwrite/permission'
12
+ require_relative 'appwrite/role'
13
+ require_relative 'appwrite/id'
10
14
 
11
15
  require_relative 'appwrite/models/document_list'
12
16
  require_relative 'appwrite/models/collection_list'
17
+ require_relative 'appwrite/models/database_list'
13
18
  require_relative 'appwrite/models/index_list'
14
19
  require_relative 'appwrite/models/user_list'
15
20
  require_relative 'appwrite/models/session_list'
@@ -27,6 +32,8 @@ require_relative 'appwrite/models/continent_list'
27
32
  require_relative 'appwrite/models/language_list'
28
33
  require_relative 'appwrite/models/currency_list'
29
34
  require_relative 'appwrite/models/phone_list'
35
+ require_relative 'appwrite/models/variable_list'
36
+ require_relative 'appwrite/models/database'
30
37
  require_relative 'appwrite/models/collection'
31
38
  require_relative 'appwrite/models/attribute_list'
32
39
  require_relative 'appwrite/models/attribute_string'
@@ -37,10 +44,19 @@ require_relative 'appwrite/models/attribute_email'
37
44
  require_relative 'appwrite/models/attribute_enum'
38
45
  require_relative 'appwrite/models/attribute_ip'
39
46
  require_relative 'appwrite/models/attribute_url'
47
+ require_relative 'appwrite/models/attribute_datetime'
40
48
  require_relative 'appwrite/models/index'
41
49
  require_relative 'appwrite/models/document'
42
50
  require_relative 'appwrite/models/log'
43
51
  require_relative 'appwrite/models/user'
52
+ require_relative 'appwrite/models/algo_md5'
53
+ require_relative 'appwrite/models/algo_sha'
54
+ require_relative 'appwrite/models/algo_phpass'
55
+ require_relative 'appwrite/models/algo_bcrypt'
56
+ require_relative 'appwrite/models/algo_scrypt'
57
+ require_relative 'appwrite/models/algo_scrypt_modified'
58
+ require_relative 'appwrite/models/algo_argon2'
59
+ require_relative 'appwrite/models/account'
44
60
  require_relative 'appwrite/models/preferences'
45
61
  require_relative 'appwrite/models/session'
46
62
  require_relative 'appwrite/models/token'
@@ -53,6 +69,7 @@ require_relative 'appwrite/models/function'
53
69
  require_relative 'appwrite/models/runtime'
54
70
  require_relative 'appwrite/models/deployment'
55
71
  require_relative 'appwrite/models/execution'
72
+ require_relative 'appwrite/models/variable'
56
73
  require_relative 'appwrite/models/country'
57
74
  require_relative 'appwrite/models/continent'
58
75
  require_relative 'appwrite/models/language'
@@ -65,7 +82,7 @@ require_relative 'appwrite/models/health_time'
65
82
 
66
83
  require_relative 'appwrite/services/account'
67
84
  require_relative 'appwrite/services/avatars'
68
- require_relative 'appwrite/services/database'
85
+ require_relative 'appwrite/services/databases'
69
86
  require_relative 'appwrite/services/functions'
70
87
  require_relative 'appwrite/services/health'
71
88
  require_relative 'appwrite/services/locale'
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: 4.1.0
4
+ version: 7.0.0.pre.RC1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Appwrite Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types
@@ -33,8 +33,18 @@ files:
33
33
  - lib/appwrite.rb
34
34
  - lib/appwrite/client.rb
35
35
  - lib/appwrite/exception.rb
36
- - lib/appwrite/file.rb
36
+ - lib/appwrite/id.rb
37
+ - lib/appwrite/input_file.rb
38
+ - lib/appwrite/models/account.rb
39
+ - lib/appwrite/models/algo_argon2.rb
40
+ - lib/appwrite/models/algo_bcrypt.rb
41
+ - lib/appwrite/models/algo_md5.rb
42
+ - lib/appwrite/models/algo_phpass.rb
43
+ - lib/appwrite/models/algo_scrypt.rb
44
+ - lib/appwrite/models/algo_scrypt_modified.rb
45
+ - lib/appwrite/models/algo_sha.rb
37
46
  - lib/appwrite/models/attribute_boolean.rb
47
+ - lib/appwrite/models/attribute_datetime.rb
38
48
  - lib/appwrite/models/attribute_email.rb
39
49
  - lib/appwrite/models/attribute_enum.rb
40
50
  - lib/appwrite/models/attribute_float.rb
@@ -53,6 +63,8 @@ files:
53
63
  - lib/appwrite/models/country_list.rb
54
64
  - lib/appwrite/models/currency.rb
55
65
  - lib/appwrite/models/currency_list.rb
66
+ - lib/appwrite/models/database.rb
67
+ - lib/appwrite/models/database_list.rb
56
68
  - lib/appwrite/models/deployment.rb
57
69
  - lib/appwrite/models/deployment_list.rb
58
70
  - lib/appwrite/models/document.rb
@@ -88,11 +100,15 @@ files:
88
100
  - lib/appwrite/models/token.rb
89
101
  - lib/appwrite/models/user.rb
90
102
  - lib/appwrite/models/user_list.rb
103
+ - lib/appwrite/models/variable.rb
104
+ - lib/appwrite/models/variable_list.rb
105
+ - lib/appwrite/permission.rb
91
106
  - lib/appwrite/query.rb
107
+ - lib/appwrite/role.rb
92
108
  - lib/appwrite/service.rb
93
109
  - lib/appwrite/services/account.rb
94
110
  - lib/appwrite/services/avatars.rb
95
- - lib/appwrite/services/database.rb
111
+ - lib/appwrite/services/databases.rb
96
112
  - lib/appwrite/services/functions.rb
97
113
  - lib/appwrite/services/health.rb
98
114
  - lib/appwrite/services/locale.rb
@@ -114,9 +130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
130
  version: '0'
115
131
  required_rubygems_version: !ruby/object:Gem::Requirement
116
132
  requirements:
117
- - - ">="
133
+ - - ">"
118
134
  - !ruby/object:Gem::Version
119
- version: '0'
135
+ version: 1.3.1
120
136
  requirements: []
121
137
  rubygems_version: 3.0.8
122
138
  signing_key:
data/lib/appwrite/file.rb DELETED
@@ -1,17 +0,0 @@
1
- require 'mime/types'
2
-
3
- module Appwrite
4
- class File
5
- attr_reader :path
6
- attr_reader :name
7
- attr_reader :content
8
- attr_reader :mime_type
9
-
10
- def initialize(path, content)
11
- @path = path
12
- @content = content
13
- @name = ::File.basename(path)
14
- @mime_type = MIME::Types.type_for(path)
15
- end
16
- end
17
- end