tweak members

v0.5.0 v0.5.0
Vernon Keenan 2023-04-30 04:48:40 +00:00
parent a3036b3814
commit 89192c0a79
17 changed files with 644 additions and 85 deletions

View File

@ -22,25 +22,25 @@ import (
type Address struct {
// City
City string `json:"City,omitempty"`
City *string `json:"City,omitempty"`
// Country full name
Country string `json:"Country,omitempty"`
Country *string `json:"Country,omitempty"`
// Country Code
CountryCode string `json:"CountryCode,omitempty"`
CountryCode *string `json:"CountryCode,omitempty"`
// Postal Code
PostalCode string `json:"PostalCode,omitempty"`
PostalCode *string `json:"PostalCode,omitempty"`
// State full name
State string `json:"State,omitempty"`
State *string `json:"State,omitempty"`
// State Code
StateCode string `json:"StateCode,omitempty"`
StateCode *string `json:"StateCode,omitempty"`
// Street number and name
Street string `json:"Street,omitempty"`
Street *string `json:"Street,omitempty"`
}
// Validate validates this address

View File

@ -24,139 +24,139 @@ import (
type Company struct {
// Account Id
AccountID string `json:"AccountID,omitempty"`
AccountID *string `json:"AccountID,omitempty"`
// Company Number
AccountNumber string `json:"AccountNumber,omitempty"`
AccountNumber *string `json:"AccountNumber,omitempty"`
// The marketing origin of this Company
AccountSource string `json:"AccountSource,omitempty"`
AccountSource *string `json:"AccountSource,omitempty"`
// active
Active int64 `json:"Active,omitempty"`
Active *bool `json:"Active,omitempty"`
// Annual Revenue Estimate
AnnualRevenue float64 `json:"AnnualRevenue,omitempty"`
AnnualRevenue *float64 `json:"AnnualRevenue,omitempty"`
// cloud revenue total
CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"`
CloudRevenueTotal *float64 `json:"CloudRevenueTotal,omitempty"`
// The type of cloud company
CloudType string `json:"CloudType,omitempty"`
CloudType *string `json:"CloudType,omitempty"`
// The year company started cloud revenue
CloudYear string `json:"CloudYear,omitempty"`
CloudYear *string `json:"CloudYear,omitempty"`
// Company Products
CompanyProducts []*CompanyProduct `json:"CompanyProducts"`
// Company Crunchbase URL
CrunchbaseURL string `json:"CrunchbaseURL,omitempty"`
CrunchbaseURL *string `json:"CrunchbaseURL,omitempty"`
// Description of the Company
Description string `json:"Description,omitempty"`
Description *string `json:"Description,omitempty"`
// Earnings Call Date
EarningsCall string `json:"EarningsCall,omitempty"`
EarningsCall *string `json:"EarningsCall,omitempty"`
// Main Company Email
Email string `json:"Email,omitempty"`
Email *string `json:"Email,omitempty"`
// The amount of equity EquityFunding
EquityFunding float64 `json:"EquityFunding,omitempty"`
EquityFunding *float64 `json:"EquityFunding,omitempty"`
// Company Facebook URL
Facebook string `json:"Facebook,omitempty"`
Facebook *string `json:"Facebook,omitempty"`
// Fax number
Fax string `json:"Fax,omitempty"`
Fax *string `json:"Fax,omitempty"`
// Financial Statements
FinancialStatements []*FinancialStatement `json:"FinancialStatements"`
// Date company founded
FoundedDate string `json:"FoundedDate,omitempty"`
FoundedDate *string `json:"FoundedDate,omitempty"`
// Company Id
ID string `json:"ID,omitempty"`
// IPO Date
IPODate string `json:"IPODate,omitempty"`
IPODate *string `json:"IPODate,omitempty"`
// image alt text
ImageAltText string `json:"ImageAltText,omitempty"`
ImageAltText *string `json:"ImageAltText,omitempty"`
// image URL
ImageURL string `json:"ImageURL,omitempty"`
ImageURL *string `json:"ImageURL,omitempty"`
// Industries
Industries string `json:"Industries,omitempty"`
Industries *string `json:"Industries,omitempty"`
// Industry
Industry string `json:"Industry,omitempty"`
Industry *string `json:"Industry,omitempty"`
// Similar Companies
IndustryCompanies []*IndustryCompany `json:"IndustryCompanies"`
// Company LinkedIn URL
LinkedIn string `json:"LinkedIn,omitempty"`
LinkedIn *string `json:"LinkedIn,omitempty"`
// listing address
ListingAddress *Address `json:"ListingAddress,omitempty"`
// Headquarters Location Description
Location string `json:"Location,omitempty"`
Location *string `json:"Location,omitempty"`
// Company Logo URL
Logo string `json:"Logo,omitempty"`
Logo *string `json:"Logo,omitempty"`
// Market Capitalization
MarketCapitalization float64 `json:"MarketCapitalization,omitempty"`
MarketCapitalization *float64 `json:"MarketCapitalization,omitempty"`
// Company Name
Name string `json:"Name,omitempty"`
Name *string `json:"Name,omitempty"`
// Number of Investments
NumberInvestments float64 `json:"NumberInvestments,omitempty"`
NumberInvestments *float64 `json:"NumberInvestments,omitempty"`
// Employee Count Estimate
NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"`
NumberOfEmployees *int64 `json:"NumberOfEmployees,omitempty"`
// Ownership
Ownership string `json:"Ownership,omitempty"`
Ownership *string `json:"Ownership,omitempty"`
// Parent Company
ParentID string `json:"ParentID,omitempty"`
ParentID *string `json:"ParentID,omitempty"`
// Phone
Phone string `json:"Phone,omitempty"`
Phone *string `json:"Phone,omitempty"`
// Publish this record?
Publish bool `json:"Publish,omitempty"`
Publish *bool `json:"Publish,omitempty"`
// A Salesforce-First company?
SalesforceFirst bool `json:"SalesforceFirst,omitempty"`
SalesforceFirst *bool `json:"SalesforceFirst,omitempty"`
// Slug
Slug string `json:"Slug,omitempty"`
Slug *string `json:"Slug,omitempty"`
// Company tagline
TagLine string `json:"TagLine,omitempty"`
TagLine *string `json:"TagLine,omitempty"`
// Ticker Symbol
TickerSymbol string `json:"TickerSymbol,omitempty"`
TickerSymbol *string `json:"TickerSymbol,omitempty"`
// Twitter URL
Twitter string `json:"Twitter,omitempty"`
Twitter *string `json:"Twitter,omitempty"`
// Type
Type string `json:"Type,omitempty"`
Type *string `json:"Type,omitempty"`
// Website
Website string `json:"Website,omitempty"`
Website *string `json:"Website,omitempty"`
// Year Started
YearStarted string `json:"YearStarted,omitempty"`
YearStarted *string `json:"YearStarted,omitempty"`
}
// Validate validates this company

View File

@ -24,61 +24,61 @@ import (
type CompanyProduct struct {
// ID of the Company that owns this Product
AccountID string `json:"AccountID,omitempty"`
AccountID *string `json:"AccountID,omitempty"`
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
CreatedByID *string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
CreatedDate *string `json:"CreatedDate,omitempty"`
// Description of product
Description string `json:"Description,omitempty"`
Description *string `json:"Description,omitempty"`
// Full Description of product
FullDescription string `json:"FullDescription,omitempty"`
FullDescription *string `json:"FullDescription,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// Image Alt Text
ImageAltText string `json:"ImageAltText,omitempty"`
ImageAltText *string `json:"ImageAltText,omitempty"`
// Image URL
ImageURL string `json:"ImageURL,omitempty"`
ImageURL *string `json:"ImageURL,omitempty"`
// Industries
Industries []*Industry `json:"Industries"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
// Logo
Logo string `json:"Logo,omitempty"`
Logo *string `json:"Logo,omitempty"`
// Product Name
Name string `json:"Name,omitempty"`
Name *string `json:"Name,omitempty"`
// Product Video ID
ProductVideoID string `json:"ProductVideoID,omitempty"`
ProductVideoID *string `json:"ProductVideoID,omitempty"`
// Published
Published bool `json:"Published,omitempty"`
Published *bool `json:"Published,omitempty"`
// Salesforce Specific
SalesforceSpecific bool `json:"SalesforceSpecific,omitempty"`
SalesforceSpecific *bool `json:"SalesforceSpecific,omitempty"`
// Slug
Slug string `json:"Slug,omitempty"`
Slug *string `json:"Slug,omitempty"`
// TagLine
TagLine string `json:"TagLine,omitempty"`
TagLine *string `json:"TagLine,omitempty"`
// Website
URL string `json:"URL,omitempty"`
URL *string `json:"URL,omitempty"`
}
// Validate validates this company product

View File

@ -30,49 +30,49 @@ type Industry struct {
CompanyProducts []*CompanyProduct `json:"CompanyProducts"`
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
CreatedByID *string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
CreatedDate *string `json:"CreatedDate,omitempty"`
// Industry Description
Description string `json:"Description,omitempty"`
Description *string `json:"Description,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// Image Alt Text
ImageAltText string `json:"ImageAltText,omitempty"`
ImageAltText *string `json:"ImageAltText,omitempty"`
// Image URL
ImageURL string `json:"ImageURL,omitempty"`
ImageURL *string `json:"ImageURL,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
// The hierarchical level of this Industry
Level string `json:"Level,omitempty"`
Level *string `json:"Level,omitempty"`
// Logo
Logo string `json:"Logo,omitempty"`
Logo *string `json:"Logo,omitempty"`
// Industry Name
Name string `json:"Name,omitempty"`
Name *string `json:"Name,omitempty"`
// The ID of the Parent Industry
ParentIndustryID string `json:"ParentIndustryID,omitempty"`
ParentIndustryID *string `json:"ParentIndustryID,omitempty"`
// The full path of this industry, including Parent
Path string `json:"Path,omitempty"`
Path *string `json:"Path,omitempty"`
// The CMS Slug for this Industry
Slug string `json:"Slug,omitempty"`
Slug *string `json:"Slug,omitempty"`
// TagLine
TagLine string `json:"TagLine,omitempty"`
TagLine *string `json:"TagLine,omitempty"`
}
// Validate validates this industry

View File

@ -25,6 +25,9 @@ type CourseLessonRequest struct {
// data
Data []*CourseLesson `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course lesson request
@ -35,6 +38,10 @@ func (m *CourseLessonRequest) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseLessonRequest) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseLessonRequest) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course lesson request based on the context it is used
func (m *CourseLessonRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseLessonRequest) ContextValidate(ctx context.Context, formats strfm
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseLessonRequest) contextValidateData(ctx context.Context, formats s
return nil
}
func (m *CourseLessonRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseLessonRequest) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type CourseLessonResponse struct {
// data
Data []*CourseLesson `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course lesson response
@ -35,6 +38,10 @@ func (m *CourseLessonResponse) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseLessonResponse) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseLessonResponse) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course lesson response based on the context it is used
func (m *CourseLessonResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseLessonResponse) ContextValidate(ctx context.Context, formats strf
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseLessonResponse) contextValidateData(ctx context.Context, formats
return nil
}
func (m *CourseLessonResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseLessonResponse) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type CourseRequest struct {
// data
Data []*Course `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course request
@ -35,6 +38,10 @@ func (m *CourseRequest) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseRequest) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseRequest) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course request based on the context it is used
func (m *CourseRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseRequest) ContextValidate(ctx context.Context, formats strfmt.Regi
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseRequest) contextValidateData(ctx context.Context, formats strfmt.
return nil
}
func (m *CourseRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseRequest) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type CourseResponse struct {
// data
Data []*Course `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course response
@ -35,6 +38,10 @@ func (m *CourseResponse) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseResponse) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseResponse) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course response based on the context it is used
func (m *CourseResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseResponse) ContextValidate(ctx context.Context, formats strfmt.Reg
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseResponse) contextValidateData(ctx context.Context, formats strfmt
return nil
}
func (m *CourseResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseResponse) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type CourseSectionRequest struct {
// data
Data []*CourseSection `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course section request
@ -35,6 +38,10 @@ func (m *CourseSectionRequest) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseSectionRequest) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseSectionRequest) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course section request based on the context it is used
func (m *CourseSectionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseSectionRequest) ContextValidate(ctx context.Context, formats strf
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseSectionRequest) contextValidateData(ctx context.Context, formats
return nil
}
func (m *CourseSectionRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseSectionRequest) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type CourseSectionResponse struct {
// data
Data []*CourseSection `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this course section response
@ -35,6 +38,10 @@ func (m *CourseSectionResponse) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *CourseSectionResponse) validateData(formats strfmt.Registry) error {
return nil
}
func (m *CourseSectionResponse) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this course section response based on the context it is used
func (m *CourseSectionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *CourseSectionResponse) ContextValidate(ctx context.Context, formats str
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *CourseSectionResponse) contextValidateData(ctx context.Context, formats
return nil
}
func (m *CourseSectionResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CourseSectionResponse) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -25,6 +25,9 @@ type EventRequest struct {
// data
Data []*Event `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this event request
@ -35,6 +38,10 @@ func (m *EventRequest) Validate(formats strfmt.Registry) error {
res = append(res, err)
}
if err := m.validateMeta(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -67,6 +74,25 @@ func (m *EventRequest) validateData(formats strfmt.Registry) error {
return nil
}
func (m *EventRequest) validateMeta(formats strfmt.Registry) error {
if swag.IsZero(m.Meta) { // not required
return nil
}
if m.Meta != nil {
if err := m.Meta.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// ContextValidate validate this event request based on the context it is used
func (m *EventRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
@ -75,6 +101,10 @@ func (m *EventRequest) ContextValidate(ctx context.Context, formats strfmt.Regis
res = append(res, err)
}
if err := m.contextValidateMeta(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
@ -101,6 +131,22 @@ func (m *EventRequest) contextValidateData(ctx context.Context, formats strfmt.R
return nil
}
func (m *EventRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
if m.Meta != nil {
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("Meta")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("Meta")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *EventRequest) MarshalBinary() ([]byte, error) {
if m == nil {

View File

@ -31,8 +31,7 @@ type Template struct {
Description *string `json:"Description,omitempty"`
// HTML Body
// Format: byte
HTML *strfmt.Base64 `json:"HTML,omitempty"`
HTML *string `json:"HTML,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`

View File

@ -6,128 +6,170 @@ Company:
AccountNumber:
description: Company Number
type: string
x-nullable: true
AccountSource:
description: The marketing origin of this Company
type: string
x-nullable: true
Active:
type: integer
type: boolean
x-nullable: true
AnnualRevenue:
description: Annual Revenue Estimate
format: double
type: number
x-nullable: true
ListingAddress:
$ref: "./address.yaml#/Address"
x-nullable: true
CloudRevenueTotal:
type: number
x-nullable: true
CloudType:
description: The type of cloud company
type: string
x-nullable: true
CloudYear:
description: The year company started cloud revenue
type: string
x-nullable: true
Description:
description: Description of the Company
type: string
x-nullable: true
EarningsCall:
description: Earnings Call Date
type: string
x-nullable: true
Email:
description: Main Company Email
type: string
x-nullable: true
EquityFunding:
description: The amount of equity EquityFunding
type: number
x-nullable: true
Facebook:
description: Company Facebook URL
type: string
x-nullable: true
Fax:
description: Fax number
type: string
x-nullable: true
FoundedDate:
description: Date company founded
type: string
x-nullable: true
IPODate:
description: IPO Date
type: string
x-nullable: true
ImageAltText:
type: string
x-nullable: true
ImageURL:
type: string
x-nullable: true
Industries:
description: Industries
type: string
x-nullable: true
Industry:
description: Industry
type: string
x-nullable: true
LinkedIn:
description: Company LinkedIn URL
type: string
x-nullable: true
Location:
description: Headquarters Location Description
type: string
x-nullable: true
Logo:
description: Company Logo URL
type: string
x-nullable: true
MarketCapitalization:
description: Market Capitalization
type: number
x-nullable: true
Name:
description: Company Name
type: string
x-nullable: true
NumberInvestments:
description: Number of Investments
type: number
x-nullable: true
NumberOfEmployees:
description: Employee Count Estimate
format: int64
type: number
x-nullable: true
Ownership:
description: Ownership
type: string
x-nullable: true
ParentID:
description: Parent Company
type: string
x-nullable: true
Phone:
description: Phone
type: string
x-nullable: true
Publish:
description: Publish this record?
type: boolean
x-nullable: true
SalesforceFirst:
description: A Salesforce-First company?
type: boolean
x-nullable: true
Slug:
description: Slug
type: string
x-nullable: true
TagLine:
description: Company tagline
type: string
x-nullable: true
TickerSymbol:
description: Ticker Symbol
type: string
x-nullable: true
Twitter:
description: Twitter URL
type: string
x-nullable: true
Type:
description: Type
type: string
x-nullable: true
Website:
description: Website
type: string
x-nullable: true
YearStarted:
description: Year Started
type: string
x-nullable: true
CompanyProducts:
x-nullable: true
description: Company Products
type: array
items:
$ref: "./company-product.yaml#/CompanyProduct"
FinancialStatements:
x-nullable: true
description: Financial Statements
type: array
items:
$ref: "./financial-statement.yaml#/FinancialStatement"
IndustryCompanies:
x-nullable: true
description: Similar Companies
type: array
items:

View File

@ -127,24 +127,31 @@ definitions:
City:
description: City
type: string
x-nullable: true
Country:
description: Country full name
type: string
x-nullable: true
CountryCode:
description: Country Code
type: string
x-nullable: true
PostalCode:
description: Postal Code
type: string
x-nullable: true
State:
description: State full name
type: string
x-nullable: true
StateCode:
description: State Code
type: string
x-nullable: true
Street:
description: Street number and name
type: string
x-nullable: true
type: object
Company:
properties:
@ -154,135 +161,179 @@ definitions:
AccountID:
description: Account Id
type: string
x-nullable: true
AccountNumber:
description: Company Number
type: string
x-nullable: true
AccountSource:
description: The marketing origin of this Company
type: string
x-nullable: true
Active:
type: integer
type: boolean
x-nullable: true
AnnualRevenue:
x-nullable: true
description: Annual Revenue Estimate
format: double
type: number
CloudRevenueTotal:
x-nullable: true
type: number
CloudType:
x-nullable: true
description: The type of cloud company
type: string
CloudYear:
description: The year company started cloud revenue
type: string
x-nullable: true
CrunchbaseURL:
description: Company Crunchbase URL
type: string
x-nullable: true
Description:
description: Description of the Company
type: string
x-nullable: true
EarningsCall:
description: Earnings Call Date
type: string
x-nullable: true
Email:
description: Main Company Email
type: string
x-nullable: true
EquityFunding:
description: The amount of equity EquityFunding
type: number
x-nullable: true
Facebook:
description: Company Facebook URL
type: string
x-nullable: true
Fax:
description: Fax number
type: string
x-nullable: true
FoundedDate:
description: Date company founded
type: string
x-nullable: true
IPODate:
description: IPO Date
type: string
x-nullable: true
ImageAltText:
type: string
x-nullable: true
ImageURL:
x-nullable: true
type: string
Industries:
x-nullable: true
description: Industries
type: string
Industry:
x-nullable: true
description: Industry
type: string
LinkedIn:
x-nullable: true
description: Company LinkedIn URL
type: string
ListingAddress:
x-nullable: true
$ref: "#/definitions/Address"
Location:
x-nullable: true
description: Headquarters Location Description
type: string
Logo:
x-nullable: true
description: Company Logo URL
type: string
MarketCapitalization:
x-nullable: true
description: Market Capitalization
type: number
Name:
x-nullable: true
description: Company Name
type: string
NumberInvestments:
x-nullable: true
description: Number of Investments
type: number
NumberOfEmployees:
x-nullable: true
description: Employee Count Estimate
format: int64
type: number
Ownership:
x-nullable: true
description: Ownership
type: string
ParentID:
x-nullable: true
description: Parent Company
type: string
Phone:
x-nullable: true
description: Phone
type: string
Publish:
x-nullable: true
description: Publish this record?
type: boolean
SalesforceFirst:
x-nullable: true
description: A Salesforce-First company?
type: boolean
Slug:
x-nullable: true
description: Slug
type: string
TagLine:
x-nullable: true
description: Company tagline
type: string
TickerSymbol:
x-nullable: true
description: Ticker Symbol
type: string
Twitter:
x-nullable: true
description: Twitter URL
type: string
Type:
x-nullable: true
description: Type
type: string
Website:
x-nullable: true
description: Website
type: string
YearStarted:
x-nullable: true
description: Year Started
type: string
CompanyProducts:
description: Company Products
x-nullable: true
type: array
items:
$ref: "#/definitions/CompanyProduct"
FinancialStatements:
description: Financial Statements
x-nullable: true
type: array
items:
$ref: "#/definitions/FinancialStatement"
IndustryCompanies:
description: Similar Companies
x-nullable: true
type: array
items:
$ref: "#/definitions/IndustryCompany"
@ -348,57 +399,75 @@ definitions:
AccountID:
description: ID of the Company that owns this Product
type: string
x-nullable: true
CreatedByID:
description: Created By User ID
type: string
x-nullable: true
CreatedDate:
description: Created Date
type: string
x-nullable: true
Description:
description: Description of product
type: string
x-nullable: true
FullDescription:
description: Full Description of product
type: string
x-nullable: true
ImageAltText:
description: Image Alt Text
type: string
x-nullable: true
ImageURL:
description: Image URL
type: string
x-nullable: true
Industries:
x-nullable: true
description: Industries
type: array
items:
$ref: "#/definitions/Industry"
LastModifiedByID:
x-nullable: true
description: Last Modified By User ID
type: string
LastModifiedDate:
x-nullable: true
description: Last Modified Date
type: string
Logo:
x-nullable: true
description: Logo
type: string
Name:
x-nullable: true
description: Product Name
type: string
ProductVideoID:
x-nullable: true
description: Product Video ID
type: string
Published:
x-nullable: true
description: Published
type: boolean
SalesforceSpecific:
x-nullable: true
description: Salesforce Specific
type: boolean
Slug:
x-nullable: true
description: Slug
type: string
TagLine:
x-nullable: true
description: TagLine
type: string
URL:
x-nullable: true
description: Website
type: string
type: object
@ -409,55 +478,71 @@ definitions:
description: Record Id
type: string
Companies:
x-nullable: true
description: The AccountIDs of the Companies in this Industry
type: array
items:
type: string
CompanyProducts:
x-nullable: true
description: The list of Products in this industry
type: array
items:
$ref: "#/definitions/CompanyProduct"
CreatedByID:
x-nullable: true
description: Created By User ID
type: string
CreatedDate:
x-nullable: true
description: Created Date
type: string
Description:
x-nullable: true
description: Industry Description
type: string
ImageAltText:
x-nullable: true
description: Image Alt Text
type: string
ImageURL:
x-nullable: true
description: Image URL
type: string
LastModifiedByID:
x-nullable: true
description: Last Modified By User ID
type: string
LastModifiedDate:
x-nullable: true
description: Last Modified Date
type: string
Level:
x-nullable: true
description: The hierarchical level of this Industry
type: string
Logo:
x-nullable: true
description: Logo
type: string
Name:
x-nullable: true
description: Industry Name
type: string
ParentIndustryID:
x-nullable: true
description: The ID of the Parent Industry
type: string
Path:
x-nullable: true
description: The full path of this industry, including Parent
type: string
Slug:
x-nullable: true
description: The CMS Slug for this Industry
type: string
TagLine:
x-nullable: true
description: TagLine
type: string
type: object

View File

@ -3403,7 +3403,6 @@ definitions:
x-nullable: true
HTML:
description: HTML Body
format: byte
type: string
x-nullable: true
ID:
@ -3934,6 +3933,8 @@ definitions:
EventRequest:
description: An array of Event objects
properties:
Meta:
$ref: "#/definitions/ResponseMeta"
Data:
items:
$ref: "../../lib/swagger/defs/event.yaml#/Event"
@ -3956,6 +3957,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-lesson.yaml#/CourseLesson"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseLessonResponse:
description: An array of CourseLesson objects
@ -3964,6 +3967,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-lesson.yaml#/CourseLesson"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseRequest:
description: An array of Course objects
@ -3972,6 +3977,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course.yaml#/Course"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseResponse:
description: An array of Course objects
@ -3980,6 +3987,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course.yaml#/Course"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseSectionRequest:
description: An array of CourseSection objects
@ -3988,6 +3997,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-section.yaml#/CourseSection"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseSectionResponse:
description: An array of CourseSection objects
@ -3996,4 +4007,6 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-section.yaml#/CourseSection"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object

View File

@ -127,24 +127,31 @@ definitions:
City:
description: City
type: string
x-nullable: true
Country:
description: Country full name
type: string
x-nullable: true
CountryCode:
description: Country Code
type: string
x-nullable: true
PostalCode:
description: Postal Code
type: string
x-nullable: true
State:
description: State full name
type: string
x-nullable: true
StateCode:
description: State Code
type: string
x-nullable: true
Street:
description: Street number and name
type: string
x-nullable: true
type: object
Company:
properties:
@ -154,135 +161,179 @@ definitions:
AccountID:
description: Account Id
type: string
x-nullable: true
AccountNumber:
description: Company Number
type: string
x-nullable: true
AccountSource:
description: The marketing origin of this Company
type: string
x-nullable: true
Active:
type: integer
type: boolean
x-nullable: true
AnnualRevenue:
x-nullable: true
description: Annual Revenue Estimate
format: double
type: number
CloudRevenueTotal:
x-nullable: true
type: number
CloudType:
x-nullable: true
description: The type of cloud company
type: string
CloudYear:
description: The year company started cloud revenue
type: string
x-nullable: true
CrunchbaseURL:
description: Company Crunchbase URL
type: string
x-nullable: true
Description:
description: Description of the Company
type: string
x-nullable: true
EarningsCall:
description: Earnings Call Date
type: string
x-nullable: true
Email:
description: Main Company Email
type: string
x-nullable: true
EquityFunding:
description: The amount of equity EquityFunding
type: number
x-nullable: true
Facebook:
description: Company Facebook URL
type: string
x-nullable: true
Fax:
description: Fax number
type: string
x-nullable: true
FoundedDate:
description: Date company founded
type: string
x-nullable: true
IPODate:
description: IPO Date
type: string
x-nullable: true
ImageAltText:
type: string
x-nullable: true
ImageURL:
x-nullable: true
type: string
Industries:
x-nullable: true
description: Industries
type: string
Industry:
x-nullable: true
description: Industry
type: string
LinkedIn:
x-nullable: true
description: Company LinkedIn URL
type: string
ListingAddress:
x-nullable: true
$ref: "#/definitions/Address"
Location:
x-nullable: true
description: Headquarters Location Description
type: string
Logo:
x-nullable: true
description: Company Logo URL
type: string
MarketCapitalization:
x-nullable: true
description: Market Capitalization
type: number
Name:
x-nullable: true
description: Company Name
type: string
NumberInvestments:
x-nullable: true
description: Number of Investments
type: number
NumberOfEmployees:
x-nullable: true
description: Employee Count Estimate
format: int64
type: number
Ownership:
x-nullable: true
description: Ownership
type: string
ParentID:
x-nullable: true
description: Parent Company
type: string
Phone:
x-nullable: true
description: Phone
type: string
Publish:
x-nullable: true
description: Publish this record?
type: boolean
SalesforceFirst:
x-nullable: true
description: A Salesforce-First company?
type: boolean
Slug:
x-nullable: true
description: Slug
type: string
TagLine:
x-nullable: true
description: Company tagline
type: string
TickerSymbol:
x-nullable: true
description: Ticker Symbol
type: string
Twitter:
x-nullable: true
description: Twitter URL
type: string
Type:
x-nullable: true
description: Type
type: string
Website:
x-nullable: true
description: Website
type: string
YearStarted:
x-nullable: true
description: Year Started
type: string
CompanyProducts:
description: Company Products
x-nullable: true
type: array
items:
$ref: "#/definitions/CompanyProduct"
FinancialStatements:
description: Financial Statements
x-nullable: true
type: array
items:
$ref: "#/definitions/FinancialStatement"
IndustryCompanies:
description: Similar Companies
x-nullable: true
type: array
items:
$ref: "#/definitions/IndustryCompany"
@ -348,57 +399,75 @@ definitions:
AccountID:
description: ID of the Company that owns this Product
type: string
x-nullable: true
CreatedByID:
description: Created By User ID
type: string
x-nullable: true
CreatedDate:
description: Created Date
type: string
x-nullable: true
Description:
description: Description of product
type: string
x-nullable: true
FullDescription:
description: Full Description of product
type: string
x-nullable: true
ImageAltText:
description: Image Alt Text
type: string
x-nullable: true
ImageURL:
description: Image URL
type: string
x-nullable: true
Industries:
x-nullable: true
description: Industries
type: array
items:
$ref: "#/definitions/Industry"
LastModifiedByID:
x-nullable: true
description: Last Modified By User ID
type: string
LastModifiedDate:
x-nullable: true
description: Last Modified Date
type: string
Logo:
x-nullable: true
description: Logo
type: string
Name:
x-nullable: true
description: Product Name
type: string
ProductVideoID:
x-nullable: true
description: Product Video ID
type: string
Published:
x-nullable: true
description: Published
type: boolean
SalesforceSpecific:
x-nullable: true
description: Salesforce Specific
type: boolean
Slug:
x-nullable: true
description: Slug
type: string
TagLine:
x-nullable: true
description: TagLine
type: string
URL:
x-nullable: true
description: Website
type: string
type: object
@ -409,55 +478,71 @@ definitions:
description: Record Id
type: string
Companies:
x-nullable: true
description: The AccountIDs of the Companies in this Industry
type: array
items:
type: string
CompanyProducts:
x-nullable: true
description: The list of Products in this industry
type: array
items:
$ref: "#/definitions/CompanyProduct"
CreatedByID:
x-nullable: true
description: Created By User ID
type: string
CreatedDate:
x-nullable: true
description: Created Date
type: string
Description:
x-nullable: true
description: Industry Description
type: string
ImageAltText:
x-nullable: true
description: Image Alt Text
type: string
ImageURL:
x-nullable: true
description: Image URL
type: string
LastModifiedByID:
x-nullable: true
description: Last Modified By User ID
type: string
LastModifiedDate:
x-nullable: true
description: Last Modified Date
type: string
Level:
x-nullable: true
description: The hierarchical level of this Industry
type: string
Logo:
x-nullable: true
description: Logo
type: string
Name:
x-nullable: true
description: Industry Name
type: string
ParentIndustryID:
x-nullable: true
description: The ID of the Parent Industry
type: string
Path:
x-nullable: true
description: The full path of this industry, including Parent
type: string
Slug:
x-nullable: true
description: The CMS Slug for this Industry
type: string
TagLine:
x-nullable: true
description: TagLine
type: string
type: object

View File

@ -3403,7 +3403,6 @@ definitions:
x-nullable: true
HTML:
description: HTML Body
format: byte
type: string
x-nullable: true
ID:
@ -3934,6 +3933,8 @@ definitions:
EventRequest:
description: An array of Event objects
properties:
Meta:
$ref: "#/definitions/ResponseMeta"
Data:
items:
$ref: "../../lib/swagger/defs/event.yaml#/Event"
@ -3956,6 +3957,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-lesson.yaml#/CourseLesson"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseLessonResponse:
description: An array of CourseLesson objects
@ -3964,6 +3967,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-lesson.yaml#/CourseLesson"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseRequest:
description: An array of Course objects
@ -3972,6 +3977,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course.yaml#/Course"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseResponse:
description: An array of Course objects
@ -3980,6 +3987,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course.yaml#/Course"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseSectionRequest:
description: An array of CourseSection objects
@ -3988,6 +3997,8 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-section.yaml#/CourseSection"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object
CourseSectionResponse:
description: An array of CourseSection objects
@ -3996,4 +4007,6 @@ definitions:
items:
$ref: "../../lib/swagger/defs/course-section.yaml#/CourseSection"
type: array
Meta:
$ref: "#/definitions/ResponseMeta"
type: object