@bpmsoftwaresolutions/ai-engine-client 1.0.0-beta.6 → 1.0.0-beta.7

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/README.md CHANGED
@@ -77,6 +77,9 @@ const client = AIEngineClient.fromEnv();
77
77
  | `currentCodebaseShapeStatus()` | Codebase shape analysis. |
78
78
  | `getLatestMemoryProjection()` | Current SQL memory projection (startup hydration source). |
79
79
  | `currentProjectStatus({ projectId })` | Current project status projection from SQL memory. |
80
+ | `runAzureSqlBacpacBackup({ databaseName, storageAccount, ... })` | Start an Azure SQL BACPAC export through the operator API. |
81
+ | `listAzureSqlBacpacBackups({ storageAccount, container, ... })` | List recent BACPAC exports visible in the configured blob container. |
82
+ | `listAzureSqlBacpacBackupOperations({ databaseName, resourceGroup, serverName, ... })` | List Azure SQL database operations so callers can poll backup/export status. |
80
83
  | `getDashboard()` | Operator dashboard payload. |
81
84
 
82
85
  ### Retrieval Wrapper
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
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/index.js CHANGED
@@ -94,6 +94,83 @@ export class AIEngineClient {
94
94
  });
95
95
  }
96
96
 
97
+ async runAzureSqlBacpacBackup({
98
+ databaseName,
99
+ storageAccount,
100
+ container,
101
+ resourceGroup,
102
+ serverName,
103
+ outputName,
104
+ adminUser,
105
+ adminPassword,
106
+ subscription,
107
+ storageKey,
108
+ skipContainerCreate,
109
+ noWait,
110
+ } = {}) {
111
+ return this._request('/api/operator/database/backups/azure-sql-bacpac', {
112
+ method: 'POST',
113
+ body: {
114
+ database_name: databaseName,
115
+ storage_account: storageAccount,
116
+ container,
117
+ resource_group: resourceGroup,
118
+ server_name: serverName,
119
+ output_name: outputName,
120
+ admin_user: adminUser,
121
+ admin_password: adminPassword,
122
+ subscription,
123
+ storage_key: storageKey,
124
+ skip_container_create: skipContainerCreate,
125
+ no_wait: noWait,
126
+ },
127
+ });
128
+ }
129
+
130
+ async listAzureSqlBacpacBackups({
131
+ storageAccount,
132
+ container,
133
+ resourceGroup,
134
+ serverName,
135
+ subscription,
136
+ storageKey,
137
+ prefix,
138
+ limit,
139
+ } = {}) {
140
+ return this._request('/api/operator/database/backups/azure-sql-bacpac', {
141
+ query: {
142
+ storage_account: storageAccount,
143
+ container,
144
+ resource_group: resourceGroup,
145
+ server_name: serverName,
146
+ subscription,
147
+ storage_key: storageKey,
148
+ prefix,
149
+ limit,
150
+ },
151
+ });
152
+ }
153
+
154
+ async listAzureSqlBacpacBackupOperations({
155
+ databaseName,
156
+ resourceGroup,
157
+ serverName,
158
+ subscription,
159
+ operationFilter,
160
+ limit,
161
+ } = {}) {
162
+ return this._request('/api/operator/database/backups/azure-sql-bacpac/operations', {
163
+ query: {
164
+ database_name: databaseName,
165
+ resource_group: resourceGroup,
166
+ server_name: serverName,
167
+ subscription,
168
+ operation_filter: operationFilter,
169
+ limit,
170
+ },
171
+ });
172
+ }
173
+
97
174
  async getDashboard() {
98
175
  return this._request('/api/dashboard');
99
176
  }