(input: {
owner: "org" | "user";
collection: string;
key: string;
data: T;
})
| 12 | import { descriptorCollection, makeAppsStore, toolCollection } from "./store"; |
| 13 | |
| 14 | const entry = <T>(input: { |
| 15 | owner: "org" | "user"; |
| 16 | collection: string; |
| 17 | key: string; |
| 18 | data: T; |
| 19 | }): PluginStorageEntry<T> => ({ |
| 20 | id: `${input.collection}:${input.key}`, |
| 21 | owner: input.owner, |
| 22 | pluginId: "apps", |
| 23 | collection: input.collection, |
| 24 | key: input.key, |
| 25 | data: input.data, |
| 26 | createdAt: new Date(0), |
| 27 | updatedAt: new Date(0), |
| 28 | }); |
| 29 | |
| 30 | const makeMemoryPluginStorage = (): PluginStorageFacade => { |
| 31 | const rows = new Map<string, PluginStorageEntry<unknown>>(); |
no outgoing calls
no test coverage detected