import { TEnvironment } from "@formbricks/types/environment";

export const mockEnvironmentId = "clqkr5961000108jyfnjmbjhi";
export const mockSingleUseId = "qj57j3opsw8b5sxgea20fgcq";
export const mockSurveyId = "clqkr8dlv000308jybb08evgr";
export const mockUserId = "qwywazmugeezyfr3zcg9jk8a";
export const mockDisplayId = "clqkr5smu000208jy50v6g5k4";
export const mockId = "ars2tjk8hsi8oqk1uac00mo8";
export const mockPersonId = "clqnj99r9000008lebgf8734j";
export const mockResponseId = "clqnfg59i000208i426pb4wcv";

const createMockDisplay = (overrides = {}) => {
  return {
    id: mockDisplayId,
    createdAt: new Date(),
    updatedAt: new Date(),
    surveyId: mockSurveyId,
    responseId: null,
    personId: null,
    ...overrides,
  };
};

export const mockDisplay = createMockDisplay();

export const mockDisplayWithPersonId = createMockDisplay({ personId: mockPersonId });

export const mockDisplayWithResponseId = createMockDisplay({
  personId: mockPersonId,
  responseId: mockResponseId,
});

export const mockDisplayInput = {
  environmentId: mockEnvironmentId,
  surveyId: mockSurveyId,
};
export const mockDisplayInputWithUserId = {
  ...mockDisplayInput,
  userId: mockUserId,
};
export const mockDisplayInputWithResponseId = {
  ...mockDisplayInputWithUserId,
  responseId: mockResponseId,
};

export const mockDisplayUpdate = {
  environmentId: mockEnvironmentId,
  userId: mockUserId,
  responseId: mockResponseId,
};

export const mockEnvironment: TEnvironment = {
  id: mockId,
  createdAt: new Date(),
  updatedAt: new Date(),
  type: "production",
  projectId: mockId,
  appSetupCompleted: false,
};
