export type EctonExport = {appName?: string | undefined, exportPackage?: string | undefined, clientCodes?: Array | undefined, portfolioCodes?: Array | undefined, mktpConnectionCodes?: Array | undefined, createdBy?: string | undefined, notes?: string | undefined, additionalMailTo?: string | undefined, countryCode?: string | undefined, phoneNumber?: string | undefined, promoteToEnv?: string | undefined, buildNumber?: string | undefined, exportFileName?: string | undefined, exceptionMsg?: string | undefined, productCodes?: Array | undefined}; export type CreateApiDplexmarketplacePromoteConnectionsArgs = {body: EctonExport}; export type CreateApiDplexmarketplacePromoteConnectionsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * POST /dplexmarketplace/promote/connections */ export const createApiDplexmarketplacePromoteConnections = async (args: CreateApiDplexmarketplacePromoteConnectionsArgs, options?: CreateApiDplexmarketplacePromoteConnectionsOptions) => { const {baseUrl = "https://developer.tsys.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/dplexmarketplace/promote/connections${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };