Skip to content
Draft
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
9 changes: 2 additions & 7 deletions __test__/testbed-preparation/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export type CreateCampaignOptions = Partial<
| "timezone"
| "isAutoassignEnabled"
| "isAssignmentLimitedToTeams"
| "landlinesFiltered"
> & {
creatorId: number;
repliesStaleAfterMinutes: number;
Expand Down Expand Up @@ -176,11 +175,10 @@ export const createCampaign = async (
is_autoassign_enabled,
limit_assignment_to_teams,
replies_stale_after_minutes,
landlines_filtered,
external_system_id,
autosend_status,
autosend_user_id
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19)
returning *
`,
[
Expand All @@ -200,7 +198,6 @@ export const createCampaign = async (
options.isAutoassignEnabled ?? false,
options.isAssignmentLimitedToTeams ?? false,
options.repliesStaleAfterMinutes ?? null,
options.landlinesFiltered ?? false,
options.externalSystemId ?? null,
options.autosendStatus ?? null,
options.autosendUserId ?? null
Expand Down Expand Up @@ -233,12 +230,11 @@ export const createTemplate = async (
is_autoassign_enabled,
limit_assignment_to_teams,
replies_stale_after_minutes,
landlines_filtered,
external_system_id,
autosend_status,
autosend_user_id,
is_template
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21)
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)
returning *
`,
[
Expand All @@ -258,7 +254,6 @@ export const createTemplate = async (
options.isAutoassignEnabled ?? false,
options.isAssignmentLimitedToTeams ?? false,
options.repliesStaleAfterMinutes ?? null,
options.landlinesFiltered ?? false,
options.externalSystemId ?? null,
options.autosendStatus ?? null,
options.autosendUserId ?? null,
Expand Down
1 change: 0 additions & 1 deletion dev-tools/clone_campaign_sproc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ cross join lateral graphile_worker.add_job(
'campaignId', new_campaigns.campaign_id,
'offset': new_campaigns.offset,
'limit': new_campaigns.limit,
'initiateFilterLandlines', true,
'signedDownloadUrl', 'https://s3.aws.amazon.com/my-secure-bucket/ak-export.csv',
'columnMapping': json_build_object(
'firstName', 'my_first_name_col_name',
Expand Down
2 changes: 0 additions & 2 deletions libs/gql-schema/campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const schema = `
timezone: String
createdAt: String!
previewUrl: String
landlinesFiltered: Boolean!
externalSystem: ExternalSystem
syncReadiness: ExternalSyncReadinessState!
externalSyncConfigurations(after: Cursor, first: Int): ExternalSyncQuestionResponseConfigPage!
Expand Down Expand Up @@ -182,7 +181,6 @@ export const schema = `
contacts: [CampaignContactInput!]
contactsFile: Upload
externalListId: String
filterOutLandlines: Boolean
excludeCampaignIds: [String!]
contactSql: String
organizationId: String
Expand Down
2 changes: 0 additions & 2 deletions libs/gql-schema/organization-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const schema = `
showContactCell: Boolean
confirmationClickForScriptLinks: Boolean
defaulTexterApprovalStatus: RequestAutoApprove
numbersApiKey: String
trollbotWebhookUrl: String
scriptPreviewForSupervolunteers: Boolean
defaultCampaignBuilderMode: CampaignBuilderMode
Expand Down Expand Up @@ -41,7 +40,6 @@ export const schema = `

# Owner
defaulTexterApprovalStatus: RequestAutoApprove
numbersApiKey: String
trollbotWebhookUrl: String
}
`;
Expand Down
1 change: 0 additions & 1 deletion libs/gql-schema/organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const schema = `
escalatedConversationCount: Int!
linkDomains: [LinkDomain]!
unhealthyLinkDomains: [UnhealthyLinkDomain]!
numbersApiKey: String
settings: OrganizationSettings!
tagList: [Tag!]!
escalationTagList: [Tag!]!
Expand Down
1 change: 0 additions & 1 deletion libs/gql-schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ const rootSchema = `
editCampaign(id:String!, campaign:CampaignInput!): Campaign
saveCampaignGroups(organizationId: String!, campaignGroups: [CampaignGroupInput!]!): [CampaignGroup!]!
deleteCampaignGroup(organizationId: String!, campaignGroupId: String!): Boolean!
filterLandlines(id:String!): Campaign
bulkUpdateScript(organizationId:String!, findAndReplace: BulkUpdateScriptInput!): [ScriptUpdateResult]
deleteJob(campaignId:String!, id:String!): JobRequest
copyCampaign(id: String!): Campaign
Expand Down
1 change: 0 additions & 1 deletion libs/spoke-codegen/src/graphql/campaign-stats.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ query getOrganizationData($organizationId: String!) {
lastName
displayName
}
numbersApiKey
campaigns(cursor: { offset: 0, limit: 5000 }) {
campaigns {
id
Expand Down
1 change: 0 additions & 1 deletion libs/spoke-codegen/src/graphql/spoke-context.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ fragment OrganizationSettingsInfo on OrganizationSettings {
id
defaulTexterApprovalStatus
optOutMessage
numbersApiKey
trollbotWebhookUrl
showContactLastName
showContactCell
Expand Down
6 changes: 2 additions & 4 deletions libs/spoke-codegen/src/pg-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,13 @@ export interface campaign {
limit_assignment_to_teams: boolean
updated_at?: Date | null
replies_stale_after_minutes?: number | null
landlines_filtered?: boolean | null
external_system_id?: string | null
is_approved?: boolean | null
autosend_status?: string | null
autosend_user_id?: number | null
autosend_user_id?: number | null
}

export interface campaign_contact {
export interface campaign_contact {
id: number
campaign_id: number
assignment_id?: number | null
Expand Down Expand Up @@ -222,7 +221,6 @@ export interface campaign_with_groups {
limit_assignment_to_teams?: boolean | null
updated_at?: Date | null
replies_stale_after_minutes?: number | null
landlines_filtered?: boolean | null
external_system_id?: string | null
group_name?: string | null
group_description?: string | null
Expand Down
Loading
Loading