Open History to see the last commit
1import { WS_METHODS } from "@t3tools/contracts";
2import { createEnvironmentRpcCommand } from "@t3tools/client-runtime/state/runtime";
3
4import { connectionAtomRuntime } from "../connection/runtime";
5
6export const attachmentEnvironment = {
7 createUploadUrl: createEnvironmentRpcCommand(connectionAtomRuntime, {
8 label: "environment-command:attachments:create-upload-url",
9 tag: WS_METHODS.attachmentsCreateUploadUrl,
10 }),
11 remove: createEnvironmentRpcCommand(connectionAtomRuntime, {
12 label: "environment-command:attachments:delete",
13 tag: WS_METHODS.attachmentsDelete,
14 }),
15};