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.
Files changed (105) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +191 -0
  3. package/dist/cjs/package.json +3 -0
  4. package/dist/cjs/sdk.js +27712 -0
  5. package/dist/cjs/sdk.js.map +1 -0
  6. package/dist/esm/package.json +3 -0
  7. package/dist/esm/sdk.js +27675 -0
  8. package/dist/esm/sdk.js.map +1 -0
  9. package/dist/iife/sdk.js +27716 -0
  10. package/package.json +47 -0
  11. package/types/client.d.ts +211 -0
  12. package/types/enums/adapter.d.ts +4 -0
  13. package/types/enums/api-service.d.ts +15 -0
  14. package/types/enums/api.d.ts +5 -0
  15. package/types/enums/attribute-status.d.ts +7 -0
  16. package/types/enums/auth-method.d.ts +9 -0
  17. package/types/enums/authentication-factor.d.ts +6 -0
  18. package/types/enums/authenticator-type.d.ts +3 -0
  19. package/types/enums/billing-plan.d.ts +10 -0
  20. package/types/enums/browser.d.ts +16 -0
  21. package/types/enums/build-runtime.d.ts +66 -0
  22. package/types/enums/column-status.d.ts +7 -0
  23. package/types/enums/compression.d.ts +5 -0
  24. package/types/enums/console-resource-type.d.ts +3 -0
  25. package/types/enums/credit-card.d.ts +19 -0
  26. package/types/enums/database-type.d.ts +4 -0
  27. package/types/enums/deployment-download-type.d.ts +4 -0
  28. package/types/enums/deployment-status.d.ts +7 -0
  29. package/types/enums/email-template-locale.d.ts +133 -0
  30. package/types/enums/email-template-type.d.ts +9 -0
  31. package/types/enums/execution-method.d.ts +9 -0
  32. package/types/enums/execution-status.d.ts +7 -0
  33. package/types/enums/execution-trigger.d.ts +5 -0
  34. package/types/enums/flag.d.ts +197 -0
  35. package/types/enums/framework.d.ts +17 -0
  36. package/types/enums/health-antivirus-status.d.ts +5 -0
  37. package/types/enums/health-check-status.d.ts +4 -0
  38. package/types/enums/image-format.d.ts +9 -0
  39. package/types/enums/image-gravity.d.ts +11 -0
  40. package/types/enums/index-status.d.ts +7 -0
  41. package/types/enums/index-type.d.ts +6 -0
  42. package/types/enums/message-priority.d.ts +4 -0
  43. package/types/enums/message-status.d.ts +7 -0
  44. package/types/enums/messaging-provider-type.d.ts +5 -0
  45. package/types/enums/name.d.ts +14 -0
  46. package/types/enums/o-auth-provider.d.ts +43 -0
  47. package/types/enums/output.d.ts +9 -0
  48. package/types/enums/password-hash.d.ts +13 -0
  49. package/types/enums/platform-type.d.ts +17 -0
  50. package/types/enums/platform.d.ts +4 -0
  51. package/types/enums/project-usage-range.d.ts +4 -0
  52. package/types/enums/proxy-resource-type.d.ts +4 -0
  53. package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
  54. package/types/enums/proxy-rule-status.d.ts +6 -0
  55. package/types/enums/region.d.ts +8 -0
  56. package/types/enums/relation-mutate.d.ts +5 -0
  57. package/types/enums/relationship-type.d.ts +6 -0
  58. package/types/enums/runtime.d.ts +66 -0
  59. package/types/enums/sms-template-locale.d.ts +133 -0
  60. package/types/enums/sms-template-type.d.ts +6 -0
  61. package/types/enums/smtp-encryption.d.ts +5 -0
  62. package/types/enums/smtp-secure.d.ts +4 -0
  63. package/types/enums/status-code.d.ts +6 -0
  64. package/types/enums/status.d.ts +4 -0
  65. package/types/enums/theme.d.ts +4 -0
  66. package/types/enums/timezone.d.ts +421 -0
  67. package/types/enums/type.d.ts +5 -0
  68. package/types/enums/usage-range.d.ts +5 -0
  69. package/types/enums/vcs-deployment-type.d.ts +5 -0
  70. package/types/enums/vcs-detection-type.d.ts +4 -0
  71. package/types/id.d.ts +20 -0
  72. package/types/index.d.ts +102 -0
  73. package/types/migrations.d.ts +240 -0
  74. package/types/models.d.ts +7945 -0
  75. package/types/operator.d.ts +180 -0
  76. package/types/permission.d.ts +43 -0
  77. package/types/query.d.ts +390 -0
  78. package/types/role.d.ts +70 -0
  79. package/types/sdk.d.ts +108 -0
  80. package/types/service.d.ts +11 -0
  81. package/types/services/account.d.ts +1413 -0
  82. package/types/services/assistant.d.ts +24 -0
  83. package/types/services/avatars.d.ts +319 -0
  84. package/types/services/backups.d.ts +276 -0
  85. package/types/services/console.d.ts +210 -0
  86. package/types/services/databases.d.ts +2119 -0
  87. package/types/services/domains.d.ts +1276 -0
  88. package/types/services/functions.d.ts +827 -0
  89. package/types/services/graphql.d.ts +43 -0
  90. package/types/services/health.d.ts +432 -0
  91. package/types/services/locale.d.ts +64 -0
  92. package/types/services/messaging.d.ts +1989 -0
  93. package/types/services/migrations.d.ts +413 -0
  94. package/types/services/organizations.d.ts +842 -0
  95. package/types/services/project.d.ts +130 -0
  96. package/types/services/projects.d.ts +1663 -0
  97. package/types/services/proxy.d.ts +190 -0
  98. package/types/services/realtime.d.ts +118 -0
  99. package/types/services/sites.d.ts +780 -0
  100. package/types/services/storage.d.ts +467 -0
  101. package/types/services/tables-db.d.ts +2034 -0
  102. package/types/services/teams.d.ts +366 -0
  103. package/types/services/tokens.d.ts +119 -0
  104. package/types/services/users.d.ts +1184 -0
  105. 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
+ }