cobuild-angular-stack
Version:
Base stack angular sass jade gulp
1,509 lines (1,455 loc) • 640 kB
JavaScript
(function(window, angular, undefined) {'use strict';
var urlBase = "http://uniko.co:3000/api/v2";
var authHeader = 'authorization';
function getHost(url) {
var m = url.match(/^(?:https?:)?\/\/([^\/]+)/);
return m ? m[1] : null;
}
var urlBaseHost = getHost(urlBase) || location.host;
/**
* @ngdoc overview
* @name uniko.models
* @module
* @description
*
* The `uniko.models` module provides services for interacting with
* the models exposed by the LoopBack server via the REST API.
*
*/
var module = angular.module("uniko.models", ['ngResource']);
/**
* @ngdoc object
* @name uniko.models.Guest
* @header uniko.models.Guest
* @object
*
* @description
*
* A $resource object for interacting with the `Guest` model.
*
* ## Example
*
* See
* {@link http://docs.angularjs.org/api/ngResource.$resource#example $resource}
* for an example of using this object.
*
*/
module.factory(
"Guest",
['LoopBackResource', 'LoopBackAuth', '$injector', function(Resource, LoopBackAuth, $injector) {
var R = Resource(
urlBase + "/guests/:id",
{ 'id': '@id' },
{
/**
* @ngdoc method
* @name uniko.models.Guest#create
* @methodOf uniko.models.Guest
*
* @description
*
* Create a new instance of the model and persist it into the data source.
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"create": {
url: urlBase + "/guests",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#createMany
* @methodOf uniko.models.Guest
*
* @description
*
* Create a new instance of the model and persist it into the data source.
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Array.<Object>,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Array.<Object>} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"createMany": {
isArray: true,
url: urlBase + "/guests",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#upsert
* @methodOf uniko.models.Guest
*
* @description
*
* Update an existing model instance or insert a new one into the data source.
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"upsert": {
url: urlBase + "/guests",
method: "PUT"
},
/**
* @ngdoc method
* @name uniko.models.Guest#exists
* @methodOf uniko.models.Guest
*
* @description
*
* Check whether a model instance exists in the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - Model id
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* Data properties:
*
* - `exists` – `{boolean=}` -
*/
"exists": {
url: urlBase + "/guests/:id/exists",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#findById
* @methodOf uniko.models.Guest
*
* @description
*
* Find a model instance by id from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - Model id
*
* - `filter` – `{object=}` - Filter defining fields and include
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"findById": {
url: urlBase + "/guests/:id",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#find
* @methodOf uniko.models.Guest
*
* @description
*
* Find all instances of the model matched by filter from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `filter` – `{object=}` - Filter defining fields, where, include, order, offset, and limit
*
* @param {function(Array.<Object>,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Array.<Object>} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"find": {
isArray: true,
url: urlBase + "/guests",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#findOne
* @methodOf uniko.models.Guest
*
* @description
*
* Find first instance of the model matched by filter from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `filter` – `{object=}` - Filter defining fields, where, include, order, offset, and limit
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"findOne": {
url: urlBase + "/guests/findOne",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#updateAll
* @methodOf uniko.models.Guest
*
* @description
*
* Update instances of the model matched by where from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `where` – `{object=}` - Criteria to match model instances
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* The number of instances updated
*/
"updateAll": {
url: urlBase + "/guests/update",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#deleteById
* @methodOf uniko.models.Guest
*
* @description
*
* Delete a model instance by id from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - Model id
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"deleteById": {
url: urlBase + "/guests/:id",
method: "DELETE"
},
/**
* @ngdoc method
* @name uniko.models.Guest#count
* @methodOf uniko.models.Guest
*
* @description
*
* Count instances of the model matched by where from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `where` – `{object=}` - Criteria to match model instances
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* Data properties:
*
* - `count` – `{number=}` -
*/
"count": {
url: urlBase + "/guests/count",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#prototype$updateAttributes
* @methodOf uniko.models.Guest
*
* @description
*
* Update attributes for a model instance and persist it into the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - PersistedModel id
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"prototype$updateAttributes": {
url: urlBase + "/guests/:id",
method: "PUT"
},
/**
* @ngdoc method
* @name uniko.models.Guest#createChangeStream
* @methodOf uniko.models.Guest
*
* @description
*
* Create a change stream.
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `options` – `{object=}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* Data properties:
*
* - `changes` – `{ReadableStream=}` -
*/
"createChangeStream": {
url: urlBase + "/guests/change-stream",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#createOrder
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"createOrder": {
url: urlBase + "/guests/createOrder",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#updateOrder
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"updateOrder": {
url: urlBase + "/guests/updateOrder",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#makePaypalPayment
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* Data properties:
*
* - `url` – `{string=}` -
*/
"makePaypalPayment": {
url: urlBase + "/guests/makePaypalPayment",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#confirmPaypalPayment
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentId` – `{string}` -
*
* - `payerID` – `{string}` -
*
* - `token` – `{string}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"confirmPaypalPayment": {
url: urlBase + "/guests/confirmPaypalPayment",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#makeCardPayment
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"makeCardPayment": {
url: urlBase + "/guests/makeCardPayment",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#makeOxxoPayment
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"makeOxxoPayment": {
url: urlBase + "/guests/makeOxxoPayment",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Guest#makeMercadoPayment
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `orderId` – `{string}` -
*
* - `paymentInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"makeMercadoPagoPayment": {
url: urlBase + "/guests/makeMercadoPagoPayment",
method: "POST"
},
"getMercadoPayments": {
url: urlBase + "/guests/getMercadoPayments" ,
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Guest#contactUs
* @methodOf uniko.models.Guest
*
* @description
*
* <em>
* (The remote method definition does not provide any description.)
* </em>
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* - `contactInfo` – `{object}` -
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
"contactUs": {
url: urlBase + "/guests/contactUs",
method: "POST"
},
}
);
/**
* @ngdoc method
* @name uniko.models.Guest#updateOrCreate
* @methodOf uniko.models.Guest
*
* @description
*
* Update an existing model instance or insert a new one into the data source.
*
* @param {Object=} parameters Request parameters.
*
* This method does not accept any parameters.
* Supply an empty object or omit this argument altogether.
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
R["updateOrCreate"] = R["upsert"];
/**
* @ngdoc method
* @name uniko.models.Guest#update
* @methodOf uniko.models.Guest
*
* @description
*
* Update instances of the model matched by where from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `where` – `{object=}` - Criteria to match model instances
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* The number of instances updated
*/
R["update"] = R["updateAll"];
/**
* @ngdoc method
* @name uniko.models.Guest#destroyById
* @methodOf uniko.models.Guest
*
* @description
*
* Delete a model instance by id from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - Model id
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
R["destroyById"] = R["deleteById"];
/**
* @ngdoc method
* @name uniko.models.Guest#removeById
* @methodOf uniko.models.Guest
*
* @description
*
* Delete a model instance by id from the data source.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - Model id
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Guest` object.)
* </em>
*/
R["removeById"] = R["deleteById"];
/**
* @ngdoc property
* @name uniko.models.Guest#modelName
* @propertyOf uniko.models.Guest
* @description
* The name of the model represented by this $resource,
* i.e. `Guest`.
*/
R.modelName = "Guest";
return R;
}]);
/**
* @ngdoc object
* @name uniko.models.Account
* @header uniko.models.Account
* @object
*
* @description
*
* A $resource object for interacting with the `Account` model.
*
* ## Example
*
* See
* {@link http://docs.angularjs.org/api/ngResource.$resource#example $resource}
* for an example of using this object.
*
*/
module.factory(
"Account",
['LoopBackResource', 'LoopBackAuth', '$injector', function(Resource, LoopBackAuth, $injector) {
var R = Resource(
urlBase + "/accounts/:id",
{ 'id': '@id' },
{
// INTERNAL. Use Account.owner() instead.
"prototype$__get__owner": {
url: urlBase + "/accounts/:id/owner",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__findById__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Find a related item by id for accessTokens.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for accessTokens
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__findById__accessTokens": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/accessTokens/:fk",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__destroyById__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Delete a related item by id for accessTokens.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for accessTokens
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* This method returns no data.
*/
"prototype$__destroyById__accessTokens": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/accessTokens/:fk",
method: "DELETE"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__updateById__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Update a related item by id for accessTokens.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for accessTokens
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__updateById__accessTokens": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/accessTokens/:fk",
method: "PUT"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__findById__credentials
* @methodOf uniko.models.Account
*
* @description
*
* Find a related item by id for credentials.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for credentials
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__findById__credentials": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/credentials/:fk",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__destroyById__credentials
* @methodOf uniko.models.Account
*
* @description
*
* Delete a related item by id for credentials.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for credentials
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* This method returns no data.
*/
"prototype$__destroyById__credentials": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/credentials/:fk",
method: "DELETE"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__updateById__credentials
* @methodOf uniko.models.Account
*
* @description
*
* Update a related item by id for credentials.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for credentials
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__updateById__credentials": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/credentials/:fk",
method: "PUT"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__findById__identities
* @methodOf uniko.models.Account
*
* @description
*
* Find a related item by id for identities.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for identities
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__findById__identities": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/identities/:fk",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__destroyById__identities
* @methodOf uniko.models.Account
*
* @description
*
* Delete a related item by id for identities.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for identities
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* This method returns no data.
*/
"prototype$__destroyById__identities": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/identities/:fk",
method: "DELETE"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__updateById__identities
* @methodOf uniko.models.Account
*
* @description
*
* Update a related item by id for identities.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `fk` – `{*}` - Foreign key for identities
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__updateById__identities": {
params: {
'fk': '@fk'
},
url: urlBase + "/accounts/:id/identities/:fk",
method: "PUT"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__get__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Queries accessTokens of Account.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `filter` – `{object=}` -
*
* @param {function(Array.<Object>,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Array.<Object>} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__get__accessTokens": {
isArray: true,
url: urlBase + "/accounts/:id/accessTokens",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__create__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Creates a new instance in accessTokens of this model.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* @param {Object} postData Request data.
*
* This method expects a subset of model properties as request parameters.
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__create__accessTokens": {
url: urlBase + "/accounts/:id/accessTokens",
method: "POST"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__delete__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Deletes all accessTokens of this model.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* This method returns no data.
*/
"prototype$__delete__accessTokens": {
url: urlBase + "/accounts/:id/accessTokens",
method: "DELETE"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__count__accessTokens
* @methodOf uniko.models.Account
*
* @description
*
* Counts accessTokens of Account.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `where` – `{object=}` - Criteria to match model instances
*
* @param {function(Object,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Object} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* Data properties:
*
* - `count` – `{number=}` -
*/
"prototype$__count__accessTokens": {
url: urlBase + "/accounts/:id/accessTokens/count",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__get__credentials
* @methodOf uniko.models.Account
*
* @description
*
* Queries credentials of Account.
*
* @param {Object=} parameters Request parameters.
*
* - `id` – `{*}` - User id
*
* - `filter` – `{object=}` -
*
* @param {function(Array.<Object>,Object)=} successCb
* Success callback with two arguments: `value`, `responseHeaders`.
*
* @param {function(Object)=} errorCb Error callback with one argument:
* `httpResponse`.
*
* @returns {Array.<Object>} An empty reference that will be
* populated with the actual data once the response is returned
* from the server.
*
* <em>
* (The remote method definition does not provide any description.
* This usually means the response is a `Account` object.)
* </em>
*/
"prototype$__get__credentials": {
isArray: true,
url: urlBase + "/accounts/:id/credentials",
method: "GET"
},
/**
* @ngdoc method
* @name uniko.models.Account#prototype$__create__creden