@haverstack/record-adapter-do-sqlite 0.13.0 → 0.15.0
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/index.d.ts +4 -14
- package/dist/index.js +221 -278
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StackRecord, RecordVersion, ActorOptions,
|
|
1
|
+
import { StackRecord, RecordChanges, RecordVersion, ActorOptions, TypeId, StackQuery, QueryResult, FileId, StackType, Association } from '@haverstack/core';
|
|
2
2
|
import { StackRecordAdapter, AdapterCapabilities } from '@haverstack/core/adapter';
|
|
3
3
|
import { SqlExecutor } from '@haverstack/sqlite-shared/record';
|
|
4
4
|
|
|
@@ -80,7 +80,7 @@ declare class DoSQLiteRecordAdapter implements StackRecordAdapter {
|
|
|
80
80
|
static create(storage: DurableObjectStorage, opts: DoRecordCreateOptions): Promise<DoSQLiteRecordAdapter>;
|
|
81
81
|
createRecord(record: StackRecord): Promise<StackRecord>;
|
|
82
82
|
getRecord(id: string): Promise<StackRecord | null>;
|
|
83
|
-
|
|
83
|
+
mutateRecord(id: string, changes: RecordChanges, opts?: {
|
|
84
84
|
expectedVersion?: number;
|
|
85
85
|
snapshot?: RecordVersion;
|
|
86
86
|
} & ActorOptions): Promise<StackRecord>;
|
|
@@ -93,21 +93,11 @@ declare class DoSQLiteRecordAdapter implements StackRecordAdapter {
|
|
|
93
93
|
expectedVersion?: number;
|
|
94
94
|
snapshot?: RecordVersion;
|
|
95
95
|
} & ActorOptions): Promise<StackRecord>;
|
|
96
|
-
setPermissions(id: string, permissions: Permission[], opts?: {
|
|
97
|
-
expectedVersion?: number;
|
|
98
|
-
snapshot?: RecordVersion;
|
|
99
|
-
} & ActorOptions): Promise<StackRecord>;
|
|
100
|
-
setUnlisted(id: string, unlisted: boolean, opts?: {
|
|
101
|
-
expectedVersion?: number;
|
|
102
|
-
snapshot?: RecordVersion;
|
|
103
|
-
} & ActorOptions): Promise<StackRecord>;
|
|
104
|
-
setParent(id: string, parentId: string | null, opts?: {
|
|
105
|
-
expectedVersion?: number;
|
|
106
|
-
snapshot?: RecordVersion;
|
|
107
|
-
} & ActorOptions): Promise<StackRecord>;
|
|
108
96
|
restoreVersion(id: string, version: number, opts?: {
|
|
109
97
|
expectedVersion?: number;
|
|
110
98
|
snapshot?: RecordVersion;
|
|
99
|
+
} & {
|
|
100
|
+
restoreAssociations?: boolean;
|
|
111
101
|
} & ActorOptions): Promise<StackRecord>;
|
|
112
102
|
commitMigration(id: string, toTypeId: TypeId, content: Record<string, unknown>, opts?: {
|
|
113
103
|
expectedVersion?: number;
|