/* * Copyright (c) 2024, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * Work with view count statistics for knowledge articles. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-lightning-service-knowledge-api.html|Lightning Web Components Developer Guide}. */ declare module "lightning/serviceKnowledgeApi" { /** * An object containing Knowledge article or article version ID. */ export interface UpdateViewStatPayload { /** * The ID of the KnowledgeArticle or KnowledgeArticleVersion record to increase the view count for. */ articleOrVersionId: string; } /** * Increases the article view count of a KnowledgeArticle or KnowledgeArticleVersion record. * @param payload Payload containing article or article version ID */ export function updateViewStat(payload: UpdateViewStatPayload): void; }