import won from "../../app/service/won.js";

import { complain } from "./uc-complain.js";
import { handleComplaint } from "./uc-handle-complaint.js";
import { customUseCase } from "./uc-custom.js";

import { details, mergeInEmptyDraft } from "../detail-definitions.js";

export const otherGroup = {
  identifier: "othergroup",
  label: "More...",
  icon: undefined,
  useCases: {
    complain: complain,
    handleComplaint: handleComplaint,
    customUseCase: customUseCase,
    groupChat: {
      identifier: "groupChat",
      label: "New Groupchat Post",
      draft: {
        ...mergeInEmptyDraft({
          content: {
            facets: [
              { "@id": "#groupFacet", "@type": won.WON.GroupFacet },
              { "@id": "#holdableFacet", "@type": won.WON.HoldableFacet },
            ],
            defaultFacet: { "@id": "#groupFacet", "@type": won.WON.GroupFacet },
          },
        }),
      },
      details: details,
      seeksDetails: details,
    },
  },
};

import won from "../../app/service/won.js";

import { complain } from "./uc-complain.js";
import { handleComplaint } from "./uc-handle-complaint.js";
import { customUseCase } from "./uc-custom.js";

import { details, mergeInEmptyDraft } from "../detail-definitions.js";

export const otherGroup = {
  identifier: "othergroup",
  label: "More...",
  icon: undefined,
  useCases: {
    complain: complain,
    handleComplaint: handleComplaint,
    customUseCase: customUseCase,
    groupChat: {
      identifier: "groupChat",
      label: "New Groupchat Post",
      draft: {
        ...mergeInEmptyDraft({
          content: {
            facets: {
              "#groupFacet": won.WON.GroupFacet,
              "#holdableFacet": won.WON.HoldableFacet,
            },
            defaultFacet: { "#groupFacet": won.WON.GroupFacet },
          },
        }),
      },
      details: details,
      seeksDetails: details,
    },
  },
};

Change structure of facets and defaultFacet within the useCase-groupChat draft
Change structure of facets and defaultFacet within the useCase-groupChat draft
