@appwrite.io/console
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -5,3 +5,3 @@ { | ||
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "BSD-3-Clause", | ||
@@ -8,0 +8,0 @@ "main": "dist/cjs/sdk.js", |
# Appwrite Console SDK | ||
![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.3.2-blue.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.3.8-blue.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) | ||
@@ -36,3 +36,3 @@ [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.1.1"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.2.0"></script> | ||
``` | ||
@@ -39,0 +39,0 @@ |
@@ -107,3 +107,3 @@ import 'isomorphic-form-data'; | ||
'x-sdk-language': 'web', | ||
'x-sdk-version': '0.1.1', | ||
'x-sdk-version': '0.2.0', | ||
'X-Appwrite-Response-Format': '1.0.0', | ||
@@ -110,0 +110,0 @@ }; |
@@ -10,2 +10,3 @@ export { Client, Query, AppwriteException } from './client'; | ||
export { Locale } from './services/locale'; | ||
export { Project } from './services/project'; | ||
export { Projects } from './services/projects'; | ||
@@ -12,0 +13,0 @@ export { Storage } from './services/storage'; |
@@ -1086,2 +1086,55 @@ export namespace Models { | ||
/** | ||
* Account | ||
*/ | ||
export type Account<Preferences extends Models.Preferences> = { | ||
/** | ||
* User ID. | ||
*/ | ||
$id: string; | ||
/** | ||
* User creation date in ISO 8601 format. | ||
*/ | ||
$createdAt: string; | ||
/** | ||
* User update date in ISO 8601 format. | ||
*/ | ||
$updatedAt: string; | ||
/** | ||
* User name. | ||
*/ | ||
name: string; | ||
/** | ||
* User registration date in ISO 8601 format. | ||
*/ | ||
registration: string; | ||
/** | ||
* User status. Pass `true` for enabled and `false` for disabled. | ||
*/ | ||
status: boolean; | ||
/** | ||
* Password update time in ISO 8601 format. | ||
*/ | ||
passwordUpdate: string; | ||
/** | ||
* User email address. | ||
*/ | ||
email: string; | ||
/** | ||
* User phone number in E.164 format. | ||
*/ | ||
phone: string; | ||
/** | ||
* Email verification status. | ||
*/ | ||
emailVerification: boolean; | ||
/** | ||
* Phone verification status. | ||
*/ | ||
phoneVerification: boolean; | ||
/** | ||
* User preferences as a key-value object | ||
*/ | ||
prefs: Preferences; | ||
} | ||
/** | ||
* Preferences | ||
@@ -1497,10 +1550,2 @@ */ | ||
/** | ||
* Function's next scheduled execution time in ISO 8601 format. | ||
*/ | ||
scheduleNext: string; | ||
/** | ||
* Function's previous scheduled execution time in ISO 8601 format. | ||
*/ | ||
schedulePrevious: string; | ||
/** | ||
* Function execution timeout in seconds. | ||
@@ -2156,2 +2201,6 @@ */ | ||
/** | ||
* Name of the service. | ||
*/ | ||
name: string; | ||
/** | ||
* Duration in milliseconds how long the health check took. | ||
@@ -2206,59 +2255,11 @@ */ | ||
*/ | ||
databasesCount: Metric[]; | ||
databasesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
collectionsCount: Metric[]; | ||
collectionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
databasesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
databasesRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
databasesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
databasesDelete: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for collections created. | ||
*/ | ||
collectionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for collections read. | ||
*/ | ||
collectionsRead: Metric[]; | ||
/** | ||
* Aggregated stats for collections updated. | ||
*/ | ||
collectionsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for collections delete. | ||
*/ | ||
collectionsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
} | ||
@@ -2274,41 +2275,9 @@ /** | ||
/** | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
collectionsCount: Metric[]; | ||
collectionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for collections created. | ||
*/ | ||
collectionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for collections read. | ||
*/ | ||
collectionsRead: Metric[]; | ||
/** | ||
* Aggregated stats for collections updated. | ||
*/ | ||
collectionsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for collections delete. | ||
*/ | ||
collectionsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
} | ||
@@ -2326,19 +2295,3 @@ /** | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
} | ||
@@ -2356,31 +2309,7 @@ /** | ||
*/ | ||
usersCount: Metric[]; | ||
usersTotal: Metric[]; | ||
/** | ||
* Aggregated stats for users created. | ||
*/ | ||
usersCreate: Metric[]; | ||
/** | ||
* Aggregated stats for users read. | ||
*/ | ||
usersRead: Metric[]; | ||
/** | ||
* Aggregated stats for users updated. | ||
*/ | ||
usersUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for users deleted. | ||
*/ | ||
usersDelete: Metric[]; | ||
/** | ||
* Aggregated stats for sessions created. | ||
*/ | ||
sessionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 ). | ||
*/ | ||
sessionsProviderCreate: Metric[]; | ||
/** | ||
* Aggregated stats for sessions deleted. | ||
*/ | ||
sessionsDelete: Metric[]; | ||
sessionsTotal: Metric[]; | ||
} | ||
@@ -2396,45 +2325,13 @@ /** | ||
/** | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
* Aggregated stats for total number of buckets. | ||
*/ | ||
storage: Metric[]; | ||
bucketsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of files. | ||
*/ | ||
filesCount: Metric[]; | ||
filesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of buckets. | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
*/ | ||
bucketsCount: Metric[]; | ||
/** | ||
* Aggregated stats for buckets created. | ||
*/ | ||
bucketsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for buckets read. | ||
*/ | ||
bucketsRead: Metric[]; | ||
/** | ||
* Aggregated stats for buckets updated. | ||
*/ | ||
bucketsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for buckets deleted. | ||
*/ | ||
bucketsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for files created. | ||
*/ | ||
filesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for files read. | ||
*/ | ||
filesRead: Metric[]; | ||
/** | ||
* Aggregated stats for files updated. | ||
*/ | ||
filesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for files deleted. | ||
*/ | ||
filesDelete: Metric[]; | ||
filesStorage: Metric[]; | ||
} | ||
@@ -2452,3 +2349,3 @@ /** | ||
*/ | ||
filesCount: Metric[]; | ||
filesTotal: Metric[]; | ||
/** | ||
@@ -2458,18 +2355,2 @@ * Aggregated stats for total storage of files in this bucket. | ||
filesStorage: Metric[]; | ||
/** | ||
* Aggregated stats for files created. | ||
*/ | ||
filesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for files read. | ||
*/ | ||
filesRead: Metric[]; | ||
/** | ||
* Aggregated stats for files updated. | ||
*/ | ||
filesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for files deleted. | ||
*/ | ||
filesDelete: Metric[]; | ||
} | ||
@@ -2485,18 +2366,14 @@ /** | ||
/** | ||
* Aggregated stats for number of function executions. | ||
* Aggregated stats for number of functions. | ||
*/ | ||
executionsTotal: Metric[]; | ||
functionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution failures. | ||
* Aggregated stats for number of function deployments. | ||
*/ | ||
executionsFailure: Metric[]; | ||
deploymentsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution successes. | ||
* Aggregated stats for function deployments storage. | ||
*/ | ||
executionsSuccess: Metric[]; | ||
deploymentsStorage: Metric[]; | ||
/** | ||
* Aggregated stats for function execution duration. | ||
*/ | ||
executionsTime: Metric[]; | ||
/** | ||
* Aggregated stats for number of function builds. | ||
@@ -2506,13 +2383,17 @@ */ | ||
/** | ||
* Aggregated stats for function build failures. | ||
* Aggregated stats for builds storage. | ||
*/ | ||
buildsFailure: Metric[]; | ||
buildsStorage: Metric[]; | ||
/** | ||
* Aggregated stats for function build successes. | ||
* Aggregated stats for function build compute. | ||
*/ | ||
buildsSuccess: Metric[]; | ||
buildsTime: Metric[]; | ||
/** | ||
* Aggregated stats for function build duration. | ||
* Aggregated stats for number of function executions. | ||
*/ | ||
buildsTime: Metric[]; | ||
executionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution compute. | ||
*/ | ||
executionsTime: Metric[]; | ||
} | ||
@@ -2530,3 +2411,3 @@ /** | ||
*/ | ||
requests: Metric[]; | ||
requestsTotal: Metric[]; | ||
/** | ||
@@ -2539,23 +2420,23 @@ * Aggregated stats for consumed bandwidth. | ||
*/ | ||
executions: Metric[]; | ||
executionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of documents. | ||
*/ | ||
documents: Metric[]; | ||
documentsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of databases. | ||
*/ | ||
databases: Metric[]; | ||
databasesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of users. | ||
*/ | ||
users: Metric[]; | ||
usersTotal: Metric[]; | ||
/** | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
*/ | ||
storage: Metric[]; | ||
filesStorage: Metric[]; | ||
/** | ||
* Aggregated stats for number of buckets. | ||
*/ | ||
buckets: Metric[]; | ||
bucketsTotal: Metric[]; | ||
} | ||
@@ -2562,0 +2443,0 @@ /** |
@@ -130,2 +130,62 @@ import { Service } from '../service'; | ||
/** | ||
* Create account using an invite code | ||
* | ||
* Use this endpoint to allow a new user to register a new account in your | ||
* project. After the user registration completes successfully, you can use | ||
* the [/account/verfication](/docs/client/account#accountCreateVerification) | ||
* route to start verifying the user email address. To allow the new user to | ||
* login to their new account, you need to create a new [account | ||
* session](/docs/client/account#accountCreateSession). | ||
* | ||
* @param {string} userId | ||
* @param {string} email | ||
* @param {string} password | ||
* @param {string} name | ||
* @param {string} code | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async createWithInviteCode<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string, code?: string): Promise<Models.Account<Preferences>> { | ||
if (typeof userId === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "userId"'); | ||
} | ||
if (typeof email === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "email"'); | ||
} | ||
if (typeof password === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "password"'); | ||
} | ||
let path = '/account/invite'; | ||
let payload: Payload = {}; | ||
if (typeof userId !== 'undefined') { | ||
payload['userId'] = userId; | ||
} | ||
if (typeof email !== 'undefined') { | ||
payload['email'] = email; | ||
} | ||
if (typeof password !== 'undefined') { | ||
payload['password'] = password; | ||
} | ||
if (typeof name !== 'undefined') { | ||
payload['name'] = name; | ||
} | ||
if (typeof code !== 'undefined') { | ||
payload['code'] = code; | ||
} | ||
const uri = new URL(this.client.config.endpoint + path); | ||
return await this.client.call('post', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* Create JWT | ||
@@ -132,0 +192,0 @@ * |
@@ -52,3 +52,3 @@ import { Service } from '../service'; | ||
* | ||
* Check the Appwrite in-memory cache server is up and connection is | ||
* Check the Appwrite in-memory cache servers are up and connection is | ||
* successful. | ||
@@ -72,3 +72,3 @@ * | ||
* | ||
* Check the Appwrite database server is up and connection is successful. | ||
* Check the Appwrite database servers are up and connection is successful. | ||
* | ||
@@ -89,2 +89,39 @@ * @throws {AppwriteException} | ||
/** | ||
* Get PubSub | ||
* | ||
* Check the Appwrite pub-sub servers are up and connection is successful. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async getPubSub(): Promise<Models.HealthStatus> { | ||
let path = '/health/pubsub'; | ||
let payload: Payload = {}; | ||
const uri = new URL(this.client.config.endpoint + path); | ||
return await this.client.call('get', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* Get Queue | ||
* | ||
* Check the Appwrite queue messaging servers are up and connection is | ||
* successful. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async getQueue(): Promise<Models.HealthStatus> { | ||
let path = '/health/queue'; | ||
let payload: Payload = {}; | ||
const uri = new URL(this.client.config.endpoint + path); | ||
return await this.client.call('get', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* Get Certificates Queue | ||
@@ -91,0 +128,0 @@ * |
@@ -1028,29 +1028,2 @@ import { Service } from '../service'; | ||
/** | ||
* Get usage stats for a project | ||
* | ||
* | ||
* @param {string} projectId | ||
* @param {string} range | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async getUsage(projectId: string, range?: string): Promise<Models.UsageProject> { | ||
if (typeof projectId === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "projectId"'); | ||
} | ||
let path = '/projects/{projectId}/usage'.replace('{projectId}', projectId); | ||
let payload: Payload = {}; | ||
if (typeof range !== 'undefined') { | ||
payload['range'] = range; | ||
} | ||
const uri = new URL(this.client.config.endpoint + path); | ||
return await this.client.call('get', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* List Webhooks | ||
@@ -1057,0 +1030,0 @@ * |
@@ -666,3 +666,3 @@ import { Service } from '../service'; | ||
/** | ||
* Get usage stats for a storage bucket | ||
* Get usage stats for storage bucket | ||
* | ||
@@ -669,0 +669,0 @@ * |
@@ -542,7 +542,6 @@ import { Service } from '../service'; | ||
* @param {string} range | ||
* @param {string} provider | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async getUsage(range?: string, provider?: string): Promise<Models.UsageUsers> { | ||
async getUsage(range?: string): Promise<Models.UsageUsers> { | ||
let path = '/users/usage'; | ||
@@ -555,6 +554,2 @@ let payload: Payload = {}; | ||
if (typeof provider !== 'undefined') { | ||
payload['provider'] = provider; | ||
} | ||
const uri = new URL(this.client.config.endpoint + path); | ||
@@ -561,0 +556,0 @@ return await this.client.call('get', uri, { |
@@ -10,2 +10,3 @@ export { Client, Query, AppwriteException } from './client'; | ||
export { Locale } from './services/locale'; | ||
export { Project } from './services/project'; | ||
export { Projects } from './services/projects'; | ||
@@ -12,0 +13,0 @@ export { Storage } from './services/storage'; |
@@ -1086,2 +1086,55 @@ export declare namespace Models { | ||
/** | ||
* Account | ||
*/ | ||
type Account<Preferences extends Models.Preferences> = { | ||
/** | ||
* User ID. | ||
*/ | ||
$id: string; | ||
/** | ||
* User creation date in ISO 8601 format. | ||
*/ | ||
$createdAt: string; | ||
/** | ||
* User update date in ISO 8601 format. | ||
*/ | ||
$updatedAt: string; | ||
/** | ||
* User name. | ||
*/ | ||
name: string; | ||
/** | ||
* User registration date in ISO 8601 format. | ||
*/ | ||
registration: string; | ||
/** | ||
* User status. Pass `true` for enabled and `false` for disabled. | ||
*/ | ||
status: boolean; | ||
/** | ||
* Password update time in ISO 8601 format. | ||
*/ | ||
passwordUpdate: string; | ||
/** | ||
* User email address. | ||
*/ | ||
email: string; | ||
/** | ||
* User phone number in E.164 format. | ||
*/ | ||
phone: string; | ||
/** | ||
* Email verification status. | ||
*/ | ||
emailVerification: boolean; | ||
/** | ||
* Phone verification status. | ||
*/ | ||
phoneVerification: boolean; | ||
/** | ||
* User preferences as a key-value object | ||
*/ | ||
prefs: Preferences; | ||
}; | ||
/** | ||
* Preferences | ||
@@ -1497,10 +1550,2 @@ */ | ||
/** | ||
* Function's next scheduled execution time in ISO 8601 format. | ||
*/ | ||
scheduleNext: string; | ||
/** | ||
* Function's previous scheduled execution time in ISO 8601 format. | ||
*/ | ||
schedulePrevious: string; | ||
/** | ||
* Function execution timeout in seconds. | ||
@@ -2156,2 +2201,6 @@ */ | ||
/** | ||
* Name of the service. | ||
*/ | ||
name: string; | ||
/** | ||
* Duration in milliseconds how long the health check took. | ||
@@ -2206,59 +2255,11 @@ */ | ||
*/ | ||
databasesCount: Metric[]; | ||
databasesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
collectionsCount: Metric[]; | ||
collectionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
databasesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
databasesRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
databasesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
databasesDelete: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for collections created. | ||
*/ | ||
collectionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for collections read. | ||
*/ | ||
collectionsRead: Metric[]; | ||
/** | ||
* Aggregated stats for collections updated. | ||
*/ | ||
collectionsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for collections delete. | ||
*/ | ||
collectionsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
}; | ||
@@ -2274,41 +2275,9 @@ /** | ||
/** | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for total number of collections. | ||
*/ | ||
collectionsCount: Metric[]; | ||
collectionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
* Aggregated stats for total number of documents. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for collections created. | ||
*/ | ||
collectionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for collections read. | ||
*/ | ||
collectionsRead: Metric[]; | ||
/** | ||
* Aggregated stats for collections updated. | ||
*/ | ||
collectionsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for collections delete. | ||
*/ | ||
collectionsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
}; | ||
@@ -2326,19 +2295,3 @@ /** | ||
*/ | ||
documentsCount: Metric[]; | ||
/** | ||
* Aggregated stats for documents created. | ||
*/ | ||
documentsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for documents read. | ||
*/ | ||
documentsRead: Metric[]; | ||
/** | ||
* Aggregated stats for documents updated. | ||
*/ | ||
documentsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for documents deleted. | ||
*/ | ||
documentsDelete: Metric[]; | ||
documentsTotal: Metric[]; | ||
}; | ||
@@ -2356,31 +2309,7 @@ /** | ||
*/ | ||
usersCount: Metric[]; | ||
usersTotal: Metric[]; | ||
/** | ||
* Aggregated stats for users created. | ||
*/ | ||
usersCreate: Metric[]; | ||
/** | ||
* Aggregated stats for users read. | ||
*/ | ||
usersRead: Metric[]; | ||
/** | ||
* Aggregated stats for users updated. | ||
*/ | ||
usersUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for users deleted. | ||
*/ | ||
usersDelete: Metric[]; | ||
/** | ||
* Aggregated stats for sessions created. | ||
*/ | ||
sessionsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 ). | ||
*/ | ||
sessionsProviderCreate: Metric[]; | ||
/** | ||
* Aggregated stats for sessions deleted. | ||
*/ | ||
sessionsDelete: Metric[]; | ||
sessionsTotal: Metric[]; | ||
}; | ||
@@ -2396,45 +2325,13 @@ /** | ||
/** | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
* Aggregated stats for total number of buckets. | ||
*/ | ||
storage: Metric[]; | ||
bucketsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of files. | ||
*/ | ||
filesCount: Metric[]; | ||
filesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for total number of buckets. | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
*/ | ||
bucketsCount: Metric[]; | ||
/** | ||
* Aggregated stats for buckets created. | ||
*/ | ||
bucketsCreate: Metric[]; | ||
/** | ||
* Aggregated stats for buckets read. | ||
*/ | ||
bucketsRead: Metric[]; | ||
/** | ||
* Aggregated stats for buckets updated. | ||
*/ | ||
bucketsUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for buckets deleted. | ||
*/ | ||
bucketsDelete: Metric[]; | ||
/** | ||
* Aggregated stats for files created. | ||
*/ | ||
filesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for files read. | ||
*/ | ||
filesRead: Metric[]; | ||
/** | ||
* Aggregated stats for files updated. | ||
*/ | ||
filesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for files deleted. | ||
*/ | ||
filesDelete: Metric[]; | ||
filesStorage: Metric[]; | ||
}; | ||
@@ -2452,3 +2349,3 @@ /** | ||
*/ | ||
filesCount: Metric[]; | ||
filesTotal: Metric[]; | ||
/** | ||
@@ -2458,18 +2355,2 @@ * Aggregated stats for total storage of files in this bucket. | ||
filesStorage: Metric[]; | ||
/** | ||
* Aggregated stats for files created. | ||
*/ | ||
filesCreate: Metric[]; | ||
/** | ||
* Aggregated stats for files read. | ||
*/ | ||
filesRead: Metric[]; | ||
/** | ||
* Aggregated stats for files updated. | ||
*/ | ||
filesUpdate: Metric[]; | ||
/** | ||
* Aggregated stats for files deleted. | ||
*/ | ||
filesDelete: Metric[]; | ||
}; | ||
@@ -2485,18 +2366,14 @@ /** | ||
/** | ||
* Aggregated stats for number of function executions. | ||
* Aggregated stats for number of functions. | ||
*/ | ||
executionsTotal: Metric[]; | ||
functionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution failures. | ||
* Aggregated stats for number of function deployments. | ||
*/ | ||
executionsFailure: Metric[]; | ||
deploymentsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution successes. | ||
* Aggregated stats for function deployments storage. | ||
*/ | ||
executionsSuccess: Metric[]; | ||
deploymentsStorage: Metric[]; | ||
/** | ||
* Aggregated stats for function execution duration. | ||
*/ | ||
executionsTime: Metric[]; | ||
/** | ||
* Aggregated stats for number of function builds. | ||
@@ -2506,13 +2383,17 @@ */ | ||
/** | ||
* Aggregated stats for function build failures. | ||
* Aggregated stats for builds storage. | ||
*/ | ||
buildsFailure: Metric[]; | ||
buildsStorage: Metric[]; | ||
/** | ||
* Aggregated stats for function build successes. | ||
* Aggregated stats for function build compute. | ||
*/ | ||
buildsSuccess: Metric[]; | ||
buildsTime: Metric[]; | ||
/** | ||
* Aggregated stats for function build duration. | ||
* Aggregated stats for number of function executions. | ||
*/ | ||
buildsTime: Metric[]; | ||
executionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for function execution compute. | ||
*/ | ||
executionsTime: Metric[]; | ||
}; | ||
@@ -2530,3 +2411,3 @@ /** | ||
*/ | ||
requests: Metric[]; | ||
requestsTotal: Metric[]; | ||
/** | ||
@@ -2539,23 +2420,23 @@ * Aggregated stats for consumed bandwidth. | ||
*/ | ||
executions: Metric[]; | ||
executionsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of documents. | ||
*/ | ||
documents: Metric[]; | ||
documentsTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of databases. | ||
*/ | ||
databases: Metric[]; | ||
databasesTotal: Metric[]; | ||
/** | ||
* Aggregated stats for number of users. | ||
*/ | ||
users: Metric[]; | ||
usersTotal: Metric[]; | ||
/** | ||
* Aggregated stats for the occupied storage size (in bytes). | ||
*/ | ||
storage: Metric[]; | ||
filesStorage: Metric[]; | ||
/** | ||
* Aggregated stats for number of buckets. | ||
*/ | ||
buckets: Metric[]; | ||
bucketsTotal: Metric[]; | ||
}; | ||
@@ -2562,0 +2443,0 @@ /** |
@@ -52,2 +52,21 @@ import { Service } from '../service'; | ||
/** | ||
* Create account using an invite code | ||
* | ||
* Use this endpoint to allow a new user to register a new account in your | ||
* project. After the user registration completes successfully, you can use | ||
* the [/account/verfication](/docs/client/account#accountCreateVerification) | ||
* route to start verifying the user email address. To allow the new user to | ||
* login to their new account, you need to create a new [account | ||
* session](/docs/client/account#accountCreateSession). | ||
* | ||
* @param {string} userId | ||
* @param {string} email | ||
* @param {string} password | ||
* @param {string} name | ||
* @param {string} code | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
createWithInviteCode<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string, code?: string): Promise<Models.Account<Preferences>>; | ||
/** | ||
* Create JWT | ||
@@ -54,0 +73,0 @@ * |
@@ -27,3 +27,3 @@ import { Service } from '../service'; | ||
* | ||
* Check the Appwrite in-memory cache server is up and connection is | ||
* Check the Appwrite in-memory cache servers are up and connection is | ||
* successful. | ||
@@ -38,3 +38,3 @@ * | ||
* | ||
* Check the Appwrite database server is up and connection is successful. | ||
* Check the Appwrite database servers are up and connection is successful. | ||
* | ||
@@ -46,2 +46,21 @@ * @throws {AppwriteException} | ||
/** | ||
* Get PubSub | ||
* | ||
* Check the Appwrite pub-sub servers are up and connection is successful. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
getPubSub(): Promise<Models.HealthStatus>; | ||
/** | ||
* Get Queue | ||
* | ||
* Check the Appwrite queue messaging servers are up and connection is | ||
* successful. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
getQueue(): Promise<Models.HealthStatus>; | ||
/** | ||
* Get Certificates Queue | ||
@@ -48,0 +67,0 @@ * |
@@ -321,12 +321,2 @@ import { Service } from '../service'; | ||
/** | ||
* Get usage stats for a project | ||
* | ||
* | ||
* @param {string} projectId | ||
* @param {string} range | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
getUsage(projectId: string, range?: string): Promise<Models.UsageProject>; | ||
/** | ||
* List Webhooks | ||
@@ -333,0 +323,0 @@ * |
@@ -220,3 +220,3 @@ import { Service } from '../service'; | ||
/** | ||
* Get usage stats for a storage bucket | ||
* Get usage stats for storage bucket | ||
* | ||
@@ -223,0 +223,0 @@ * |
@@ -158,7 +158,6 @@ import { Service } from '../service'; | ||
* @param {string} range | ||
* @param {string} provider | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
getUsage(range?: string, provider?: string): Promise<Models.UsageUsers>; | ||
getUsage(range?: string): Promise<Models.UsageUsers>; | ||
/** | ||
@@ -165,0 +164,0 @@ * Get User |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2694008
275
39574
2