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

@appwrite.io/console

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appwrite.io/console - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

docs/examples/account/create-billing-address.md

2

package.json

@@ -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": "1.3.2",
"version": "1.4.0",
"license": "BSD-3-Clause",

@@ -8,0 +8,0 @@ "main": "dist/cjs/sdk.js",

@@ -36,3 +36,3 @@ # Appwrite Console SDK

```html
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.3.2"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.0"></script>
```

@@ -39,0 +39,0 @@

@@ -307,3 +307,3 @@ import { Models } from './models';

'x-sdk-language': 'web',
'x-sdk-version': '1.3.2',
'x-sdk-version': '1.4.0',
'X-Appwrite-Response-Format': '1.6.0',

@@ -310,0 +310,0 @@ };

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

*/
async getCopon(couponId: string): Promise<Models.Coupon> {
async getCoupon(couponId: string): Promise<Models.Coupon> {
if (typeof couponId === 'undefined') {

@@ -51,0 +51,0 @@ throw new AppwriteException('Missing required parameter: "couponId"');

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

* @throws {AppwriteException}
* @returns {Promise<Models.TeamList<Preferences>>}
* @returns {Promise<Models.OrganizationList<Preferences>>}
*/
async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>> {
async list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.OrganizationList<Preferences>> {
const apiPath = '/organizations';

@@ -169,5 +169,5 @@ const payload: Payload = {};

* @throws {AppwriteException}
* @returns {Promise<Models.Invoice>}
* @returns {Promise<Models.AggregationTeam>}
*/
async getAggregation(organizationId: string, aggregationId: string): Promise<Models.Invoice> {
async getAggregation(organizationId: string, aggregationId: string): Promise<Models.AggregationTeam> {
if (typeof organizationId === 'undefined') {

@@ -365,2 +365,34 @@ throw new AppwriteException('Missing required parameter: "organizationId"');

/**
* List credits
*
*
* @param {string} organizationId
* @param {string[]} queries
* @throws {AppwriteException}
* @returns {Promise<Models.CreditList>}
*/
async listCredits(organizationId: string, queries?: string[]): Promise<Models.CreditList> {
if (typeof organizationId === 'undefined') {
throw new AppwriteException('Missing required parameter: "organizationId"');
}
const apiPath = '/organizations/{organizationId}/credits'.replace('{organizationId}', organizationId);
const payload: Payload = {};
if (typeof queries !== 'undefined') {
payload['queries'] = queries;
}
const uri = new URL(this.client.config.endpoint + apiPath);
const apiHeaders: { [header: string]: string } = {
'content-type': 'application/json',
}
return await this.client.call(
'get',
uri,
apiHeaders,
payload
);
}
/**
* Add credits from coupon

@@ -367,0 +399,0 @@ *

@@ -46,6 +46,20 @@ import { Client } from '../client';

* @throws {AppwriteException}
* @returns {Promise<Models.BillingAddress>}
* @returns {Promise<Models.BillingAddressList>}
*/
listBillingAddresses(queries?: string[]): Promise<Models.BillingAddress>;
listBillingAddresses(queries?: string[]): Promise<Models.BillingAddressList>;
/**
* Create new billing address
*
*
* @param {string} country
* @param {string} streetAddress
* @param {string} city
* @param {string} state
* @param {string} postalCode
* @param {string} addressLine2
* @throws {AppwriteException}
* @returns {Promise<{}>}
*/
createBillingAddress(country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}>;
/**
* Get billing address

@@ -60,2 +74,26 @@ *

/**
* Update billing address
*
*
* @param {string} billingAddressId
* @param {string} country
* @param {string} streetAddress
* @param {string} city
* @param {string} state
* @param {string} postalCode
* @param {string} addressLine2
* @throws {AppwriteException}
* @returns {Promise<{}>}
*/
updateBillingAddress(billingAddressId: string, country: string, streetAddress: string, city: string, state: string, postalCode?: string, addressLine2?: string): Promise<{}>;
/**
* Delete billing address
*
*
* @param {string} billingAddressId
* @throws {AppwriteException}
* @returns {Promise<{}>}
*/
deleteBillingAddress(billingAddressId: string): Promise<{}>;
/**
* Update email

@@ -625,12 +663,2 @@ *

updatePhoneVerification(userId: string, secret: string): Promise<Models.Token>;
/**
* List credits
*
*
* @param {string} organizationId
* @param {string[]} queries
* @throws {AppwriteException}
* @returns {Promise<Models.CreditList>}
*/
listCredits(organizationId: string, queries?: string[]): Promise<Models.CreditList>;
}

@@ -23,3 +23,3 @@ import { Client } from '../client';

*/
getCopon(couponId: string): Promise<Models.Coupon>;
getCoupon(couponId: string): Promise<Models.Coupon>;
/**

@@ -26,0 +26,0 @@ * Get plans

@@ -15,5 +15,5 @@ import { Client } from '../client';

* @throws {AppwriteException}
* @returns {Promise<Models.TeamList<Preferences>>}
* @returns {Promise<Models.OrganizationList<Preferences>>}
*/
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>;
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.OrganizationList<Preferences>>;
/**

@@ -60,5 +60,5 @@ * Create Organization

* @throws {AppwriteException}
* @returns {Promise<Models.Invoice>}
* @returns {Promise<Models.AggregationTeam>}
*/
getAggregation(organizationId: string, aggregationId: string): Promise<Models.Invoice>;
getAggregation(organizationId: string, aggregationId: string): Promise<Models.AggregationTeam>;
/**

@@ -115,2 +115,12 @@ * Set team&#039;s billing address

/**
* List credits
*
*
* @param {string} organizationId
* @param {string[]} queries
* @throws {AppwriteException}
* @returns {Promise<Models.CreditList>}
*/
listCredits(organizationId: string, queries?: string[]): Promise<Models.CreditList>;
/**
* Add credits from coupon

@@ -117,0 +127,0 @@ *

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

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