From 8a2364d95416dedb5847ea7fdc3db5c5c2c6eba0 Mon Sep 17 00:00:00 2001 From: Andrew Still Date: Wed, 20 May 2026 11:15:46 -0400 Subject: [PATCH] run forgotton gofumpt --- campaign.go | 2 +- input.go | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/campaign.go b/campaign.go index d85e8f94..c2ff1e63 100644 --- a/campaign.go +++ b/campaign.go @@ -99,7 +99,7 @@ func (client *Client) UnscheduleCampaign(id ID) (*Campaign, error) { Payload CampaignUnschedulePayload `graphql:"campaignUnschedule(input: $input)"` } v := PayloadVariables{ - "input": CampaignUnscheduleInput{Id: id}, + "input": CampaignUnscheduleInput{Id: id}, } err := client.Mutate(&m, v, WithName("CampaignUnschedule")) return &m.Payload.Campaign, HandleErrors(err, m.Payload.Errors) diff --git a/input.go b/input.go index 543b89be..ce4c69fc 100644 --- a/input.go +++ b/input.go @@ -95,37 +95,37 @@ type CategoryUpdateInput struct { // CampaignCreateInput Specifies the input fields used to create a campaign type CampaignCreateInput struct { - Name string `json:"name" yaml:"name" example:"example_value"` // The name of the campaign (Required) + Name string `json:"name" yaml:"name" example:"example_value"` // The name of the campaign (Required) OwnerId ID `json:"ownerId" yaml:"ownerId" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the team that owns the campaign (Required) FilterId *Nullable[ID] `json:"filterId,omitempty" yaml:"filterId,omitempty" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the filter applied to the campaign (Optional) - ProjectBrief *string `json:"projectBrief,omitempty" yaml:"projectBrief,omitempty" example:"example_value"` // The project brief of the campaign in Markdown (Optional) + ProjectBrief *string `json:"projectBrief,omitempty" yaml:"projectBrief,omitempty" example:"example_value"` // The project brief of the campaign in Markdown (Optional) } // ChecksCopyToCampaignInput Specifies the input fields for copying checks to a campaign type ChecksCopyToCampaignInput struct { CampaignId ID `json:"campaignId" yaml:"campaignId" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the campaign to copy checks to (Required) - CheckIds []ID `json:"checkIds" yaml:"checkIds"` // The ids of the checks to copy (Required) + CheckIds []ID `json:"checkIds" yaml:"checkIds"` // The ids of the checks to copy (Required) } // CampaignScheduleUpdateInput Specifies the input fields used to schedule a campaign type CampaignScheduleUpdateInput struct { - Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the campaign to schedule (Required) - StartDate iso8601.Time `json:"startDate" yaml:"startDate" example:"2025-01-01T00:00:00Z"` // The start date of the campaign (Required) - TargetDate iso8601.Time `json:"targetDate" yaml:"targetDate" example:"2025-06-01T00:00:00Z"` // The target end date of the campaign (Required) -} - -// CampaignUnscheduleInput Specifies the input fields used to unschedule a campaign -type CampaignUnscheduleInput struct { - Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` -} - + Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the campaign to schedule (Required) + StartDate iso8601.Time `json:"startDate" yaml:"startDate" example:"2025-01-01T00:00:00Z"` // The start date of the campaign (Required) + TargetDate iso8601.Time `json:"targetDate" yaml:"targetDate" example:"2025-06-01T00:00:00Z"` // The target end date of the campaign (Required) +} + +// CampaignUnscheduleInput Specifies the input fields used to unschedule a campaign +type CampaignUnscheduleInput struct { + Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` +} + // CampaignUpdateInput Specifies the input fields used to update a campaign type CampaignUpdateInput struct { - Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the campaign to be updated (Required) - Name *string `json:"name,omitempty" yaml:"name,omitempty" example:"example_value"` // The name of the campaign (Optional) - OwnerId *Nullable[ID] `json:"ownerId,omitempty" yaml:"ownerId,omitempty" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the team that owns the campaign (Optional) - FilterId *Nullable[ID] `json:"filterId,omitempty" yaml:"filterId,omitempty" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the filter applied to the campaign (Optional) - ProjectBrief *string `json:"projectBrief,omitempty" yaml:"projectBrief,omitempty" example:"example_value"` // The project brief of the campaign in Markdown (Optional) + Id ID `json:"id" yaml:"id" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the campaign to be updated (Required) + Name *string `json:"name,omitempty" yaml:"name,omitempty" example:"example_value"` // The name of the campaign (Optional) + OwnerId *Nullable[ID] `json:"ownerId,omitempty" yaml:"ownerId,omitempty" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the team that owns the campaign (Optional) + FilterId *Nullable[ID] `json:"filterId,omitempty" yaml:"filterId,omitempty" example:"Z2lkOi8vc2VydmljZS8xMjM0NTY3ODk"` // The id of the filter applied to the campaign (Optional) + ProjectBrief *string `json:"projectBrief,omitempty" yaml:"projectBrief,omitempty" example:"example_value"` // The project brief of the campaign in Markdown (Optional) } // CheckAlertSourceUsageCreateInput Specifies the input fields used to create an alert source usage check