The search method parameters are optional
This commit is contained in:
parent
0576e69ad5
commit
71e12a1aae
9 changed files with 36 additions and 36 deletions
|
@ -84,13 +84,13 @@ App.Http.Admins = (function () {
|
|||
* Search admins by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('admins/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Appointments = (function () {
|
|||
* Search appointments by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('appointments/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Categories = (function () {
|
|||
* Search categories by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('categories/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Providers = (function () {
|
|||
* Search providers by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('providers/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Secretaries = (function () {
|
|||
* Search secretaries by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('secretaries/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Services = (function () {
|
|||
* Search services by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('services/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Settings = (function () {
|
|||
* Search settings by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('settings/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Unavailabilities = (function () {
|
|||
* Search unavailabilities by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('unavailabilities/search');
|
||||
|
||||
const data = {
|
||||
|
|
|
@ -84,13 +84,13 @@ App.Http.Webhooks = (function () {
|
|||
* Search webhooks by keyword.
|
||||
*
|
||||
* @param {String} keyword
|
||||
* @param {Number} limit
|
||||
* @param {Number} offset
|
||||
* @param {String} orderBy
|
||||
* @param {Number} [limit]
|
||||
* @param {Number} [offset]
|
||||
* @param {String} [orderBy]
|
||||
*
|
||||
* @return {Object}
|
||||
*/
|
||||
function search(keyword, limit, offset, orderBy) {
|
||||
function search(keyword, limit = null, offset = null, orderBy = null) {
|
||||
const url = App.Utils.Url.siteUrl('webhooks/search');
|
||||
|
||||
const data = {
|
||||
|
|
Loading…
Reference in a new issue