appbuild-oceanbase-console 1.12.2 → 1.13.0
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/dist/cjs/package.json +3 -0
- package/dist/cjs/sdk.js +3837 -1017
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk.js +3831 -1018
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +10131 -3554
- package/package.json +7 -2
- package/types/channel.d.ts +74 -0
- package/types/client.d.ts +84 -16
- package/types/enums/appwrite-migration-resource.d.ts +25 -0
- package/types/enums/backup-services.d.ts +5 -0
- package/types/enums/billing-plan-group.d.ts +5 -0
- package/types/enums/browser-permission.d.ts +22 -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/filter-type.d.ts +4 -0
- package/types/enums/firebase-migration-resource.d.ts +12 -0
- package/types/enums/frameworks.d.ts +17 -0
- package/types/enums/n-host-migration-resource.d.ts +13 -0
- package/types/enums/order-by.d.ts +4 -0
- package/types/enums/registration-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +6 -0
- package/types/enums/runtimes.d.ts +180 -0
- package/types/enums/scopes.d.ts +70 -0
- package/types/enums/supabase-migration-resource.d.ts +13 -0
- package/types/enums/template-reference-type.d.ts +5 -0
- package/types/enums/use-cases.d.ts +11 -0
- package/types/enums/vcs-reference-type.d.ts +5 -0
- package/types/index.d.ts +119 -96
- package/types/migrations.d.ts +10 -9
- package/types/models.d.ts +1270 -136
- package/types/query.d.ts +60 -8
- package/types/services/account.d.ts +162 -39
- package/types/services/activities.d.ts +46 -0
- package/types/services/avatars.d.ts +9 -8
- package/types/services/backups.d.ts +13 -12
- package/types/services/console.d.ts +41 -3
- package/types/services/databases.d.ts +384 -68
- package/types/services/domains.d.ts +223 -0
- package/types/services/functions.d.ts +46 -31
- package/types/services/health.d.ts +49 -6
- package/types/services/messaging.d.ts +2 -2
- package/types/services/organizations.d.ts +203 -36
- package/types/services/projects.d.ts +151 -210
- package/types/services/realtime.d.ts +26 -10
- package/types/services/sites.d.ts +49 -29
- package/types/services/storage.d.ts +12 -12
- package/types/services/tables-db.d.ts +352 -34
- package/types/services/teams.d.ts +4 -4
- package/types/services/users.d.ts +26 -2
- package/types/services/vcs.d.ts +4 -1
- package/types/services/webhooks.d.ts +165 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum SupabaseMigrationResource {
|
|
2
|
+
User = "user",
|
|
3
|
+
Database = "database",
|
|
4
|
+
Table = "table",
|
|
5
|
+
Column = "column",
|
|
6
|
+
Index = "index",
|
|
7
|
+
Row = "row",
|
|
8
|
+
Document = "document",
|
|
9
|
+
Attribute = "attribute",
|
|
10
|
+
Collection = "collection",
|
|
11
|
+
Bucket = "bucket",
|
|
12
|
+
File = "file"
|
|
13
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,102 +1,125 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Appwrite Console SDK
|
|
3
3
|
*
|
|
4
|
-
* This SDK is compatible with Appwrite server version 1.
|
|
4
|
+
* This SDK is compatible with Appwrite server version 1.9.x.
|
|
5
5
|
* For older versions, please check
|
|
6
6
|
* [previous releases](https://github.com/appwrite/sdk-for-console/releases).
|
|
7
7
|
*/
|
|
8
|
-
export { Client, Query, AppwriteException } from
|
|
9
|
-
export { Account } from
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
93
|
-
export {
|
|
94
|
-
export {
|
|
95
|
-
export {
|
|
96
|
-
export {
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
99
|
-
export {
|
|
100
|
-
export {
|
|
101
|
-
export {
|
|
102
|
-
export
|
|
8
|
+
export { Client, Query, AppwriteException } from "./client";
|
|
9
|
+
export { Account } from "./services/account";
|
|
10
|
+
export { Activities } from "./services/activities";
|
|
11
|
+
export { Avatars } from "./services/avatars";
|
|
12
|
+
export { Backups } from "./services/backups";
|
|
13
|
+
export { Assistant } from "./services/assistant";
|
|
14
|
+
export { Console } from "./services/console";
|
|
15
|
+
export { Databases } from "./services/databases";
|
|
16
|
+
export { Domains } from "./services/domains";
|
|
17
|
+
export { Functions } from "./services/functions";
|
|
18
|
+
export { Graphql } from "./services/graphql";
|
|
19
|
+
export { Health } from "./services/health";
|
|
20
|
+
export { Locale } from "./services/locale";
|
|
21
|
+
export { Messaging } from "./services/messaging";
|
|
22
|
+
export { Migrations } from "./services/migrations";
|
|
23
|
+
export { SchemaMigration, MigrationExecutionException } from "./migrations";
|
|
24
|
+
export type { SchemaDefinition, SchemaCollection, SchemaAttribute, SchemaIndex, MigrationPlan, MigrationOperation, FailedOperation, } from "./migrations";
|
|
25
|
+
export { Organizations } from "./services/organizations";
|
|
26
|
+
export { Project } from "./services/project";
|
|
27
|
+
export { Projects } from "./services/projects";
|
|
28
|
+
export { Proxy } from "./services/proxy";
|
|
29
|
+
export { Sites } from "./services/sites";
|
|
30
|
+
export { Storage } from "./services/storage";
|
|
31
|
+
export { TablesDB } from "./services/tables-db";
|
|
32
|
+
export { Teams } from "./services/teams";
|
|
33
|
+
export { Tokens } from "./services/tokens";
|
|
34
|
+
export { Users } from "./services/users";
|
|
35
|
+
export { Vcs } from "./services/vcs";
|
|
36
|
+
export { Webhooks } from "./services/webhooks";
|
|
37
|
+
export { Realtime } from "./services/realtime";
|
|
38
|
+
export type { Models, Payload, RealtimeResponseEvent, UploadProgress, } from "./client";
|
|
39
|
+
export type { RealtimeSubscription } from "./services/realtime";
|
|
40
|
+
export type { QueryTypes, QueryTypesList } from "./query";
|
|
41
|
+
export { Permission } from "./permission";
|
|
42
|
+
export { Role } from "./role";
|
|
43
|
+
export { ID } from "./id";
|
|
44
|
+
export { Channel } from "./channel";
|
|
45
|
+
export { Operator, Condition } from "./operator";
|
|
46
|
+
export { Scopes } from "./enums/scopes";
|
|
47
|
+
export { AuthenticatorType } from "./enums/authenticator-type";
|
|
48
|
+
export { AuthenticationFactor } from "./enums/authentication-factor";
|
|
49
|
+
export { OAuthProvider } from "./enums/o-auth-provider";
|
|
50
|
+
export { Browser } from "./enums/browser";
|
|
51
|
+
export { CreditCard } from "./enums/credit-card";
|
|
52
|
+
export { Flag } from "./enums/flag";
|
|
53
|
+
export { Theme } from "./enums/theme";
|
|
54
|
+
export { Timezone } from "./enums/timezone";
|
|
55
|
+
export { BrowserPermission } from "./enums/browser-permission";
|
|
56
|
+
export { ImageFormat } from "./enums/image-format";
|
|
57
|
+
export { BackupServices } from "./enums/backup-services";
|
|
58
|
+
export { Platform } from "./enums/platform";
|
|
59
|
+
export { ConsoleResourceType } from "./enums/console-resource-type";
|
|
60
|
+
export { UsageRange } from "./enums/usage-range";
|
|
61
|
+
export { RelationshipType } from "./enums/relationship-type";
|
|
62
|
+
export { RelationMutate } from "./enums/relation-mutate";
|
|
63
|
+
export { IndexType } from "./enums/index-type";
|
|
64
|
+
export { OrderBy } from "./enums/order-by";
|
|
65
|
+
export { RegistrationType } from "./enums/registration-type";
|
|
66
|
+
export { FilterType } from "./enums/filter-type";
|
|
67
|
+
export { Runtime } from "./enums/runtime";
|
|
68
|
+
export { Runtimes } from "./enums/runtimes";
|
|
69
|
+
export { UseCases } from "./enums/use-cases";
|
|
70
|
+
export { TemplateReferenceType } from "./enums/template-reference-type";
|
|
71
|
+
export { VCSReferenceType } from "./enums/vcs-reference-type";
|
|
72
|
+
export { Output } from "./enums/output";
|
|
73
|
+
export { Type } from "./enums/type";
|
|
74
|
+
export { VCSDeploymentType } from "./enums/vcs-deployment-type";
|
|
75
|
+
export { DeploymentDownloadType } from "./enums/deployment-download-type";
|
|
76
|
+
export { ExecutionMethod } from "./enums/execution-method";
|
|
77
|
+
export { Name } from "./enums/name";
|
|
78
|
+
export { MessagePriority } from "./enums/message-priority";
|
|
79
|
+
export { SmtpEncryption } from "./enums/smtp-encryption";
|
|
80
|
+
export { AppwriteMigrationResource } from "./enums/appwrite-migration-resource";
|
|
81
|
+
export { FirebaseMigrationResource } from "./enums/firebase-migration-resource";
|
|
82
|
+
export { NHostMigrationResource } from "./enums/n-host-migration-resource";
|
|
83
|
+
export { SupabaseMigrationResource } from "./enums/supabase-migration-resource";
|
|
84
|
+
export { BillingPlan } from "./enums/billing-plan";
|
|
85
|
+
export { ProjectUsageRange } from "./enums/project-usage-range";
|
|
86
|
+
export { Region } from "./enums/region";
|
|
87
|
+
export { Api } from "./enums/api";
|
|
88
|
+
export { AuthMethod } from "./enums/auth-method";
|
|
89
|
+
export { PlatformType } from "./enums/platform-type";
|
|
90
|
+
export { ResourceType } from "./enums/resource-type";
|
|
91
|
+
export { ApiService } from "./enums/api-service";
|
|
92
|
+
export { SMTPSecure } from "./enums/smtp-secure";
|
|
93
|
+
export { Status } from "./enums/status";
|
|
94
|
+
export { EmailTemplateType } from "./enums/email-template-type";
|
|
95
|
+
export { EmailTemplateLocale } from "./enums/email-template-locale";
|
|
96
|
+
export { SmsTemplateType } from "./enums/sms-template-type";
|
|
97
|
+
export { SmsTemplateLocale } from "./enums/sms-template-locale";
|
|
98
|
+
export { StatusCode } from "./enums/status-code";
|
|
99
|
+
export { ProxyResourceType } from "./enums/proxy-resource-type";
|
|
100
|
+
export { Framework } from "./enums/framework";
|
|
101
|
+
export { BuildRuntime } from "./enums/build-runtime";
|
|
102
|
+
export { Adapter } from "./enums/adapter";
|
|
103
|
+
export { Frameworks } from "./enums/frameworks";
|
|
104
|
+
export { Compression } from "./enums/compression";
|
|
105
|
+
export { ImageGravity } from "./enums/image-gravity";
|
|
106
|
+
export { PasswordHash } from "./enums/password-hash";
|
|
107
|
+
export { MessagingProviderType } from "./enums/messaging-provider-type";
|
|
108
|
+
export { VCSDetectionType } from "./enums/vcs-detection-type";
|
|
109
|
+
export { DatabaseType } from "./enums/database-type";
|
|
110
|
+
export { AttributeStatus } from "./enums/attribute-status";
|
|
111
|
+
export { ColumnStatus } from "./enums/column-status";
|
|
112
|
+
export { IndexStatus } from "./enums/index-status";
|
|
113
|
+
export { DeploymentStatus } from "./enums/deployment-status";
|
|
114
|
+
export { ExecutionTrigger } from "./enums/execution-trigger";
|
|
115
|
+
export { ExecutionStatus } from "./enums/execution-status";
|
|
116
|
+
export { HealthAntivirusStatus } from "./enums/health-antivirus-status";
|
|
117
|
+
export { HealthCheckStatus } from "./enums/health-check-status";
|
|
118
|
+
export { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-resource-type";
|
|
119
|
+
export { ProxyRuleStatus } from "./enums/proxy-rule-status";
|
|
120
|
+
export { MessageStatus } from "./enums/message-status";
|
|
121
|
+
export { BillingPlanGroup } from "./enums/billing-plan-group";
|
|
122
|
+
export { DomainTransferStatusEnum } from "./enums/domain-transfer-status-enum";
|
|
123
|
+
export { DomainPurchaseStatus } from "./enums/domain-purchase-status";
|
|
124
|
+
export { getApiEndpoint, sdk, realtime, RuleType, DeploymentResourceType, RuleTrigger, } from "./sdk";
|
|
125
|
+
export type { RealtimeResponse, AppwriteRealtimeResponseEvent } from "./sdk";
|
package/types/migrations.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TablesDB } from
|
|
2
|
-
import {
|
|
1
|
+
import { TablesDB } from "./services/tables-db";
|
|
2
|
+
import { OrderBy } from "./enums/order-by";
|
|
3
|
+
import { AppwriteException } from "./client";
|
|
3
4
|
/**
|
|
4
5
|
* Information about a failed migration operation
|
|
5
6
|
*/
|
|
@@ -84,7 +85,7 @@ export declare class MigrationExecutionException extends Error {
|
|
|
84
85
|
*/
|
|
85
86
|
export interface SchemaAttribute {
|
|
86
87
|
key: string;
|
|
87
|
-
type:
|
|
88
|
+
type: "string" | "integer" | "float" | "boolean" | "datetime" | "email" | "enum" | "url" | "ip" | "point" | "line" | "polygon" | "relationship";
|
|
88
89
|
size?: number;
|
|
89
90
|
required: boolean;
|
|
90
91
|
default?: any;
|
|
@@ -94,16 +95,16 @@ export interface SchemaAttribute {
|
|
|
94
95
|
max?: number;
|
|
95
96
|
encrypt?: boolean;
|
|
96
97
|
relatedCollectionId?: string;
|
|
97
|
-
relationshipType?:
|
|
98
|
+
relationshipType?: "oneToOne" | "oneToMany" | "manyToOne" | "manyToMany";
|
|
98
99
|
twoWay?: boolean;
|
|
99
100
|
twoWayKey?: string;
|
|
100
|
-
onDelete?:
|
|
101
|
+
onDelete?: "cascade" | "restrict" | "setNull";
|
|
101
102
|
}
|
|
102
103
|
export interface SchemaIndex {
|
|
103
104
|
key: string;
|
|
104
|
-
type:
|
|
105
|
+
type: "index" | "unique" | "fulltext";
|
|
105
106
|
attributes: string[];
|
|
106
|
-
orders?:
|
|
107
|
+
orders?: OrderBy[];
|
|
107
108
|
lengths?: number[];
|
|
108
109
|
}
|
|
109
110
|
export interface SchemaCollection {
|
|
@@ -122,7 +123,7 @@ export interface SchemaDefinition {
|
|
|
122
123
|
/**
|
|
123
124
|
* Migration operation types
|
|
124
125
|
*/
|
|
125
|
-
export declare type MigrationOperationType =
|
|
126
|
+
export declare type MigrationOperationType = "createCollection" | "updateCollection" | "deleteCollection" | "createAttribute" | "updateAttribute" | "deleteAttribute" | "createIndex" | "deleteIndex";
|
|
126
127
|
export interface MigrationOperation {
|
|
127
128
|
type: MigrationOperationType;
|
|
128
129
|
databaseId: string;
|
|
@@ -140,7 +141,7 @@ export interface MigrationOperation {
|
|
|
140
141
|
export interface SkippedBuiltIn {
|
|
141
142
|
collectionId: string;
|
|
142
143
|
key: string;
|
|
143
|
-
type:
|
|
144
|
+
type: "attribute" | "index";
|
|
144
145
|
reason: string;
|
|
145
146
|
}
|
|
146
147
|
export interface MigrationPlan {
|