// Auto-generated frontend configuration for plugin: raclette__core
// This file is generated from backend routes - do not edit manually
// Entity mapping: {}

export default {
  pluginName: "core",
  author: "raclette",
  pluginKey: "raclette__core",
  routePrefix: "/raclette__core",
  pluginPath: "/app/src/corePlugins/raclette__core",
  data: {
    account: {
      type: "account",
      operations: {
        getAll: {
          target: "/raclette__core/account/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/account/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        update: {
          target: (payload) => `/raclette__core/account/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--accountUpdated",
              channelKey: "accountUpdated",
              prefix: "raclette__core"
            },
            {
              channel: "dataUpdated",
              channelKey: "broadcastDataUpdated",
              prefix: ""
            }
          ]
        },
        create: {
          target: "/raclette__core/account",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--accountCreated",
              channelKey: "accountCreated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/account/${payload._id}`,
          method: "delete",
          storeActionType: "dataDelete",
          channels: [
            {
              channel: "raclette__core--accountDeleted",
              channelKey: "accountDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/account/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDeleted",
          channels: [
            {
              channel: "raclette__core--accountHardDeleted",
              channelKey: "accountHardDeleted",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    interactionLink: {
      type: "interactionLink",
      operations: {
        getAll: {
          target: "/raclette__core/interactionLink/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/interactionLink/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        update: {
          target: (payload) => `/raclette__core/interactionLink/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--interactionLinkUpdated",
              channelKey: "interactionLinkUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        updateRestore: {
          target: (payload) => `/raclette__core/interactionLink/${payload._id}/restore`,
          method: "patch",
          storeActionType: "dataRestore",
          channels: [
            {
              channel: "raclette__core--interactionLinkRestored",
              channelKey: "interactionLinkRestored",
              prefix: "raclette__core"
            }
          ]
        },
        create: {
          target: "/raclette__core/interactionLink",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--interactionLinkCreated",
              channelKey: "interactionLinkCreated",
              prefix: "raclette__core"
            }
          ]
        },
        createBulk: {
          target: "/raclette__core/interactionLink/bulk",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--interactionLinksCreated",
              channelKey: "interactionLinksCreated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/interactionLink/${payload._id}`,
          method: "delete",
          storeActionType: "dataDelete",
          channels: [
            {
              channel: "raclette__core--interactionLinkDeleted",
              channelKey: "interactionLinkDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/interactionLink/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDelete",
          channels: [
            {
              channel: "raclette__core--interactionLinkHardDeleted",
              channelKey: "interactionLinkHardDeleted",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    project: {
      type: "project",
      operations: {
        getAll: {
          target: "/raclette__core/project/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/project/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        create: {
          target: "/raclette__core/project",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--projectCreated",
              channelKey: "projectCreated",
              prefix: "raclette__core"
            }
          ]
        },
        update: {
          target: (payload) => `/raclette__core/project/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--projectUpdated",
              channelKey: "projectUpdated",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    tag: {
      type: "tag",
      operations: {
        getAll: {
          target: "/raclette__core/tag/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/tag/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        update: {
          target: (payload) => `/raclette__core/tag/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--tagUpdated",
              channelKey: "tagUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        updateRestore: {
          target: (payload) => `/raclette__core/tag/${payload._id}/restore`,
          method: "patch",
          storeActionType: "dataRestore",
          channels: [
            {
              channel: "raclette__core--tagRestored",
              channelKey: "tagRestored",
              prefix: "raclette__core"
            }
          ]
        },
        create: {
          target: (payload) => `/raclette__core/tag/${payload.project}/${payload._id}`,
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--tagCreated",
              channelKey: "tagCreated",
              prefix: "raclette__core"
            }
          ]
        },
        createBulk: {
          target: "/raclette__core/tag/bulk",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--tagsCreated",
              channelKey: "tagsCreated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/tag/${payload._id}`,
          method: "delete",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--tagDeleted",
              channelKey: "tagDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/tag/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDeleted",
          channels: [
            {
              channel: "raclette__core--tagHardDeleted",
              channelKey: "tagHardDeleted",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    user: {
      type: "user",
      operations: {
        getAll: {
          target: "/raclette__core/user/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/user/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        update: {
          target: (payload) => `/raclette__core/user/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--userUpdated",
              channelKey: "userUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        updateSelf: {
          target: "/raclette__core/user/self",
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--userUpdated",
              channelKey: "userUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        updateRestore: {
          target: (payload) => `/raclette__core/user/${payload._id}/restore`,
          method: "patch",
          storeActionType: "dataRestore",
          channels: [
            {
              channel: "raclette__core--userRestored",
              channelKey: "userRestored",
              prefix: "raclette__core"
            }
          ]
        },
        create: {
          target: "/raclette__core/user",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--userCreated",
              channelKey: "userCreated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/user/${payload._id}`,
          method: "delete",
          storeActionType: "dataDelete",
          channels: [
            {
              channel: "raclette__core--userDeleted",
              channelKey: "userDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/user/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDeleted",
          channels: [
            {
              channel: "raclette__core--userHardDeleted",
              channelKey: "userHardDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        updateLastProject: {
          target: (payload) => `/raclette__core/user/last-project/${payload.projectId}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--userUpdated",
              channelKey: "userUpdated",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    workSession: {
      type: "workSession",
      operations: {
        getAll: {
          target: "/raclette__core/workSession/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/workSession/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        create: {
          target: "/raclette__core/workSession",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--workSessionCreated",
              channelKey: "workSessionCreated",
              prefix: "raclette__core"
            }
          ]
        },
        update: {
          target: (payload) => `/raclette__core/workSession/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--workSessionUpdated",
              channelKey: "workSessionUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/workSession/${payload._id}`,
          method: "delete",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--workSessionDeleted",
              channelKey: "workSessionDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/workSession/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDeleted",
          channels: [
            {
              channel: "raclette__core--workSessionHardDeleted",
              channelKey: "workSessionHardDeleted",
              prefix: "raclette__core"
            }
          ]
        }
      }
    },
    composition: {
      type: "composition",
      operations: {
        getAll: {
          target: "/raclette__core/composition/all",
          method: "get",
          storeActionType: "dataRead"
        },
        get: {
          target: (payload) => `/raclette__core/composition/${payload._id}`,
          method: "get",
          storeActionType: "dataRead"
        },
        update: {
          target: (payload) => `/raclette__core/composition/${payload._id}`,
          method: "patch",
          storeActionType: "dataUpdate",
          channels: [
            {
              channel: "raclette__core--compositionUpdated",
              channelKey: "compositionUpdated",
              prefix: "raclette__core"
            }
          ]
        },
        updateRestore: {
          target: (payload) => `/raclette__core/composition/${payload._id}/restore`,
          method: "patch",
          storeActionType: "dataRestore",
          channels: [
            {
              channel: "raclette__core--compositionRestored",
              channelKey: "compositionRestored",
              prefix: "raclette__core"
            }
          ]
        },
        create: {
          target: "/raclette__core/composition",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--compositionCreated",
              channelKey: "compositionCreated",
              prefix: "raclette__core"
            }
          ]
        },
        createBulk: {
          target: "/raclette__core/composition/bulk",
          method: "post",
          storeActionType: "dataCreate",
          channels: [
            {
              channel: "raclette__core--compositionsCreated",
              channelKey: "compositionsCreated",
              prefix: "raclette__core"
            }
          ]
        },
        delete: {
          target: (payload) => `/raclette__core/composition/${payload._id}`,
          method: "delete",
          storeActionType: "dataDelete",
          channels: [
            {
              channel: "raclette__core--compositionDeleted",
              channelKey: "compositionDeleted",
              prefix: "raclette__core"
            }
          ]
        },
        deleteHard: {
          target: (payload) => `/raclette__core/composition/${payload._id}/hard`,
          method: "delete",
          storeActionType: "dataHardDelete",
          channels: [
            {
              channel: "raclette__core--compositionHardDeleted",
              channelKey: "compositionHardDeleted",
              prefix: "raclette__core"
            }
          ]
        }
      }
    }
  }
}
