All files / libs/kernel/testing/server/bed/src/test-utils/fixtures/abTastySalesforce customObjectDefinitions.ts

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

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 771x 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 CustomObjectDefinition } from '@amalia/core/models';
import { FormatsEnum } from '@amalia/data-capture/fields/types';
import { CustomObjectDefinitionType } from '@amalia/data-capture/record-models/types';
 
export const customObjectDefinitions = {
  opportunity: {
    id: 'ae220462-9588-42bc-80bc-e637964b157a',
    name: 'Opportunity',
    machineName: 'opportunity',
    externalIds: ['id'],
    type: CustomObjectDefinitionType.SALESFORCE,
    nameField: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    properties: {
      accountId: {
        name: 'AccountId',
        machineName: 'accountId',
        format: FormatsEnum.text,
        isRequired: true,
      },
      amount: {
        name: 'Amount',
        machineName: 'amount',
        format: FormatsEnum.number,
        isRequired: true,
      },
      closeDate: {
        name: 'CloseDate',
        machineName: 'closeDate',
        format: FormatsEnum.date,
        isRequired: true,
      },
      name: {
        name: 'Name',
        machineName: 'name',
        format: FormatsEnum.text,
        isRequired: true,
      },
      ownerId: {
        name: 'OwnerId',
        machineName: 'ownerId',
        format: FormatsEnum.text,
        isRequired: true,
      },
      id: {
        name: 'Id',
        machineName: 'id',
        format: FormatsEnum.text,
        isRequired: true,
      },
    },
  },
  contacts: {
    id: '5187bf7e-fb12-4aec-9e19-7416339ab262',
    name: 'Contacts',
    machineName: 'contacts',
    externalIds: ['id'],
    type: CustomObjectDefinitionType.HUBSPOT,
    nameField: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    properties: {},
  },
  contacts2: {
    id: '81633c35-fae2-48e9-a08d-d2967d3b348e',
    name: 'Contacts 2',
    machineName: 'contacts2',
    externalIds: ['id'],
    type: CustomObjectDefinitionType.HUBSPOT,
    nameField: null,
    createdAt: new Date(),
    updatedAt: new Date(),
    properties: {},
  },
} as const satisfies Record<string, CustomObjectDefinition>;