Documentation
¶
Index ¶
- Constants
- func FromJSON(i interface{}, r io.Reader) error
- func ToJSON(i interface{}, w io.Writer) error
- type BulkCreateJobResult
- type BulkInsert
- type BulkInsertResult
- type CustomRecords
- type CustomRecordsMap
- type EquipmentRecord
- type EquipmentRecords
- type FieldAPILabelMapping
- type FieldMetadata
- type Handler
- func (h *Handler) BuildDynamicMapping(objectAPI string) (map[string]string, error)
- func (h *Handler) CreateBulkMappedRecords(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateMappedRecords(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAccessToken() error
- func (h *Handler) GetPickBasedMappingRec(w http.ResponseWriter, r *http.Request)
- func (h *Handler) QueryRecords(w http.ResponseWriter, r *http.Request)
- type MetadataResponse
- type Operation
- type Payload
- type PicklistMappedResp
- type PicklistQueryResponse
- type PicklistValue
- type ProgramRecord
- type QueryResponse
- type RecommendationRecord
- type RecommendationRecords
- type Record
Constants ¶
View Source
const VERSION = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BulkCreateJobResult ¶
type BulkCreateJobResult struct {
ID string `json:"id"`
Operation string `json:"operation"`
Object string `json:"object"`
CreatedByID string `json:"createdById,omitempty"`
CreatedDate string `json:"createdDate,omitempty"`
SystemModstamp string `json:"systemModstamp,omitempty"`
State string `json:"state,omitempty"`
ConcurrencyMode string `json:"concurrencyMode,omitempty"`
ContentType string `json:"contentType,omitempty"`
APIVersion float64 `json:"apiVersion,omitempty"`
ContentURL string `json:"contentUrl,omitempty"`
LineEnding string `json:"lineEnding,omitempty"`
ColumnDelimiter string `json:"columnDelimiter,omitempty"`
}
type BulkInsert ¶
type BulkInsertResult ¶
type BulkInsertResult struct {
HasErrors bool `json:"hasErrors,omitempty"`
Results interface{} `json:"results"`
}
type CustomRecords ¶
type CustomRecords struct {
Id string `json:"Id"`
MeasureNameNew string `json:"Measure_Name_New__c,omitempty"`
RecTypeName string `json:"Record_Type_Name__c,omitempty"`
RecTypeId string `json:"Record_Type_Id__c,omitempty"`
ProgRec ProgramRecord `json:"Program__r,omitempty"`
}
type CustomRecordsMap ¶
type CustomRecordsMap map[string][]CustomRecords
type EquipmentRecord ¶
type EquipmentRecords ¶
type EquipmentRecords []EquipmentRecord
type FieldAPILabelMapping ¶
type FieldMetadata ¶
type Handler ¶
type Handler struct {
UserAgent string
// contains filtered or unexported fields
}
func GetHandler ¶
func (*Handler) BuildDynamicMapping ¶
func (*Handler) CreateBulkMappedRecords ¶
func (h *Handler) CreateBulkMappedRecords(w http.ResponseWriter, r *http.Request)
func (*Handler) CreateMappedRecords ¶
func (h *Handler) CreateMappedRecords(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAccessToken ¶
func (*Handler) GetPickBasedMappingRec ¶
func (h *Handler) GetPickBasedMappingRec(w http.ResponseWriter, r *http.Request)
func (*Handler) QueryRecords ¶
func (h *Handler) QueryRecords(w http.ResponseWriter, r *http.Request)
type MetadataResponse ¶
type MetadataResponse struct {
Fields []FieldMetadata `json:"fields"`
}
type Payload ¶
type Payload struct {
SObject string `json:"sObject,omitempty"`
FieldName string `json:"fieldName,omitempty"`
Query string `json:"query,omitempty"`
RecTypeID string `json:"recTypeId,omitempty"`
Records []CustomRecords `json:"records,omitempty"`
PicklistMapToInsert PicklistMappedResp `json:"picklist_map_insert,omitempty"`
TargetSObject string `json:"targetsObject,omitempty"`
RecordsToInsert []map[string]interface{} `json:"rec_to_insert,omitempty"`
}
type PicklistMappedResp ¶
type PicklistMappedResp struct {
Eqs EquipmentRecords `json:"equipment_records,omitempty"`
Recs RecommendationRecords `json:"recommendation_records,omitempty"`
}
type PicklistQueryResponse ¶
type PicklistQueryResponse struct {
PicklistValues []PicklistValue `json:"Values"`
}
type PicklistValue ¶
type PicklistValue struct {
PickValues string `json:"value"`
}
type ProgramRecord ¶
type ProgramRecord struct {
Name string `json:"Name,omitempty"`
}
type QueryResponse ¶
type QueryResponse struct {
TotalSize int `json:"totalSize"`
Done bool `json:"done"`
Records []CustomRecords `json:"records"`
}
type RecommendationRecord ¶
type RecommendationRecords ¶
type RecommendationRecords []RecommendationRecord
Click to show internal directories.
Click to hide internal directories.