@appwrite.io/console 0.3.0 → 0.4.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.
Files changed (54) hide show
  1. package/.github/workflows/publish.yml +2 -2
  2. package/README.md +3 -3
  3. package/dist/cjs/sdk.js +1354 -1197
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1354 -1197
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +1354 -1197
  8. package/docs/examples/functions/create.md +1 -1
  9. package/docs/examples/functions/update.md +1 -1
  10. package/docs/examples/{projects/get-usage.md → health/get-queue-builds.md} +3 -3
  11. package/docs/examples/{account/create-with-invite-code.md → health/get-queue-databases.md} +3 -3
  12. package/docs/examples/health/get-queue-deletes.md +18 -0
  13. package/docs/examples/health/get-queue-mails.md +18 -0
  14. package/docs/examples/health/get-queue-messaging.md +18 -0
  15. package/docs/examples/health/get-queue-migrations.md +18 -0
  16. package/docs/examples/project/get-usage.md +1 -1
  17. package/docs/examples/teams/create-membership.md +1 -1
  18. package/package.json +3 -2
  19. package/src/client.ts +1 -1
  20. package/src/models.ts +147 -279
  21. package/src/query.ts +1 -1
  22. package/src/role.ts +72 -6
  23. package/src/services/account.ts +154 -204
  24. package/src/services/assistant.ts +3 -3
  25. package/src/services/avatars.ts +32 -31
  26. package/src/services/console.ts +4 -4
  27. package/src/services/databases.ts +195 -195
  28. package/src/services/functions.ts +117 -126
  29. package/src/services/graphql.ts +8 -8
  30. package/src/services/health.ts +219 -50
  31. package/src/services/locale.ts +31 -31
  32. package/src/services/migrations.ts +48 -48
  33. package/src/services/project.ts +40 -22
  34. package/src/services/projects.ts +143 -170
  35. package/src/services/proxy.ts +15 -15
  36. package/src/services/storage.ts +74 -84
  37. package/src/services/teams.ts +62 -66
  38. package/src/services/users.ts +132 -135
  39. package/src/services/vcs.ts +27 -27
  40. package/types/models.d.ts +147 -279
  41. package/types/role.d.ts +62 -0
  42. package/types/services/account.d.ts +61 -70
  43. package/types/services/avatars.d.ts +11 -10
  44. package/types/services/console.d.ts +1 -1
  45. package/types/services/databases.d.ts +51 -51
  46. package/types/services/functions.d.ts +32 -27
  47. package/types/services/graphql.d.ts +2 -2
  48. package/types/services/health.d.ts +85 -14
  49. package/types/services/locale.d.ts +7 -7
  50. package/types/services/project.d.ts +4 -2
  51. package/types/services/projects.d.ts +26 -36
  52. package/types/services/storage.d.ts +13 -13
  53. package/types/services/teams.d.ts +20 -20
  54. package/types/services/users.d.ts +45 -44
@@ -24,14 +24,14 @@ export class Vcs extends Service {
24
24
  throw new AppwriteException('Missing required parameter: "installationId"');
25
25
  }
26
26
 
27
- let path = '/vcs/github/installations/{installationId}/providerRepositories'.replace('{installationId}', installationId);
28
- let payload: Payload = {};
27
+ const apiPath = '/vcs/github/installations/{installationId}/providerRepositories'.replace('{installationId}', installationId);
28
+ const payload: Payload = {};
29
29
 
30
30
  if (typeof search !== 'undefined') {
31
31
  payload['search'] = search;
32
32
  }
33
33
 
34
- const uri = new URL(this.client.config.endpoint + path);
34
+ const uri = new URL(this.client.config.endpoint + apiPath);
35
35
  return await this.client.call('get', uri, {
36
36
  'content-type': 'application/json',
37
37
  }, payload);
@@ -60,8 +60,8 @@ export class Vcs extends Service {
60
60
  throw new AppwriteException('Missing required parameter: "xprivate"');
61
61
  }
62
62
 
63
- let path = '/vcs/github/installations/{installationId}/providerRepositories'.replace('{installationId}', installationId);
64
- let payload: Payload = {};
63
+ const apiPath = '/vcs/github/installations/{installationId}/providerRepositories'.replace('{installationId}', installationId);
64
+ const payload: Payload = {};
65
65
 
66
66
  if (typeof name !== 'undefined') {
67
67
  payload['name'] = name;
@@ -71,7 +71,7 @@ export class Vcs extends Service {
71
71
  payload['private'] = xprivate;
72
72
  }
73
73
 
74
- const uri = new URL(this.client.config.endpoint + path);
74
+ const uri = new URL(this.client.config.endpoint + apiPath);
75
75
  return await this.client.call('post', uri, {
76
76
  'content-type': 'application/json',
77
77
  }, payload);
@@ -95,10 +95,10 @@ export class Vcs extends Service {
95
95
  throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
96
96
  }
97
97
 
98
- let path = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
99
- let payload: Payload = {};
98
+ const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
99
+ const payload: Payload = {};
100
100
 
101
- const uri = new URL(this.client.config.endpoint + path);
101
+ const uri = new URL(this.client.config.endpoint + apiPath);
102
102
  return await this.client.call('get', uri, {
103
103
  'content-type': 'application/json',
104
104
  }, payload);
@@ -122,10 +122,10 @@ export class Vcs extends Service {
122
122
  throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
123
123
  }
124
124
 
125
- let path = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
126
- let payload: Payload = {};
125
+ const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/branches'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
126
+ const payload: Payload = {};
127
127
 
128
- const uri = new URL(this.client.config.endpoint + path);
128
+ const uri = new URL(this.client.config.endpoint + apiPath);
129
129
  return await this.client.call('get', uri, {
130
130
  'content-type': 'application/json',
131
131
  }, payload);
@@ -150,14 +150,14 @@ export class Vcs extends Service {
150
150
  throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
151
151
  }
152
152
 
153
- let path = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/detection'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
154
- let payload: Payload = {};
153
+ const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/detection'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
154
+ const payload: Payload = {};
155
155
 
156
156
  if (typeof providerRootDirectory !== 'undefined') {
157
157
  payload['providerRootDirectory'] = providerRootDirectory;
158
158
  }
159
159
 
160
- const uri = new URL(this.client.config.endpoint + path);
160
+ const uri = new URL(this.client.config.endpoint + apiPath);
161
161
  return await this.client.call('post', uri, {
162
162
  'content-type': 'application/json',
163
163
  }, payload);
@@ -186,14 +186,14 @@ export class Vcs extends Service {
186
186
  throw new AppwriteException('Missing required parameter: "providerPullRequestId"');
187
187
  }
188
188
 
189
- let path = '/vcs/github/installations/{installationId}/repositories/{repositoryId}'.replace('{installationId}', installationId).replace('{repositoryId}', repositoryId);
190
- let payload: Payload = {};
189
+ const apiPath = '/vcs/github/installations/{installationId}/repositories/{repositoryId}'.replace('{installationId}', installationId).replace('{repositoryId}', repositoryId);
190
+ const payload: Payload = {};
191
191
 
192
192
  if (typeof providerPullRequestId !== 'undefined') {
193
193
  payload['providerPullRequestId'] = providerPullRequestId;
194
194
  }
195
195
 
196
- const uri = new URL(this.client.config.endpoint + path);
196
+ const uri = new URL(this.client.config.endpoint + apiPath);
197
197
  return await this.client.call('patch', uri, {
198
198
  'content-type': 'application/json',
199
199
  }, payload);
@@ -209,8 +209,8 @@ export class Vcs extends Service {
209
209
  * @returns {Promise}
210
210
  */
211
211
  async listInstallations(queries?: string[], search?: string): Promise<Models.InstallationList> {
212
- let path = '/vcs/installations';
213
- let payload: Payload = {};
212
+ const apiPath = '/vcs/installations';
213
+ const payload: Payload = {};
214
214
 
215
215
  if (typeof queries !== 'undefined') {
216
216
  payload['queries'] = queries;
@@ -220,7 +220,7 @@ export class Vcs extends Service {
220
220
  payload['search'] = search;
221
221
  }
222
222
 
223
- const uri = new URL(this.client.config.endpoint + path);
223
+ const uri = new URL(this.client.config.endpoint + apiPath);
224
224
  return await this.client.call('get', uri, {
225
225
  'content-type': 'application/json',
226
226
  }, payload);
@@ -239,10 +239,10 @@ export class Vcs extends Service {
239
239
  throw new AppwriteException('Missing required parameter: "installationId"');
240
240
  }
241
241
 
242
- let path = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
243
- let payload: Payload = {};
242
+ const apiPath = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
243
+ const payload: Payload = {};
244
244
 
245
- const uri = new URL(this.client.config.endpoint + path);
245
+ const uri = new URL(this.client.config.endpoint + apiPath);
246
246
  return await this.client.call('get', uri, {
247
247
  'content-type': 'application/json',
248
248
  }, payload);
@@ -261,10 +261,10 @@ export class Vcs extends Service {
261
261
  throw new AppwriteException('Missing required parameter: "installationId"');
262
262
  }
263
263
 
264
- let path = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
265
- let payload: Payload = {};
264
+ const apiPath = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
265
+ const payload: Payload = {};
266
266
 
267
- const uri = new URL(this.client.config.endpoint + path);
267
+ const uri = new URL(this.client.config.endpoint + apiPath);
268
268
  return await this.client.call('delete', uri, {
269
269
  'content-type': 'application/json',
270
270
  }, payload);