@orbe-agro/client-core 5.3.280 → 5.3.282

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.
Files changed (34) hide show
  1. package/dist/@ecme/components/ui/DatePicker/DatePicker.js +1 -1
  2. package/dist/@ecme/components/ui/DatePicker/DatePicker.js.map +1 -1
  3. package/dist/@types/base/configs/endpoints.config/adm/adm.d.ts +1 -0
  4. package/dist/@types/base/configs/endpoints.config/adm/adm.d.ts.map +1 -1
  5. package/dist/@types/base/configs/endpoints.config/adm/config/tarefasAgendadas.d.ts +1 -0
  6. package/dist/@types/base/configs/endpoints.config/adm/config/tarefasAgendadas.d.ts.map +1 -1
  7. package/dist/@types/base/configs/endpoints.config/dm/config/user.d.ts +4 -0
  8. package/dist/@types/base/configs/endpoints.config/dm/config/user.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +4 -0
  10. package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +5 -0
  12. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  13. package/dist/@types/base/services/modules/AdmService.d.ts +3 -0
  14. package/dist/@types/base/services/modules/AdmService.d.ts.map +1 -1
  15. package/dist/@types/base/services/modules/dm/user/UserService.d.ts +1 -0
  16. package/dist/@types/base/services/modules/dm/user/UserService.d.ts.map +1 -1
  17. package/dist/base/configs/endpoints.config/adm/config/tarefasAgendadas.js +2 -1
  18. package/dist/base/configs/endpoints.config/adm/config/tarefasAgendadas.js.map +1 -1
  19. package/dist/base/configs/endpoints.config/dm/config/user.js +2 -1
  20. package/dist/base/configs/endpoints.config/dm/config/user.js.map +1 -1
  21. package/dist/base/index.js +4 -2
  22. package/dist/base/services/index.js +4 -2
  23. package/dist/base/services/modules/AdmService.js +8 -0
  24. package/dist/base/services/modules/AdmService.js.map +1 -1
  25. package/dist/base/services/modules/dm/index.js +3 -2
  26. package/dist/base/services/modules/dm/user/UserService.js +8 -1
  27. package/dist/base/services/modules/dm/user/UserService.js.map +1 -1
  28. package/dist/base/services/modules/index.js +4 -2
  29. package/lib/@ecme/components/ui/DatePicker/DatePicker.tsx +1 -1
  30. package/lib/base/configs/endpoints.config/adm/config/tarefasAgendadas.ts +2 -1
  31. package/lib/base/configs/endpoints.config/dm/config/user.ts +2 -1
  32. package/lib/base/services/modules/AdmService.ts +8 -0
  33. package/lib/base/services/modules/dm/user/UserService.tsx +9 -0
  34. package/package.json +1 -1
@@ -118,7 +118,7 @@ const DatePicker = (props) => {
118
118
  capitalize(dayjs(date).locale(finalLocale).format(dateFormat))
119
119
  );
120
120
  if (closePickerOnChange) {
121
- openDropdown();
121
+ closeDropdown();
122
122
  }
123
123
  window.setTimeout(() => inputRef.current?.focus(), 0);
124
124
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n openDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default D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AAU,MAAM,OAAO,KAAK;AACzC,QAAI,MAAM,IAAI,EAAE,WAAW;AACvB,eAAS,IAAI;AACb,wBAAkB,IAAI;AACR,oBAAA,MAAM,OAAO,KAAK;AAChC,uBAAiB,IAAI;AAAA,IAAA,OAClB;AACW,oBAAA,MAAM,OAAO,KAAK;AAAA,IAAA;AAAA,EAExC;AAGI,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,KAAKA,YAAa,KAAK,QAAQ;AAAA,MAC/B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,WACI,SAAS,SAAS,QAAQ,aAAa,CAAC,CAAC,UAAU,CAAC;AAAA,MAExD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,WAAW;AAAA,MACX,SAAS;AAAA,MACT;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,QAAQ;AAAA,UACR,OAAO,aAAa,gBAAgB;AAAA,UACpC,cACI,iBACC,kBAAkB,OAAO,6BAAa;UAE3C,OACI,kBAAkB,OACZ,SACA,UAAU,MAAM,MAAM,EAAE,OAAO;AAAA,UAEzC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAc;AAAA,UACd;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,eAAe;AAAA,UACf,UAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EACJ;AAER;"}
1
+ {"version":3,"file":"DatePicker.js","sources":["../../../../../lib/@ecme/components/ui/DatePicker/DatePicker.tsx"],"sourcesContent":["import { useState, useRef, useEffect } from 'react'\nimport dayjs from 'dayjs'\nimport useControllableState from '../hooks/useControllableState'\nimport useMergedRef from '../hooks/useMergeRef'\nimport Calendar from './Calendar'\nimport BasePicker from './BasePicker'\nimport { useConfig } from '../ConfigProvider'\nimport capitalize from '../utils/capitalize'\nimport type { CommonProps } from '../@types/common'\nimport type { CalendarSharedProps } from './CalendarBase'\nimport type { BasePickerSharedProps } from './BasePicker'\nimport type { FocusEvent, KeyboardEvent, ChangeEvent, Ref } from 'react'\n\nconst DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'\n\nexport interface DatePickerProps\n extends CommonProps,\n Omit<\n CalendarSharedProps,\n | 'onMonthChange'\n | 'onChange'\n | 'isDateInRange'\n | 'isDateFirstInRange'\n | 'isDateLastInRange'\n | 'month'\n >,\n BasePickerSharedProps {\n closePickerOnChange?: boolean\n defaultOpen?: boolean\n defaultValue?: Date | null\n value?: Date | null\n inputFormat?: string\n inputtableBlurClose?: boolean\n openPickerOnClear?: boolean\n onChange?: (value: Date | null) => void\n ref?: Ref<HTMLInputElement>\n}\n\nconst DatePicker = (props: DatePickerProps) => {\n const {\n className,\n clearable = true,\n clearButton,\n closePickerOnChange = true,\n dateViewCount,\n dayClassName,\n dayStyle,\n defaultMonth,\n defaultOpen = false,\n defaultValue,\n defaultView,\n disabled = false,\n disableDate,\n enableHeaderLabel,\n disableOutOfMonth,\n firstDayOfWeek = 'monday',\n hideOutOfMonthDates,\n hideWeekdays,\n inputFormat,\n inputPrefix,\n inputSuffix,\n inputtable,\n labelFormat = {\n month: 'MMM',\n year: 'YYYY',\n },\n locale,\n maxDate,\n minDate,\n name = 'date',\n onBlur,\n onChange,\n onFocus,\n onDropdownClose,\n onDropdownOpen,\n openPickerOnClear = false,\n renderDay,\n ref = null,\n size,\n style,\n type,\n value,\n weekendDays,\n yearLabelFormat,\n ...rest\n } = props\n\n const { locale: themeLocale } = useConfig()\n const finalLocale = locale || themeLocale\n\n const dateFormat =\n type === 'date'\n ? DEFAULT_INPUT_FORMAT\n : inputFormat || DEFAULT_INPUT_FORMAT\n\n const [dropdownOpened, setDropdownOpened] = useState(defaultOpen)\n\n const inputRef = useRef<HTMLInputElement>(null)\n\n const [lastValidValue, setLastValidValue] = useState(defaultValue ?? null)\n\n const [_value, setValue] = useControllableState({\n prop: value,\n defaultProp: defaultValue,\n onChange,\n })\n\n const [calendarMonth, setCalendarMonth] = useState(\n _value || defaultMonth || new Date(),\n )\n\n const [focused, setFocused] = useState(false)\n\n const [inputState, setInputState] = useState(\n _value instanceof Date\n ? capitalize(dayjs(_value).locale(finalLocale).format(dateFormat))\n : '',\n )\n\n const closeDropdown = () => {\n setDropdownOpened(false)\n onDropdownClose?.()\n }\n\n const openDropdown = () => {\n setDropdownOpened(true)\n onDropdownOpen?.()\n }\n\n useEffect(() => {\n if (!_value) {\n if (maxDate && dayjs(calendarMonth).isAfter(maxDate)) {\n setCalendarMonth(maxDate)\n }\n\n if (minDate && dayjs(calendarMonth).isBefore(minDate)) {\n setCalendarMonth(minDate)\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [minDate, maxDate])\n\n useEffect(() => {\n if (value === null && !focused) {\n setInputState('')\n }\n\n if (value instanceof Date && !focused) {\n setInputState(\n capitalize(dayjs(value).locale(finalLocale).format(dateFormat)),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, focused, themeLocale])\n\n useEffect(() => {\n if (defaultValue instanceof Date && inputState && !focused) {\n setInputState(\n capitalize(\n dayjs(_value).locale(finalLocale).format(dateFormat),\n ),\n )\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [themeLocale])\n\n const handleValueChange = (date: Date | null) => {\n setValue(date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n if (closePickerOnChange) {\n closeDropdown()\n }\n window.setTimeout(() => inputRef.current?.focus(), 0)\n }\n\n const handleClear = () => {\n setValue(null)\n setLastValidValue(null)\n setInputState('')\n if (openPickerOnClear) {\n openDropdown()\n }\n inputRef.current?.focus()\n }\n\n const parseDate = (date: string) =>\n dayjs(date, dateFormat, finalLocale).toDate()\n\n const setDateFromInput = () => {\n let date = typeof _value === 'string' ? parseDate(_value) : _value\n\n if (maxDate && dayjs(date).isAfter(maxDate)) {\n date = maxDate\n }\n\n if (minDate && dayjs(date).isBefore(minDate)) {\n date = minDate\n }\n\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date as Date)\n setInputState(\n capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),\n )\n setCalendarMonth(date as Date)\n } else {\n setValue(lastValidValue)\n }\n }\n\n const handleInputBlur = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onBlur === 'function') {\n onBlur(event)\n }\n setFocused(false)\n\n if (inputtable) {\n setDateFromInput()\n }\n }\n\n const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter' && inputtable) {\n closeDropdown()\n setDateFromInput()\n }\n }\n\n const handleInputFocus = (event: FocusEvent<HTMLInputElement, Element>) => {\n if (typeof onFocus === 'function') {\n onFocus(event)\n }\n setFocused(true)\n }\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n openDropdown()\n\n const date = parseDate(event.target.value)\n if (dayjs(date).isValid()) {\n setValue(date)\n setLastValidValue(date)\n setInputState(event.target.value)\n setCalendarMonth(date)\n } else {\n setInputState(event.target.value)\n }\n }\n\n return (\n <BasePicker\n ref={useMergedRef(ref, inputRef)}\n inputtable={inputtable}\n dropdownOpened={dropdownOpened as boolean}\n setDropdownOpened={setDropdownOpened}\n size={size}\n style={style}\n className={className}\n name={name}\n inputLabel={inputState}\n clearable={\n type === 'date' ? false : clearable && !!_value && !disabled\n }\n clearButton={clearButton}\n disabled={disabled}\n type={type}\n inputPrefix={inputPrefix}\n inputSuffix={inputSuffix}\n onChange={handleChange}\n onBlur={handleInputBlur}\n onFocus={handleInputFocus}\n onKeyDown={handleKeyDown}\n onClear={handleClear}\n onDropdownClose={onDropdownClose}\n onDropdownOpen={onDropdownOpen}\n {...rest}\n >\n <Calendar\n locale={finalLocale}\n month={inputtable ? calendarMonth : undefined}\n defaultMonth={\n defaultMonth ||\n (_value instanceof Date ? _value : new Date())\n }\n value={\n _value instanceof Date\n ? _value\n : _value && dayjs(_value).toDate()\n }\n labelFormat={labelFormat}\n dayClassName={dayClassName}\n dayStyle={dayStyle}\n disableOutOfMonth={disableOutOfMonth}\n minDate={minDate}\n maxDate={maxDate}\n disableDate={disableDate}\n firstDayOfWeek={firstDayOfWeek}\n preventFocus={inputtable}\n dateViewCount={dateViewCount}\n enableHeaderLabel={enableHeaderLabel}\n defaultView={defaultView}\n hideOutOfMonthDates={hideOutOfMonthDates}\n hideWeekdays={hideWeekdays}\n renderDay={renderDay}\n weekendDays={weekendDays}\n yearLabelFormat={yearLabelFormat}\n onMonthChange={setCalendarMonth}\n onChange={handleValueChange}\n />\n </BasePicker>\n )\n}\n\nexport default DatePicker\n"],"names":["useMergedRef"],"mappings":";;;;;;;;;;AAaA,MAAM,uBAAuB;AAyBvB,MAAA,aAAa,CAAC,UAA2B;AACrC,QAAA;AAAA,IACF;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,IACpB;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;A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AAA,QAAA;AAAA,UACG,QAAQ;AAAA,UACR,OAAO,aAAa,gBAAgB;AAAA,UACpC,cACI,iBACC,kBAAkB,OAAO,6BAAa;UAE3C,OACI,kBAAkB,OACZ,SACA,UAAU,MAAM,MAAM,EAAE,OAAO;AAAA,UAEzC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAc;AAAA,UACd;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,eAAe;AAAA,UACf,UAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IACd;AAAA,EACJ;AAER;"}
@@ -28,6 +28,7 @@ declare const adm: {
28
28
  tarefasAgendadas: {
29
29
  findAll: string;
30
30
  changeStatus: string;
31
+ execute: string;
31
32
  };
32
33
  };
33
34
  export default adm;
@@ -1 +1 @@
1
- {"version":3,"file":"adm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/adm/adm.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKR,CAAA;AAED,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"adm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/adm/adm.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKR,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -1,6 +1,7 @@
1
1
  declare const tarefasAgendadas: {
2
2
  findAll: string;
3
3
  changeStatus: string;
4
+ execute: string;
4
5
  };
5
6
  export default tarefasAgendadas;
6
7
  //# sourceMappingURL=tarefasAgendadas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tarefasAgendadas.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/adm/config/tarefasAgendadas.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB;;;CAGrB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"tarefasAgendadas.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/adm/config/tarefasAgendadas.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB;;;;CAIrB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -11,6 +11,10 @@ declare const user: {
11
11
  endpoint: string;
12
12
  httpMethod: "get";
13
13
  };
14
+ verificaUserPossuiFuncionalidade: {
15
+ endpoint: string;
16
+ httpMethod: string;
17
+ };
14
18
  };
15
19
  export default user;
16
20
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/user.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;;;;0BAGgB,MAAM,GAAG,MAAM;;;;CAIxC,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/dm/config/user.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,IAAI;;;;;;;;;0BAGgB,MAAM,GAAG,MAAM;;;;;;;;CAKxC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -252,6 +252,10 @@ declare const dm: {
252
252
  endpoint: string;
253
253
  httpMethod: "get";
254
254
  };
255
+ verificaUserPossuiFuncionalidade: {
256
+ endpoint: string;
257
+ httpMethod: string;
258
+ };
255
259
  };
256
260
  departamento: {
257
261
  findMonitor: {
@@ -1 +1 @@
1
- {"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BP,CAAA;AAED,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/dm/dm.ts"],"names":[],"mappings":"AA2BA,QAAA,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BP,CAAA;AAED,eAAe,EAAE,CAAC"}
@@ -22,6 +22,7 @@ declare const endpointNavigationConfig: {
22
22
  tarefasAgendadas: {
23
23
  findAll: string;
24
24
  changeStatus: string;
25
+ execute: string;
25
26
  };
26
27
  racao: {
27
28
  segmentoProduto: {
@@ -598,6 +599,10 @@ declare const endpointNavigationConfig: {
598
599
  endpoint: string;
599
600
  httpMethod: "get";
600
601
  };
602
+ verificaUserPossuiFuncionalidade: {
603
+ endpoint: string;
604
+ httpMethod: string;
605
+ };
601
606
  };
602
607
  departamento: {
603
608
  findMonitor: {
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],"mappings":"AAiDA,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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=> Promise<TVinculosUsuario>;
8
8
  export declare const apiGetTarefasAgendadas: (body?: IFilterParams) => Promise<TQueryResponse<TTarefasAgendadas>>;
9
9
  export declare const apiChangeStatusTarefasAgendadas: (body?: IFilterParams) => Promise<TQueryResponse<TTarefasAgendadas>>;
10
+ export declare const apiGetExecuteTarefasAgendadas: (id: number | string, data?: {
11
+ dataUltimaExecucao?: string | null;
12
+ }) => Promise<void>;
10
13
  export declare function apiGetRolesByFuncionalidadeUrl(params: string): Promise<TQueryResponse<TUser>>;
11
14
  //# sourceMappingURL=AdmService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdmService.d.ts","sourceRoot":"","sources":["../../../../../lib/base/services/modules/AdmService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAGlF,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,kCAMrD;AAED,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,kCAMrD;AAED,eAAO,MAAM,2BAA2B,GAAU,QAAQ,MAAM,sBAK/D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,QAAQ,MAAM,8BAK/D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,OAAO,aAAa,+CAMhE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAU,OAAO,aAAa,+CAMzE,CAAC;AAEF,wBAAsB,8BAA8B,CAAC,MAAM,EAAE,MAAM,kCAKlE"}
1
+ {"version":3,"file":"AdmService.d.ts","sourceRoot":"","sources":["../../../../../lib/base/services/modules/AdmService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAGlF,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,kCAMrD;AAED,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,kCAMrD;AAED,eAAO,MAAM,2BAA2B,GAAU,QAAQ,MAAM,sBAK/D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAU,QAAQ,MAAM,8BAK/D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,OAAO,aAAa,+CAMhE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAU,OAAO,aAAa,+CAMzE,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAU,IAAI,MAAM,GAAG,MAAM,EAAE,OAAO;IAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,kBAMrH,CAAC;AAEF,wBAAsB,8BAA8B,CAAC,MAAM,EAAE,MAAM,kCAKlE"}
@@ -2,4 +2,5 @@ import { IFilterParams, TQueryResponse } from "@base/@types/api";
2
2
  export declare function apiFindUser(body?: IFilterParams): Promise<TQueryResponse<any>>;
3
3
  export declare function apiFindByIds(filters?: IFilterParams): Promise<TQueryResponse<any>>;
4
4
  export declare function apiFindCentrosByUserId(userId: string | number): Promise<TQueryResponse<any>>;
5
+ export declare function apiVerificaUserPossuiFuncionalidade(userId: string, nomeFuncionalidade: string): Promise<unknown>;
5
6
  //# sourceMappingURL=UserService.d.ts.map
@@ -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,CAAC;AAKjE,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMrD;AAED,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,gCAMzD;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,gCAOnE"}
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,CAAC;AAKjE,wBAAsB,WAAW,CAAC,IAAI,CAAC,EAAE,aAAa,gCAMrD;AAED,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,gCAMzD;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,gCAOnE;AAED,wBAAsB,mCAAmC,CAAC,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,oBAOnG"}
@@ -1,6 +1,7 @@
1
1
  const tarefasAgendadas = {
2
2
  findAll: "/scheduler/api/tarefas/find",
3
- changeStatus: "/scheduler/api/tarefas/change-status"
3
+ changeStatus: "/scheduler/api/tarefas/change-status",
4
+ execute: "/scheduler/api/tarefas/execute/{id}"
4
5
  };
5
6
  export {
6
7
  tarefasAgendadas as default
@@ -1 +1 @@
1
- {"version":3,"file":"tarefasAgendadas.js","sources":["../../../../../../lib/base/configs/endpoints.config/adm/config/tarefasAgendadas.ts"],"sourcesContent":["const tarefasAgendadas = {\n findAll: '/scheduler/api/tarefas/find',\n changeStatus: '/scheduler/api/tarefas/change-status'\n}\n\nexport default tarefasAgendadas"],"names":[],"mappings":"AAAA,MAAM,mBAAmB;AAAA,EACrB,SAAS;AAAA,EACT,cAAc;AAClB;"}
1
+ {"version":3,"file":"tarefasAgendadas.js","sources":["../../../../../../lib/base/configs/endpoints.config/adm/config/tarefasAgendadas.ts"],"sourcesContent":["const tarefasAgendadas = {\n findAll: '/scheduler/api/tarefas/find',\n changeStatus: '/scheduler/api/tarefas/change-status',\n execute: '/scheduler/api/tarefas/execute/{id}'\n}\n\nexport default tarefasAgendadas"],"names":[],"mappings":"AAAA,MAAM,mBAAmB;AAAA,EACrB,SAAS;AAAA,EACT,cAAc;AAAA,EACd,SAAS;AACb;"}
@@ -5,7 +5,8 @@ const user = {
5
5
  findCentros: (userId) => ({
6
6
  endpoint: `${USER_BASE_URL}/${userId}/centros`,
7
7
  httpMethod: "get"
8
- })
8
+ }),
9
+ verificaUserPossuiFuncionalidade: { endpoint: `${USER_BASE_URL}/{id}/{funcionalidade}`, httpMethod: "get" }
9
10
  };
10
11
  export {
11
12
  user as default
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/user.ts"],"sourcesContent":["const USER_BASE_URL = '/dados-mestres/api/user'\n\nconst user = {\n find: { endpoint: `${USER_BASE_URL}/find`, httpMethod: 'post' },\n findByIds: { endpoint: `${USER_BASE_URL}/find-by-ids`, httpMethod: 'post' },\n findCentros: (userId: string | number) => ({\n endpoint: `${USER_BASE_URL}/${userId}/centros`,\n httpMethod: 'get' as const,\n }),\n}\n\nexport default user\n"],"names":[],"mappings":"AAAA,MAAM,gBAAgB;AAEtB,MAAM,OAAO;AAAA,EACT,MAAM,EAAE,UAAU,GAAG,aAAa,SAAS,YAAY,OAAO;AAAA,EAC9D,WAAW,EAAE,UAAU,GAAG,aAAa,gBAAgB,YAAY,OAAO;AAAA,EAC1E,aAAa,CAAC,YAA6B;AAAA,IACvC,UAAU,GAAG,aAAa,IAAI,MAAM;AAAA,IACpC,YAAY;AAAA,EAChB;AACJ;"}
1
+ {"version":3,"file":"user.js","sources":["../../../../../../lib/base/configs/endpoints.config/dm/config/user.ts"],"sourcesContent":["const USER_BASE_URL = '/dados-mestres/api/user'\n\nconst user = {\n find: { endpoint: `${USER_BASE_URL}/find`, httpMethod: 'post' },\n findByIds: { endpoint: `${USER_BASE_URL}/find-by-ids`, httpMethod: 'post' },\n findCentros: (userId: string | number) => ({\n endpoint: `${USER_BASE_URL}/${userId}/centros`,\n httpMethod: 'get' as const,\n }),\n verificaUserPossuiFuncionalidade: { endpoint: `${USER_BASE_URL}/{id}/{funcionalidade}`, httpMethod: 'get' },\n}\n\nexport default user"],"names":[],"mappings":"AAAA,MAAM,gBAAgB;AAEtB,MAAM,OAAO;AAAA,EACT,MAAM,EAAE,UAAU,GAAG,aAAa,SAAS,YAAY,OAAO;AAAA,EAC9D,WAAW,EAAE,UAAU,GAAG,aAAa,gBAAgB,YAAY,OAAO;AAAA,EAC1E,aAAa,CAAC,YAA6B;AAAA,IACvC,UAAU,GAAG,aAAa,IAAI,MAAM;AAAA,IACpC,YAAY;AAAA,EAAA;AAAA,EAEhB,kCAAkC,EAAE,UAAU,GAAG,aAAa,0BAA0B,YAAY,MAAM;AAC9G;"}
@@ -100,7 +100,7 @@ import { default as default90 } from "./hooks/insumos/itemCompra/useFindPrecoMed
100
100
  import { default as default91 } from "./hooks/dm/businessPartner/useBusinessPartnerFindMonitorTransportadoraList.js";
101
101
  import { buildQueryString, generateQueryParams, getBaseTableParams, getDefaultQueryParams } from "./services/query.js";
102
102
  import { generateQueryParams as generateQueryParams2, getBaseTableParams as getBaseTableParams2 } from "./services/modules/modules.query.js";
103
- import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./services/modules/AdmService.js";
103
+ import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetExecuteTarefasAgendadas, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./services/modules/AdmService.js";
104
104
  import { apiAddCommoditiesContratoBiodiesel, apiDeleteCommoditiesContratoBiodiesel, apiFindMonitorCommoditiesContratoBiodiesel, apiFindSaldoCommoditiesContratoBiodiesel, apiGetCommoditiesContratoBiodiesel, apiUpdateCommoditiesContratoBiodiesel } from "./services/modules/commodities/contratoBiodiesel/ContratoBiodieselService.js";
105
105
  import { apiAddCommoditiesPedidoVenda, apiDeleteCommoditiesPedidoVenda, apiFindMonitorCommoditiesPedidoVenda, apiGetCommoditiesPedidoVenda, apiUpdateCommoditiesPedidoVenda } from "./services/modules/commodities/pedidoVenda/PedidoVendaService.js";
106
106
  import { apiFindDmBusinessPartner, apiFindDmBusinessPartnerByIds, apiFindDmBusinessPartnerCliente, apiFindDmBusinessPartnerFiliais, apiFindDmBusinessPartnerFornecedor, apiFindDmBusinessPartnerFuncoesParceirosClientes, apiFindDmBusinessPartnerFuncoesParceirosClientesPedidoVenda, apiFindDmBusinessPartnerFuncoesParceirosFornecedores, apiFindDmBusinessPartnerMatrizes, apiFindDmFindSalesAreasByBusinessPartnerAndModulo, apiFindDmVendedoresAKARepresentantesVendas, apiFindEmpresasIdsByCnpj, apiFindFornecedorNfeByCnpj, apiFindMonitorFornecedor, apiFindMonitorTransportadora, apiGetDmBusinessPartner } from "./services/modules/dm/businessPartner/BusinessPartnerService.js";
@@ -125,7 +125,7 @@ import { apiFindDmSetorAtividade } from "./services/modules/dm/setorAtividade/Se
125
125
  import { apiFindDmTipoDocumentoVenda, apiFindDmTipoDocumentoVendaByCodigo, apiFindMonitorTipoDocumentoVenda } from "./services/modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js";
126
126
  import { apiFindDmTipoOrdemVenda, apiFindDmTipoOrdemVendaByCodigo, apiFindMonitorTipoOrdemVenda } from "./services/modules/dm/tipoOrdemVenda/TipoOrdemVendaService.js";
127
127
  import { apiFindDmTipoVeiculo, apiFindDmTipoVeiculoByCodigo, apiFindMonitorTipoVeiculo } from "./services/modules/dm/tipoVeiculo/TipoVeiculoService.js";
128
- import { apiFindByIds, apiFindCentrosByUserId, apiFindUser } from "./services/modules/dm/user/UserService.js";
128
+ import { apiFindByIds, apiFindCentrosByUserId, apiFindUser, apiVerificaUserPossuiFuncionalidade } from "./services/modules/dm/user/UserService.js";
129
129
  import { apiCreateLocalRecepcao, apiFindMonitorLocalRecepcao, apiFindOneLocalRecepcao, apiUpdateLocalRecepcao } from "./services/modules/compras/localRecepcao/LocalRecepcaoService.js";
130
130
  import { apiCreateRequisicaoCompra, apiExecuteAcao, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiUpdateRequisicaoCompra } from "./services/modules/compras/requisicaoCompra/RequisicaoCompraService.js";
131
131
  import { apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./services/modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
@@ -566,6 +566,7 @@ export {
566
566
  apiGetContratoFrete,
567
567
  apiGetControleDescarga,
568
568
  apiGetDmBusinessPartner,
569
+ apiGetExecuteTarefasAgendadas,
569
570
  apiGetFileDadosPenhores,
570
571
  apiGetFornecedor,
571
572
  apiGetHorarioAprovacao,
@@ -697,6 +698,7 @@ export {
697
698
  apiUploadRacaoContratoCredito,
698
699
  apiUploadTemplatePrecoDia,
699
700
  apiVerificaContratoFreteByOrdemCarregamentoId,
701
+ apiVerificaUserPossuiFuncionalidade,
700
702
  default27 as bayerSubmenu,
701
703
  buildQueryString,
702
704
  default19 as cadastrosSubmenu,
@@ -1,6 +1,6 @@
1
1
  import { buildQueryString, generateQueryParams, getBaseTableParams, getDefaultQueryParams } from "./query.js";
2
2
  import { generateQueryParams as generateQueryParams2, getBaseTableParams as getBaseTableParams2 } from "./modules/modules.query.js";
3
- import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./modules/AdmService.js";
3
+ import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetExecuteTarefasAgendadas, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./modules/AdmService.js";
4
4
  import "./modules/commodities/index.js";
5
5
  import "./modules/dm/index.js";
6
6
  import "./modules/compras/index.js";
@@ -35,7 +35,7 @@ import { apiFindDmSetorAtividade } from "./modules/dm/setorAtividade/SetorAtivid
35
35
  import { apiFindDmTipoDocumentoVenda, apiFindDmTipoDocumentoVendaByCodigo, apiFindMonitorTipoDocumentoVenda } from "./modules/dm/tipoDocumentoVenda/TipoDocumentoVendaService.js";
36
36
  import { apiFindDmTipoOrdemVenda, apiFindDmTipoOrdemVendaByCodigo, apiFindMonitorTipoOrdemVenda } from "./modules/dm/tipoOrdemVenda/TipoOrdemVendaService.js";
37
37
  import { apiFindDmTipoVeiculo, apiFindDmTipoVeiculoByCodigo, apiFindMonitorTipoVeiculo } from "./modules/dm/tipoVeiculo/TipoVeiculoService.js";
38
- import { apiFindByIds, apiFindCentrosByUserId, apiFindUser } from "./modules/dm/user/UserService.js";
38
+ import { apiFindByIds, apiFindCentrosByUserId, apiFindUser, apiVerificaUserPossuiFuncionalidade } from "./modules/dm/user/UserService.js";
39
39
  import { apiCreateLocalRecepcao, apiFindMonitorLocalRecepcao, apiFindOneLocalRecepcao, apiUpdateLocalRecepcao } from "./modules/compras/localRecepcao/LocalRecepcaoService.js";
40
40
  import { apiCreateRequisicaoCompra, apiExecuteAcao, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiUpdateRequisicaoCompra } from "./modules/compras/requisicaoCompra/RequisicaoCompraService.js";
41
41
  import { apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./modules/compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
@@ -467,6 +467,7 @@ export {
467
467
  apiGetContratoFrete,
468
468
  apiGetControleDescarga,
469
469
  apiGetDmBusinessPartner,
470
+ apiGetExecuteTarefasAgendadas,
470
471
  apiGetFileDadosPenhores,
471
472
  apiGetFornecedor,
472
473
  apiGetHorarioAprovacao,
@@ -598,6 +599,7 @@ export {
598
599
  apiUploadRacaoContratoCredito,
599
600
  apiUploadTemplatePrecoDia,
600
601
  apiVerificaContratoFreteByOrdemCarregamentoId,
602
+ apiVerificaUserPossuiFuncionalidade,
601
603
  buildQueryString,
602
604
  generateQueryParams2 as generateModulesQueryParams,
603
605
  generateQueryParams,
@@ -40,6 +40,13 @@ const apiChangeStatusTarefasAgendadas = async (body) => {
40
40
  data: body
41
41
  });
42
42
  };
43
+ const apiGetExecuteTarefasAgendadas = async (id, data) => {
44
+ return ApiService.fetchDataWithAxios({
45
+ url: endpointNavigationConfig.tarefasAgendadas.execute.replace("{id}", id.toString()),
46
+ method: "post",
47
+ data
48
+ });
49
+ };
43
50
  async function apiGetRolesByFuncionalidadeUrl(params) {
44
51
  return ApiService.fetchDataWithAxios({
45
52
  url: endpointNavigationConfig.roles.findByFuncionalidadeUrl(params),
@@ -50,6 +57,7 @@ export {
50
57
  apiChangeStatusTarefasAgendadas,
51
58
  apiFetchUserFuncionalidades,
52
59
  apiFetchUserVinculosUsuario,
60
+ apiGetExecuteTarefasAgendadas,
53
61
  apiGetRoles,
54
62
  apiGetRolesByFuncionalidadeUrl,
55
63
  apiGetTarefasAgendadas,
@@ -1 +1 @@
1
- {"version":3,"file":"AdmService.js","sources":["../../../../lib/base/services/modules/AdmService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation'\nimport ApiService from '@/services/ApiService'\nimport { TUser } from '@base/@types/models/user'\nimport { TTarefasAgendadas, TVinculosUsuario } from '@base/@types/models/adm/user'\n\n//todo\nexport async function apiGetUsers(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.users.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetRoles(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.roles.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport const apiFetchUserFuncionalidades = async (userId: number) => {\n return ApiService.fetchDataWithAxios<string[]>({\n url: endpointNavigationConfig.funcionalidades.findByUserId + `/${userId}`,\n method: 'get',\n });\n};\n\nexport const apiFetchUserVinculosUsuario = async (userId: number) => {\n return ApiService.fetchDataWithAxios<TVinculosUsuario>({\n url: endpointNavigationConfig.users.findVinculosUsuarioByUserId + `/${userId}`,\n method: 'get',\n });\n};\n\nexport const apiGetTarefasAgendadas = async (body?: IFilterParams) => {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTarefasAgendadas>>({\n url: endpointNavigationConfig.tarefasAgendadas.findAll,\n method: 'post',\n data: body,\n })\n};\n\nexport const apiChangeStatusTarefasAgendadas = async (body?: IFilterParams) => {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTarefasAgendadas>>({\n url: endpointNavigationConfig.tarefasAgendadas.changeStatus,\n method: 'patch',\n data: body,\n })\n};\n\nexport async function apiGetRolesByFuncionalidadeUrl(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.roles.findByFuncionalidadeUrl(params),\n method: 'get',\n })\n}\n\n\n"],"names":[],"mappings":";;AAOA,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM;AAAA,IACpC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM;AAAA,IACpC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEa,MAAA,8BAA8B,OAAO,WAAmB;AACnE,SAAO,WAAW,mBAA6B;AAAA,IAC7C,KAAK,yBAAyB,gBAAgB,eAAe,IAAI,MAAM;AAAA,IACvE,QAAQ;AAAA,EAAA,CACT;AACH;AAEa,MAAA,8BAA8B,OAAO,WAAmB;AACnE,SAAO,WAAW,mBAAqC;AAAA,IACrD,KAAK,yBAAyB,MAAM,8BAA8B,IAAI,MAAM;AAAA,IAC5E,QAAQ;AAAA,EAAA,CACT;AACH;AAEa,MAAA,yBAAyB,OAAO,SAAyB;AACpE,SAAO,WAAW,mBAAsD;AAAA,IAClE,KAAK,yBAAyB,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEa,MAAA,kCAAkC,OAAO,SAAyB;AAC7E,SAAO,WAAW,mBAAsD;AAAA,IAClE,KAAK,yBAAyB,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,+BAA+B,QAAgB;AACjE,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM,wBAAwB,MAAM;AAAA,IAClE,QAAQ;AAAA,EAAA,CACX;AACL;"}
1
+ {"version":3,"file":"AdmService.js","sources":["../../../../lib/base/services/modules/AdmService.ts"],"sourcesContent":["import { IFilterParams, TQueryResponse } from '@base/@types/api'\nimport endpointNavigationConfig from '@base/configs/endpoints.config/endpoints.navigation'\nimport ApiService from '@/services/ApiService'\nimport { TUser } from '@base/@types/models/user'\nimport { TTarefasAgendadas, TVinculosUsuario } from '@base/@types/models/adm/user'\n\n//todo\nexport async function apiGetUsers(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.users.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport async function apiGetRoles(body?: IFilterParams) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.roles.findAll,\n method: 'post',\n data: body,\n })\n}\n\nexport const apiFetchUserFuncionalidades = async (userId: number) => {\n return ApiService.fetchDataWithAxios<string[]>({\n url: endpointNavigationConfig.funcionalidades.findByUserId + `/${userId}`,\n method: 'get',\n });\n};\n\nexport const apiFetchUserVinculosUsuario = async (userId: number) => {\n return ApiService.fetchDataWithAxios<TVinculosUsuario>({\n url: endpointNavigationConfig.users.findVinculosUsuarioByUserId + `/${userId}`,\n method: 'get',\n });\n};\n\nexport const apiGetTarefasAgendadas = async (body?: IFilterParams) => {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTarefasAgendadas>>({\n url: endpointNavigationConfig.tarefasAgendadas.findAll,\n method: 'post',\n data: body,\n })\n};\n\nexport const apiChangeStatusTarefasAgendadas = async (body?: IFilterParams) => {\n return ApiService.fetchDataWithAxios<TQueryResponse<TTarefasAgendadas>>({\n url: endpointNavigationConfig.tarefasAgendadas.changeStatus,\n method: 'patch',\n data: body,\n })\n};\n\nexport const apiGetExecuteTarefasAgendadas = async (id: number | string, data?: { dataUltimaExecucao?: string | null }) => {\n return ApiService.fetchDataWithAxios<void>({\n url: endpointNavigationConfig.tarefasAgendadas.execute.replace('{id}', id.toString()),\n method: 'post',\n data: data,\n })\n};\n\nexport async function apiGetRolesByFuncionalidadeUrl(params: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({\n url: endpointNavigationConfig.roles.findByFuncionalidadeUrl(params),\n method: 'get',\n })\n}\n\n\n"],"names":[],"mappings":";;AAOA,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM;AAAA,IACpC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEA,eAAsB,YAAY,MAAsB;AACpD,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM;AAAA,IACpC,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEa,MAAA,8BAA8B,OAAO,WAAmB;AACnE,SAAO,WAAW,mBAA6B;AAAA,IAC7C,KAAK,yBAAyB,gBAAgB,eAAe,IAAI,MAAM;AAAA,IACvE,QAAQ;AAAA,EAAA,CACT;AACH;AAEa,MAAA,8BAA8B,OAAO,WAAmB;AACnE,SAAO,WAAW,mBAAqC;AAAA,IACrD,KAAK,yBAAyB,MAAM,8BAA8B,IAAI,MAAM;AAAA,IAC5E,QAAQ;AAAA,EAAA,CACT;AACH;AAEa,MAAA,yBAAyB,OAAO,SAAyB;AACpE,SAAO,WAAW,mBAAsD;AAAA,IAClE,KAAK,yBAAyB,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEa,MAAA,kCAAkC,OAAO,SAAyB;AAC7E,SAAO,WAAW,mBAAsD;AAAA,IAClE,KAAK,yBAAyB,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IACR,MAAM;AAAA,EAAA,CACT;AACL;AAEa,MAAA,gCAAgC,OAAO,IAAqB,SAAkD;AACzH,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,yBAAyB,iBAAiB,QAAQ,QAAQ,QAAQ,GAAG,UAAU;AAAA,IACpF,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACH;AAEA,eAAsB,+BAA+B,QAAgB;AACjE,SAAO,WAAW,mBAA0C;AAAA,IACxD,KAAK,yBAAyB,MAAM,wBAAwB,MAAM;AAAA,IAClE,QAAQ;AAAA,EAAA,CACX;AACL;"}
@@ -20,7 +20,7 @@ import { apiFindDmSetorAtividade } from "./setorAtividade/SetorAtividadeService.
20
20
  import { apiFindDmTipoDocumentoVenda, apiFindDmTipoDocumentoVendaByCodigo, apiFindMonitorTipoDocumentoVenda } from "./tipoDocumentoVenda/TipoDocumentoVendaService.js";
21
21
  import { apiFindDmTipoOrdemVenda, apiFindDmTipoOrdemVendaByCodigo, apiFindMonitorTipoOrdemVenda } from "./tipoOrdemVenda/TipoOrdemVendaService.js";
22
22
  import { apiFindDmTipoVeiculo, apiFindDmTipoVeiculoByCodigo, apiFindMonitorTipoVeiculo } from "./tipoVeiculo/TipoVeiculoService.js";
23
- import { apiFindByIds, apiFindCentrosByUserId, apiFindUser } from "./user/UserService.js";
23
+ import { apiFindByIds, apiFindCentrosByUserId, apiFindUser, apiVerificaUserPossuiFuncionalidade } from "./user/UserService.js";
24
24
  export {
25
25
  apiFindAllUfs,
26
26
  apiFindByCodigosProduto,
@@ -98,6 +98,7 @@ export {
98
98
  apiFindVerificaCadastroCompletoByCondicaoPagamento,
99
99
  apiGetDmBusinessPartner,
100
100
  apiGetMultiplicadorUnidadeMedida,
101
- apiUpdateProduto
101
+ apiUpdateProduto,
102
+ apiVerificaUserPossuiFuncionalidade
102
103
  };
103
104
  //# sourceMappingURL=index.js.map
@@ -23,9 +23,16 @@ async function apiFindCentrosByUserId(userId) {
23
23
  method: httpMethod
24
24
  });
25
25
  }
26
+ async function apiVerificaUserPossuiFuncionalidade(userId, nomeFuncionalidade) {
27
+ return ApiService.fetchDataWithAxios({
28
+ url: USER_ENDPOINT.verificaUserPossuiFuncionalidade.endpoint.replace("{id}", userId).replace("{funcionalidade}", nomeFuncionalidade),
29
+ method: USER_ENDPOINT.verificaUserPossuiFuncionalidade.httpMethod
30
+ });
31
+ }
26
32
  export {
27
33
  apiFindByIds,
28
34
  apiFindCentrosByUserId,
29
- apiFindUser
35
+ apiFindUser,
36
+ apiVerificaUserPossuiFuncionalidade
30
37
  };
31
38
  //# sourceMappingURL=UserService.js.map
@@ -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 { 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 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}"],"names":["endpointsConfig"],"mappings":";;;AAIA,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,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;"}
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 { 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 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(userId: string, nomeFuncionalidade: string) {\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}"],"names":["endpointsConfig"],"mappings":";;;AAIA,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,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;AAEsB,eAAA,oCAAoC,QAAgB,oBAA4B;AAClG,SAAO,WAAW,mBAAmB;AAAA,IACjC,KAAK,cAAc,iCAAiC,SAC/C,QAAQ,QAAS,MAAM,EACvB,QAAQ,oBAAoB,kBAAkB;AAAA,IACnD,QAAQ,cAAc,iCAAiC;AAAA,EAAA,CAC1D;AACL;"}
@@ -1,4 +1,4 @@
1
- import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./AdmService.js";
1
+ import { apiChangeStatusTarefasAgendadas, apiFetchUserFuncionalidades, apiFetchUserVinculosUsuario, apiGetExecuteTarefasAgendadas, apiGetRoles, apiGetRolesByFuncionalidadeUrl, apiGetTarefasAgendadas, apiGetUsers } from "./AdmService.js";
2
2
  import "./commodities/index.js";
3
3
  import "./dm/index.js";
4
4
  import "./compras/index.js";
@@ -33,7 +33,7 @@ import { apiFindDmSetorAtividade } from "./dm/setorAtividade/SetorAtividadeServi
33
33
  import { apiFindDmTipoDocumentoVenda, apiFindDmTipoDocumentoVendaByCodigo, apiFindMonitorTipoDocumentoVenda } from "./dm/tipoDocumentoVenda/TipoDocumentoVendaService.js";
34
34
  import { apiFindDmTipoOrdemVenda, apiFindDmTipoOrdemVendaByCodigo, apiFindMonitorTipoOrdemVenda } from "./dm/tipoOrdemVenda/TipoOrdemVendaService.js";
35
35
  import { apiFindDmTipoVeiculo, apiFindDmTipoVeiculoByCodigo, apiFindMonitorTipoVeiculo } from "./dm/tipoVeiculo/TipoVeiculoService.js";
36
- import { apiFindByIds, apiFindCentrosByUserId, apiFindUser } from "./dm/user/UserService.js";
36
+ import { apiFindByIds, apiFindCentrosByUserId, apiFindUser, apiVerificaUserPossuiFuncionalidade } from "./dm/user/UserService.js";
37
37
  import { apiCreateLocalRecepcao, apiFindMonitorLocalRecepcao, apiFindOneLocalRecepcao, apiUpdateLocalRecepcao } from "./compras/localRecepcao/LocalRecepcaoService.js";
38
38
  import { apiCreateRequisicaoCompra, apiExecuteAcao, apiFindHistoricosMovimentacao, apiFindMonitorRequisicaoCompra, apiFindOneRequisicaoCompra, apiUpdateRequisicaoCompra } from "./compras/requisicaoCompra/RequisicaoCompraService.js";
39
39
  import { apiFinalizaRequisicaoAgrupada, apiFindMonitorRequisicaoAgrupadaItem, apiFindMonitorRequisicaoAgrupadaRequisicao } from "./compras/requisicaoAgrupada/RequisicaoAgrupadaService.js";
@@ -442,6 +442,7 @@ export {
442
442
  apiGetContratoFrete,
443
443
  apiGetControleDescarga,
444
444
  apiGetDmBusinessPartner,
445
+ apiGetExecuteTarefasAgendadas,
445
446
  apiGetFileDadosPenhores,
446
447
  apiGetFornecedor,
447
448
  apiGetHorarioAprovacao,
@@ -571,6 +572,7 @@ export {
571
572
  apiUploadRacaoContratoCredito,
572
573
  apiUploadTemplatePrecoDia,
573
574
  apiVerificaContratoFreteByOrdemCarregamentoId,
575
+ apiVerificaUserPossuiFuncionalidade,
574
576
  generateQueryParams,
575
577
  getBaseTableParams
576
578
  };
@@ -170,7 +170,7 @@ const DatePicker = (props: DatePickerProps) => {
170
170
  capitalize(dayjs(date).locale(finalLocale).format(dateFormat)),
171
171
  )
172
172
  if (closePickerOnChange) {
173
- openDropdown()
173
+ closeDropdown()
174
174
  }
175
175
  window.setTimeout(() => inputRef.current?.focus(), 0)
176
176
  }
@@ -1,6 +1,7 @@
1
1
  const tarefasAgendadas = {
2
2
  findAll: '/scheduler/api/tarefas/find',
3
- changeStatus: '/scheduler/api/tarefas/change-status'
3
+ changeStatus: '/scheduler/api/tarefas/change-status',
4
+ execute: '/scheduler/api/tarefas/execute/{id}'
4
5
  }
5
6
 
6
7
  export default tarefasAgendadas
@@ -7,6 +7,7 @@ const user = {
7
7
  endpoint: `${USER_BASE_URL}/${userId}/centros`,
8
8
  httpMethod: 'get' as const,
9
9
  }),
10
+ verificaUserPossuiFuncionalidade: { endpoint: `${USER_BASE_URL}/{id}/{funcionalidade}`, httpMethod: 'get' },
10
11
  }
11
12
 
12
- export default user
13
+ export default user
@@ -51,6 +51,14 @@ export const apiChangeStatusTarefasAgendadas = async (body?: IFilterParams) => {
51
51
  })
52
52
  };
53
53
 
54
+ export const apiGetExecuteTarefasAgendadas = async (id: number | string, data?: { dataUltimaExecucao?: string | null }) => {
55
+ return ApiService.fetchDataWithAxios<void>({
56
+ url: endpointNavigationConfig.tarefasAgendadas.execute.replace('{id}', id.toString()),
57
+ method: 'post',
58
+ data: data,
59
+ })
60
+ };
61
+
54
62
  export async function apiGetRolesByFuncionalidadeUrl(params: string) {
55
63
  return ApiService.fetchDataWithAxios<TQueryResponse<TUser>>({
56
64
  url: endpointNavigationConfig.roles.findByFuncionalidadeUrl(params),
@@ -27,4 +27,13 @@ export async function apiFindCentrosByUserId(userId: string | number) {
27
27
  url: endpoint,
28
28
  method: httpMethod,
29
29
  })
30
+ }
31
+
32
+ export async function apiVerificaUserPossuiFuncionalidade(userId: string, nomeFuncionalidade: string) {
33
+ return ApiService.fetchDataWithAxios({
34
+ url: USER_ENDPOINT.verificaUserPossuiFuncionalidade.endpoint
35
+ .replace('{id}' , userId)
36
+ .replace('{funcionalidade}', nomeFuncionalidade),
37
+ method: USER_ENDPOINT.verificaUserPossuiFuncionalidade.httpMethod,
38
+ })
30
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.3.280",
3
+ "version": "5.3.282",
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",