github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/graphql/event_api.go (about) 1 package graphql 2 3 import "github.com/kyma-incubator/compass/components/director/pkg/resource" 4 5 // EventDefinition missing godoc 6 type EventDefinition struct { 7 BundleID string `json:"bundleID"` 8 Name string `json:"name"` 9 Description *string `json:"description"` 10 // group allows you to find the same API but in different version 11 Group *string `json:"group"` 12 Spec *EventSpec `json:"spec"` 13 Version *Version `json:"version"` 14 *BaseEntity 15 } 16 17 // GetType missing godoc 18 func (e *EventDefinition) GetType() resource.Type { 19 return resource.EventDefinition 20 } 21 22 // EventSpec missing godoc 23 type EventSpec struct { 24 ID string `json:"id"` 25 Data *CLOB `json:"data"` 26 Type EventSpecType `json:"type"` 27 Format SpecFormat `json:"format"` 28 DefinitionID string // Needed to resolve FetchRequest for given APISpec 29 } 30 31 // EventAPIDefinitionPageExt is an extended types used by external API 32 type EventAPIDefinitionPageExt struct { 33 EventDefinitionPage 34 Data []*EventAPIDefinitionExt `json:"data"` 35 } 36 37 // EventAPIDefinitionExt missing godoc 38 type EventAPIDefinitionExt struct { 39 EventDefinition 40 Spec *EventAPISpecExt `json:"spec"` 41 } 42 43 // EventAPISpecExt missing godoc 44 type EventAPISpecExt struct { 45 EventSpec 46 FetchRequest *FetchRequest `json:"fetchRequest"` 47 }