UNPKG

wikibase-edit

Version:

Edit Wikibase from NodeJS

26 lines 1.05 kB
import { type Guid, type PropertyId, type Rank, type Claim, type SnakBase } from 'wikibase-sdk'; import type { WikibaseEditAPI } from '../index.js'; import type { BaseRevId } from '../types/common.js'; import type { SerializedConfig } from '../types/config.js'; import type { RawEditableEntity } from '../types/edit_entity.js'; import type { EditableSnakValue } from '../types/snaks.js'; export interface UpdateClaimParams { id?: RawEditableEntity['id']; guid?: Guid<RawEditableEntity['id']>; property?: PropertyId; oldValue?: EditableSnakValue; newValue?: EditableSnakValue; rank?: Rank; summary?: string; baserevid?: BaseRevId; } export declare function updateClaim(params: UpdateClaimParams, config: SerializedConfig, API: WikibaseEditAPI): Promise<{ claim: any; success: 1; }>; export declare function formatUpdatedSnakValue(newValue: EditableSnakValue, updatedSnak: SnakBase): EditableSnakValue; export interface UpdateClaimResponse { claim: Claim; success: 1; } //# sourceMappingURL=update.d.ts.map