2022-10-09 15:23:52 +02:00
|
|
|
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
2022-10-14 22:41:56 +02:00
|
|
|
type Supergraph interface {
|
|
|
|
|
IsSupergraph()
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
type APIKey struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Key *string `json:"key,omitempty"`
|
|
|
|
|
Organization *Organization `json:"organization"`
|
|
|
|
|
Refs []string `json:"refs"`
|
|
|
|
|
Read bool `json:"read"`
|
|
|
|
|
Publish bool `json:"publish"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type InputAPIKey struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
OrganizationID string `json:"organizationId"`
|
|
|
|
|
Refs []string `json:"refs"`
|
|
|
|
|
Read bool `json:"read"`
|
|
|
|
|
Publish bool `json:"publish"`
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
type InputSubGraph struct {
|
|
|
|
|
Ref string `json:"ref"`
|
|
|
|
|
Service string `json:"service"`
|
2023-03-21 06:24:25 +00:00
|
|
|
URL *string `json:"url,omitempty"`
|
|
|
|
|
WsURL *string `json:"wsUrl,omitempty"`
|
2022-10-09 15:23:52 +02:00
|
|
|
Sdl string `json:"sdl"`
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-27 07:09:10 +02:00
|
|
|
type Organization struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Users []*User `json:"users"`
|
|
|
|
|
APIKeys []*APIKey `json:"apiKeys"`
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-09 15:23:52 +02:00
|
|
|
type SubGraph struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
Service string `json:"service"`
|
2023-03-21 06:24:25 +00:00
|
|
|
URL *string `json:"url,omitempty"`
|
|
|
|
|
WsURL *string `json:"wsUrl,omitempty"`
|
2022-10-09 15:23:52 +02:00
|
|
|
Sdl string `json:"sdl"`
|
|
|
|
|
ChangedBy string `json:"changedBy"`
|
|
|
|
|
ChangedAt time.Time `json:"changedAt"`
|
|
|
|
|
}
|
2022-10-14 22:41:56 +02:00
|
|
|
|
|
|
|
|
type SubGraphs struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
MinDelaySeconds int `json:"minDelaySeconds"`
|
|
|
|
|
SubGraphs []*SubGraph `json:"subGraphs"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SubGraphs) IsSupergraph() {}
|
|
|
|
|
|
|
|
|
|
type Unchanged struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
MinDelaySeconds int `json:"minDelaySeconds"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Unchanged) IsSupergraph() {}
|
2023-04-27 07:09:10 +02:00
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
}
|