@bpmsoftwaresolutions/ai-engine-client 1.1.97 → 1.1.98

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.97",
3
+ "version": "1.1.98",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/client.js CHANGED
@@ -1991,67 +1991,27 @@ export class AIEngineClient {
1991
1991
  }
1992
1992
 
1993
1993
  async describeDatabaseCatalog({ includeSystemSchemas, limit } = {}) {
1994
- return this._request('/api/operator/database/schema', {
1995
- query: {
1996
- view: 'overview',
1997
- include_system_schemas: includeSystemSchemas,
1998
- limit,
1999
- },
2000
- });
1994
+ return this.database.schema.getOverview({ includeSystemSchemas, limit });
2001
1995
  }
2002
1996
 
2003
1997
  async listDatabaseSchemas({ includeSystemSchemas, limit } = {}) {
2004
- return this._request('/api/operator/database/schema', {
2005
- query: {
2006
- view: 'schemas',
2007
- include_system_schemas: includeSystemSchemas,
2008
- limit,
2009
- },
2010
- });
1998
+ return this.database.schema.listSchemas({ includeSystemSchemas, limit });
2011
1999
  }
2012
2000
 
2013
2001
  async listDatabaseTables({ schemaName, includeSystemSchemas, limit } = {}) {
2014
- return this._request('/api/operator/database/schema', {
2015
- query: {
2016
- view: 'tables',
2017
- schema_name: schemaName,
2018
- include_system_schemas: includeSystemSchemas,
2019
- limit,
2020
- },
2021
- });
2002
+ return this.database.schema.listTables({ schemaName, includeSystemSchemas, limit });
2022
2003
  }
2023
2004
 
2024
2005
  async listDatabaseColumns({ schemaName, tableName } = {}) {
2025
- return this._request('/api/operator/database/schema', {
2026
- query: {
2027
- view: 'columns',
2028
- schema_name: schemaName,
2029
- table_name: tableName,
2030
- },
2031
- });
2006
+ return this.database.schema.listColumns({ schemaName, tableName });
2032
2007
  }
2033
2008
 
2034
2009
  async listDatabaseIndexes({ schemaName, tableName, includeSystemSchemas, limit } = {}) {
2035
- return this._request('/api/operator/database/schema', {
2036
- query: {
2037
- view: 'indexes',
2038
- schema_name: schemaName,
2039
- table_name: tableName,
2040
- include_system_schemas: includeSystemSchemas,
2041
- limit,
2042
- },
2043
- });
2010
+ return this.database.schema.listIndexes({ schemaName, tableName, includeSystemSchemas, limit });
2044
2011
  }
2045
2012
 
2046
2013
  async describeDatabaseTable({ schemaName, tableName, includeSystemSchemas } = {}) {
2047
- return this._request('/api/operator/database/schema', {
2048
- query: {
2049
- view: 'table',
2050
- schema_name: schemaName,
2051
- table_name: tableName,
2052
- include_system_schemas: includeSystemSchemas,
2053
- },
2054
- });
2014
+ return this.database.schema.describeTable({ schemaName, tableName, includeSystemSchemas });
2055
2015
  }
2056
2016
 
2057
2017
  async createDatabaseBackup({ databaseName, outputName, noWait } = {}) {
@@ -1,10 +1,50 @@
1
1
  export function createDatabaseSchemaDomain(client) {
2
2
  return {
3
- getOverview: (request) => client.describeDatabaseCatalog(request),
4
- listSchemas: (request) => client.listDatabaseSchemas(request),
5
- listTables: (request) => client.listDatabaseTables(request),
6
- listColumns: (request) => client.listDatabaseColumns(request),
7
- listIndexes: (request) => client.listDatabaseIndexes(request),
8
- describeTable: (request) => client.describeDatabaseTable(request),
3
+ getOverview: ({ includeSystemSchemas, limit } = {}) => client._request('/api/operator/database/schema', {
4
+ query: {
5
+ view: 'overview',
6
+ include_system_schemas: includeSystemSchemas,
7
+ limit,
8
+ },
9
+ }),
10
+ listSchemas: ({ includeSystemSchemas, limit } = {}) => client._request('/api/operator/database/schema', {
11
+ query: {
12
+ view: 'schemas',
13
+ include_system_schemas: includeSystemSchemas,
14
+ limit,
15
+ },
16
+ }),
17
+ listTables: ({ schemaName, includeSystemSchemas, limit } = {}) => client._request('/api/operator/database/schema', {
18
+ query: {
19
+ view: 'tables',
20
+ schema_name: schemaName,
21
+ include_system_schemas: includeSystemSchemas,
22
+ limit,
23
+ },
24
+ }),
25
+ listColumns: ({ schemaName, tableName } = {}) => client._request('/api/operator/database/schema', {
26
+ query: {
27
+ view: 'columns',
28
+ schema_name: schemaName,
29
+ table_name: tableName,
30
+ },
31
+ }),
32
+ listIndexes: ({ schemaName, tableName, includeSystemSchemas, limit } = {}) => client._request('/api/operator/database/schema', {
33
+ query: {
34
+ view: 'indexes',
35
+ schema_name: schemaName,
36
+ table_name: tableName,
37
+ include_system_schemas: includeSystemSchemas,
38
+ limit,
39
+ },
40
+ }),
41
+ describeTable: ({ schemaName, tableName, includeSystemSchemas } = {}) => client._request('/api/operator/database/schema', {
42
+ query: {
43
+ view: 'table',
44
+ schema_name: schemaName,
45
+ table_name: tableName,
46
+ include_system_schemas: includeSystemSchemas,
47
+ },
48
+ }),
9
49
  };
10
50
  }
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AIEngineClient, createAIEngineClient } from './client.js';
2
- export const AI_ENGINE_CLIENT_VERSION = '1.1.97';
2
+ export const AI_ENGINE_CLIENT_VERSION = '1.1.98';
3
3
  export { GOVERNED_MUTATION_REQUIRED_CAPABILITIES, AI_ENGINE_CLIENT_CAPABILITIES, TASK_BOUND_SUBSTRATE_EXECUTION_POLICY } from './constants/governance.js';
4
4
  export { LOGA_CONTRACT, LOGA_INTERACTION_CONTRACT, LOGA_NAVIGATION_CONTRACT, LOGA_PROJECTION_WORKFLOW } from './constants/loga.js';
5
5
  export {