@camstack/types 1.2.360 → 1.2.362
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/capabilities/backup.cap.d.ts +55 -0
- package/dist/capabilities/data-store-provider.cap.d.ts +27 -0
- package/dist/capabilities/database-snapshot.cap.d.ts +67 -7
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/settings-store.cap.d.ts +112 -2
- package/dist/client.js +1 -0
- package/dist/client.mjs +1 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +872 -753
- package/dist/index.mjs +868 -754
- package/dist/interfaces/storage.d.ts +8 -6
- package/package.json +1 -1
|
@@ -220,12 +220,7 @@ export interface ISettingsBackend {
|
|
|
220
220
|
* without typed-table support should implement this as a no-op so
|
|
221
221
|
* the cap contract stays uniform.
|
|
222
222
|
*/
|
|
223
|
-
declareCollection(input:
|
|
224
|
-
namespace?: string;
|
|
225
|
-
collection: string;
|
|
226
|
-
columns: readonly import('../capabilities/settings-store.cap.js').CollectionColumn[];
|
|
227
|
-
indexes?: readonly import('../capabilities/settings-store.cap.js').CollectionIndex[];
|
|
228
|
-
}): Promise<void>;
|
|
223
|
+
declareCollection(input: import('../capabilities/settings-store.cap.js').DeclareCollectionInput): Promise<void>;
|
|
229
224
|
}
|
|
230
225
|
export interface SettingsRecord<T extends object = Record<string, unknown>> {
|
|
231
226
|
readonly id: string;
|
|
@@ -307,6 +302,13 @@ export interface TableColumnSchema {
|
|
|
307
302
|
export interface TableSchema {
|
|
308
303
|
readonly columns: readonly TableColumnSchema[];
|
|
309
304
|
readonly indexes?: readonly TableIndexSchema[];
|
|
305
|
+
/**
|
|
306
|
+
* COMPOSITE primary key, as column names (two or more). Emitted as a table
|
|
307
|
+
* constraint; a column carries no `primaryKey` flag when this is set.
|
|
308
|
+
*/
|
|
309
|
+
readonly primaryKey?: readonly string[];
|
|
310
|
+
/** Emit `WITHOUT ROWID` (requires a primary key). */
|
|
311
|
+
readonly withoutRowid?: boolean;
|
|
310
312
|
}
|
|
311
313
|
/** Index definition for structured tables */
|
|
312
314
|
export interface TableIndexSchema {
|