new sdk of staffs to front
This commit is contained in:
@@ -8,6 +8,20 @@ export type Int64String = string;
|
||||
export type DateString = string;
|
||||
|
||||
|
||||
export enum BackgroundCheckStatus {
|
||||
PENDING = "PENDING",
|
||||
CLEARED = "CLEARED",
|
||||
FAILED = "FAILED",
|
||||
EXPIRED = "EXPIRED",
|
||||
};
|
||||
|
||||
export enum EmploymentType {
|
||||
FULL_TIME = "FULL_TIME",
|
||||
PART_TIME = "PART_TIME",
|
||||
ON_CALL = "ON_CALL",
|
||||
CONTRACT = "CONTRACT",
|
||||
};
|
||||
|
||||
export enum EventStatus {
|
||||
DRAFT = "DRAFT",
|
||||
ACTIVE = "ACTIVE",
|
||||
@@ -44,6 +58,22 @@ export interface CreateEventVariables {
|
||||
assignedStaff?: string | null;
|
||||
}
|
||||
|
||||
export interface CreateStaffData {
|
||||
staff_insert: Staff_Key;
|
||||
}
|
||||
|
||||
export interface CreateStaffVariables {
|
||||
employeeName: string;
|
||||
vendorId?: UUIDString | null;
|
||||
email?: string | null;
|
||||
position?: string | null;
|
||||
employmentType: EmploymentType;
|
||||
rating?: number | null;
|
||||
reliabilityScore?: number | null;
|
||||
backgroundCheckStatus: BackgroundCheckStatus;
|
||||
certifications?: string | null;
|
||||
}
|
||||
|
||||
export interface Event_Key {
|
||||
id: UUIDString;
|
||||
__typename?: 'Event_Key';
|
||||
@@ -64,17 +94,37 @@ export interface ListEventsData {
|
||||
} & Event_Key)[];
|
||||
}
|
||||
|
||||
interface ListEventsRef {
|
||||
export interface ListStaffData {
|
||||
staffs: ({
|
||||
id: UUIDString;
|
||||
employeeName: string;
|
||||
vendorId?: UUIDString | null;
|
||||
email?: string | null;
|
||||
position?: string | null;
|
||||
employmentType: EmploymentType;
|
||||
rating?: number | null;
|
||||
reliabilityScore?: number | null;
|
||||
backgroundCheckStatus: BackgroundCheckStatus;
|
||||
certifications?: string | null;
|
||||
} & Staff_Key)[];
|
||||
}
|
||||
|
||||
export interface Staff_Key {
|
||||
id: UUIDString;
|
||||
__typename?: 'Staff_Key';
|
||||
}
|
||||
|
||||
interface ListStaffRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(): QueryRef<ListEventsData, undefined>;
|
||||
(): QueryRef<ListStaffData, undefined>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect): QueryRef<ListEventsData, undefined>;
|
||||
(dc: DataConnect): QueryRef<ListStaffData, undefined>;
|
||||
operationName: string;
|
||||
}
|
||||
export const listEventsRef: ListEventsRef;
|
||||
export const listStaffRef: ListStaffRef;
|
||||
|
||||
export function listEvents(): QueryPromise<ListEventsData, undefined>;
|
||||
export function listEvents(dc: DataConnect): QueryPromise<ListEventsData, undefined>;
|
||||
export function listStaff(): QueryPromise<ListStaffData, undefined>;
|
||||
export function listStaff(dc: DataConnect): QueryPromise<ListStaffData, undefined>;
|
||||
|
||||
interface CreateEventRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
@@ -88,3 +138,27 @@ export const createEventRef: CreateEventRef;
|
||||
export function createEvent(vars: CreateEventVariables): MutationPromise<CreateEventData, CreateEventVariables>;
|
||||
export function createEvent(dc: DataConnect, vars: CreateEventVariables): MutationPromise<CreateEventData, CreateEventVariables>;
|
||||
|
||||
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>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars: CreateStaffVariables): MutationRef<CreateStaffData, CreateStaffVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const createStaffRef: CreateStaffRef;
|
||||
|
||||
export function createStaff(vars: CreateStaffVariables): MutationPromise<CreateStaffData, CreateStaffVariables>;
|
||||
export function createStaff(dc: DataConnect, vars: CreateStaffVariables): MutationPromise<CreateStaffData, CreateStaffVariables>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user