index.js
function Query(config) {
	this.type   	= null;
	this.endpoint 	= null;

	this.config = {
		start 		: moment(),
		end 		: moment(),
		filters 	: {},
		measures	: ['units'],
		limit 		: 100
	};
	// Extend options with user stuff
	_.extend(this.config, config);

	// Private Options
	this._time    = null;
	this._body    = {};
}
function Query(config) {
	this.type   	= null;
	this.endpoint 	= null;

	this.config = {
		start 		: moment(),
		end 		: moment(),
		filters 	: {},
		measures	: ['units'],
		limit 		: 100
	};
	// Extend options with user stuff
	_.extend(this.config, config);

	// Private Options
	this._time    = null;
	this._body    = {};
}
function Query ( config ) { this . type = null ; this . endpoint = null ; this . config = { start : moment ( ) , end : moment ( ) , filters : { } , measures : [ 'units' ] , limit : 100 } ; // Extend options with user stuff _ . extend ( this . config , config ) ; // Private Options this . _time = null ; this . _body = { } ; }
Initialize a new `Query` with the given `query`.

Constants to use with Query

// Import itc-report
var itc = require("itunesconnect"),

// Types
itc.type.inapp
itc.type.app

// Transactions
itc.transaction.free
itc.transaction.paid
itc.transaction.redownload
itc.transaction.update
itc.transaction.refund

// Platforms
itc.platform.desktop
itc.platform.iphone
itc.platform.ipad
itc.platform.ipod

// Measures
itc.measure.proceeds
itc.measure.units

@class Query
@constructor
@private
@param {Object} config
@chainable
@return {Query}
Initialize a new Query with the given query .