From fbe62d0ba8635a43b4478c1d685f9d650918a820 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Thu, 13 Nov 2025 15:01:02 +0200 Subject: [PATCH 1/3] updated models --- pkg/model/app-proxy/models_gen.go | 1742 ++++++++++++++++- pkg/model/platform/models_gen.go | 1674 +++++++++++++++- .../promotion-orchestrator/models_gen.go | 37 +- 3 files changed, 3238 insertions(+), 215 deletions(-) diff --git a/pkg/model/app-proxy/models_gen.go b/pkg/model/app-proxy/models_gen.go index 415724d..278b8cb 100644 --- a/pkg/model/app-proxy/models_gen.go +++ b/pkg/model/app-proxy/models_gen.go @@ -3,6 +3,7 @@ package model import ( + "bytes" "fmt" "io" "strconv" @@ -334,8 +335,6 @@ type AccountFeatures struct { Abac *bool `json:"abac,omitempty"` // New ABAC permissions page AbacV2 *bool `json:"abacV2,omitempty"` - // Shows user git personal token settings menu in project one - UnifiedUserGitTokens *bool `json:"unifiedUserGitTokens,omitempty"` // Adds ability to rollback rollout from rollout drawer in app timeline GitOpsRolloutRollback *bool `json:"gitOpsRolloutRollback,omitempty"` // Shows Beamer widget for all platforms (What's new) @@ -414,6 +413,8 @@ type AccountFeatures struct { HeaderLiveState *bool `json:"headerLiveState,omitempty"` // Enables promotion orchestration for products including product's releases API and promotion flow API PromotionOrchestration *bool `json:"promotionOrchestration,omitempty"` + // Enables the main releases page, allowing users to view releases from all products + MainReleasesPage *bool `json:"mainReleasesPage,omitempty"` // Enables promotion policies view PromotionPolicies *bool `json:"promotionPolicies,omitempty"` // Enables git commit statuses for product release promotions @@ -494,6 +495,20 @@ type AccountFeatures struct { GitlabSupportInRuntimeWizard *bool `json:"gitlabSupportInRuntimeWizard,omitempty"` // Adds ability to connect Bitbucket as git provider in runtime installation wizard BitbucketSupportInRuntimeWizard *bool `json:"bitbucketSupportInRuntimeWizard,omitempty"` + // Shows warning message that promotions are in early access + PromotionsEarlyAccessWarning *bool `json:"promotionsEarlyAccessWarning,omitempty"` + // Enables new user settings page based on Gitops UI under /2.0 path + NewUserSettingsPage *bool `json:"newUserSettingsPage,omitempty"` + // Hides classic-only related sections from new user settings page + HideClassicRelatedSectionsFromNewUserSettingsPage *bool `json:"hideClassicRelatedSectionsFromNewUserSettingsPage,omitempty"` + // Uses new endpoints for retrieval of product promotions(releases) across all corresponding views. + NewPromotionEndpoints *bool `json:"newPromotionEndpoints,omitempty"` + // Enables product CRD commit flow + ProductCRDCommitFlow *bool `json:"productCRDCommitFlow,omitempty"` + // Disables the application tree if the number of applications exceeds the limit. The limit can be overridden using the APPLICATION_TREE_SIZE_LIMIT variable + DisableApplicationTreeViewForLargeTrees *bool `json:"disableApplicationTreeViewForLargeTrees,omitempty"` + // Enable support for runtime release channels. Use pre-computed release data from GitHub Pages instead of GitHub API. + UseRuntimeUpdateChannels *bool `json:"useRuntimeUpdateChannels,omitempty"` } // Account Gitops Usage @@ -2958,6 +2973,14 @@ type CalendarTriggerConditionsArgs struct { Metadata *string `json:"metadata,omitempty"` } +// Channel-specific release data +type ChannelReleases struct { + // All releases in this channel + Releases []*Release `json:"releases"` + // Latest (newest) chart version in this channel, null if no releases + LatestChartVersion *string `json:"latestChartVersion,omitempty"` +} + // ChildApplicationField Entity type ChildApplicationField struct { // Name @@ -3072,6 +3095,10 @@ type Cluster struct { ClusterResources bool `json:"clusterResources"` // Info holds information about cluster cache and state Info *ClusterInfo `json:"info"` + // Indicated if cluster considered inactive due to missing events from the app-proxy + Inactive *bool `json:"inactive,omitempty"` + // UpdatedAt holds time when cluster has been updated + UpdatedAt *string `json:"updatedAt,omitempty"` } func (Cluster) IsBaseEntity() {} @@ -3903,10 +3930,12 @@ type EnvironmentCluster struct { RuntimeName string `json:"runtimeName"` // Cluster name Name string `json:"name"` - // Cluster address - Server string `json:"server"` + // Cluster address - resolved dynamically, null if cluster doesn't exist + Server *string `json:"server,omitempty"` // Cluster namespaces Namespaces []string `json:"namespaces"` + // Indicate if the cluster still exists + Exists bool `json:"exists"` } // Environment Cluster @@ -3916,7 +3945,7 @@ type EnvironmentClusterInput struct { // Cluster name Name string `json:"name"` // Cluster address - Server string `json:"server"` + Server *string `json:"server,omitempty"` // Cluster namespaces Namespaces []string `json:"namespaces"` } @@ -7140,6 +7169,8 @@ type Product struct { Concurrency *ProductConcurrency `json:"concurrency,omitempty"` // Latest product release LatestRelease *ProductReleaseEntity `json:"latestRelease,omitempty"` + // Latest product promotion + LatestPromotion *PromotionEntity `json:"latestPromotion,omitempty"` } func (Product) IsFavorableNotK8sEntity() {} @@ -7220,6 +7251,24 @@ type ProductApplicationRelease struct { AppVersions *ProductComponentVersions `json:"appVersions,omitempty"` } +// Product App application +type ProductApplicationStatic struct { + // Entity id object + Self *ProductApplicationEntityID `json:"self"` + // Runtime name + Runtime string `json:"runtime"` + // Deployed to object + DeployedTo *ProductApplicationDeployedTo `json:"deployedTo"` + // Product App Application Status object + Status *ProductApplicationStatus `json:"status"` + // Annotaion pairs array strings(key=value) + AnnotationPairs []*string `json:"annotationPairs"` + // Label pairs array strings(key=value) + LabelPairs []string `json:"labelPairs"` + // Latest application release + Release *ProductApplicationRelease `json:"release,omitempty"` +} + // Product App deployed to type ProductApplicationStatus struct { // Application sync status @@ -7298,6 +7347,8 @@ type ProductComponentFilterArgs struct { HealthStatuses []HealthStatus `json:"healthStatuses,omitempty"` // If 'true' returns components that have at least 1 pending PR HasPendingPullRequests *bool `json:"hasPendingPullRequests,omitempty"` + // Assignment type + ProductAssignment *AssignmentType `json:"productAssignment,omitempty"` } // Info about the workflow that promoted component @@ -7322,6 +7373,44 @@ type ProductComponentSortArg struct { Order SortingOrder `json:"order"` } +// Product Component Static +type ProductComponentStatic struct { + // Entity db id + ID string `json:"id"` + // Component name + Name string `json:"name"` + // Product app type + Type ProductComponentType `json:"type"` + // Application + Application *ProductApplicationStatic `json:"application,omitempty"` +} + +// Args to filter Product Components Static +type ProductComponentStaticFilterArgs struct { + // Partial name (case insensitive) + PartialName *string `json:"partialName,omitempty"` + // Application names + AppNames []*string `json:"appNames,omitempty"` + // Application version + AppVersion *string `json:"appVersion,omitempty"` + // Issue key array + IssueKeys []string `json:"issueKeys,omitempty"` + // PR key array + PrKeys []string `json:"prKeys,omitempty"` + // Committers array + Committers []string `json:"committers,omitempty"` + // Images array + Images []string `json:"images,omitempty"` + // Product names array + Products []string `json:"products,omitempty"` + // If 'true' returns unassigned components, 'false' ignored + NotInProduct *bool `json:"notInProduct,omitempty"` + // Environments names array + Environments []string `json:"environments,omitempty"` + // If 'true' returns components that belong to any environment, 'false' ignored + InEnvironment *bool `json:"inEnvironment,omitempty"` +} + // Version of product and dependencies type ProductComponentVersions struct { // AppVersion @@ -7384,12 +7473,16 @@ type ProductEnvironmentStatistic struct { // Args to filter Product type ProductFilterArgs struct { + // Product name + Name *string `json:"name,omitempty"` // Partial name (case insensitive) PartialName *string `json:"partialName,omitempty"` // Application names AppNames []*string `json:"appNames,omitempty"` // Environments names Environments []*string `json:"environments,omitempty"` + // Promotion flow names + PromotionFlowNames []*string `json:"promotionFlowNames,omitempty"` // Filter by user favorite Favorite *bool `json:"favorite,omitempty"` } @@ -7420,12 +7513,24 @@ type ProductGroupForEnvs struct { ProductComponents []*ProductComponent `json:"productComponents"` } +// Args to filter Product names +type ProductNamesFilterArgs struct { + // Product name + Name *string `json:"name,omitempty"` + // Partial name (case insensitive) + PartialName *string `json:"partialName,omitempty"` + // Promotion flow names + PromotionFlowNames []*string `json:"promotionFlowNames,omitempty"` +} + // Product Promotion Flow Selectors type ProductPromotionFlowSelectors struct { // Entity db id Name string `json:"name"` // Group name GitTriggerSelectors []*ProductGitTriggerSelector `json:"gitTriggerSelectors"` + // Indicates whether the specified promotion flow still exists + Exists bool `json:"exists"` } // Product Release Entity @@ -7546,6 +7651,24 @@ type PromotionCode struct { TimesRedeemed int `json:"timesRedeemed"` } +// Commit information +type PromotionCommitInfo struct { + // Commit SHA + CommitSha string `json:"commitSha"` + // Commit message + CommitMessage string `json:"commitMessage"` + // Commit author + CommitAuthor string `json:"commitAuthor"` + // Commit date + CommitDate *string `json:"commitDate,omitempty"` + // Commit repository url + RepoURL *string `json:"repoURL,omitempty"` + // Commit revision (branch) + Revision *string `json:"revision,omitempty"` + // Committer avatar url + AvatarURL *string `json:"avatarURL,omitempty"` +} + // Promotion Diff File type PromotionDiffFile struct { // File full path @@ -7568,6 +7691,22 @@ type PromotionDiffResult struct { Files []*PromotionDiffFile `json:"files"` } +// Promotion Entity +type PromotionEntity struct { + // Promotion id + PromotionID string `json:"promotionId"` + // Promotion status + Status ProductReleasePublicStatus `json:"status"` + // Promotion app version + PromotionAppVersion *string `json:"promotionAppVersion,omitempty"` + // Trigger commit information + TriggerCommitInfo *PromotionCommitInfo `json:"triggerCommitInfo"` + // Updated at timestamp + UpdatedAt *string `json:"updatedAt,omitempty"` + // Created at timestamp + CreatedAt string `json:"createdAt"` +} + // Promotion File type PromotionFile struct { // File full path @@ -7888,6 +8027,10 @@ type PullRequest struct { Author string `json:"author"` // Pull request author avatar url AvatarURL string `json:"avatarUrl"` + // Pull request base branch (the branch you want to merge changes into) + BaseBranch string `json:"baseBranch"` + // Pull request head branch (the branch where your changes are implemented) + HeadBranch string `json:"headBranch"` // Pull request created at CreatedAt string `json:"createdAt"` // Pull request state @@ -8035,6 +8178,10 @@ type Release struct { ChartVersion *string `json:"chartVersion,omitempty"` // Has security vulnerabilities HasSecurityVulnerabilities *bool `json:"hasSecurityVulnerabilities,omitempty"` + // Release channel (stable or latest) + Channel *ReleaseChannel `json:"channel,omitempty"` + // Whether an upgrade is available for this release + UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` } // Rollout Rollout State @@ -8091,6 +8238,14 @@ type ReleaseServiceState struct { AvailableReplicas *int `json:"availableReplicas,omitempty"` } +// Releases grouped by channel +type ReleasesByChannel struct { + // Stable channel releases + Stable *ChannelReleases `json:"stable"` + // Latest channel releases + Latest *ChannelReleases `json:"latest"` +} + // "response for renew access token type RenewAccessTokenResponse struct { // The access token to use for the next requests @@ -9169,6 +9324,8 @@ type Runtime struct { RuntimeApplicationName *string `json:"runtimeApplicationName,omitempty"` // Is using an external ArgoCD instance instead of the bundled one IsExternalArgoCd *bool `json:"isExternalArgoCd,omitempty"` + // True if the runtime is installed in single namespace mode + IsNamespacedRuntime *bool `json:"isNamespacedRuntime,omitempty"` } func (Runtime) IsBaseEntity() {} @@ -9337,6 +9494,16 @@ type RuntimeStatus struct { ArgoCdState ArgoCdState `json:"argoCdState"` } +// Runtime Version Info +type RuntimeVersionInfo struct { + // Name of the Runtime + Name string `json:"name"` + // Runtime version + RuntimeVersion *string `json:"runtimeVersion,omitempty"` + // Chart version + ChartVersion *string `json:"chartVersion,omitempty"` +} + // Runtimes statistics type RuntimesStatistics struct { // Total runtimes number @@ -11026,7 +11193,7 @@ func (e AbacActionNames) String() string { return string(e) } -func (e *AbacActionNames) UnmarshalGQL(v interface{}) error { +func (e *AbacActionNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11043,6 +11210,20 @@ func (e AbacActionNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacActionNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacActionNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // AbacAttributeNames type AbacAttributeNames string @@ -11080,7 +11261,7 @@ func (e AbacAttributeNames) String() string { return string(e) } -func (e *AbacAttributeNames) UnmarshalGQL(v interface{}) error { +func (e *AbacAttributeNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11097,6 +11278,20 @@ func (e AbacAttributeNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacAttributeNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacAttributeNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Values from AbacEntityValues enum type AbacEntityValues string @@ -11144,7 +11339,7 @@ func (e AbacEntityValues) String() string { return string(e) } -func (e *AbacEntityValues) UnmarshalGQL(v interface{}) error { +func (e *AbacEntityValues) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11161,6 +11356,20 @@ func (e AbacEntityValues) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacEntityValues) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacEntityValues) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Access Mode type AccessMode string @@ -11188,7 +11397,7 @@ func (e AccessMode) String() string { return string(e) } -func (e *AccessMode) UnmarshalGQL(v interface{}) error { +func (e *AccessMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11205,6 +11414,20 @@ func (e AccessMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AccessMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AccessMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Analysis Metric Provider Types type AnalysisMetricProviderTypes string @@ -11253,7 +11476,7 @@ func (e AnalysisMetricProviderTypes) String() string { return string(e) } -func (e *AnalysisMetricProviderTypes) UnmarshalGQL(v interface{}) error { +func (e *AnalysisMetricProviderTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11270,6 +11493,20 @@ func (e AnalysisMetricProviderTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AnalysisMetricProviderTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AnalysisMetricProviderTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // AnalysisPhases type AnalysisPhases string @@ -11309,7 +11546,7 @@ func (e AnalysisPhases) String() string { return string(e) } -func (e *AnalysisPhases) UnmarshalGQL(v interface{}) error { +func (e *AnalysisPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11326,6 +11563,20 @@ func (e AnalysisPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AnalysisPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AnalysisPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncOperationPhase type AppOperationType string @@ -11356,7 +11607,7 @@ func (e AppOperationType) String() string { return string(e) } -func (e *AppOperationType) UnmarshalGQL(v interface{}) error { +func (e *AppOperationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11373,6 +11624,20 @@ func (e AppOperationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppOperationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppOperationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // App-Proxy Status type AppProxyStatus string @@ -11403,7 +11668,7 @@ func (e AppProxyStatus) String() string { return string(e) } -func (e *AppProxyStatus) UnmarshalGQL(v interface{}) error { +func (e *AppProxyStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11420,6 +11685,20 @@ func (e AppProxyStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppProxyStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppProxyStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // App Sync Policies type AppSyncPolicies string @@ -11450,7 +11729,7 @@ func (e AppSyncPolicies) String() string { return string(e) } -func (e *AppSyncPolicies) UnmarshalGQL(v interface{}) error { +func (e *AppSyncPolicies) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11467,6 +11746,20 @@ func (e AppSyncPolicies) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppSyncPolicies) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppSyncPolicies) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Application Groups Sorting field type ApplicationGroupsSortingField string @@ -11494,7 +11787,7 @@ func (e ApplicationGroupsSortingField) String() string { return string(e) } -func (e *ApplicationGroupsSortingField) UnmarshalGQL(v interface{}) error { +func (e *ApplicationGroupsSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11511,6 +11804,20 @@ func (e ApplicationGroupsSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ApplicationGroupsSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ApplicationGroupsSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Application Tree Sorting field type ApplicationTreeSortingField string @@ -11550,7 +11857,7 @@ func (e ApplicationTreeSortingField) String() string { return string(e) } -func (e *ApplicationTreeSortingField) UnmarshalGQL(v interface{}) error { +func (e *ApplicationTreeSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11567,6 +11874,20 @@ func (e ApplicationTreeSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ApplicationTreeSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ApplicationTreeSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ArgoCD State type ArgoCdState string @@ -11600,7 +11921,7 @@ func (e ArgoCdState) String() string { return string(e) } -func (e *ArgoCdState) UnmarshalGQL(v interface{}) error { +func (e *ArgoCdState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11617,6 +11938,20 @@ func (e ArgoCdState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ArgoCdState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ArgoCdState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type ArtifactDiscriminator string const ( @@ -11640,7 +11975,7 @@ func (e ArtifactDiscriminator) String() string { return string(e) } -func (e *ArtifactDiscriminator) UnmarshalGQL(v interface{}) error { +func (e *ArtifactDiscriminator) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11657,6 +11992,78 @@ func (e ArtifactDiscriminator) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ArtifactDiscriminator) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ArtifactDiscriminator) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Assignment type +type AssignmentType string + +const ( + // Linked applications + AssignmentTypeAnnotation AssignmentType = "ANNOTATION" + // Manually attached + AssignmentTypeManually AssignmentType = "MANUALLY" +) + +var AllAssignmentType = []AssignmentType{ + AssignmentTypeAnnotation, + AssignmentTypeManually, +} + +func (e AssignmentType) IsValid() bool { + switch e { + case AssignmentTypeAnnotation, AssignmentTypeManually: + return true + } + return false +} + +func (e AssignmentType) String() string { + return string(e) +} + +func (e *AssignmentType) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AssignmentType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AssignmentType", str) + } + return nil +} + +func (e AssignmentType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *AssignmentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AssignmentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ConnectionState contains information about remote resource connection state, currently used for clusters and repositories type ClusterConnectionStatus string @@ -11687,7 +12094,7 @@ func (e ClusterConnectionStatus) String() string { return string(e) } -func (e *ClusterConnectionStatus) UnmarshalGQL(v interface{}) error { +func (e *ClusterConnectionStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11704,6 +12111,20 @@ func (e ClusterConnectionStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ClusterConnectionStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ClusterConnectionStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Coupon Duration type CouponDuration string @@ -11731,7 +12152,7 @@ func (e CouponDuration) String() string { return string(e) } -func (e *CouponDuration) UnmarshalGQL(v interface{}) error { +func (e *CouponDuration) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11748,6 +12169,20 @@ func (e CouponDuration) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *CouponDuration) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e CouponDuration) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Deployment Statistics Status type DeploymentStatisticsStatus string @@ -11779,7 +12214,7 @@ func (e DeploymentStatisticsStatus) String() string { return string(e) } -func (e *DeploymentStatisticsStatus) UnmarshalGQL(v interface{}) error { +func (e *DeploymentStatisticsStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11796,6 +12231,20 @@ func (e DeploymentStatisticsStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *DeploymentStatisticsStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e DeploymentStatisticsStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type DisplayStrategy string const ( @@ -11825,7 +12274,7 @@ func (e DisplayStrategy) String() string { return string(e) } -func (e *DisplayStrategy) UnmarshalGQL(v interface{}) error { +func (e *DisplayStrategy) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11842,6 +12291,20 @@ func (e DisplayStrategy) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *DisplayStrategy) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e DisplayStrategy) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Duration Name type DurationName string @@ -11875,7 +12338,7 @@ func (e DurationName) String() string { return string(e) } -func (e *DurationName) UnmarshalGQL(v interface{}) error { +func (e *DurationName) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11892,6 +12355,20 @@ func (e DurationName) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *DurationName) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e DurationName) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Kind of environment type EnvironmentKind string @@ -11917,7 +12394,7 @@ func (e EnvironmentKind) String() string { return string(e) } -func (e *EnvironmentKind) UnmarshalGQL(v interface{}) error { +func (e *EnvironmentKind) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11934,6 +12411,20 @@ func (e EnvironmentKind) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *EnvironmentKind) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e EnvironmentKind) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // "Relative position of the moved environment in relation to the target environment" type EnvironmentRelativePos string @@ -11959,7 +12450,7 @@ func (e EnvironmentRelativePos) String() string { return string(e) } -func (e *EnvironmentRelativePos) UnmarshalGQL(v interface{}) error { +func (e *EnvironmentRelativePos) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11976,6 +12467,20 @@ func (e EnvironmentRelativePos) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *EnvironmentRelativePos) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e EnvironmentRelativePos) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Error severity levels type ErrorLevels string @@ -12003,7 +12508,7 @@ func (e ErrorLevels) String() string { return string(e) } -func (e *ErrorLevels) UnmarshalGQL(v interface{}) error { +func (e *ErrorLevels) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12020,6 +12525,20 @@ func (e ErrorLevels) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ErrorLevels) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ErrorLevels) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Exception level type ExceptionType string @@ -12047,7 +12566,7 @@ func (e ExceptionType) String() string { return string(e) } -func (e *ExceptionType) UnmarshalGQL(v interface{}) error { +func (e *ExceptionType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12064,6 +12583,20 @@ func (e ExceptionType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ExceptionType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ExceptionType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Extended Workflow Phases type ExtendedWorkflowPhases string @@ -12107,7 +12640,7 @@ func (e ExtendedWorkflowPhases) String() string { return string(e) } -func (e *ExtendedWorkflowPhases) UnmarshalGQL(v interface{}) error { +func (e *ExtendedWorkflowPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12124,6 +12657,20 @@ func (e ExtendedWorkflowPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ExtendedWorkflowPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ExtendedWorkflowPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // GitAuthMode type GitAuthMode string @@ -12154,7 +12701,7 @@ func (e GitAuthMode) String() string { return string(e) } -func (e *GitAuthMode) UnmarshalGQL(v interface{}) error { +func (e *GitAuthMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12171,6 +12718,20 @@ func (e GitAuthMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitAuthMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitAuthMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Git providers type GitProviders string @@ -12207,7 +12768,7 @@ func (e GitProviders) String() string { return string(e) } -func (e *GitProviders) UnmarshalGQL(v interface{}) error { +func (e *GitProviders) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12224,6 +12785,20 @@ func (e GitProviders) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitProviders) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitProviders) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of push event type GitPushPayloadDataTypes string @@ -12249,7 +12824,7 @@ func (e GitPushPayloadDataTypes) String() string { return string(e) } -func (e *GitPushPayloadDataTypes) UnmarshalGQL(v interface{}) error { +func (e *GitPushPayloadDataTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12266,6 +12841,20 @@ func (e GitPushPayloadDataTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitPushPayloadDataTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitPushPayloadDataTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Gitops Releases Sorting field type GitopsReleasesSortingField string @@ -12299,7 +12888,7 @@ func (e GitopsReleasesSortingField) String() string { return string(e) } -func (e *GitopsReleasesSortingField) UnmarshalGQL(v interface{}) error { +func (e *GitopsReleasesSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12316,8 +12905,22 @@ func (e GitopsReleasesSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } -// Health Error codes -type HealthErrorCodes string +func (e *GitopsReleasesSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitopsReleasesSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Health Error codes +type HealthErrorCodes string const ( // The resource has a reference to a non-existing resource @@ -12355,7 +12958,7 @@ func (e HealthErrorCodes) String() string { return string(e) } -func (e *HealthErrorCodes) UnmarshalGQL(v interface{}) error { +func (e *HealthErrorCodes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12372,6 +12975,20 @@ func (e HealthErrorCodes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *HealthErrorCodes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e HealthErrorCodes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Health Status type HealthStatus string @@ -12414,7 +13031,7 @@ func (e HealthStatus) String() string { return string(e) } -func (e *HealthStatus) UnmarshalGQL(v interface{}) error { +func (e *HealthStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12431,6 +13048,20 @@ func (e HealthStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *HealthStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e HealthStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type IconType string const ( @@ -12457,7 +13088,7 @@ func (e IconType) String() string { return string(e) } -func (e *IconType) UnmarshalGQL(v interface{}) error { +func (e *IconType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12474,6 +13105,20 @@ func (e IconType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *IconType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e IconType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type IDDiscriminator string const ( @@ -12500,7 +13145,7 @@ func (e IDDiscriminator) String() string { return string(e) } -func (e *IDDiscriminator) UnmarshalGQL(v interface{}) error { +func (e *IDDiscriminator) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12517,6 +13162,20 @@ func (e IDDiscriminator) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *IDDiscriminator) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e IDDiscriminator) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image pull policy // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated type ImagePullPolicy string @@ -12545,7 +13204,7 @@ func (e ImagePullPolicy) String() string { return string(e) } -func (e *ImagePullPolicy) UnmarshalGQL(v interface{}) error { +func (e *ImagePullPolicy) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12562,6 +13221,20 @@ func (e ImagePullPolicy) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImagePullPolicy) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImagePullPolicy) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image registry domain types type ImageRegistryType string @@ -12604,7 +13277,7 @@ func (e ImageRegistryType) String() string { return string(e) } -func (e *ImageRegistryType) UnmarshalGQL(v interface{}) error { +func (e *ImageRegistryType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12621,6 +13294,20 @@ func (e ImageRegistryType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRegistryType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRegistryType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image Repo Tag Sorting field type ImageRepoTagSortingField string @@ -12645,7 +13332,7 @@ func (e ImageRepoTagSortingField) String() string { return string(e) } -func (e *ImageRepoTagSortingField) UnmarshalGQL(v interface{}) error { +func (e *ImageRepoTagSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12662,6 +13349,20 @@ func (e ImageRepoTagSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRepoTagSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRepoTagSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image Repository Sorting field type ImageRepositorySortingField string @@ -12689,7 +13390,7 @@ func (e ImageRepositorySortingField) String() string { return string(e) } -func (e *ImageRepositorySortingField) UnmarshalGQL(v interface{}) error { +func (e *ImageRepositorySortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12706,6 +13407,20 @@ func (e ImageRepositorySortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRepositorySortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRepositorySortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Installation Status type InstallationStatus string @@ -12736,7 +13451,7 @@ func (e InstallationStatus) String() string { return string(e) } -func (e *InstallationStatus) UnmarshalGQL(v interface{}) error { +func (e *InstallationStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12753,6 +13468,20 @@ func (e InstallationStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InstallationStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InstallationStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Installation type type InstallationType string @@ -12780,7 +13509,7 @@ func (e InstallationType) String() string { return string(e) } -func (e *InstallationType) UnmarshalGQL(v interface{}) error { +func (e *InstallationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12797,6 +13526,20 @@ func (e InstallationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InstallationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InstallationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Integration Consumer type IntegrationConsumer string @@ -12821,7 +13564,7 @@ func (e IntegrationConsumer) String() string { return string(e) } -func (e *IntegrationConsumer) UnmarshalGQL(v interface{}) error { +func (e *IntegrationConsumer) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12838,6 +13581,20 @@ func (e IntegrationConsumer) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *IntegrationConsumer) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e IntegrationConsumer) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // InvoiceStatus type InvoiceStatus string @@ -12869,7 +13626,7 @@ func (e InvoiceStatus) String() string { return string(e) } -func (e *InvoiceStatus) UnmarshalGQL(v interface{}) error { +func (e *InvoiceStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12886,6 +13643,20 @@ func (e InvoiceStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InvoiceStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InvoiceStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // MatchExpressionOperator type MatchExpressionOperator string @@ -12919,7 +13690,7 @@ func (e MatchExpressionOperator) String() string { return string(e) } -func (e *MatchExpressionOperator) UnmarshalGQL(v interface{}) error { +func (e *MatchExpressionOperator) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12936,6 +13707,20 @@ func (e MatchExpressionOperator) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *MatchExpressionOperator) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e MatchExpressionOperator) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification action type type NotificationActionType string @@ -12966,7 +13751,7 @@ func (e NotificationActionType) String() string { return string(e) } -func (e *NotificationActionType) UnmarshalGQL(v interface{}) error { +func (e *NotificationActionType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12983,6 +13768,20 @@ func (e NotificationActionType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationActionType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationActionType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification State type NotificationState string @@ -13013,7 +13812,7 @@ func (e NotificationState) String() string { return string(e) } -func (e *NotificationState) UnmarshalGQL(v interface{}) error { +func (e *NotificationState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13030,6 +13829,20 @@ func (e NotificationState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification Type type NotificationType string @@ -13060,7 +13873,7 @@ func (e NotificationType) String() string { return string(e) } -func (e *NotificationType) UnmarshalGQL(v interface{}) error { +func (e *NotificationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13077,6 +13890,20 @@ func (e NotificationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of event payload type PayloadDataTypes string @@ -13104,7 +13931,7 @@ func (e PayloadDataTypes) String() string { return string(e) } -func (e *PayloadDataTypes) UnmarshalGQL(v interface{}) error { +func (e *PayloadDataTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13121,6 +13948,20 @@ func (e PayloadDataTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PayloadDataTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PayloadDataTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Payment Intervals type PaymentInterval string @@ -13146,7 +13987,7 @@ func (e PaymentInterval) String() string { return string(e) } -func (e *PaymentInterval) UnmarshalGQL(v interface{}) error { +func (e *PaymentInterval) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13163,6 +14004,20 @@ func (e PaymentInterval) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PaymentInterval) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PaymentInterval) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Payment Type type PaymentType string @@ -13194,7 +14049,7 @@ func (e PaymentType) String() string { return string(e) } -func (e *PaymentType) UnmarshalGQL(v interface{}) error { +func (e *PaymentType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13211,6 +14066,20 @@ func (e PaymentType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PaymentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PaymentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Pipeline statistics sort by duration type type PipelineClassicStatisticDurationMetricType string @@ -13238,7 +14107,7 @@ func (e PipelineClassicStatisticDurationMetricType) String() string { return string(e) } -func (e *PipelineClassicStatisticDurationMetricType) UnmarshalGQL(v interface{}) error { +func (e *PipelineClassicStatisticDurationMetricType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13255,6 +14124,20 @@ func (e PipelineClassicStatisticDurationMetricType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PipelineClassicStatisticDurationMetricType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PipelineClassicStatisticDurationMetricType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // PlanTypes type PlanTypes string @@ -13280,7 +14163,7 @@ func (e PlanTypes) String() string { return string(e) } -func (e *PlanTypes) UnmarshalGQL(v interface{}) error { +func (e *PlanTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13297,6 +14180,20 @@ func (e PlanTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PlanTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PlanTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Components Sorting field type ProductComponentSortingField string @@ -13324,7 +14221,7 @@ func (e ProductComponentSortingField) String() string { return string(e) } -func (e *ProductComponentSortingField) UnmarshalGQL(v interface{}) error { +func (e *ProductComponentSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13341,6 +14238,20 @@ func (e ProductComponentSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductComponentSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductComponentSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Component types type ProductComponentType string @@ -13368,7 +14279,7 @@ func (e ProductComponentType) String() string { return string(e) } -func (e *ProductComponentType) UnmarshalGQL(v interface{}) error { +func (e *ProductComponentType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13385,6 +14296,20 @@ func (e ProductComponentType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductComponentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductComponentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ProductConcurrency type ProductConcurrency string @@ -13412,7 +14337,7 @@ func (e ProductConcurrency) String() string { return string(e) } -func (e *ProductConcurrency) UnmarshalGQL(v interface{}) error { +func (e *ProductConcurrency) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13429,6 +14354,20 @@ func (e ProductConcurrency) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductConcurrency) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductConcurrency) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ProductGitTrigger type ProductGitTrigger string @@ -13456,7 +14395,7 @@ func (e ProductGitTrigger) String() string { return string(e) } -func (e *ProductGitTrigger) UnmarshalGQL(v interface{}) error { +func (e *ProductGitTrigger) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13473,13 +14412,27 @@ func (e ProductGitTrigger) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductGitTrigger) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductGitTrigger) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Release Public Status type ProductReleasePublicStatus string const ( // Release status on release step failed ProductReleasePublicStatusFailed ProductReleasePublicStatus = "FAILED" - // Release is in queue to be started + // Release is in queue to be started or pending execution ProductReleasePublicStatusQueued ProductReleasePublicStatus = "QUEUED" // Release status on release step is running ProductReleasePublicStatusRunning ProductReleasePublicStatus = "RUNNING" @@ -13515,7 +14468,7 @@ func (e ProductReleasePublicStatus) String() string { return string(e) } -func (e *ProductReleasePublicStatus) UnmarshalGQL(v interface{}) error { +func (e *ProductReleasePublicStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13532,10 +14485,26 @@ func (e ProductReleasePublicStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductReleasePublicStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductReleasePublicStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Sorting field type ProductSortingField string const ( + // By id + ProductSortingFieldID ProductSortingField = "id" // By name ProductSortingFieldName ProductSortingField = "name" // By updated at @@ -13543,13 +14512,14 @@ const ( ) var AllProductSortingField = []ProductSortingField{ + ProductSortingFieldID, ProductSortingFieldName, ProductSortingFieldUpdatedAt, } func (e ProductSortingField) IsValid() bool { switch e { - case ProductSortingFieldName, ProductSortingFieldUpdatedAt: + case ProductSortingFieldID, ProductSortingFieldName, ProductSortingFieldUpdatedAt: return true } return false @@ -13559,7 +14529,7 @@ func (e ProductSortingField) String() string { return string(e) } -func (e *ProductSortingField) UnmarshalGQL(v interface{}) error { +func (e *ProductSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13576,6 +14546,20 @@ func (e ProductSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Promotion policy possible actions type PromotionPolicyAction string @@ -13606,7 +14590,7 @@ func (e PromotionPolicyAction) String() string { return string(e) } -func (e *PromotionPolicyAction) UnmarshalGQL(v interface{}) error { +func (e *PromotionPolicyAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13623,6 +14607,20 @@ func (e PromotionPolicyAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PromotionPolicyAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PromotionPolicyAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Policy sorting field type PromotionPolicySortingField string @@ -13653,7 +14651,7 @@ func (e PromotionPolicySortingField) String() string { return string(e) } -func (e *PromotionPolicySortingField) UnmarshalGQL(v interface{}) error { +func (e *PromotionPolicySortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13670,6 +14668,20 @@ func (e PromotionPolicySortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PromotionPolicySortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PromotionPolicySortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Promotion Type type PromotionType string @@ -13695,7 +14707,7 @@ func (e PromotionType) String() string { return string(e) } -func (e *PromotionType) UnmarshalGQL(v interface{}) error { +func (e *PromotionType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13712,6 +14724,20 @@ func (e PromotionType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PromotionType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PromotionType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Pull request state type PullRequestState string @@ -13739,7 +14765,7 @@ func (e PullRequestState) String() string { return string(e) } -func (e *PullRequestState) UnmarshalGQL(v interface{}) error { +func (e *PullRequestState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13756,6 +14782,20 @@ func (e PullRequestState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PullRequestState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PullRequestState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type RefreshOptionsTypes string const ( @@ -13780,7 +14820,7 @@ func (e RefreshOptionsTypes) String() string { return string(e) } -func (e *RefreshOptionsTypes) UnmarshalGQL(v interface{}) error { +func (e *RefreshOptionsTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13797,6 +14837,20 @@ func (e RefreshOptionsTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RefreshOptionsTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RefreshOptionsTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // RefreshType specifies how to refresh the sources of a given application type RefreshType string @@ -13824,7 +14878,7 @@ func (e RefreshType) String() string { return string(e) } -func (e *RefreshType) UnmarshalGQL(v interface{}) error { +func (e *RefreshType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13841,6 +14895,76 @@ func (e RefreshType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RefreshType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RefreshType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Release channel type +type ReleaseChannel string + +const ( + ReleaseChannelLatest ReleaseChannel = "latest" + ReleaseChannelStable ReleaseChannel = "stable" +) + +var AllReleaseChannel = []ReleaseChannel{ + ReleaseChannelLatest, + ReleaseChannelStable, +} + +func (e ReleaseChannel) IsValid() bool { + switch e { + case ReleaseChannelLatest, ReleaseChannelStable: + return true + } + return false +} + +func (e ReleaseChannel) String() string { + return string(e) +} + +func (e *ReleaseChannel) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ReleaseChannel(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ReleaseChannel", str) + } + return nil +} + +func (e ReleaseChannel) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *ReleaseChannel) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ReleaseChannel) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Release Rollout Disabled Reasons type ReleaseRolloutDisabledReasons string @@ -13865,7 +14989,7 @@ func (e ReleaseRolloutDisabledReasons) String() string { return string(e) } -func (e *ReleaseRolloutDisabledReasons) UnmarshalGQL(v interface{}) error { +func (e *ReleaseRolloutDisabledReasons) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13882,6 +15006,20 @@ func (e ReleaseRolloutDisabledReasons) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ReleaseRolloutDisabledReasons) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ReleaseRolloutDisabledReasons) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Resource action type ResourceAction string @@ -13912,7 +15050,7 @@ func (e ResourceAction) String() string { return string(e) } -func (e *ResourceAction) UnmarshalGQL(v interface{}) error { +func (e *ResourceAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13929,6 +15067,20 @@ func (e ResourceAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ResourceAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ResourceAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ResourceOperation type ResourceOperation string @@ -13959,7 +15111,7 @@ func (e ResourceOperation) String() string { return string(e) } -func (e *ResourceOperation) UnmarshalGQL(v interface{}) error { +func (e *ResourceOperation) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13976,6 +15128,20 @@ func (e ResourceOperation) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ResourceOperation) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ResourceOperation) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Phases type RolloutPhases string @@ -14015,7 +15181,7 @@ func (e RolloutPhases) String() string { return string(e) } -func (e *RolloutPhases) UnmarshalGQL(v interface{}) error { +func (e *RolloutPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14032,6 +15198,20 @@ func (e RolloutPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Step Status type RolloutStepStatus string @@ -14074,7 +15254,7 @@ func (e RolloutStepStatus) String() string { return string(e) } -func (e *RolloutStepStatus) UnmarshalGQL(v interface{}) error { +func (e *RolloutStepStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14091,6 +15271,20 @@ func (e RolloutStepStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutStepStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutStepStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Strategy Names type RolloutStrategyNames string @@ -14118,7 +15312,7 @@ func (e RolloutStrategyNames) String() string { return string(e) } -func (e *RolloutStrategyNames) UnmarshalGQL(v interface{}) error { +func (e *RolloutStrategyNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14135,6 +15329,20 @@ func (e RolloutStrategyNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutStrategyNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutStrategyNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // RuntimeOperationAction type RuntimeOperationAction string @@ -14162,7 +15370,7 @@ func (e RuntimeOperationAction) String() string { return string(e) } -func (e *RuntimeOperationAction) UnmarshalGQL(v interface{}) error { +func (e *RuntimeOperationAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14179,6 +15387,20 @@ func (e RuntimeOperationAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RuntimeOperationAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RuntimeOperationAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Runtime Sync Mode type RuntimeSyncMode string @@ -14209,7 +15431,7 @@ func (e RuntimeSyncMode) String() string { return string(e) } -func (e *RuntimeSyncMode) UnmarshalGQL(v interface{}) error { +func (e *RuntimeSyncMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14226,6 +15448,20 @@ func (e RuntimeSyncMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RuntimeSyncMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RuntimeSyncMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Integration Entity Type type SecretType string @@ -14253,7 +15489,7 @@ func (e SecretType) String() string { return string(e) } -func (e *SecretType) UnmarshalGQL(v interface{}) error { +func (e *SecretType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14270,6 +15506,20 @@ func (e SecretType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SecretType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SecretType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Service Sorting field type ServiceSortingField string @@ -14297,7 +15547,7 @@ func (e ServiceSortingField) String() string { return string(e) } -func (e *ServiceSortingField) UnmarshalGQL(v interface{}) error { +func (e *ServiceSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14314,6 +15564,20 @@ func (e ServiceSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ServiceSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ServiceSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ServiceType type ServiceType string @@ -14343,7 +15607,7 @@ func (e ServiceType) String() string { return string(e) } -func (e *ServiceType) UnmarshalGQL(v interface{}) error { +func (e *ServiceType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14360,6 +15624,20 @@ func (e ServiceType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ServiceType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ServiceType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sharing policy type SharingPolicy string @@ -14387,7 +15665,7 @@ func (e SharingPolicy) String() string { return string(e) } -func (e *SharingPolicy) UnmarshalGQL(v interface{}) error { +func (e *SharingPolicy) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14404,6 +15682,20 @@ func (e SharingPolicy) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SharingPolicy) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SharingPolicy) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sorting order type SortingOrder string @@ -14431,7 +15723,7 @@ func (e SortingOrder) String() string { return string(e) } -func (e *SortingOrder) UnmarshalGQL(v interface{}) error { +func (e *SortingOrder) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14448,6 +15740,20 @@ func (e SortingOrder) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SortingOrder) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SortingOrder) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Support Plan type SupportPlan string @@ -14477,7 +15783,7 @@ func (e SupportPlan) String() string { return string(e) } -func (e *SupportPlan) UnmarshalGQL(v interface{}) error { +func (e *SupportPlan) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14494,6 +15800,20 @@ func (e SupportPlan) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SupportPlan) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SupportPlan) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Supported CI Tools type SupportedCITools string @@ -14524,7 +15844,7 @@ func (e SupportedCITools) String() string { return string(e) } -func (e *SupportedCITools) UnmarshalGQL(v interface{}) error { +func (e *SupportedCITools) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14541,6 +15861,20 @@ func (e SupportedCITools) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SupportedCITools) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SupportedCITools) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + type SupportedSnippetTypes string const ( @@ -14573,7 +15907,7 @@ func (e SupportedSnippetTypes) String() string { return string(e) } -func (e *SupportedSnippetTypes) UnmarshalGQL(v interface{}) error { +func (e *SupportedSnippetTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14590,6 +15924,20 @@ func (e SupportedSnippetTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SupportedSnippetTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SupportedSnippetTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncResourceAction type SyncActionOnResource string @@ -14632,7 +15980,7 @@ func (e SyncActionOnResource) String() string { return string(e) } -func (e *SyncActionOnResource) UnmarshalGQL(v interface{}) error { +func (e *SyncActionOnResource) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14649,6 +15997,20 @@ func (e SyncActionOnResource) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncActionOnResource) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncActionOnResource) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sync Error codes type SyncErrorCodes string @@ -14682,7 +16044,7 @@ func (e SyncErrorCodes) String() string { return string(e) } -func (e *SyncErrorCodes) UnmarshalGQL(v interface{}) error { +func (e *SyncErrorCodes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14699,6 +16061,20 @@ func (e SyncErrorCodes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncErrorCodes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncErrorCodes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncHookType type SyncHookType string @@ -14735,7 +16111,7 @@ func (e SyncHookType) String() string { return string(e) } -func (e *SyncHookType) UnmarshalGQL(v interface{}) error { +func (e *SyncHookType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14752,6 +16128,20 @@ func (e SyncHookType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncHookType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncHookType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncOperationPhase type SyncOperationPhase string @@ -14791,7 +16181,7 @@ func (e SyncOperationPhase) String() string { return string(e) } -func (e *SyncOperationPhase) UnmarshalGQL(v interface{}) error { +func (e *SyncOperationPhase) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14808,6 +16198,20 @@ func (e SyncOperationPhase) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncOperationPhase) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncOperationPhase) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncPhase type SyncPhase string @@ -14841,7 +16245,7 @@ func (e SyncPhase) String() string { return string(e) } -func (e *SyncPhase) UnmarshalGQL(v interface{}) error { +func (e *SyncPhase) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14858,6 +16262,20 @@ func (e SyncPhase) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncPhase) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncPhase) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncResultCode type SyncResultCode string @@ -14894,7 +16312,7 @@ func (e SyncResultCode) String() string { return string(e) } -func (e *SyncResultCode) UnmarshalGQL(v interface{}) error { +func (e *SyncResultCode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14911,6 +16329,20 @@ func (e SyncResultCode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncResultCode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncResultCode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sync status type SyncStatus string @@ -14944,7 +16376,7 @@ func (e SyncStatus) String() string { return string(e) } -func (e *SyncStatus) UnmarshalGQL(v interface{}) error { +func (e *SyncStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14961,6 +16393,20 @@ func (e SyncStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of system type type SystemType string @@ -14990,7 +16436,7 @@ func (e SystemType) String() string { return string(e) } -func (e *SystemType) UnmarshalGQL(v interface{}) error { +func (e *SystemType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15007,6 +16453,20 @@ func (e SystemType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SystemType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SystemType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Team sources type TeamSource string @@ -15052,7 +16512,7 @@ func (e TeamSource) String() string { return string(e) } -func (e *TeamSource) UnmarshalGQL(v interface{}) error { +func (e *TeamSource) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15069,6 +16529,20 @@ func (e TeamSource) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *TeamSource) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e TeamSource) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of team type TeamType string @@ -15099,7 +16573,7 @@ func (e TeamType) String() string { return string(e) } -func (e *TeamType) UnmarshalGQL(v interface{}) error { +func (e *TeamType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15116,6 +16590,20 @@ func (e TeamType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *TeamType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e TeamType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // RefreshType specifies how to refresh the sources of a given application type TokenType string @@ -15143,7 +16631,7 @@ func (e TokenType) String() string { return string(e) } -func (e *TokenType) UnmarshalGQL(v interface{}) error { +func (e *TokenType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15160,6 +16648,20 @@ func (e TokenType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *TokenType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e TokenType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Workflow nodes WorkflowPhases type WorkflowNodePhases string @@ -15202,7 +16704,7 @@ func (e WorkflowNodePhases) String() string { return string(e) } -func (e *WorkflowNodePhases) UnmarshalGQL(v interface{}) error { +func (e *WorkflowNodePhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15219,6 +16721,20 @@ func (e WorkflowNodePhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *WorkflowNodePhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowNodePhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Name of the flows that can be the workflow origins type WorkflowOrigins string @@ -15258,7 +16774,7 @@ func (e WorkflowOrigins) String() string { return string(e) } -func (e *WorkflowOrigins) UnmarshalGQL(v interface{}) error { +func (e *WorkflowOrigins) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15275,6 +16791,20 @@ func (e WorkflowOrigins) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *WorkflowOrigins) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowOrigins) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Workflow WorkflowPhases type WorkflowPhases string @@ -15314,7 +16844,7 @@ func (e WorkflowPhases) String() string { return string(e) } -func (e *WorkflowPhases) UnmarshalGQL(v interface{}) error { +func (e *WorkflowPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -15330,3 +16860,17 @@ func (e *WorkflowPhases) UnmarshalGQL(v interface{}) error { func (e WorkflowPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } + +func (e *WorkflowPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} diff --git a/pkg/model/platform/models_gen.go b/pkg/model/platform/models_gen.go index f2c5fe3..43457bf 100644 --- a/pkg/model/platform/models_gen.go +++ b/pkg/model/platform/models_gen.go @@ -3,6 +3,7 @@ package model import ( + "bytes" "fmt" "io" "strconv" @@ -349,8 +350,6 @@ type AccountFeatures struct { Abac *bool `json:"abac,omitempty"` // New ABAC permissions page AbacV2 *bool `json:"abacV2,omitempty"` - // Shows user git personal token settings menu in project one - UnifiedUserGitTokens *bool `json:"unifiedUserGitTokens,omitempty"` // Adds ability to rollback rollout from rollout drawer in app timeline GitOpsRolloutRollback *bool `json:"gitOpsRolloutRollback,omitempty"` // Shows Beamer widget for all platforms (What's new) @@ -429,6 +428,8 @@ type AccountFeatures struct { HeaderLiveState *bool `json:"headerLiveState,omitempty"` // Enables promotion orchestration for products including product's releases API and promotion flow API PromotionOrchestration *bool `json:"promotionOrchestration,omitempty"` + // Enables the main releases page, allowing users to view releases from all products + MainReleasesPage *bool `json:"mainReleasesPage,omitempty"` // Enables promotion policies view PromotionPolicies *bool `json:"promotionPolicies,omitempty"` // Enables git commit statuses for product release promotions @@ -509,6 +510,20 @@ type AccountFeatures struct { GitlabSupportInRuntimeWizard *bool `json:"gitlabSupportInRuntimeWizard,omitempty"` // Adds ability to connect Bitbucket as git provider in runtime installation wizard BitbucketSupportInRuntimeWizard *bool `json:"bitbucketSupportInRuntimeWizard,omitempty"` + // Shows warning message that promotions are in early access + PromotionsEarlyAccessWarning *bool `json:"promotionsEarlyAccessWarning,omitempty"` + // Enables new user settings page based on Gitops UI under /2.0 path + NewUserSettingsPage *bool `json:"newUserSettingsPage,omitempty"` + // Hides classic-only related sections from new user settings page + HideClassicRelatedSectionsFromNewUserSettingsPage *bool `json:"hideClassicRelatedSectionsFromNewUserSettingsPage,omitempty"` + // Uses new endpoints for retrieval of product promotions(releases) across all corresponding views. + NewPromotionEndpoints *bool `json:"newPromotionEndpoints,omitempty"` + // Enables product CRD commit flow + ProductCRDCommitFlow *bool `json:"productCRDCommitFlow,omitempty"` + // Disables the application tree if the number of applications exceeds the limit. The limit can be overridden using the APPLICATION_TREE_SIZE_LIMIT variable + DisableApplicationTreeViewForLargeTrees *bool `json:"disableApplicationTreeViewForLargeTrees,omitempty"` + // Enable support for runtime release channels. Use pre-computed release data from GitHub Pages instead of GitHub API. + UseRuntimeUpdateChannels *bool `json:"useRuntimeUpdateChannels,omitempty"` } // Account Gitops Usage @@ -2723,6 +2738,14 @@ type CalendarTriggerConditionsArgs struct { Metadata *string `json:"metadata,omitempty"` } +// Channel-specific release data +type ChannelReleases struct { + // All releases in this channel + Releases []*Release `json:"releases"` + // Latest (newest) chart version in this channel, null if no releases + LatestChartVersion *string `json:"latestChartVersion,omitempty"` +} + // ChildApplicationField Entity type ChildApplicationField struct { // Name @@ -2843,6 +2866,10 @@ type Cluster struct { ClusterResources bool `json:"clusterResources"` // Info holds information about cluster cache and state Info *ClusterInfo `json:"info"` + // Indicated if cluster considered inactive due to missing events from the app-proxy + Inactive *bool `json:"inactive,omitempty"` + // UpdatedAt holds time when cluster has been updated + UpdatedAt *string `json:"updatedAt,omitempty"` } func (Cluster) IsBaseEntity() {} @@ -3609,10 +3636,12 @@ type EnvironmentCluster struct { RuntimeName string `json:"runtimeName"` // Cluster name Name string `json:"name"` - // Cluster address - Server string `json:"server"` + // Cluster address - resolved dynamically, null if cluster doesn't exist + Server *string `json:"server,omitempty"` // Cluster namespaces Namespaces []string `json:"namespaces"` + // Indicate if the cluster still exists + Exists bool `json:"exists"` } // Environment Cluster @@ -3622,7 +3651,7 @@ type EnvironmentClusterInput struct { // Cluster name Name string `json:"name"` // Cluster address - Server string `json:"server"` + Server *string `json:"server,omitempty"` // Cluster namespaces Namespaces []string `json:"namespaces"` } @@ -6932,6 +6961,8 @@ type Product struct { Concurrency *ProductConcurrency `json:"concurrency,omitempty"` // Latest product release LatestRelease *ProductReleaseEntity `json:"latestRelease,omitempty"` + // Latest product promotion + LatestPromotion *PromotionEntity `json:"latestPromotion,omitempty"` } func (Product) IsFavorableNotK8sEntity() {} @@ -7012,6 +7043,24 @@ type ProductApplicationRelease struct { AppVersions *ProductComponentVersions `json:"appVersions,omitempty"` } +// Product App application +type ProductApplicationStatic struct { + // Entity id object + Self *ProductApplicationEntityID `json:"self"` + // Runtime name + Runtime string `json:"runtime"` + // Deployed to object + DeployedTo *ProductApplicationDeployedTo `json:"deployedTo"` + // Product App Application Status object + Status *ProductApplicationStatus `json:"status"` + // Annotaion pairs array strings(key=value) + AnnotationPairs []*string `json:"annotationPairs"` + // Label pairs array strings(key=value) + LabelPairs []string `json:"labelPairs"` + // Latest application release + Release *ProductApplicationRelease `json:"release,omitempty"` +} + // Product App deployed to type ProductApplicationStatus struct { // Application sync status @@ -7090,6 +7139,8 @@ type ProductComponentFilterArgs struct { HealthStatuses []HealthStatus `json:"healthStatuses,omitempty"` // If 'true' returns components that have at least 1 pending PR HasPendingPullRequests *bool `json:"hasPendingPullRequests,omitempty"` + // Assignment type + ProductAssignment *AssignmentType `json:"productAssignment,omitempty"` } // Info about the workflow that promoted component @@ -7114,6 +7165,44 @@ type ProductComponentSortArg struct { Order SortingOrder `json:"order"` } +// Product Component Static +type ProductComponentStatic struct { + // Entity db id + ID string `json:"id"` + // Component name + Name string `json:"name"` + // Product app type + Type ProductComponentType `json:"type"` + // Application + Application *ProductApplicationStatic `json:"application,omitempty"` +} + +// Args to filter Product Components Static +type ProductComponentStaticFilterArgs struct { + // Partial name (case insensitive) + PartialName *string `json:"partialName,omitempty"` + // Application names + AppNames []*string `json:"appNames,omitempty"` + // Application version + AppVersion *string `json:"appVersion,omitempty"` + // Issue key array + IssueKeys []string `json:"issueKeys,omitempty"` + // PR key array + PrKeys []string `json:"prKeys,omitempty"` + // Committers array + Committers []string `json:"committers,omitempty"` + // Images array + Images []string `json:"images,omitempty"` + // Product names array + Products []string `json:"products,omitempty"` + // If 'true' returns unassigned components, 'false' ignored + NotInProduct *bool `json:"notInProduct,omitempty"` + // Environments names array + Environments []string `json:"environments,omitempty"` + // If 'true' returns components that belong to any environment, 'false' ignored + InEnvironment *bool `json:"inEnvironment,omitempty"` +} + // Version of product and dependencies type ProductComponentVersions struct { // AppVersion @@ -7176,12 +7265,16 @@ type ProductEnvironmentStatistic struct { // Args to filter Product type ProductFilterArgs struct { + // Product name + Name *string `json:"name,omitempty"` // Partial name (case insensitive) PartialName *string `json:"partialName,omitempty"` // Application names AppNames []*string `json:"appNames,omitempty"` // Environments names Environments []*string `json:"environments,omitempty"` + // Promotion flow names + PromotionFlowNames []*string `json:"promotionFlowNames,omitempty"` // Filter by user favorite Favorite *bool `json:"favorite,omitempty"` } @@ -7212,12 +7305,24 @@ type ProductGroupForEnvs struct { ProductComponents []*ProductComponent `json:"productComponents"` } +// Args to filter Product names +type ProductNamesFilterArgs struct { + // Product name + Name *string `json:"name,omitempty"` + // Partial name (case insensitive) + PartialName *string `json:"partialName,omitempty"` + // Promotion flow names + PromotionFlowNames []*string `json:"promotionFlowNames,omitempty"` +} + // Product Promotion Flow Selectors type ProductPromotionFlowSelectors struct { // Entity db id Name string `json:"name"` // Group name GitTriggerSelectors []*ProductGitTriggerSelector `json:"gitTriggerSelectors"` + // Indicates whether the specified promotion flow still exists + Exists bool `json:"exists"` } // ProductReadModelEventPayload @@ -7374,6 +7479,52 @@ type PromotionCode struct { TimesRedeemed int `json:"timesRedeemed"` } +// Commit information +type PromotionCommitInfo struct { + // Commit SHA + CommitSha string `json:"commitSha"` + // Commit message + CommitMessage string `json:"commitMessage"` + // Commit author + CommitAuthor string `json:"commitAuthor"` + // Commit date + CommitDate *string `json:"commitDate,omitempty"` + // Commit repository url + RepoURL *string `json:"repoURL,omitempty"` + // Commit revision (branch) + Revision *string `json:"revision,omitempty"` + // Committer avatar url + AvatarURL *string `json:"avatarURL,omitempty"` +} + +// Promotion Entity +type PromotionEntity struct { + // Promotion id + PromotionID string `json:"promotionId"` + // Promotion status + Status ProductReleasePublicStatus `json:"status"` + // Promotion app version + PromotionAppVersion *string `json:"promotionAppVersion,omitempty"` + // Trigger commit information + TriggerCommitInfo *PromotionCommitInfo `json:"triggerCommitInfo"` + // Updated at timestamp + UpdatedAt *string `json:"updatedAt,omitempty"` + // Created at timestamp + CreatedAt string `json:"createdAt"` +} + +// PromotionEventPayload +type PromotionEventPayload struct { + // Promotion id + ID string `json:"id"` + // Type of DB entity + EntityType string `json:"entityType"` + // Type of DB event upsert/delete + EventType string `json:"eventType"` +} + +func (PromotionEventPayload) IsCommonEntityEventPayload() {} + // PromotionFlow entity type PromotionFlow struct { // Object metadata @@ -7686,6 +7837,10 @@ type PullRequest struct { Author string `json:"author"` // Pull request author avatar url AvatarURL string `json:"avatarUrl"` + // Pull request base branch (the branch you want to merge changes into) + BaseBranch string `json:"baseBranch"` + // Pull request head branch (the branch where your changes are implemented) + HeadBranch string `json:"headBranch"` // Pull request created at CreatedAt string `json:"createdAt"` // Pull request state @@ -7800,6 +7955,10 @@ type Release struct { ChartVersion *string `json:"chartVersion,omitempty"` // Has security vulnerabilities HasSecurityVulnerabilities *bool `json:"hasSecurityVulnerabilities,omitempty"` + // Release channel (stable or latest) + Channel *ReleaseChannel `json:"channel,omitempty"` + // Whether an upgrade is available for this release + UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` } // Rollout Rollout State @@ -7856,6 +8015,14 @@ type ReleaseServiceState struct { AvailableReplicas *int `json:"availableReplicas,omitempty"` } +// Releases grouped by channel +type ReleasesByChannel struct { + // Stable channel releases + Stable *ChannelReleases `json:"stable"` + // Latest channel releases + Latest *ChannelReleases `json:"latest"` +} + // "response for renew access token type RenewAccessTokenResponse struct { // The access token to use for the next requests @@ -8586,6 +8753,8 @@ type Runtime struct { RuntimeApplicationName *string `json:"runtimeApplicationName,omitempty"` // Is using an external ArgoCD instance instead of the bundled one IsExternalArgoCd *bool `json:"isExternalArgoCd,omitempty"` + // True if the runtime is installed in single namespace mode + IsNamespacedRuntime *bool `json:"isNamespacedRuntime,omitempty"` } func (Runtime) IsBaseEntity() {} @@ -8766,6 +8935,16 @@ type RuntimeStatus struct { ArgoCdState ArgoCdState `json:"argoCdState"` } +// Runtime Version Info +type RuntimeVersionInfo struct { + // Name of the Runtime + Name string `json:"name"` + // Runtime version + RuntimeVersion *string `json:"runtimeVersion,omitempty"` + // Chart version + ChartVersion *string `json:"chartVersion,omitempty"` +} + // Runtimes statistics type RuntimesStatistics struct { // Total runtimes number @@ -10475,7 +10654,7 @@ func (e AbacActionNames) String() string { return string(e) } -func (e *AbacActionNames) UnmarshalGQL(v interface{}) error { +func (e *AbacActionNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10492,6 +10671,20 @@ func (e AbacActionNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacActionNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacActionNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // AbacAttributeNames type AbacAttributeNames string @@ -10529,7 +10722,7 @@ func (e AbacAttributeNames) String() string { return string(e) } -func (e *AbacAttributeNames) UnmarshalGQL(v interface{}) error { +func (e *AbacAttributeNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10546,6 +10739,20 @@ func (e AbacAttributeNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacAttributeNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacAttributeNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Values from AbacEntityValues enum type AbacEntityValues string @@ -10593,7 +10800,7 @@ func (e AbacEntityValues) String() string { return string(e) } -func (e *AbacEntityValues) UnmarshalGQL(v interface{}) error { +func (e *AbacEntityValues) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10610,6 +10817,20 @@ func (e AbacEntityValues) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AbacEntityValues) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AbacEntityValues) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Access Mode type AccessMode string @@ -10637,7 +10858,7 @@ func (e AccessMode) String() string { return string(e) } -func (e *AccessMode) UnmarshalGQL(v interface{}) error { +func (e *AccessMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10654,6 +10875,20 @@ func (e AccessMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AccessMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AccessMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Analysis Metric Provider Types type AnalysisMetricProviderTypes string @@ -10702,7 +10937,7 @@ func (e AnalysisMetricProviderTypes) String() string { return string(e) } -func (e *AnalysisMetricProviderTypes) UnmarshalGQL(v interface{}) error { +func (e *AnalysisMetricProviderTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10719,6 +10954,20 @@ func (e AnalysisMetricProviderTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AnalysisMetricProviderTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AnalysisMetricProviderTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // AnalysisPhases type AnalysisPhases string @@ -10758,7 +11007,7 @@ func (e AnalysisPhases) String() string { return string(e) } -func (e *AnalysisPhases) UnmarshalGQL(v interface{}) error { +func (e *AnalysisPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10775,6 +11024,20 @@ func (e AnalysisPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AnalysisPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AnalysisPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncOperationPhase type AppOperationType string @@ -10805,7 +11068,7 @@ func (e AppOperationType) String() string { return string(e) } -func (e *AppOperationType) UnmarshalGQL(v interface{}) error { +func (e *AppOperationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10822,6 +11085,20 @@ func (e AppOperationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppOperationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppOperationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // App-Proxy Status type AppProxyStatus string @@ -10852,7 +11129,7 @@ func (e AppProxyStatus) String() string { return string(e) } -func (e *AppProxyStatus) UnmarshalGQL(v interface{}) error { +func (e *AppProxyStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10869,6 +11146,20 @@ func (e AppProxyStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppProxyStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppProxyStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // App Sync Policies type AppSyncPolicies string @@ -10899,7 +11190,7 @@ func (e AppSyncPolicies) String() string { return string(e) } -func (e *AppSyncPolicies) UnmarshalGQL(v interface{}) error { +func (e *AppSyncPolicies) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10916,6 +11207,20 @@ func (e AppSyncPolicies) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *AppSyncPolicies) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AppSyncPolicies) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Application Groups Sorting field type ApplicationGroupsSortingField string @@ -10943,7 +11248,7 @@ func (e ApplicationGroupsSortingField) String() string { return string(e) } -func (e *ApplicationGroupsSortingField) UnmarshalGQL(v interface{}) error { +func (e *ApplicationGroupsSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -10960,6 +11265,20 @@ func (e ApplicationGroupsSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ApplicationGroupsSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ApplicationGroupsSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Application Tree Sorting field type ApplicationTreeSortingField string @@ -10999,7 +11318,7 @@ func (e ApplicationTreeSortingField) String() string { return string(e) } -func (e *ApplicationTreeSortingField) UnmarshalGQL(v interface{}) error { +func (e *ApplicationTreeSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11016,6 +11335,20 @@ func (e ApplicationTreeSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ApplicationTreeSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ApplicationTreeSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ArgoCD State type ArgoCdState string @@ -11049,7 +11382,7 @@ func (e ArgoCdState) String() string { return string(e) } -func (e *ArgoCdState) UnmarshalGQL(v interface{}) error { +func (e *ArgoCdState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11066,6 +11399,78 @@ func (e ArgoCdState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ArgoCdState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ArgoCdState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Assignment type +type AssignmentType string + +const ( + // Linked applications + AssignmentTypeAnnotation AssignmentType = "ANNOTATION" + // Manually attached + AssignmentTypeManually AssignmentType = "MANUALLY" +) + +var AllAssignmentType = []AssignmentType{ + AssignmentTypeAnnotation, + AssignmentTypeManually, +} + +func (e AssignmentType) IsValid() bool { + switch e { + case AssignmentTypeAnnotation, AssignmentTypeManually: + return true + } + return false +} + +func (e AssignmentType) String() string { + return string(e) +} + +func (e *AssignmentType) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AssignmentType(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AssignmentType", str) + } + return nil +} + +func (e AssignmentType) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *AssignmentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AssignmentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ConnectionState contains information about remote resource connection state, currently used for clusters and repositories type ClusterConnectionStatus string @@ -11096,7 +11501,7 @@ func (e ClusterConnectionStatus) String() string { return string(e) } -func (e *ClusterConnectionStatus) UnmarshalGQL(v interface{}) error { +func (e *ClusterConnectionStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11113,6 +11518,20 @@ func (e ClusterConnectionStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ClusterConnectionStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ClusterConnectionStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Cluster connection status input type ClusterConnectionStatusInput string @@ -11143,7 +11562,7 @@ func (e ClusterConnectionStatusInput) String() string { return string(e) } -func (e *ClusterConnectionStatusInput) UnmarshalGQL(v interface{}) error { +func (e *ClusterConnectionStatusInput) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11160,6 +11579,20 @@ func (e ClusterConnectionStatusInput) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ClusterConnectionStatusInput) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ClusterConnectionStatusInput) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Coupon Duration type CouponDuration string @@ -11187,7 +11620,7 @@ func (e CouponDuration) String() string { return string(e) } -func (e *CouponDuration) UnmarshalGQL(v interface{}) error { +func (e *CouponDuration) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11204,6 +11637,20 @@ func (e CouponDuration) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *CouponDuration) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e CouponDuration) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Deployment Statistics Status type DeploymentStatisticsStatus string @@ -11235,7 +11682,7 @@ func (e DeploymentStatisticsStatus) String() string { return string(e) } -func (e *DeploymentStatisticsStatus) UnmarshalGQL(v interface{}) error { +func (e *DeploymentStatisticsStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11252,6 +11699,20 @@ func (e DeploymentStatisticsStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *DeploymentStatisticsStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e DeploymentStatisticsStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Duration Name type DurationName string @@ -11285,7 +11746,7 @@ func (e DurationName) String() string { return string(e) } -func (e *DurationName) UnmarshalGQL(v interface{}) error { +func (e *DurationName) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11302,6 +11763,20 @@ func (e DurationName) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *DurationName) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e DurationName) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Kind of environment type EnvironmentKind string @@ -11327,7 +11802,7 @@ func (e EnvironmentKind) String() string { return string(e) } -func (e *EnvironmentKind) UnmarshalGQL(v interface{}) error { +func (e *EnvironmentKind) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11344,6 +11819,20 @@ func (e EnvironmentKind) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *EnvironmentKind) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e EnvironmentKind) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // "Relative position of the moved environment in relation to the target environment" type EnvironmentRelativePos string @@ -11369,7 +11858,7 @@ func (e EnvironmentRelativePos) String() string { return string(e) } -func (e *EnvironmentRelativePos) UnmarshalGQL(v interface{}) error { +func (e *EnvironmentRelativePos) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11386,6 +11875,20 @@ func (e EnvironmentRelativePos) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *EnvironmentRelativePos) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e EnvironmentRelativePos) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Error severity levels type ErrorLevels string @@ -11413,7 +11916,7 @@ func (e ErrorLevels) String() string { return string(e) } -func (e *ErrorLevels) UnmarshalGQL(v interface{}) error { +func (e *ErrorLevels) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11430,6 +11933,20 @@ func (e ErrorLevels) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ErrorLevels) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ErrorLevels) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Extended Workflow Phases type ExtendedWorkflowPhases string @@ -11473,7 +11990,7 @@ func (e ExtendedWorkflowPhases) String() string { return string(e) } -func (e *ExtendedWorkflowPhases) UnmarshalGQL(v interface{}) error { +func (e *ExtendedWorkflowPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11490,6 +12007,20 @@ func (e ExtendedWorkflowPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ExtendedWorkflowPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ExtendedWorkflowPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // GitAuthMode type GitAuthMode string @@ -11520,7 +12051,7 @@ func (e GitAuthMode) String() string { return string(e) } -func (e *GitAuthMode) UnmarshalGQL(v interface{}) error { +func (e *GitAuthMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11537,6 +12068,20 @@ func (e GitAuthMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitAuthMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitAuthMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Git providers type GitProviders string @@ -11573,7 +12118,7 @@ func (e GitProviders) String() string { return string(e) } -func (e *GitProviders) UnmarshalGQL(v interface{}) error { +func (e *GitProviders) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11590,6 +12135,20 @@ func (e GitProviders) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitProviders) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitProviders) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of push event type GitPushPayloadDataTypes string @@ -11615,7 +12174,7 @@ func (e GitPushPayloadDataTypes) String() string { return string(e) } -func (e *GitPushPayloadDataTypes) UnmarshalGQL(v interface{}) error { +func (e *GitPushPayloadDataTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11632,6 +12191,20 @@ func (e GitPushPayloadDataTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *GitPushPayloadDataTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitPushPayloadDataTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Gitops Releases Sorting field type GitopsReleasesSortingField string @@ -11665,7 +12238,7 @@ func (e GitopsReleasesSortingField) String() string { return string(e) } -func (e *GitopsReleasesSortingField) UnmarshalGQL(v interface{}) error { +func (e *GitopsReleasesSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11682,8 +12255,22 @@ func (e GitopsReleasesSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } -// Health Error codes -type HealthErrorCodes string +func (e *GitopsReleasesSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e GitopsReleasesSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Health Error codes +type HealthErrorCodes string const ( // The resource has a reference to a non-existing resource @@ -11721,7 +12308,7 @@ func (e HealthErrorCodes) String() string { return string(e) } -func (e *HealthErrorCodes) UnmarshalGQL(v interface{}) error { +func (e *HealthErrorCodes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11738,6 +12325,20 @@ func (e HealthErrorCodes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *HealthErrorCodes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e HealthErrorCodes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Health Status type HealthStatus string @@ -11780,7 +12381,7 @@ func (e HealthStatus) String() string { return string(e) } -func (e *HealthStatus) UnmarshalGQL(v interface{}) error { +func (e *HealthStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11797,6 +12398,20 @@ func (e HealthStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *HealthStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e HealthStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image pull policy // Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated type ImagePullPolicy string @@ -11825,7 +12440,7 @@ func (e ImagePullPolicy) String() string { return string(e) } -func (e *ImagePullPolicy) UnmarshalGQL(v interface{}) error { +func (e *ImagePullPolicy) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11842,6 +12457,20 @@ func (e ImagePullPolicy) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImagePullPolicy) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImagePullPolicy) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image registry domain types type ImageRegistryType string @@ -11884,7 +12513,7 @@ func (e ImageRegistryType) String() string { return string(e) } -func (e *ImageRegistryType) UnmarshalGQL(v interface{}) error { +func (e *ImageRegistryType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11901,6 +12530,20 @@ func (e ImageRegistryType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRegistryType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRegistryType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image Repo Tag Sorting field type ImageRepoTagSortingField string @@ -11925,7 +12568,7 @@ func (e ImageRepoTagSortingField) String() string { return string(e) } -func (e *ImageRepoTagSortingField) UnmarshalGQL(v interface{}) error { +func (e *ImageRepoTagSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11942,6 +12585,20 @@ func (e ImageRepoTagSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRepoTagSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRepoTagSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Image Repository Sorting field type ImageRepositorySortingField string @@ -11969,7 +12626,7 @@ func (e ImageRepositorySortingField) String() string { return string(e) } -func (e *ImageRepositorySortingField) UnmarshalGQL(v interface{}) error { +func (e *ImageRepositorySortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -11986,6 +12643,20 @@ func (e ImageRepositorySortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ImageRepositorySortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ImageRepositorySortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Installation Status type InstallationStatus string @@ -12016,7 +12687,7 @@ func (e InstallationStatus) String() string { return string(e) } -func (e *InstallationStatus) UnmarshalGQL(v interface{}) error { +func (e *InstallationStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12033,6 +12704,20 @@ func (e InstallationStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InstallationStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InstallationStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Installation type type InstallationType string @@ -12060,7 +12745,7 @@ func (e InstallationType) String() string { return string(e) } -func (e *InstallationType) UnmarshalGQL(v interface{}) error { +func (e *InstallationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12077,6 +12762,20 @@ func (e InstallationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InstallationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InstallationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Integration Consumer type IntegrationConsumer string @@ -12101,7 +12800,7 @@ func (e IntegrationConsumer) String() string { return string(e) } -func (e *IntegrationConsumer) UnmarshalGQL(v interface{}) error { +func (e *IntegrationConsumer) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12118,6 +12817,20 @@ func (e IntegrationConsumer) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *IntegrationConsumer) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e IntegrationConsumer) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // InvoiceStatus type InvoiceStatus string @@ -12149,7 +12862,7 @@ func (e InvoiceStatus) String() string { return string(e) } -func (e *InvoiceStatus) UnmarshalGQL(v interface{}) error { +func (e *InvoiceStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12166,6 +12879,20 @@ func (e InvoiceStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *InvoiceStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e InvoiceStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // MatchExpressionOperator type MatchExpressionOperator string @@ -12199,7 +12926,7 @@ func (e MatchExpressionOperator) String() string { return string(e) } -func (e *MatchExpressionOperator) UnmarshalGQL(v interface{}) error { +func (e *MatchExpressionOperator) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12216,6 +12943,20 @@ func (e MatchExpressionOperator) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *MatchExpressionOperator) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e MatchExpressionOperator) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Not k8s entity kind type NotK8sEntityKind string @@ -12243,7 +12984,7 @@ func (e NotK8sEntityKind) String() string { return string(e) } -func (e *NotK8sEntityKind) UnmarshalGQL(v interface{}) error { +func (e *NotK8sEntityKind) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12260,6 +13001,20 @@ func (e NotK8sEntityKind) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotK8sEntityKind) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotK8sEntityKind) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification action type type NotificationActionType string @@ -12290,7 +13045,7 @@ func (e NotificationActionType) String() string { return string(e) } -func (e *NotificationActionType) UnmarshalGQL(v interface{}) error { +func (e *NotificationActionType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12307,6 +13062,20 @@ func (e NotificationActionType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationActionType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationActionType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification State type NotificationState string @@ -12337,7 +13106,7 @@ func (e NotificationState) String() string { return string(e) } -func (e *NotificationState) UnmarshalGQL(v interface{}) error { +func (e *NotificationState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12354,6 +13123,20 @@ func (e NotificationState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Notification Type type NotificationType string @@ -12384,7 +13167,7 @@ func (e NotificationType) String() string { return string(e) } -func (e *NotificationType) UnmarshalGQL(v interface{}) error { +func (e *NotificationType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12401,6 +13184,20 @@ func (e NotificationType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *NotificationType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e NotificationType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of event payload type PayloadDataTypes string @@ -12428,7 +13225,7 @@ func (e PayloadDataTypes) String() string { return string(e) } -func (e *PayloadDataTypes) UnmarshalGQL(v interface{}) error { +func (e *PayloadDataTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12445,6 +13242,20 @@ func (e PayloadDataTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PayloadDataTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PayloadDataTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Payment Intervals type PaymentInterval string @@ -12470,7 +13281,7 @@ func (e PaymentInterval) String() string { return string(e) } -func (e *PaymentInterval) UnmarshalGQL(v interface{}) error { +func (e *PaymentInterval) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12487,6 +13298,20 @@ func (e PaymentInterval) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PaymentInterval) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PaymentInterval) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Payments Plans type PaymentPlanID string @@ -12512,7 +13337,7 @@ func (e PaymentPlanID) String() string { return string(e) } -func (e *PaymentPlanID) UnmarshalGQL(v interface{}) error { +func (e *PaymentPlanID) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12529,6 +13354,20 @@ func (e PaymentPlanID) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PaymentPlanID) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PaymentPlanID) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Payment Type type PaymentType string @@ -12560,7 +13399,7 @@ func (e PaymentType) String() string { return string(e) } -func (e *PaymentType) UnmarshalGQL(v interface{}) error { +func (e *PaymentType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12577,6 +13416,20 @@ func (e PaymentType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PaymentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PaymentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Pipeline statistics sort by duration type type PipelineClassicStatisticDurationMetricType string @@ -12604,7 +13457,7 @@ func (e PipelineClassicStatisticDurationMetricType) String() string { return string(e) } -func (e *PipelineClassicStatisticDurationMetricType) UnmarshalGQL(v interface{}) error { +func (e *PipelineClassicStatisticDurationMetricType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12621,6 +13474,20 @@ func (e PipelineClassicStatisticDurationMetricType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PipelineClassicStatisticDurationMetricType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PipelineClassicStatisticDurationMetricType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Pipeline statistics sort by measure type PipelineStatisticsSortByMeasure string @@ -12646,7 +13513,7 @@ func (e PipelineStatisticsSortByMeasure) String() string { return string(e) } -func (e *PipelineStatisticsSortByMeasure) UnmarshalGQL(v interface{}) error { +func (e *PipelineStatisticsSortByMeasure) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12663,6 +13530,20 @@ func (e PipelineStatisticsSortByMeasure) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PipelineStatisticsSortByMeasure) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PipelineStatisticsSortByMeasure) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // PlanTypes type PlanTypes string @@ -12688,7 +13569,7 @@ func (e PlanTypes) String() string { return string(e) } -func (e *PlanTypes) UnmarshalGQL(v interface{}) error { +func (e *PlanTypes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12705,6 +13586,20 @@ func (e PlanTypes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PlanTypes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PlanTypes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Components Sorting field type ProductComponentSortingField string @@ -12732,7 +13627,7 @@ func (e ProductComponentSortingField) String() string { return string(e) } -func (e *ProductComponentSortingField) UnmarshalGQL(v interface{}) error { +func (e *ProductComponentSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12749,6 +13644,20 @@ func (e ProductComponentSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductComponentSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductComponentSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Component types type ProductComponentType string @@ -12776,7 +13685,7 @@ func (e ProductComponentType) String() string { return string(e) } -func (e *ProductComponentType) UnmarshalGQL(v interface{}) error { +func (e *ProductComponentType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12793,6 +13702,20 @@ func (e ProductComponentType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductComponentType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductComponentType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ProductConcurrency type ProductConcurrency string @@ -12820,7 +13743,7 @@ func (e ProductConcurrency) String() string { return string(e) } -func (e *ProductConcurrency) UnmarshalGQL(v interface{}) error { +func (e *ProductConcurrency) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12837,6 +13760,20 @@ func (e ProductConcurrency) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductConcurrency) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductConcurrency) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ProductGitTrigger type ProductGitTrigger string @@ -12864,7 +13801,7 @@ func (e ProductGitTrigger) String() string { return string(e) } -func (e *ProductGitTrigger) UnmarshalGQL(v interface{}) error { +func (e *ProductGitTrigger) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12881,13 +13818,27 @@ func (e ProductGitTrigger) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductGitTrigger) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductGitTrigger) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Release Public Status type ProductReleasePublicStatus string const ( // Release status on release step failed ProductReleasePublicStatusFailed ProductReleasePublicStatus = "FAILED" - // Release is in queue to be started + // Release is in queue to be started or pending execution ProductReleasePublicStatusQueued ProductReleasePublicStatus = "QUEUED" // Release status on release step is running ProductReleasePublicStatusRunning ProductReleasePublicStatus = "RUNNING" @@ -12923,7 +13874,7 @@ func (e ProductReleasePublicStatus) String() string { return string(e) } -func (e *ProductReleasePublicStatus) UnmarshalGQL(v interface{}) error { +func (e *ProductReleasePublicStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12940,10 +13891,26 @@ func (e ProductReleasePublicStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductReleasePublicStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductReleasePublicStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Sorting field type ProductSortingField string const ( + // By id + ProductSortingFieldID ProductSortingField = "id" // By name ProductSortingFieldName ProductSortingField = "name" // By updated at @@ -12951,13 +13918,14 @@ const ( ) var AllProductSortingField = []ProductSortingField{ + ProductSortingFieldID, ProductSortingFieldName, ProductSortingFieldUpdatedAt, } func (e ProductSortingField) IsValid() bool { switch e { - case ProductSortingFieldName, ProductSortingFieldUpdatedAt: + case ProductSortingFieldID, ProductSortingFieldName, ProductSortingFieldUpdatedAt: return true } return false @@ -12967,7 +13935,7 @@ func (e ProductSortingField) String() string { return string(e) } -func (e *ProductSortingField) UnmarshalGQL(v interface{}) error { +func (e *ProductSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -12984,6 +13952,20 @@ func (e ProductSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ProductSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ProductSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Promotion policy possible actions type PromotionPolicyAction string @@ -13014,7 +13996,7 @@ func (e PromotionPolicyAction) String() string { return string(e) } -func (e *PromotionPolicyAction) UnmarshalGQL(v interface{}) error { +func (e *PromotionPolicyAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13031,6 +14013,20 @@ func (e PromotionPolicyAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PromotionPolicyAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PromotionPolicyAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Product Policy sorting field type PromotionPolicySortingField string @@ -13061,7 +14057,7 @@ func (e PromotionPolicySortingField) String() string { return string(e) } -func (e *PromotionPolicySortingField) UnmarshalGQL(v interface{}) error { +func (e *PromotionPolicySortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13078,6 +14074,20 @@ func (e PromotionPolicySortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PromotionPolicySortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PromotionPolicySortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Pull request state type PullRequestState string @@ -13105,7 +14115,7 @@ func (e PullRequestState) String() string { return string(e) } -func (e *PullRequestState) UnmarshalGQL(v interface{}) error { +func (e *PullRequestState) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13122,6 +14132,76 @@ func (e PullRequestState) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *PullRequestState) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e PullRequestState) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Release channel type +type ReleaseChannel string + +const ( + ReleaseChannelLatest ReleaseChannel = "latest" + ReleaseChannelStable ReleaseChannel = "stable" +) + +var AllReleaseChannel = []ReleaseChannel{ + ReleaseChannelLatest, + ReleaseChannelStable, +} + +func (e ReleaseChannel) IsValid() bool { + switch e { + case ReleaseChannelLatest, ReleaseChannelStable: + return true + } + return false +} + +func (e ReleaseChannel) String() string { + return string(e) +} + +func (e *ReleaseChannel) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = ReleaseChannel(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid ReleaseChannel", str) + } + return nil +} + +func (e ReleaseChannel) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *ReleaseChannel) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ReleaseChannel) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Release Rollout Disabled Reasons type ReleaseRolloutDisabledReasons string @@ -13146,7 +14226,7 @@ func (e ReleaseRolloutDisabledReasons) String() string { return string(e) } -func (e *ReleaseRolloutDisabledReasons) UnmarshalGQL(v interface{}) error { +func (e *ReleaseRolloutDisabledReasons) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13163,6 +14243,20 @@ func (e ReleaseRolloutDisabledReasons) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ReleaseRolloutDisabledReasons) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ReleaseRolloutDisabledReasons) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Resource action type ResourceAction string @@ -13193,7 +14287,7 @@ func (e ResourceAction) String() string { return string(e) } -func (e *ResourceAction) UnmarshalGQL(v interface{}) error { +func (e *ResourceAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13210,6 +14304,20 @@ func (e ResourceAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ResourceAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ResourceAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ResourceOperation type ResourceOperation string @@ -13240,7 +14348,7 @@ func (e ResourceOperation) String() string { return string(e) } -func (e *ResourceOperation) UnmarshalGQL(v interface{}) error { +func (e *ResourceOperation) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13257,6 +14365,20 @@ func (e ResourceOperation) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ResourceOperation) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ResourceOperation) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Phases type RolloutPhases string @@ -13296,7 +14418,7 @@ func (e RolloutPhases) String() string { return string(e) } -func (e *RolloutPhases) UnmarshalGQL(v interface{}) error { +func (e *RolloutPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13313,6 +14435,20 @@ func (e RolloutPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Step Status type RolloutStepStatus string @@ -13355,7 +14491,7 @@ func (e RolloutStepStatus) String() string { return string(e) } -func (e *RolloutStepStatus) UnmarshalGQL(v interface{}) error { +func (e *RolloutStepStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13372,6 +14508,20 @@ func (e RolloutStepStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutStepStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutStepStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Rollout Strategy Names type RolloutStrategyNames string @@ -13399,7 +14549,7 @@ func (e RolloutStrategyNames) String() string { return string(e) } -func (e *RolloutStrategyNames) UnmarshalGQL(v interface{}) error { +func (e *RolloutStrategyNames) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13416,6 +14566,20 @@ func (e RolloutStrategyNames) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RolloutStrategyNames) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RolloutStrategyNames) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // RuntimeOperationAction type RuntimeOperationAction string @@ -13443,7 +14607,7 @@ func (e RuntimeOperationAction) String() string { return string(e) } -func (e *RuntimeOperationAction) UnmarshalGQL(v interface{}) error { +func (e *RuntimeOperationAction) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13460,6 +14624,20 @@ func (e RuntimeOperationAction) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RuntimeOperationAction) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RuntimeOperationAction) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Runtime Sync Mode type RuntimeSyncMode string @@ -13490,7 +14668,7 @@ func (e RuntimeSyncMode) String() string { return string(e) } -func (e *RuntimeSyncMode) UnmarshalGQL(v interface{}) error { +func (e *RuntimeSyncMode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13507,6 +14685,20 @@ func (e RuntimeSyncMode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *RuntimeSyncMode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e RuntimeSyncMode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Integration Entity Type type SecretType string @@ -13534,7 +14726,7 @@ func (e SecretType) String() string { return string(e) } -func (e *SecretType) UnmarshalGQL(v interface{}) error { +func (e *SecretType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13551,6 +14743,20 @@ func (e SecretType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SecretType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SecretType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Service Sorting field type ServiceSortingField string @@ -13578,7 +14784,7 @@ func (e ServiceSortingField) String() string { return string(e) } -func (e *ServiceSortingField) UnmarshalGQL(v interface{}) error { +func (e *ServiceSortingField) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13595,6 +14801,20 @@ func (e ServiceSortingField) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ServiceSortingField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ServiceSortingField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ServiceType type ServiceType string @@ -13624,7 +14844,7 @@ func (e ServiceType) String() string { return string(e) } -func (e *ServiceType) UnmarshalGQL(v interface{}) error { +func (e *ServiceType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13641,6 +14861,20 @@ func (e ServiceType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ServiceType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ServiceType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sorting order type SortingOrder string @@ -13668,7 +14902,7 @@ func (e SortingOrder) String() string { return string(e) } -func (e *SortingOrder) UnmarshalGQL(v interface{}) error { +func (e *SortingOrder) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13685,6 +14919,20 @@ func (e SortingOrder) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SortingOrder) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SortingOrder) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Granularity options for statistics type StatisticsGranularity string @@ -13714,7 +14962,7 @@ func (e StatisticsGranularity) String() string { return string(e) } -func (e *StatisticsGranularity) UnmarshalGQL(v interface{}) error { +func (e *StatisticsGranularity) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13731,6 +14979,20 @@ func (e StatisticsGranularity) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *StatisticsGranularity) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e StatisticsGranularity) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Support Plan type SupportPlan string @@ -13760,7 +15022,7 @@ func (e SupportPlan) String() string { return string(e) } -func (e *SupportPlan) UnmarshalGQL(v interface{}) error { +func (e *SupportPlan) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13777,6 +15039,20 @@ func (e SupportPlan) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SupportPlan) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SupportPlan) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Supported CI Tools type SupportedCITools string @@ -13807,7 +15083,7 @@ func (e SupportedCITools) String() string { return string(e) } -func (e *SupportedCITools) UnmarshalGQL(v interface{}) error { +func (e *SupportedCITools) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13824,6 +15100,20 @@ func (e SupportedCITools) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SupportedCITools) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SupportedCITools) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncResourceAction type SyncActionOnResource string @@ -13866,7 +15156,7 @@ func (e SyncActionOnResource) String() string { return string(e) } -func (e *SyncActionOnResource) UnmarshalGQL(v interface{}) error { +func (e *SyncActionOnResource) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13883,6 +15173,20 @@ func (e SyncActionOnResource) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncActionOnResource) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncActionOnResource) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sync Error codes type SyncErrorCodes string @@ -13916,7 +15220,7 @@ func (e SyncErrorCodes) String() string { return string(e) } -func (e *SyncErrorCodes) UnmarshalGQL(v interface{}) error { +func (e *SyncErrorCodes) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13933,6 +15237,20 @@ func (e SyncErrorCodes) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncErrorCodes) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncErrorCodes) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncHookType type SyncHookType string @@ -13969,7 +15287,7 @@ func (e SyncHookType) String() string { return string(e) } -func (e *SyncHookType) UnmarshalGQL(v interface{}) error { +func (e *SyncHookType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -13986,6 +15304,20 @@ func (e SyncHookType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncHookType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncHookType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncOperationPhase type SyncOperationPhase string @@ -14025,7 +15357,7 @@ func (e SyncOperationPhase) String() string { return string(e) } -func (e *SyncOperationPhase) UnmarshalGQL(v interface{}) error { +func (e *SyncOperationPhase) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14042,6 +15374,20 @@ func (e SyncOperationPhase) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncOperationPhase) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncOperationPhase) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncPhase type SyncPhase string @@ -14075,7 +15421,7 @@ func (e SyncPhase) String() string { return string(e) } -func (e *SyncPhase) UnmarshalGQL(v interface{}) error { +func (e *SyncPhase) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14092,6 +15438,20 @@ func (e SyncPhase) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncPhase) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncPhase) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // SyncResultCode type SyncResultCode string @@ -14128,7 +15488,7 @@ func (e SyncResultCode) String() string { return string(e) } -func (e *SyncResultCode) UnmarshalGQL(v interface{}) error { +func (e *SyncResultCode) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14145,6 +15505,20 @@ func (e SyncResultCode) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncResultCode) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncResultCode) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Sync status type SyncStatus string @@ -14178,7 +15552,7 @@ func (e SyncStatus) String() string { return string(e) } -func (e *SyncStatus) UnmarshalGQL(v interface{}) error { +func (e *SyncStatus) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14195,6 +15569,20 @@ func (e SyncStatus) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SyncStatus) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SyncStatus) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of system type type SystemType string @@ -14224,7 +15612,7 @@ func (e SystemType) String() string { return string(e) } -func (e *SystemType) UnmarshalGQL(v interface{}) error { +func (e *SystemType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14241,6 +15629,20 @@ func (e SystemType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *SystemType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e SystemType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Team sources type TeamSource string @@ -14286,7 +15688,7 @@ func (e TeamSource) String() string { return string(e) } -func (e *TeamSource) UnmarshalGQL(v interface{}) error { +func (e *TeamSource) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14303,6 +15705,20 @@ func (e TeamSource) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *TeamSource) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e TeamSource) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Types of team type TeamType string @@ -14333,7 +15749,7 @@ func (e TeamType) String() string { return string(e) } -func (e *TeamType) UnmarshalGQL(v interface{}) error { +func (e *TeamType) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14350,6 +15766,20 @@ func (e TeamType) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *TeamType) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e TeamType) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // ToggleSystemType Input type ToggleSystemTypeInput string @@ -14377,7 +15807,7 @@ func (e ToggleSystemTypeInput) String() string { return string(e) } -func (e *ToggleSystemTypeInput) UnmarshalGQL(v interface{}) error { +func (e *ToggleSystemTypeInput) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14394,6 +15824,20 @@ func (e ToggleSystemTypeInput) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *ToggleSystemTypeInput) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e ToggleSystemTypeInput) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Workflow nodes WorkflowPhases type WorkflowNodePhases string @@ -14436,7 +15880,7 @@ func (e WorkflowNodePhases) String() string { return string(e) } -func (e *WorkflowNodePhases) UnmarshalGQL(v interface{}) error { +func (e *WorkflowNodePhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14453,6 +15897,20 @@ func (e WorkflowNodePhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *WorkflowNodePhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowNodePhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Name of the flows that can be the workflow origins type WorkflowOrigins string @@ -14492,7 +15950,7 @@ func (e WorkflowOrigins) String() string { return string(e) } -func (e *WorkflowOrigins) UnmarshalGQL(v interface{}) error { +func (e *WorkflowOrigins) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14509,6 +15967,20 @@ func (e WorkflowOrigins) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } +func (e *WorkflowOrigins) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowOrigins) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Workflow WorkflowPhases type WorkflowPhases string @@ -14548,7 +16020,7 @@ func (e WorkflowPhases) String() string { return string(e) } -func (e *WorkflowPhases) UnmarshalGQL(v interface{}) error { +func (e *WorkflowPhases) UnmarshalGQL(v any) error { str, ok := v.(string) if !ok { return fmt.Errorf("enums must be strings") @@ -14564,3 +16036,17 @@ func (e *WorkflowPhases) UnmarshalGQL(v interface{}) error { func (e WorkflowPhases) MarshalGQL(w io.Writer) { fmt.Fprint(w, strconv.Quote(e.String())) } + +func (e *WorkflowPhases) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e WorkflowPhases) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} diff --git a/pkg/model/promotion-orchestrator/models_gen.go b/pkg/model/promotion-orchestrator/models_gen.go index 4cea720..6c16892 100644 --- a/pkg/model/promotion-orchestrator/models_gen.go +++ b/pkg/model/promotion-orchestrator/models_gen.go @@ -7397,44 +7397,33 @@ type PromotionTaskCommitStatus struct { } // Promote app with pr status -// most of the fields are optional because when we create a pr -// at the moment we just save the url. only later we fetch more info -// see https://codefresh-io.atlassian.net/browse/CR-32102 type PromotionTaskPullRequestStatus struct { - // Promote app with pr phase - Phase PromoteAppWithPRPhase `json:"phase"` - // Promote app with pr pr url - PrURL *string `json:"prUrl,omitempty"` - // Promote app with pr pr title - PrTitle *string `json:"prTitle,omitempty"` - // Promote app with pr pr description - PrDescription *string `json:"prDescription,omitempty"` // Promote app with pr app id AppID *ApplicationID `json:"appId"` // Pull request repo name - Repo *string `json:"repo,omitempty"` + Repo string `json:"repo"` // Pull request id - ID *int `json:"id,omitempty"` + ID int `json:"id"` // Pull request url URL string `json:"url"` // Pull request title - Title *string `json:"title,omitempty"` + Title string `json:"title"` // Pull request description Description *string `json:"description,omitempty"` // Pull request author - Author *string `json:"author,omitempty"` + Author string `json:"author"` // Pull request author avatar url - AvatarURL *string `json:"avatarUrl,omitempty"` + AvatarURL string `json:"avatarUrl"` // Pull request base branch - BaseBranch *string `json:"baseBranch,omitempty"` + BaseBranch string `json:"baseBranch"` // Pull request head branch - HeadBranch *string `json:"headBranch,omitempty"` + HeadBranch string `json:"headBranch"` // Pull request created at - CreatedAt *string `json:"createdAt,omitempty"` + CreatedAt string `json:"createdAt"` // Pull request state - State *PullRequestState `json:"state,omitempty"` + State PullRequestState `json:"state"` // Pull request is merged - IsMerged *bool `json:"isMerged,omitempty"` + IsMerged bool `json:"isMerged"` // Commit sha from the pull request merge MergeCommitSha *string `json:"mergeCommitSHA,omitempty"` } @@ -7521,8 +7510,12 @@ type PullRequest struct { Author string `json:"author"` // Pull request author avatar url AvatarURL string `json:"avatarUrl"` + // Pull request base branch (the branch you want to merge changes into) + BaseBranch string `json:"baseBranch"` + // Pull request head branch (the branch where your changes are implemented) + HeadBranch string `json:"headBranch"` // Pull request created at - CreatedAt string `json:"createdAt"` + CreatedAt time.Time `json:"createdAt"` // Pull request state State PullRequestState `json:"state"` // Pull request is merged From 7ac1b2f3425d89f8a6747355c0299e921f6d3325 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Thu, 13 Nov 2025 15:14:40 +0200 Subject: [PATCH 2/3] use time.Time for createdAt field --- pkg/model/app-proxy/models_gen.go | 2 +- pkg/model/platform/models_gen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/model/app-proxy/models_gen.go b/pkg/model/app-proxy/models_gen.go index 278b8cb..9f8d530 100644 --- a/pkg/model/app-proxy/models_gen.go +++ b/pkg/model/app-proxy/models_gen.go @@ -8032,7 +8032,7 @@ type PullRequest struct { // Pull request head branch (the branch where your changes are implemented) HeadBranch string `json:"headBranch"` // Pull request created at - CreatedAt string `json:"createdAt"` + CreatedAt time.Time `json:"createdAt"` // Pull request state State PullRequestState `json:"state"` // Pull request is merged diff --git a/pkg/model/platform/models_gen.go b/pkg/model/platform/models_gen.go index 43457bf..ed6adb9 100644 --- a/pkg/model/platform/models_gen.go +++ b/pkg/model/platform/models_gen.go @@ -7842,7 +7842,7 @@ type PullRequest struct { // Pull request head branch (the branch where your changes are implemented) HeadBranch string `json:"headBranch"` // Pull request created at - CreatedAt string `json:"createdAt"` + CreatedAt time.Time `json:"createdAt"` // Pull request state State PullRequestState `json:"state"` // Pull request is merged From 8de0c6697e82fbd5e9aad242c94ea6c2607b3b60 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Thu, 13 Nov 2025 17:08:41 +0200 Subject: [PATCH 3/3] chore: update version to v1.4.15 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 57ba542..1a3fea5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v1.4.14 +VERSION=v1.4.15 ifndef GOBIN ifndef GOPATH