import { CreateOrUpdateSponsor_createOrUpdateSponsor_sponsor_creator as SponsorCreator } from 'lib/apollo_graphql/__generated__/CreateOrUpdateSponsor' ; import { getMySponsor_mySponsor as SponsorNodeType } from 'lib/apollo_graphql/__generated__/getMySponsor' ; import { SponsorLevelType } from 'lib/apollo_graphql/queries/getSponsorLevels' ; import { action , configure , observable } from 'mobx' ; configure ( { enforceActions : 'observed' } ) ; export class SponsorNode implements SponsorNodeType { __typename : 'SponsorNode' = 'SponsorNode' ; @ observable id : string = '' ; @ observable creator : SponsorCreator | null = null ; @ observable name : string = '' ; @ observable nameKo : string = '' ; @ observable nameEn : string = '' ; @ observable level : SponsorLevelType | null = null ; @ observable desc : string = '' ; @ observable descKo : string = '' ; @ observable descEn : string = '' ; @ observable managerName : string = '' ; @ observable managerEmail : string = '' ; @ observable businessRegistrationNumber : string = '' ; @ observable businessRegistrationFile : any | null ; @ observable url : string | null = null ; @ observable logoImage : any | null ; @ observable logoVector : any | null ; @ observable paidAt : any | null ; @ observable submitted : boolean = false ; @ observable accepted : boolean = false ; @ action setNameKor ( newNameKor ) { this . nameKo = newNameKor ; } @ action setNameEng ( newNameEng ) { this . nameEn = newNameEng ; } @ action setLogoImage ( fileUrl ) { this . logoImage = fileUrl ; } @ action setLogoVector ( fileUrl ) { this . logoVector = fileUrl ; } @ action setManagerName ( newManagerName ) { this . managerName = newManagerName ; } @ action setManagerEmail ( newManagerEmail ) { this . managerEmail = newManagerEmail ; } @ action setBusinessRegistrationNumber ( newBusinessRegistrationNumber ) { this . businessRegistrationNumber = newBusinessRegistrationNumber ; } @ action setBusinessRegistrationFile ( fileUrl ) { this . businessRegistrationFile = fileUrl ; } @ action setUrl ( newUrl ) { this . url = newUrl ; } @ action setDescKo ( newDescKo ) { this . descKo = newDescKo ; } @ action setDescEn ( newDescEn ) { this . descEn = newDescEn ; } @ action setSumitted ( isSumitted ) { this . submitted = isSumitted ; } }