@orbe-agro/client-core 5.5.39 → 5.5.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/user/UserService.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAK9D,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMrD;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,6BAMxD;AAED,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,gCAMzD;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,gCAOnE;AAED,wBAAsB,mCAAmC,CACrD,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,oBAQ7B"}
1
+ {"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/services/modules/dm/user/UserService.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAK9D,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMrD;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,6BAKxD;AAED,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,gCAMzD;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,gCAOnE;AAED,wBAAsB,mCAAmC,CACrD,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,oBAQ7B"}
@@ -11,9 +11,8 @@ async function apiFindUser(body) {
11
11
  }
12
12
  async function apiFindUserById(id) {
13
13
  return ApiService.fetchDataWithAxios({
14
- url: USER_ENDPOINT.findById.endpoint,
15
- method: USER_ENDPOINT.findById.httpMethod,
16
- params: { id }
14
+ url: USER_ENDPOINT.findById.endpoint + `/${id}`,
15
+ method: USER_ENDPOINT.findById.httpMethod
17
16
  });
18
17
  }
19
18
  async function apiFindByIds(filters) {
@@ -1 +1 @@
1
- {"version":3,"file":"UserService.js","sources":["../../../../../../lib/base/services/modules/dm/user/UserService.tsx"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { TGetUserResponse } from '@base/@types/models/dm/user'\nimport { endpointsConfig } from '@base/configs'\n\nconst USER_ENDPOINT = endpointsConfig.dm.user\n\nexport async function apiFindUser(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: USER_ENDPOINT.find.endpoint,\n method: USER_ENDPOINT.find.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindUserById(id: string | number) {\n return ApiService.fetchDataWithAxios<TGetUserResponse>({\n url: USER_ENDPOINT.findById.endpoint,\n method: USER_ENDPOINT.findById.httpMethod,\n params: { id },\n })\n}\n\nexport async function apiFindByIds(filters?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: USER_ENDPOINT.findByIds.endpoint,\n method: USER_ENDPOINT.findByIds.httpMethod,\n data: filters,\n })\n}\n\nexport async function apiFindCentrosByUserId(userId: string | number) {\n const { endpoint, httpMethod } = USER_ENDPOINT.findCentros(userId)\n\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpoint,\n method: httpMethod,\n })\n}\n\nexport async function apiVerificaUserPossuiFuncionalidade(\n userId: string,\n nomeFuncionalidade: string,\n) {\n return ApiService.fetchDataWithAxios({\n url: USER_ENDPOINT.verificaUserPossuiFuncionalidade.endpoint\n .replace('{id}', userId)\n .replace('{funcionalidade}', nomeFuncionalidade),\n method: USER_ENDPOINT.verificaUserPossuiFuncionalidade.httpMethod,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAKA,MAAM,gBAAgBA,yBAAgB,GAAG;AAEzC,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,KAAK;AAAA,IACxB,QAAQ,cAAc,KAAK;AAAA,IAC3B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,gBAAgB,IAAqB;AACvD,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,SAAS;AAAA,IAC5B,QAAQ,cAAc,SAAS;AAAA,IAC/B,QAAQ,EAAE,GAAA;AAAA,EAAG,CAChB;AACL;AAEA,eAAsB,aAAa,SAAyB;AACxD,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,UAAU;AAAA,IAC7B,QAAQ,cAAc,UAAU;AAAA,IAChC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,QAAyB;AAClE,QAAM,EAAE,UAAU,WAAA,IAAe,cAAc,YAAY,MAAM;AAEjE,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK;AAAA,IACL,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oCAClB,QACA,oBACF;AACE,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,cAAc,iCAAiC,SAC/C,QAAQ,QAAQ,MAAM,EACtB,QAAQ,oBAAoB,kBAAkB;AAAA,IACnD,QAAQ,cAAc,iCAAiC;AAAA,EAAA,CAC1D;AACL;"}
1
+ {"version":3,"file":"UserService.js","sources":["../../../../../../lib/base/services/modules/dm/user/UserService.tsx"],"sourcesContent":["import ApiService from '@/services/ApiService'\nimport { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport { TGetUserResponse } from '@base/@types/models/dm/user'\nimport { endpointsConfig } from '@base/configs'\n\nconst USER_ENDPOINT = endpointsConfig.dm.user\n\nexport async function apiFindUser(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: USER_ENDPOINT.find.endpoint,\n method: USER_ENDPOINT.find.httpMethod,\n data: body,\n })\n}\n\nexport async function apiFindUserById(id: string | number) {\n return ApiService.fetchDataWithAxios<TGetUserResponse>({\n url: USER_ENDPOINT.findById.endpoint + `/${id}`,\n method: USER_ENDPOINT.findById.httpMethod,\n })\n}\n\nexport async function apiFindByIds(filters?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: USER_ENDPOINT.findByIds.endpoint,\n method: USER_ENDPOINT.findByIds.httpMethod,\n data: filters,\n })\n}\n\nexport async function apiFindCentrosByUserId(userId: string | number) {\n const { endpoint, httpMethod } = USER_ENDPOINT.findCentros(userId)\n\n return ApiService.fetchDataWithAxios<TQueryResponse<any>>({\n url: endpoint,\n method: httpMethod,\n })\n}\n\nexport async function apiVerificaUserPossuiFuncionalidade(\n userId: string,\n nomeFuncionalidade: string,\n) {\n return ApiService.fetchDataWithAxios({\n url: USER_ENDPOINT.verificaUserPossuiFuncionalidade.endpoint\n .replace('{id}', userId)\n .replace('{funcionalidade}', nomeFuncionalidade),\n method: USER_ENDPOINT.verificaUserPossuiFuncionalidade.httpMethod,\n })\n}\n"],"names":["endpointsConfig"],"mappings":";;;AAKA,MAAM,gBAAgBA,yBAAgB,GAAG;AAEzC,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,KAAK;AAAA,IACxB,QAAQ,cAAc,KAAK;AAAA,IAC3B,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,gBAAgB,IAAqB;AACvD,SAAO,WAAW,mBAAqC;AAAA,IACnD,KAAK,cAAc,SAAS,WAAW,IAAI,EAAE;AAAA,IAC7C,QAAQ,cAAc,SAAS;AAAA,EAAA,CAClC;AACL;AAEA,eAAsB,aAAa,SAAyB;AACxD,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK,cAAc,UAAU;AAAA,IAC7B,QAAQ,cAAc,UAAU;AAAA,IAChC,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,uBAAuB,QAAyB;AAClE,QAAM,EAAE,UAAU,WAAA,IAAe,cAAc,YAAY,MAAM;AAEjE,SAAO,WAAW,mBAAwC;AAAA,IACtD,KAAK;AAAA,IACL,QAAQ;AAAA,EAAA,CACX;AACL;AAEA,eAAsB,oCAClB,QACA,oBACF;AACE,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,cAAc,iCAAiC,SAC/C,QAAQ,QAAQ,MAAM,EACtB,QAAQ,oBAAoB,kBAAkB;AAAA,IACnD,QAAQ,cAAc,iCAAiC;AAAA,EAAA,CAC1D;AACL;"}
@@ -15,9 +15,8 @@ export async function apiFindUser(body?: IFilterParams) {
15
15
 
16
16
  export async function apiFindUserById(id: string | number) {
17
17
  return ApiService.fetchDataWithAxios<TGetUserResponse>({
18
- url: USER_ENDPOINT.findById.endpoint,
18
+ url: USER_ENDPOINT.findById.endpoint + `/${id}`,
19
19
  method: USER_ENDPOINT.findById.httpMethod,
20
- params: { id },
21
20
  })
22
21
  }
23
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.5.39",
3
+ "version": "5.5.40",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",