import { lazy , object , optional , Schema , string } from '../schema' ; import { TeamMember , teamMemberSchema } from './teamMember' ; /** Represents a create request for a `TeamMember` object. */ export interface CreateTeamMemberRequest { /**
     * A unique string that identifies this `CreateTeamMember` request.
     * Keys can be any valid string, but must be unique for every request.
     * For more information, see [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency).
     * The minimum length is 1 and the maximum length is 45.
     */ idempotencyKey ? : string ; /** A record representing an individual team member for a business. */ teamMember ? : TeamMember ; } export const createTeamMemberRequestSchema = object ( { idempotencyKey : [ 'idempotency_key' , optional ( string ( ) ) ] , teamMember : [ 'team_member' , optional ( lazy ( ( ) => teamMemberSchema ) ) ] , } ) ;