import { Component, ContentType, Project } from 'contensis-core-api'; import { Node } from 'contensis-delivery-api'; import { Entry, Tag, TagGroup } from 'contensis-management-api'; import ApiKeyService from './ApiKeyService'; import BlocksService from './BlocksService'; import ModelMigrationService from './ModelMigrationService'; import NodesMigrationService from './NodesMigrationService'; import ProjectsService from './ProjectsService'; import ProxiesService from './ProxiesService'; import RenderersService from './RenderersService'; import RolesMigrationService from './RolesMigrationService'; import SimpleMigrationService from './SimpleMigrationService'; import { GetTagGroupsArgs } from './TagGroupsMigrationService'; import TagsMigrationService, { GetTagsArgs } from './TagsMigrationService'; import WebhookMigrationService from './WebhookMigrationService'; import WebhookSubscriptionService from './WebhookSubscriptionService'; import { Model } from '../models'; import { IContentMigrationServices } from '../models/IContentMigrationServices'; import { ContentTypesResult, EntriesMigrationResult, EntriesResult, MigrateRequest, NodesResult, TagGroupsResult, TagsResult } from '../models/Operations'; type ContentModelsResult = { models: Model[]; contentTypes: ContentType[]; components: Component[]; entries: Entry[]; nodes: Node[]; project?: Project; tagGroups: TagGroup[]; }; /** * The purpose of ContensisMigrationService is to act as the public interface * for all Contensis migrations performed by the CLI or imported from the npm package */ declare class ContensisMigrationService { simpleMigration: SimpleMigrationService; payload: MigrateRequest; isPreview: boolean; models: ModelMigrationService; content: IContentMigrationServices; nodes: NodesMigrationService; projects: ProjectsService; apiKeys: ApiKeyService; blocks: BlocksService; proxies: ProxiesService; renderers: RenderersService; roles: RolesMigrationService; subscriptions: { webhooks: WebhookSubscriptionService; }; tags: TagsMigrationService; webhooks: WebhookMigrationService; constructor(payload: MigrateRequest, preview?: boolean); get contensisVersion(): string; get repos(): { source: { alias: string; project: string; query: import("../models").SearchQueryOptions; zenQL: string; }; target: { alias: string; projects: { [k: string]: { query: import("../models").SearchQueryOptions; zenQL: string; }; }; }; }; get source(): import("../repositories/ContensisRepository").default; get targets(): { [projectId: string]: import("../repositories/ContensisRepository").default; }; GetContentModels: (modelIds?: (string | ContentType | Component)[]) => Promise; GetEntries: (options: { withDependents: boolean; }) => Promise; GetNodes: (rootPath?: string, depth?: number) => Promise[]>; GetTags: ({ withDependents, ...query }: GetTagsArgs & { withDependents: T; }) => Promise; GetTagGroups: (query?: GetTagGroupsArgs) => Promise; MigrateEnvironment: () => Promise; MigrateAssets: () => Promise<[AppError | null, EntriesResult | undefined]>; MigrateContentModels: (models?: (string | ContentType | Component)[]) => Promise<[AppError | null, ContentTypesResult | undefined]>; MigrateEntries: () => Promise<[AppError | null, EntriesMigrationResult | undefined]>; MigrateNodes: () => Promise<[AppError | null, NodesResult | undefined]>; MigrateTags: (query?: GetTagsArgs) => Promise<[AppError | null, TagsResult | undefined]>; MigrateTagGroups: (query?: GetTagGroupsArgs) => Promise<[AppError | null, TagGroupsResult | undefined]>; DeleteNodes: (rootPaths?: string | string[]) => Promise<[AppError | null, NodesResult | undefined]>; DeleteEntries: (recycle?: boolean) => Promise<[AppError | null, EntriesResult | undefined]>; DeleteAssets: () => Promise<[AppError | null, EntriesResult | undefined]>; DeleteContentTypes: (contentTypeIds?: string[] | undefined, componentIds?: string[] | undefined) => Promise<[AppError | null, import("../models").SimpleMigrationResult | undefined]>; DeleteTags: (query?: GetTagsArgs) => Promise<[AppError | null, TagsResult | undefined]>; DeleteTagGroups: (query?: GetTagGroupsArgs) => Promise<[AppError | null, TagGroupsResult | undefined]>; } export default ContensisMigrationService;