@fusebase/fusebase-gate-sdk 2.2.2-sdk.20 → 2.2.2-sdk.21
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/apis/IsolatedStoresApi.d.ts +25 -1
- package/dist/apis/IsolatedStoresApi.js +28 -0
- package/dist/types/isolated-store/isolated-store.d.ts +30 -0
- package/package.json +1 -1
- package/release-notes/2.2.2-sdk.21.md +9 -0
- package/release-notes/latest.md +3 -3
- package/release-notes/2.2.2-sdk.20.md +0 -9
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Domain: isolated-stores
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { CountIsolatedStoreNoSqlDocumentsRequestContract, CountIsolatedStoreNoSqlDocumentsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreNoSqlCollectionRequestContract, CreateIsolatedStoreNoSqlCollectionResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreNoSqlDocumentResponseContract, DeleteIsolatedStoreStageResponseContract, ImportIsolatedStoreNoSqlDocumentsRequestContract, ImportIsolatedStoreNoSqlDocumentsResponseContract, InitIsolatedStoreStageRequestContract, InitIsolatedStoreStageResponseContract, IsolatedStoreIdInPathRequired, IsolatedStoreListResponseContract, IsolatedStoreNoSqlCollectionNameInPathRequired, IsolatedStoreNoSqlDocumentIdInPathRequired, IsolatedStoreNoSqlDocumentResponseContract, IsolatedStoreNoSqlListCollectionsResponseContract, IsolatedStoreResponseContract, IsolatedStoreRevisionIdInPathRequired, IsolatedStoreRevisionListResponseContract, IsolatedStoreSqlBatchInsertRequestContract, IsolatedStoreSqlBatchInsertResponseContract, IsolatedStoreSqlCountRequestContract, IsolatedStoreSqlCountResponseContract, IsolatedStoreSqlDeleteRequestContract, IsolatedStoreSqlDeleteResponseContract, IsolatedStoreSqlDescribeTableResponseContract, IsolatedStoreSqlExecuteRequestContract, IsolatedStoreSqlExecuteResponseContract, IsolatedStoreSqlImportRequestContract, IsolatedStoreSqlImportResponseContract, IsolatedStoreSqlInsertRequestContract, IsolatedStoreSqlInsertResponseContract, IsolatedStoreSqlListTablesResponseContract, IsolatedStoreSqlQueryRequestContract, IsolatedStoreSqlQueryResponseContract, IsolatedStoreSqlSchemaNameInQueryOptional, IsolatedStoreSqlSelectRequestContract, IsolatedStoreSqlSelectResponseContract, IsolatedStoreSqlTableNameInPathRequired, IsolatedStoreSqlUpdateRequestContract, IsolatedStoreSqlUpdateResponseContract, IsolatedStoreStageInPathRequired, IsolatedStoreStageListResponseContract, orgIdInPathRequired, PutIsolatedStoreNoSqlDocumentRequestContract, PutIsolatedStoreNoSqlDocumentResponseContract, QueryIsolatedStoreNoSqlDocumentsRequestContract, QueryIsolatedStoreNoSqlDocumentsResponseContract, RestoreIsolatedStoreRevisionResponseContract } from "../types";
|
|
8
|
+
import type { CountIsolatedStoreNoSqlDocumentsRequestContract, CountIsolatedStoreNoSqlDocumentsResponseContract, CreateIsolatedStoreCheckpointRequestContract, CreateIsolatedStoreCheckpointResponseContract, CreateIsolatedStoreNoSqlCollectionRequestContract, CreateIsolatedStoreNoSqlCollectionResponseContract, CreateIsolatedStoreRequestContract, CreateIsolatedStoreResponseContract, DeleteIsolatedStoreNoSqlDocumentResponseContract, DeleteIsolatedStoreStageResponseContract, ImportIsolatedStoreNoSqlDocumentsRequestContract, ImportIsolatedStoreNoSqlDocumentsResponseContract, InitIsolatedStoreStageRequestContract, InitIsolatedStoreStageResponseContract, IsolatedStoreIdInPathRequired, IsolatedStoreListResponseContract, IsolatedStoreNoSqlCollectionNameInPathRequired, IsolatedStoreNoSqlDocumentIdInPathRequired, IsolatedStoreNoSqlDocumentResponseContract, IsolatedStoreNoSqlListCollectionsResponseContract, IsolatedStoreNoSqlStatsResponseContract, IsolatedStoreResponseContract, IsolatedStoreRevisionIdInPathRequired, IsolatedStoreRevisionListResponseContract, IsolatedStoreSqlBatchInsertRequestContract, IsolatedStoreSqlBatchInsertResponseContract, IsolatedStoreSqlCountRequestContract, IsolatedStoreSqlCountResponseContract, IsolatedStoreSqlDeleteRequestContract, IsolatedStoreSqlDeleteResponseContract, IsolatedStoreSqlDescribeTableResponseContract, IsolatedStoreSqlExecuteRequestContract, IsolatedStoreSqlExecuteResponseContract, IsolatedStoreSqlImportRequestContract, IsolatedStoreSqlImportResponseContract, IsolatedStoreSqlInsertRequestContract, IsolatedStoreSqlInsertResponseContract, IsolatedStoreSqlListTablesResponseContract, IsolatedStoreSqlQueryRequestContract, IsolatedStoreSqlQueryResponseContract, IsolatedStoreSqlSchemaNameInQueryOptional, IsolatedStoreSqlSelectRequestContract, IsolatedStoreSqlSelectResponseContract, IsolatedStoreSqlStatsResponseContract, IsolatedStoreSqlTableNameInPathRequired, IsolatedStoreSqlUpdateRequestContract, IsolatedStoreSqlUpdateResponseContract, IsolatedStoreStageInPathRequired, IsolatedStoreStageListResponseContract, orgIdInPathRequired, PutIsolatedStoreNoSqlDocumentRequestContract, PutIsolatedStoreNoSqlDocumentResponseContract, QueryIsolatedStoreNoSqlDocumentsRequestContract, QueryIsolatedStoreNoSqlDocumentsResponseContract, RestoreIsolatedStoreRevisionResponseContract } from "../types";
|
|
9
9
|
export declare class IsolatedStoresApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
@@ -178,6 +178,30 @@ export declare class IsolatedStoresApi {
|
|
|
178
178
|
};
|
|
179
179
|
headers?: Record<string, string>;
|
|
180
180
|
}): Promise<IsolatedStoreNoSqlDocumentResponseContract>;
|
|
181
|
+
/**
|
|
182
|
+
* Get NoSQL stats
|
|
183
|
+
* Returns collection-level stats for the selected isolated Mongo stage, including collection names, document counts, and storage-size hints when available.
|
|
184
|
+
*/
|
|
185
|
+
getIsolatedStoreNoSqlStats(params: {
|
|
186
|
+
path: {
|
|
187
|
+
orgId: orgIdInPathRequired;
|
|
188
|
+
storeId: IsolatedStoreIdInPathRequired;
|
|
189
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
190
|
+
};
|
|
191
|
+
headers?: Record<string, string>;
|
|
192
|
+
}): Promise<IsolatedStoreNoSqlStatsResponseContract>;
|
|
193
|
+
/**
|
|
194
|
+
* Get SQL stats
|
|
195
|
+
* Returns table-level stats for the selected isolated postgres stage, including tables, columns, row counts, and relation-size hints.
|
|
196
|
+
*/
|
|
197
|
+
getIsolatedStoreSqlStats(params: {
|
|
198
|
+
path: {
|
|
199
|
+
orgId: orgIdInPathRequired;
|
|
200
|
+
storeId: IsolatedStoreIdInPathRequired;
|
|
201
|
+
stage: IsolatedStoreStageInPathRequired;
|
|
202
|
+
};
|
|
203
|
+
headers?: Record<string, string>;
|
|
204
|
+
}): Promise<IsolatedStoreSqlStatsResponseContract>;
|
|
181
205
|
/**
|
|
182
206
|
* Import NDJSON documents
|
|
183
207
|
* Imports newline-delimited JSON documents into a Mongo collection. Use this bulk path for large seed or migration-style writes instead of per-document tool calls.
|
|
@@ -202,6 +202,34 @@ class IsolatedStoresApi {
|
|
|
202
202
|
expectedContentType: "application/json",
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Get NoSQL stats
|
|
207
|
+
* Returns collection-level stats for the selected isolated Mongo stage, including collection names, document counts, and storage-size hints when available.
|
|
208
|
+
*/
|
|
209
|
+
async getIsolatedStoreNoSqlStats(params) {
|
|
210
|
+
return this.client.request({
|
|
211
|
+
method: "GET",
|
|
212
|
+
path: "/:orgId/isolated-stores/:storeId/stages/:stage/nosql/stats",
|
|
213
|
+
pathParams: params.path,
|
|
214
|
+
headers: params.headers,
|
|
215
|
+
opId: "getIsolatedStoreNoSqlStats",
|
|
216
|
+
expectedContentType: "application/json",
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get SQL stats
|
|
221
|
+
* Returns table-level stats for the selected isolated postgres stage, including tables, columns, row counts, and relation-size hints.
|
|
222
|
+
*/
|
|
223
|
+
async getIsolatedStoreSqlStats(params) {
|
|
224
|
+
return this.client.request({
|
|
225
|
+
method: "GET",
|
|
226
|
+
path: "/:orgId/isolated-stores/:storeId/stages/:stage/sql/stats",
|
|
227
|
+
pathParams: params.path,
|
|
228
|
+
headers: params.headers,
|
|
229
|
+
opId: "getIsolatedStoreSqlStats",
|
|
230
|
+
expectedContentType: "application/json",
|
|
231
|
+
});
|
|
232
|
+
}
|
|
205
233
|
/**
|
|
206
234
|
* Import NDJSON documents
|
|
207
235
|
* Imports newline-delimited JSON documents into a Mongo collection. Use this bulk path for large seed or migration-style writes instead of per-document tool calls.
|
|
@@ -99,6 +99,22 @@ export interface IsolatedStoreSqlTableDescriptionContract {
|
|
|
99
99
|
tableName: string;
|
|
100
100
|
columns: IsolatedStoreSqlColumnContract[];
|
|
101
101
|
}
|
|
102
|
+
export interface IsolatedStoreSqlTableStatsContract {
|
|
103
|
+
schemaName: string;
|
|
104
|
+
tableName: string;
|
|
105
|
+
tableType: string;
|
|
106
|
+
rowCount: number;
|
|
107
|
+
totalBytes?: number | null;
|
|
108
|
+
columns: IsolatedStoreSqlColumnContract[];
|
|
109
|
+
}
|
|
110
|
+
export interface IsolatedStoreSqlStatsResponseContract {
|
|
111
|
+
databaseName: string;
|
|
112
|
+
schemaName: string;
|
|
113
|
+
tableCount: number;
|
|
114
|
+
totalRowCount: number;
|
|
115
|
+
totalBytes?: number | null;
|
|
116
|
+
tables: IsolatedStoreSqlTableStatsContract[];
|
|
117
|
+
}
|
|
102
118
|
export interface IsolatedStoreSqlListTablesResponseContract {
|
|
103
119
|
tables: IsolatedStoreSqlTableContract[];
|
|
104
120
|
}
|
|
@@ -269,6 +285,20 @@ export interface RestoreIsolatedStoreRevisionResponseContract {
|
|
|
269
285
|
export interface IsolatedStoreNoSqlCollectionContract {
|
|
270
286
|
collectionName: string;
|
|
271
287
|
}
|
|
288
|
+
export interface IsolatedStoreNoSqlCollectionStatsContract {
|
|
289
|
+
collectionName: string;
|
|
290
|
+
documentCount: number;
|
|
291
|
+
sizeBytes?: number | null;
|
|
292
|
+
storageSizeBytes?: number | null;
|
|
293
|
+
avgDocumentSizeBytes?: number | null;
|
|
294
|
+
}
|
|
295
|
+
export interface IsolatedStoreNoSqlStatsResponseContract {
|
|
296
|
+
databaseName: string;
|
|
297
|
+
collectionCount: number;
|
|
298
|
+
totalDocumentCount: number;
|
|
299
|
+
totalSizeBytes?: number | null;
|
|
300
|
+
collections: IsolatedStoreNoSqlCollectionStatsContract[];
|
|
301
|
+
}
|
|
272
302
|
export interface IsolatedStoreNoSqlListCollectionsResponseContract {
|
|
273
303
|
collections: IsolatedStoreNoSqlCollectionContract[];
|
|
274
304
|
}
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.2-sdk.
|
|
1
|
+
# Release Notes 2.2.2-sdk.21
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.2-sdk.
|
|
5
|
-
- Generated at: 2026-04-
|
|
4
|
+
- Previous tag: `v2.2.2-sdk.21`
|
|
5
|
+
- Generated at: 2026-04-04T17:29:28.929Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|