react-native-appwrite 0.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.
Files changed (109) hide show
  1. package/.github/ISSUE_TEMPLATE/bug.yaml +82 -0
  2. package/.github/ISSUE_TEMPLATE/documentation.yaml +32 -0
  3. package/.github/ISSUE_TEMPLATE/feature.yaml +40 -0
  4. package/.github/workflows/publish.yml +33 -0
  5. package/.gitpod.yml +10 -0
  6. package/CHANGELOG.md +1 -0
  7. package/LICENSE +12 -0
  8. package/README.md +111 -0
  9. package/dist/cjs/sdk.js +3127 -0
  10. package/dist/cjs/sdk.js.map +1 -0
  11. package/dist/esm/sdk.js +3108 -0
  12. package/dist/esm/sdk.js.map +1 -0
  13. package/dist/iife/sdk.js +3126 -0
  14. package/docs/examples/account/create-anonymous-session.md +18 -0
  15. package/docs/examples/account/create-email-session.md +18 -0
  16. package/docs/examples/account/create-j-w-t.md +18 -0
  17. package/docs/examples/account/create-magic-u-r-l-session.md +18 -0
  18. package/docs/examples/account/create-o-auth2session.md +14 -0
  19. package/docs/examples/account/create-phone-session.md +18 -0
  20. package/docs/examples/account/create-phone-verification.md +18 -0
  21. package/docs/examples/account/create-recovery.md +18 -0
  22. package/docs/examples/account/create-verification.md +18 -0
  23. package/docs/examples/account/create.md +18 -0
  24. package/docs/examples/account/delete-identity.md +18 -0
  25. package/docs/examples/account/delete-session.md +18 -0
  26. package/docs/examples/account/delete-sessions.md +18 -0
  27. package/docs/examples/account/get-prefs.md +18 -0
  28. package/docs/examples/account/get-session.md +18 -0
  29. package/docs/examples/account/get.md +18 -0
  30. package/docs/examples/account/list-identities.md +18 -0
  31. package/docs/examples/account/list-logs.md +18 -0
  32. package/docs/examples/account/list-sessions.md +18 -0
  33. package/docs/examples/account/update-email.md +18 -0
  34. package/docs/examples/account/update-magic-u-r-l-session.md +18 -0
  35. package/docs/examples/account/update-name.md +18 -0
  36. package/docs/examples/account/update-password.md +18 -0
  37. package/docs/examples/account/update-phone-session.md +18 -0
  38. package/docs/examples/account/update-phone-verification.md +18 -0
  39. package/docs/examples/account/update-phone.md +18 -0
  40. package/docs/examples/account/update-prefs.md +18 -0
  41. package/docs/examples/account/update-recovery.md +18 -0
  42. package/docs/examples/account/update-session.md +18 -0
  43. package/docs/examples/account/update-status.md +18 -0
  44. package/docs/examples/account/update-verification.md +18 -0
  45. package/docs/examples/avatars/get-browser.md +14 -0
  46. package/docs/examples/avatars/get-credit-card.md +14 -0
  47. package/docs/examples/avatars/get-favicon.md +14 -0
  48. package/docs/examples/avatars/get-flag.md +14 -0
  49. package/docs/examples/avatars/get-image.md +14 -0
  50. package/docs/examples/avatars/get-initials.md +14 -0
  51. package/docs/examples/avatars/get-q-r.md +14 -0
  52. package/docs/examples/databases/create-document.md +18 -0
  53. package/docs/examples/databases/delete-document.md +18 -0
  54. package/docs/examples/databases/get-document.md +18 -0
  55. package/docs/examples/databases/list-documents.md +18 -0
  56. package/docs/examples/databases/update-document.md +18 -0
  57. package/docs/examples/functions/create-execution.md +18 -0
  58. package/docs/examples/functions/get-execution.md +18 -0
  59. package/docs/examples/functions/list-executions.md +18 -0
  60. package/docs/examples/graphql/mutation.md +18 -0
  61. package/docs/examples/graphql/query.md +18 -0
  62. package/docs/examples/locale/get.md +18 -0
  63. package/docs/examples/locale/list-codes.md +18 -0
  64. package/docs/examples/locale/list-continents.md +18 -0
  65. package/docs/examples/locale/list-countries-e-u.md +18 -0
  66. package/docs/examples/locale/list-countries-phones.md +18 -0
  67. package/docs/examples/locale/list-countries.md +18 -0
  68. package/docs/examples/locale/list-currencies.md +18 -0
  69. package/docs/examples/locale/list-languages.md +18 -0
  70. package/docs/examples/storage/create-file.md +18 -0
  71. package/docs/examples/storage/delete-file.md +18 -0
  72. package/docs/examples/storage/get-file-download.md +14 -0
  73. package/docs/examples/storage/get-file-preview.md +14 -0
  74. package/docs/examples/storage/get-file-view.md +14 -0
  75. package/docs/examples/storage/get-file.md +18 -0
  76. package/docs/examples/storage/list-files.md +18 -0
  77. package/docs/examples/storage/update-file.md +18 -0
  78. package/docs/examples/teams/create-membership.md +18 -0
  79. package/docs/examples/teams/create.md +18 -0
  80. package/docs/examples/teams/delete-membership.md +18 -0
  81. package/docs/examples/teams/delete.md +18 -0
  82. package/docs/examples/teams/get-membership.md +18 -0
  83. package/docs/examples/teams/get-prefs.md +18 -0
  84. package/docs/examples/teams/get.md +18 -0
  85. package/docs/examples/teams/list-memberships.md +18 -0
  86. package/docs/examples/teams/list.md +18 -0
  87. package/docs/examples/teams/update-membership-status.md +18 -0
  88. package/docs/examples/teams/update-membership.md +18 -0
  89. package/docs/examples/teams/update-name.md +18 -0
  90. package/docs/examples/teams/update-prefs.md +18 -0
  91. package/package.json +47 -0
  92. package/rollup.config.js +31 -0
  93. package/src/client.ts +437 -0
  94. package/src/id.ts +9 -0
  95. package/src/index.ts +14 -0
  96. package/src/models.ts +1021 -0
  97. package/src/permission.ts +22 -0
  98. package/src/query.ts +74 -0
  99. package/src/role.ts +100 -0
  100. package/src/service.ts +30 -0
  101. package/src/services/account.ts +1066 -0
  102. package/src/services/avatars.ts +352 -0
  103. package/src/services/databases.ts +216 -0
  104. package/src/services/functions.ts +125 -0
  105. package/src/services/graphql.ts +68 -0
  106. package/src/services/locale.ts +169 -0
  107. package/src/services/storage.ts +411 -0
  108. package/src/services/teams.ts +484 -0
  109. package/tsconfig.json +24 -0
@@ -0,0 +1,484 @@
1
+ import { Service } from '../service';
2
+ import { AppwriteException, Client } from '../client';
3
+ import type { Models } from '../models';
4
+ import type { UploadProgress, Payload } from '../client';
5
+
6
+ export class Teams extends Service {
7
+
8
+ constructor(client: Client)
9
+ {
10
+ super(client);
11
+ }
12
+
13
+ /**
14
+ * List teams
15
+ *
16
+ * Get a list of all the teams in which the current user is a member. You can
17
+ * use the parameters to filter your results.
18
+ *
19
+ * @param {string[]} queries
20
+ * @param {string} search
21
+ * @throws {AppwriteException}
22
+ * @returns {Promise}
23
+ */
24
+ async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {
25
+ const apiPath = '/teams';
26
+ const payload: Payload = {};
27
+
28
+ if (typeof queries !== 'undefined') {
29
+ payload['queries'] = queries;
30
+ }
31
+
32
+ if (typeof search !== 'undefined') {
33
+ payload['search'] = search;
34
+ }
35
+
36
+ const uri = new URL(this.client.config.endpoint + apiPath);
37
+ return await this.client.call('get', uri, {
38
+ 'content-type': 'application/json',
39
+ }, payload);
40
+ }
41
+
42
+ /**
43
+ * Create team
44
+ *
45
+ * Create a new team. The user who creates the team will automatically be
46
+ * assigned as the owner of the team. Only the users with the owner role can
47
+ * invite new members, add new owners and delete or update the team.
48
+ *
49
+ * @param {string} teamId
50
+ * @param {string} name
51
+ * @param {string[]} roles
52
+ * @throws {AppwriteException}
53
+ * @returns {Promise}
54
+ */
55
+ async create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>> {
56
+ if (typeof teamId === 'undefined') {
57
+ throw new AppwriteException('Missing required parameter: "teamId"');
58
+ }
59
+
60
+ if (typeof name === 'undefined') {
61
+ throw new AppwriteException('Missing required parameter: "name"');
62
+ }
63
+
64
+ const apiPath = '/teams';
65
+ const payload: Payload = {};
66
+
67
+ if (typeof teamId !== 'undefined') {
68
+ payload['teamId'] = teamId;
69
+ }
70
+
71
+ if (typeof name !== 'undefined') {
72
+ payload['name'] = name;
73
+ }
74
+
75
+ if (typeof roles !== 'undefined') {
76
+ payload['roles'] = roles;
77
+ }
78
+
79
+ const uri = new URL(this.client.config.endpoint + apiPath);
80
+ return await this.client.call('post', uri, {
81
+ 'content-type': 'application/json',
82
+ }, payload);
83
+ }
84
+
85
+ /**
86
+ * Get team
87
+ *
88
+ * Get a team by its ID. All team members have read access for this resource.
89
+ *
90
+ * @param {string} teamId
91
+ * @throws {AppwriteException}
92
+ * @returns {Promise}
93
+ */
94
+ async get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>> {
95
+ if (typeof teamId === 'undefined') {
96
+ throw new AppwriteException('Missing required parameter: "teamId"');
97
+ }
98
+
99
+ const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
100
+ const payload: Payload = {};
101
+
102
+ const uri = new URL(this.client.config.endpoint + apiPath);
103
+ return await this.client.call('get', uri, {
104
+ 'content-type': 'application/json',
105
+ }, payload);
106
+ }
107
+
108
+ /**
109
+ * Update name
110
+ *
111
+ * Update the team's name by its unique ID.
112
+ *
113
+ * @param {string} teamId
114
+ * @param {string} name
115
+ * @throws {AppwriteException}
116
+ * @returns {Promise}
117
+ */
118
+ async updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>> {
119
+ if (typeof teamId === 'undefined') {
120
+ throw new AppwriteException('Missing required parameter: "teamId"');
121
+ }
122
+
123
+ if (typeof name === 'undefined') {
124
+ throw new AppwriteException('Missing required parameter: "name"');
125
+ }
126
+
127
+ const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
128
+ const payload: Payload = {};
129
+
130
+ if (typeof name !== 'undefined') {
131
+ payload['name'] = name;
132
+ }
133
+
134
+ const uri = new URL(this.client.config.endpoint + apiPath);
135
+ return await this.client.call('put', uri, {
136
+ 'content-type': 'application/json',
137
+ }, payload);
138
+ }
139
+
140
+ /**
141
+ * Delete team
142
+ *
143
+ * Delete a team using its ID. Only team members with the owner role can
144
+ * delete the team.
145
+ *
146
+ * @param {string} teamId
147
+ * @throws {AppwriteException}
148
+ * @returns {Promise}
149
+ */
150
+ async delete(teamId: string): Promise<{}> {
151
+ if (typeof teamId === 'undefined') {
152
+ throw new AppwriteException('Missing required parameter: "teamId"');
153
+ }
154
+
155
+ const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
156
+ const payload: Payload = {};
157
+
158
+ const uri = new URL(this.client.config.endpoint + apiPath);
159
+ return await this.client.call('delete', uri, {
160
+ 'content-type': 'application/json',
161
+ }, payload);
162
+ }
163
+
164
+ /**
165
+ * List team memberships
166
+ *
167
+ * Use this endpoint to list a team's members using the team's ID. All team
168
+ * members have read access to this endpoint.
169
+ *
170
+ * @param {string} teamId
171
+ * @param {string[]} queries
172
+ * @param {string} search
173
+ * @throws {AppwriteException}
174
+ * @returns {Promise}
175
+ */
176
+ async listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList> {
177
+ if (typeof teamId === 'undefined') {
178
+ throw new AppwriteException('Missing required parameter: "teamId"');
179
+ }
180
+
181
+ const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
182
+ const payload: Payload = {};
183
+
184
+ if (typeof queries !== 'undefined') {
185
+ payload['queries'] = queries;
186
+ }
187
+
188
+ if (typeof search !== 'undefined') {
189
+ payload['search'] = search;
190
+ }
191
+
192
+ const uri = new URL(this.client.config.endpoint + apiPath);
193
+ return await this.client.call('get', uri, {
194
+ 'content-type': 'application/json',
195
+ }, payload);
196
+ }
197
+
198
+ /**
199
+ * Create team membership
200
+ *
201
+ * Invite a new member to join your team. Provide an ID for existing users, or
202
+ * invite unregistered users using an email or phone number. If initiated from
203
+ * a Client SDK, Appwrite will send an email or sms with a link to join the
204
+ * team to the invited user, and an account will be created for them if one
205
+ * doesn't exist. If initiated from a Server SDK, the new member will be added
206
+ * automatically to the team.
207
+ *
208
+ * You only need to provide one of a user ID, email, or phone number. Appwrite
209
+ * will prioritize accepting the user ID > email > phone number if you provide
210
+ * more than one of these parameters.
211
+ *
212
+ * Use the `url` parameter to redirect the user from the invitation email to
213
+ * your app. After the user is redirected, use the [Update Team Membership
214
+ * Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)
215
+ * endpoint to allow the user to accept the invitation to the team.
216
+ *
217
+ * Please note that to avoid a [Redirect
218
+ * Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
219
+ * Appwrite will accept the only redirect URLs under the domains you have
220
+ * added as a platform on the Appwrite Console.
221
+ *
222
+ *
223
+ * @param {string} teamId
224
+ * @param {string[]} roles
225
+ * @param {string} email
226
+ * @param {string} userId
227
+ * @param {string} phone
228
+ * @param {string} url
229
+ * @param {string} name
230
+ * @throws {AppwriteException}
231
+ * @returns {Promise}
232
+ */
233
+ async createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership> {
234
+ if (typeof teamId === 'undefined') {
235
+ throw new AppwriteException('Missing required parameter: "teamId"');
236
+ }
237
+
238
+ if (typeof roles === 'undefined') {
239
+ throw new AppwriteException('Missing required parameter: "roles"');
240
+ }
241
+
242
+ const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
243
+ const payload: Payload = {};
244
+
245
+ if (typeof email !== 'undefined') {
246
+ payload['email'] = email;
247
+ }
248
+
249
+ if (typeof userId !== 'undefined') {
250
+ payload['userId'] = userId;
251
+ }
252
+
253
+ if (typeof phone !== 'undefined') {
254
+ payload['phone'] = phone;
255
+ }
256
+
257
+ if (typeof roles !== 'undefined') {
258
+ payload['roles'] = roles;
259
+ }
260
+
261
+ if (typeof url !== 'undefined') {
262
+ payload['url'] = url;
263
+ }
264
+
265
+ if (typeof name !== 'undefined') {
266
+ payload['name'] = name;
267
+ }
268
+
269
+ const uri = new URL(this.client.config.endpoint + apiPath);
270
+ return await this.client.call('post', uri, {
271
+ 'content-type': 'application/json',
272
+ }, payload);
273
+ }
274
+
275
+ /**
276
+ * Get team membership
277
+ *
278
+ * Get a team member by the membership unique id. All team members have read
279
+ * access for this resource.
280
+ *
281
+ * @param {string} teamId
282
+ * @param {string} membershipId
283
+ * @throws {AppwriteException}
284
+ * @returns {Promise}
285
+ */
286
+ async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {
287
+ if (typeof teamId === 'undefined') {
288
+ throw new AppwriteException('Missing required parameter: "teamId"');
289
+ }
290
+
291
+ if (typeof membershipId === 'undefined') {
292
+ throw new AppwriteException('Missing required parameter: "membershipId"');
293
+ }
294
+
295
+ const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
296
+ const payload: Payload = {};
297
+
298
+ const uri = new URL(this.client.config.endpoint + apiPath);
299
+ return await this.client.call('get', uri, {
300
+ 'content-type': 'application/json',
301
+ }, payload);
302
+ }
303
+
304
+ /**
305
+ * Update membership
306
+ *
307
+ * Modify the roles of a team member. Only team members with the owner role
308
+ * have access to this endpoint. Learn more about [roles and
309
+ * permissions](https://appwrite.io/docs/permissions).
310
+ *
311
+ *
312
+ * @param {string} teamId
313
+ * @param {string} membershipId
314
+ * @param {string[]} roles
315
+ * @throws {AppwriteException}
316
+ * @returns {Promise}
317
+ */
318
+ async updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership> {
319
+ if (typeof teamId === 'undefined') {
320
+ throw new AppwriteException('Missing required parameter: "teamId"');
321
+ }
322
+
323
+ if (typeof membershipId === 'undefined') {
324
+ throw new AppwriteException('Missing required parameter: "membershipId"');
325
+ }
326
+
327
+ if (typeof roles === 'undefined') {
328
+ throw new AppwriteException('Missing required parameter: "roles"');
329
+ }
330
+
331
+ const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
332
+ const payload: Payload = {};
333
+
334
+ if (typeof roles !== 'undefined') {
335
+ payload['roles'] = roles;
336
+ }
337
+
338
+ const uri = new URL(this.client.config.endpoint + apiPath);
339
+ return await this.client.call('patch', uri, {
340
+ 'content-type': 'application/json',
341
+ }, payload);
342
+ }
343
+
344
+ /**
345
+ * Delete team membership
346
+ *
347
+ * This endpoint allows a user to leave a team or for a team owner to delete
348
+ * the membership of any other team member. You can also use this endpoint to
349
+ * delete a user membership even if it is not accepted.
350
+ *
351
+ * @param {string} teamId
352
+ * @param {string} membershipId
353
+ * @throws {AppwriteException}
354
+ * @returns {Promise}
355
+ */
356
+ async deleteMembership(teamId: string, membershipId: string): Promise<{}> {
357
+ if (typeof teamId === 'undefined') {
358
+ throw new AppwriteException('Missing required parameter: "teamId"');
359
+ }
360
+
361
+ if (typeof membershipId === 'undefined') {
362
+ throw new AppwriteException('Missing required parameter: "membershipId"');
363
+ }
364
+
365
+ const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
366
+ const payload: Payload = {};
367
+
368
+ const uri = new URL(this.client.config.endpoint + apiPath);
369
+ return await this.client.call('delete', uri, {
370
+ 'content-type': 'application/json',
371
+ }, payload);
372
+ }
373
+
374
+ /**
375
+ * Update team membership status
376
+ *
377
+ * Use this endpoint to allow a user to accept an invitation to join a team
378
+ * after being redirected back to your app from the invitation email received
379
+ * by the user.
380
+ *
381
+ * If the request is successful, a session for the user is automatically
382
+ * created.
383
+ *
384
+ *
385
+ * @param {string} teamId
386
+ * @param {string} membershipId
387
+ * @param {string} userId
388
+ * @param {string} secret
389
+ * @throws {AppwriteException}
390
+ * @returns {Promise}
391
+ */
392
+ async updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership> {
393
+ if (typeof teamId === 'undefined') {
394
+ throw new AppwriteException('Missing required parameter: "teamId"');
395
+ }
396
+
397
+ if (typeof membershipId === 'undefined') {
398
+ throw new AppwriteException('Missing required parameter: "membershipId"');
399
+ }
400
+
401
+ if (typeof userId === 'undefined') {
402
+ throw new AppwriteException('Missing required parameter: "userId"');
403
+ }
404
+
405
+ if (typeof secret === 'undefined') {
406
+ throw new AppwriteException('Missing required parameter: "secret"');
407
+ }
408
+
409
+ const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
410
+ const payload: Payload = {};
411
+
412
+ if (typeof userId !== 'undefined') {
413
+ payload['userId'] = userId;
414
+ }
415
+
416
+ if (typeof secret !== 'undefined') {
417
+ payload['secret'] = secret;
418
+ }
419
+
420
+ const uri = new URL(this.client.config.endpoint + apiPath);
421
+ return await this.client.call('patch', uri, {
422
+ 'content-type': 'application/json',
423
+ }, payload);
424
+ }
425
+
426
+ /**
427
+ * Get team preferences
428
+ *
429
+ * Get the team's shared preferences by its unique ID. If a preference doesn't
430
+ * need to be shared by all team members, prefer storing them in [user
431
+ * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
432
+ *
433
+ * @param {string} teamId
434
+ * @throws {AppwriteException}
435
+ * @returns {Promise}
436
+ */
437
+ async getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences> {
438
+ if (typeof teamId === 'undefined') {
439
+ throw new AppwriteException('Missing required parameter: "teamId"');
440
+ }
441
+
442
+ const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
443
+ const payload: Payload = {};
444
+
445
+ const uri = new URL(this.client.config.endpoint + apiPath);
446
+ return await this.client.call('get', uri, {
447
+ 'content-type': 'application/json',
448
+ }, payload);
449
+ }
450
+
451
+ /**
452
+ * Update preferences
453
+ *
454
+ * Update the team's preferences by its unique ID. The object you pass is
455
+ * stored as is and replaces any previous value. The maximum allowed prefs
456
+ * size is 64kB and throws an error if exceeded.
457
+ *
458
+ * @param {string} teamId
459
+ * @param {object} prefs
460
+ * @throws {AppwriteException}
461
+ * @returns {Promise}
462
+ */
463
+ async updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences> {
464
+ if (typeof teamId === 'undefined') {
465
+ throw new AppwriteException('Missing required parameter: "teamId"');
466
+ }
467
+
468
+ if (typeof prefs === 'undefined') {
469
+ throw new AppwriteException('Missing required parameter: "prefs"');
470
+ }
471
+
472
+ const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
473
+ const payload: Payload = {};
474
+
475
+ if (typeof prefs !== 'undefined') {
476
+ payload['prefs'] = prefs;
477
+ }
478
+
479
+ const uri = new URL(this.client.config.endpoint + apiPath);
480
+ return await this.client.call('put', uri, {
481
+ 'content-type': 'application/json',
482
+ }, payload);
483
+ }
484
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "baseUrl": "src",
6
+ "declaration": false,
7
+ "esModuleInterop": true,
8
+ "inlineSourceMap": false,
9
+ "lib": ["ESNext", "DOM"],
10
+ "listEmittedFiles": false,
11
+ "listFiles": false,
12
+ "moduleResolution": "node",
13
+ "noFallthroughCasesInSwitch": true,
14
+ "pretty": true,
15
+ "rootDir": "src",
16
+ "skipLibCheck": true,
17
+ "strict": true,
18
+ "target": "ES6",
19
+ "traceResolution": false,
20
+ },
21
+ "compileOnSave": false,
22
+ "exclude": ["node_modules", "dist"],
23
+ "include": ["src"]
24
+ }