@appwrite.io/console
Advanced tools
Comparing version 1.1.0-rc.1 to 1.1.0-rc.2
@@ -10,5 +10,5 @@ import { Client, Account } from "@appwrite.io/console"; | ||
const result = await account.listBillingAddresses( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -11,5 +11,5 @@ import { Client, Account } from "@appwrite.io/console"; | ||
'<ORGANIZATION_ID>', // organizationId | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,5 +10,5 @@ import { Client, Account } from "@appwrite.io/console"; | ||
const result = await account.listInvoices( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,5 +10,5 @@ import { Client, Account } from "@appwrite.io/console"; | ||
const result = await account.listPaymentMethods( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,5 +10,5 @@ import { Client, Backups } from "@appwrite.io/console"; | ||
const result = await backups.listArchives( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,5 +10,5 @@ import { Client, Backups } from "@appwrite.io/console"; | ||
const result = await backups.listPolicies( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,5 +10,5 @@ import { Client, Backups } from "@appwrite.io/console"; | ||
const result = await backups.listRestorations( | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -11,5 +11,5 @@ import { Client, Organizations } from "@appwrite.io/console"; | ||
'<ORGANIZATION_ID>', // organizationId | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -11,5 +11,5 @@ import { Client, Organizations } from "@appwrite.io/console"; | ||
'<ORGANIZATION_ID>', // organizationId | ||
'' // queries (optional) | ||
[] // queries (optional) | ||
); | ||
console.log(result); |
@@ -10,3 +10,3 @@ import { Client, Organizations } from "@appwrite.io/console"; | ||
const result = await organizations.list( | ||
'', // queries (optional) | ||
[], // queries (optional) | ||
'<SEARCH>' // search (optional) | ||
@@ -13,0 +13,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": "1.1.0-rc.1", | ||
"version": "1.1.0-rc.2", | ||
"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.1.0-rc.1"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.1.0-rc.2"></script> | ||
``` | ||
@@ -39,0 +39,0 @@ |
@@ -307,3 +307,3 @@ import { Models } from './models'; | ||
'x-sdk-language': 'web', | ||
'x-sdk-version': '1.1.0-rc.1', | ||
'x-sdk-version': '1.1.0-rc.2', | ||
'X-Appwrite-Response-Format': '1.5.0', | ||
@@ -310,0 +310,0 @@ }; |
@@ -79,7 +79,7 @@ import { Service } from '../service'; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupArchiveList>} | ||
*/ | ||
async listArchives(queries?: string): Promise<Models.BackupArchiveList> { | ||
async listArchives(queries?: string[]): Promise<Models.BackupArchiveList> { | ||
const apiPath = '/backups/archives'; | ||
@@ -136,7 +136,7 @@ const payload: Payload = {}; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupPolicyList>} | ||
*/ | ||
async listPolicies(queries?: string): Promise<Models.BackupPolicyList> { | ||
async listPolicies(queries?: string[]): Promise<Models.BackupPolicyList> { | ||
const apiPath = '/backups/policies'; | ||
@@ -375,7 +375,7 @@ const payload: Payload = {}; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupRestorationList>} | ||
*/ | ||
async listRestorations(queries?: string): Promise<Models.BackupRestorationList> { | ||
async listRestorations(queries?: string[]): Promise<Models.BackupRestorationList> { | ||
const apiPath = '/backups/restorations'; | ||
@@ -382,0 +382,0 @@ const payload: Payload = {}; |
@@ -18,3 +18,3 @@ import { Service } from '../service'; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @param {string} search | ||
@@ -24,3 +24,3 @@ * @throws {AppwriteException} | ||
*/ | ||
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.TeamList<Preferences>> { | ||
const apiPath = '/organizations'; | ||
@@ -136,7 +136,7 @@ const payload: Payload = {}; | ||
* @param {string} organizationId | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.AggregationTeamList>} | ||
*/ | ||
async listAggregations(organizationId: string, queries?: string): Promise<Models.AggregationTeamList> { | ||
async listAggregations(organizationId: string, queries?: string[]): Promise<Models.AggregationTeamList> { | ||
if (typeof organizationId === 'undefined') { | ||
@@ -437,7 +437,7 @@ throw new AppwriteException('Missing required parameter: "organizationId"'); | ||
* @param {string} organizationId | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.InvoiceList>} | ||
*/ | ||
async listInvoices(organizationId: string, queries?: string): Promise<Models.InvoiceList> { | ||
async listInvoices(organizationId: string, queries?: string[]): Promise<Models.InvoiceList> { | ||
if (typeof organizationId === 'undefined') { | ||
@@ -444,0 +444,0 @@ throw new AppwriteException('Missing required parameter: "organizationId"'); |
@@ -44,7 +44,7 @@ import { Client } from '../client'; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BillingAddress>} | ||
*/ | ||
listBillingAddresses(queries?: string): Promise<Models.BillingAddress>; | ||
listBillingAddresses(queries?: string[]): Promise<Models.BillingAddress>; | ||
/** | ||
@@ -96,7 +96,7 @@ * Get billing address | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.InvoiceList>} | ||
*/ | ||
listInvoices(queries?: string): Promise<Models.InvoiceList>; | ||
listInvoices(queries?: string[]): Promise<Models.InvoiceList>; | ||
/** | ||
@@ -245,7 +245,7 @@ * Create JWT | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.PaymentMethodList>} | ||
*/ | ||
listPaymentMethods(queries?: string): Promise<Models.PaymentMethodList>; | ||
listPaymentMethods(queries?: string[]): Promise<Models.PaymentMethodList>; | ||
/** | ||
@@ -632,7 +632,7 @@ * Create new payment method | ||
* @param {string} organizationId | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.CreditList>} | ||
*/ | ||
listCredits(organizationId: string, queries?: string): Promise<Models.CreditList>; | ||
listCredits(organizationId: string, queries?: string[]): Promise<Models.CreditList>; | ||
} |
@@ -29,7 +29,7 @@ import { Client } from '../client'; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupArchiveList>} | ||
*/ | ||
listArchives(queries?: string): Promise<Models.BackupArchiveList>; | ||
listArchives(queries?: string[]): Promise<Models.BackupArchiveList>; | ||
/** | ||
@@ -48,7 +48,7 @@ * Get backup archive | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupPolicyList>} | ||
*/ | ||
listPolicies(queries?: string): Promise<Models.BackupPolicyList>; | ||
listPolicies(queries?: string[]): Promise<Models.BackupPolicyList>; | ||
/** | ||
@@ -116,7 +116,7 @@ * Create backup policy | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.BackupRestorationList>} | ||
*/ | ||
listRestorations(queries?: string): Promise<Models.BackupRestorationList>; | ||
listRestorations(queries?: string[]): Promise<Models.BackupRestorationList>; | ||
/** | ||
@@ -123,0 +123,0 @@ * Get backup restoration |
@@ -12,3 +12,3 @@ import { Client } from '../client'; | ||
* | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @param {string} search | ||
@@ -18,3 +18,3 @@ * @throws {AppwriteException} | ||
*/ | ||
list<Preferences extends Models.Preferences>(queries?: string, search?: string): Promise<Models.TeamList<Preferences>>; | ||
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>; | ||
/** | ||
@@ -49,7 +49,7 @@ * Create Organization | ||
* @param {string} organizationId | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.AggregationTeamList>} | ||
*/ | ||
listAggregations(organizationId: string, queries?: string): Promise<Models.AggregationTeamList>; | ||
listAggregations(organizationId: string, queries?: string[]): Promise<Models.AggregationTeamList>; | ||
/** | ||
@@ -140,7 +140,7 @@ * Get invoice | ||
* @param {string} organizationId | ||
* @param {string} queries | ||
* @param {string[]} queries | ||
* @throws {AppwriteException} | ||
* @returns {Promise<Models.InvoiceList>} | ||
*/ | ||
listInvoices(organizationId: string, queries?: string): Promise<Models.InvoiceList>; | ||
listInvoices(organizationId: string, queries?: string[]): Promise<Models.InvoiceList>; | ||
/** | ||
@@ -147,0 +147,0 @@ * Get invoice |
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
5228011