brave / ads-ui

Self-service ads UI
Mozilla Public License 2.0
23 stars 11 forks source link

Production Release 2024-08-14 #1318

Closed IanKrieger closed 1 month ago

IanKrieger commented 1 month ago

Chores

github-actions[bot] commented 1 month ago

[puLL-Merge] - brave/ads-ui@1318

Description

This PR updates the GraphQL schema and related code, primarily focusing on changes to the Advertiser mutation and removing some deprecated fields and types. The main changes include updating the UpdateAdvertiser mutation, removing the Webhook type and related fields, and adding an ofacCompliant field to the Advertiser type.

Changes ### Changes 1. `src/auth/components/AdvertiserDetailsForm.tsx`: - Updated the `UpdateAdvertiser` mutation to use `AdsManagerUpdateAdvertiserInput` instead of `UpdateSelfServeAdvertiserInput`. - Changed the mutation name from `updateSelfServeAdvertiser` to `adsManagerUpdateAdvertiser`. 2. `src/graphql-client/gql.ts` and `src/graphql-client/graphql.ts`: - Updated generated GraphQL types and documents to reflect schema changes. 3. `src/graphql/ads-serve.graphql.schema.json`: - Removed `webhooks` field from the `Ad` type. - Added `AdsManagerUpdateAdvertiserInput` input type. - Added `ofacCompliant` field to the `Advertiser` type. - Removed `approveAdvertiser` and `rejectAdvertiser` mutations. - Added `adsManagerUpdateAdvertiser` mutation. - Removed `updateAd` mutation. - Added `sendLoginEmail` mutation. - Removed `Webhook` type and `createWebhookInput` input type. These changes appear to be part of a larger refactoring effort to streamline the advertiser management process and remove deprecated or unused features.