erm

package
v1.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAPI

func GenerateAPI(dir, packageName, spaceID, cmaKey, environment, exportFile string, flagContentTypes []string, version string) (err error)

GenerateAPI calls the generators

Types

type ContentType

type ContentType struct {
	Sys         ContentfulSys      `json:"sys,omitempty"`
	Name        string             `json:"name,omitempty"`
	Description string             `json:"description,omitempty"`
	Fields      []ContentTypeField `json:"fields,omitempty"`
}

ContentType VO

type ContentTypeField

type ContentTypeField struct {
	ID              string                 `json:"id,omitempty"`
	Name            string                 `json:"name,omitempty"`
	Type            string                 `json:"type,omitempty"`
	Items           *ContentTypeFieldItems `json:"items,omitempty"`
	LinkType        string                 `json:"linkType,omitempty"`
	Omitted         bool                   `json:"omitted,omitempty"`
	ReferencedTypes []string
}

ContentTypeField VO

type ContentTypeFieldItems

type ContentTypeFieldItems struct {
	Type        string                            `json:"type,omitempty"`
	Validations []ContentTypeFieldItemsValidation `json:"validations,omitempty"`
	LinkType    string                            `json:"linkType,omitempty"`
}

ContentTypeFieldItems VO

type ContentTypeFieldItemsValidation

type ContentTypeFieldItemsValidation struct {
	LinkContentType []string `json:"linkContentType,omitempty"`
}

ContentTypeFieldItemsValidation VO

type ContentTypeSys

type ContentTypeSys struct {
	Sys ContentTypeSysAttributes `json:"sys,omitempty"`
}

ContentTypeSys VO

type ContentTypeSysAttributes

type ContentTypeSysAttributes struct {
	ID       string `json:"id,omitempty"`
	Type     string `json:"type,omitempty"`
	LinkType string `json:"linkType,omitempty"`
}

ContentTypeSysAttributes VO

type ContentfulSys

type ContentfulSys struct {
	ID          string         `json:"id,omitempty"`
	Type        string         `json:"type,omitempty"`
	LinkType    string         `json:"linkType,omitempty"`
	ContentType ContentTypeSys `json:"contentType,omitempty"`
	CreatedAt   string         `json:"createdAt,omitempty"`
	UpdatedAt   string         `json:"updatedAt,omitempty"`
	Revision    float64        `json:"revision,omitempty"`
	Version     float64        `json:"version,omitempty"`
}

ContentfulSys VO

type ExportFile

type ExportFile struct {
	ContentTypes []ContentType `json:"contentTypes"`
	Locales      []Locale      `json:"locales"`
}

type Locale

type Locale struct {
	Name         string `json:"name,omitempty"`
	Code         string `json:"code,omitempty"`
	FallbackCode string `json:"fallbackCode,omitempty"`
	Default      bool   `json:"default,omitempty"`
}

Locale VO

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL