diff --git a/api/domaintype/EFx.go b/api/domaintype/EFx.go index 36baa78..ae0f412 100644 --- a/api/domaintype/EFx.go +++ b/api/domaintype/EFx.go @@ -30,6 +30,7 @@ type EFxModuleType struct { IsSmartBar bool IsSmsQuiz bool IsTeams bool + IsLeadRetrieval bool IsAdminOnly bool IconURL string DependencyNFC bool @@ -38,6 +39,27 @@ type EFxModuleType struct { CompatibilitySMS bool } +type EFxScreenType struct { + Slug string + Name string + Description string + IsScanView bool + IsFailureView bool + IsCheckOutView bool + IsSuccessView bool + IsRegisterSuccessView bool + IsRegisterScanView bool + IsRegisterFailureView bool +} + +type EFxStationType struct { + Slug string + Name string + Description string + IsCheckIn bool + IsCheckInOut bool +} + func (f *EFx) ListEFxModuleTypes() []EFxModuleType { return []EFxModuleType{ { @@ -59,6 +81,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/guest-management.png`, DependencyNFC: true, @@ -85,6 +108,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/access.png`, DependencyNFC: true, @@ -111,6 +135,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: true, IconURL: `https://cdn.eventfarm.com/platform/img/icons/nike.png`, DependencyNFC: true, @@ -137,6 +162,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/concierge.png`, DependencyNFC: true, @@ -163,6 +189,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/digital-memory-bank.png`, DependencyNFC: false, @@ -189,6 +216,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: true, IconURL: `https://cdn.eventfarm.com/platform/img/icons/access.png`, DependencyNFC: true, @@ -215,6 +243,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/messaging.png`, DependencyNFC: false, @@ -241,6 +270,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: true, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/polling.png`, DependencyNFC: false, @@ -267,6 +297,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/product-pickup.png`, DependencyNFC: true, @@ -293,6 +324,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/raffle.png`, DependencyNFC: true, @@ -319,6 +351,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/reservation.png`, DependencyNFC: true, @@ -345,6 +378,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/photographer.png`, DependencyNFC: false, @@ -371,6 +405,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: true, IsSmsQuiz: false, IsTeams: false, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/smartbar-vertical.png`, DependencyNFC: true, @@ -397,6 +432,7 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { IsSmartBar: false, IsSmsQuiz: false, IsTeams: true, + IsLeadRetrieval: false, IsAdminOnly: false, IconURL: `https://cdn.eventfarm.com/platform/img/icons/teams.png`, DependencyNFC: false, @@ -404,5 +440,140 @@ func (f *EFx) ListEFxModuleTypes() []EFxModuleType { CompatibilityNFC: false, CompatibilitySMS: true, }, + { + Id: `LeadRetrieval`, + Slug: `lead-retrieval`, + Name: `Lead Retrieval`, + Description: `Get leads for your events`, + IsAccessControl: false, + IsGuestManagement: false, + IsConcierge: false, + IsAthleteBag: false, + IsDigitalMemoryBank: false, + IsGuestInfo: false, + IsMessaging: false, + IsProductPickup: false, + IsRaffle: false, + IsReservation: false, + IsRoamingPhotographer: false, + IsSmartBar: false, + IsSmsQuiz: false, + IsTeams: false, + IsLeadRetrieval: true, + IsAdminOnly: false, + IconURL: `https://cdn.eventfarm.com/platform/img/icons/lead-retrieval.png`, + DependencyNFC: false, + DependencySMS: false, + CompatibilityNFC: true, + CompatibilitySMS: false, + }, + } +} + +func (f *EFx) ListEFxScreenTypes() []EFxScreenType { + return []EFxScreenType{ + { + Slug: `scan-view`, + Name: `Scan View`, + Description: ``, + IsScanView: true, + IsFailureView: false, + IsCheckOutView: false, + IsSuccessView: false, + IsRegisterSuccessView: false, + IsRegisterScanView: false, + IsRegisterFailureView: false, + }, + { + Slug: `failure-view`, + Name: `Failure View`, + Description: ``, + IsScanView: false, + IsFailureView: true, + IsCheckOutView: false, + IsSuccessView: false, + IsRegisterSuccessView: false, + IsRegisterScanView: false, + IsRegisterFailureView: false, + }, + { + Slug: `check-out-view`, + Name: `Check Out View`, + Description: ``, + IsScanView: false, + IsFailureView: false, + IsCheckOutView: true, + IsSuccessView: false, + IsRegisterSuccessView: false, + IsRegisterScanView: false, + IsRegisterFailureView: false, + }, + { + Slug: `success-view`, + Name: `Success View`, + Description: ``, + IsScanView: false, + IsFailureView: false, + IsCheckOutView: false, + IsSuccessView: true, + IsRegisterSuccessView: false, + IsRegisterScanView: false, + IsRegisterFailureView: false, + }, + { + Slug: `register-success-view`, + Name: `Register Success View`, + Description: ``, + IsScanView: false, + IsFailureView: false, + IsCheckOutView: false, + IsSuccessView: false, + IsRegisterSuccessView: true, + IsRegisterScanView: false, + IsRegisterFailureView: false, + }, + { + Slug: `register-scan-view`, + Name: `Register Scan View`, + Description: ``, + IsScanView: false, + IsFailureView: false, + IsCheckOutView: false, + IsSuccessView: false, + IsRegisterSuccessView: false, + IsRegisterScanView: true, + IsRegisterFailureView: false, + }, + { + Slug: `register-failure-view`, + Name: `Register Failure View`, + Description: ``, + IsScanView: false, + IsFailureView: false, + IsCheckOutView: false, + IsSuccessView: false, + IsRegisterSuccessView: false, + IsRegisterScanView: false, + IsRegisterFailureView: true, + }, + } +} + +func (f *EFx) ListEFxStationTypes() []EFxStationType { + return []EFxStationType{ + { + Slug: `check-in`, + Name: `CheckIn`, + Description: ``, + IsCheckIn: true, + IsCheckInOut: false, + }, + { + Slug: `check-in-out`, + Name: `CheckInOut`, + Description: ``, + IsCheckIn: false, + IsCheckInOut: true, + }, } } diff --git a/api/domaintype/EmailMessage.go b/api/domaintype/EmailMessage.go index 64582b3..1c7e88e 100644 --- a/api/domaintype/EmailMessage.go +++ b/api/domaintype/EmailMessage.go @@ -42,6 +42,7 @@ type EmailArchiveSubCategoryType struct { IsNoShow bool IsWaitList bool IsNone bool + IsExhibitor bool } type EmailMessageType struct { @@ -310,6 +311,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `group`, @@ -323,6 +325,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `eventcheckedin`, @@ -336,6 +339,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `tickettype`, @@ -349,6 +353,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `preview`, @@ -362,6 +367,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `noshow`, @@ -375,6 +381,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: true, IsWaitList: false, IsNone: false, + IsExhibitor: false, }, { Slug: `waitlist`, @@ -388,6 +395,7 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: true, IsNone: false, + IsExhibitor: false, }, { Slug: `None`, @@ -401,6 +409,21 @@ func (f *EmailMessage) ListEmailArchiveSubCategoryTypes() []EmailArchiveSubCateg IsNoShow: false, IsWaitList: false, IsNone: true, + IsExhibitor: false, + }, + { + Slug: `exhibitor`, + Name: `Exhibitor`, + Description: ``, + IsTicketBlock: false, + IsGroup: false, + IsEventCheckedIn: false, + IsTicketType: false, + IsPreview: false, + IsNoShow: false, + IsWaitList: false, + IsNone: false, + IsExhibitor: true, }, } } diff --git a/api/domaintype/Integration.go b/api/domaintype/Integration.go index bedbf92..bf509ed 100644 --- a/api/domaintype/Integration.go +++ b/api/domaintype/Integration.go @@ -93,6 +93,11 @@ func (f *Integration) ListUserAttributeInfoFieldTypes() []UserAttributeInfoField Name: `Telephone`, Description: ``, }, + { + Slug: `user-email-unsubscribe`, + Name: `Email Unsubscribe`, + Description: ``, + }, { Slug: `newCustomField`, Name: `New Custom Field`, diff --git a/api/domaintype/Lead.go b/api/domaintype/Lead.go new file mode 100644 index 0000000..5211d21 --- /dev/null +++ b/api/domaintype/Lead.go @@ -0,0 +1,63 @@ +/** + * This file was auto generated, please do not edit it directly. +**/ + +package domaintype + +type Lead struct { +} + +func NewLead() *Lead { + return &Lead{} +} + +type LeadTemperatureType struct { + Slug string + Name string + Description string + IsCold bool + IsWarm bool + IsHot bool + IsNotSet bool +} + +func (f *Lead) ListLeadTemperatureTypes() []LeadTemperatureType { + return []LeadTemperatureType{ + { + Slug: `not-set`, + Name: `Not Set`, + Description: ``, + IsCold: false, + IsWarm: false, + IsHot: false, + IsNotSet: true, + }, + { + Slug: `cold`, + Name: `Cold`, + Description: ``, + IsCold: true, + IsWarm: false, + IsHot: false, + IsNotSet: false, + }, + { + Slug: `warm`, + Name: `Warm`, + Description: ``, + IsCold: false, + IsWarm: true, + IsHot: false, + IsNotSet: false, + }, + { + Slug: `hot`, + Name: `Hot`, + Description: ``, + IsCold: false, + IsWarm: false, + IsHot: true, + IsNotSet: false, + }, + } +} diff --git a/api/domaintype/Pool.go b/api/domaintype/Pool.go index 293ecd4..bfb2dba 100644 --- a/api/domaintype/Pool.go +++ b/api/domaintype/Pool.go @@ -44,6 +44,7 @@ type FeatureType struct { IsWebConference bool IsQuestionLogic bool IsHealthPass bool + IsExhibitors bool IsLogi bool } @@ -120,6 +121,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -155,6 +157,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -190,6 +193,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -225,6 +229,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -260,6 +265,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -295,6 +301,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -330,6 +337,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -365,6 +373,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -400,6 +409,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -435,6 +445,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -470,6 +481,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -505,6 +517,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -540,6 +553,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -575,6 +589,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -610,6 +625,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -645,6 +661,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -680,6 +697,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -715,6 +733,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -750,6 +769,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -785,6 +805,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -820,6 +841,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -855,6 +877,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -890,6 +913,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -925,6 +949,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -960,6 +985,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -995,6 +1021,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -1030,6 +1057,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: true, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -1065,6 +1093,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: true, + IsExhibitors: false, IsLogi: false, }, { @@ -1100,6 +1129,7 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: true, IsHealthPass: false, + IsExhibitors: false, IsLogi: false, }, { @@ -1135,8 +1165,45 @@ func (f *Pool) ListFeatureTypes() []FeatureType { IsWebConference: false, IsQuestionLogic: false, IsHealthPass: false, + IsExhibitors: false, IsLogi: true, }, + { + Slug: `exhibitors`, + Name: `Exhibitors`, + Description: ``, + IsSalesforce: false, + IsApiAccess: false, + IsMarketo: false, + IsEmailMasking: false, + IsWhiteLabeling: false, + IsAgents: false, + IsVisaCheckout: false, + IsCanvas: false, + IsHarvesterPPP: false, + IsAccessControlEFx: false, + IsAthleteBagEFx: false, + IsConciergeEFx: false, + IsDigitalMemoryBankEFx: false, + IsGuestInfoEFx: false, + IsMessagingEFx: false, + IsSmsQuizEFx: false, + IsProductPickupEFx: false, + IsRaffleEFx: false, + IsReservationEFx: false, + IsRoamingPhotogEFx: false, + IsSmartBarEFx: false, + IsTeamsEFx: false, + IsEventApp: false, + IsChildEvents: false, + IsWaitlist: false, + IsVirbela: false, + IsWebConference: false, + IsQuestionLogic: false, + IsHealthPass: false, + IsExhibitors: true, + IsLogi: false, + }, } } diff --git a/api/domaintype/Profile.go b/api/domaintype/Profile.go new file mode 100644 index 0000000..26b73fe --- /dev/null +++ b/api/domaintype/Profile.go @@ -0,0 +1,88 @@ +/** + * This file was auto generated, please do not edit it directly. +**/ + +package domaintype + +type Profile struct { +} + +func NewProfile() *Profile { + return &Profile{} +} + +type EventProfileType struct { + Slug string + Name string + Description string + IsSpeaker bool + IsPresenter bool + IsSponsor bool +} + +type ProfileType struct { + Slug string + Name string + Description string + IsPerson bool + IsCompany bool + IsOther bool +} + +func (f *Profile) ListEventProfileTypes() []EventProfileType { + return []EventProfileType{ + { + Slug: `speaker`, + Name: `Speaker`, + Description: ``, + IsSpeaker: true, + IsPresenter: false, + IsSponsor: false, + }, + { + Slug: `presenter`, + Name: `Presenter`, + Description: ``, + IsSpeaker: false, + IsPresenter: true, + IsSponsor: false, + }, + { + Slug: `sponsor`, + Name: `Sponsor`, + Description: ``, + IsSpeaker: false, + IsPresenter: false, + IsSponsor: true, + }, + } +} + +func (f *Profile) ListProfileTypes() []ProfileType { + return []ProfileType{ + { + Slug: `person`, + Name: `Person`, + Description: ``, + IsPerson: true, + IsCompany: false, + IsOther: false, + }, + { + Slug: `company`, + Name: `Company`, + Description: ``, + IsPerson: false, + IsCompany: true, + IsOther: false, + }, + { + Slug: `other`, + Name: `Other`, + Description: ``, + IsPerson: false, + IsCompany: false, + IsOther: true, + }, + } +} diff --git a/api/domaintype/User.go b/api/domaintype/User.go index c43e609..4439518 100644 --- a/api/domaintype/User.go +++ b/api/domaintype/User.go @@ -34,33 +34,34 @@ type ProviderType struct { } type RoleType struct { - Slug string - Name string - Description string - IsNone bool - IsUser bool - IsAdmin bool - IsEventCrud bool - IsEventView bool - IsTicketBlockCrud bool - IsTicketBlockView bool - IsAddressBookCrud bool - IsAddressBookView bool - IsUserCrud bool - IsUserView bool - IsListView bool - IsListCrud bool - IsUpload bool - IsEmail bool - IsReports bool - IsMassRemove bool - IsCustomLayout bool - IsPayments bool - IsWillCall bool - IsPartner bool - IsInventoryRecords bool - IsContestScores bool - IsPoolContact bool + Slug string + Name string + Description string + IsNone bool + IsUser bool + IsAdmin bool + IsEventCrud bool + IsEventView bool + IsTicketBlockCrud bool + IsTicketBlockView bool + IsAddressBookCrud bool + IsAddressBookView bool + IsUserCrud bool + IsUserView bool + IsListView bool + IsListCrud bool + IsUpload bool + IsEmail bool + IsReports bool + IsMassRemove bool + IsCustomLayout bool + IsPayments bool + IsWillCall bool + IsPartner bool + IsInventoryRecords bool + IsContestScores bool + IsPoolContact bool + IsExhibitorTeamMember bool } type TokenStateType struct { @@ -115,6 +116,7 @@ type UserRoleType struct { IsEvents bool IsTicketblocks bool IsPools bool + IsExhibitors bool } type UserUnsubscribePreferenceType struct { @@ -240,700 +242,754 @@ func (f *User) ListProviderTypes() []ProviderType { func (f *User) ListRoleTypes() []RoleType { return []RoleType{ { - Slug: `none`, - Name: `None`, - Description: ``, - IsNone: true, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `user`, - Name: `User`, - Description: ``, - IsNone: false, - IsUser: true, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `admin`, - Name: `Admin`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: true, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `event-crud`, - Name: `Event CRUD`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: true, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `event-view`, - Name: `Event View`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: true, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `ticket-block-crud`, - Name: `TicketBlock CRUD`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: true, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `ticket-block-view`, - Name: `TicketBlock View`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: true, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `address-book-crud`, - Name: `Address Book CRUD`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: true, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `address-book-view`, - Name: `Address Book View`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: true, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `user-crud`, - Name: `User CRUD`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: true, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `user-view`, - Name: `User View`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: true, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `list-view`, - Name: `List View`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: true, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `list-crud`, - Name: `List CRUD`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: true, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `upload`, - Name: `Upload`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: true, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `email`, - Name: `Email`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: true, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `reports`, - Name: `Reports`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: true, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `mass-remove`, - Name: `Mass Remove`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: true, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `custom-layout`, - Name: `Custom Layout`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: true, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `payments`, - Name: `Payments`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: true, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `will-call`, - Name: `Will Call`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: true, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `partner`, - Name: `Partner`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: true, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `inventory-records`, - Name: `Inventory Records`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: true, - IsContestScores: false, - IsPoolContact: false, - }, - { - Slug: `contest-scores`, - Name: `Contest Scores`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: true, - IsPoolContact: false, - }, - { - Slug: `pool-contact`, - Name: `Pool Contact`, - Description: ``, - IsNone: false, - IsUser: false, - IsAdmin: false, - IsEventCrud: false, - IsEventView: false, - IsTicketBlockCrud: false, - IsTicketBlockView: false, - IsAddressBookCrud: false, - IsAddressBookView: false, - IsUserCrud: false, - IsUserView: false, - IsListView: false, - IsListCrud: false, - IsUpload: false, - IsEmail: false, - IsReports: false, - IsMassRemove: false, - IsCustomLayout: false, - IsPayments: false, - IsWillCall: false, - IsPartner: false, - IsInventoryRecords: false, - IsContestScores: false, - IsPoolContact: true, + Slug: `none`, + Name: `None`, + Description: ``, + IsNone: true, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `user`, + Name: `User`, + Description: ``, + IsNone: false, + IsUser: true, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `admin`, + Name: `Admin`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: true, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `event-crud`, + Name: `Event CRUD`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: true, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `event-view`, + Name: `Event View`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: true, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `ticket-block-crud`, + Name: `TicketBlock CRUD`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: true, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `ticket-block-view`, + Name: `TicketBlock View`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: true, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `address-book-crud`, + Name: `Address Book CRUD`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: true, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `address-book-view`, + Name: `Address Book View`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: true, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `user-crud`, + Name: `User CRUD`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: true, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `user-view`, + Name: `User View`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: true, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `list-view`, + Name: `List View`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: true, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `list-crud`, + Name: `List CRUD`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: true, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `upload`, + Name: `Upload`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: true, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `email`, + Name: `Email`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: true, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `reports`, + Name: `Reports`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: true, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `mass-remove`, + Name: `Mass Remove`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: true, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `custom-layout`, + Name: `Custom Layout`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: true, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `payments`, + Name: `Payments`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: true, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `will-call`, + Name: `Will Call`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: true, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `partner`, + Name: `Partner`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: true, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `inventory-records`, + Name: `Inventory Records`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: true, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `contest-scores`, + Name: `Contest Scores`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: true, + IsPoolContact: false, + IsExhibitorTeamMember: false, + }, + { + Slug: `pool-contact`, + Name: `Pool Contact`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: true, + IsExhibitorTeamMember: false, + }, + { + Slug: `exhibitor-team-member`, + Name: `Exhibitor Team Member`, + Description: ``, + IsNone: false, + IsUser: false, + IsAdmin: false, + IsEventCrud: false, + IsEventView: false, + IsTicketBlockCrud: false, + IsTicketBlockView: false, + IsAddressBookCrud: false, + IsAddressBookView: false, + IsUserCrud: false, + IsUserView: false, + IsListView: false, + IsListCrud: false, + IsUpload: false, + IsEmail: false, + IsReports: false, + IsMassRemove: false, + IsCustomLayout: false, + IsPayments: false, + IsWillCall: false, + IsPartner: false, + IsInventoryRecords: false, + IsContestScores: false, + IsPoolContact: false, + IsExhibitorTeamMember: true, }, } } @@ -1238,6 +1294,7 @@ func (f *User) ListUserRoleTypes() []UserRoleType { IsEvents: false, IsTicketblocks: false, IsPools: false, + IsExhibitors: false, }, { Slug: `events`, @@ -1247,6 +1304,7 @@ func (f *User) ListUserRoleTypes() []UserRoleType { IsEvents: true, IsTicketblocks: false, IsPools: false, + IsExhibitors: false, }, { Slug: `ticketblocks`, @@ -1256,6 +1314,7 @@ func (f *User) ListUserRoleTypes() []UserRoleType { IsEvents: false, IsTicketblocks: true, IsPools: false, + IsExhibitors: false, }, { Slug: `pools`, @@ -1265,6 +1324,17 @@ func (f *User) ListUserRoleTypes() []UserRoleType { IsEvents: false, IsTicketblocks: false, IsPools: true, + IsExhibitors: false, + }, + { + Slug: `exhibitors`, + Name: `Exhibitors`, + Description: ``, + IsGlobal: false, + IsEvents: false, + IsTicketblocks: false, + IsPools: false, + IsExhibitors: true, }, } } diff --git a/api/domaintype/factory.go b/api/domaintype/factory.go index 0823416..a423845 100644 --- a/api/domaintype/factory.go +++ b/api/domaintype/factory.go @@ -67,6 +67,10 @@ func (f *Factory) Invitation() *Invitation { return NewInvitation() } +func (f *Factory) Lead() *Lead { + return NewLead() +} + func (f *Factory) PaymentGateway() *PaymentGateway { return NewPaymentGateway() } @@ -75,6 +79,10 @@ func (f *Factory) Pool() *Pool { return NewPool() } +func (f *Factory) Profile() *Profile { + return NewProfile() +} + func (f *Factory) Promotion() *Promotion { return NewPromotion() } diff --git a/api/usecase/Campaign.go b/api/usecase/Campaign.go new file mode 100644 index 0000000..012a5b5 --- /dev/null +++ b/api/usecase/Campaign.go @@ -0,0 +1,237 @@ +/** + * This file was auto generated, please do not edit it directly. +**/ + +package usecase + +import ( + "net/http" + "net/url" + "strconv" + + "github.com/eventfarm/go-sdk/rest" +) + +type Campaign struct { + restClient rest.RestClientInterface +} + +func NewCampaign(restClient rest.RestClientInterface) *Campaign { + return &Campaign{restClient} +} + +// GET: Queries + +type GetCampaignParameters struct { + CampaignId string +} + +func (t *Campaign) GetCampaign(p *GetCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + + return t.restClient.Get( + `/v2/Campaign/UseCase/GetCampaign`, + &queryParameters, + nil, + nil, + ) +} + +type ListCampaignsForPoolParameters struct { + PoolId string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-500 + SortBy *string + SortDirection *string +} + +func (t *Campaign) ListCampaignsForPool(p *ListCampaignsForPoolParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + if p.Page != nil { + queryParameters.Add(`page`, strconv.FormatInt(*p.Page, 10)) + } + if p.ItemsPerPage != nil { + queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) + } + if p.SortBy != nil { + queryParameters.Add(`sortBy`, *p.SortBy) + } + if p.SortDirection != nil { + queryParameters.Add(`sortDirection`, *p.SortDirection) + } + + return t.restClient.Get( + `/v2/Campaign/UseCase/ListCampaignsForPool`, + &queryParameters, + nil, + nil, + ) +} + +// POST: Commands + +type AddInvitationToCampaignParameters struct { + CampaignId string + InvitationId string +} + +func (t *Campaign) AddInvitationToCampaign(p *AddInvitationToCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + queryParameters.Add(`invitationId`, p.InvitationId) + + return t.restClient.Post( + `/v2/Campaign/UseCase/AddInvitationToCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) AddInvitationToCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/AddInvitationToCampaign`, + data, + nil, + nil, + ) +} + +type ArchiveCampaignParameters struct { + CampaignId string +} + +func (t *Campaign) ArchiveCampaign(p *ArchiveCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + + return t.restClient.Post( + `/v2/Campaign/UseCase/ArchiveCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) ArchiveCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/ArchiveCampaign`, + data, + nil, + nil, + ) +} + +type CreateCampaignParameters struct { + Name string + EventId string + CampaignId *string +} + +func (t *Campaign) CreateCampaign(p *CreateCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`name`, p.Name) + queryParameters.Add(`eventId`, p.EventId) + if p.CampaignId != nil { + queryParameters.Add(`campaignId`, *p.CampaignId) + } + + return t.restClient.Post( + `/v2/Campaign/UseCase/CreateCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) CreateCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/CreateCampaign`, + data, + nil, + nil, + ) +} + +type DeleteCampaignParameters struct { + CampaignId string +} + +func (t *Campaign) DeleteCampaign(p *DeleteCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + + return t.restClient.Post( + `/v2/Campaign/UseCase/DeleteCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) DeleteCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/DeleteCampaign`, + data, + nil, + nil, + ) +} + +type RemoveInvitationFromCampaignParameters struct { + CampaignId string + InvitationId string +} + +func (t *Campaign) RemoveInvitationFromCampaign(p *RemoveInvitationFromCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + queryParameters.Add(`invitationId`, p.InvitationId) + + return t.restClient.Post( + `/v2/Campaign/UseCase/RemoveInvitationFromCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) RemoveInvitationFromCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/RemoveInvitationFromCampaign`, + data, + nil, + nil, + ) +} + +type UpdateCampaignParameters struct { + CampaignId string + Name string + EventId string +} + +func (t *Campaign) UpdateCampaign(p *UpdateCampaignParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`campaignId`, p.CampaignId) + queryParameters.Add(`name`, p.Name) + queryParameters.Add(`eventId`, p.EventId) + + return t.restClient.Post( + `/v2/Campaign/UseCase/UpdateCampaign`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Campaign) UpdateCampaignWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Campaign/UseCase/UpdateCampaign`, + data, + nil, + nil, + ) +} diff --git a/api/usecase/EFx.go b/api/usecase/EFx.go index 9479833..085bd34 100644 --- a/api/usecase/EFx.go +++ b/api/usecase/EFx.go @@ -58,8 +58,113 @@ func (t *EFx) GetAllModulesForEvent(p *GetAllModulesForEventParameters) (r *http ) } +type GetEFxStationParameters struct { + StationId string + WithData *[]string // StackAndTicketType | EFxScreens +} + +func (t *EFx) GetEFxStation(p *GetEFxStationParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`stationId`, p.StationId) + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } + } + + return t.restClient.Get( + `/v2/EFx/UseCase/GetEFxStation`, + &queryParameters, + nil, + nil, + ) +} + +type ListEFxStationsForEventParameters struct { + EventId string + WithData *[]string // StackAndTicketType | EFxScreens + SortBy *string + SortDirection *string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-100 + ModuleFilter *[]string // guest-management | access-control | athletes-bag | concierge | digital-memory-bank | guest-info | messaging | smsquiz | product-pickup | raffle | reservation | roaming-photographer | smart-bar | teams | lead-retrieval + Query *string +} + +func (t *EFx) ListEFxStationsForEvent(p *ListEFxStationsForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } + } + if p.SortBy != nil { + queryParameters.Add(`sortBy`, *p.SortBy) + } + if p.SortDirection != nil { + queryParameters.Add(`sortDirection`, *p.SortDirection) + } + if p.Page != nil { + queryParameters.Add(`page`, strconv.FormatInt(*p.Page, 10)) + } + if p.ItemsPerPage != nil { + queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) + } + if p.ModuleFilter != nil { + for i := range *p.ModuleFilter { + queryParameters.Add(`moduleFilter[]`, (*p.ModuleFilter)[i]) + } + } + if p.Query != nil { + queryParameters.Add(`query`, *p.Query) + } + + return t.restClient.Get( + `/v2/EFx/UseCase/ListEFxStationsForEvent`, + &queryParameters, + nil, + nil, + ) +} + // POST: Commands +type CreateEFxStationParameters struct { + EventId string + StationName string + ModuleType string + StationType string + StationId *string +} + +func (t *EFx) CreateEFxStation(p *CreateEFxStationParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + queryParameters.Add(`stationName`, p.StationName) + queryParameters.Add(`moduleType`, p.ModuleType) + queryParameters.Add(`stationType`, p.StationType) + if p.StationId != nil { + queryParameters.Add(`stationId`, *p.StationId) + } + + return t.restClient.Post( + `/v2/EFx/UseCase/CreateEFxStation`, + &queryParameters, + nil, + nil, + ) +} + +func (t *EFx) CreateEFxStationWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/EFx/UseCase/CreateEFxStation`, + data, + nil, + nil, + ) +} + type DisableForEventParameters struct { EventId string } @@ -264,10 +369,35 @@ func (t *EFx) EnableSMSForEventWithJSON(data *map[string]interface{}) (r *http.R ) } +type RemoveEFxStationParameters struct { + StationId string +} + +func (t *EFx) RemoveEFxStation(p *RemoveEFxStationParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`stationId`, p.StationId) + + return t.restClient.Post( + `/v2/EFx/UseCase/RemoveEFxStation`, + &queryParameters, + nil, + nil, + ) +} + +func (t *EFx) RemoveEFxStationWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/EFx/UseCase/RemoveEFxStation`, + data, + nil, + nil, + ) +} + type RequestForEventParameters struct { EventId string UserId string - RequestedEFxModules *[]string // guest-management | access-control | athletes-bag | concierge | digital-memory-bank | guest-info | messaging | smsquiz | product-pickup | raffle | reservation | roaming-photographer | smart-bar | teams + RequestedEFxModules *[]string // guest-management | access-control | athletes-bag | concierge | digital-memory-bank | guest-info | messaging | smsquiz | product-pickup | raffle | reservation | roaming-photographer | smart-bar | teams | lead-retrieval } func (t *EFx) RequestForEvent(p *RequestForEventParameters) (r *http.Response, err error) { @@ -375,3 +505,63 @@ func (t *EFx) SetSMSForEventWithJSON(data *map[string]interface{}) (r *http.Resp nil, ) } + +type SetStacksForEFxStationParameters struct { + StationId string + StackIds *[]string +} + +func (t *EFx) SetStacksForEFxStation(p *SetStacksForEFxStationParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`stationId`, p.StationId) + if p.StackIds != nil { + for i := range *p.StackIds { + queryParameters.Add(`stackIds[]`, (*p.StackIds)[i]) + } + } + + return t.restClient.Post( + `/v2/EFx/UseCase/SetStacksForEFxStation`, + &queryParameters, + nil, + nil, + ) +} + +func (t *EFx) SetStacksForEFxStationWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/EFx/UseCase/SetStacksForEFxStation`, + data, + nil, + nil, + ) +} + +type UpdateEFxStationParameters struct { + StationId string + StationName string + StationType string +} + +func (t *EFx) UpdateEFxStation(p *UpdateEFxStationParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`stationId`, p.StationId) + queryParameters.Add(`stationName`, p.StationName) + queryParameters.Add(`stationType`, p.StationType) + + return t.restClient.Post( + `/v2/EFx/UseCase/UpdateEFxStation`, + &queryParameters, + nil, + nil, + ) +} + +func (t *EFx) UpdateEFxStationWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/EFx/UseCase/UpdateEFxStation`, + data, + nil, + nil, + ) +} diff --git a/api/usecase/Event.go b/api/usecase/Event.go index 0bf5988..0a3d4fd 100644 --- a/api/usecase/Event.go +++ b/api/usecase/Event.go @@ -2321,6 +2321,39 @@ func (t *Event) RemoveWebConferenceAttributesFromEventWithJSON(data *map[string] ) } +type ResendEventUserRoleEmailParameters struct { + EventId string + UserId string + EventRole string + AuthenticatedUserId *string +} + +func (t *Event) ResendEventUserRoleEmail(p *ResendEventUserRoleEmailParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + queryParameters.Add(`userId`, p.UserId) + queryParameters.Add(`eventRole`, p.EventRole) + if p.AuthenticatedUserId != nil { + queryParameters.Add(`authenticatedUserId`, *p.AuthenticatedUserId) + } + + return t.restClient.Post( + `/v2/Event/UseCase/ResendEventUserRoleEmail`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Event) ResendEventUserRoleEmailWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Event/UseCase/ResendEventUserRoleEmail`, + data, + nil, + nil, + ) +} + type SendContactEmailParameters struct { EventId string FromName string @@ -2984,6 +3017,33 @@ func (t *Event) SetNameForEventWithJSON(data *map[string]interface{}) (r *http.R ) } +type SetPaymentGatewayForEventParameters struct { + EventId string + PaymentGatewayId string +} + +func (t *Event) SetPaymentGatewayForEvent(p *SetPaymentGatewayForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + queryParameters.Add(`paymentGatewayId`, p.PaymentGatewayId) + + return t.restClient.Post( + `/v2/Event/UseCase/SetPaymentGatewayForEvent`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Event) SetPaymentGatewayForEventWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Event/UseCase/SetPaymentGatewayForEvent`, + data, + nil, + nil, + ) +} + type SetProcessingCurrencyParameters struct { EventId string ProcessingCurrency string @@ -3332,6 +3392,31 @@ func (t *Event) UnarchiveEventWithJSON(data *map[string]interface{}) (r *http.Re ) } +type UnsetPaymentGatewayForEventParameters struct { + EventId string +} + +func (t *Event) UnsetPaymentGatewayForEvent(p *UnsetPaymentGatewayForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + + return t.restClient.Post( + `/v2/Event/UseCase/UnsetPaymentGatewayForEvent`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Event) UnsetPaymentGatewayForEventWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Event/UseCase/UnsetPaymentGatewayForEvent`, + data, + nil, + nil, + ) +} + type UpdateAnswerParameters struct { AnswerId string Text string diff --git a/api/usecase/Exhibitor.go b/api/usecase/Exhibitor.go index 965eb20..a6cb6c5 100644 --- a/api/usecase/Exhibitor.go +++ b/api/usecase/Exhibitor.go @@ -24,11 +24,17 @@ func NewExhibitor(restClient rest.RestClientInterface) *Exhibitor { type GetExhibitorParameters struct { ExhibitorId string + WithData *[]string } func (t *Exhibitor) GetExhibitor(p *GetExhibitorParameters) (r *http.Response, err error) { queryParameters := url.Values{} queryParameters.Add(`exhibitorId`, p.ExhibitorId) + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } + } return t.restClient.Get( `/v2/Exhibitor/UseCase/GetExhibitor`, @@ -39,17 +45,27 @@ func (t *Exhibitor) GetExhibitor(p *GetExhibitorParameters) (r *http.Response, e } type ListExhibitorsForEventParameters struct { - EventId string - Query *string - Page *int64 // >= 1 - ItemsPerPage *int64 // 1-500 - SortBy *string - SortDirection *string + EventId string + WithData *[]string // totalUserRolesForExhibitor + ShouldHideDeleted *bool + Query *string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-500 + SortBy *string + SortDirection *string } func (t *Exhibitor) ListExhibitorsForEvent(p *ListExhibitorsForEventParameters) (r *http.Response, err error) { queryParameters := url.Values{} queryParameters.Add(`eventId`, p.EventId) + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } + } + if p.ShouldHideDeleted != nil { + queryParameters.Add(`shouldHideDeleted`, strconv.FormatBool(*p.ShouldHideDeleted)) + } if p.Query != nil { queryParameters.Add(`query`, *p.Query) } @@ -75,21 +91,27 @@ func (t *Exhibitor) ListExhibitorsForEvent(p *ListExhibitorsForEventParameters) } type ListExhibitorsForUserParameters struct { - PoolId string - UserId string - GroupOwnerUserId *string - Page *int64 // >= 1 - ItemsPerPage *int64 // 1-500 - SortBy *string - SortDirection *string + UserId string + Query *string + WithData *[]string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-500 + SortBy *string + SortDirection *string + EventDateFilterType *string + PoolId *string } func (t *Exhibitor) ListExhibitorsForUser(p *ListExhibitorsForUserParameters) (r *http.Response, err error) { queryParameters := url.Values{} - queryParameters.Add(`poolId`, p.PoolId) queryParameters.Add(`userId`, p.UserId) - if p.GroupOwnerUserId != nil { - queryParameters.Add(`groupOwnerUserId`, *p.GroupOwnerUserId) + if p.Query != nil { + queryParameters.Add(`query`, *p.Query) + } + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } } if p.Page != nil { queryParameters.Add(`page`, strconv.FormatInt(*p.Page, 10)) @@ -103,6 +125,12 @@ func (t *Exhibitor) ListExhibitorsForUser(p *ListExhibitorsForUserParameters) (r if p.SortDirection != nil { queryParameters.Add(`sortDirection`, *p.SortDirection) } + if p.EventDateFilterType != nil { + queryParameters.Add(`eventDateFilterType`, *p.EventDateFilterType) + } + if p.PoolId != nil { + queryParameters.Add(`poolId`, *p.PoolId) + } return t.restClient.Get( `/v2/Exhibitor/UseCase/ListExhibitorsForUser`, @@ -114,29 +142,35 @@ func (t *Exhibitor) ListExhibitorsForUser(p *ListExhibitorsForUserParameters) (r // POST: Commands -type AddUsersToExhibitorParameters struct { - ExhibitorId string - UserIds []string +type AddUserToExhibitorParameters struct { + ExhibitorId string + Email string + FirstName string + LastName string + AuthenticatedUserId *string } -func (t *Exhibitor) AddUsersToExhibitor(p *AddUsersToExhibitorParameters) (r *http.Response, err error) { +func (t *Exhibitor) AddUserToExhibitor(p *AddUserToExhibitorParameters) (r *http.Response, err error) { queryParameters := url.Values{} queryParameters.Add(`exhibitorId`, p.ExhibitorId) - for i := range p.UserIds { - queryParameters.Add(`userIds[]`, p.UserIds[i]) + queryParameters.Add(`email`, p.Email) + queryParameters.Add(`firstName`, p.FirstName) + queryParameters.Add(`lastName`, p.LastName) + if p.AuthenticatedUserId != nil { + queryParameters.Add(`authenticatedUserId`, *p.AuthenticatedUserId) } return t.restClient.Post( - `/v2/Exhibitor/UseCase/AddUsersToExhibitor`, + `/v2/Exhibitor/UseCase/AddUserToExhibitor`, &queryParameters, nil, nil, ) } -func (t *Exhibitor) AddUsersToExhibitorWithJSON(data *map[string]interface{}) (r *http.Response, err error) { +func (t *Exhibitor) AddUserToExhibitorWithJSON(data *map[string]interface{}) (r *http.Response, err error) { return t.restClient.PostJSON( - `/v2/Exhibitor/UseCase/AddUsersToExhibitor`, + `/v2/Exhibitor/UseCase/AddUserToExhibitor`, data, nil, nil, @@ -182,6 +216,31 @@ func (t *Exhibitor) CreateExhibitorForEventWithJSON(data *map[string]interface{} ) } +type DeleteAllExhibitorsAndLeadsForEventParameters struct { + EventId string +} + +func (t *Exhibitor) DeleteAllExhibitorsAndLeadsForEvent(p *DeleteAllExhibitorsAndLeadsForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + + return t.restClient.Post( + `/v2/Exhibitor/UseCase/DeleteAllExhibitorsAndLeadsForEvent`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Exhibitor) DeleteAllExhibitorsAndLeadsForEventWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Exhibitor/UseCase/DeleteAllExhibitorsAndLeadsForEvent`, + data, + nil, + nil, + ) +} + type DeleteExhibitorParameters struct { ExhibitorId string } @@ -232,29 +291,58 @@ func (t *Exhibitor) RemoveExhibitorWithJSON(data *map[string]interface{}) (r *ht ) } -type RemoveUsersFromExhibitorParameters struct { +type RemoveUserFromExhibitorParameters struct { + UserId string ExhibitorId string - UserIds []string } -func (t *Exhibitor) RemoveUsersFromExhibitor(p *RemoveUsersFromExhibitorParameters) (r *http.Response, err error) { +func (t *Exhibitor) RemoveUserFromExhibitor(p *RemoveUserFromExhibitorParameters) (r *http.Response, err error) { queryParameters := url.Values{} + queryParameters.Add(`userId`, p.UserId) queryParameters.Add(`exhibitorId`, p.ExhibitorId) - for i := range p.UserIds { - queryParameters.Add(`userIds[]`, p.UserIds[i]) + + return t.restClient.Post( + `/v2/Exhibitor/UseCase/RemoveUserFromExhibitor`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Exhibitor) RemoveUserFromExhibitorWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Exhibitor/UseCase/RemoveUserFromExhibitor`, + data, + nil, + nil, + ) +} + +type ResendExhibitorTeamMemberEmailParameters struct { + ExhibitorId string + UserId string + AuthenticatedUserId *string +} + +func (t *Exhibitor) ResendExhibitorTeamMemberEmail(p *ResendExhibitorTeamMemberEmailParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`exhibitorId`, p.ExhibitorId) + queryParameters.Add(`userId`, p.UserId) + if p.AuthenticatedUserId != nil { + queryParameters.Add(`authenticatedUserId`, *p.AuthenticatedUserId) } return t.restClient.Post( - `/v2/Exhibitor/UseCase/RemoveUsersFromExhibitor`, + `/v2/Exhibitor/UseCase/ResendExhibitorTeamMemberEmail`, &queryParameters, nil, nil, ) } -func (t *Exhibitor) RemoveUsersFromExhibitorWithJSON(data *map[string]interface{}) (r *http.Response, err error) { +func (t *Exhibitor) ResendExhibitorTeamMemberEmailWithJSON(data *map[string]interface{}) (r *http.Response, err error) { return t.restClient.PostJSON( - `/v2/Exhibitor/UseCase/RemoveUsersFromExhibitor`, + `/v2/Exhibitor/UseCase/ResendExhibitorTeamMemberEmail`, data, nil, nil, diff --git a/api/usecase/HealthPass.go b/api/usecase/HealthPass.go index a5d5aa6..b11b674 100644 --- a/api/usecase/HealthPass.go +++ b/api/usecase/HealthPass.go @@ -22,6 +22,22 @@ func NewHealthPass(restClient rest.RestClientInterface) *HealthPass { // GET: Queries +type GetHealthPassScoreCountsForEventParameters struct { + EventId string +} + +func (t *HealthPass) GetHealthPassScoreCountsForEvent(p *GetHealthPassScoreCountsForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + + return t.restClient.Get( + `/v2/HealthPass/UseCase/GetHealthPassScoreCountsForEvent`, + &queryParameters, + nil, + nil, + ) +} + // POST: Commands type AddUserHealthPassRecordFromClearParameters struct { @@ -30,6 +46,7 @@ type AddUserHealthPassRecordFromClearParameters struct { Email string Score string FinalScoringTime string + ExpiresAt string HealthPassShortCode string ExternalUserId string } @@ -41,6 +58,7 @@ func (t *HealthPass) AddUserHealthPassRecordFromClear(p *AddUserHealthPassRecord queryParameters.Add(`email`, p.Email) queryParameters.Add(`score`, p.Score) queryParameters.Add(`finalScoringTime`, p.FinalScoringTime) + queryParameters.Add(`expiresAt`, p.ExpiresAt) queryParameters.Add(`healthPassShortCode`, p.HealthPassShortCode) queryParameters.Add(`externalUserId`, p.ExternalUserId) diff --git a/api/usecase/Invitation.go b/api/usecase/Invitation.go index 23405a6..7c78ff0 100644 --- a/api/usecase/Invitation.go +++ b/api/usecase/Invitation.go @@ -168,22 +168,6 @@ func (t *Invitation) GetInvitationCountsForUser(p *GetInvitationCountsForUserPar ) } -type GetInvitationCountsForUserAttributeHealthPassScoreForEventParameters struct { - EventId string -} - -func (t *Invitation) GetInvitationCountsForUserAttributeHealthPassScoreForEvent(p *GetInvitationCountsForUserAttributeHealthPassScoreForEventParameters) (r *http.Response, err error) { - queryParameters := url.Values{} - queryParameters.Add(`eventId`, p.EventId) - - return t.restClient.Get( - `/v2/Invitation/UseCase/GetInvitationCountsForUserAttributeHealthPassScoreForEvent`, - &queryParameters, - nil, - nil, - ) -} - type GetInvitationLastActionCountsForEventParameters struct { EventId string } diff --git a/api/usecase/Lead.go b/api/usecase/Lead.go index 6c60172..986c7c1 100644 --- a/api/usecase/Lead.go +++ b/api/usecase/Lead.go @@ -45,6 +45,7 @@ type ListLeadsForExhibitorParameters struct { ItemsPerPage *int64 // 1-500 SortBy *string SortDirection *string + SourceUserId *string } func (t *Lead) ListLeadsForExhibitor(p *ListLeadsForExhibitorParameters) (r *http.Response, err error) { @@ -62,6 +63,9 @@ func (t *Lead) ListLeadsForExhibitor(p *ListLeadsForExhibitorParameters) (r *htt if p.SortDirection != nil { queryParameters.Add(`sortDirection`, *p.SortDirection) } + if p.SourceUserId != nil { + queryParameters.Add(`sourceUserId`, *p.SourceUserId) + } return t.restClient.Get( `/v2/Lead/UseCase/ListLeadsForExhibitor`, @@ -77,11 +81,14 @@ type CreateLeadParameters struct { ExhibitorId string FirstName string LastName string + SourceUserId string EmailAddress *string PhoneNumber *string Score *float64 Notes *string - SourceUserId *string + Temperature *string + Title *string + Company *string LeadId *string } @@ -90,6 +97,7 @@ func (t *Lead) CreateLead(p *CreateLeadParameters) (r *http.Response, err error) queryParameters.Add(`exhibitorId`, p.ExhibitorId) queryParameters.Add(`firstName`, p.FirstName) queryParameters.Add(`lastName`, p.LastName) + queryParameters.Add(`sourceUserId`, p.SourceUserId) if p.EmailAddress != nil { queryParameters.Add(`emailAddress`, *p.EmailAddress) } @@ -102,8 +110,14 @@ func (t *Lead) CreateLead(p *CreateLeadParameters) (r *http.Response, err error) if p.Notes != nil { queryParameters.Add(`notes`, *p.Notes) } - if p.SourceUserId != nil { - queryParameters.Add(`sourceUserId`, *p.SourceUserId) + if p.Temperature != nil { + queryParameters.Add(`temperature`, *p.Temperature) + } + if p.Title != nil { + queryParameters.Add(`title`, *p.Title) + } + if p.Company != nil { + queryParameters.Add(`company`, *p.Company) } if p.LeadId != nil { queryParameters.Add(`leadId`, *p.LeadId) @@ -151,6 +165,33 @@ func (t *Lead) DeleteLeadWithJSON(data *map[string]interface{}) (r *http.Respons ) } +type ExportLeadsForExhibitorParameters struct { + ExhibitorId string + UserId string +} + +func (t *Lead) ExportLeadsForExhibitor(p *ExportLeadsForExhibitorParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`exhibitorId`, p.ExhibitorId) + queryParameters.Add(`userId`, p.UserId) + + return t.restClient.Post( + `/v2/Lead/UseCase/ExportLeadsForExhibitor`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Lead) ExportLeadsForExhibitorWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Lead/UseCase/ExportLeadsForExhibitor`, + data, + nil, + nil, + ) +} + type RemoveLeadParameters struct { LeadId string } @@ -176,6 +217,33 @@ func (t *Lead) RemoveLeadWithJSON(data *map[string]interface{}) (r *http.Respons ) } +type SetLeadCompanyParameters struct { + LeadId string + Company string +} + +func (t *Lead) SetLeadCompany(p *SetLeadCompanyParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`leadId`, p.LeadId) + queryParameters.Add(`company`, p.Company) + + return t.restClient.Post( + `/v2/Lead/UseCase/SetLeadCompany`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Lead) SetLeadCompanyWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Lead/UseCase/SetLeadCompany`, + data, + nil, + nil, + ) +} + type SetLeadEmailAddressParameters struct { LeadId string LeadEmailAddress string @@ -337,3 +405,118 @@ func (t *Lead) SetLeadScoreWithJSON(data *map[string]interface{}) (r *http.Respo nil, ) } + +type SetLeadTemperatureParameters struct { + LeadId string + LeadTemperature string +} + +func (t *Lead) SetLeadTemperature(p *SetLeadTemperatureParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`leadId`, p.LeadId) + queryParameters.Add(`leadTemperature`, p.LeadTemperature) + + return t.restClient.Post( + `/v2/Lead/UseCase/SetLeadTemperature`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Lead) SetLeadTemperatureWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Lead/UseCase/SetLeadTemperature`, + data, + nil, + nil, + ) +} + +type SetLeadTitleParameters struct { + LeadId string + LeadNotes string +} + +func (t *Lead) SetLeadTitle(p *SetLeadTitleParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`leadId`, p.LeadId) + queryParameters.Add(`leadNotes`, p.LeadNotes) + + return t.restClient.Post( + `/v2/Lead/UseCase/SetLeadTitle`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Lead) SetLeadTitleWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Lead/UseCase/SetLeadTitle`, + data, + nil, + nil, + ) +} + +type UpdateLeadParameters struct { + LeadId string + FirstName *string + LastName *string + EmailAddress *string + PhoneNumber *string + Score *float64 + Notes *string + Temperature *string + Title *string + Company *string +} + +func (t *Lead) UpdateLead(p *UpdateLeadParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`leadId`, p.LeadId) + if p.FirstName != nil { + queryParameters.Add(`firstName`, *p.FirstName) + } + if p.LastName != nil { + queryParameters.Add(`lastName`, *p.LastName) + } + if p.EmailAddress != nil { + queryParameters.Add(`emailAddress`, *p.EmailAddress) + } + if p.PhoneNumber != nil { + queryParameters.Add(`phoneNumber`, *p.PhoneNumber) + } + if p.Score != nil { + queryParameters.Add(`score`, fmt.Sprintf("%f", *p.Score)) + } + if p.Notes != nil { + queryParameters.Add(`notes`, *p.Notes) + } + if p.Temperature != nil { + queryParameters.Add(`temperature`, *p.Temperature) + } + if p.Title != nil { + queryParameters.Add(`title`, *p.Title) + } + if p.Company != nil { + queryParameters.Add(`company`, *p.Company) + } + + return t.restClient.Post( + `/v2/Lead/UseCase/UpdateLead`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Lead) UpdateLeadWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Lead/UseCase/UpdateLead`, + data, + nil, + nil, + ) +} diff --git a/api/usecase/Link.go b/api/usecase/Link.go new file mode 100644 index 0000000..4b7d2e4 --- /dev/null +++ b/api/usecase/Link.go @@ -0,0 +1,328 @@ +/** + * This file was auto generated, please do not edit it directly. +**/ + +package usecase + +import ( + "net/http" + "net/url" + + "github.com/eventfarm/go-sdk/rest" +) + +type Link struct { + restClient rest.RestClientInterface +} + +func NewLink(restClient rest.RestClientInterface) *Link { + return &Link{restClient} +} + +// GET: Queries + +type GetLinkParameters struct { + LinkId string +} + +func (t *Link) GetLink(p *GetLinkParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + + return t.restClient.Get( + `/v2/Link/UseCase/GetLink`, + &queryParameters, + nil, + nil, + ) +} + +// POST: Commands + +type AddLinkToProfileParameters struct { + LinkId string + ProfileId string +} + +func (t *Link) AddLinkToProfile(p *AddLinkToProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Link/UseCase/AddLinkToProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) AddLinkToProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/AddLinkToProfile`, + data, + nil, + nil, + ) +} + +type AddLinksToProfileParameters struct { + LinkIds []string + ProfileId string +} + +func (t *Link) AddLinksToProfile(p *AddLinksToProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + for i := range p.LinkIds { + queryParameters.Add(`linkIds[]`, p.LinkIds[i]) + } + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Link/UseCase/AddLinksToProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) AddLinksToProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/AddLinksToProfile`, + data, + nil, + nil, + ) +} + +type CreateLinkParameters struct { + PoolId string + Url *string + ShownText *string + LinkId *string +} + +func (t *Link) CreateLink(p *CreateLinkParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + if p.Url != nil { + queryParameters.Add(`url`, *p.Url) + } + if p.ShownText != nil { + queryParameters.Add(`shownText`, *p.ShownText) + } + if p.LinkId != nil { + queryParameters.Add(`linkId`, *p.LinkId) + } + + return t.restClient.Post( + `/v2/Link/UseCase/CreateLink`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) CreateLinkWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/CreateLink`, + data, + nil, + nil, + ) +} + +type DeleteLinkParameters struct { + LinkId string +} + +func (t *Link) DeleteLink(p *DeleteLinkParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + + return t.restClient.Post( + `/v2/Link/UseCase/DeleteLink`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) DeleteLinkWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/DeleteLink`, + data, + nil, + nil, + ) +} + +type RemoveLinkParameters struct { + LinkId string +} + +func (t *Link) RemoveLink(p *RemoveLinkParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + + return t.restClient.Post( + `/v2/Link/UseCase/RemoveLink`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) RemoveLinkWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/RemoveLink`, + data, + nil, + nil, + ) +} + +type RemoveLinkFromProfileParameters struct { + LinkId string + ProfileId string +} + +func (t *Link) RemoveLinkFromProfile(p *RemoveLinkFromProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Link/UseCase/RemoveLinkFromProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) RemoveLinkFromProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/RemoveLinkFromProfile`, + data, + nil, + nil, + ) +} + +type RemoveLinksFromProfileParameters struct { + LinkIds []string + ProfileId string +} + +func (t *Link) RemoveLinksFromProfile(p *RemoveLinksFromProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + for i := range p.LinkIds { + queryParameters.Add(`linkIds[]`, p.LinkIds[i]) + } + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Link/UseCase/RemoveLinksFromProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) RemoveLinksFromProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/RemoveLinksFromProfile`, + data, + nil, + nil, + ) +} + +type SetShownTextParameters struct { + LinkId string + ShownText string +} + +func (t *Link) SetShownText(p *SetShownTextParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + queryParameters.Add(`shownText`, p.ShownText) + + return t.restClient.Post( + `/v2/Link/UseCase/SetShownText`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) SetShownTextWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/SetShownText`, + data, + nil, + nil, + ) +} + +type SetUrlParameters struct { + LinkId string + Url string +} + +func (t *Link) SetUrl(p *SetUrlParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + queryParameters.Add(`url`, p.Url) + + return t.restClient.Post( + `/v2/Link/UseCase/SetUrl`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) SetUrlWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/SetUrl`, + data, + nil, + nil, + ) +} + +type UpdateLinkParameters struct { + LinkId string + PoolId string + Url *string + ShownText *string +} + +func (t *Link) UpdateLink(p *UpdateLinkParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`linkId`, p.LinkId) + queryParameters.Add(`poolId`, p.PoolId) + if p.Url != nil { + queryParameters.Add(`url`, *p.Url) + } + if p.ShownText != nil { + queryParameters.Add(`shownText`, *p.ShownText) + } + + return t.restClient.Post( + `/v2/Link/UseCase/UpdateLink`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Link) UpdateLinkWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Link/UseCase/UpdateLink`, + data, + nil, + nil, + ) +} diff --git a/api/usecase/PaymentGateway.go b/api/usecase/PaymentGateway.go index e377dc2..c585423 100644 --- a/api/usecase/PaymentGateway.go +++ b/api/usecase/PaymentGateway.go @@ -72,6 +72,31 @@ func (t *PaymentGateway) CreatePaymentGatewayForPoolWithJSON(data *map[string]in ) } +type DeletePaymentGatewayForPoolParameters struct { + PaymentGatewayId string +} + +func (t *PaymentGateway) DeletePaymentGatewayForPool(p *DeletePaymentGatewayForPoolParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`paymentGatewayId`, p.PaymentGatewayId) + + return t.restClient.Post( + `/v2/PaymentGateway/UseCase/DeletePaymentGatewayForPool`, + &queryParameters, + nil, + nil, + ) +} + +func (t *PaymentGateway) DeletePaymentGatewayForPoolWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/PaymentGateway/UseCase/DeletePaymentGatewayForPool`, + data, + nil, + nil, + ) +} + type RemovePaymentGatewayForPoolParameters struct { PaymentGatewayId string } diff --git a/api/usecase/Pool.go b/api/usecase/Pool.go index 2ac360f..ce382c4 100644 --- a/api/usecase/Pool.go +++ b/api/usecase/Pool.go @@ -122,6 +122,7 @@ type ListPoolContactsByPoolIdParameters struct { PoolId string Page *int64 // >= 1 ItemsPerPage *int64 // 1-500 + WithData *[]string } func (t *Pool) ListPoolContactsByPoolId(p *ListPoolContactsByPoolIdParameters) (r *http.Response, err error) { @@ -133,6 +134,11 @@ func (t *Pool) ListPoolContactsByPoolId(p *ListPoolContactsByPoolIdParameters) ( if p.ItemsPerPage != nil { queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) } + if p.WithData != nil { + for i := range *p.WithData { + queryParameters.Add(`withData[]`, (*p.WithData)[i]) + } + } return t.restClient.Get( `/v2/Pool/UseCase/ListPoolContactsByPoolId`, @@ -143,11 +149,12 @@ func (t *Pool) ListPoolContactsByPoolId(p *ListPoolContactsByPoolIdParameters) ( } type ListPoolsParameters struct { - Name *string - SortBy *string - SortDirection *string - Page *int64 // >= 1 - ItemsPerPage *int64 // 1-100 + Name *string + SortBy *string + SortDirection *string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-100 + ShouldHideDeleted *bool } func (t *Pool) ListPools(p *ListPoolsParameters) (r *http.Response, err error) { @@ -167,6 +174,9 @@ func (t *Pool) ListPools(p *ListPoolsParameters) (r *http.Response, err error) { if p.ItemsPerPage != nil { queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) } + if p.ShouldHideDeleted != nil { + queryParameters.Add(`shouldHideDeleted`, strconv.FormatBool(*p.ShouldHideDeleted)) + } return t.restClient.Get( `/v2/Pool/UseCase/ListPools`, @@ -226,6 +236,31 @@ func (t *Pool) ListUniqueTagNamesForPool(p *ListUniqueTagNamesForPoolParameters) // POST: Commands +type ArchivePoolParameters struct { + PoolId string +} + +func (t *Pool) ArchivePool(p *ArchivePoolParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + + return t.restClient.Post( + `/v2/Pool/UseCase/ArchivePool`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Pool) ArchivePoolWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Pool/UseCase/ArchivePool`, + data, + nil, + nil, + ) +} + type CreatePoolParameters struct { Name string ShortName *string @@ -323,6 +358,31 @@ func (t *Pool) CreatePoolWebhookWithJSON(data *map[string]interface{}) (r *http. ) } +type DeletePoolParameters struct { + PoolId string +} + +func (t *Pool) DeletePool(p *DeletePoolParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + + return t.restClient.Post( + `/v2/Pool/UseCase/DeletePool`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Pool) DeletePoolWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Pool/UseCase/DeletePool`, + data, + nil, + nil, + ) +} + type RemoveAllUserRolesFromPoolParameters struct { UserId string PoolId string diff --git a/api/usecase/PoolContact.go b/api/usecase/PoolContact.go index 8277af2..20321f0 100644 --- a/api/usecase/PoolContact.go +++ b/api/usecase/PoolContact.go @@ -105,6 +105,33 @@ func (t *PoolContact) RemovePoolContactWithJSON(data *map[string]interface{}) (r ) } +type ResendPoolContactEmailParameters struct { + PoolId string + UserId string +} + +func (t *PoolContact) ResendPoolContactEmail(p *ResendPoolContactEmailParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + queryParameters.Add(`userId`, p.UserId) + + return t.restClient.Post( + `/v2/PoolContact/UseCase/ResendPoolContactEmail`, + &queryParameters, + nil, + nil, + ) +} + +func (t *PoolContact) ResendPoolContactEmailWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/PoolContact/UseCase/ResendPoolContactEmail`, + data, + nil, + nil, + ) +} + type UpdateTypeForPoolContactParameters struct { PoolContactId string PoolContactType string diff --git a/api/usecase/Profile.go b/api/usecase/Profile.go new file mode 100644 index 0000000..7af34e4 --- /dev/null +++ b/api/usecase/Profile.go @@ -0,0 +1,447 @@ +/** + * This file was auto generated, please do not edit it directly. +**/ + +package usecase + +import ( + "net/http" + "net/url" + "strconv" + + "github.com/eventfarm/go-sdk/rest" +) + +type Profile struct { + restClient rest.RestClientInterface +} + +func NewProfile(restClient rest.RestClientInterface) *Profile { + return &Profile{restClient} +} + +// GET: Queries + +type GetProfileParameters struct { + ProfileId string +} + +func (t *Profile) GetProfile(p *GetProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Get( + `/v2/Profile/UseCase/GetProfile`, + &queryParameters, + nil, + nil, + ) +} + +type ListProfilesForEventParameters struct { + EventId string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-500 + SortBy *string + SortDirection *string +} + +func (t *Profile) ListProfilesForEvent(p *ListProfilesForEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`eventId`, p.EventId) + if p.Page != nil { + queryParameters.Add(`page`, strconv.FormatInt(*p.Page, 10)) + } + if p.ItemsPerPage != nil { + queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) + } + if p.SortBy != nil { + queryParameters.Add(`sortBy`, *p.SortBy) + } + if p.SortDirection != nil { + queryParameters.Add(`sortDirection`, *p.SortDirection) + } + + return t.restClient.Get( + `/v2/Profile/UseCase/ListProfilesForEvent`, + &queryParameters, + nil, + nil, + ) +} + +type ListProfilesForPoolParameters struct { + PoolId string + Page *int64 // >= 1 + ItemsPerPage *int64 // 1-500 + SortBy *string + SortDirection *string +} + +func (t *Profile) ListProfilesForPool(p *ListProfilesForPoolParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + if p.Page != nil { + queryParameters.Add(`page`, strconv.FormatInt(*p.Page, 10)) + } + if p.ItemsPerPage != nil { + queryParameters.Add(`itemsPerPage`, strconv.FormatInt(*p.ItemsPerPage, 10)) + } + if p.SortBy != nil { + queryParameters.Add(`sortBy`, *p.SortBy) + } + if p.SortDirection != nil { + queryParameters.Add(`sortDirection`, *p.SortDirection) + } + + return t.restClient.Get( + `/v2/Profile/UseCase/ListProfilesForPool`, + &queryParameters, + nil, + nil, + ) +} + +// POST: Commands + +type AddProfileToEventParameters struct { + ProfileId string + EventId string + EventProfileType string +} + +func (t *Profile) AddProfileToEvent(p *AddProfileToEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + queryParameters.Add(`eventId`, p.EventId) + queryParameters.Add(`eventProfileType`, p.EventProfileType) + + return t.restClient.Post( + `/v2/Profile/UseCase/AddProfileToEvent`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) AddProfileToEventWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/AddProfileToEvent`, + data, + nil, + nil, + ) +} + +type CreateProfileParameters struct { + PoolId string + FirstName *string + LastName *string + Company *string + EmailAddress *string + Title *string + Description *string + ImageUrl *string + ProfileType *string + ProfileId *string +} + +func (t *Profile) CreateProfile(p *CreateProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`poolId`, p.PoolId) + if p.FirstName != nil { + queryParameters.Add(`firstName`, *p.FirstName) + } + if p.LastName != nil { + queryParameters.Add(`lastName`, *p.LastName) + } + if p.Company != nil { + queryParameters.Add(`company`, *p.Company) + } + if p.EmailAddress != nil { + queryParameters.Add(`emailAddress`, *p.EmailAddress) + } + if p.Title != nil { + queryParameters.Add(`title`, *p.Title) + } + if p.Description != nil { + queryParameters.Add(`description`, *p.Description) + } + if p.ImageUrl != nil { + queryParameters.Add(`imageUrl`, *p.ImageUrl) + } + if p.ProfileType != nil { + queryParameters.Add(`profileType`, *p.ProfileType) + } + if p.ProfileId != nil { + queryParameters.Add(`profileId`, *p.ProfileId) + } + + return t.restClient.Post( + `/v2/Profile/UseCase/CreateProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) CreateProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/CreateProfile`, + data, + nil, + nil, + ) +} + +type DeleteProfileParameters struct { + ProfileId string +} + +func (t *Profile) DeleteProfile(p *DeleteProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Profile/UseCase/DeleteProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) DeleteProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/DeleteProfile`, + data, + nil, + nil, + ) +} + +type RemoveProfileParameters struct { + ProfileId string +} + +func (t *Profile) RemoveProfile(p *RemoveProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + + return t.restClient.Post( + `/v2/Profile/UseCase/RemoveProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) RemoveProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/RemoveProfile`, + data, + nil, + nil, + ) +} + +type RemoveProfileFromEventParameters struct { + ProfileId string + EventId string +} + +func (t *Profile) RemoveProfileFromEvent(p *RemoveProfileFromEventParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + queryParameters.Add(`eventId`, p.EventId) + + return t.restClient.Post( + `/v2/Profile/UseCase/RemoveProfileFromEvent`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) RemoveProfileFromEventWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/RemoveProfileFromEvent`, + data, + nil, + nil, + ) +} + +type SetCompanyParameters struct { + ProfileId string + Company string +} + +func (t *Profile) SetCompany(p *SetCompanyParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + queryParameters.Add(`company`, p.Company) + + return t.restClient.Post( + `/v2/Profile/UseCase/SetCompany`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) SetCompanyWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/SetCompany`, + data, + nil, + nil, + ) +} + +type SetDescriptionParameters struct { + ProfileId string + Description string +} + +func (t *Profile) SetDescription(p *SetDescriptionParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + queryParameters.Add(`description`, p.Description) + + return t.restClient.Post( + `/v2/Profile/UseCase/SetDescription`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) SetDescriptionWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/SetDescription`, + data, + nil, + nil, + ) +} + +type SetNameParameters struct { + ProfileId string + FirstName *string + LastName *string +} + +func (t *Profile) SetName(p *SetNameParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + if p.FirstName != nil { + queryParameters.Add(`firstName`, *p.FirstName) + } + if p.LastName != nil { + queryParameters.Add(`lastName`, *p.LastName) + } + + return t.restClient.Post( + `/v2/Profile/UseCase/SetName`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) SetNameWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/SetName`, + data, + nil, + nil, + ) +} + +type SetProfileTypeParameters struct { + ProfileId string + ProfileType string +} + +func (t *Profile) SetProfileType(p *SetProfileTypeParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + queryParameters.Add(`profileType`, p.ProfileType) + + return t.restClient.Post( + `/v2/Profile/UseCase/SetProfileType`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) SetProfileTypeWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/SetProfileType`, + data, + nil, + nil, + ) +} + +type UpdateProfileParameters struct { + ProfileId string + PoolId *string + FirstName *string + LastName *string + Company *string + EmailAddress *string + Title *string + Description *string + ImageUrl *string + ProfileType *string +} + +func (t *Profile) UpdateProfile(p *UpdateProfileParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`profileId`, p.ProfileId) + if p.PoolId != nil { + queryParameters.Add(`poolId`, *p.PoolId) + } + if p.FirstName != nil { + queryParameters.Add(`firstName`, *p.FirstName) + } + if p.LastName != nil { + queryParameters.Add(`lastName`, *p.LastName) + } + if p.Company != nil { + queryParameters.Add(`company`, *p.Company) + } + if p.EmailAddress != nil { + queryParameters.Add(`emailAddress`, *p.EmailAddress) + } + if p.Title != nil { + queryParameters.Add(`title`, *p.Title) + } + if p.Description != nil { + queryParameters.Add(`description`, *p.Description) + } + if p.ImageUrl != nil { + queryParameters.Add(`imageUrl`, *p.ImageUrl) + } + if p.ProfileType != nil { + queryParameters.Add(`profileType`, *p.ProfileType) + } + + return t.restClient.Post( + `/v2/Profile/UseCase/UpdateProfile`, + &queryParameters, + nil, + nil, + ) +} + +func (t *Profile) UpdateProfileWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/Profile/UseCase/UpdateProfile`, + data, + nil, + nil, + ) +} diff --git a/api/usecase/SitePage.go b/api/usecase/SitePage.go index f5bc843..8a3224b 100644 --- a/api/usecase/SitePage.go +++ b/api/usecase/SitePage.go @@ -190,6 +190,31 @@ func (t *SitePage) CreateTemplateWithJSON(data *map[string]interface{}) (r *http ) } +type DisableSearchEngineIndexingForSitePageParameters struct { + SitePageId string +} + +func (t *SitePage) DisableSearchEngineIndexingForSitePage(p *DisableSearchEngineIndexingForSitePageParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`sitePageId`, p.SitePageId) + + return t.restClient.Post( + `/v2/SitePage/UseCase/DisableSearchEngineIndexingForSitePage`, + &queryParameters, + nil, + nil, + ) +} + +func (t *SitePage) DisableSearchEngineIndexingForSitePageWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/SitePage/UseCase/DisableSearchEngineIndexingForSitePage`, + data, + nil, + nil, + ) +} + type DuplicateSitePageParameters struct { SitePageId string NewSitePageId *string @@ -256,6 +281,31 @@ func (t *SitePage) DuplicateTemplateWithJSON(data *map[string]interface{}) (r *h ) } +type EnableSearchEngineIndexingForSitePageParameters struct { + SitePageId string +} + +func (t *SitePage) EnableSearchEngineIndexingForSitePage(p *EnableSearchEngineIndexingForSitePageParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`sitePageId`, p.SitePageId) + + return t.restClient.Post( + `/v2/SitePage/UseCase/EnableSearchEngineIndexingForSitePage`, + &queryParameters, + nil, + nil, + ) +} + +func (t *SitePage) EnableSearchEngineIndexingForSitePageWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/SitePage/UseCase/EnableSearchEngineIndexingForSitePage`, + data, + nil, + nil, + ) +} + func (t *SitePage) GenerateSitePageTemplates() (r *http.Response, err error) { queryParameters := url.Values{} @@ -328,7 +378,8 @@ func (t *SitePage) RemoveTemplateWithJSON(data *map[string]interface{}) (r *http type SetContentForSitePageParameters struct { SitePageId string - Content string + EditorJson string + Content *string Styles *string Scripts *string } @@ -336,7 +387,10 @@ type SetContentForSitePageParameters struct { func (t *SitePage) SetContentForSitePage(p *SetContentForSitePageParameters) (r *http.Response, err error) { queryParameters := url.Values{} queryParameters.Add(`sitePageId`, p.SitePageId) - queryParameters.Add(`content`, p.Content) + queryParameters.Add(`editorJson`, p.EditorJson) + if p.Content != nil { + queryParameters.Add(`content`, *p.Content) + } if p.Styles != nil { queryParameters.Add(`styles`, *p.Styles) } diff --git a/api/usecase/TicketBlock.go b/api/usecase/TicketBlock.go index ce86dcf..4128193 100644 --- a/api/usecase/TicketBlock.go +++ b/api/usecase/TicketBlock.go @@ -322,6 +322,37 @@ func (t *TicketBlock) RemoveTicketBlockWithJSON(data *map[string]interface{}) (r ) } +type ResendTicketBlockUserRoleEmailParameters struct { + TicketBlockId string + UserId string + AuthenticatedUserId *string +} + +func (t *TicketBlock) ResendTicketBlockUserRoleEmail(p *ResendTicketBlockUserRoleEmailParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`ticketBlockId`, p.TicketBlockId) + queryParameters.Add(`userId`, p.UserId) + if p.AuthenticatedUserId != nil { + queryParameters.Add(`authenticatedUserId`, *p.AuthenticatedUserId) + } + + return t.restClient.Post( + `/v2/TicketBlock/UseCase/ResendTicketBlockUserRoleEmail`, + &queryParameters, + nil, + nil, + ) +} + +func (t *TicketBlock) ResendTicketBlockUserRoleEmailWithJSON(data *map[string]interface{}) (r *http.Response, err error) { + return t.restClient.PostJSON( + `/v2/TicketBlock/UseCase/ResendTicketBlockUserRoleEmail`, + data, + nil, + nil, + ) +} + type SetTicketBlockEmailTextParameters struct { TicketBlockId string EmailText string diff --git a/api/usecase/User.go b/api/usecase/User.go index 82927d9..48cca42 100644 --- a/api/usecase/User.go +++ b/api/usecase/User.go @@ -172,8 +172,9 @@ func (t *User) GetUserRolesForTicketBlock(p *GetUserRolesForTicketBlockParameter ) } -type ListUsersForPoolsParameters struct { - PoolIds []string +type ListUsersForExhibitorParameters struct { + ExhibitorId string + PoolId string WithData *[]string // UserIdentifiers | UserNames | UserAttributes Query *string SortBy *string @@ -182,11 +183,10 @@ type ListUsersForPoolsParameters struct { ItemsPerPage *int64 // 1-100 } -func (t *User) ListUsersForPools(p *ListUsersForPoolsParameters) (r *http.Response, err error) { +func (t *User) ListUsersForExhibitor(p *ListUsersForExhibitorParameters) (r *http.Response, err error) { queryParameters := url.Values{} - for i := range p.PoolIds { - queryParameters.Add(`poolIds[]`, p.PoolIds[i]) - } + queryParameters.Add(`exhibitorId`, p.ExhibitorId) + queryParameters.Add(`poolId`, p.PoolId) if p.WithData != nil { for i := range *p.WithData { queryParameters.Add(`withData[]`, (*p.WithData)[i]) @@ -209,15 +209,15 @@ func (t *User) ListUsersForPools(p *ListUsersForPoolsParameters) (r *http.Respon } return t.restClient.Get( - `/v2/User/UseCase/ListUsersForPools`, + `/v2/User/UseCase/ListUsersForExhibitor`, &queryParameters, nil, nil, ) } -type ListUsersForTicketBlockParameters struct { - TicketBlockId string +type ListUsersForPoolsParameters struct { + PoolIds []string WithData *[]string // UserIdentifiers | UserNames | UserAttributes Query *string SortBy *string @@ -226,9 +226,11 @@ type ListUsersForTicketBlockParameters struct { ItemsPerPage *int64 // 1-100 } -func (t *User) ListUsersForTicketBlock(p *ListUsersForTicketBlockParameters) (r *http.Response, err error) { +func (t *User) ListUsersForPools(p *ListUsersForPoolsParameters) (r *http.Response, err error) { queryParameters := url.Values{} - queryParameters.Add(`ticketBlockId`, p.TicketBlockId) + for i := range p.PoolIds { + queryParameters.Add(`poolIds[]`, p.PoolIds[i]) + } if p.WithData != nil { for i := range *p.WithData { queryParameters.Add(`withData[]`, (*p.WithData)[i]) @@ -251,16 +253,15 @@ func (t *User) ListUsersForTicketBlock(p *ListUsersForTicketBlockParameters) (r } return t.restClient.Get( - `/v2/User/UseCase/ListUsersForTicketBlock`, + `/v2/User/UseCase/ListUsersForPools`, &queryParameters, nil, nil, ) } -type ListUsersInExhibitorParameters struct { - ExhibitorId string - PoolId string +type ListUsersForTicketBlockParameters struct { + TicketBlockId string WithData *[]string // UserIdentifiers | UserNames | UserAttributes Query *string SortBy *string @@ -269,10 +270,9 @@ type ListUsersInExhibitorParameters struct { ItemsPerPage *int64 // 1-100 } -func (t *User) ListUsersInExhibitor(p *ListUsersInExhibitorParameters) (r *http.Response, err error) { +func (t *User) ListUsersForTicketBlock(p *ListUsersForTicketBlockParameters) (r *http.Response, err error) { queryParameters := url.Values{} - queryParameters.Add(`exhibitorId`, p.ExhibitorId) - queryParameters.Add(`poolId`, p.PoolId) + queryParameters.Add(`ticketBlockId`, p.TicketBlockId) if p.WithData != nil { for i := range *p.WithData { queryParameters.Add(`withData[]`, (*p.WithData)[i]) @@ -295,7 +295,7 @@ func (t *User) ListUsersInExhibitor(p *ListUsersInExhibitorParameters) (r *http. } return t.restClient.Get( - `/v2/User/UseCase/ListUsersInExhibitor`, + `/v2/User/UseCase/ListUsersForTicketBlock`, &queryParameters, nil, nil, diff --git a/api/usecase/WebConference.go b/api/usecase/WebConference.go index db74148..c5340fc 100644 --- a/api/usecase/WebConference.go +++ b/api/usecase/WebConference.go @@ -39,6 +39,26 @@ func (t *WebConference) GetWebConferenceRedirectURIByType(p *GetWebConferenceRed ) } +type GetWebConferenceSettingsForUserParameters struct { + UserId string + EventId string + Type string +} + +func (t *WebConference) GetWebConferenceSettingsForUser(p *GetWebConferenceSettingsForUserParameters) (r *http.Response, err error) { + queryParameters := url.Values{} + queryParameters.Add(`userId`, p.UserId) + queryParameters.Add(`eventId`, p.EventId) + queryParameters.Add(`type`, p.Type) + + return t.restClient.Get( + `/v2/WebConference/UseCase/GetWebConferenceSettingsForUser`, + &queryParameters, + nil, + nil, + ) +} + type ListWebConferenceConnectionsForPoolParameters struct { PoolId string Type *string diff --git a/api/usecase/use_case_factory.go b/api/usecase/use_case_factory.go index 0779fab..212fbea 100644 --- a/api/usecase/use_case_factory.go +++ b/api/usecase/use_case_factory.go @@ -30,6 +30,10 @@ func (f *Factory) BugReport() *BugReport { return NewBugReport(f.restClient) } +func (f *Factory) Campaign() *Campaign { + return NewCampaign(f.restClient) +} + func (f *Factory) Canvas() *Canvas { return NewCanvas(f.restClient) } @@ -118,6 +122,10 @@ func (f *Factory) Lead() *Lead { return NewLead(f.restClient) } +func (f *Factory) Link() *Link { + return NewLink(f.restClient) +} + func (f *Factory) Logi() *Logi { return NewLogi(f.restClient) } @@ -162,6 +170,10 @@ func (f *Factory) PoolWorld() *PoolWorld { return NewPoolWorld(f.restClient) } +func (f *Factory) Profile() *Profile { + return NewProfile(f.restClient) +} + func (f *Factory) Promotion() *Promotion { return NewPromotion(f.restClient) }