@appwrite.io/console 5.0.0 → 7.0.0-rc.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/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +13663 -10879
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13661 -10880
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13268 -10484
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/documentsdb/create-collection.md +22 -0
- package/docs/examples/documentsdb/create-document.md +25 -0
- package/docs/examples/documentsdb/create-documents.md +17 -0
- package/docs/examples/documentsdb/create-index.md +21 -0
- package/docs/examples/documentsdb/create-transaction.md +15 -0
- package/docs/examples/documentsdb/create.md +17 -0
- package/docs/examples/documentsdb/decrement-document-attribute.md +21 -0
- package/docs/examples/documentsdb/delete-collection.md +16 -0
- package/docs/examples/documentsdb/delete-document.md +18 -0
- package/docs/examples/documentsdb/delete-documents.md +18 -0
- package/docs/examples/documentsdb/delete-index.md +17 -0
- package/docs/examples/documentsdb/delete-transaction.md +15 -0
- package/docs/examples/documentsdb/delete.md +15 -0
- package/docs/examples/documentsdb/get-collection-usage.md +17 -0
- package/docs/examples/documentsdb/get-collection.md +16 -0
- package/docs/examples/documentsdb/get-document.md +19 -0
- package/docs/examples/documentsdb/get-index.md +17 -0
- package/docs/examples/documentsdb/get-transaction.md +15 -0
- package/docs/examples/documentsdb/get-usage.md +16 -0
- package/docs/examples/documentsdb/get.md +15 -0
- package/docs/examples/documentsdb/increment-document-attribute.md +21 -0
- package/docs/examples/documentsdb/list-collection-logs.md +17 -0
- package/docs/examples/documentsdb/list-collections.md +18 -0
- package/docs/examples/documentsdb/list-document-logs.md +18 -0
- package/docs/examples/documentsdb/list-documents.md +20 -0
- package/docs/examples/documentsdb/list-indexes.md +18 -0
- package/docs/examples/documentsdb/list-transactions.md +15 -0
- package/docs/examples/documentsdb/list-usage.md +15 -0
- package/docs/examples/documentsdb/list.md +17 -0
- package/docs/examples/documentsdb/update-collection.md +20 -0
- package/docs/examples/documentsdb/update-document.md +20 -0
- package/docs/examples/documentsdb/update-documents.md +19 -0
- package/docs/examples/documentsdb/update-transaction.md +17 -0
- package/docs/examples/documentsdb/update.md +17 -0
- package/docs/examples/documentsdb/upsert-document.md +20 -0
- package/docs/examples/documentsdb/upsert-documents.md +18 -0
- package/docs/examples/domains/update-purchase.md +16 -0
- package/docs/examples/domains/update-transfer-in.md +16 -0
- package/docs/examples/tablesdb/create-index.md +2 -2
- package/docs/examples/vectorsdb/create-collection.md +21 -0
- package/docs/examples/vectorsdb/create-document.md +29 -0
- package/docs/examples/vectorsdb/create-documents.md +17 -0
- package/docs/examples/vectorsdb/create-index.md +21 -0
- package/docs/examples/vectorsdb/create-operations.md +26 -0
- package/docs/examples/vectorsdb/create-text-embeddings.md +16 -0
- package/docs/examples/vectorsdb/create-transaction.md +15 -0
- package/docs/examples/vectorsdb/create.md +17 -0
- package/docs/examples/vectorsdb/delete-collection.md +16 -0
- package/docs/examples/vectorsdb/delete-document.md +18 -0
- package/docs/examples/vectorsdb/delete-documents.md +18 -0
- package/docs/examples/vectorsdb/delete-index.md +17 -0
- package/docs/examples/vectorsdb/delete-transaction.md +15 -0
- package/docs/examples/vectorsdb/delete.md +15 -0
- package/docs/examples/vectorsdb/get-collection-usage.md +17 -0
- package/docs/examples/vectorsdb/get-collection.md +16 -0
- package/docs/examples/vectorsdb/get-document.md +19 -0
- package/docs/examples/vectorsdb/get-index.md +17 -0
- package/docs/examples/vectorsdb/get-transaction.md +15 -0
- package/docs/examples/vectorsdb/get-usage.md +16 -0
- package/docs/examples/vectorsdb/get.md +15 -0
- package/docs/examples/vectorsdb/list-collection-logs.md +17 -0
- package/docs/examples/vectorsdb/list-collections.md +18 -0
- package/docs/examples/vectorsdb/list-documents.md +20 -0
- package/docs/examples/vectorsdb/list-indexes.md +18 -0
- package/docs/examples/vectorsdb/list-transactions.md +15 -0
- package/docs/examples/vectorsdb/list-usage.md +15 -0
- package/docs/examples/vectorsdb/list.md +17 -0
- package/docs/examples/vectorsdb/update-collection.md +21 -0
- package/docs/examples/vectorsdb/update-document.md +20 -0
- package/docs/examples/vectorsdb/update-documents.md +19 -0
- package/docs/examples/vectorsdb/update-transaction.md +17 -0
- package/docs/examples/vectorsdb/update.md +17 -0
- package/docs/examples/vectorsdb/upsert-document.md +20 -0
- package/docs/examples/vectorsdb/upsert-documents.md +18 -0
- package/docs/examples/webhooks/create.md +22 -0
- package/docs/examples/webhooks/delete.md +15 -0
- package/docs/examples/webhooks/get.md +15 -0
- package/docs/examples/webhooks/list.md +16 -0
- package/docs/examples/webhooks/update-signature.md +15 -0
- package/docs/examples/webhooks/update.md +22 -0
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/appwrite-migration-resource.ts +2 -0
- package/src/enums/backup-services.ts +3 -0
- package/src/enums/build-runtime.ts +89 -0
- package/src/enums/database-type.ts +2 -0
- package/src/enums/databases-index-type.ts +6 -0
- package/src/enums/documents-db-index-type.ts +6 -0
- package/src/enums/domain-purchase-status.ts +6 -0
- package/src/enums/domain-transfer-status-enum.ts +10 -0
- package/src/enums/model.ts +3 -0
- package/src/enums/runtime.ts +89 -0
- package/src/enums/runtimes.ts +89 -0
- package/src/enums/scopes.ts +2 -0
- package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
- package/src/enums/vectors-db-index-type.ts +8 -0
- package/src/index.ts +11 -4
- package/src/models.ts +519 -19
- package/src/services/databases.ts +10 -10
- package/src/services/documents-db.ts +2608 -0
- package/src/services/domains.ts +30 -30
- package/src/services/projects.ts +0 -473
- package/src/services/tables-db.ts +10 -10
- package/src/services/vectors-db.ts +2406 -0
- package/src/services/webhooks.ts +451 -0
- package/types/enums/appwrite-migration-resource.d.ts +2 -0
- package/types/enums/backup-services.d.ts +3 -0
- package/types/enums/build-runtime.d.ts +90 -1
- package/types/enums/database-type.d.ts +3 -1
- package/types/enums/databases-index-type.d.ts +6 -0
- package/types/enums/documents-db-index-type.d.ts +6 -0
- package/types/enums/domain-purchase-status.d.ts +6 -0
- package/types/enums/domain-transfer-status-enum.d.ts +10 -0
- package/types/enums/model.d.ts +3 -0
- package/types/enums/runtime.d.ts +90 -1
- package/types/enums/runtimes.d.ts +90 -1
- package/types/enums/scopes.d.ts +2 -0
- package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
- package/types/enums/vectors-db-index-type.d.ts +8 -0
- package/types/index.d.ts +11 -4
- package/types/models.d.ts +509 -19
- package/types/services/databases.d.ts +5 -5
- package/types/services/documents-db.d.ts +977 -0
- package/types/services/domains.d.ts +22 -22
- package/types/services/projects.d.ts +0 -171
- package/types/services/tables-db.d.ts +5 -5
- package/types/services/vectors-db.d.ts +854 -0
- package/types/services/webhooks.d.ts +165 -0
- package/.github/workflows/autoclose.yml +0 -11
|
@@ -5,7 +5,7 @@ import type { Models } from '../models';
|
|
|
5
5
|
import { UsageRange } from '../enums/usage-range';
|
|
6
6
|
import { RelationshipType } from '../enums/relationship-type';
|
|
7
7
|
import { RelationMutate } from '../enums/relation-mutate';
|
|
8
|
-
import {
|
|
8
|
+
import { DatabasesIndexType } from '../enums/databases-index-type';
|
|
9
9
|
import { OrderBy } from '../enums/order-by';
|
|
10
10
|
|
|
11
11
|
export class Databases {
|
|
@@ -5885,7 +5885,7 @@ export class Databases {
|
|
|
5885
5885
|
* @param {string} params.databaseId - Database ID.
|
|
5886
5886
|
* @param {string} params.collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
|
5887
5887
|
* @param {string} params.key - Index Key.
|
|
5888
|
-
* @param {
|
|
5888
|
+
* @param {DatabasesIndexType} params.type - Index type.
|
|
5889
5889
|
* @param {string[]} params.attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
5890
5890
|
* @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
5891
5891
|
* @param {number[]} params.lengths - Length of index. Maximum of 100
|
|
@@ -5893,7 +5893,7 @@ export class Databases {
|
|
|
5893
5893
|
* @returns {Promise<Models.Index>}
|
|
5894
5894
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createIndex` instead.
|
|
5895
5895
|
*/
|
|
5896
|
-
createIndex(params: { databaseId: string, collectionId: string, key: string, type:
|
|
5896
|
+
createIndex(params: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] }): Promise<Models.Index>;
|
|
5897
5897
|
/**
|
|
5898
5898
|
* Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
|
|
5899
5899
|
* Attributes can be `key`, `fulltext`, and `unique`.
|
|
@@ -5901,7 +5901,7 @@ export class Databases {
|
|
|
5901
5901
|
* @param {string} databaseId - Database ID.
|
|
5902
5902
|
* @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
|
5903
5903
|
* @param {string} key - Index Key.
|
|
5904
|
-
* @param {
|
|
5904
|
+
* @param {DatabasesIndexType} type - Index type.
|
|
5905
5905
|
* @param {string[]} attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
5906
5906
|
* @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
5907
5907
|
* @param {number[]} lengths - Length of index. Maximum of 100
|
|
@@ -5909,21 +5909,21 @@ export class Databases {
|
|
|
5909
5909
|
* @returns {Promise<Models.Index>}
|
|
5910
5910
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
5911
5911
|
*/
|
|
5912
|
-
createIndex(databaseId: string, collectionId: string, key: string, type:
|
|
5912
|
+
createIndex(databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
|
|
5913
5913
|
createIndex(
|
|
5914
|
-
paramsOrFirst: { databaseId: string, collectionId: string, key: string, type:
|
|
5915
|
-
...rest: [(string)?, (string)?, (
|
|
5914
|
+
paramsOrFirst: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] } | string,
|
|
5915
|
+
...rest: [(string)?, (string)?, (DatabasesIndexType)?, (string[])?, (OrderBy[])?, (number[])?]
|
|
5916
5916
|
): Promise<Models.Index> {
|
|
5917
|
-
let params: { databaseId: string, collectionId: string, key: string, type:
|
|
5917
|
+
let params: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] };
|
|
5918
5918
|
|
|
5919
5919
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5920
|
-
params = (paramsOrFirst || {}) as { databaseId: string, collectionId: string, key: string, type:
|
|
5920
|
+
params = (paramsOrFirst || {}) as { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] };
|
|
5921
5921
|
} else {
|
|
5922
5922
|
params = {
|
|
5923
5923
|
databaseId: paramsOrFirst as string,
|
|
5924
5924
|
collectionId: rest[0] as string,
|
|
5925
5925
|
key: rest[1] as string,
|
|
5926
|
-
type: rest[2] as
|
|
5926
|
+
type: rest[2] as DatabasesIndexType,
|
|
5927
5927
|
attributes: rest[3] as string[],
|
|
5928
5928
|
orders: rest[4] as OrderBy[],
|
|
5929
5929
|
lengths: rest[5] as number[]
|