import { type AfmMemoryItemCreatedByUsers, type JsonApiAgentOutRelationshipsCreatedBy, type JsonApiAggregatedFactOutMeta, type JsonApiUserIdentifierOutWithLinks } from "@gooddata/api-client-tiger"; import { type IMemoryCreatedByUsers } from "@gooddata/sdk-backend-spi"; import { type IMemoryItemMetadataObject, type MemoryItemStrategy } from "@gooddata/sdk-model"; /** * Structural shape of the fields {@link convertMemoryItem} reads, satisfied by both the * workspace `JsonApiMemoryItemOutWithLinks` and the org `JsonApiOrgMemoryItemOutWithLinks` * generated types. Lets both scopes call the converter without nominal casts (the two * generated types differ in `tags`/`meta` presence and in their `title`/`description` * nullability and strategy/type enum nominal identity). * @internal */ export interface IConvertibleMemoryItem { id: string; type: string; meta?: JsonApiAggregatedFactOutMeta; relationships?: { createdBy?: JsonApiAgentOutRelationshipsCreatedBy; }; attributes: { title?: string | null; description?: string | null; tags?: Array; strategy: MemoryItemStrategy; instruction: string; isDisabled?: boolean; keywords?: Array; }; } /** * Converts memory item from API response to domain model * @internal */ export declare function convertMemoryItem(memoryItem: IConvertibleMemoryItem, included: JsonApiUserIdentifierOutWithLinks[]): IMemoryItemMetadataObject; export declare function convertMemoryItemCreatedByUsers(response: AfmMemoryItemCreatedByUsers): IMemoryCreatedByUsers; //# sourceMappingURL=MemoryItemConverter.d.ts.map