new schema for front of vendorRate

This commit is contained in:
José Salazar
2025-11-25 13:01:42 -05:00
parent 44d0b49a25
commit 503093571c
18 changed files with 4634 additions and 1108 deletions

View File

@@ -59,6 +59,18 @@ export enum VendorPlatformType {
TRADITIONAL = "TRADITIONAL",
};
export enum VendorRateCategory {
KITCHEN_AND_CULINARY = "KITCHEN_AND_CULINARY",
CONCESSIONS = "CONCESSIONS",
FACILITIES = "FACILITIES",
BARTENDING = "BARTENDING",
SECURITY = "SECURITY",
EVENT_STAFF = "EVENT_STAFF",
MANAGEMENT = "MANAGEMENT",
TECHNICAL = "TECHNICAL",
OTHER = "OTHER",
};
export enum VendorRegion {
NATIONAL = "NATIONAL",
BAY_AREA = "BAY_AREA",
@@ -133,6 +145,20 @@ export interface CreateVendorData {
vendor_insert: Vendor_Key;
}
export interface CreateVendorRateData {
vendorRate_insert: VendorRate_Key;
}
export interface CreateVendorRateVariables {
vendorName: string;
category: VendorRateCategory;
roleName: string;
employeeWage: number;
markupPercentage?: number | null;
vendorFeePercentage?: number | null;
clientRate: number;
}
export interface CreateVendorVariables {
vendorNumber: string;
legalName: string;
@@ -155,6 +181,14 @@ export interface DeleteVendorData {
vendor_delete?: Vendor_Key | null;
}
export interface DeleteVendorRateData {
vendorRate_delete?: VendorRate_Key | null;
}
export interface DeleteVendorRateVariables {
id: UUIDString;
}
export interface DeleteVendorVariables {
id: UUIDString;
}
@@ -219,6 +253,27 @@ export interface FilterEventsVariables {
clientEmail?: string | null;
}
export interface FilterVendorRatesData {
vendorRates: ({
id: UUIDString;
vendorName: string;
category: VendorRateCategory;
roleName: string;
employeeWage: number;
markupPercentage?: number | null;
vendorFeePercentage?: number | null;
clientRate: number;
} & VendorRate_Key)[];
}
export interface FilterVendorRatesVariables {
vendorName?: string | null;
category?: VendorRateCategory | null;
roleName?: string | null;
minClientRate?: number | null;
maxClientRate?: number | null;
}
export interface FilterVendorsData {
vendors: ({
id: UUIDString;
@@ -303,6 +358,26 @@ export interface GetVendorByIdVariables {
id: UUIDString;
}
export interface GetVendorRateByIdData {
vendorRate?: {
id: UUIDString;
vendorName: string;
category: VendorRateCategory;
roleName: string;
employeeWage: number;
markupPercentage?: number | null;
vendorFeePercentage?: number | null;
clientRate: number;
createdDate?: TimestampString | null;
updatedDate?: TimestampString | null;
createdBy?: string | null;
} & VendorRate_Key;
}
export interface GetVendorRateByIdVariables {
id: UUIDString;
}
export interface ListEventsData {
events: ({
id: UUIDString;
@@ -371,6 +446,19 @@ export interface ListVendorData {
} & Vendor_Key)[];
}
export interface ListVendorRateData {
vendorRates: ({
id: UUIDString;
vendorName: string;
category: VendorRateCategory;
roleName: string;
employeeWage: number;
markupPercentage?: number | null;
vendorFeePercentage?: number | null;
clientRate: number;
} & VendorRate_Key)[];
}
export interface Staff_Key {
id: UUIDString;
__typename?: 'Staff_Key';
@@ -422,6 +510,21 @@ export interface UpdateVendorData {
vendor_update?: Vendor_Key | null;
}
export interface UpdateVendorRateData {
vendorRate_update?: VendorRate_Key | null;
}
export interface UpdateVendorRateVariables {
id: UUIDString;
vendorName?: string | null;
category?: VendorRateCategory | null;
roleName?: string | null;
employeeWage?: number | null;
markupPercentage?: number | null;
vendorFeePercentage?: number | null;
clientRate?: number | null;
}
export interface UpdateVendorVariables {
id: UUIDString;
vendorNumber?: string | null;
@@ -433,35 +536,16 @@ export interface UpdateVendorVariables {
isActive?: boolean | null;
}
export interface VendorRate_Key {
id: UUIDString;
__typename?: 'VendorRate_Key';
}
export interface Vendor_Key {
id: UUIDString;
__typename?: 'Vendor_Key';
}
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>;
interface ListStaffRef {
/* Allow users to create refs without passing in DataConnect */
(): QueryRef<ListStaffData, undefined>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect): QueryRef<ListStaffData, undefined>;
operationName: string;
}
export const listStaffRef: ListStaffRef;
export function listStaff(): QueryPromise<ListStaffData, undefined>;
export function listStaff(dc: DataConnect): QueryPromise<ListStaffData, undefined>;
interface CreateVendorRef {
/* Allow users to create refs without passing in DataConnect */
(vars: CreateVendorVariables): MutationRef<CreateVendorData, CreateVendorVariables>;
@@ -534,6 +618,78 @@ export const filterVendorsRef: FilterVendorsRef;
export function filterVendors(vars?: FilterVendorsVariables): QueryPromise<FilterVendorsData, FilterVendorsVariables>;
export function filterVendors(dc: DataConnect, vars?: FilterVendorsVariables): QueryPromise<FilterVendorsData, FilterVendorsVariables>;
interface CreateVendorRateRef {
/* Allow users to create refs without passing in DataConnect */
(vars: CreateVendorRateVariables): MutationRef<CreateVendorRateData, CreateVendorRateVariables>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect, vars: CreateVendorRateVariables): MutationRef<CreateVendorRateData, CreateVendorRateVariables>;
operationName: string;
}
export const createVendorRateRef: CreateVendorRateRef;
export function createVendorRate(vars: CreateVendorRateVariables): MutationPromise<CreateVendorRateData, CreateVendorRateVariables>;
export function createVendorRate(dc: DataConnect, vars: CreateVendorRateVariables): MutationPromise<CreateVendorRateData, CreateVendorRateVariables>;
interface UpdateVendorRateRef {
/* Allow users to create refs without passing in DataConnect */
(vars: UpdateVendorRateVariables): MutationRef<UpdateVendorRateData, UpdateVendorRateVariables>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect, vars: UpdateVendorRateVariables): MutationRef<UpdateVendorRateData, UpdateVendorRateVariables>;
operationName: string;
}
export const updateVendorRateRef: UpdateVendorRateRef;
export function updateVendorRate(vars: UpdateVendorRateVariables): MutationPromise<UpdateVendorRateData, UpdateVendorRateVariables>;
export function updateVendorRate(dc: DataConnect, vars: UpdateVendorRateVariables): MutationPromise<UpdateVendorRateData, UpdateVendorRateVariables>;
interface DeleteVendorRateRef {
/* Allow users to create refs without passing in DataConnect */
(vars: DeleteVendorRateVariables): MutationRef<DeleteVendorRateData, DeleteVendorRateVariables>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect, vars: DeleteVendorRateVariables): MutationRef<DeleteVendorRateData, DeleteVendorRateVariables>;
operationName: string;
}
export const deleteVendorRateRef: DeleteVendorRateRef;
export function deleteVendorRate(vars: DeleteVendorRateVariables): MutationPromise<DeleteVendorRateData, DeleteVendorRateVariables>;
export function deleteVendorRate(dc: DataConnect, vars: DeleteVendorRateVariables): MutationPromise<DeleteVendorRateData, DeleteVendorRateVariables>;
interface ListVendorRateRef {
/* Allow users to create refs without passing in DataConnect */
(): QueryRef<ListVendorRateData, undefined>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect): QueryRef<ListVendorRateData, undefined>;
operationName: string;
}
export const listVendorRateRef: ListVendorRateRef;
export function listVendorRate(): QueryPromise<ListVendorRateData, undefined>;
export function listVendorRate(dc: DataConnect): QueryPromise<ListVendorRateData, undefined>;
interface GetVendorRateByIdRef {
/* Allow users to create refs without passing in DataConnect */
(vars: GetVendorRateByIdVariables): QueryRef<GetVendorRateByIdData, GetVendorRateByIdVariables>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect, vars: GetVendorRateByIdVariables): QueryRef<GetVendorRateByIdData, GetVendorRateByIdVariables>;
operationName: string;
}
export const getVendorRateByIdRef: GetVendorRateByIdRef;
export function getVendorRateById(vars: GetVendorRateByIdVariables): QueryPromise<GetVendorRateByIdData, GetVendorRateByIdVariables>;
export function getVendorRateById(dc: DataConnect, vars: GetVendorRateByIdVariables): QueryPromise<GetVendorRateByIdData, GetVendorRateByIdVariables>;
interface FilterVendorRatesRef {
/* Allow users to create refs without passing in DataConnect */
(vars?: FilterVendorRatesVariables): QueryRef<FilterVendorRatesData, FilterVendorRatesVariables>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect, vars?: FilterVendorRatesVariables): QueryRef<FilterVendorRatesData, FilterVendorRatesVariables>;
operationName: string;
}
export const filterVendorRatesRef: FilterVendorRatesRef;
export function filterVendorRates(vars?: FilterVendorRatesVariables): QueryPromise<FilterVendorRatesData, FilterVendorRatesVariables>;
export function filterVendorRates(dc: DataConnect, vars?: FilterVendorRatesVariables): QueryPromise<FilterVendorRatesData, FilterVendorRatesVariables>;
interface CreateEventRef {
/* Allow users to create refs without passing in DataConnect */
(vars: CreateEventVariables): MutationRef<CreateEventData, CreateEventVariables>;
@@ -606,3 +762,27 @@ export const filterEventsRef: FilterEventsRef;
export function filterEvents(vars?: FilterEventsVariables): QueryPromise<FilterEventsData, FilterEventsVariables>;
export function filterEvents(dc: DataConnect, vars?: FilterEventsVariables): QueryPromise<FilterEventsData, FilterEventsVariables>;
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>;
interface ListStaffRef {
/* Allow users to create refs without passing in DataConnect */
(): QueryRef<ListStaffData, undefined>;
/* Allow users to pass in custom DataConnect instances */
(dc: DataConnect): QueryRef<ListStaffData, undefined>;
operationName: string;
}
export const listStaffRef: ListStaffRef;
export function listStaff(): QueryPromise<ListStaffData, undefined>;
export function listStaff(dc: DataConnect): QueryPromise<ListStaffData, undefined>;