/** * CNBV Alerts Resource * * Extends MexAlertsResource with CNBV-specific behavior: * - Sets scope to "MX:CNBV" * - Nests data under scopeData.MX.cnbv * - Returns MexCNBVAlert models * * This is a passthrough to MX level (no CNBV-specific alert fields). */ import type { AlertClientItemFilter, AlertItemFilter, AlertItemSort, AlertSort, AlertTransactionItemFilter, AtomicBatchResult, ClientSort, CreateAlertInput, CreateAlertItemInput, CreateMexAlertInput, CreateMexAlertItemInput, ListOptions, MexAlertDefaultsInput, MexAlertFilter, MexAlertSort, MexClientSort, PaginatedResponse, PartialBatchResult, TransactionSort, UpdateAlertInput, UpdateAlertItemInput, UpdateMexAlertInput, UpdateMexAlertItemInput, UpsertMexAlertInput, UpsertResult } from "@artu-ai/shared"; import { type AlertClientItemData, type AlertData, type AlertItemData, type AlertTransactionItemData, MexCNBVAlert, MexCNBVAlertClientItem, MexCNBVAlertItem, MexCNBVAlertTransactionItem } from "../../../models"; import { MexAlertsResource } from "../alerts"; export declare class CNBVAlertsResource extends MexAlertsResource { create(data: CreateMexAlertInput): Promise; retrieve(id: string, opts?: { crossScope?: boolean; }): Promise; retrieveByMetadata(key: string, value: string, opts?: { crossScope?: boolean; }): Promise; retrieveByExternalId(externalId: string, opts?: { crossScope?: boolean; }): Promise; update(id: string, data: UpdateMexAlertInput): Promise; list(options?: ListOptions & { crossScope?: boolean; }): Promise>; iterate(options?: { filter?: MexAlertFilter; sort?: MexAlertSort; pageSize?: number; crossScope?: boolean; }): AsyncGenerator; count(filter?: MexAlertFilter, options?: { crossScope?: boolean; }): Promise; createMany(alerts: CreateMexAlertInput[], options?: { atomic?: true; }): Promise>; createMany(alerts: CreateMexAlertInput[], options: { atomic: false; }): Promise>; updateMany(updates: { id: string; data: UpdateMexAlertInput; }[], options?: { atomic?: true; }): Promise>; updateMany(updates: { id: string; data: UpdateMexAlertInput; }[], options: { atomic: false; }): Promise>; upsertByExternalId(data: UpsertMexAlertInput): Promise>; addItem(alertId: string, data: CreateMexAlertItemInput): Promise; getItem(alertId: string, itemId: string): Promise; updateItem(alertId: string, itemId: string, data: UpdateMexAlertItemInput): Promise; listItems(alertId: string, options?: ListOptions): Promise>; addItems(alertId: string, items: CreateMexAlertItemInput[]): Promise<{ added: number; items: MexCNBVAlertItem[]; }>; listTransactionItems(alertId: string, options?: ListOptions): Promise>; listClients(alertId: string, options?: ListOptions): Promise>; protected applyScopeToSort(sort?: MexAlertSort): AlertSort | undefined; protected applyTransactionScopeToSort(sort?: TransactionSort): TransactionSort | undefined; protected applyClientScopeToSort(sort?: MexClientSort): ClientSort | undefined; protected transformToNested(data: CreateMexAlertInput): CreateAlertInput; protected transformUpdateToNested(data: UpdateMexAlertInput): UpdateAlertInput; protected instantiate(data: AlertData): MexCNBVAlert; /** Materializes a raw payload into a {@link MexCNBVAlert} (return type narrowed via the `instantiate` override). */ materialize(data: AlertData): MexCNBVAlert; protected instantiateItem(data: AlertItemData): MexCNBVAlertItem; protected instantiateTransactionItem(data: AlertTransactionItemData): MexCNBVAlertTransactionItem; protected instantiateClientItem(data: AlertClientItemData): MexCNBVAlertClientItem; protected transformItemToNested(data: CreateMexAlertItemInput): CreateAlertItemInput; protected transformItemUpdateToNested(data: UpdateMexAlertItemInput): UpdateAlertItemInput; }