@paritydeals/node-sdk
Version:
Node.js SDK for interacting with the ParityDeals API.
38 lines • 1.03 kB
TypeScript
import { Behaviour } from '../constants';
import { BaseResponse } from './common';
export interface ReportUsagePayload {
value: number;
customerId: string;
featureId: string;
behaviour: Behaviour;
resourceId?: string | null;
}
export interface ReportUsageResponse extends BaseResponse {
value: number;
customerId: string;
featureId: string;
behaviour: string;
resourceId?: string | null;
orgId: string;
eventName: string;
idempotencyKey: string;
timestamp: string;
}
export interface ReportEventPayload {
customerId: string;
eventName: string;
idempotencyKey: string;
timestamp: string;
resourceId?: string | null;
properties?: Record<string, any> | null;
}
export interface ReportEventResponse extends BaseResponse {
customerId: string;
eventName: string;
idempotencyKey: string;
timestamp: string;
resourceId?: string | null;
properties?: Record<string, any> | null;
orgId: string;
}
//# sourceMappingURL=reporting.d.ts.map