@mundogamernetwork/shared-ui 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/services/campaignService.ts +11 -8
package/package.json
CHANGED
|
@@ -422,16 +422,19 @@ export const revealKey = (requestId: number) => {
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
|
-
* Explicit opt-in to key campaign alerts —
|
|
426
|
-
* KeyBrowser.vue
|
|
425
|
+
* Explicit opt-in to key campaign alerts — canonical, cross-product
|
|
426
|
+
* preferences endpoint (same one KeyBrowser.vue, network-accounts, and
|
|
427
|
+
* mobile use). No mg_network_system_id, so the opt-in is global.
|
|
427
428
|
*/
|
|
428
429
|
export const enableKeyCampaignNotifications = () => {
|
|
429
|
-
return authClient.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
430
|
+
return authClient.post("/account-management/notification-preferences", {
|
|
431
|
+
preferences: [{
|
|
432
|
+
category: "key_campaigns",
|
|
433
|
+
enabled: true,
|
|
434
|
+
channel_email: true,
|
|
435
|
+
channel_push: true,
|
|
436
|
+
channel_in_app: true,
|
|
437
|
+
}],
|
|
435
438
|
})
|
|
436
439
|
}
|
|
437
440
|
|