Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion campaign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
36 changes: 18 additions & 18 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading