// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT /** * FileGUIService reads GUI documents and applies validated edits to the overlay. * @module */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports import * as $models from "./models.js"; /** * ApplyShopEdit stages every touched file before publishing one overlay change. * The caller sends dirty drafts, but only files touched by this operation are * consumed. Revision and path checks reject another archive or stale dialog. */ export function ApplyShopEdit(req: $models.ShopEditRequest): $CancellablePromise<$models.ShopEditResult | null> { return $Call.ByID(858128996, req); } /** * ApplyWorldDropEdit publishes one complete validated snapshot to the archive * overlay. Like shop edits, a stale revision or changed editor draft is rejected. */ export function ApplyWorldDropEdit(req: $models.WorldDropEditRequest): $CancellablePromise<$models.WorldDropEditResult | null> { return $Call.ByID(237649473, req); } export function CheckItemCreation(req: $models.ItemCreateRequest): $CancellablePromise<$models.ItemCreationCheck | null> { return $Call.ByID(597891646, req); } /** * CreateItem stages the script, LST and (where required) indexhash before * publishing one version operation. No PVF disk write happens here. */ export function CreateItem(req: $models.ItemCreateRequest): $CancellablePromise<$models.ItemCreateResult | null> { return $Call.ByID(3967276739, req); } /** * ListSkillTreeSkills lists registered IDs in the current job, including common skills. */ export function ListSkillTreeSkills(job: string): $CancellablePromise<$models.SkillTreeSkill[] | null> { return $Call.ByID(2588513399, job); } export function ListSkillTrees(): $CancellablePromise<$models.SkillTreeRegistration[] | null> { return $Call.ByID(2559201962); } export function ListSkills(): $CancellablePromise<$models.SkillEntry[] | null> { return $Call.ByID(3606807130); } /** * ListVendingMachines uses the registered LST, including relative and archive-root paths. */ export function ListVendingMachines(): $CancellablePromise<$models.SearchHit[] | null> { return $Call.ByID(1304220627); } export function ReadForge(fileIndex: number, text: string): $CancellablePromise<$models.ForgeDocument | null> { return $Call.ByID(1666123291, fileIndex, text); } export function ReadIndependentDrop(fileIndex: number, text: string): $CancellablePromise<$models.IndependentDropDocument | null> { return $Call.ByID(286472991, fileIndex, text); } /** * ReadItem resolves the same item union used by shop lists and search pickers. */ export function ReadItem(id: string, drafts: $models.ShopDraft[] | null): $CancellablePromise<$models.ShopItem | null> { return $Call.ByID(3301299, id, drafts); } /** * ReadItemAppearances batches presentation metadata without reading item prices. */ export function ReadItemAppearances(ids: string[] | null): $CancellablePromise<{ [_ in string]?: $models.ItemAppearance | null } | null> { return $Call.ByID(3207892534, ids); } /** * ReadItemEffectPreview resolves live LST references, relative paths and editor * drafts. It reads only PVF resources; sprite decoding remains in ImageService. */ export function ReadItemEffectPreview(fileIndex: number, objectID: string, particle: string, drafts: $models.ShopDraft[] | null): $CancellablePromise<$models.ItemEffectPreview | null> { return $Call.ByID(1037122538, fileIndex, objectID, particle, drafts); } /** * ReadItemIcons reads only display metadata for the currently visible rewards. */ export function ReadItemIcons(ids: string[] | null): $CancellablePromise<{ [_ in string]?: $models.ImageReference | null } | null> { return $Call.ByID(2935306771, ids); } /** * ReadItemNames resolves equipment and stackable names using the same item * relations and localized text as other archive views. Missing IDs are omitted. */ export function ReadItemNames(ids: string[] | null): $CancellablePromise<{ [_ in string]?: string } | null> { return $Call.ByID(3212344113, ids); } /** * ReadShop reads structure from the caller's draft, and references from the * current archive overlay. Archive reads can populate caches, requiring Lock. */ export function ReadShop(fileIndex: number, text: string): $CancellablePromise<$models.ShopDocument | null> { return $Call.ByID(603302160, fileIndex, text); } export function ReadSkill(fileIndex: number, text: string): $CancellablePromise<$models.SkillDocument | null> { return $Call.ByID(3027074897, fileIndex, text); } /** * ReadSkillTree resolves only registered trees, using the current archive overlay. */ export function ReadSkillTree(job: string, kind: string): $CancellablePromise<$models.SkillTreeDocument | null> { return $Call.ByID(2818122281, job, kind); } /** * ReadSkillTreeDraft projects the editor draft without changing the archive. */ export function ReadSkillTreeDraft(job: string, kind: string, text: string): $CancellablePromise<$models.SkillTreeDocument | null> { return $Call.ByID(3201412064, job, kind, text); } export function ReadUpgrade(fileIndex: number, text: string): $CancellablePromise<$models.UpgradeDocument | null> { return $Call.ByID(4242154256, fileIndex, text); } export function ReadVendingMachine(fileIndex: number, text: string): $CancellablePromise<$models.VendingDocument | null> { return $Call.ByID(580116406, fileIndex, text); } /** * ReadWorldDrop parses the caller's current editor draft, then resolves names * against the archive's item relation index. Unknown IDs remain editable. */ export function ReadWorldDrop(fileIndex: number, text: string): $CancellablePromise<$models.WorldDropDocument | null> { return $Call.ByID(3120791685, fileIndex, text); }