Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Feat: Changes End Points (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Jan 29, 2024
1 parent b666e16 commit 8720cdf
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
16 changes: 8 additions & 8 deletions src/api/ADempiere/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function requestGetConversionRate() {
*/
export function systemInfo() {
return request({
url: '/common/system-info',
url: '/core-functionality/system-info',
method: 'get'
})
.then(response => {
Expand All @@ -56,7 +56,7 @@ export function requestGetCountryDefinition({
id
}) {
return request({
url: `/common/countries/${id}`,
url: `/core-functionality/countries/${id}`,
method: 'get'
})
.then(countryResponse => {
Expand All @@ -76,7 +76,7 @@ export function requestOrganizationsList({
pageSize = 100
}) {
return request({
url: '/common/organizations',
url: '/security/organizations',
method: 'get',
params: {
role_id: roleId,
Expand Down Expand Up @@ -106,7 +106,7 @@ export function requestWarehousesList({
pageSize = 100
}) {
return request({
url: '/common/warehouses',
url: '/security/warehouses',
method: 'get',
params: {
organization_id: organizationId,
Expand All @@ -125,7 +125,7 @@ export function requestLanguagesList({
pageSize = ROWS_OF_RECORDS_BY_PAGE
}) {
return request({
url: '/common/languages',
url: '/core-functionality/languages',
method: 'get',
params: {
// Page Data
Expand Down Expand Up @@ -164,7 +164,7 @@ export function requestListBusinessPartner({
pageToken
}) {
return request({
url: '/common/business-partners',
url: '/core-functionality/business-partners',
method: 'get',
params: {
pos_uuid: posUuid,
Expand Down Expand Up @@ -210,7 +210,7 @@ export function businessPartner({
searchValue
}) {
return request({
url: `/common/business-partners`,
url: `/core-functionality/business-partners`,
method: 'get',
params: {
search_value: searchValue
Expand Down Expand Up @@ -256,7 +256,7 @@ export function requestCreateBusinessPartner({
posUuid
}) {
return request({
url: '/common/create-business-partner',
url: '/core-functionality/create-business-partner',
method: 'post',
data: {
value,
Expand Down
10 changes: 5 additions & 5 deletions src/api/ADempiere/dashboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function lisDashboardsRequest({
pageSize = ROWS_OF_RECORDS_BY_PAGE
}) {
return request({
url: '/dashboard/dashboards',
url: '/dashboarding/dashboards',
method: 'get',
params: {
// Page Data
Expand All @@ -58,7 +58,7 @@ export function getMetricRequest({
id
}) {
return request({
url: `/dashboard/dashboards/${id}/metrics`,
url: `/dashboarding/dashboards/${id}/metrics`,
method: 'get'
})
.then(chart => {
Expand All @@ -74,7 +74,7 @@ export function getFavoritesRequest({
pageSize
}) {
return request({
url: '/dashboard/favorites',
url: '/dashboarding/favorites',
method: 'get',
params: {
// Page Data
Expand Down Expand Up @@ -103,7 +103,7 @@ export function getPendingDocumentsRequest({
pageSize = ROWS_OF_RECORDS_BY_PAGE
}) {
return request({
url: '/dashboard/pending-documents',
url: '/dashboarding/pending-documents',
method: 'get',
params: {
// Page Data
Expand All @@ -129,7 +129,7 @@ export function getPendingDocumentsRequest({
*/
export function listNotifiicationsRequest() {
return request({
url: '/dashboard/notifications',
url: '/dashboarding/notifications',
method: 'get'
})
.then(notificationsResponse => {
Expand Down
6 changes: 3 additions & 3 deletions src/api/ADempiere/logs/tabInfo/windowDashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function requestExistsWindowDashboards({
windowId
}) {
return request({
url: `/dashboard/dashboards/windows/${windowId}/exists`,
url: `/dashboarding/dashboards/windows/${windowId}/exists`,
method: 'get',
params: {
tab_id: tabId
Expand All @@ -44,7 +44,7 @@ export function requestListWindowDashboards({
pageToken
}) {
return request({
url: `/dashboard/dashboards/windows/${windowId}`,
url: `/dashboarding/dashboards/windows/${windowId}`,
method: 'get',
params: {
tab_id: tabId,
Expand All @@ -66,7 +66,7 @@ export function requestGetWindowMetrics({
filters
}) {
return request({
url: `/dashboard/dashboards/windows/metrics/${id}/${tableName}/${recordId}`,
url: `/dashboarding/dashboards/windows/metrics/${id}/${tableName}/${recordId}`,
method: 'get',
params: {
// DSL Query
Expand Down
6 changes: 3 additions & 3 deletions src/api/ADempiere/security/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export function requestLogin({
data: {
user_name: userName,
user_pass: password,
role_id: roleId,
organization_id: organizationId,
warehouse_id: warehouseId
role_id: Number(roleId),
organization_id: Number(organizationId),
warehouse_id: Number(warehouseId)
}
})
.then(response => {
Expand Down
16 changes: 8 additions & 8 deletions src/api/ADempiere/system-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function requestOrganizationsList({
pageSize = 100
}) {
return request({
url: '/common/organizations',
url: '/security/organizations',
method: 'get',
params: {
role_id: roleId,
Expand Down Expand Up @@ -61,7 +61,7 @@ export function requestWarehousesList({
pageSize = 100
}) {
return request({
url: '/common/warehouses',
url: '/security/warehouses',
method: 'get',
params: {
organization_id: organizationId,
Expand Down Expand Up @@ -90,7 +90,7 @@ export function requestGetCountryDefinition({
uuid
}) {
return request({
url: '/common/country',
url: '/security/country',
method: 'get',
params: {
id,
Expand All @@ -110,7 +110,7 @@ export function requestLanguagesList({
pageSize = ROWS_OF_RECORDS_BY_PAGE
}) {
return request({
url: '/common/languages',
url: '/core-functionality/languages',
method: 'get',
params: {
// Page Data
Expand Down Expand Up @@ -157,7 +157,7 @@ export function requestCreateBusinessPartner({
posUuid
}) {
return request({
url: '/common/create-business-partner',
url: '/core-functionality/create-business-partner',
method: 'post',
data: {
value,
Expand Down Expand Up @@ -197,7 +197,7 @@ export function requestGetBusinessPartner({
searchValue
}) {
return request({
url: '/common/business-partner',
url: '/core-functionality/business-partner',
method: 'get',
params: {
pos_uuid: posUuid,
Expand Down Expand Up @@ -226,7 +226,7 @@ export function requestListBusinessPartner({
pageToken
}) {
return request({
url: '/common/business-partners',
url: '/core-functionality/business-partners',
method: 'get',
params: {
pos_uuid: posUuid,
Expand Down Expand Up @@ -271,7 +271,7 @@ export function requestGetConversionRate({
conversionDate
}) {
return request({
url: '/common/conversion-rate',
url: '/core-functionality/conversion-rate',
method: 'get',
params: {
pos_uuid: posUuid,
Expand Down

0 comments on commit 8720cdf

Please sign in to comment.