import type { JsonObject } from '../../types/json.js'
import {
  getWorkerAnnouncementConfig,
  saveWorkerAnnouncementConfig,
} from './worker-announcement-config-service.js'
import {
  getWorkerPlatformNotificationConfig,
  saveWorkerPlatformNotificationConfig,
} from './worker-platform-notification-config-service.js'
import {
  getWorkerProductMatchConfig,
  saveWorkerProductMatchConfig,
} from './worker-product-match-config-service.js'

export async function getAdminWorkerPlatformNotificationConfig() {
  return getWorkerPlatformNotificationConfig()
}

export async function saveAdminWorkerPlatformNotificationConfig(payload: JsonObject = {}) {
  return saveWorkerPlatformNotificationConfig(payload)
}

export async function getAdminWorkerProductMatchConfig() {
  return getWorkerProductMatchConfig()
}

export async function getAdminWorkerAnnouncementConfig() {
  return getWorkerAnnouncementConfig()
}

export async function saveAdminWorkerAnnouncementConfig(payload: JsonObject = {}) {
  return saveWorkerAnnouncementConfig(payload)
}

export async function saveAdminWorkerProductMatchConfig(payload: JsonObject = {}) {
  return saveWorkerProductMatchConfig(payload)
}
