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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
import { Platform } from '../enums/platform';
|
|
4
|
+
import { ConsoleResourceType } from '../enums/console-resource-type';
|
|
5
|
+
export declare class Console {
|
|
6
|
+
client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Receive the details of a campaign using its ID.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} params.campaignId - ID of the campaign
|
|
12
|
+
* @throws {AppwriteException}
|
|
13
|
+
* @returns {Promise<Models.Campaign>}
|
|
14
|
+
*/
|
|
15
|
+
getCampaign(params: {
|
|
16
|
+
campaignId: string;
|
|
17
|
+
}): Promise<Models.Campaign>;
|
|
18
|
+
/**
|
|
19
|
+
* Receive the details of a campaign using its ID.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} campaignId - ID of the campaign
|
|
22
|
+
* @throws {AppwriteException}
|
|
23
|
+
* @returns {Promise<Models.Campaign>}
|
|
24
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
25
|
+
*/
|
|
26
|
+
getCampaign(campaignId: string): Promise<Models.Campaign>;
|
|
27
|
+
/**
|
|
28
|
+
* Get the details of a coupon using it's coupon ID.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} params.couponId - ID of the coupon
|
|
31
|
+
* @throws {AppwriteException}
|
|
32
|
+
* @returns {Promise<Models.Coupon>}
|
|
33
|
+
*/
|
|
34
|
+
getCoupon(params: {
|
|
35
|
+
couponId: string;
|
|
36
|
+
}): Promise<Models.Coupon>;
|
|
37
|
+
/**
|
|
38
|
+
* Get the details of a coupon using it's coupon ID.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} couponId - ID of the coupon
|
|
41
|
+
* @throws {AppwriteException}
|
|
42
|
+
* @returns {Promise<Models.Coupon>}
|
|
43
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
44
|
+
*/
|
|
45
|
+
getCoupon(couponId: string): Promise<Models.Coupon>;
|
|
46
|
+
/**
|
|
47
|
+
* Return a list of all available plans.
|
|
48
|
+
*
|
|
49
|
+
* @param {Platform} params.platform - Platform type
|
|
50
|
+
* @throws {AppwriteException}
|
|
51
|
+
* @returns {Promise<Models.BillingPlanList>}
|
|
52
|
+
*/
|
|
53
|
+
plans(params?: {
|
|
54
|
+
platform?: Platform;
|
|
55
|
+
}): Promise<Models.BillingPlanList>;
|
|
56
|
+
/**
|
|
57
|
+
* Return a list of all available plans.
|
|
58
|
+
*
|
|
59
|
+
* @param {Platform} platform - Platform type
|
|
60
|
+
* @throws {AppwriteException}
|
|
61
|
+
* @returns {Promise<Models.BillingPlanList>}
|
|
62
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
63
|
+
*/
|
|
64
|
+
plans(platform?: Platform): Promise<Models.BillingPlanList>;
|
|
65
|
+
/**
|
|
66
|
+
* Create a new membership for an account to a program.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} params.programId - ID of the program
|
|
69
|
+
* @throws {AppwriteException}
|
|
70
|
+
* @returns {Promise<Models.Organization<Preferences>>}
|
|
71
|
+
*/
|
|
72
|
+
createProgramMembership<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
|
|
73
|
+
programId: string;
|
|
74
|
+
}): Promise<Models.Organization<Preferences>>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a new membership for an account to a program.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} programId - ID of the program
|
|
79
|
+
* @throws {AppwriteException}
|
|
80
|
+
* @returns {Promise<Models.Organization<Preferences>>}
|
|
81
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
82
|
+
*/
|
|
83
|
+
createProgramMembership<Preferences extends Models.Preferences = Models.DefaultPreferences>(programId: string): Promise<Models.Organization<Preferences>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get all available regions for the console.
|
|
86
|
+
*
|
|
87
|
+
* @throws {AppwriteException}
|
|
88
|
+
* @returns {Promise<Models.ConsoleRegionList>}
|
|
89
|
+
*/
|
|
90
|
+
regions(): Promise<Models.ConsoleRegionList>;
|
|
91
|
+
/**
|
|
92
|
+
* Check if a resource ID is available.
|
|
93
|
+
*
|
|
94
|
+
* @param {string} params.value - Resource value.
|
|
95
|
+
* @param {ConsoleResourceType} params.type - Resource type.
|
|
96
|
+
* @throws {AppwriteException}
|
|
97
|
+
* @returns {Promise<{}>}
|
|
98
|
+
*/
|
|
99
|
+
getResource(params: {
|
|
100
|
+
value: string;
|
|
101
|
+
type: ConsoleResourceType;
|
|
102
|
+
}): Promise<{}>;
|
|
103
|
+
/**
|
|
104
|
+
* Check if a resource ID is available.
|
|
105
|
+
*
|
|
106
|
+
* @param {string} value - Resource value.
|
|
107
|
+
* @param {ConsoleResourceType} type - Resource type.
|
|
108
|
+
* @throws {AppwriteException}
|
|
109
|
+
* @returns {Promise<{}>}
|
|
110
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
111
|
+
*/
|
|
112
|
+
getResource(value: string, type: ConsoleResourceType): Promise<{}>;
|
|
113
|
+
/**
|
|
114
|
+
* Create a new source.
|
|
115
|
+
*
|
|
116
|
+
* @param {string} params.ref - Ref param
|
|
117
|
+
* @param {string} params.referrer - Referrer
|
|
118
|
+
* @param {string} params.utmSource - Utm source
|
|
119
|
+
* @param {string} params.utmCampaign - Utm campaign
|
|
120
|
+
* @param {string} params.utmMedium - Utm medium
|
|
121
|
+
* @throws {AppwriteException}
|
|
122
|
+
* @returns {Promise<{}>}
|
|
123
|
+
*/
|
|
124
|
+
createSource(params?: {
|
|
125
|
+
ref?: string;
|
|
126
|
+
referrer?: string;
|
|
127
|
+
utmSource?: string;
|
|
128
|
+
utmCampaign?: string;
|
|
129
|
+
utmMedium?: string;
|
|
130
|
+
}): Promise<{}>;
|
|
131
|
+
/**
|
|
132
|
+
* Create a new source.
|
|
133
|
+
*
|
|
134
|
+
* @param {string} ref - Ref param
|
|
135
|
+
* @param {string} referrer - Referrer
|
|
136
|
+
* @param {string} utmSource - Utm source
|
|
137
|
+
* @param {string} utmCampaign - Utm campaign
|
|
138
|
+
* @param {string} utmMedium - Utm medium
|
|
139
|
+
* @throws {AppwriteException}
|
|
140
|
+
* @returns {Promise<{}>}
|
|
141
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
142
|
+
*/
|
|
143
|
+
createSource(ref?: string, referrer?: string, utmSource?: string, utmCampaign?: string, utmMedium?: string): Promise<{}>;
|
|
144
|
+
/**
|
|
145
|
+
* Suggests column names and their size limits based on the provided table name. The API will also analyze other tables in the same database to provide context-aware suggestions, ensuring consistency across schema design. Users may optionally provide custom context to further refine the suggestions.
|
|
146
|
+
*
|
|
147
|
+
* @param {string} params.databaseId - Database ID.
|
|
148
|
+
* @param {string} params.tableId - Table ID.
|
|
149
|
+
* @param {string} params.context - Optional user provided context to refine suggestions.
|
|
150
|
+
* @param {number} params.min - Minimum number of suggestions to generate.
|
|
151
|
+
* @param {number} params.max - Maximum number of suggestions to generate.
|
|
152
|
+
* @throws {AppwriteException}
|
|
153
|
+
* @returns {Promise<Models.ColumnList>}
|
|
154
|
+
*/
|
|
155
|
+
suggestColumns(params: {
|
|
156
|
+
databaseId: string;
|
|
157
|
+
tableId: string;
|
|
158
|
+
context?: string;
|
|
159
|
+
min?: number;
|
|
160
|
+
max?: number;
|
|
161
|
+
}): Promise<Models.ColumnList>;
|
|
162
|
+
/**
|
|
163
|
+
* Suggests column names and their size limits based on the provided table name. The API will also analyze other tables in the same database to provide context-aware suggestions, ensuring consistency across schema design. Users may optionally provide custom context to further refine the suggestions.
|
|
164
|
+
*
|
|
165
|
+
* @param {string} databaseId - Database ID.
|
|
166
|
+
* @param {string} tableId - Table ID.
|
|
167
|
+
* @param {string} context - Optional user provided context to refine suggestions.
|
|
168
|
+
* @param {number} min - Minimum number of suggestions to generate.
|
|
169
|
+
* @param {number} max - Maximum number of suggestions to generate.
|
|
170
|
+
* @throws {AppwriteException}
|
|
171
|
+
* @returns {Promise<Models.ColumnList>}
|
|
172
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
173
|
+
*/
|
|
174
|
+
suggestColumns(databaseId: string, tableId: string, context?: string, min?: number, max?: number): Promise<Models.ColumnList>;
|
|
175
|
+
/**
|
|
176
|
+
* Suggests database indexes for table columns based on the provided table structure and existing columns. The API will also analyze the table's column types, names, and patterns to recommend optimal indexes that improve query performance for common database operations like filtering, sorting, and searching.
|
|
177
|
+
*
|
|
178
|
+
* @param {string} params.databaseId - Database ID.
|
|
179
|
+
* @param {string} params.tableId - Table ID.
|
|
180
|
+
* @param {number} params.min - Minimum number of suggestions to generate.
|
|
181
|
+
* @param {number} params.max - Maximum number of suggestions to generate.
|
|
182
|
+
* @throws {AppwriteException}
|
|
183
|
+
* @returns {Promise<Models.ColumnIndexList>}
|
|
184
|
+
*/
|
|
185
|
+
suggestIndexes(params: {
|
|
186
|
+
databaseId: string;
|
|
187
|
+
tableId: string;
|
|
188
|
+
min?: number;
|
|
189
|
+
max?: number;
|
|
190
|
+
}): Promise<Models.ColumnIndexList>;
|
|
191
|
+
/**
|
|
192
|
+
* Suggests database indexes for table columns based on the provided table structure and existing columns. The API will also analyze the table's column types, names, and patterns to recommend optimal indexes that improve query performance for common database operations like filtering, sorting, and searching.
|
|
193
|
+
*
|
|
194
|
+
* @param {string} databaseId - Database ID.
|
|
195
|
+
* @param {string} tableId - Table ID.
|
|
196
|
+
* @param {number} min - Minimum number of suggestions to generate.
|
|
197
|
+
* @param {number} max - Maximum number of suggestions to generate.
|
|
198
|
+
* @throws {AppwriteException}
|
|
199
|
+
* @returns {Promise<Models.ColumnIndexList>}
|
|
200
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
201
|
+
*/
|
|
202
|
+
suggestIndexes(databaseId: string, tableId: string, min?: number, max?: number): Promise<Models.ColumnIndexList>;
|
|
203
|
+
/**
|
|
204
|
+
* Get all Environment Variables that are relevant for the console.
|
|
205
|
+
*
|
|
206
|
+
* @throws {AppwriteException}
|
|
207
|
+
* @returns {Promise<Models.ConsoleVariables>}
|
|
208
|
+
*/
|
|
209
|
+
variables(): Promise<Models.ConsoleVariables>;
|
|
210
|
+
}
|