appbuild-oceanbase-console 1.10.2
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/LICENSE +12 -0
- package/README.md +191 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/sdk.js +27712 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk.js +27675 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/iife/sdk.js +27716 -0
- package/package.json +47 -0
- package/types/client.d.ts +211 -0
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +15 -0
- package/types/enums/api.d.ts +5 -0
- package/types/enums/attribute-status.d.ts +7 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/billing-plan.d.ts +10 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/build-runtime.d.ts +66 -0
- package/types/enums/column-status.d.ts +7 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/credit-card.d.ts +19 -0
- package/types/enums/database-type.d.ts +4 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/deployment-status.d.ts +7 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +9 -0
- package/types/enums/execution-method.d.ts +9 -0
- package/types/enums/execution-status.d.ts +7 -0
- package/types/enums/execution-trigger.d.ts +5 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/framework.d.ts +17 -0
- package/types/enums/health-antivirus-status.d.ts +5 -0
- package/types/enums/health-check-status.d.ts +4 -0
- package/types/enums/image-format.d.ts +9 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-status.d.ts +7 -0
- package/types/enums/index-type.d.ts +6 -0
- package/types/enums/message-priority.d.ts +4 -0
- package/types/enums/message-status.d.ts +7 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/name.d.ts +14 -0
- package/types/enums/o-auth-provider.d.ts +43 -0
- package/types/enums/output.d.ts +9 -0
- package/types/enums/password-hash.d.ts +13 -0
- package/types/enums/platform-type.d.ts +17 -0
- package/types/enums/platform.d.ts +4 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/proxy-resource-type.d.ts +4 -0
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
- package/types/enums/proxy-rule-status.d.ts +6 -0
- package/types/enums/region.d.ts +8 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/runtime.d.ts +66 -0
- package/types/enums/sms-template-locale.d.ts +133 -0
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/smtp-encryption.d.ts +5 -0
- package/types/enums/smtp-secure.d.ts +4 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/status.d.ts +4 -0
- package/types/enums/theme.d.ts +4 -0
- package/types/enums/timezone.d.ts +421 -0
- package/types/enums/type.d.ts +5 -0
- package/types/enums/usage-range.d.ts +5 -0
- package/types/enums/vcs-deployment-type.d.ts +5 -0
- package/types/enums/vcs-detection-type.d.ts +4 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +102 -0
- package/types/migrations.d.ts +240 -0
- package/types/models.d.ts +7945 -0
- package/types/operator.d.ts +180 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +390 -0
- package/types/role.d.ts +70 -0
- package/types/sdk.d.ts +108 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +1413 -0
- package/types/services/assistant.d.ts +24 -0
- package/types/services/avatars.d.ts +319 -0
- package/types/services/backups.d.ts +276 -0
- package/types/services/console.d.ts +210 -0
- package/types/services/databases.d.ts +2119 -0
- package/types/services/domains.d.ts +1276 -0
- package/types/services/functions.d.ts +827 -0
- package/types/services/graphql.d.ts +43 -0
- package/types/services/health.d.ts +432 -0
- package/types/services/locale.d.ts +64 -0
- package/types/services/messaging.d.ts +1989 -0
- package/types/services/migrations.d.ts +413 -0
- package/types/services/organizations.d.ts +842 -0
- package/types/services/project.d.ts +130 -0
- package/types/services/projects.d.ts +1663 -0
- package/types/services/proxy.d.ts +190 -0
- package/types/services/realtime.d.ts +118 -0
- package/types/services/sites.d.ts +780 -0
- package/types/services/storage.d.ts +467 -0
- package/types/services/tables-db.d.ts +2034 -0
- package/types/services/teams.d.ts +366 -0
- package/types/services/tokens.d.ts +119 -0
- package/types/services/users.d.ts +1184 -0
- package/types/services/vcs.d.ts +249 -0
package/types/sdk.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Client } from './client';
|
|
2
|
+
import { Account } from './services/account';
|
|
3
|
+
import { Assistant } from './services/assistant';
|
|
4
|
+
import { Avatars } from './services/avatars';
|
|
5
|
+
import { Console } from './services/console';
|
|
6
|
+
import { Functions } from './services/functions';
|
|
7
|
+
import { Health } from './services/health';
|
|
8
|
+
import { Locale } from './services/locale';
|
|
9
|
+
import { Messaging } from './services/messaging';
|
|
10
|
+
import { Migrations } from './services/migrations';
|
|
11
|
+
import { Project } from './services/project';
|
|
12
|
+
import { Projects } from './services/projects';
|
|
13
|
+
import { Proxy } from './services/proxy';
|
|
14
|
+
import { Storage } from './services/storage';
|
|
15
|
+
import { Teams } from './services/teams';
|
|
16
|
+
import { Users } from './services/users';
|
|
17
|
+
import { Vcs } from './services/vcs';
|
|
18
|
+
import { Sites } from './services/sites';
|
|
19
|
+
import { Tokens } from './services/tokens';
|
|
20
|
+
import { TablesDB } from './services/tables-db';
|
|
21
|
+
import { Domains } from './services/domains';
|
|
22
|
+
import { Realtime } from './services/realtime';
|
|
23
|
+
import { SchemaMigration } from './migrations';
|
|
24
|
+
export declare function getApiEndpoint(region?: string): string;
|
|
25
|
+
export declare const realtime: {
|
|
26
|
+
forProject(region: string, channels: string | string[], callback: AppwriteRealtimeResponseEvent): () => void;
|
|
27
|
+
forConsole(region: string, channels: string | string[], callback: AppwriteRealtimeResponseEvent): () => void;
|
|
28
|
+
};
|
|
29
|
+
export declare const sdk: {
|
|
30
|
+
forConsole: {
|
|
31
|
+
client: Client;
|
|
32
|
+
account: Account;
|
|
33
|
+
avatars: Avatars;
|
|
34
|
+
functions: Functions;
|
|
35
|
+
health: Health;
|
|
36
|
+
locale: Locale;
|
|
37
|
+
projects: Projects;
|
|
38
|
+
teams: Teams;
|
|
39
|
+
users: Users;
|
|
40
|
+
migrations: Migrations;
|
|
41
|
+
console: Console;
|
|
42
|
+
assistant: Assistant;
|
|
43
|
+
sites: Sites;
|
|
44
|
+
domains: Domains;
|
|
45
|
+
storage: Storage;
|
|
46
|
+
realtime: Realtime;
|
|
47
|
+
};
|
|
48
|
+
forConsoleIn(region: string): {
|
|
49
|
+
client: Client;
|
|
50
|
+
account: Account;
|
|
51
|
+
avatars: Avatars;
|
|
52
|
+
functions: Functions;
|
|
53
|
+
health: Health;
|
|
54
|
+
locale: Locale;
|
|
55
|
+
projects: Projects;
|
|
56
|
+
teams: Teams;
|
|
57
|
+
users: Users;
|
|
58
|
+
migrations: Migrations;
|
|
59
|
+
console: Console;
|
|
60
|
+
assistant: Assistant;
|
|
61
|
+
sites: Sites;
|
|
62
|
+
domains: Domains;
|
|
63
|
+
storage: Storage;
|
|
64
|
+
realtime: Realtime;
|
|
65
|
+
};
|
|
66
|
+
forProject(region: string, projectId: string): {
|
|
67
|
+
client: Client;
|
|
68
|
+
account: Account;
|
|
69
|
+
avatars: Avatars;
|
|
70
|
+
functions: Functions;
|
|
71
|
+
health: Health;
|
|
72
|
+
locale: Locale;
|
|
73
|
+
messaging: Messaging;
|
|
74
|
+
project: Project;
|
|
75
|
+
projectApi: Project;
|
|
76
|
+
storage: Storage;
|
|
77
|
+
tokens: Tokens;
|
|
78
|
+
teams: Teams;
|
|
79
|
+
users: Users;
|
|
80
|
+
vcs: Vcs;
|
|
81
|
+
proxy: Proxy;
|
|
82
|
+
migrations: Migrations;
|
|
83
|
+
sites: Sites;
|
|
84
|
+
tablesDB: TablesDB;
|
|
85
|
+
schemaMigration: SchemaMigration;
|
|
86
|
+
console: Console;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare enum RuleType {
|
|
90
|
+
API = "api",
|
|
91
|
+
DEPLOYMENT = "deployment",
|
|
92
|
+
REDIRECT = "redirect"
|
|
93
|
+
}
|
|
94
|
+
export declare enum DeploymentResourceType {
|
|
95
|
+
FUNCTION = "function",
|
|
96
|
+
SITE = "site"
|
|
97
|
+
}
|
|
98
|
+
export declare enum RuleTrigger {
|
|
99
|
+
DEPLOYMENT = "deployment",
|
|
100
|
+
MANUAL = "manual"
|
|
101
|
+
}
|
|
102
|
+
export declare type RealtimeResponse = {
|
|
103
|
+
events: string[];
|
|
104
|
+
channels: string[];
|
|
105
|
+
timestamp: string;
|
|
106
|
+
payload: unknown;
|
|
107
|
+
};
|
|
108
|
+
export declare type AppwriteRealtimeResponseEvent = (response: RealtimeResponse) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Client } from './client';
|
|
2
|
+
import type { Payload } from './client';
|
|
3
|
+
export declare class Service {
|
|
4
|
+
/**
|
|
5
|
+
* The size for chunked uploads in bytes.
|
|
6
|
+
*/
|
|
7
|
+
static CHUNK_SIZE: number;
|
|
8
|
+
client: Client;
|
|
9
|
+
constructor(client: Client);
|
|
10
|
+
static flatten(data: Payload, prefix?: string): Payload;
|
|
11
|
+
}
|