UNPKG

contensis-management-api

Version:

Client for managing content using the Contensis Management API

22 lines (19 loc) 539 B
interface RedirectMatch { type: 'beginsWith' | 'exactMatch' | 'regex'; value: string; } export interface Redirect { id: string; sourceDomain: string; destination: string; statusCode: 301 | 302 | 303 | 307; appendSourcePathToDestination: boolean; match: RedirectMatch; version?: { created: string; createdBy: string; modified: string; modifiedBy: string; }; } export type RedirectToCreate = Omit<Redirect, 'id'> & Partial<Pick<Redirect, 'id'>>;