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

feat: add user metadata #41

Merged
merged 5 commits into from
Sep 19, 2024
Merged
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
22 changes: 15 additions & 7 deletions lextypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ type ReleaseFile struct {
UpdatedAt string `json:"updatedAt"`
}

type Metadata struct {
Key string `json:"key"`
Value string `json:"value"`
}

type Release struct {
TotalFiles int `json:"totalFiles"`
IsPrivate bool `json:"isPrivate"`
Expand Down Expand Up @@ -42,14 +47,17 @@ type OrganizationAddress struct {

type UserLicense struct {
// The allowed activations of the license. A value of -1 indicates unlimited number of activations.
AllowedActivations int64 `json:"allowedActivations"`

AllowedActivations int64 `json:"allowedActivations"`
// The allowed activations of the license. A value of -1 indicates unlimited number of deactivations.
AllowedDeactivations int64 `json:"allowedDeactivations"`

AllowedDeactivations int64 `json:"allowedDeactivations"`
// The license key.
Key string `json:"key"`

Key string `json:"key"`
// The license type (node-locked or hosted-floating).
Type string `json:"type"`
Type string `json:"type"`

// The license metadata.
Metadata []Metadata `json:"metadata"`
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muneebkq The docs for this struct seem to be removed. Please add them back.