new schema for event v.3
This commit is contained in:
@@ -15,6 +15,13 @@ export enum BackgroundCheckStatus {
|
||||
EXPIRED = "EXPIRED",
|
||||
};
|
||||
|
||||
export enum ContractType {
|
||||
W2 = "W2",
|
||||
C1099 = "C1099",
|
||||
TEMP = "TEMP",
|
||||
CONTRACT = "CONTRACT",
|
||||
};
|
||||
|
||||
export enum EmploymentType {
|
||||
FULL_TIME = "FULL_TIME",
|
||||
PART_TIME = "PART_TIME",
|
||||
@@ -71,14 +78,37 @@ export interface CreateEventData {
|
||||
|
||||
export interface CreateEventVariables {
|
||||
eventName: string;
|
||||
isRecurring: boolean;
|
||||
isRapid?: boolean | null;
|
||||
isRecurring?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
recurrenceStartDate?: TimestampString | null;
|
||||
recurrenceEndDate?: TimestampString | null;
|
||||
scatterDates?: string | null;
|
||||
multiDayStartDate?: TimestampString | null;
|
||||
multiDayEndDate?: TimestampString | null;
|
||||
bufferTimeBefore?: number | null;
|
||||
bufferTimeAfter?: number | null;
|
||||
conflictDetectionEnabled?: boolean | null;
|
||||
detectedConflicts?: string | null;
|
||||
businessId: UUIDString;
|
||||
businessName?: string | null;
|
||||
vendorId?: UUIDString | null;
|
||||
vendorName?: string | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
poReference?: string | null;
|
||||
status: EventStatus;
|
||||
date: TimestampString;
|
||||
shifts?: string | null;
|
||||
addons?: string | null;
|
||||
total?: number | null;
|
||||
clientName?: string | null;
|
||||
clientEmail?: string | null;
|
||||
clientPhone?: string | null;
|
||||
invoiceId?: UUIDString | null;
|
||||
notes?: string | null;
|
||||
requested?: number | null;
|
||||
assignedStaff?: string | null;
|
||||
}
|
||||
@@ -113,6 +143,14 @@ export interface CreateVendorVariables {
|
||||
isActive?: boolean | null;
|
||||
}
|
||||
|
||||
export interface DeleteEventData {
|
||||
event_delete?: Event_Key | null;
|
||||
}
|
||||
|
||||
export interface DeleteEventVariables {
|
||||
id: UUIDString;
|
||||
}
|
||||
|
||||
export interface DeleteVendorData {
|
||||
vendor_delete?: Vendor_Key | null;
|
||||
}
|
||||
@@ -126,6 +164,61 @@ export interface Event_Key {
|
||||
__typename?: 'Event_Key';
|
||||
}
|
||||
|
||||
export interface FilterEventsData {
|
||||
events: ({
|
||||
id: UUIDString;
|
||||
eventName: string;
|
||||
status: EventStatus;
|
||||
date: TimestampString;
|
||||
isRapid?: boolean | null;
|
||||
isRecurring?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
recurrenceStartDate?: TimestampString | null;
|
||||
recurrenceEndDate?: TimestampString | null;
|
||||
scatterDates?: string | null;
|
||||
multiDayStartDate?: TimestampString | null;
|
||||
multiDayEndDate?: TimestampString | null;
|
||||
bufferTimeBefore?: number | null;
|
||||
bufferTimeAfter?: number | null;
|
||||
conflictDetectionEnabled?: boolean | null;
|
||||
detectedConflicts?: string | null;
|
||||
businessId: UUIDString;
|
||||
businessName?: string | null;
|
||||
vendorId?: UUIDString | null;
|
||||
vendorName?: string | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
poReference?: string | null;
|
||||
shifts?: string | null;
|
||||
addons?: string | null;
|
||||
total?: number | null;
|
||||
clientName?: string | null;
|
||||
clientEmail?: string | null;
|
||||
clientPhone?: string | null;
|
||||
invoiceId?: UUIDString | null;
|
||||
notes?: string | null;
|
||||
requested?: number | null;
|
||||
assignedStaff?: string | null;
|
||||
} & Event_Key)[];
|
||||
}
|
||||
|
||||
export interface FilterEventsVariables {
|
||||
status?: EventStatus | null;
|
||||
businessId?: UUIDString | null;
|
||||
vendorId?: UUIDString | null;
|
||||
isRecurring?: boolean | null;
|
||||
isRapid?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
date?: TimestampString | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
clientEmail?: string | null;
|
||||
}
|
||||
|
||||
export interface FilterVendorsData {
|
||||
vendors: ({
|
||||
id: UUIDString;
|
||||
@@ -149,6 +242,50 @@ export interface FilterVendorsVariables {
|
||||
platformType?: VendorPlatformType | null;
|
||||
}
|
||||
|
||||
export interface GetEventByIdData {
|
||||
event?: {
|
||||
id: UUIDString;
|
||||
eventName: string;
|
||||
status: EventStatus;
|
||||
date: TimestampString;
|
||||
isRapid?: boolean | null;
|
||||
isRecurring?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
recurrenceStartDate?: TimestampString | null;
|
||||
recurrenceEndDate?: TimestampString | null;
|
||||
scatterDates?: string | null;
|
||||
multiDayStartDate?: TimestampString | null;
|
||||
multiDayEndDate?: TimestampString | null;
|
||||
bufferTimeBefore?: number | null;
|
||||
bufferTimeAfter?: number | null;
|
||||
conflictDetectionEnabled?: boolean | null;
|
||||
detectedConflicts?: string | null;
|
||||
businessId: UUIDString;
|
||||
businessName?: string | null;
|
||||
vendorId?: UUIDString | null;
|
||||
vendorName?: string | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
poReference?: string | null;
|
||||
shifts?: string | null;
|
||||
addons?: string | null;
|
||||
total?: number | null;
|
||||
clientName?: string | null;
|
||||
clientEmail?: string | null;
|
||||
clientPhone?: string | null;
|
||||
invoiceId?: UUIDString | null;
|
||||
notes?: string | null;
|
||||
requested?: number | null;
|
||||
assignedStaff?: string | null;
|
||||
} & Event_Key;
|
||||
}
|
||||
|
||||
export interface GetEventByIdVariables {
|
||||
id: UUIDString;
|
||||
}
|
||||
|
||||
export interface GetVendorByIdData {
|
||||
vendor?: {
|
||||
id: UUIDString;
|
||||
@@ -172,12 +309,37 @@ export interface ListEventsData {
|
||||
eventName: string;
|
||||
status: EventStatus;
|
||||
date: TimestampString;
|
||||
isRecurring: boolean;
|
||||
isRapid?: boolean | null;
|
||||
isRecurring?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
recurrenceStartDate?: TimestampString | null;
|
||||
recurrenceEndDate?: TimestampString | null;
|
||||
scatterDates?: string | null;
|
||||
multiDayStartDate?: TimestampString | null;
|
||||
multiDayEndDate?: TimestampString | null;
|
||||
bufferTimeBefore?: number | null;
|
||||
bufferTimeAfter?: number | null;
|
||||
conflictDetectionEnabled?: boolean | null;
|
||||
detectedConflicts?: string | null;
|
||||
businessId: UUIDString;
|
||||
businessName?: string | null;
|
||||
vendorId?: UUIDString | null;
|
||||
vendorName?: string | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
poReference?: string | null;
|
||||
shifts?: string | null;
|
||||
addons?: string | null;
|
||||
total?: number | null;
|
||||
clientName?: string | null;
|
||||
clientEmail?: string | null;
|
||||
clientPhone?: string | null;
|
||||
invoiceId?: UUIDString | null;
|
||||
notes?: string | null;
|
||||
requested?: number | null;
|
||||
assignedStaff?: string | null;
|
||||
} & Event_Key)[];
|
||||
}
|
||||
|
||||
@@ -214,6 +376,48 @@ export interface Staff_Key {
|
||||
__typename?: 'Staff_Key';
|
||||
}
|
||||
|
||||
export interface UpdateEventData {
|
||||
event_update?: Event_Key | null;
|
||||
}
|
||||
|
||||
export interface UpdateEventVariables {
|
||||
id: UUIDString;
|
||||
eventName?: string | null;
|
||||
isRapid?: boolean | null;
|
||||
isRecurring?: boolean | null;
|
||||
isMultiDay?: boolean | null;
|
||||
recurrenceType?: RecurrenceType | null;
|
||||
recurrenceStartDate?: TimestampString | null;
|
||||
recurrenceEndDate?: TimestampString | null;
|
||||
scatterDates?: string | null;
|
||||
multiDayStartDate?: TimestampString | null;
|
||||
multiDayEndDate?: TimestampString | null;
|
||||
bufferTimeBefore?: number | null;
|
||||
bufferTimeAfter?: number | null;
|
||||
conflictDetectionEnabled?: boolean | null;
|
||||
detectedConflicts?: string | null;
|
||||
businessId?: UUIDString | null;
|
||||
businessName?: string | null;
|
||||
vendorId?: UUIDString | null;
|
||||
vendorName?: string | null;
|
||||
hub?: string | null;
|
||||
eventLocation?: string | null;
|
||||
contractType?: ContractType | null;
|
||||
poReference?: string | null;
|
||||
status?: EventStatus | null;
|
||||
date?: TimestampString | null;
|
||||
shifts?: string | null;
|
||||
addons?: string | null;
|
||||
total?: number | null;
|
||||
clientName?: string | null;
|
||||
clientEmail?: string | null;
|
||||
clientPhone?: string | null;
|
||||
invoiceId?: UUIDString | null;
|
||||
notes?: string | null;
|
||||
requested?: number | null;
|
||||
assignedStaff?: string | null;
|
||||
}
|
||||
|
||||
export interface UpdateVendorData {
|
||||
vendor_update?: Vendor_Key | null;
|
||||
}
|
||||
@@ -234,18 +438,6 @@ export interface Vendor_Key {
|
||||
__typename?: 'Vendor_Key';
|
||||
}
|
||||
|
||||
interface ListEventsRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(): QueryRef<ListEventsData, undefined>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect): QueryRef<ListEventsData, undefined>;
|
||||
operationName: string;
|
||||
}
|
||||
export const listEventsRef: ListEventsRef;
|
||||
|
||||
export function listEvents(): QueryPromise<ListEventsData, undefined>;
|
||||
export function listEvents(dc: DataConnect): QueryPromise<ListEventsData, undefined>;
|
||||
|
||||
interface CreateStaffRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(vars: CreateStaffVariables): MutationRef<CreateStaffData, CreateStaffVariables>;
|
||||
@@ -354,3 +546,63 @@ export const createEventRef: CreateEventRef;
|
||||
export function createEvent(vars: CreateEventVariables): MutationPromise<CreateEventData, CreateEventVariables>;
|
||||
export function createEvent(dc: DataConnect, vars: CreateEventVariables): MutationPromise<CreateEventData, CreateEventVariables>;
|
||||
|
||||
interface UpdateEventRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(vars: UpdateEventVariables): MutationRef<UpdateEventData, UpdateEventVariables>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars: UpdateEventVariables): MutationRef<UpdateEventData, UpdateEventVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const updateEventRef: UpdateEventRef;
|
||||
|
||||
export function updateEvent(vars: UpdateEventVariables): MutationPromise<UpdateEventData, UpdateEventVariables>;
|
||||
export function updateEvent(dc: DataConnect, vars: UpdateEventVariables): MutationPromise<UpdateEventData, UpdateEventVariables>;
|
||||
|
||||
interface DeleteEventRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(vars: DeleteEventVariables): MutationRef<DeleteEventData, DeleteEventVariables>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars: DeleteEventVariables): MutationRef<DeleteEventData, DeleteEventVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const deleteEventRef: DeleteEventRef;
|
||||
|
||||
export function deleteEvent(vars: DeleteEventVariables): MutationPromise<DeleteEventData, DeleteEventVariables>;
|
||||
export function deleteEvent(dc: DataConnect, vars: DeleteEventVariables): MutationPromise<DeleteEventData, DeleteEventVariables>;
|
||||
|
||||
interface ListEventsRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(): QueryRef<ListEventsData, undefined>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect): QueryRef<ListEventsData, undefined>;
|
||||
operationName: string;
|
||||
}
|
||||
export const listEventsRef: ListEventsRef;
|
||||
|
||||
export function listEvents(): QueryPromise<ListEventsData, undefined>;
|
||||
export function listEvents(dc: DataConnect): QueryPromise<ListEventsData, undefined>;
|
||||
|
||||
interface GetEventByIdRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(vars: GetEventByIdVariables): QueryRef<GetEventByIdData, GetEventByIdVariables>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars: GetEventByIdVariables): QueryRef<GetEventByIdData, GetEventByIdVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const getEventByIdRef: GetEventByIdRef;
|
||||
|
||||
export function getEventById(vars: GetEventByIdVariables): QueryPromise<GetEventByIdData, GetEventByIdVariables>;
|
||||
export function getEventById(dc: DataConnect, vars: GetEventByIdVariables): QueryPromise<GetEventByIdData, GetEventByIdVariables>;
|
||||
|
||||
interface FilterEventsRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(vars?: FilterEventsVariables): QueryRef<FilterEventsData, FilterEventsVariables>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars?: FilterEventsVariables): QueryRef<FilterEventsData, FilterEventsVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const filterEventsRef: FilterEventsRef;
|
||||
|
||||
export function filterEvents(vars?: FilterEventsVariables): QueryPromise<FilterEventsData, FilterEventsVariables>;
|
||||
export function filterEvents(dc: DataConnect, vars?: FilterEventsVariables): QueryPromise<FilterEventsData, FilterEventsVariables>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user