diff --git a/assets/js/http/admins_http_client.js b/assets/js/http/admins_http_client.js index 97241146..b4a63dbb 100644 --- a/assets/js/http/admins_http_client.js +++ b/assets/js/http/admins_http_client.js @@ -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 = { diff --git a/assets/js/http/appointments_http_client.js b/assets/js/http/appointments_http_client.js index 5b88fe44..4470c08d 100644 --- a/assets/js/http/appointments_http_client.js +++ b/assets/js/http/appointments_http_client.js @@ -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 = { diff --git a/assets/js/http/categories_http_client.js b/assets/js/http/categories_http_client.js index 9de10cbc..d83c43f0 100644 --- a/assets/js/http/categories_http_client.js +++ b/assets/js/http/categories_http_client.js @@ -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 = { diff --git a/assets/js/http/providers_http_client.js b/assets/js/http/providers_http_client.js index 55df5d6f..e6fd3163 100644 --- a/assets/js/http/providers_http_client.js +++ b/assets/js/http/providers_http_client.js @@ -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 = { diff --git a/assets/js/http/secretaries_http_client.js b/assets/js/http/secretaries_http_client.js index dfa074fd..265b54fa 100644 --- a/assets/js/http/secretaries_http_client.js +++ b/assets/js/http/secretaries_http_client.js @@ -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 = { diff --git a/assets/js/http/services_http_client.js b/assets/js/http/services_http_client.js index a64f6427..772d3352 100644 --- a/assets/js/http/services_http_client.js +++ b/assets/js/http/services_http_client.js @@ -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 = { diff --git a/assets/js/http/settings_http_client.js b/assets/js/http/settings_http_client.js index dba9eef5..2fc429d4 100644 --- a/assets/js/http/settings_http_client.js +++ b/assets/js/http/settings_http_client.js @@ -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 = { diff --git a/assets/js/http/unavailabilities_http_client.js b/assets/js/http/unavailabilities_http_client.js index 8cfe520c..0f105bf4 100644 --- a/assets/js/http/unavailabilities_http_client.js +++ b/assets/js/http/unavailabilities_http_client.js @@ -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 = { diff --git a/assets/js/http/webhooks_http_client.js b/assets/js/http/webhooks_http_client.js index 65a9ff9f..56364b27 100644 --- a/assets/js/http/webhooks_http_client.js +++ b/assets/js/http/webhooks_http_client.js @@ -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 = {