import * as breeze from '../breeze.js'; /** * Functions to enable Breeze to use POST for queries when * special parameters are passed using the .withParameters function. * * Copyright 2015-2026 IdeaBlade, Inc. All Rights Reserved. * Use, reproduction, distribution, and modification of this code is subject to the terms and * conditions of the IdeaBlade Breeze license, available at http://www.breezejs.com/license * * Author: Steve Schmitt * Version: * 1.2.0 - Moved into breeze-client repo and npm package * 1.1.0 - revised: eliminated return object, configAjaxAdapter method; add ajaxPostEnabled flag * 1.0.6 - original * * Special parameters: * $method: ‘POST’ or ‘GET’ (the default) * $encoding: ‘JSON’ or x-www-form-urlencoded (the default) * $data: contains the data to be sent to the server * * Installation: * const ajaxAdapter = config.getAdapterInstance('ajax'); * AjaxPostWrapper.wrapAjax(ajaxAdapter); * * Breeze 3 needs no ajax adapter, so there is one to wrap only if you registered one with * configureBreeze({ ajax: MyAdapter }). Otherwise wrap your own fetch function instead. * * Example: * const query = EntityQuery.from('SimilarCustomersPOST') * .toType(Customer) * .withParameters({ * $method: 'POST', * $encoding: 'JSON', * $data: { companyName: 'Hilo Hattie', contactName: 'Donald', city: 'Duck', country: 'USA', phone: '808-234-5678' } * }); * */ export declare class AjaxPostWrapper { static wrapAjax(ajaxAdapter: breeze.AjaxAdapter): void; }