From 88b85fe810ebc14d1c71dc03638f3cbe6f9b4a9d Mon Sep 17 00:00:00 2001 From: Alex Eftimie Date: Wed, 12 Mar 2025 10:57:39 +0100 Subject: [PATCH 1/3] Add ownedBy to History struct --- content.go | 1 + 1 file changed, 1 insertion(+) diff --git a/content.go b/content.go index ad078c9..513a073 100644 --- a/content.go +++ b/content.go @@ -259,6 +259,7 @@ type History struct { Latest bool `json:"latest"` CreatedBy User `json:"createdBy"` CreatedDate string `json:"createdDate"` + OwnedBy User `json:"ownedBy"` } // LastUpdated contains information about the last update From fdc20c25067a75ba164ad75bfd1e68a778956f51 Mon Sep 17 00:00:00 2001 From: Alex Eftimie Date: Wed, 12 Mar 2025 11:09:23 +0100 Subject: [PATCH 2/3] Add email to user.go The email address of the user. Depending on the user's privacy setting, this may return an empty string. --- user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/user.go b/user.go index 251bec5..4cba235 100644 --- a/user.go +++ b/user.go @@ -12,6 +12,7 @@ type User struct { UserKey string `json:"userKey"` AccountID string `json:"accountId"` DisplayName string `json:"displayName"` + Email string `json:"email"` } // getUserEndpoint creates the correct api endpoint by given id From c9b3c55ff4caab631d7aa7acfb297c4215a64d8c Mon Sep 17 00:00:00 2001 From: Alex Eftimie Date: Wed, 12 Mar 2025 12:29:31 +0100 Subject: [PATCH 3/3] add accountStatus - active/inactive string --- user.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/user.go b/user.go index 4cba235..e7802cf 100644 --- a/user.go +++ b/user.go @@ -7,12 +7,13 @@ import ( // User defines user informations type User struct { - Type string `json:"type"` - Username string `json:"username"` - UserKey string `json:"userKey"` - AccountID string `json:"accountId"` - DisplayName string `json:"displayName"` - Email string `json:"email"` + Type string `json:"type"` + Username string `json:"username"` + UserKey string `json:"userKey"` + AccountID string `json:"accountId"` + AccountStatus string `json:"accountStatus"` + DisplayName string `json:"displayName"` + Email string `json:"email"` } // getUserEndpoint creates the correct api endpoint by given id