@bpmsoftwaresolutions/ai-engine-client 1.1.91 → 1.1.95
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 +1 -1
- package/src/client.js +76 -2
- package/src/domains/database/schema.js +10 -0
- package/src/domains/database.js +2 -0
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -2699,6 +2699,81 @@ export class AIEngineClient {
|
|
|
2699
2699
|
return this.portfolio.getPortfolioStatus(...args);
|
|
2700
2700
|
}
|
|
2701
2701
|
|
|
2702
|
+
async describeDatabaseCatalog({ includeSystemSchemas, limit } = {}) {
|
|
2703
|
+
return this._request('/api/operator/database/schema', {
|
|
2704
|
+
query: {
|
|
2705
|
+
view: 'overview',
|
|
2706
|
+
include_system_schemas: includeSystemSchemas,
|
|
2707
|
+
limit,
|
|
2708
|
+
},
|
|
2709
|
+
});
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
async listDatabaseSchemas({ includeSystemSchemas, limit } = {}) {
|
|
2713
|
+
return this._request('/api/operator/database/schema', {
|
|
2714
|
+
query: {
|
|
2715
|
+
view: 'schemas',
|
|
2716
|
+
include_system_schemas: includeSystemSchemas,
|
|
2717
|
+
limit,
|
|
2718
|
+
},
|
|
2719
|
+
});
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
async listDatabaseTables({ schemaName, includeSystemSchemas, limit } = {}) {
|
|
2723
|
+
return this._request('/api/operator/database/schema', {
|
|
2724
|
+
query: {
|
|
2725
|
+
view: 'tables',
|
|
2726
|
+
schema_name: schemaName,
|
|
2727
|
+
include_system_schemas: includeSystemSchemas,
|
|
2728
|
+
limit,
|
|
2729
|
+
},
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
async listDatabaseColumns({ schemaName, tableName } = {}) {
|
|
2734
|
+
return this._request('/api/operator/database/schema', {
|
|
2735
|
+
query: {
|
|
2736
|
+
view: 'columns',
|
|
2737
|
+
schema_name: schemaName,
|
|
2738
|
+
table_name: tableName,
|
|
2739
|
+
},
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
async listDatabaseIndexes({ schemaName, tableName, includeSystemSchemas, limit } = {}) {
|
|
2744
|
+
return this._request('/api/operator/database/schema', {
|
|
2745
|
+
query: {
|
|
2746
|
+
view: 'indexes',
|
|
2747
|
+
schema_name: schemaName,
|
|
2748
|
+
table_name: tableName,
|
|
2749
|
+
include_system_schemas: includeSystemSchemas,
|
|
2750
|
+
limit,
|
|
2751
|
+
},
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
async describeDatabaseTable({ schemaName, tableName, includeSystemSchemas } = {}) {
|
|
2756
|
+
return this._request('/api/operator/database/schema', {
|
|
2757
|
+
query: {
|
|
2758
|
+
view: 'table',
|
|
2759
|
+
schema_name: schemaName,
|
|
2760
|
+
table_name: tableName,
|
|
2761
|
+
include_system_schemas: includeSystemSchemas,
|
|
2762
|
+
},
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
async createDatabaseBackup({ databaseName, outputName, noWait } = {}) {
|
|
2767
|
+
return this._request('/api/operator/database/backups', {
|
|
2768
|
+
method: 'POST',
|
|
2769
|
+
body: {
|
|
2770
|
+
database_name: databaseName,
|
|
2771
|
+
output_name: outputName,
|
|
2772
|
+
no_wait: noWait,
|
|
2773
|
+
},
|
|
2774
|
+
});
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2702
2777
|
async getPortfolioBundle() {
|
|
2703
2778
|
return this.portfolio.getPortfolioBundle();
|
|
2704
2779
|
}
|
|
@@ -2788,7 +2863,6 @@ export class AIEngineClient {
|
|
|
2788
2863
|
export function createAIEngineClient(options) {
|
|
2789
2864
|
return new AIEngineClient(options);
|
|
2790
2865
|
}
|
|
2791
|
-
|
|
2792
2866
|
function defineCompatibilityMethods(proto, targetName, methodNames) {
|
|
2793
2867
|
for (const methodName of methodNames) {
|
|
2794
2868
|
if (Object.prototype.hasOwnProperty.call(proto, methodName)) continue;
|
|
@@ -2877,6 +2951,6 @@ function installClientCompatibilityDelegates(ClientClass) {
|
|
|
2877
2951
|
defineCompatibilityMethods(proto, 'commitGovernance', ['evaluateCommitGovernance', 'checkGitShipReadiness', 'getCommitGovernanceEvaluation', 'listCommitGovernanceEvaluationsByClaim']);
|
|
2878
2952
|
defineCompatibilityMethods(proto, 'contextSessions', ['openContextSession', 'getOrientationWindow', 'acknowledgeReminder', 'completeOrientation', 'lockContextSessionClaim', 'getContextSessionGateStatus']);
|
|
2879
2953
|
defineCompatibilityMethods(proto, 'contextOrientation', ['conductOrientation']);
|
|
2954
|
+
defineCompatibilityMethods(proto, 'portfolio', ['getPortfolioStatus', 'getPortfolioBundle', 'getPortfolioClosureReadiness']);
|
|
2880
2955
|
}
|
|
2881
|
-
|
|
2882
2956
|
installClientCompatibilityDelegates(AIEngineClient);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function createDatabaseSchemaDomain(client) {
|
|
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),
|
|
9
|
+
};
|
|
10
|
+
}
|
package/src/domains/database.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cleanList, cleanText, isPlainObject } from '../utils/text.js';
|
|
2
2
|
import { createDatabaseBackupsDomain } from './database/backups.js';
|
|
3
|
+
import { createDatabaseSchemaDomain } from './database/schema.js';
|
|
3
4
|
|
|
4
5
|
export function createDatabaseDomain(client) {
|
|
5
6
|
return {
|
|
@@ -139,5 +140,6 @@ export function createDatabaseDomain(client) {
|
|
|
139
140
|
},
|
|
140
141
|
}),
|
|
141
142
|
backups: createDatabaseBackupsDomain(client),
|
|
143
|
+
schema: createDatabaseSchemaDomain(client),
|
|
142
144
|
};
|
|
143
145
|
}
|
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.
|
|
2
|
+
export const AI_ENGINE_CLIENT_VERSION = '1.1.95';
|
|
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 {
|