Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate SDKs #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
538 changes: 282 additions & 256 deletions objects/account.go

Large diffs are not rendered by default.

42 changes: 28 additions & 14 deletions objects/account_to_api_tokens_connection.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@

// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
package objects




type AccountToApiTokensConnection struct {

// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_api_tokens_connection_count"`
// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_api_tokens_connection_count"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_api_tokens_connection_page_info"`
// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_api_tokens_connection_page_info"`

// Entities The API tokens for the current page of this connection.
Entities []ApiToken `json:"account_to_api_tokens_connection_entities"`
// Entities The API tokens for the current page of this connection.
Entities []ApiToken `json:"account_to_api_tokens_connection_entities"`

// Typename The typename of the object
Typename string `json:"__typename"`

// Typename The typename of the object
Typename string `json:"__typename"`
}

const (
AccountToApiTokensConnectionFragment = `
AccountToApiTokensConnectionFragment = `
fragment AccountToApiTokensConnectionFragment on AccountToApiTokensConnection {
__typename
account_to_api_tokens_connection_count: count
Expand All @@ -35,16 +40,25 @@ fragment AccountToApiTokensConnectionFragment on AccountToApiTokensConnection {
`
)




// GetCount The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
func (obj AccountToApiTokensConnection) GetCount() int64 {
return obj.Count
return obj.Count
}

// GetPageInfo An object that holds pagination information about the objects in this connection.
func (obj AccountToApiTokensConnection) GetPageInfo() PageInfo {
return obj.PageInfo
return obj.PageInfo
}

func (obj AccountToApiTokensConnection) GetTypename() string {
return obj.Typename
}

func (obj AccountToApiTokensConnection) GetTypename() string {
return obj.Typename
}





42 changes: 28 additions & 14 deletions objects/account_to_channels_connection.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@

// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
package objects




type AccountToChannelsConnection struct {

// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_channels_connection_count"`
// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_channels_connection_count"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_channels_connection_page_info"`
// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_channels_connection_page_info"`

// Entities The channels for the current page of this connection.
Entities []Channel `json:"account_to_channels_connection_entities"`
// Entities The channels for the current page of this connection.
Entities []Channel `json:"account_to_channels_connection_entities"`

// Typename The typename of the object
Typename string `json:"__typename"`

// Typename The typename of the object
Typename string `json:"__typename"`
}

const (
AccountToChannelsConnectionFragment = `
AccountToChannelsConnectionFragment = `
fragment AccountToChannelsConnectionFragment on AccountToChannelsConnection {
__typename
account_to_channels_connection_count: count
Expand All @@ -35,16 +40,25 @@ fragment AccountToChannelsConnectionFragment on AccountToChannelsConnection {
`
)




// GetCount The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
func (obj AccountToChannelsConnection) GetCount() int64 {
return obj.Count
return obj.Count
}

// GetPageInfo An object that holds pagination information about the objects in this connection.
func (obj AccountToChannelsConnection) GetPageInfo() PageInfo {
return obj.PageInfo
return obj.PageInfo
}

func (obj AccountToChannelsConnection) GetTypename() string {
return obj.Typename
}

func (obj AccountToChannelsConnection) GetTypename() string {
return obj.Typename
}





97 changes: 58 additions & 39 deletions objects/account_to_nodes_connection.go
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@

// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
package objects

import "encoding/json"


// AccountToNodesConnection A connection between an account and the nodes it manages.
type AccountToNodesConnection struct {

// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_nodes_connection_count"`
// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_nodes_connection_count"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_nodes_connection_page_info"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_nodes_connection_page_info"`
// Entities The nodes for the current page of this connection.
Entities []LightsparkNode `json:"account_to_nodes_connection_entities"`

// Entities The nodes for the current page of this connection.
Entities []LightsparkNode `json:"account_to_nodes_connection_entities"`
// Typename The typename of the object
Typename string `json:"__typename"`

// Typename The typename of the object
Typename string `json:"__typename"`
}

const (
AccountToNodesConnectionFragment = `
AccountToNodesConnectionFragment = `
fragment AccountToNodesConnectionFragment on AccountToNodesConnection {
__typename
account_to_nodes_connection_count: count
Expand All @@ -38,58 +40,75 @@ fragment AccountToNodesConnectionFragment on AccountToNodesConnection {
`
)




// GetCount The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
func (obj AccountToNodesConnection) GetCount() int64 {
return obj.Count
return obj.Count
}

// GetPageInfo An object that holds pagination information about the objects in this connection.
func (obj AccountToNodesConnection) GetPageInfo() PageInfo {
return obj.PageInfo
return obj.PageInfo
}

func (obj AccountToNodesConnection) GetTypename() string {
return obj.Typename
}

func (obj AccountToNodesConnection) GetTypename() string {
return obj.Typename
}





type AccountToNodesConnectionJSON struct {

// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_nodes_connection_count"`
// Count The total count of objects in this connection, using the current filters. It is different from the number of objects returned in the current page (in the `entities` field).
Count int64 `json:"account_to_nodes_connection_count"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_nodes_connection_page_info"`

// PageInfo An object that holds pagination information about the objects in this connection.
PageInfo PageInfo `json:"account_to_nodes_connection_page_info"`
// Entities The nodes for the current page of this connection.
Entities []map[string]interface{} `json:"account_to_nodes_connection_entities"`

// Entities The nodes for the current page of this connection.
Entities []map[string]interface{} `json:"account_to_nodes_connection_entities"`
// Typename The typename of the object
Typename string `json:"__typename"`

// Typename The typename of the object
Typename string `json:"__typename"`
}


func (data *AccountToNodesConnection) UnmarshalJSON(dataBytes []byte) error {
var temp AccountToNodesConnectionJSON
var temp AccountToNodesConnectionJSON
if err := json.Unmarshal(dataBytes, &temp); err != nil {
return err
}

data.Count = temp.Count

data.Count = temp.Count

data.PageInfo = temp.PageInfo

if temp.Entities != nil {
var entities []LightsparkNode
for _, json := range temp.Entities {
entity, err := LightsparkNodeUnmarshal(json)
if err != nil {
return err
}
entities = append(entities, entity)
}
data.Entities = entities
}
data.PageInfo = temp.PageInfo


data.Typename = temp.Typename
if temp.Entities != nil {
var entities []LightsparkNode
for _, json := range temp.Entities {
entity, err := LightsparkNodeUnmarshal(json)
if err != nil {
return err
}
entities = append(entities, entity)
}
data.Entities = entities
}

return nil

data.Typename = temp.Typename


return nil
}


Loading
Loading