react-native-appwrite 0.10.1 → 0.12.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.
Files changed (126) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/README.md +84 -3
  3. package/dist/cjs/sdk.js +1810 -1113
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1810 -1114
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/docs/examples/account/create-email-password-session.md +4 -4
  8. package/docs/examples/account/create-email-token.md +5 -5
  9. package/docs/examples/account/{create-magic-u-r-l-token.md → create-magic-url-token.md} +6 -6
  10. package/docs/examples/account/create-mfa-authenticator.md +3 -3
  11. package/docs/examples/account/create-mfa-challenge.md +3 -3
  12. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  13. package/docs/examples/account/{create-o-auth2token.md → create-o-auth-2-session.md} +6 -6
  14. package/docs/examples/account/{create-o-auth2session.md → create-o-auth-2-token.md} +6 -6
  15. package/docs/examples/account/create-phone-token.md +4 -4
  16. package/docs/examples/account/create-push-target.md +5 -5
  17. package/docs/examples/account/create-recovery.md +4 -4
  18. package/docs/examples/account/create-session.md +4 -4
  19. package/docs/examples/account/create-verification.md +3 -3
  20. package/docs/examples/account/create.md +6 -6
  21. package/docs/examples/account/delete-identity.md +3 -3
  22. package/docs/examples/account/delete-mfa-authenticator.md +3 -3
  23. package/docs/examples/account/delete-push-target.md +3 -3
  24. package/docs/examples/account/delete-session.md +3 -3
  25. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  26. package/docs/examples/account/get-session.md +3 -3
  27. package/docs/examples/account/list-identities.md +3 -3
  28. package/docs/examples/account/list-logs.md +3 -3
  29. package/docs/examples/account/list-mfa-factors.md +1 -1
  30. package/docs/examples/account/update-email.md +4 -4
  31. package/docs/examples/account/{update-magic-u-r-l-session.md → update-magic-url-session.md} +4 -4
  32. package/docs/examples/account/update-mfa-authenticator.md +4 -4
  33. package/docs/examples/account/update-mfa-challenge.md +4 -4
  34. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  35. package/docs/examples/account/{update-m-f-a.md → update-mfa.md} +3 -3
  36. package/docs/examples/account/update-name.md +3 -3
  37. package/docs/examples/account/update-password.md +4 -4
  38. package/docs/examples/account/update-phone-session.md +4 -4
  39. package/docs/examples/account/update-phone-verification.md +4 -4
  40. package/docs/examples/account/update-phone.md +4 -4
  41. package/docs/examples/account/update-prefs.md +3 -3
  42. package/docs/examples/account/update-push-target.md +4 -4
  43. package/docs/examples/account/update-recovery.md +5 -5
  44. package/docs/examples/account/update-session.md +3 -3
  45. package/docs/examples/account/update-verification.md +4 -4
  46. package/docs/examples/avatars/get-browser.md +6 -6
  47. package/docs/examples/avatars/get-credit-card.md +6 -6
  48. package/docs/examples/avatars/get-favicon.md +3 -3
  49. package/docs/examples/avatars/get-flag.md +6 -6
  50. package/docs/examples/avatars/get-image.md +5 -5
  51. package/docs/examples/avatars/get-initials.md +6 -6
  52. package/docs/examples/avatars/{get-q-r.md → get-qr.md} +6 -6
  53. package/docs/examples/databases/create-document.md +8 -10
  54. package/docs/examples/databases/decrement-document-attribute.md +18 -0
  55. package/docs/examples/databases/delete-document.md +5 -5
  56. package/docs/examples/databases/get-document.md +6 -6
  57. package/docs/examples/databases/increment-document-attribute.md +18 -0
  58. package/docs/examples/databases/list-documents.md +5 -5
  59. package/docs/examples/databases/update-document.md +7 -7
  60. package/docs/examples/databases/upsert-document.md +7 -7
  61. package/docs/examples/functions/create-execution.md +9 -9
  62. package/docs/examples/functions/get-execution.md +4 -4
  63. package/docs/examples/functions/list-executions.md +4 -4
  64. package/docs/examples/graphql/mutation.md +3 -3
  65. package/docs/examples/graphql/query.md +3 -3
  66. package/docs/examples/messaging/create-subscriber.md +5 -5
  67. package/docs/examples/messaging/delete-subscriber.md +4 -4
  68. package/docs/examples/storage/create-file.md +6 -6
  69. package/docs/examples/storage/delete-file.md +4 -4
  70. package/docs/examples/storage/get-file-download.md +5 -5
  71. package/docs/examples/storage/get-file-preview.md +16 -16
  72. package/docs/examples/storage/get-file-view.md +5 -5
  73. package/docs/examples/storage/get-file.md +4 -4
  74. package/docs/examples/storage/list-files.md +5 -5
  75. package/docs/examples/storage/update-file.md +6 -6
  76. package/docs/examples/tablesdb/create-row.md +17 -0
  77. package/docs/examples/tablesdb/decrement-row-column.md +18 -0
  78. package/docs/examples/tablesdb/delete-row.md +15 -0
  79. package/docs/examples/tablesdb/get-row.md +16 -0
  80. package/docs/examples/tablesdb/increment-row-column.md +18 -0
  81. package/docs/examples/tablesdb/list-rows.md +15 -0
  82. package/docs/examples/tablesdb/update-row.md +17 -0
  83. package/docs/examples/tablesdb/upsert-row.md +17 -0
  84. package/docs/examples/teams/create-membership.md +9 -9
  85. package/docs/examples/teams/create.md +5 -5
  86. package/docs/examples/teams/delete-membership.md +4 -4
  87. package/docs/examples/teams/delete.md +3 -3
  88. package/docs/examples/teams/get-membership.md +4 -4
  89. package/docs/examples/teams/get-prefs.md +3 -3
  90. package/docs/examples/teams/get.md +3 -3
  91. package/docs/examples/teams/list-memberships.md +5 -5
  92. package/docs/examples/teams/list.md +4 -4
  93. package/docs/examples/teams/update-membership-status.md +6 -6
  94. package/docs/examples/teams/update-membership.md +5 -5
  95. package/docs/examples/teams/update-name.md +4 -4
  96. package/docs/examples/teams/update-prefs.md +4 -4
  97. package/package.json +1 -1
  98. package/src/client.ts +2 -2
  99. package/src/index.ts +1 -0
  100. package/src/models.ts +139 -21
  101. package/src/query.ts +95 -0
  102. package/src/services/account.ts +1518 -364
  103. package/src/services/avatars.ts +296 -87
  104. package/src/services/databases.ts +438 -55
  105. package/src/services/functions.ts +118 -23
  106. package/src/services/graphql.ts +54 -6
  107. package/src/services/locale.ts +16 -27
  108. package/src/services/messaging.ts +68 -9
  109. package/src/services/storage.ts +353 -84
  110. package/src/services/tables-db.ts +621 -0
  111. package/src/services/teams.ts +467 -106
  112. package/types/index.d.ts +1 -0
  113. package/types/models.d.ts +127 -62
  114. package/types/query.d.ts +77 -0
  115. package/types/services/account.d.ts +791 -337
  116. package/types/services/avatars.d.ts +175 -80
  117. package/types/services/databases.d.ts +220 -53
  118. package/types/services/functions.d.ts +65 -20
  119. package/types/services/graphql.d.ts +26 -4
  120. package/types/services/locale.d.ts +16 -27
  121. package/types/services/messaging.d.ts +35 -7
  122. package/types/services/storage.d.ts +209 -76
  123. package/types/services/tables-db.d.ts +245 -0
  124. package/types/services/teams.d.ts +261 -99
  125. /package/docs/examples/account/{create-j-w-t.md → create-jwt.md} +0 -0
  126. /package/docs/examples/locale/{list-countries-e-u.md → list-countries-eu.md} +0 -0
package/types/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { Graphql } from './services/graphql';
7
7
  export { Locale } from './services/locale';
8
8
  export { Messaging } from './services/messaging';
9
9
  export { Storage } from './services/storage';
10
+ export { TablesDB } from './services/tables-db';
10
11
  export { Teams } from './services/teams';
11
12
  export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
12
13
  export type { QueryTypes, QueryTypesList } from './query';
package/types/models.d.ts CHANGED
@@ -1,10 +1,24 @@
1
1
  export declare namespace Models {
2
+ const __default: unique symbol;
3
+ /**
4
+ * Rows List
5
+ */
6
+ export type RowList<Row extends Models.Row = Models.DefaultRow> = {
7
+ /**
8
+ * Total number of rows that matched your query.
9
+ */
10
+ total: number;
11
+ /**
12
+ * List of rows.
13
+ */
14
+ rows: Row[];
15
+ };
2
16
  /**
3
17
  * Documents List
4
18
  */
5
- type DocumentList<Document extends Models.Document> = {
19
+ export type DocumentList<Document extends Models.Document = Models.DefaultDocument> = {
6
20
  /**
7
- * Total number of documents documents that matched your query.
21
+ * Total number of documents that matched your query.
8
22
  */
9
23
  total: number;
10
24
  /**
@@ -15,9 +29,9 @@ export declare namespace Models {
15
29
  /**
16
30
  * Sessions List
17
31
  */
18
- type SessionList = {
32
+ export type SessionList = {
19
33
  /**
20
- * Total number of sessions documents that matched your query.
34
+ * Total number of sessions that matched your query.
21
35
  */
22
36
  total: number;
23
37
  /**
@@ -28,9 +42,9 @@ export declare namespace Models {
28
42
  /**
29
43
  * Identities List
30
44
  */
31
- type IdentityList = {
45
+ export type IdentityList = {
32
46
  /**
33
- * Total number of identities documents that matched your query.
47
+ * Total number of identities that matched your query.
34
48
  */
35
49
  total: number;
36
50
  /**
@@ -41,9 +55,9 @@ export declare namespace Models {
41
55
  /**
42
56
  * Logs List
43
57
  */
44
- type LogList = {
58
+ export type LogList = {
45
59
  /**
46
- * Total number of logs documents that matched your query.
60
+ * Total number of logs that matched your query.
47
61
  */
48
62
  total: number;
49
63
  /**
@@ -54,9 +68,9 @@ export declare namespace Models {
54
68
  /**
55
69
  * Files List
56
70
  */
57
- type FileList = {
71
+ export type FileList = {
58
72
  /**
59
- * Total number of files documents that matched your query.
73
+ * Total number of files that matched your query.
60
74
  */
61
75
  total: number;
62
76
  /**
@@ -67,9 +81,9 @@ export declare namespace Models {
67
81
  /**
68
82
  * Teams List
69
83
  */
70
- type TeamList<Preferences extends Models.Preferences> = {
84
+ export type TeamList<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
71
85
  /**
72
- * Total number of teams documents that matched your query.
86
+ * Total number of teams that matched your query.
73
87
  */
74
88
  total: number;
75
89
  /**
@@ -80,9 +94,9 @@ export declare namespace Models {
80
94
  /**
81
95
  * Memberships List
82
96
  */
83
- type MembershipList = {
97
+ export type MembershipList = {
84
98
  /**
85
- * Total number of memberships documents that matched your query.
99
+ * Total number of memberships that matched your query.
86
100
  */
87
101
  total: number;
88
102
  /**
@@ -93,9 +107,9 @@ export declare namespace Models {
93
107
  /**
94
108
  * Executions List
95
109
  */
96
- type ExecutionList = {
110
+ export type ExecutionList = {
97
111
  /**
98
- * Total number of executions documents that matched your query.
112
+ * Total number of executions that matched your query.
99
113
  */
100
114
  total: number;
101
115
  /**
@@ -106,9 +120,9 @@ export declare namespace Models {
106
120
  /**
107
121
  * Countries List
108
122
  */
109
- type CountryList = {
123
+ export type CountryList = {
110
124
  /**
111
- * Total number of countries documents that matched your query.
125
+ * Total number of countries that matched your query.
112
126
  */
113
127
  total: number;
114
128
  /**
@@ -119,9 +133,9 @@ export declare namespace Models {
119
133
  /**
120
134
  * Continents List
121
135
  */
122
- type ContinentList = {
136
+ export type ContinentList = {
123
137
  /**
124
- * Total number of continents documents that matched your query.
138
+ * Total number of continents that matched your query.
125
139
  */
126
140
  total: number;
127
141
  /**
@@ -132,9 +146,9 @@ export declare namespace Models {
132
146
  /**
133
147
  * Languages List
134
148
  */
135
- type LanguageList = {
149
+ export type LanguageList = {
136
150
  /**
137
- * Total number of languages documents that matched your query.
151
+ * Total number of languages that matched your query.
138
152
  */
139
153
  total: number;
140
154
  /**
@@ -145,9 +159,9 @@ export declare namespace Models {
145
159
  /**
146
160
  * Currencies List
147
161
  */
148
- type CurrencyList = {
162
+ export type CurrencyList = {
149
163
  /**
150
- * Total number of currencies documents that matched your query.
164
+ * Total number of currencies that matched your query.
151
165
  */
152
166
  total: number;
153
167
  /**
@@ -158,9 +172,9 @@ export declare namespace Models {
158
172
  /**
159
173
  * Phones List
160
174
  */
161
- type PhoneList = {
175
+ export type PhoneList = {
162
176
  /**
163
- * Total number of phones documents that matched your query.
177
+ * Total number of phones that matched your query.
164
178
  */
165
179
  total: number;
166
180
  /**
@@ -171,9 +185,9 @@ export declare namespace Models {
171
185
  /**
172
186
  * Locale codes list
173
187
  */
174
- type LocaleCodeList = {
188
+ export type LocaleCodeList = {
175
189
  /**
176
- * Total number of localeCodes documents that matched your query.
190
+ * Total number of localeCodes that matched your query.
177
191
  */
178
192
  total: number;
179
193
  /**
@@ -181,14 +195,55 @@ export declare namespace Models {
181
195
  */
182
196
  localeCodes: LocaleCode[];
183
197
  };
198
+ /**
199
+ * Row
200
+ */
201
+ export type Row = {
202
+ /**
203
+ * Row ID.
204
+ */
205
+ $id: string;
206
+ /**
207
+ * Row automatically incrementing ID.
208
+ */
209
+ $sequence: number;
210
+ /**
211
+ * Table ID.
212
+ */
213
+ $tableId: string;
214
+ /**
215
+ * Database ID.
216
+ */
217
+ $databaseId: string;
218
+ /**
219
+ * Row creation date in ISO 8601 format.
220
+ */
221
+ $createdAt: string;
222
+ /**
223
+ * Row update date in ISO 8601 format.
224
+ */
225
+ $updatedAt: string;
226
+ /**
227
+ * Row permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
228
+ */
229
+ $permissions: string[];
230
+ };
231
+ export type DefaultRow = Row & {
232
+ [key: string]: any;
233
+ [__default]: true;
234
+ };
184
235
  /**
185
236
  * Document
186
237
  */
187
- type Document = {
238
+ export type Document = {
188
239
  /**
189
240
  * Document ID.
190
241
  */
191
242
  $id: string;
243
+ /**
244
+ * Document automatically incrementing ID.
245
+ */
246
+ $sequence: number;
192
247
  /**
193
248
  * Collection ID.
194
249
  */
@@ -209,12 +264,15 @@ export declare namespace Models {
209
264
  * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
210
265
  */
211
266
  $permissions: string[];
267
+ };
268
+ export type DefaultDocument = Document & {
212
269
  [key: string]: any;
270
+ [__default]: true;
213
271
  };
214
272
  /**
215
273
  * Log
216
274
  */
217
- type Log = {
275
+ export type Log = {
218
276
  /**
219
277
  * Event name.
220
278
  */
@@ -303,7 +361,7 @@ export declare namespace Models {
303
361
  /**
304
362
  * User
305
363
  */
306
- type User<Preferences extends Models.Preferences> = {
364
+ export type User<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
307
365
  /**
308
366
  * User ID.
309
367
  */
@@ -384,7 +442,7 @@ export declare namespace Models {
384
442
  /**
385
443
  * AlgoMD5
386
444
  */
387
- type AlgoMd5 = {
445
+ export type AlgoMd5 = {
388
446
  /**
389
447
  * Algo type.
390
448
  */
@@ -393,7 +451,7 @@ export declare namespace Models {
393
451
  /**
394
452
  * AlgoSHA
395
453
  */
396
- type AlgoSha = {
454
+ export type AlgoSha = {
397
455
  /**
398
456
  * Algo type.
399
457
  */
@@ -402,7 +460,7 @@ export declare namespace Models {
402
460
  /**
403
461
  * AlgoPHPass
404
462
  */
405
- type AlgoPhpass = {
463
+ export type AlgoPhpass = {
406
464
  /**
407
465
  * Algo type.
408
466
  */
@@ -411,7 +469,7 @@ export declare namespace Models {
411
469
  /**
412
470
  * AlgoBcrypt
413
471
  */
414
- type AlgoBcrypt = {
472
+ export type AlgoBcrypt = {
415
473
  /**
416
474
  * Algo type.
417
475
  */
@@ -420,7 +478,7 @@ export declare namespace Models {
420
478
  /**
421
479
  * AlgoScrypt
422
480
  */
423
- type AlgoScrypt = {
481
+ export type AlgoScrypt = {
424
482
  /**
425
483
  * Algo type.
426
484
  */
@@ -445,7 +503,7 @@ export declare namespace Models {
445
503
  /**
446
504
  * AlgoScryptModified
447
505
  */
448
- type AlgoScryptModified = {
506
+ export type AlgoScryptModified = {
449
507
  /**
450
508
  * Algo type.
451
509
  */
@@ -466,7 +524,7 @@ export declare namespace Models {
466
524
  /**
467
525
  * AlgoArgon2
468
526
  */
469
- type AlgoArgon2 = {
527
+ export type AlgoArgon2 = {
470
528
  /**
471
529
  * Algo type.
472
530
  */
@@ -487,13 +545,15 @@ export declare namespace Models {
487
545
  /**
488
546
  * Preferences
489
547
  */
490
- type Preferences = {
548
+ export type Preferences = {};
549
+ export type DefaultPreferences = Preferences & {
491
550
  [key: string]: any;
551
+ [__default]: true;
492
552
  };
493
553
  /**
494
554
  * Session
495
555
  */
496
- type Session = {
556
+ export type Session = {
497
557
  /**
498
558
  * Session ID.
499
559
  */
@@ -614,7 +674,7 @@ export declare namespace Models {
614
674
  /**
615
675
  * Identity
616
676
  */
617
- type Identity = {
677
+ export type Identity = {
618
678
  /**
619
679
  * Identity ID.
620
680
  */
@@ -659,7 +719,7 @@ export declare namespace Models {
659
719
  /**
660
720
  * Token
661
721
  */
662
- type Token = {
722
+ export type Token = {
663
723
  /**
664
724
  * Token ID.
665
725
  */
@@ -688,7 +748,7 @@ export declare namespace Models {
688
748
  /**
689
749
  * JWT
690
750
  */
691
- type Jwt = {
751
+ export type Jwt = {
692
752
  /**
693
753
  * JWT encoded string.
694
754
  */
@@ -697,7 +757,7 @@ export declare namespace Models {
697
757
  /**
698
758
  * Locale
699
759
  */
700
- type Locale = {
760
+ export type Locale = {
701
761
  /**
702
762
  * User IP address.
703
763
  */
@@ -730,7 +790,7 @@ export declare namespace Models {
730
790
  /**
731
791
  * LocaleCode
732
792
  */
733
- type LocaleCode = {
793
+ export type LocaleCode = {
734
794
  /**
735
795
  * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
736
796
  */
@@ -743,7 +803,7 @@ export declare namespace Models {
743
803
  /**
744
804
  * File
745
805
  */
746
- type File = {
806
+ export type File = {
747
807
  /**
748
808
  * File ID.
749
809
  */
@@ -792,7 +852,7 @@ export declare namespace Models {
792
852
  /**
793
853
  * Team
794
854
  */
795
- type Team<Preferences extends Models.Preferences> = {
855
+ export type Team<Preferences extends Models.Preferences = Models.DefaultPreferences> = {
796
856
  /**
797
857
  * Team ID.
798
858
  */
@@ -821,7 +881,7 @@ export declare namespace Models {
821
881
  /**
822
882
  * Membership
823
883
  */
824
- type Membership = {
884
+ export type Membership = {
825
885
  /**
826
886
  * Membership ID.
827
887
  */
@@ -878,7 +938,7 @@ export declare namespace Models {
878
938
  /**
879
939
  * Execution
880
940
  */
881
- type Execution = {
941
+ export type Execution = {
882
942
  /**
883
943
  * Execution ID.
884
944
  */
@@ -888,7 +948,7 @@ export declare namespace Models {
888
948
  */
889
949
  $createdAt: string;
890
950
  /**
891
- * Execution upate date in ISO 8601 format.
951
+ * Execution update date in ISO 8601 format.
892
952
  */
893
953
  $updatedAt: string;
894
954
  /**
@@ -899,6 +959,10 @@ export declare namespace Models {
899
959
  * Function ID.
900
960
  */
901
961
  functionId: string;
962
+ /**
963
+ * Function&#039;s deployment ID used to create the execution.
964
+ */
965
+ deploymentId: string;
902
966
  /**
903
967
  * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
904
968
  */
@@ -951,7 +1015,7 @@ export declare namespace Models {
951
1015
  /**
952
1016
  * Country
953
1017
  */
954
- type Country = {
1018
+ export type Country = {
955
1019
  /**
956
1020
  * Country name.
957
1021
  */
@@ -964,7 +1028,7 @@ export declare namespace Models {
964
1028
  /**
965
1029
  * Continent
966
1030
  */
967
- type Continent = {
1031
+ export type Continent = {
968
1032
  /**
969
1033
  * Continent name.
970
1034
  */
@@ -977,7 +1041,7 @@ export declare namespace Models {
977
1041
  /**
978
1042
  * Language
979
1043
  */
980
- type Language = {
1044
+ export type Language = {
981
1045
  /**
982
1046
  * Language name.
983
1047
  */
@@ -994,7 +1058,7 @@ export declare namespace Models {
994
1058
  /**
995
1059
  * Currency
996
1060
  */
997
- type Currency = {
1061
+ export type Currency = {
998
1062
  /**
999
1063
  * Currency symbol.
1000
1064
  */
@@ -1027,7 +1091,7 @@ export declare namespace Models {
1027
1091
  /**
1028
1092
  * Phone
1029
1093
  */
1030
- type Phone = {
1094
+ export type Phone = {
1031
1095
  /**
1032
1096
  * Phone code.
1033
1097
  */
@@ -1044,7 +1108,7 @@ export declare namespace Models {
1044
1108
  /**
1045
1109
  * Headers
1046
1110
  */
1047
- type Headers = {
1111
+ export type Headers = {
1048
1112
  /**
1049
1113
  * Header name.
1050
1114
  */
@@ -1057,7 +1121,7 @@ export declare namespace Models {
1057
1121
  /**
1058
1122
  * MFA Challenge
1059
1123
  */
1060
- type MfaChallenge = {
1124
+ export type MfaChallenge = {
1061
1125
  /**
1062
1126
  * Token ID.
1063
1127
  */
@@ -1078,7 +1142,7 @@ export declare namespace Models {
1078
1142
  /**
1079
1143
  * MFA Recovery Codes
1080
1144
  */
1081
- type MfaRecoveryCodes = {
1145
+ export type MfaRecoveryCodes = {
1082
1146
  /**
1083
1147
  * Recovery codes.
1084
1148
  */
@@ -1087,7 +1151,7 @@ export declare namespace Models {
1087
1151
  /**
1088
1152
  * MFAType
1089
1153
  */
1090
- type MfaType = {
1154
+ export type MfaType = {
1091
1155
  /**
1092
1156
  * Secret token used for TOTP factor.
1093
1157
  */
@@ -1100,7 +1164,7 @@ export declare namespace Models {
1100
1164
  /**
1101
1165
  * MFAFactors
1102
1166
  */
1103
- type MfaFactors = {
1167
+ export type MfaFactors = {
1104
1168
  /**
1105
1169
  * Can TOTP be used for MFA challenge for this account.
1106
1170
  */
@@ -1121,7 +1185,7 @@ export declare namespace Models {
1121
1185
  /**
1122
1186
  * Subscriber
1123
1187
  */
1124
- type Subscriber = {
1188
+ export type Subscriber = {
1125
1189
  /**
1126
1190
  * Subscriber ID.
1127
1191
  */
@@ -1162,7 +1226,7 @@ export declare namespace Models {
1162
1226
  /**
1163
1227
  * Target
1164
1228
  */
1165
- type Target = {
1229
+ export type Target = {
1166
1230
  /**
1167
1231
  * Target ID.
1168
1232
  */
@@ -1200,4 +1264,5 @@ export declare namespace Models {
1200
1264
  */
1201
1265
  expired: boolean;
1202
1266
  };
1267
+ export {};
1203
1268
  }
package/types/query.d.ts CHANGED
@@ -27,7 +27,84 @@ export declare class Query {
27
27
  static cursorBefore: (documentId: string) => string;
28
28
  static limit: (limit: number) => string;
29
29
  static offset: (offset: number) => string;
30
+ /**
31
+ * Filter resources where attribute contains the specified value.
32
+ *
33
+ * @param {string} attribute
34
+ * @param {string | string[]} value
35
+ * @returns {string}
36
+ */
30
37
  static contains: (attribute: string, value: string | string[]) => string;
38
+ /**
39
+ * Filter resources where attribute does not contain the specified value.
40
+ *
41
+ * @param {string} attribute
42
+ * @param {string | string[]} value
43
+ * @returns {string}
44
+ */
45
+ static notContains: (attribute: string, value: string | string[]) => string;
46
+ /**
47
+ * Filter resources by searching attribute for value (inverse of search).
48
+ * A fulltext index on attribute is required for this query to work.
49
+ *
50
+ * @param {string} attribute
51
+ * @param {string} value
52
+ * @returns {string}
53
+ */
54
+ static notSearch: (attribute: string, value: string) => string;
55
+ /**
56
+ * Filter resources where attribute is not between start and end (exclusive).
57
+ *
58
+ * @param {string} attribute
59
+ * @param {string | number} start
60
+ * @param {string | number} end
61
+ * @returns {string}
62
+ */
63
+ static notBetween: (attribute: string, start: string | number, end: string | number) => string;
64
+ /**
65
+ * Filter resources where attribute does not start with value.
66
+ *
67
+ * @param {string} attribute
68
+ * @param {string} value
69
+ * @returns {string}
70
+ */
71
+ static notStartsWith: (attribute: string, value: string) => string;
72
+ /**
73
+ * Filter resources where attribute does not end with value.
74
+ *
75
+ * @param {string} attribute
76
+ * @param {string} value
77
+ * @returns {string}
78
+ */
79
+ static notEndsWith: (attribute: string, value: string) => string;
80
+ /**
81
+ * Filter resources where document was created before date.
82
+ *
83
+ * @param {string} value
84
+ * @returns {string}
85
+ */
86
+ static createdBefore: (value: string) => string;
87
+ /**
88
+ * Filter resources where document was created after date.
89
+ *
90
+ * @param {string} value
91
+ * @returns {string}
92
+ */
93
+ static createdAfter: (value: string) => string;
94
+ /**
95
+ * Filter resources where document was updated before date.
96
+ *
97
+ * @param {string} value
98
+ * @returns {string}
99
+ */
100
+ static updatedBefore: (value: string) => string;
101
+ /**
102
+ * Filter resources where document was updated after date.
103
+ *
104
+ * @param {string} value
105
+ * @returns {string}
106
+ */
107
+ static updatedAfter: (value: string) => string;
31
108
  static or: (queries: string[]) => string;
32
109
  static and: (queries: string[]) => string;
33
110
  }