@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.
- package/.github/workflows/publish.yml +2 -2
- package/README.md +3 -3
- package/dist/cjs/sdk.js +1354 -1197
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1354 -1197
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1354 -1197
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/{projects/get-usage.md → health/get-queue-builds.md} +3 -3
- package/docs/examples/{account/create-with-invite-code.md → health/get-queue-databases.md} +3 -3
- package/docs/examples/health/get-queue-deletes.md +18 -0
- package/docs/examples/health/get-queue-mails.md +18 -0
- package/docs/examples/health/get-queue-messaging.md +18 -0
- package/docs/examples/health/get-queue-migrations.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/package.json +3 -2
- package/src/client.ts +1 -1
- package/src/models.ts +147 -279
- package/src/query.ts +1 -1
- package/src/role.ts +72 -6
- package/src/services/account.ts +154 -204
- package/src/services/assistant.ts +3 -3
- package/src/services/avatars.ts +32 -31
- package/src/services/console.ts +4 -4
- package/src/services/databases.ts +195 -195
- package/src/services/functions.ts +117 -126
- package/src/services/graphql.ts +8 -8
- package/src/services/health.ts +219 -50
- package/src/services/locale.ts +31 -31
- package/src/services/migrations.ts +48 -48
- package/src/services/project.ts +40 -22
- package/src/services/projects.ts +143 -170
- package/src/services/proxy.ts +15 -15
- package/src/services/storage.ts +74 -84
- package/src/services/teams.ts +62 -66
- package/src/services/users.ts +132 -135
- package/src/services/vcs.ts +27 -27
- package/types/models.d.ts +147 -279
- package/types/role.d.ts +62 -0
- package/types/services/account.d.ts +61 -70
- package/types/services/avatars.d.ts +11 -10
- package/types/services/console.d.ts +1 -1
- package/types/services/databases.d.ts +51 -51
- package/types/services/functions.d.ts +32 -27
- package/types/services/graphql.d.ts +2 -2
- package/types/services/health.d.ts +85 -14
- package/types/services/locale.d.ts +7 -7
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +26 -36
- package/types/services/storage.d.ts +13 -13
- package/types/services/teams.d.ts +20 -20
- package/types/services/users.d.ts +45 -44
package/src/services/vcs.ts
CHANGED
|
@@ -24,14 +24,14 @@ export class Vcs extends Service {
|
|
|
24
24
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
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 +
|
|
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
|
-
|
|
64
|
-
|
|
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 +
|
|
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
|
-
|
|
99
|
-
|
|
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 +
|
|
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
|
-
|
|
126
|
-
|
|
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 +
|
|
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
|
-
|
|
154
|
-
|
|
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 +
|
|
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
|
-
|
|
190
|
-
|
|
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 +
|
|
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
|
-
|
|
213
|
-
|
|
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 +
|
|
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
|
-
|
|
243
|
-
|
|
242
|
+
const apiPath = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
|
|
243
|
+
const payload: Payload = {};
|
|
244
244
|
|
|
245
|
-
const uri = new URL(this.client.config.endpoint +
|
|
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
|
-
|
|
265
|
-
|
|
264
|
+
const apiPath = '/vcs/installations/{installationId}'.replace('{installationId}', installationId);
|
|
265
|
+
const payload: Payload = {};
|
|
266
266
|
|
|
267
|
-
const uri = new URL(this.client.config.endpoint +
|
|
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);
|