new sdk for front with vendor entity
This commit is contained in:
@@ -38,6 +38,31 @@ export enum RecurrenceType {
|
||||
SCATTER = "SCATTER",
|
||||
};
|
||||
|
||||
export enum VendorApprovalStatus {
|
||||
PENDING = "PENDING",
|
||||
APPROVED = "APPROVED",
|
||||
SUSPENDED = "SUSPENDED",
|
||||
TERMINATED = "TERMINATED",
|
||||
};
|
||||
|
||||
export enum VendorPlatformType {
|
||||
FULL_PLATFORM = "FULL_PLATFORM",
|
||||
BUILDING_PLATFORM = "BUILDING_PLATFORM",
|
||||
PARTIAL_TECH = "PARTIAL_TECH",
|
||||
TRADITIONAL = "TRADITIONAL",
|
||||
};
|
||||
|
||||
export enum VendorRegion {
|
||||
NATIONAL = "NATIONAL",
|
||||
BAY_AREA = "BAY_AREA",
|
||||
SOUTHERN_CALIFORNIA = "SOUTHERN_CALIFORNIA",
|
||||
NORTHERN_CALIFORNIA = "NORTHERN_CALIFORNIA",
|
||||
WEST = "WEST",
|
||||
EAST = "EAST",
|
||||
MIDWEST = "MIDWEST",
|
||||
SOUTH = "SOUTH",
|
||||
};
|
||||
|
||||
|
||||
|
||||
export interface CreateEventData {
|
||||
@@ -74,6 +99,20 @@ export interface CreateStaffVariables {
|
||||
certifications?: string | null;
|
||||
}
|
||||
|
||||
export interface CreateVendorData {
|
||||
vendor_insert: Vendor_Key;
|
||||
}
|
||||
|
||||
export interface CreateVendorVariables {
|
||||
vendorNumber: string;
|
||||
legalName: string;
|
||||
region: VendorRegion;
|
||||
platformType: VendorPlatformType;
|
||||
primaryContactEmail: string;
|
||||
approvalStatus: VendorApprovalStatus;
|
||||
isActive?: boolean | null;
|
||||
}
|
||||
|
||||
export interface Event_Key {
|
||||
id: UUIDString;
|
||||
__typename?: 'Event_Key';
|
||||
@@ -109,22 +148,40 @@ export interface ListStaffData {
|
||||
} & Staff_Key)[];
|
||||
}
|
||||
|
||||
export interface ListVendorData {
|
||||
vendors: ({
|
||||
id: UUIDString;
|
||||
vendorNumber: string;
|
||||
legalName: string;
|
||||
region: VendorRegion;
|
||||
platformType: VendorPlatformType;
|
||||
primaryContactEmail: string;
|
||||
approvalStatus: VendorApprovalStatus;
|
||||
isActive?: boolean | null;
|
||||
} & Vendor_Key)[];
|
||||
}
|
||||
|
||||
export interface Staff_Key {
|
||||
id: UUIDString;
|
||||
__typename?: 'Staff_Key';
|
||||
}
|
||||
|
||||
interface ListStaffRef {
|
||||
export interface Vendor_Key {
|
||||
id: UUIDString;
|
||||
__typename?: 'Vendor_Key';
|
||||
}
|
||||
|
||||
interface ListVendorRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
(): QueryRef<ListStaffData, undefined>;
|
||||
(): QueryRef<ListVendorData, undefined>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect): QueryRef<ListStaffData, undefined>;
|
||||
(dc: DataConnect): QueryRef<ListVendorData, undefined>;
|
||||
operationName: string;
|
||||
}
|
||||
export const listStaffRef: ListStaffRef;
|
||||
export const listVendorRef: ListVendorRef;
|
||||
|
||||
export function listStaff(): QueryPromise<ListStaffData, undefined>;
|
||||
export function listStaff(dc: DataConnect): QueryPromise<ListStaffData, undefined>;
|
||||
export function listVendor(): QueryPromise<ListVendorData, undefined>;
|
||||
export function listVendor(dc: DataConnect): QueryPromise<ListVendorData, undefined>;
|
||||
|
||||
interface CreateEventRef {
|
||||
/* Allow users to create refs without passing in DataConnect */
|
||||
@@ -162,3 +219,27 @@ 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>;
|
||||
/* Allow users to pass in custom DataConnect instances */
|
||||
(dc: DataConnect, vars: CreateVendorVariables): MutationRef<CreateVendorData, CreateVendorVariables>;
|
||||
operationName: string;
|
||||
}
|
||||
export const createVendorRef: CreateVendorRef;
|
||||
|
||||
export function createVendor(vars: CreateVendorVariables): MutationPromise<CreateVendorData, CreateVendorVariables>;
|
||||
export function createVendor(dc: DataConnect, vars: CreateVendorVariables): MutationPromise<CreateVendorData, CreateVendorVariables>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user