@bit-ui-libs/common
Version:
This library was generated with [Nx](https://nx.dev).
46 lines (42 loc) • 1.11 kB
text/typescript
import {
ApplicationData,
CreateAttachmentInputData,
DeviceData,
GeolocationData,
RelationTypeEnum,
SubjectData,
UpdateAttachmentInputData,
} from '../common';
import { CheckInProperty } from './interfaces';
export interface CreateCheckInEventRequest {
application: ApplicationData;
subject: SubjectData;
device: DeviceData;
// Optional property to link this event to a parent event
// (e.g. link to a Chain Asset event)
event?: {
eventType: string;
eventToken: string;
eventDate: string;
eventRelation: {
relationType: RelationTypeEnum;
rootEventId: string;
};
};
data: {
date: string;
properties?: CheckInProperty[];
attachments?: CreateAttachmentInputData[];
approved?: boolean;
categoryId?: string;
};
}
export type GetCheckInEventsRequest = Record<string, string> & { endUserId?: string };
export interface UpdateCheckInAttachmentRequest {
application: ApplicationData;
eventId: string;
geolocation: GeolocationData;
docs: UpdateAttachmentInputData[];
eventToken?: string;
relationType?: RelationTypeEnum;
}