dc-management-sdk-js
Version:
Amplience Dynamic Content Management SDK
56 lines (55 loc) • 1.68 kB
TypeScript
import { HalResource } from '../hal/models/HalResource';
import { Page } from './Page';
import { Webhook } from './Webhook';
/**
* Class representing an Assigned Content Type for an Algolia Search Index.
*/
export declare class AssignedContentType extends HalResource {
/**
* Unique id generated on creation.
*/
id?: string;
/**
* URI that describes where to locate the JSON schema definition for this content type.
*/
contentTypeUri?: string;
/**
* Timestamp representing when the Index was originally created.
*/
createdDate?: string;
/**
* Timestamp representing when the Assigned Content Type was last updated.
*/
lastModifiedDate?: string;
/**
* Resources and actions related to an Assigned Content Type.
*/
readonly related: {
/**
* Unassigns the content type from the search index.
*/
unassign: (id: string) => Promise<void>;
/**
* Recreates the webhooks for this Assigned Content Type.
*/
recreateWebhook: () => Promise<void>;
/**
* Gets the primary webhook for this Assigned Content Type.
*/
webhook: () => Promise<Webhook>;
/**
* Gets the active content webhook for this Assigned Content Type.
*/
activeContentWebhook: () => Promise<Webhook>;
/**
* Gets the archived content webhook for this Assigned Content Type.
*/
archivedContentWebhook: () => Promise<Webhook>;
};
}
/**
* @hidden
*/
export declare class AssignedContentTypePage extends Page<AssignedContentType> {
constructor(data?: any);
}