(input: {
readonly owner: "org" | "user";
readonly collection: string;
readonly key: string;
readonly data: T;
})
| 21 | const storageKey = (collection: string, key: string) => `${collection}\0${key}`; |
| 22 | const now = new Date(); |
| 23 | const makeEntry = <T>(input: { |
| 24 | readonly owner: "org" | "user"; |
| 25 | readonly collection: string; |
| 26 | readonly key: string; |
| 27 | readonly data: T; |
| 28 | }): PluginStorageEntry<T> => ({ |
| 29 | id: storageKey(input.collection, input.key), |
| 30 | owner: input.owner, |
| 31 | pluginId: "openapi", |
| 32 | collection: input.collection, |
| 33 | key: input.key, |
| 34 | data: input.data, |
| 35 | createdAt: now, |
| 36 | updatedAt: now, |
| 37 | }); |
| 38 | const pluginStorage: PluginStorageFacade = { |
| 39 | collection: () => ({ |
| 40 | get: () => Effect.succeed(null), |
no test coverage detected