/** * VEH (Vehículos) Clients Resource * * Extends MexClientsResource with VEH-specific behavior. * VEH clients support Individual, Company, and Trust discriminated union types. * Returns MexVEHClient models. */ import type { AtomicBatchResult, ClientRelationshipType, ClientSort, CreateBankAccountInput, CreateClientInput, CreateContactMethodInput, CreateMexAddressInput, CreateVEHClientInput, LinkedClient as LinkedClientInput, ListOptions, PaginatedResponse, PartialBatchResult, SyncCreateDocumentInput, SyncItem, SyncResult, SyncUpdateDocumentInput, UpdateBankAccountInput, UpdateClientInput, UpdateContactMethodInput, UpdateMexAddressInput, UpdateVEHClientInput, UpsertResult, UpsertVEHClientInput, VEHClientFilter, VEHClientSort } from "@artu-ai/shared"; import { type ClientData, ContactMethod, Document, LinkedClient, MexAddress, MexBankAccount, MexVEHClient } from "../../../../models"; import { type ClientIncludeMap } from "../../../clients"; import type { RelatedPartyParent, RelatedPartySubresource } from "../../../related-parties/base"; import { AVClientsResource } from "../clients"; /** * VEH (Vehículos) scoped clients resource. * * @example * ```typescript * const vehSdk = new ComplianceSDK({ * apiKey, * environment: "test", * scope: "MX:AV:VEH", * }); * * const client = await vehSdk.clients.create({ * type: ClientType.Person, * name: "Juan García", * rfc: "GAJL850101ABC", * }); * * // Returns MexVEHClient * ``` */ export declare class VEHClientsResource extends AVClientsResource { readonly legalRepresentatives: RelatedPartySubresource; readonly controllingBeneficiaries: RelatedPartySubresource; protected relatedPartyParent(): RelatedPartyParent; create(data: CreateVEHClientInput): Promise; retrieve(id: string, options?: { include?: ClientIncludeMap; crossScope?: boolean; }): Promise; retrieveByExternalId(externalId: string, opts?: { crossScope?: boolean; }): Promise; update(id: string, data: UpdateVEHClientInput): Promise; list(options?: ListOptions & { includePrimaryContacts?: boolean; includeNonPrimary?: boolean; crossScope?: boolean; }): Promise>; iterate(options?: { filter?: VEHClientFilter; sort?: VEHClientSort; pageSize?: number; crossScope?: boolean; }): AsyncGenerator; count(filter?: VEHClientFilter, options?: { includeNonPrimary?: boolean; crossScope?: boolean; }): Promise; createMany(clients: CreateVEHClientInput[], options?: { atomic?: true; }): Promise>; createMany(clients: CreateVEHClientInput[], options: { atomic: false; }): Promise>; updateMany(updates: { id: string; data: UpdateVEHClientInput; }[], options?: { atomic?: true; }): Promise>; updateMany(updates: { id: string; data: UpdateVEHClientInput; }[], options: { atomic: false; }): Promise>; upsertByExternalId(data: UpsertVEHClientInput): Promise>; upsertManyByExternalId(clients: UpsertVEHClientInput[], options?: { atomic?: true; }): Promise>>; upsertManyByExternalId(clients: UpsertVEHClientInput[], options: { atomic: false; }): Promise>>; linkClient(parentClientId: string, childClientId: string, relationshipType: ClientRelationshipType, metadata?: Record): Promise; unlinkClient(parentClientId: string, childClientId: string, relationshipType: ClientRelationshipType): Promise; listLinkedClients(parentClientId: string, relationshipType?: ClientRelationshipType): Promise; setLinkedClients(parentClientId: string, linkedClients: LinkedClientInput[]): Promise; syncAll(clientId: undefined, data: { client: CreateVEHClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexVEHClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateVEHClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options: { replaceMode: true; }): Promise<{ client: MexVEHClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateVEHClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexVEHClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; protected transformToNested(data: CreateVEHClientInput): CreateClientInput; protected transformUpdateToNested(data: UpdateVEHClientInput): UpdateClientInput; protected instantiate(data: ClientData): MexVEHClient; /** Materializes a raw payload into a {@link MexVEHClient} (return type narrowed via the `instantiate` override). */ materialize(data: ClientData): MexVEHClient; protected applyScopeToSort(sort?: VEHClientSort): ClientSort | undefined; }