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.
Files changed (53) hide show
  1. package/dist/cjs/package.json +3 -0
  2. package/dist/cjs/sdk.js +3837 -1017
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/package.json +3 -0
  5. package/dist/esm/sdk.js +3831 -1018
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +10131 -3554
  8. package/package.json +7 -2
  9. package/types/channel.d.ts +74 -0
  10. package/types/client.d.ts +84 -16
  11. package/types/enums/appwrite-migration-resource.d.ts +25 -0
  12. package/types/enums/backup-services.d.ts +5 -0
  13. package/types/enums/billing-plan-group.d.ts +5 -0
  14. package/types/enums/browser-permission.d.ts +22 -0
  15. package/types/enums/domain-purchase-status.d.ts +6 -0
  16. package/types/enums/domain-transfer-status-enum.d.ts +10 -0
  17. package/types/enums/filter-type.d.ts +4 -0
  18. package/types/enums/firebase-migration-resource.d.ts +12 -0
  19. package/types/enums/frameworks.d.ts +17 -0
  20. package/types/enums/n-host-migration-resource.d.ts +13 -0
  21. package/types/enums/order-by.d.ts +4 -0
  22. package/types/enums/registration-type.d.ts +6 -0
  23. package/types/enums/resource-type.d.ts +6 -0
  24. package/types/enums/runtimes.d.ts +180 -0
  25. package/types/enums/scopes.d.ts +70 -0
  26. package/types/enums/supabase-migration-resource.d.ts +13 -0
  27. package/types/enums/template-reference-type.d.ts +5 -0
  28. package/types/enums/use-cases.d.ts +11 -0
  29. package/types/enums/vcs-reference-type.d.ts +5 -0
  30. package/types/index.d.ts +119 -96
  31. package/types/migrations.d.ts +10 -9
  32. package/types/models.d.ts +1270 -136
  33. package/types/query.d.ts +60 -8
  34. package/types/services/account.d.ts +162 -39
  35. package/types/services/activities.d.ts +46 -0
  36. package/types/services/avatars.d.ts +9 -8
  37. package/types/services/backups.d.ts +13 -12
  38. package/types/services/console.d.ts +41 -3
  39. package/types/services/databases.d.ts +384 -68
  40. package/types/services/domains.d.ts +223 -0
  41. package/types/services/functions.d.ts +46 -31
  42. package/types/services/health.d.ts +49 -6
  43. package/types/services/messaging.d.ts +2 -2
  44. package/types/services/organizations.d.ts +203 -36
  45. package/types/services/projects.d.ts +151 -210
  46. package/types/services/realtime.d.ts +26 -10
  47. package/types/services/sites.d.ts +49 -29
  48. package/types/services/storage.d.ts +12 -12
  49. package/types/services/tables-db.d.ts +352 -34
  50. package/types/services/teams.d.ts +4 -4
  51. package/types/services/users.d.ts +26 -2
  52. package/types/services/vcs.d.ts +4 -1
  53. 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
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum TemplateReferenceType {
2
+ Branch = "branch",
3
+ Commit = "commit",
4
+ Tag = "tag"
5
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum UseCases {
2
+ Portfolio = "portfolio",
3
+ Starter = "starter",
4
+ Events = "events",
5
+ Ecommerce = "ecommerce",
6
+ Documentation = "documentation",
7
+ Blog = "blog",
8
+ Ai = "ai",
9
+ Forms = "forms",
10
+ Dashboard = "dashboard"
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum VCSReferenceType {
2
+ Branch = "branch",
3
+ Commit = "commit",
4
+ Tag = "tag"
5
+ }
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.8.x.
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 './client';
9
- export { Account } from './services/account';
10
- export { Avatars } from './services/avatars';
11
- export { Backups } from './services/backups';
12
- export { Assistant } from './services/assistant';
13
- export { Console } from './services/console';
14
- export { Databases } from './services/databases';
15
- export { Domains } from './services/domains';
16
- export { Functions } from './services/functions';
17
- export { Graphql } from './services/graphql';
18
- export { Health } from './services/health';
19
- export { Locale } from './services/locale';
20
- export { Messaging } from './services/messaging';
21
- export { Migrations } from './services/migrations';
22
- export { SchemaMigration, MigrationExecutionException } from './migrations';
23
- export type { SchemaDefinition, SchemaCollection, SchemaAttribute, SchemaIndex, MigrationPlan, MigrationOperation, FailedOperation } from './migrations';
24
- export { Organizations } from './services/organizations';
25
- export { Project } from './services/project';
26
- export { Projects } from './services/projects';
27
- export { Proxy } from './services/proxy';
28
- export { Sites } from './services/sites';
29
- export { Storage } from './services/storage';
30
- export { TablesDB } from './services/tables-db';
31
- export { Teams } from './services/teams';
32
- export { Tokens } from './services/tokens';
33
- export { Users } from './services/users';
34
- export { Vcs } from './services/vcs';
35
- export { Realtime } from './services/realtime';
36
- export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
37
- export type { QueryTypes, QueryTypesList } from './query';
38
- export { Permission } from './permission';
39
- export { Role } from './role';
40
- export { ID } from './id';
41
- export { Operator, Condition } from './operator';
42
- export { AuthenticatorType } from './enums/authenticator-type';
43
- export { AuthenticationFactor } from './enums/authentication-factor';
44
- export { OAuthProvider } from './enums/o-auth-provider';
45
- export { Browser } from './enums/browser';
46
- export { CreditCard } from './enums/credit-card';
47
- export { Flag } from './enums/flag';
48
- export { Theme } from './enums/theme';
49
- export { Timezone } from './enums/timezone';
50
- export { Output } from './enums/output';
51
- export { Platform } from './enums/platform';
52
- export { ConsoleResourceType } from './enums/console-resource-type';
53
- export { UsageRange } from './enums/usage-range';
54
- export { RelationshipType } from './enums/relationship-type';
55
- export { RelationMutate } from './enums/relation-mutate';
56
- export { IndexType } from './enums/index-type';
57
- export { Runtime } from './enums/runtime';
58
- export { Type } from './enums/type';
59
- export { VCSDeploymentType } from './enums/vcs-deployment-type';
60
- export { DeploymentDownloadType } from './enums/deployment-download-type';
61
- export { ExecutionMethod } from './enums/execution-method';
62
- export { Name } from './enums/name';
63
- export { MessagePriority } from './enums/message-priority';
64
- export { SmtpEncryption } from './enums/smtp-encryption';
65
- export { BillingPlan } from './enums/billing-plan';
66
- export { ProjectUsageRange } from './enums/project-usage-range';
67
- export { Region } from './enums/region';
68
- export { Api } from './enums/api';
69
- export { AuthMethod } from './enums/auth-method';
70
- export { PlatformType } from './enums/platform-type';
71
- export { ApiService } from './enums/api-service';
72
- export { SMTPSecure } from './enums/smtp-secure';
73
- export { Status } from './enums/status';
74
- export { EmailTemplateType } from './enums/email-template-type';
75
- export { EmailTemplateLocale } from './enums/email-template-locale';
76
- export { SmsTemplateType } from './enums/sms-template-type';
77
- export { SmsTemplateLocale } from './enums/sms-template-locale';
78
- export { StatusCode } from './enums/status-code';
79
- export { ProxyResourceType } from './enums/proxy-resource-type';
80
- export { Framework } from './enums/framework';
81
- export { BuildRuntime } from './enums/build-runtime';
82
- export { Adapter } from './enums/adapter';
83
- export { Compression } from './enums/compression';
84
- export { ImageGravity } from './enums/image-gravity';
85
- export { ImageFormat } from './enums/image-format';
86
- export { PasswordHash } from './enums/password-hash';
87
- export { MessagingProviderType } from './enums/messaging-provider-type';
88
- export { VCSDetectionType } from './enums/vcs-detection-type';
89
- export { DatabaseType } from './enums/database-type';
90
- export { AttributeStatus } from './enums/attribute-status';
91
- export { ColumnStatus } from './enums/column-status';
92
- export { IndexStatus } from './enums/index-status';
93
- export { DeploymentStatus } from './enums/deployment-status';
94
- export { ExecutionTrigger } from './enums/execution-trigger';
95
- export { ExecutionStatus } from './enums/execution-status';
96
- export { HealthAntivirusStatus } from './enums/health-antivirus-status';
97
- export { HealthCheckStatus } from './enums/health-check-status';
98
- export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-resource-type';
99
- export { ProxyRuleStatus } from './enums/proxy-rule-status';
100
- export { MessageStatus } from './enums/message-status';
101
- export { getApiEndpoint, sdk, realtime, RuleType, DeploymentResourceType, RuleTrigger } from './sdk';
102
- export type { RealtimeResponse, AppwriteRealtimeResponseEvent } from './sdk';
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";
@@ -1,5 +1,6 @@
1
- import { TablesDB } from './services/tables-db';
2
- import { AppwriteException } from './client';
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: 'string' | 'integer' | 'float' | 'boolean' | 'datetime' | 'email' | 'enum' | 'url' | 'ip' | 'point' | 'line' | 'polygon' | 'relationship';
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?: 'oneToOne' | 'oneToMany' | 'manyToOne' | 'manyToMany';
98
+ relationshipType?: "oneToOne" | "oneToMany" | "manyToOne" | "manyToMany";
98
99
  twoWay?: boolean;
99
100
  twoWayKey?: string;
100
- onDelete?: 'cascade' | 'restrict' | 'setNull';
101
+ onDelete?: "cascade" | "restrict" | "setNull";
101
102
  }
102
103
  export interface SchemaIndex {
103
104
  key: string;
104
- type: 'index' | 'unique' | 'fulltext';
105
+ type: "index" | "unique" | "fulltext";
105
106
  attributes: string[];
106
- orders?: string[];
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 = 'createCollection' | 'updateCollection' | 'deleteCollection' | 'createAttribute' | 'updateAttribute' | 'deleteAttribute' | 'createIndex' | 'deleteIndex';
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: 'attribute' | 'index';
144
+ type: "attribute" | "index";
144
145
  reason: string;
145
146
  }
146
147
  export interface MigrationPlan {