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 { type Address struct {
// City // City
City string `json:"City,omitempty"` City *string `json:"City,omitempty"`
// Country full name // Country full name
Country string `json:"Country,omitempty"` Country *string `json:"Country,omitempty"`
// Country Code // Country Code
CountryCode string `json:"CountryCode,omitempty"` CountryCode *string `json:"CountryCode,omitempty"`
// Postal Code // Postal Code
PostalCode string `json:"PostalCode,omitempty"` PostalCode *string `json:"PostalCode,omitempty"`
// State full name // State full name
State string `json:"State,omitempty"` State *string `json:"State,omitempty"`
// State Code // State Code
StateCode string `json:"StateCode,omitempty"` StateCode *string `json:"StateCode,omitempty"`
// Street number and name // Street number and name
Street string `json:"Street,omitempty"` Street *string `json:"Street,omitempty"`
} }
// Validate validates this address // Validate validates this address

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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