github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/graphql/document.go (about) 1 package graphql 2 3 import "github.com/kyma-incubator/compass/components/director/pkg/resource" 4 5 // Document missing godoc 6 type Document struct { 7 BundleID string `json:"bundleID"` 8 Title string `json:"title"` 9 DisplayName string `json:"displayName"` 10 Description string `json:"description"` 11 Format DocumentFormat `json:"format"` 12 // for example Service Class, API etc 13 Kind *string `json:"kind"` 14 Data *CLOB `json:"data"` 15 *BaseEntity 16 } 17 18 // GetType missing godoc 19 func (e *Document) GetType() resource.Type { 20 return resource.Document 21 } 22 23 // DocumentPageExt is an extended type used by external API 24 type DocumentPageExt struct { 25 DocumentPage 26 Data []*DocumentExt `json:"data"` 27 } 28 29 // DocumentExt missing godoc 30 type DocumentExt struct { 31 Document 32 FetchRequest *FetchRequest `json:"fetchRequest"` 33 }