/** * ARI (Arrendamiento de Inmuebles - Real Estate Leasing) Clients Resource * * Extends MexClientsResource with ARI-specific behavior. * ARI clients have no additional activity-specific fields. * Returns MexARIClient models. */ import type { ARIClientFilter, ARIClientSort, AtomicBatchResult, ClientRelationshipType, ClientSort, CreateARIClientInput, CreateBankAccountInput, CreateClientInput, CreateContactMethodInput, CreateMexAddressInput, LinkedClient as LinkedClientInput, ListOptions, PaginatedResponse, PartialBatchResult, SyncCreateDocumentInput, SyncItem, SyncResult, SyncUpdateDocumentInput, UpdateARIClientInput, UpdateBankAccountInput, UpdateClientInput, UpdateContactMethodInput, UpdateMexAddressInput, UpsertARIClientInput, UpsertResult } from "@artu-ai/shared"; import { type ClientData, ContactMethod, Document, LinkedClient, MexAddress, MexARIClient, MexBankAccount } from "../../../../models"; import { type ClientIncludeMap } from "../../../clients"; import type { RelatedPartyParent, RelatedPartySubresource } from "../../../related-parties/base"; import { AVClientsResource } from "../clients"; /** * ARI (Arrendamiento de Inmuebles) scoped clients resource. * * @example * ```typescript * const ariSdk = new ComplianceSDK({ * apiKey, * environment: "test", * scope: "MX", * actividadVulnerable: CodigoActividad.ARI, * }); * * const client = await ariSdk.clients.create({ * type: ClientType.Person, * name: "Juan GarcĂ­a", * rfc: "GAJL850101ABC", * }); * * // Returns MexARIClient * ``` */ export declare class ARIClientsResource extends AVClientsResource { readonly legalRepresentatives: RelatedPartySubresource; readonly controllingBeneficiaries: RelatedPartySubresource; protected relatedPartyParent(): RelatedPartyParent; create(data: CreateARIClientInput): Promise; retrieve(id: string, options?: { include?: ClientIncludeMap; crossScope?: boolean; }): Promise; retrieveByExternalId(externalId: string, opts?: { crossScope?: boolean; }): Promise; update(id: string, data: UpdateARIClientInput): Promise; list(options?: ListOptions & { includePrimaryContacts?: boolean; includeNonPrimary?: boolean; crossScope?: boolean; }): Promise>; iterate(options?: { filter?: ARIClientFilter; sort?: ARIClientSort; pageSize?: number; crossScope?: boolean; }): AsyncGenerator; count(filter?: ARIClientFilter, options?: { includeNonPrimary?: boolean; crossScope?: boolean; }): Promise; createMany(clients: CreateARIClientInput[], options?: { atomic?: true; }): Promise>; createMany(clients: CreateARIClientInput[], options: { atomic: false; }): Promise>; updateMany(updates: { id: string; data: UpdateARIClientInput; }[], options?: { atomic?: true; }): Promise>; updateMany(updates: { id: string; data: UpdateARIClientInput; }[], options: { atomic: false; }): Promise>; upsertByExternalId(data: UpsertARIClientInput): Promise>; upsertManyByExternalId(clients: UpsertARIClientInput[], options?: { atomic?: true; }): Promise>>; upsertManyByExternalId(clients: UpsertARIClientInput[], 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: CreateARIClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexARIClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateARIClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options: { replaceMode: true; }): Promise<{ client: MexARIClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; syncAll(clientId: string, data: { client?: UpdateARIClientInput; addresses?: SyncItem[]; contactMethods?: SyncItem[]; bankAccounts?: SyncItem[]; documents?: SyncItem[]; linkedClients?: LinkedClientInput[]; }, options?: { replaceMode?: boolean; }): Promise<{ client: MexARIClient; addresses: SyncResult; contactMethods: SyncResult; bankAccounts: SyncResult; documents: SyncResult; }>; protected transformToNested(data: CreateARIClientInput): CreateClientInput; protected transformUpdateToNested(data: UpdateARIClientInput): UpdateClientInput; protected instantiate(data: ClientData): MexARIClient; /** Materializes a raw payload into a {@link MexARIClient} (return type narrowed via the `instantiate` override). */ materialize(data: ClientData): MexARIClient; protected applyScopeToSort(sort?: ARIClientSort): ClientSort | undefined; }