import * as breeze from 'breeze-client'; /** * Functions to enable Breeze to use POST for queries when * special parameters are passed using the .withParameters function. * * Copyright 2015-2021 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: * var ajaxAdapter = config.initializeAdapterInstance('ajax', adapterName, true); * AjaxPostWrapper.wrapAjax(ajaxAdapter); * * Example: * var query = breeze.EntityQuery.from('SimilarCustomersPOST') * .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; }