appbuild-oceanbase-console 1.13.0 → 1.13.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/dist/iife/sdk.js CHANGED
@@ -21496,21 +21496,23 @@
21496
21496
  name: rest[0],
21497
21497
  teamId: rest[1],
21498
21498
  region: rest[2],
21499
- description: rest[3],
21500
- logo: rest[4],
21501
- url: rest[5],
21502
- legalName: rest[6],
21503
- legalCountry: rest[7],
21504
- legalState: rest[8],
21505
- legalCity: rest[9],
21506
- legalAddress: rest[10],
21507
- legalTaxId: rest[11]
21499
+ poolTag: rest[3],
21500
+ description: rest[4],
21501
+ logo: rest[5],
21502
+ url: rest[6],
21503
+ legalName: rest[7],
21504
+ legalCountry: rest[8],
21505
+ legalState: rest[9],
21506
+ legalCity: rest[10],
21507
+ legalAddress: rest[11],
21508
+ legalTaxId: rest[12]
21508
21509
  };
21509
21510
  }
21510
21511
  const projectId = params.projectId;
21511
21512
  const name = params.name;
21512
21513
  const teamId = params.teamId;
21513
21514
  const region = params.region;
21515
+ const poolTag = params.poolTag;
21514
21516
  const description = params.description;
21515
21517
  const logo = params.logo;
21516
21518
  const url = params.url;
@@ -21543,6 +21545,9 @@
21543
21545
  if (typeof region !== 'undefined') {
21544
21546
  payload['region'] = region;
21545
21547
  }
21548
+ if (typeof poolTag !== 'undefined') {
21549
+ payload['poolTag'] = poolTag;
21550
+ }
21546
21551
  if (typeof description !== 'undefined') {
21547
21552
  payload['description'] = description;
21548
21553
  }
@@ -23696,6 +23701,25 @@
23696
23701
  }
23697
23702
  }
23698
23703
 
23704
+ class Admin extends Service {
23705
+ constructor(client) {
23706
+ super(client);
23707
+ }
23708
+ /**
23709
+ * List all defined pool tags.
23710
+ *
23711
+ * @throws {AppwriteException}
23712
+ * @returns {Promise<{ tags: Array<{ $id: string, name: string, poolCount: number, pools: string[], createdAt: string }>, total: number }>}
23713
+ */
23714
+ listTags() {
23715
+ const apiPath = '/admin/tags';
23716
+ const payload = {};
23717
+ const uri = new URL(this.client.config.endpoint + apiPath);
23718
+ const apiHeaders = {};
23719
+ return this.client.call('get', uri, apiHeaders, payload);
23720
+ }
23721
+ }
23722
+
23699
23723
  class Proxy {
23700
23724
  constructor(client) {
23701
23725
  this.client = client;
@@ -32591,6 +32615,7 @@
32591
32615
  OAuthProvider["Tradeshift"] = "tradeshift";
32592
32616
  OAuthProvider["TradeshiftBox"] = "tradeshiftBox";
32593
32617
  OAuthProvider["Twitch"] = "twitch";
32618
+ OAuthProvider["Weavefox"] = "weavefox";
32594
32619
  OAuthProvider["Wordpress"] = "wordpress";
32595
32620
  OAuthProvider["Yahoo"] = "yahoo";
32596
32621
  OAuthProvider["Yammer"] = "yammer";
@@ -34464,7 +34489,8 @@
34464
34489
  sites: new Sites(client),
34465
34490
  domains: new Domains(client),
34466
34491
  storage: new Storage(client),
34467
- realtime: new Realtime(client)
34492
+ realtime: new Realtime(client),
34493
+ admin: new Admin(client)
34468
34494
  };
34469
34495
  }
34470
34496
  const clientConsole = new Client();
@@ -34560,6 +34586,7 @@
34560
34586
 
34561
34587
  exports.Account = Account;
34562
34588
  exports.Activities = Activities;
34589
+ exports.Admin = Admin;
34563
34590
  exports.AppwriteException = AppwriteException;
34564
34591
  exports.Assistant = Assistant;
34565
34592
  exports.Avatars = Avatars;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "appbuild-oceanbase-console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "1.13.0",
5
+ "version": "1.13.2",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -32,6 +32,7 @@ export declare enum OAuthProvider {
32
32
  Tradeshift = "tradeshift",
33
33
  TradeshiftBox = "tradeshiftBox",
34
34
  Twitch = "twitch",
35
+ Weavefox = "weavefox",
35
36
  Wordpress = "wordpress",
36
37
  Yahoo = "yahoo",
37
38
  Yammer = "yammer",
package/types/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export type { SchemaDefinition, SchemaCollection, SchemaAttribute, SchemaIndex,
25
25
  export { Organizations } from "./services/organizations";
26
26
  export { Project } from "./services/project";
27
27
  export { Projects } from "./services/projects";
28
+ export { Admin } from "./services/admin";
28
29
  export { Proxy } from "./services/proxy";
29
30
  export { Sites } from "./services/sites";
30
31
  export { Storage } from "./services/storage";
package/types/sdk.d.ts CHANGED
@@ -20,6 +20,7 @@ import { Tokens } from './services/tokens';
20
20
  import { TablesDB } from './services/tables-db';
21
21
  import { Domains } from './services/domains';
22
22
  import { Realtime } from './services/realtime';
23
+ import { Admin } from './services/admin';
23
24
  import { SchemaMigration } from './migrations';
24
25
  export declare function getApiEndpoint(region?: string): string;
25
26
  export declare const realtime: {
@@ -44,6 +45,7 @@ export declare const sdk: {
44
45
  domains: Domains;
45
46
  storage: Storage;
46
47
  realtime: Realtime;
48
+ admin: Admin;
47
49
  };
48
50
  forConsoleIn(region: string): {
49
51
  client: Client;
@@ -62,6 +64,7 @@ export declare const sdk: {
62
64
  domains: Domains;
63
65
  storage: Storage;
64
66
  realtime: Realtime;
67
+ admin: Admin;
65
68
  };
66
69
  forProject(region: string, projectId: string): {
67
70
  client: Client;
@@ -0,0 +1,21 @@
1
+ import { Service } from '../service';
2
+ import { Client } from '../client';
3
+ export declare class Admin extends Service {
4
+ constructor(client: Client);
5
+ /**
6
+ * List all defined pool tags.
7
+ *
8
+ * @throws {AppwriteException}
9
+ * @returns {Promise<{ tags: Array<{ $id: string, name: string, poolCount: number, pools: string[], createdAt: string }>, total: number }>}
10
+ */
11
+ listTags(): Promise<{
12
+ tags: Array<{
13
+ $id: string;
14
+ name: string;
15
+ poolCount: number;
16
+ pools: string[];
17
+ createdAt: string;
18
+ }>;
19
+ total: number;
20
+ }>;
21
+ }
@@ -58,6 +58,7 @@ export declare class Projects {
58
58
  * @param {string} params.legalCity - Project legal City. Max length: 256 chars.
59
59
  * @param {string} params.legalAddress - Project legal Address. Max length: 256 chars.
60
60
  * @param {string} params.legalTaxId - Project legal Tax ID. Max length: 256 chars.
61
+ * @param {string} params.poolTag - Database pool tag. If not specified, matches fallback (empty-tag) pools.
61
62
  * @throws {AppwriteException}
62
63
  * @returns {Promise<Models.Project>}
63
64
  */
@@ -66,6 +67,7 @@ export declare class Projects {
66
67
  name: string;
67
68
  teamId: string;
68
69
  region?: Region;
70
+ poolTag?: string;
69
71
  description?: string;
70
72
  logo?: string;
71
73
  url?: string;
@@ -92,11 +94,12 @@ export declare class Projects {
92
94
  * @param {string} legalCity - Project legal City. Max length: 256 chars.
93
95
  * @param {string} legalAddress - Project legal Address. Max length: 256 chars.
94
96
  * @param {string} legalTaxId - Project legal Tax ID. Max length: 256 chars.
97
+ * @param {string} poolTag - Database pool tag. If not specified, matches fallback (empty-tag) pools.
95
98
  * @throws {AppwriteException}
96
99
  * @returns {Promise<Models.Project>}
97
100
  * @deprecated Use the object parameter style method for a better developer experience.
98
101
  */
99
- create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
102
+ create(projectId: string, name: string, teamId: string, region?: Region, poolTag?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
100
103
  /**
101
104
  * Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
102
105
  *