UNPKG

@mollie/api-client

Version:
9 lines (8 loc) 761 B
import { type ProfileData } from '../../data/profiles/data'; import { type IdempotencyParameter, type PaginationParameters, type ThrottlingParameter } from '../../types/parameters'; import type PickOptional from '../../types/PickOptional'; export type CreateParameters = Pick<ProfileData, 'name' | 'website' | 'email' | 'phone'> & PickOptional<ProfileData, 'businessCategory' | 'categoryCode' | 'mode'> & IdempotencyParameter; export type PageParameters = PaginationParameters; export type IterateParameters = Omit<PageParameters, 'limit'> & ThrottlingParameter; export type UpdateParameters = PickOptional<ProfileData, 'name' | 'website' | 'email' | 'phone' | 'businessCategory' | 'categoryCode' | 'mode'>; export type DeleteParameters = IdempotencyParameter;