All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/abTasty customReports.ts

100% Statements 94/94
100% Branches 0/0
100% Functions 0/0
100% Lines 94/94

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 951x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { type CustomReport } from '@amalia/core/models';
import { PlanIsHiddenQueryChoices } from '@amalia/payout-definition/plans/types';
import { CustomReportSourceIdentifier } from '@amalia/reporting/custom-reports/shared';
 
import { users } from './users';
 
export const customReports = {
  statementReport1: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a4a',
    name: 'STATEMENT_REPORT1',
    source: CustomReportSourceIdentifier.RULE_METRIC,
    dataSourceConfiguration: { planHiddenStatus: PlanIsHiddenQueryChoices.LIVE },
    configuration: {
      fields: [],
      joins: [],
    },
    user: users.admin,
    isAccessibleFromApi: true,
    createdAt: new Date(),
    updatedAt: new Date(),
  },
  statementReport2: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a4b',
    name: 'STATEMENT_REPORT2',
    source: CustomReportSourceIdentifier.RULE_METRIC,
    dataSourceConfiguration: { planHiddenStatus: PlanIsHiddenQueryChoices.LIVE },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
  statementReport3: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a4c',
    name: 'STATEMENT_REPORT3',
    source: CustomReportSourceIdentifier.RULE_METRIC,
    dataSourceConfiguration: { planHiddenStatus: PlanIsHiddenQueryChoices.LIVE },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
  statementReport4: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a4d',
    name: 'STATEMENT_REPORT4',
    source: CustomReportSourceIdentifier.RULE_METRIC,
    dataSourceConfiguration: { planHiddenStatus: PlanIsHiddenQueryChoices.LIVE },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
  recordReport1: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a5a',
    name: 'RECORD_REPORT1',
    source: CustomReportSourceIdentifier.RECORD_METRIC,
    dataSourceConfiguration: {
      planHiddenStatus: PlanIsHiddenQueryChoices.LIVE,
      customObjectDefinitionMachineName: 'deals',
    },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
  recordReport2: {
    id: '569b54cc-2f8f-4359-9a69-5c7755608a5b',
    name: 'RECORD_REPORT2',
    source: CustomReportSourceIdentifier.RECORD_METRIC,
    dataSourceConfiguration: {
      planHiddenStatus: PlanIsHiddenQueryChoices.LIVE,
      customObjectDefinitionMachineName: 'deals',
    },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
  paymentReport1: {
    id: '8d57c098-3a52-4843-a60c-de8ec2cc7c16',
    name: 'PAYMENT_REPORT1',
    source: CustomReportSourceIdentifier.PAYMENT,
    dataSourceConfiguration: { planHiddenStatus: PlanIsHiddenQueryChoices.LIVE },
    user: users.admin,
    createdAt: new Date(),
    updatedAt: new Date(),
    configuration: { fields: [] },
    isAccessibleFromApi: true,
  },
} as const satisfies Record<string, CustomReport>;