New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aw-labs/appwrite-console

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aw-labs/appwrite-console - npm Package Compare versions

Comparing version 6.0.0 to 8.0.0

docs/examples/functions/create-build.md

2

docs/examples/account/create-phone-session.md

@@ -12,3 +12,3 @@ import { Client, Account } from "appwrite";

const promise = account.createPhoneSession('[USER_ID]', '');
const promise = account.createPhoneSession('[USER_ID]', '+12065550100');

@@ -15,0 +15,0 @@ promise.then(function (response) {

@@ -12,3 +12,3 @@ import { Client, Account } from "appwrite";

const promise = account.updatePhone('', 'password');
const promise = account.updatePhone('+12065550100', 'password');

@@ -15,0 +15,0 @@ promise.then(function (response) {

@@ -12,3 +12,3 @@ import { Client, Projects } from "appwrite";

const promise = projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]');
const promise = projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]', 'default');

@@ -15,0 +15,0 @@ promise.then(function (response) {

@@ -12,3 +12,3 @@ import { Client, Users } from "appwrite";

const promise = users.updatePhone('[USER_ID]', '');
const promise = users.updatePhone('[USER_ID]', '+12065550100');

@@ -15,0 +15,0 @@ promise.then(function (response) {

@@ -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": "6.0.0",
"version": "8.0.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.0.0-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.0.3-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)

@@ -9,3 +9,3 @@ [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)

**This SDK is compatible with Appwrite server version 1.0.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**

@@ -12,0 +12,0 @@ Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)

@@ -1023,5 +1023,3 @@ import { Service } from '../service';

* Get a list of all the user's documents in a given collection. You can use
* the query params to filter your results. On admin mode, this endpoint will
* return a list of all of documents belonging to the provided collectionId.
* [Learn more about different API modes](/docs/admin).
* the query params to filter your results.
*

@@ -1028,0 +1026,0 @@ * @param {string} databaseId

@@ -496,3 +496,3 @@ import { Service } from '../service';

/**
* Retry Build
* Create Build
*

@@ -506,3 +506,3 @@ *

*/
async retryBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}> {
async createBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}> {
if (typeof functionId === 'undefined') {

@@ -533,5 +533,3 @@ throw new AppwriteException('Missing required parameter: "functionId"');

* Get a list of all the current user function execution logs. You can use the
* query params to filter your results. On admin mode, this endpoint will
* return a list of all of the project's executions. [Learn more about
* different API modes](/docs/admin).
* query params to filter your results.
*

@@ -538,0 +536,0 @@ * @param {string} functionId

@@ -47,2 +47,3 @@ import { Service } from '../service';

* @param {string} teamId
* @param {string} region
* @param {string} description

@@ -60,3 +61,3 @@ * @param {string} logo

*/
async create(projectId: string, name: string, teamId: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project> {
async create(projectId: string, name: string, teamId: string, region: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project> {
if (typeof projectId === 'undefined') {

@@ -74,2 +75,6 @@ throw new AppwriteException('Missing required parameter: "projectId"');

if (typeof region === 'undefined') {
throw new AppwriteException('Missing required parameter: "region"');
}
let path = '/projects';

@@ -90,2 +95,6 @@ let payload: Payload = {};

if (typeof region !== 'undefined') {
payload['region'] = region;
}
if (typeof description !== 'undefined') {

@@ -642,6 +651,7 @@ payload['description'] = description;

* @param {string} secret
* @param {boolean} enabled
* @throws {AppwriteException}
* @returns {Promise}
*/
async updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string): Promise<Models.Project> {
async updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project> {
if (typeof projectId === 'undefined') {

@@ -670,2 +680,6 @@ throw new AppwriteException('Missing required parameter: "projectId"');

if (typeof enabled !== 'undefined') {
payload['enabled'] = enabled;
}
const uri = new URL(this.client.config.endpoint + path);

@@ -672,0 +686,0 @@ return await this.client.call('patch', uri, {

@@ -241,4 +241,3 @@ import { Service } from '../service';

* Get a list of all the user files. You can use the query params to filter
* your results. On admin mode, this endpoint will return a list of all of the
* project's files. [Learn more about different API modes](/docs/admin).
* your results.
*

@@ -245,0 +244,0 @@ * @param {string} bucketId

@@ -18,5 +18,2 @@ import { Service } from '../service';

* use the parameters to filter your results.
*
* In admin mode, this endpoint returns a list of all the teams in the current
* project. [Learn more about different API modes](/docs/admin).
*

@@ -311,3 +308,3 @@ * @param {string[]} queries

*/
async getMembership(teamId: string, membershipId: string): Promise<Models.MembershipList> {
async getMembership(teamId: string, membershipId: string): Promise<Models.Membership> {
if (typeof teamId === 'undefined') {

@@ -314,0 +311,0 @@ throw new AppwriteException('Missing required parameter: "teamId"');

@@ -325,5 +325,3 @@ import { Service } from '../service';

* Get a list of all the user's documents in a given collection. You can use
* the query params to filter your results. On admin mode, this endpoint will
* return a list of all of documents belonging to the provided collectionId.
* [Learn more about different API modes](/docs/admin).
* the query params to filter your results.
*

@@ -330,0 +328,0 @@ * @param {string} databaseId

@@ -163,3 +163,3 @@ import { Service } from '../service';

/**
* Retry Build
* Create Build
*

@@ -173,3 +173,3 @@ *

*/
retryBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}>;
createBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}>;
/**

@@ -179,5 +179,3 @@ * List Executions

* Get a list of all the current user function execution logs. You can use the
* query params to filter your results. On admin mode, this endpoint will
* return a list of all of the project's executions. [Learn more about
* different API modes](/docs/admin).
* query params to filter your results.
*

@@ -184,0 +182,0 @@ * @param {string} functionId

@@ -23,2 +23,3 @@ import { Service } from '../service';

* @param {string} teamId
* @param {string} region
* @param {string} description

@@ -36,3 +37,3 @@ * @param {string} logo

*/
create(projectId: string, name: string, teamId: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
create(projectId: string, name: string, teamId: string, region: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
/**

@@ -208,6 +209,7 @@ * Get Project

* @param {string} secret
* @param {boolean} enabled
* @throws {AppwriteException}
* @returns {Promise}
*/
updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string): Promise<Models.Project>;
updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
/**

@@ -214,0 +216,0 @@ * List Platforms

@@ -82,4 +82,3 @@ import { Service } from '../service';

* Get a list of all the user files. You can use the query params to filter
* your results. On admin mode, this endpoint will return a list of all of the
* project's files. [Learn more about different API modes](/docs/admin).
* your results.
*

@@ -86,0 +85,0 @@ * @param {string} bucketId

@@ -12,5 +12,2 @@ import { Service } from '../service';

*
* In admin mode, this endpoint returns a list of all the teams in the current
* project. [Learn more about different API modes](/docs/admin).
*
* @param {string[]} queries

@@ -132,3 +129,3 @@ * @param {string} search

*/
getMembership(teamId: string, membershipId: string): Promise<Models.MembershipList>;
getMembership(teamId: string, membershipId: string): Promise<Models.Membership>;
/**

@@ -135,0 +132,0 @@ * Update Membership Roles

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

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 too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc