mirror of https://github.com/vernonkeenan/lib
parent
fce4123f02
commit
c06ed9fdc5
|
@ -70,7 +70,7 @@ type GetFavoritesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetFavoritesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get favorites params
|
||||
func (o *GetFavoritesParams) WithXAuth0UserID(xAuth0UserID string) *GetFavoritesParams {
|
||||
func (o *GetFavoritesParams) WithXAuth0UserID(xAuth0UserID *string) *GetFavoritesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get favorites params
|
||||
func (o *GetFavoritesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetFavoritesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetFavoritesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectCompaniesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectCompaniesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research project companies params
|
||||
func (o *GetResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectCompaniesParams {
|
||||
func (o *GetResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectCompaniesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research project companies params
|
||||
func (o *GetResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectCompaniesParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectDocumentsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectDocumentsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research project documents params
|
||||
func (o *GetResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectDocumentsParams {
|
||||
func (o *GetResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectDocumentsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research project documents params
|
||||
func (o *GetResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectDocumentsParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectProductsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectProductsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research project products params
|
||||
func (o *GetResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectProductsParams {
|
||||
func (o *GetResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectProductsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research project products params
|
||||
func (o *GetResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectProductsParams) WriteToRequest(r runtime.ClientReques
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectServicesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectServicesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research project services params
|
||||
func (o *GetResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectServicesParams {
|
||||
func (o *GetResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectServicesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research project services params
|
||||
func (o *GetResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectServicesParams) WriteToRequest(r runtime.ClientReques
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectTopicsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectTopicsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research project topics params
|
||||
func (o *GetResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectTopicsParams {
|
||||
func (o *GetResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectTopicsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research project topics params
|
||||
func (o *GetResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectTopicsParams) WriteToRequest(r runtime.ClientRequest,
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -70,7 +70,7 @@ type GetResearchProjectsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ID.
|
||||
|
||||
|
@ -148,13 +148,13 @@ func (o *GetResearchProjectsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the get research projects params
|
||||
func (o *GetResearchProjectsParams) WithXAuth0UserID(xAuth0UserID string) *GetResearchProjectsParams {
|
||||
func (o *GetResearchProjectsParams) WithXAuth0UserID(xAuth0UserID *string) *GetResearchProjectsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the get research projects params
|
||||
func (o *GetResearchProjectsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *GetResearchProjectsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -199,9 +199,12 @@ func (o *GetResearchProjectsParams) WriteToRequest(r runtime.ClientRequest, reg
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if o.ID != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectCompaniesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectCompanyRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectCompaniesParams) SetHTTPClient(client *http.Client)
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research project companies params
|
||||
func (o *PostResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectCompaniesParams {
|
||||
func (o *PostResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectCompaniesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research project companies params
|
||||
func (o *PostResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectCompaniesParams) WriteToRequest(r runtime.ClientRequ
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectCompanyRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectCompanyRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectDocumentsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectDocumentRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectDocumentsParams) SetHTTPClient(client *http.Client)
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research project documents params
|
||||
func (o *PostResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectDocumentsParams {
|
||||
func (o *PostResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectDocumentsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research project documents params
|
||||
func (o *PostResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectDocumentsParams) WriteToRequest(r runtime.ClientRequ
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectDocumentRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectDocumentRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectProductsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectProductRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectProductsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research project products params
|
||||
func (o *PostResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectProductsParams {
|
||||
func (o *PostResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectProductsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research project products params
|
||||
func (o *PostResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectProductsParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectProductRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectProductRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectServicesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectServiceRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectServicesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research project services params
|
||||
func (o *PostResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectServicesParams {
|
||||
func (o *PostResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectServicesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research project services params
|
||||
func (o *PostResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectServicesParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectServiceRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectServiceRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectTopicsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectTopicRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectTopicsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research project topics params
|
||||
func (o *PostResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectTopicsParams {
|
||||
func (o *PostResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectTopicsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research project topics params
|
||||
func (o *PostResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectTopicsParams) WriteToRequest(r runtime.ClientRequest
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectTopicRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectTopicRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PostResearchProjectsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PostResearchProjectsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the post research projects params
|
||||
func (o *PostResearchProjectsParams) WithXAuth0UserID(xAuth0UserID string) *PostResearchProjectsParams {
|
||||
func (o *PostResearchProjectsParams) WithXAuth0UserID(xAuth0UserID *string) *PostResearchProjectsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the post research projects params
|
||||
func (o *PostResearchProjectsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PostResearchProjectsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PostResearchProjectsParams) WriteToRequest(r runtime.ClientRequest, reg
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectCompaniesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectCompanyRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectCompaniesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research project companies params
|
||||
func (o *PutResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectCompaniesParams {
|
||||
func (o *PutResearchProjectCompaniesParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectCompaniesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research project companies params
|
||||
func (o *PutResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectCompaniesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectCompaniesParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectCompanyRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectCompanyRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectDocumentsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectDocumentRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectDocumentsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research project documents params
|
||||
func (o *PutResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectDocumentsParams {
|
||||
func (o *PutResearchProjectDocumentsParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectDocumentsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research project documents params
|
||||
func (o *PutResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectDocumentsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectDocumentsParams) WriteToRequest(r runtime.ClientReque
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectDocumentRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectDocumentRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectProductsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectProductRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectProductsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research project products params
|
||||
func (o *PutResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectProductsParams {
|
||||
func (o *PutResearchProjectProductsParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectProductsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research project products params
|
||||
func (o *PutResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectProductsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectProductsParams) WriteToRequest(r runtime.ClientReques
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectProductRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectProductRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectServicesParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectServiceRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectServicesParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research project services params
|
||||
func (o *PutResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectServicesParams {
|
||||
func (o *PutResearchProjectServicesParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectServicesParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research project services params
|
||||
func (o *PutResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectServicesParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectServicesParams) WriteToRequest(r runtime.ClientReques
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectServiceRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectServiceRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectTopicsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectTopicRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectTopicsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research project topics params
|
||||
func (o *PutResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectTopicsParams {
|
||||
func (o *PutResearchProjectTopicsParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectTopicsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research project topics params
|
||||
func (o *PutResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectTopicsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectTopicsParams) WriteToRequest(r runtime.ClientRequest,
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectTopicRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectTopicRequest); err != nil {
|
||||
|
|
|
@ -71,7 +71,7 @@ type PutResearchProjectsParams struct {
|
|||
|
||||
Auth0 User Id
|
||||
*/
|
||||
XAuth0UserID string
|
||||
XAuth0UserID *string
|
||||
|
||||
/* ResearchProjectRequest.
|
||||
|
||||
|
@ -133,13 +133,13 @@ func (o *PutResearchProjectsParams) SetHTTPClient(client *http.Client) {
|
|||
}
|
||||
|
||||
// WithXAuth0UserID adds the xAuth0UserID to the put research projects params
|
||||
func (o *PutResearchProjectsParams) WithXAuth0UserID(xAuth0UserID string) *PutResearchProjectsParams {
|
||||
func (o *PutResearchProjectsParams) WithXAuth0UserID(xAuth0UserID *string) *PutResearchProjectsParams {
|
||||
o.SetXAuth0UserID(xAuth0UserID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetXAuth0UserID adds the xAuth0UserId to the put research projects params
|
||||
func (o *PutResearchProjectsParams) SetXAuth0UserID(xAuth0UserID string) {
|
||||
func (o *PutResearchProjectsParams) SetXAuth0UserID(xAuth0UserID *string) {
|
||||
o.XAuth0UserID = xAuth0UserID
|
||||
}
|
||||
|
||||
|
@ -162,9 +162,12 @@ func (o *PutResearchProjectsParams) WriteToRequest(r runtime.ClientRequest, reg
|
|||
}
|
||||
var res []error
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
if o.XAuth0UserID != nil {
|
||||
|
||||
// header param X-Auth0-UserId
|
||||
if err := r.SetHeaderParam("X-Auth0-UserId", *o.XAuth0UserID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if o.ResearchProjectRequest != nil {
|
||||
if err := r.SetBodyParam(o.ResearchProjectRequest); err != nil {
|
||||
|
|
|
@ -48,6 +48,9 @@ type Prompt struct {
|
|||
// The logo for the prompt
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// The maximum number of tokens to generate
|
||||
MaxTokens *float64 `json:"MaxTokens,omitempty"`
|
||||
|
||||
// The model for the prompt
|
||||
Model *string `json:"Model,omitempty"`
|
||||
|
||||
|
|
|
@ -147,8 +147,6 @@ GetCompaniesUnauthorized describes a response with status code 401, with default
|
|||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type GetCompaniesUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *plex_models.Error
|
||||
}
|
||||
|
||||
|
@ -196,13 +194,6 @@ func (o *GetCompaniesUnauthorized) GetPayload() *plex_models.Error {
|
|||
|
||||
func (o *GetCompaniesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(plex_models.Error)
|
||||
|
||||
// response payload
|
||||
|
@ -224,8 +215,6 @@ GetCompaniesForbidden describes a response with status code 403, with default he
|
|||
Access forbidden, Company lacks access
|
||||
*/
|
||||
type GetCompaniesForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *plex_models.Error
|
||||
}
|
||||
|
||||
|
@ -273,13 +262,6 @@ func (o *GetCompaniesForbidden) GetPayload() *plex_models.Error {
|
|||
|
||||
func (o *GetCompaniesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(plex_models.Error)
|
||||
|
||||
// response payload
|
||||
|
@ -378,8 +360,6 @@ GetCompaniesUnprocessableEntity describes a response with status code 422, with
|
|||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type GetCompaniesUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *plex_models.Error
|
||||
}
|
||||
|
||||
|
@ -427,13 +407,6 @@ func (o *GetCompaniesUnprocessableEntity) GetPayload() *plex_models.Error {
|
|||
|
||||
func (o *GetCompaniesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(plex_models.Error)
|
||||
|
||||
// response payload
|
||||
|
|
|
@ -94,6 +94,12 @@ type GetIndustriesParams struct {
|
|||
*/
|
||||
ProductCategory *bool
|
||||
|
||||
/* ServiceCategory.
|
||||
|
||||
Is this industry a service category?
|
||||
*/
|
||||
ServiceCategory *bool
|
||||
|
||||
/* Slug.
|
||||
|
||||
The Slug of this Object
|
||||
|
@ -197,6 +203,17 @@ func (o *GetIndustriesParams) SetProductCategory(productCategory *bool) {
|
|||
o.ProductCategory = productCategory
|
||||
}
|
||||
|
||||
// WithServiceCategory adds the serviceCategory to the get industries params
|
||||
func (o *GetIndustriesParams) WithServiceCategory(serviceCategory *bool) *GetIndustriesParams {
|
||||
o.SetServiceCategory(serviceCategory)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetServiceCategory adds the serviceCategory to the get industries params
|
||||
func (o *GetIndustriesParams) SetServiceCategory(serviceCategory *bool) {
|
||||
o.ServiceCategory = serviceCategory
|
||||
}
|
||||
|
||||
// WithSlug adds the slug to the get industries params
|
||||
func (o *GetIndustriesParams) WithSlug(slug *string) *GetIndustriesParams {
|
||||
o.SetSlug(slug)
|
||||
|
@ -284,6 +301,23 @@ func (o *GetIndustriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt
|
|||
}
|
||||
}
|
||||
|
||||
if o.ServiceCategory != nil {
|
||||
|
||||
// query param serviceCategory
|
||||
var qrServiceCategory bool
|
||||
|
||||
if o.ServiceCategory != nil {
|
||||
qrServiceCategory = *o.ServiceCategory
|
||||
}
|
||||
qServiceCategory := swag.FormatBool(qrServiceCategory)
|
||||
if qServiceCategory != "" {
|
||||
|
||||
if err := r.SetQueryParam("serviceCategory", qServiceCategory); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if o.Slug != nil {
|
||||
|
||||
// query param slug
|
||||
|
|
|
@ -71,6 +71,9 @@ type Industry struct {
|
|||
// Is this industry a product category?
|
||||
ProductCategory *bool `json:"ProductCategory,omitempty"`
|
||||
|
||||
// Is this industry a service category?
|
||||
ServiceCategory *bool `json:"ServiceCategory,omitempty"`
|
||||
|
||||
// The CMS Slug for this Industry
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
||||
|
|
|
@ -20,14 +20,14 @@ import (
|
|||
|
||||
// Industry An industry that is being researched
|
||||
//
|
||||
// swagger:model Industry
|
||||
// swagger:model industry
|
||||
type Industry struct {
|
||||
|
||||
// The AccountIDs of the Companies in this Industry
|
||||
Companies []string `json:"Companies"`
|
||||
|
||||
// The list of Products in this industry
|
||||
CompanyProducts []*CompanyProduct `json:"CompanyProducts"`
|
||||
CompanyProducts []*IndustryCompanyProductsItems0 `json:"CompanyProducts"`
|
||||
|
||||
// The list of Services in this industry
|
||||
CompanyServices []*IndustryCompanyServicesItems0 `json:"CompanyServices"`
|
||||
|
||||
// Created By User ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
@ -68,11 +68,11 @@ type Industry struct {
|
|||
// The full path of this industry, including Parent
|
||||
Path *string `json:"Path,omitempty"`
|
||||
|
||||
// Is this industry a Product Category?
|
||||
// Is this industry a product category?
|
||||
ProductCategory *bool `json:"ProductCategory,omitempty"`
|
||||
|
||||
// The URL of the corresponding page on the CMS
|
||||
SiteURL *string `json:"SiteURL,omitempty"`
|
||||
// Is this industry a service category?
|
||||
ServiceCategory *bool `json:"ServiceCategory,omitempty"`
|
||||
|
||||
// The CMS Slug for this Industry
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
@ -89,6 +89,10 @@ func (m *Industry) Validate(formats strfmt.Registry) error {
|
|||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateCompanyServices(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
@ -121,6 +125,32 @@ func (m *Industry) validateCompanyProducts(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Industry) validateCompanyServices(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.CompanyServices) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.CompanyServices); i++ {
|
||||
if swag.IsZero(m.CompanyServices[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.CompanyServices[i] != nil {
|
||||
if err := m.CompanyServices[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("CompanyServices" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("CompanyServices" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this industry based on the context it is used
|
||||
func (m *Industry) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
@ -129,6 +159,10 @@ func (m *Industry) ContextValidate(ctx context.Context, formats strfmt.Registry)
|
|||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateCompanyServices(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
|
@ -155,6 +189,26 @@ func (m *Industry) contextValidateCompanyProducts(ctx context.Context, formats s
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Industry) contextValidateCompanyServices(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.CompanyServices); i++ {
|
||||
|
||||
if m.CompanyServices[i] != nil {
|
||||
if err := m.CompanyServices[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("CompanyServices" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("CompanyServices" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Industry) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
@ -172,3 +226,252 @@ func (m *Industry) UnmarshalBinary(b []byte) error {
|
|||
*m = res
|
||||
return nil
|
||||
}
|
||||
|
||||
// IndustryCompanyProductsItems0 A software product or service vended by a Company
|
||||
//
|
||||
// swagger:model IndustryCompanyProductsItems0
|
||||
type IndustryCompanyProductsItems0 struct {
|
||||
|
||||
// ID of the Company that owns this Product
|
||||
AccountID string `json:"AccountID,omitempty"`
|
||||
|
||||
// Salesforce AppExchange URL
|
||||
AppExchange *string `json:"AppExchange,omitempty"`
|
||||
|
||||
// Created By User ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// Created Date
|
||||
CreatedDate *string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// Description of product
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// Full Description of product
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// Record Id
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// Image Alt Text
|
||||
ImageAltText *string `json:"ImageAltText,omitempty"`
|
||||
|
||||
// Image URL
|
||||
ImageURL *string `json:"ImageURL,omitempty"`
|
||||
|
||||
// Industries
|
||||
Industries []*Industry `json:"Industries"`
|
||||
|
||||
// Last Modified By User ID
|
||||
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// Last Modified Date
|
||||
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// Logo
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// Product Name
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// Product Video ID
|
||||
ProductVideoID *string `json:"ProductVideoID,omitempty"`
|
||||
|
||||
// Published
|
||||
Published *bool `json:"Published,omitempty"`
|
||||
|
||||
// Salesforce Specific
|
||||
SalesforceSpecific *bool `json:"SalesforceSpecific,omitempty"`
|
||||
|
||||
// Slug
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
||||
// TagLine
|
||||
TagLine *string `json:"TagLine,omitempty"`
|
||||
|
||||
// Website
|
||||
URL *string `json:"URL,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this industry company products items0
|
||||
func (m *IndustryCompanyProductsItems0) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateIndustries(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IndustryCompanyProductsItems0) validateIndustries(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Industries) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Industries); i++ {
|
||||
if swag.IsZero(m.Industries[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Industries[i] != nil {
|
||||
if err := m.Industries[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Industries" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Industries" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this industry company products items0 based on the context it is used
|
||||
func (m *IndustryCompanyProductsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateIndustries(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *IndustryCompanyProductsItems0) contextValidateIndustries(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Industries); i++ {
|
||||
|
||||
if m.Industries[i] != nil {
|
||||
if err := m.Industries[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Industries" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Industries" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *IndustryCompanyProductsItems0) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *IndustryCompanyProductsItems0) UnmarshalBinary(b []byte) error {
|
||||
var res IndustryCompanyProductsItems0
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
||||
|
||||
// IndustryCompanyServicesItems0 A service performed by a Company
|
||||
//
|
||||
// swagger:model IndustryCompanyServicesItems0
|
||||
type IndustryCompanyServicesItems0 struct {
|
||||
|
||||
// ID of the Company that owns this Service
|
||||
AccountID string `json:"AccountID,omitempty"`
|
||||
|
||||
// Salesforce AppExchange URL
|
||||
AppExchange *string `json:"AppExchange,omitempty"`
|
||||
|
||||
// Created By User ID
|
||||
CreatedByID *string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// Created Date
|
||||
CreatedDate *string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// Description of service
|
||||
Description *string `json:"Description,omitempty"`
|
||||
|
||||
// Full Description of service
|
||||
FullDescription *string `json:"FullDescription,omitempty"`
|
||||
|
||||
// Record Id
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// Image Alt Text
|
||||
ImageAltText *string `json:"ImageAltText,omitempty"`
|
||||
|
||||
// Image URL
|
||||
ImageURL *string `json:"ImageURL,omitempty"`
|
||||
|
||||
// Last Modified By User ID
|
||||
LastModifiedByID *string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// Last Modified Date
|
||||
LastModifiedDate *string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// Logo
|
||||
Logo *string `json:"Logo,omitempty"`
|
||||
|
||||
// Service Name
|
||||
Name *string `json:"Name,omitempty"`
|
||||
|
||||
// Published
|
||||
Published *bool `json:"Published,omitempty"`
|
||||
|
||||
// Salesforce Specific
|
||||
SalesforceSpecific *bool `json:"SalesforceSpecific,omitempty"`
|
||||
|
||||
// Service Video ID
|
||||
ServiceVideoID *string `json:"ServiceVideoID,omitempty"`
|
||||
|
||||
// Slug
|
||||
Slug *string `json:"Slug,omitempty"`
|
||||
|
||||
// Tag Line
|
||||
TagLine *string `json:"TagLine,omitempty"`
|
||||
|
||||
// URL
|
||||
URL *string `json:"URL,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this industry company services items0
|
||||
func (m *IndustryCompanyServicesItems0) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this industry company services items0 based on context it is used
|
||||
func (m *IndustryCompanyServicesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *IndustryCompanyServicesItems0) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *IndustryCompanyServicesItems0) UnmarshalBinary(b []byte) error {
|
||||
var res IndustryCompanyServicesItems0
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -0,0 +1,134 @@
|
|||
Account:
|
||||
properties:
|
||||
AnnualRevenue:
|
||||
description: Annual Revenue Estimate
|
||||
format: double
|
||||
type: number
|
||||
x-nullable: true
|
||||
AppExchange:
|
||||
description: Salesforce AppExchange URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
Address:
|
||||
$ref: "./address.yaml#/Address"
|
||||
x-nullable: true
|
||||
ClosedDate:
|
||||
description: Closed Date
|
||||
type: string
|
||||
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
|
||||
CrunchbaseURL:
|
||||
description: Crunchbase URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
Description:
|
||||
description: Description of the account
|
||||
type: string
|
||||
x-nullable: true
|
||||
EIN:
|
||||
type: string
|
||||
x-nullable: true
|
||||
Email:
|
||||
description: Main Account Email
|
||||
type: string
|
||||
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
|
||||
Industries:
|
||||
description: All Product and Service Industries
|
||||
type: string
|
||||
x-nullable: true
|
||||
Industry:
|
||||
description: Primary 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
|
||||
Name:
|
||||
description: Account Name
|
||||
type: string
|
||||
x-nullable: true
|
||||
NumberOfEmployees:
|
||||
description: Employee Count Estimate
|
||||
format: int64
|
||||
type: number
|
||||
x-nullable: true
|
||||
Phone:
|
||||
description: Phone
|
||||
type: string
|
||||
x-nullable: true
|
||||
SIC:
|
||||
description: SIC Code
|
||||
type: string
|
||||
x-nullable: true
|
||||
SICDesc:
|
||||
description: SIC Description
|
||||
type: string
|
||||
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
|
||||
type: object
|
|
@ -4,56 +4,80 @@ Industry:
|
|||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
Companies:
|
||||
description: The AccountIDs of the Companies in this Industry
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
type: array
|
||||
items:
|
||||
$ref: "./company-product.yaml#/CompanyProduct"
|
||||
type: array
|
||||
x-nullable: true
|
||||
CompanyServices:
|
||||
description: The list of Services in this industry
|
||||
items:
|
||||
$ref: "./company-service.yaml#/CompanyService"
|
||||
type: array
|
||||
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: Industry Description
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageAltText:
|
||||
description: Image Alt Text
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageURL:
|
||||
description: Image URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
description: Last Modified By User ID
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedDate:
|
||||
description: Last Modified Date
|
||||
type: string
|
||||
x-nullable: true
|
||||
Level:
|
||||
description: The hierarchical level of this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Logo:
|
||||
description: Logo
|
||||
type: string
|
||||
x-nullable: true
|
||||
Name:
|
||||
description: Industry Name
|
||||
type: string
|
||||
x-nullable: true
|
||||
ParentIndustryID:
|
||||
description: The ID of the Parent Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Path:
|
||||
description: The full path of this industry, including Parent
|
||||
type: string
|
||||
x-nullable: true
|
||||
ProductCategory:
|
||||
description: Is this industry a product category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
ServiceCategory:
|
||||
description: Is this industry a service category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: The CMS Slug for this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
TagLine:
|
||||
description: TagLine
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: object
|
||||
|
|
|
@ -36,6 +36,10 @@ Prompt:
|
|||
description: The logo for the prompt
|
||||
type: string
|
||||
x-nullable: true
|
||||
MaxTokens:
|
||||
description: The maximum number of tokens to generate
|
||||
type: number
|
||||
x-nullable: true
|
||||
Model:
|
||||
description: The model for the prompt
|
||||
type: string
|
||||
|
|
|
@ -26,7 +26,7 @@ parameters:
|
|||
description: Auth0 User Id
|
||||
in: header
|
||||
name: X-Auth0-UserId
|
||||
required: true
|
||||
required: false
|
||||
type: string
|
||||
AttendeeRequest:
|
||||
description: An array of new Attendee records
|
||||
|
|
|
@ -51,15 +51,9 @@ parameters:
|
|||
responses:
|
||||
AccessForbidden:
|
||||
description: "Access forbidden, Company lacks access"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
InvalidDataError:
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
description: Invalid data was sent
|
||||
schema:
|
||||
$ref: "#/definitions/InvalidError"
|
||||
|
@ -79,16 +73,10 @@ responses:
|
|||
$ref: "#/definitions/Error"
|
||||
Unauthorized:
|
||||
description: "Access unauthorized, invalid API-KEY was used"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
UnprocessableEntity:
|
||||
description: "Unprocessable Entity, likely a bad parameter"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
CompanyResponse:
|
||||
|
|
|
@ -123,6 +123,12 @@ parameters:
|
|||
name: productCategory
|
||||
required: false
|
||||
type: boolean
|
||||
serviceCategoryQuery:
|
||||
description: Is this industry a service category?
|
||||
in: query
|
||||
name: serviceCategory
|
||||
required: false
|
||||
type: boolean
|
||||
industryProductIdQuery:
|
||||
description: IndustryProduct record ID
|
||||
in: query
|
||||
|
@ -721,6 +727,7 @@ paths:
|
|||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/industryIdQuery"
|
||||
- $ref: "#/parameters/productCategoryQuery"
|
||||
- $ref: "#/parameters/serviceCategoryQuery"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/IndustryResponse"
|
||||
|
@ -1553,6 +1560,9 @@ definitions:
|
|||
Industry:
|
||||
description: An industry that is being researched
|
||||
properties:
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
items:
|
||||
|
@ -1577,9 +1587,6 @@ definitions:
|
|||
description: Industry Description
|
||||
type: string
|
||||
x-nullable: true
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
ImageAltText:
|
||||
description: Image Alt Text
|
||||
type: string
|
||||
|
@ -1620,6 +1627,10 @@ definitions:
|
|||
description: Is this industry a product category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
ServiceCategory:
|
||||
description: Is this industry a service category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: The CMS Slug for this Industry
|
||||
type: string
|
||||
|
|
|
@ -3575,7 +3575,7 @@ definitions:
|
|||
Industries:
|
||||
description: Industries
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
|
@ -4241,88 +4241,6 @@ definitions:
|
|||
Meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
type: object
|
||||
Industry:
|
||||
description: An industry that is being researched
|
||||
properties:
|
||||
Companies:
|
||||
description: The AccountIDs of the Companies in this Industry
|
||||
items:
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: array
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
items:
|
||||
$ref: "#/definitions/CompanyProduct"
|
||||
type: array
|
||||
CreatedByID:
|
||||
description: Created By User ID
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedDate:
|
||||
description: Created Date
|
||||
type: string
|
||||
x-nullable: true
|
||||
Description:
|
||||
description: Industry Description
|
||||
type: string
|
||||
x-nullable: true
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
ImageAltText:
|
||||
description: Image Alt Text
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageURL:
|
||||
description: Image URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
description: Last Modified By User ID
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedDate:
|
||||
description: Last Modified Date
|
||||
type: string
|
||||
x-nullable: true
|
||||
Level:
|
||||
description: The hierarchical level of this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Logo:
|
||||
description: Logo
|
||||
type: string
|
||||
x-nullable: true
|
||||
Name:
|
||||
description: Industry Name
|
||||
type: string
|
||||
x-nullable: true
|
||||
ParentIndustryID:
|
||||
description: The ID of the Parent Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Path:
|
||||
description: The full path of this industry, including Parent
|
||||
type: string
|
||||
x-nullable: true
|
||||
ProductCategory:
|
||||
description: Is this industry a Product Category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
SiteURL:
|
||||
description: The URL of the corresponding page on the CMS
|
||||
type: string
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: The CMS Slug for this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
TagLine:
|
||||
description: TagLine
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: object
|
||||
IndustryCompany:
|
||||
description: Junction object between Industry and Company
|
||||
properties:
|
||||
|
@ -4393,7 +4311,7 @@ definitions:
|
|||
description: Record Id
|
||||
type: string
|
||||
Industry:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
IndustryID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
@ -4444,7 +4362,7 @@ definitions:
|
|||
type: string
|
||||
x-nullable: true
|
||||
Industry:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
IndustryID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
@ -4480,7 +4398,7 @@ definitions:
|
|||
properties:
|
||||
Data:
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
type: object
|
||||
IndustryResponse:
|
||||
|
@ -4488,7 +4406,7 @@ definitions:
|
|||
properties:
|
||||
Data:
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
Meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
|
|
|
@ -26,7 +26,7 @@ parameters:
|
|||
description: Auth0 User Id
|
||||
in: header
|
||||
name: X-Auth0-UserId
|
||||
required: true
|
||||
required: false
|
||||
type: string
|
||||
AttendeeRequest:
|
||||
description: An array of new Attendee records
|
||||
|
|
|
@ -51,15 +51,9 @@ parameters:
|
|||
responses:
|
||||
AccessForbidden:
|
||||
description: "Access forbidden, Company lacks access"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
InvalidDataError:
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
description: Invalid data was sent
|
||||
schema:
|
||||
$ref: "#/definitions/InvalidError"
|
||||
|
@ -79,16 +73,10 @@ responses:
|
|||
$ref: "#/definitions/Error"
|
||||
Unauthorized:
|
||||
description: "Access unauthorized, invalid API-KEY was used"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
UnprocessableEntity:
|
||||
description: "Unprocessable Entity, likely a bad parameter"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
CompanyResponse:
|
||||
|
|
|
@ -123,6 +123,12 @@ parameters:
|
|||
name: productCategory
|
||||
required: false
|
||||
type: boolean
|
||||
serviceCategoryQuery:
|
||||
description: Is this industry a service category?
|
||||
in: query
|
||||
name: serviceCategory
|
||||
required: false
|
||||
type: boolean
|
||||
industryProductIdQuery:
|
||||
description: IndustryProduct record ID
|
||||
in: query
|
||||
|
@ -721,6 +727,7 @@ paths:
|
|||
- $ref: "#/parameters/offsetQuery"
|
||||
- $ref: "#/parameters/industryIdQuery"
|
||||
- $ref: "#/parameters/productCategoryQuery"
|
||||
- $ref: "#/parameters/serviceCategoryQuery"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/IndustryResponse"
|
||||
|
@ -1553,6 +1560,9 @@ definitions:
|
|||
Industry:
|
||||
description: An industry that is being researched
|
||||
properties:
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
items:
|
||||
|
@ -1577,9 +1587,6 @@ definitions:
|
|||
description: Industry Description
|
||||
type: string
|
||||
x-nullable: true
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
ImageAltText:
|
||||
description: Image Alt Text
|
||||
type: string
|
||||
|
@ -1620,6 +1627,10 @@ definitions:
|
|||
description: Is this industry a product category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
ServiceCategory:
|
||||
description: Is this industry a service category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: The CMS Slug for this Industry
|
||||
type: string
|
||||
|
|
|
@ -3575,7 +3575,7 @@ definitions:
|
|||
Industries:
|
||||
description: Industries
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
|
@ -4241,88 +4241,6 @@ definitions:
|
|||
Meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
type: object
|
||||
Industry:
|
||||
description: An industry that is being researched
|
||||
properties:
|
||||
Companies:
|
||||
description: The AccountIDs of the Companies in this Industry
|
||||
items:
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: array
|
||||
CompanyProducts:
|
||||
description: The list of Products in this industry
|
||||
items:
|
||||
$ref: "#/definitions/CompanyProduct"
|
||||
type: array
|
||||
CreatedByID:
|
||||
description: Created By User ID
|
||||
type: string
|
||||
x-nullable: true
|
||||
CreatedDate:
|
||||
description: Created Date
|
||||
type: string
|
||||
x-nullable: true
|
||||
Description:
|
||||
description: Industry Description
|
||||
type: string
|
||||
x-nullable: true
|
||||
ID:
|
||||
description: Record Id
|
||||
type: string
|
||||
ImageAltText:
|
||||
description: Image Alt Text
|
||||
type: string
|
||||
x-nullable: true
|
||||
ImageURL:
|
||||
description: Image URL
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedByID:
|
||||
description: Last Modified By User ID
|
||||
type: string
|
||||
x-nullable: true
|
||||
LastModifiedDate:
|
||||
description: Last Modified Date
|
||||
type: string
|
||||
x-nullable: true
|
||||
Level:
|
||||
description: The hierarchical level of this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Logo:
|
||||
description: Logo
|
||||
type: string
|
||||
x-nullable: true
|
||||
Name:
|
||||
description: Industry Name
|
||||
type: string
|
||||
x-nullable: true
|
||||
ParentIndustryID:
|
||||
description: The ID of the Parent Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
Path:
|
||||
description: The full path of this industry, including Parent
|
||||
type: string
|
||||
x-nullable: true
|
||||
ProductCategory:
|
||||
description: Is this industry a Product Category?
|
||||
type: boolean
|
||||
x-nullable: true
|
||||
SiteURL:
|
||||
description: The URL of the corresponding page on the CMS
|
||||
type: string
|
||||
x-nullable: true
|
||||
Slug:
|
||||
description: The CMS Slug for this Industry
|
||||
type: string
|
||||
x-nullable: true
|
||||
TagLine:
|
||||
description: TagLine
|
||||
type: string
|
||||
x-nullable: true
|
||||
type: object
|
||||
IndustryCompany:
|
||||
description: Junction object between Industry and Company
|
||||
properties:
|
||||
|
@ -4393,7 +4311,7 @@ definitions:
|
|||
description: Record Id
|
||||
type: string
|
||||
Industry:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
IndustryID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
@ -4444,7 +4362,7 @@ definitions:
|
|||
type: string
|
||||
x-nullable: true
|
||||
Industry:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
IndustryID:
|
||||
type: string
|
||||
x-nullable: true
|
||||
|
@ -4480,7 +4398,7 @@ definitions:
|
|||
properties:
|
||||
Data:
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
type: object
|
||||
IndustryResponse:
|
||||
|
@ -4488,7 +4406,7 @@ definitions:
|
|||
properties:
|
||||
Data:
|
||||
items:
|
||||
$ref: "#/definitions/Industry"
|
||||
$ref: "../../lib/swagger/defs/industry.yaml#/Industry"
|
||||
type: array
|
||||
Meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
|
|
Loading…
Reference in New Issue