react-native-appwrite 0.2.2 → 0.3.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/.github/workflows/publish.yml +13 -4
- package/CHANGELOG.md +1 -1
- package/LICENSE +1 -1
- package/README.md +22 -9
- package/dist/cjs/sdk.js +1193 -269
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1193 -270
- package/dist/esm/sdk.js.map +1 -1
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +14 -0
- package/docs/examples/account/create-email-token.md +15 -0
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +16 -0
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +14 -0
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +15 -0
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +14 -0
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-mfa-authenticator.md +14 -0
- package/docs/examples/account/delete-push-target.md +13 -0
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +13 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-session.md +9 -13
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +14 -0
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-subscriber.md +15 -0
- package/docs/examples/messaging/delete-subscriber.md +14 -0
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/package.json +1 -1
- package/src/client.ts +37 -11
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/browser.ts +16 -0
- package/src/enums/credit-card.ts +18 -0
- package/src/enums/execution-method.ts +8 -0
- package/src/enums/flag.ts +197 -0
- package/src/enums/image-format.ts +7 -0
- package/src/enums/image-gravity.ts +11 -0
- package/src/enums/o-auth-provider.ts +41 -0
- package/src/id.ts +23 -4
- package/src/index.ts +13 -2
- package/src/models.ts +174 -0
- package/src/query.ts +61 -34
- package/src/service.ts +4 -7
- package/src/services/account.ts +643 -119
- package/src/services/avatars.ts +12 -6
- package/src/services/databases.ts +7 -4
- package/src/services/functions.ts +6 -2
- package/src/services/graphql.ts +3 -0
- package/src/services/locale.ts +3 -0
- package/src/services/messaging.ts +84 -0
- package/src/services/storage.ts +12 -6
- package/src/services/teams.ts +3 -0
- package/types/client.d.ts +133 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/id.d.ts +5 -0
- package/types/index.d.ts +25 -0
- package/types/models.d.ts +1195 -0
- package/types/permission.d.ts +7 -0
- package/types/query.d.ts +34 -0
- package/types/role.d.ts +70 -0
- package/types/service.d.ts +8 -0
- package/types/services/account.d.ts +676 -0
- package/types/services/avatars.d.ts +149 -0
- package/types/services/databases.d.ts +77 -0
- package/types/services/functions.d.ts +49 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/locale.d.ts +91 -0
- package/types/services/messaging.d.ts +29 -0
- package/types/services/storage.d.ts +147 -0
- package/types/services/teams.d.ts +197 -0
- package/docs/examples/account/create-email-session.md +0 -18
- package/docs/examples/account/create-magic-u-r-l-session.md +0 -18
- package/docs/examples/account/create-phone-session.md +0 -18
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare enum Flag {
|
|
2
|
+
Afghanistan = "af",
|
|
3
|
+
Angola = "ao",
|
|
4
|
+
Albania = "al",
|
|
5
|
+
Andorra = "ad",
|
|
6
|
+
UnitedArabEmirates = "ae",
|
|
7
|
+
Argentina = "ar",
|
|
8
|
+
Armenia = "am",
|
|
9
|
+
AntiguaAndBarbuda = "ag",
|
|
10
|
+
Australia = "au",
|
|
11
|
+
Austria = "at",
|
|
12
|
+
Azerbaijan = "az",
|
|
13
|
+
Burundi = "bi",
|
|
14
|
+
Belgium = "be",
|
|
15
|
+
Benin = "bj",
|
|
16
|
+
BurkinaFaso = "bf",
|
|
17
|
+
Bangladesh = "bd",
|
|
18
|
+
Bulgaria = "bg",
|
|
19
|
+
Bahrain = "bh",
|
|
20
|
+
Bahamas = "bs",
|
|
21
|
+
BosniaAndHerzegovina = "ba",
|
|
22
|
+
Belarus = "by",
|
|
23
|
+
Belize = "bz",
|
|
24
|
+
Bolivia = "bo",
|
|
25
|
+
Brazil = "br",
|
|
26
|
+
Barbados = "bb",
|
|
27
|
+
BruneiDarussalam = "bn",
|
|
28
|
+
Bhutan = "bt",
|
|
29
|
+
Botswana = "bw",
|
|
30
|
+
CentralAfricanRepublic = "cf",
|
|
31
|
+
Canada = "ca",
|
|
32
|
+
Switzerland = "ch",
|
|
33
|
+
Chile = "cl",
|
|
34
|
+
China = "cn",
|
|
35
|
+
CoteDIvoire = "ci",
|
|
36
|
+
Cameroon = "cm",
|
|
37
|
+
DemocraticRepublicOfTheCongo = "cd",
|
|
38
|
+
RepublicOfTheCongo = "cg",
|
|
39
|
+
Colombia = "co",
|
|
40
|
+
Comoros = "km",
|
|
41
|
+
CapeVerde = "cv",
|
|
42
|
+
CostaRica = "cr",
|
|
43
|
+
Cuba = "cu",
|
|
44
|
+
Cyprus = "cy",
|
|
45
|
+
CzechRepublic = "cz",
|
|
46
|
+
Germany = "de",
|
|
47
|
+
Djibouti = "dj",
|
|
48
|
+
Dominica = "dm",
|
|
49
|
+
Denmark = "dk",
|
|
50
|
+
DominicanRepublic = "do",
|
|
51
|
+
Algeria = "dz",
|
|
52
|
+
Ecuador = "ec",
|
|
53
|
+
Egypt = "eg",
|
|
54
|
+
Eritrea = "er",
|
|
55
|
+
Spain = "es",
|
|
56
|
+
Estonia = "ee",
|
|
57
|
+
Ethiopia = "et",
|
|
58
|
+
Finland = "fi",
|
|
59
|
+
Fiji = "fj",
|
|
60
|
+
France = "fr",
|
|
61
|
+
MicronesiaFederatedStatesOf = "fm",
|
|
62
|
+
Gabon = "ga",
|
|
63
|
+
UnitedKingdom = "gb",
|
|
64
|
+
Georgia = "ge",
|
|
65
|
+
Ghana = "gh",
|
|
66
|
+
Guinea = "gn",
|
|
67
|
+
Gambia = "gm",
|
|
68
|
+
GuineaBissau = "gw",
|
|
69
|
+
EquatorialGuinea = "gq",
|
|
70
|
+
Greece = "gr",
|
|
71
|
+
Grenada = "gd",
|
|
72
|
+
Guatemala = "gt",
|
|
73
|
+
Guyana = "gy",
|
|
74
|
+
Honduras = "hn",
|
|
75
|
+
Croatia = "hr",
|
|
76
|
+
Haiti = "ht",
|
|
77
|
+
Hungary = "hu",
|
|
78
|
+
Indonesia = "id",
|
|
79
|
+
India = "in",
|
|
80
|
+
Ireland = "ie",
|
|
81
|
+
IranIslamicRepublicOf = "ir",
|
|
82
|
+
Iraq = "iq",
|
|
83
|
+
Iceland = "is",
|
|
84
|
+
Israel = "il",
|
|
85
|
+
Italy = "it",
|
|
86
|
+
Jamaica = "jm",
|
|
87
|
+
Jordan = "jo",
|
|
88
|
+
Japan = "jp",
|
|
89
|
+
Kazakhstan = "kz",
|
|
90
|
+
Kenya = "ke",
|
|
91
|
+
Kyrgyzstan = "kg",
|
|
92
|
+
Cambodia = "kh",
|
|
93
|
+
Kiribati = "ki",
|
|
94
|
+
SaintKittsAndNevis = "kn",
|
|
95
|
+
SouthKorea = "kr",
|
|
96
|
+
Kuwait = "kw",
|
|
97
|
+
LaoPeopleSDemocraticRepublic = "la",
|
|
98
|
+
Lebanon = "lb",
|
|
99
|
+
Liberia = "lr",
|
|
100
|
+
Libya = "ly",
|
|
101
|
+
SaintLucia = "lc",
|
|
102
|
+
Liechtenstein = "li",
|
|
103
|
+
SriLanka = "lk",
|
|
104
|
+
Lesotho = "ls",
|
|
105
|
+
Lithuania = "lt",
|
|
106
|
+
Luxembourg = "lu",
|
|
107
|
+
Latvia = "lv",
|
|
108
|
+
Morocco = "ma",
|
|
109
|
+
Monaco = "mc",
|
|
110
|
+
Moldova = "md",
|
|
111
|
+
Madagascar = "mg",
|
|
112
|
+
Maldives = "mv",
|
|
113
|
+
Mexico = "mx",
|
|
114
|
+
MarshallIslands = "mh",
|
|
115
|
+
NorthMacedonia = "mk",
|
|
116
|
+
Mali = "ml",
|
|
117
|
+
Malta = "mt",
|
|
118
|
+
Myanmar = "mm",
|
|
119
|
+
Montenegro = "me",
|
|
120
|
+
Mongolia = "mn",
|
|
121
|
+
Mozambique = "mz",
|
|
122
|
+
Mauritania = "mr",
|
|
123
|
+
Mauritius = "mu",
|
|
124
|
+
Malawi = "mw",
|
|
125
|
+
Malaysia = "my",
|
|
126
|
+
Namibia = "na",
|
|
127
|
+
Niger = "ne",
|
|
128
|
+
Nigeria = "ng",
|
|
129
|
+
Nicaragua = "ni",
|
|
130
|
+
Netherlands = "nl",
|
|
131
|
+
Norway = "no",
|
|
132
|
+
Nepal = "np",
|
|
133
|
+
Nauru = "nr",
|
|
134
|
+
NewZealand = "nz",
|
|
135
|
+
Oman = "om",
|
|
136
|
+
Pakistan = "pk",
|
|
137
|
+
Panama = "pa",
|
|
138
|
+
Peru = "pe",
|
|
139
|
+
Philippines = "ph",
|
|
140
|
+
Palau = "pw",
|
|
141
|
+
PapuaNewGuinea = "pg",
|
|
142
|
+
Poland = "pl",
|
|
143
|
+
FrenchPolynesia = "pf",
|
|
144
|
+
NorthKorea = "kp",
|
|
145
|
+
Portugal = "pt",
|
|
146
|
+
Paraguay = "py",
|
|
147
|
+
Qatar = "qa",
|
|
148
|
+
Romania = "ro",
|
|
149
|
+
Russia = "ru",
|
|
150
|
+
Rwanda = "rw",
|
|
151
|
+
SaudiArabia = "sa",
|
|
152
|
+
Sudan = "sd",
|
|
153
|
+
Senegal = "sn",
|
|
154
|
+
Singapore = "sg",
|
|
155
|
+
SolomonIslands = "sb",
|
|
156
|
+
SierraLeone = "sl",
|
|
157
|
+
ElSalvador = "sv",
|
|
158
|
+
SanMarino = "sm",
|
|
159
|
+
Somalia = "so",
|
|
160
|
+
Serbia = "rs",
|
|
161
|
+
SouthSudan = "ss",
|
|
162
|
+
SaoTomeAndPrincipe = "st",
|
|
163
|
+
Suriname = "sr",
|
|
164
|
+
Slovakia = "sk",
|
|
165
|
+
Slovenia = "si",
|
|
166
|
+
Sweden = "se",
|
|
167
|
+
Eswatini = "sz",
|
|
168
|
+
Seychelles = "sc",
|
|
169
|
+
Syria = "sy",
|
|
170
|
+
Chad = "td",
|
|
171
|
+
Togo = "tg",
|
|
172
|
+
Thailand = "th",
|
|
173
|
+
Tajikistan = "tj",
|
|
174
|
+
Turkmenistan = "tm",
|
|
175
|
+
TimorLeste = "tl",
|
|
176
|
+
Tonga = "to",
|
|
177
|
+
TrinidadAndTobago = "tt",
|
|
178
|
+
Tunisia = "tn",
|
|
179
|
+
Turkey = "tr",
|
|
180
|
+
Tuvalu = "tv",
|
|
181
|
+
Tanzania = "tz",
|
|
182
|
+
Uganda = "ug",
|
|
183
|
+
Ukraine = "ua",
|
|
184
|
+
Uruguay = "uy",
|
|
185
|
+
UnitedStates = "us",
|
|
186
|
+
Uzbekistan = "uz",
|
|
187
|
+
VaticanCity = "va",
|
|
188
|
+
SaintVincentAndTheGrenadines = "vc",
|
|
189
|
+
Venezuela = "ve",
|
|
190
|
+
Vietnam = "vn",
|
|
191
|
+
Vanuatu = "vu",
|
|
192
|
+
Samoa = "ws",
|
|
193
|
+
Yemen = "ye",
|
|
194
|
+
SouthAfrica = "za",
|
|
195
|
+
Zambia = "zm",
|
|
196
|
+
Zimbabwe = "zw"
|
|
197
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum OAuthProvider {
|
|
2
|
+
Amazon = "amazon",
|
|
3
|
+
Apple = "apple",
|
|
4
|
+
Auth0 = "auth0",
|
|
5
|
+
Authentik = "authentik",
|
|
6
|
+
Autodesk = "autodesk",
|
|
7
|
+
Bitbucket = "bitbucket",
|
|
8
|
+
Bitly = "bitly",
|
|
9
|
+
Box = "box",
|
|
10
|
+
Dailymotion = "dailymotion",
|
|
11
|
+
Discord = "discord",
|
|
12
|
+
Disqus = "disqus",
|
|
13
|
+
Dropbox = "dropbox",
|
|
14
|
+
Etsy = "etsy",
|
|
15
|
+
Facebook = "facebook",
|
|
16
|
+
Github = "github",
|
|
17
|
+
Gitlab = "gitlab",
|
|
18
|
+
Google = "google",
|
|
19
|
+
Linkedin = "linkedin",
|
|
20
|
+
Microsoft = "microsoft",
|
|
21
|
+
Notion = "notion",
|
|
22
|
+
Oidc = "oidc",
|
|
23
|
+
Okta = "okta",
|
|
24
|
+
Paypal = "paypal",
|
|
25
|
+
PaypalSandbox = "paypalSandbox",
|
|
26
|
+
Podio = "podio",
|
|
27
|
+
Salesforce = "salesforce",
|
|
28
|
+
Slack = "slack",
|
|
29
|
+
Spotify = "spotify",
|
|
30
|
+
Stripe = "stripe",
|
|
31
|
+
Tradeshift = "tradeshift",
|
|
32
|
+
TradeshiftBox = "tradeshiftBox",
|
|
33
|
+
Twitch = "twitch",
|
|
34
|
+
Wordpress = "wordpress",
|
|
35
|
+
Yahoo = "yahoo",
|
|
36
|
+
Yammer = "yammer",
|
|
37
|
+
Yandex = "yandex",
|
|
38
|
+
Zoho = "zoho",
|
|
39
|
+
Zoom = "zoom",
|
|
40
|
+
Mock = "mock"
|
|
41
|
+
}
|
package/types/id.d.ts
ADDED
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { Client, AppwriteException } from './client';
|
|
2
|
+
export { Account } from './services/account';
|
|
3
|
+
export { Avatars } from './services/avatars';
|
|
4
|
+
export { Databases } from './services/databases';
|
|
5
|
+
export { Functions } from './services/functions';
|
|
6
|
+
export { Graphql } from './services/graphql';
|
|
7
|
+
export { Locale } from './services/locale';
|
|
8
|
+
export { Messaging } from './services/messaging';
|
|
9
|
+
export { Storage } from './services/storage';
|
|
10
|
+
export { Teams } from './services/teams';
|
|
11
|
+
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
12
|
+
export type { QueryTypes, QueryTypesList } from './query';
|
|
13
|
+
export { Query } from './query';
|
|
14
|
+
export { Permission } from './permission';
|
|
15
|
+
export { Role } from './role';
|
|
16
|
+
export { ID } from './id';
|
|
17
|
+
export { AuthenticatorType } from './enums/authenticator-type';
|
|
18
|
+
export { AuthenticationFactor } from './enums/authentication-factor';
|
|
19
|
+
export { OAuthProvider } from './enums/o-auth-provider';
|
|
20
|
+
export { Browser } from './enums/browser';
|
|
21
|
+
export { CreditCard } from './enums/credit-card';
|
|
22
|
+
export { Flag } from './enums/flag';
|
|
23
|
+
export { ExecutionMethod } from './enums/execution-method';
|
|
24
|
+
export { ImageGravity } from './enums/image-gravity';
|
|
25
|
+
export { ImageFormat } from './enums/image-format';
|