@appwrite.io/console 1.4.7 → 1.5.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/README.md +2 -2
- package/dist/cjs/sdk.js +420 -48
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +420 -48
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +420 -48
- package/package.json +1 -1
- package/src/client.ts +5 -3
- package/src/enums/image-format.ts +1 -0
- package/src/models.ts +64 -0
- package/src/services/account.ts +122 -0
- package/src/services/assistant.ts +2 -0
- package/src/services/avatars.ts +7 -42
- package/src/services/backups.ts +24 -0
- package/src/services/console.ts +14 -0
- package/src/services/databases.ts +96 -0
- package/src/services/functions.ts +55 -6
- package/src/services/graphql.ts +4 -0
- package/src/services/health.ts +52 -0
- package/src/services/locale.ts +16 -0
- package/src/services/messaging.ts +95 -3
- package/src/services/migrations.ts +24 -0
- package/src/services/organizations.ts +56 -0
- package/src/services/project.ts +12 -0
- package/src/services/projects.ts +92 -0
- package/src/services/proxy.ts +10 -0
- package/src/services/storage.ts +27 -18
- package/src/services/teams.ts +28 -0
- package/src/services/users.ts +86 -0
- package/src/services/vcs.ts +20 -0
- package/types/enums/image-format.d.ts +1 -0
- package/types/models.d.ts +64 -0
- package/types/services/messaging.d.ts +3 -3
package/src/services/vcs.ts
CHANGED
|
@@ -34,6 +34,8 @@ export class Vcs {
|
|
|
34
34
|
'content-type': 'application/json',
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
payload['project'] = this.client.config.project;
|
|
38
|
+
|
|
37
39
|
|
|
38
40
|
return await this.client.call(
|
|
39
41
|
'get',
|
|
@@ -77,6 +79,8 @@ export class Vcs {
|
|
|
77
79
|
'content-type': 'application/json',
|
|
78
80
|
}
|
|
79
81
|
|
|
82
|
+
payload['project'] = this.client.config.project;
|
|
83
|
+
|
|
80
84
|
|
|
81
85
|
return await this.client.call(
|
|
82
86
|
'post',
|
|
@@ -110,6 +114,8 @@ export class Vcs {
|
|
|
110
114
|
'content-type': 'application/json',
|
|
111
115
|
}
|
|
112
116
|
|
|
117
|
+
payload['project'] = this.client.config.project;
|
|
118
|
+
|
|
113
119
|
|
|
114
120
|
return await this.client.call(
|
|
115
121
|
'get',
|
|
@@ -144,6 +150,8 @@ export class Vcs {
|
|
|
144
150
|
'content-type': 'application/json',
|
|
145
151
|
}
|
|
146
152
|
|
|
153
|
+
payload['project'] = this.client.config.project;
|
|
154
|
+
|
|
147
155
|
|
|
148
156
|
return await this.client.call(
|
|
149
157
|
'get',
|
|
@@ -182,6 +190,8 @@ export class Vcs {
|
|
|
182
190
|
'content-type': 'application/json',
|
|
183
191
|
}
|
|
184
192
|
|
|
193
|
+
payload['project'] = this.client.config.project;
|
|
194
|
+
|
|
185
195
|
|
|
186
196
|
return await this.client.call(
|
|
187
197
|
'get',
|
|
@@ -219,6 +229,8 @@ export class Vcs {
|
|
|
219
229
|
'content-type': 'application/json',
|
|
220
230
|
}
|
|
221
231
|
|
|
232
|
+
payload['project'] = this.client.config.project;
|
|
233
|
+
|
|
222
234
|
|
|
223
235
|
return await this.client.call(
|
|
224
236
|
'post',
|
|
@@ -259,6 +271,8 @@ export class Vcs {
|
|
|
259
271
|
'content-type': 'application/json',
|
|
260
272
|
}
|
|
261
273
|
|
|
274
|
+
payload['project'] = this.client.config.project;
|
|
275
|
+
|
|
262
276
|
|
|
263
277
|
return await this.client.call(
|
|
264
278
|
'patch',
|
|
@@ -293,6 +307,8 @@ export class Vcs {
|
|
|
293
307
|
'content-type': 'application/json',
|
|
294
308
|
}
|
|
295
309
|
|
|
310
|
+
payload['project'] = this.client.config.project;
|
|
311
|
+
|
|
296
312
|
|
|
297
313
|
return await this.client.call(
|
|
298
314
|
'get',
|
|
@@ -322,6 +338,8 @@ export class Vcs {
|
|
|
322
338
|
'content-type': 'application/json',
|
|
323
339
|
}
|
|
324
340
|
|
|
341
|
+
payload['project'] = this.client.config.project;
|
|
342
|
+
|
|
325
343
|
|
|
326
344
|
return await this.client.call(
|
|
327
345
|
'get',
|
|
@@ -351,6 +369,8 @@ export class Vcs {
|
|
|
351
369
|
'content-type': 'application/json',
|
|
352
370
|
}
|
|
353
371
|
|
|
372
|
+
payload['project'] = this.client.config.project;
|
|
373
|
+
|
|
354
374
|
|
|
355
375
|
return await this.client.call(
|
|
356
376
|
'delete',
|
package/types/models.d.ts
CHANGED
|
@@ -3135,6 +3135,14 @@ export declare namespace Models {
|
|
|
3135
3135
|
* Total aggregated number of total databases storage in bytes.
|
|
3136
3136
|
*/
|
|
3137
3137
|
storageTotal: number;
|
|
3138
|
+
/**
|
|
3139
|
+
* Total number of databases reads.
|
|
3140
|
+
*/
|
|
3141
|
+
databasesReadsTotal: number;
|
|
3142
|
+
/**
|
|
3143
|
+
* Total number of databases writes.
|
|
3144
|
+
*/
|
|
3145
|
+
databasesWritesTotal: number;
|
|
3138
3146
|
/**
|
|
3139
3147
|
* Aggregated number of databases per period.
|
|
3140
3148
|
*/
|
|
@@ -3151,6 +3159,14 @@ export declare namespace Models {
|
|
|
3151
3159
|
* An array of the aggregated number of databases storage in bytes per period.
|
|
3152
3160
|
*/
|
|
3153
3161
|
storage: Metric[];
|
|
3162
|
+
/**
|
|
3163
|
+
* An array of aggregated number of database reads.
|
|
3164
|
+
*/
|
|
3165
|
+
databasesReads: Metric[];
|
|
3166
|
+
/**
|
|
3167
|
+
* An array of aggregated number of database writes.
|
|
3168
|
+
*/
|
|
3169
|
+
databasesWrites: Metric[];
|
|
3154
3170
|
};
|
|
3155
3171
|
/**
|
|
3156
3172
|
* UsageDatabase
|
|
@@ -3172,6 +3188,14 @@ export declare namespace Models {
|
|
|
3172
3188
|
* Total aggregated number of total storage used in bytes.
|
|
3173
3189
|
*/
|
|
3174
3190
|
storageTotal: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Total number of databases reads.
|
|
3193
|
+
*/
|
|
3194
|
+
databaseReadsTotal: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* Total number of databases writes.
|
|
3197
|
+
*/
|
|
3198
|
+
databaseWritesTotal: number;
|
|
3175
3199
|
/**
|
|
3176
3200
|
* Aggregated number of collections per period.
|
|
3177
3201
|
*/
|
|
@@ -3184,6 +3208,14 @@ export declare namespace Models {
|
|
|
3184
3208
|
* Aggregated storage used in bytes per period.
|
|
3185
3209
|
*/
|
|
3186
3210
|
storage: Metric[];
|
|
3211
|
+
/**
|
|
3212
|
+
* An array of aggregated number of database reads.
|
|
3213
|
+
*/
|
|
3214
|
+
databaseReads: Metric[];
|
|
3215
|
+
/**
|
|
3216
|
+
* An array of aggregated number of database writes.
|
|
3217
|
+
*/
|
|
3218
|
+
databaseWrites: Metric[];
|
|
3187
3219
|
};
|
|
3188
3220
|
/**
|
|
3189
3221
|
* UsageCollection
|
|
@@ -3507,6 +3539,14 @@ export declare namespace Models {
|
|
|
3507
3539
|
* Total aggregated number of function builds mbSeconds.
|
|
3508
3540
|
*/
|
|
3509
3541
|
buildsMbSecondsTotal: number;
|
|
3542
|
+
/**
|
|
3543
|
+
* Total number of databases reads.
|
|
3544
|
+
*/
|
|
3545
|
+
databasesReadsTotal: number;
|
|
3546
|
+
/**
|
|
3547
|
+
* Total number of databases writes.
|
|
3548
|
+
*/
|
|
3549
|
+
databasesWritesTotal: number;
|
|
3510
3550
|
/**
|
|
3511
3551
|
* Aggregated number of requests per period.
|
|
3512
3552
|
*/
|
|
@@ -3559,6 +3599,14 @@ export declare namespace Models {
|
|
|
3559
3599
|
* Aggregated breakdown in totals of phone auth by country.
|
|
3560
3600
|
*/
|
|
3561
3601
|
authPhoneCountryBreakdown: MetricBreakdown[];
|
|
3602
|
+
/**
|
|
3603
|
+
* An array of aggregated number of database reads.
|
|
3604
|
+
*/
|
|
3605
|
+
databasesReads: Metric[];
|
|
3606
|
+
/**
|
|
3607
|
+
* An array of aggregated number of database writes.
|
|
3608
|
+
*/
|
|
3609
|
+
databasesWrites: Metric[];
|
|
3562
3610
|
};
|
|
3563
3611
|
/**
|
|
3564
3612
|
* Headers
|
|
@@ -5042,6 +5090,14 @@ export declare namespace Models {
|
|
|
5042
5090
|
* Aggregated stats for function executions.
|
|
5043
5091
|
*/
|
|
5044
5092
|
executions: Metric[];
|
|
5093
|
+
/**
|
|
5094
|
+
* Aggregated stats for database reads.
|
|
5095
|
+
*/
|
|
5096
|
+
databasesReads: Metric[];
|
|
5097
|
+
/**
|
|
5098
|
+
* Aggregated stats for database writes.
|
|
5099
|
+
*/
|
|
5100
|
+
databasesWrites: Metric[];
|
|
5045
5101
|
/**
|
|
5046
5102
|
* Aggregated stats for total users.
|
|
5047
5103
|
*/
|
|
@@ -5074,6 +5130,14 @@ export declare namespace Models {
|
|
|
5074
5130
|
* Aggregated stats for total databases storage.
|
|
5075
5131
|
*/
|
|
5076
5132
|
databasesStorageTotal: number;
|
|
5133
|
+
/**
|
|
5134
|
+
* Aggregated stats for total databases storage reads.
|
|
5135
|
+
*/
|
|
5136
|
+
databasesReadsTotal: number;
|
|
5137
|
+
/**
|
|
5138
|
+
* Aggregated stats for total databases storage writes.
|
|
5139
|
+
*/
|
|
5140
|
+
databasesWritesTotal: number;
|
|
5077
5141
|
/**
|
|
5078
5142
|
* Aggregated stats for total backups storage.
|
|
5079
5143
|
*/
|
|
@@ -40,7 +40,7 @@ export declare class Messaging {
|
|
|
40
40
|
/**
|
|
41
41
|
* Update email
|
|
42
42
|
*
|
|
43
|
-
* Update an email message by its unique ID.
|
|
43
|
+
* Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
44
44
|
|
|
45
45
|
*
|
|
46
46
|
* @param {string} messageId
|
|
@@ -90,7 +90,7 @@ export declare class Messaging {
|
|
|
90
90
|
/**
|
|
91
91
|
* Update push notification
|
|
92
92
|
*
|
|
93
|
-
* Update a push notification by its unique ID.
|
|
93
|
+
* Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
94
94
|
|
|
95
95
|
*
|
|
96
96
|
* @param {string} messageId
|
|
@@ -135,7 +135,7 @@ export declare class Messaging {
|
|
|
135
135
|
/**
|
|
136
136
|
* Update SMS
|
|
137
137
|
*
|
|
138
|
-
* Update an SMS message by its unique ID.
|
|
138
|
+
* Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
139
139
|
|
|
140
140
|
*
|
|
141
141
|
* @param {string} messageId
|