UNPKG

@mediarithmics/plugins-nodejs-sdk

Version:

This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate

22 lines (18 loc) 592 B
import { UpdateType } from '../../plugin/audiencefeedconnector/AudienceFeedConnectorRequestInterface'; export interface BatchUpdateContext { endpoint: string; grouping_key: string; } export interface BatchUpdateRequest<C extends BatchUpdateContext, T> { batch_content: T[]; ts: number; context: C; } export interface BatchUpdatePluginResponse { status: BatchUpdatePluginResponseStatus; message?: string; next_msg_delay_in_ms?: number; sent_items_in_success: number; sent_items_in_error: number; } export type BatchUpdatePluginResponseStatus = 'OK' | 'ERROR' | 'RETRY';