interface Card$1 { /** Card details. */ info?: CardInfo$1; } /** entity representing a card-info */ interface CardInfo$1 { /** * Card ID. * @readonly */ id?: string | null; /** Display name shown at the top of the card. */ name?: string | null; /** Card description. */ description?: string | null; /** Details about the contact attached to the card. */ primaryAttachment?: Attachment$1; /** Due date. */ dueDate?: Date | null; /** Name of the app or service that created the contact. */ source?: string | null; /** * Deprecated. Use `createdDate` instead. * @readonly * @deprecated */ createdAt?: Date | null; /** * Deprecated. Use `updatedDate` instead. * @readonly * @deprecated */ updatedAt?: Date | null; /** * ID of the phase that currently holds the card. * @readonly */ phaseId?: string | null; /** * Date and time the card was created. * @readonly */ createdDate?: Date | null; /** * Date and time the card was updated. * @readonly */ updatedDate?: Date | null; } interface Attachment$1 { /** * Attachment ID. For internal use. * @readonly */ attachmentId?: string; /** * Deprecated. Use `contactId` instead. * @deprecated */ value?: string; /** * Deprecated. For internal use. * @deprecated */ attachmentType?: AttachmentType$1; /** ID of the contact attached to the card. */ contactId?: string; } /** describes the supported types of attachments (currently only supports Contact which is the default type) */ declare enum AttachmentType$1 { ContactType = "ContactType" } interface PaginationResponse$1 { /** Number of items that were skipped in the current sort order. */ offset?: number; /** Total number of items that matched the filter. */ total?: number; /** Number of returned items. */ count?: number; } interface ListCardsRequest$1 { /** ID of the workflow whose cards will be listed. */ workflowId: string; /** Filters for cards in the specified phase. */ phaseId?: string | null; /** * Number of items to return. * * Defaults to `50`. */ limit?: number | null; /** * Number of items to skip in the current sort order. * * Defaults to `0`. */ offset?: number | null; /** Filters for cards with the specified contact ID. */ attachmentValue?: string | null; /** * Filters for archived cards. * If set to `true`, * only archived cards are returned. * If set to `false`, * only cards that are not archived are returned. * * Defaults to `false`. */ fetchArchived?: boolean | null; /** * Supported fields: * `id`, `name`, `createdDate`, `updatedDate`, `phaseId` * * List of fields to sort by. * Formatted as `field:direction`, * where field is the field name * and direction is `asc` (ascending) or `desc` (descending). * * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`. */ sort?: string[]; } interface ListCardsResponse$1 { /** List of cards. */ cards?: Card$1[]; /** Metadata for the page of results. */ pagination?: PaginationResponse$1; } interface GetCardRequest$1 { /** ID of the card to retrieve. */ id: string; } interface GetCardResponse$1 { /** Requested card. */ card?: Card$1; } interface UpdateCardRequest$1 { /** ID of the card to update. */ id: string; /** Card details. */ cardInfo?: CardInfo$1; } interface UpdateCardResponse$1 { } interface CreateCardRequest$1 { /** ID of the workflow to create the card in. */ workflowId: string; /** ID of the phase to create the card in. */ phaseId: string; /** Card details. */ card?: CardInfo$1; /** * Card position, where the first card is `0`. * * If a card already occupies the specified position, * that card and any subsequent cards are shifted to the right by 1. * * Defaults to the last position. */ position?: number | null; } interface CreateCardResponse$1 { /** ID of the newly created card. */ id?: string | null; } interface DeleteCardRequest$1 { /** ID of the card to delete. */ id: string; } interface DeleteCardResponse$1 { } interface MoveCardRequest$1 { /** ID of the card to move. */ id: string; /** ID of the phase to move the card to. */ newPhaseId?: string | null; /** Position of the card in the phase, where the first card is `0`. */ newPosition?: number | null; } interface MoveCardResponse$1 { } interface RestoreCardRequest$1 { /** ID of the card to restore. */ id: string; /** ID of the phase to restore the card to. */ newPhaseId: string; /** * Position of the restored card in the phase, * where the first card is `0`. */ newPosition?: number | null; } interface RestoreCardResponse$1 { } interface ArchiveCardRequest$1 { /** ID of the card to archive. */ id: string; } interface ArchiveCardResponse$1 { } interface AttachmentNonNullableFields$1 { attachmentId: string; value: string; attachmentType: AttachmentType$1; contactId: string; } interface CardInfoNonNullableFields$1 { primaryAttachment?: AttachmentNonNullableFields$1; } interface CardNonNullableFields$1 { info?: CardInfoNonNullableFields$1; } interface PaginationResponseNonNullableFields$1 { offset: number; limit: number; total: number; count: number; } interface ListCardsResponseNonNullableFields$1 { cards: CardNonNullableFields$1[]; pagination?: PaginationResponseNonNullableFields$1; } interface GetCardResponseNonNullableFields$1 { card?: CardNonNullableFields$1; } interface Card { /** Card details. */ info?: CardInfo; } /** entity representing a card-info */ interface CardInfo { /** * Card ID. * @readonly */ _id?: string | null; /** Display name shown at the top of the card. */ name?: string | null; /** Card description. */ description?: string | null; /** Details about the contact attached to the card. */ primaryAttachment?: Attachment; /** Due date. */ dueDate?: Date | null; /** Name of the app or service that created the contact. */ source?: string | null; /** * @internal * @internal * @readonly * @deprecated */ createdAt?: Date | null; /** * @internal * @internal * @readonly * @deprecated */ updatedAt?: Date | null; /** * ID of the phase that currently holds the card. * @readonly */ phaseId?: string | null; /** * Date and time the card was created. * @readonly */ _createdDate?: Date | null; /** * Date and time the card was updated. * @readonly */ _updatedDate?: Date | null; } interface Attachment { /** * Attachment ID. For internal use. * @readonly */ attachmentId?: string; /** * @internal * @internal * @deprecated */ value?: string; /** * @internal * @internal * @deprecated */ attachmentType?: AttachmentType; /** ID of the contact attached to the card. */ contactId?: string; } /** describes the supported types of attachments (currently only supports Contact which is the default type) */ declare enum AttachmentType { ContactType = "ContactType" } interface PaginationResponse { /** Number of items that were skipped in the current sort order. */ offset?: number; /** Total number of items that matched the filter. */ total?: number; /** Number of returned items. */ count?: number; } interface ListCardsRequest { /** ID of the workflow whose cards will be listed. */ workflowId: string; /** Filters for cards in the specified phase. */ phaseId?: string | null; /** * Number of items to return. * * Defaults to `50`. */ limit?: number | null; /** * Number of items to skip in the current sort order. * * Defaults to `0`. */ offset?: number | null; /** Filters for cards with the specified contact ID. */ attachmentValue?: string | null; /** * Filters for archived cards. * If set to `true`, * only archived cards are returned. * If set to `false`, * only cards that are not archived are returned. * * Defaults to `false`. */ fetchArchived?: boolean | null; /** * Supported fields: * `id`, `name`, `createdDate`, `updatedDate`, `phaseId` * * List of fields to sort by. * Formatted as `field:direction`, * where field is the field name * and direction is `asc` (ascending) or `desc` (descending). * * Sorting is applied lexicographically, so `"abc"` comes after `"XYZ"`. */ sort?: string[]; } interface ListCardsResponse { /** List of cards. */ cards?: Card[]; /** Metadata for the page of results. */ pagination?: PaginationResponse; } interface GetCardRequest { /** ID of the card to retrieve. */ _id: string; } interface GetCardResponse { /** Requested card. */ card?: Card; } interface UpdateCardRequest { /** ID of the card to update. */ _id: string; /** Card details. */ cardInfo?: CardInfo; } interface UpdateCardResponse { } interface CreateCardRequest { /** ID of the workflow to create the card in. */ workflowId: string; /** ID of the phase to create the card in. */ phaseId: string; /** Card details. */ card?: CardInfo; /** * Card position, where the first card is `0`. * * If a card already occupies the specified position, * that card and any subsequent cards are shifted to the right by 1. * * Defaults to the last position. */ position?: number | null; } interface CreateCardResponse { /** ID of the newly created card. */ _id?: string | null; } interface DeleteCardRequest { /** ID of the card to delete. */ _id: string; } interface DeleteCardResponse { } interface MoveCardRequest { /** ID of the card to move. */ _id: string; /** ID of the phase to move the card to. */ newPhaseId?: string | null; /** Position of the card in the phase, where the first card is `0`. */ newPosition?: number | null; } interface MoveCardResponse { } interface RestoreCardRequest { /** ID of the card to restore. */ _id: string; /** ID of the phase to restore the card to. */ newPhaseId: string; /** * Position of the restored card in the phase, * where the first card is `0`. */ newPosition?: number | null; } interface RestoreCardResponse { } interface ArchiveCardRequest { /** ID of the card to archive. */ _id: string; } interface ArchiveCardResponse { } interface AttachmentNonNullableFields { attachmentId: string; value: string; attachmentType: AttachmentType; contactId: string; } interface CardInfoNonNullableFields { primaryAttachment?: AttachmentNonNullableFields; } interface CardNonNullableFields { info?: CardInfoNonNullableFields; } interface PaginationResponseNonNullableFields { offset: number; limit: number; total: number; count: number; } interface ListCardsResponseNonNullableFields { cards: CardNonNullableFields[]; pagination?: PaginationResponseNonNullableFields; } interface GetCardResponseNonNullableFields { card?: CardNonNullableFields; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function listCards(): __PublicMethodMetaInfo<'GET', { workflowId: string; }, ListCardsRequest, ListCardsRequest$1, ListCardsResponse & ListCardsResponseNonNullableFields, ListCardsResponse$1 & ListCardsResponseNonNullableFields$1>; declare function getCard(): __PublicMethodMetaInfo<'GET', { id: string; }, GetCardRequest, GetCardRequest$1, GetCardResponse & GetCardResponseNonNullableFields, GetCardResponse$1 & GetCardResponseNonNullableFields$1>; declare function updateCard(): __PublicMethodMetaInfo<'PATCH', { id: string; }, UpdateCardRequest, UpdateCardRequest$1, UpdateCardResponse, UpdateCardResponse$1>; declare function createCard(): __PublicMethodMetaInfo<'POST', { workflowId: string; phaseId: string; }, CreateCardRequest, CreateCardRequest$1, CreateCardResponse, CreateCardResponse$1>; declare function deleteCard(): __PublicMethodMetaInfo<'DELETE', { id: string; }, DeleteCardRequest, DeleteCardRequest$1, DeleteCardResponse, DeleteCardResponse$1>; declare function moveCard(): __PublicMethodMetaInfo<'POST', { id: string; }, MoveCardRequest, MoveCardRequest$1, MoveCardResponse, MoveCardResponse$1>; declare function restoreCard(): __PublicMethodMetaInfo<'POST', { id: string; }, RestoreCardRequest, RestoreCardRequest$1, RestoreCardResponse, RestoreCardResponse$1>; declare function archiveCard(): __PublicMethodMetaInfo<'POST', { id: string; }, ArchiveCardRequest, ArchiveCardRequest$1, ArchiveCardResponse, ArchiveCardResponse$1>; export { type __PublicMethodMetaInfo, archiveCard, createCard, deleteCard, getCard, listCards, moveCard, restoreCard, updateCard };