argous 1.2.246 → 1.3.2
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.
- package/dist/api/WebSocket.d.ts +22 -10
- package/dist/api/WebSocket.js +40 -28
- package/dist/api/index.js +154 -132
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +45 -4
- package/dist/components/Alert/Alert.d.ts +19 -5
- package/dist/components/Alert/Alert.js +23 -9
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
- package/dist/components/ArgousAction/ArgousAction.js +25 -11
- package/dist/components/ArgousAction/index.d.ts +1 -2
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
- package/dist/components/ArgousAvatar/ArgousAvatar.js +54 -66
- package/dist/components/ArgousAvatar/index.d.ts +1 -2
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +114 -82
- package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +94 -80
- package/dist/components/ArgousComplexTable/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +126 -100
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableBody/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +3 -73
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +72 -51
- package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +63 -41
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
- package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
- package/dist/components/ArgousInput/ArgousInput.js +27 -13
- package/dist/components/ArgousInput/index.d.ts +1 -2
- package/dist/components/ArgousPagination/ArgousPagination.d.ts +3 -5
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousPagination/index.d.ts +1 -2
- package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +31 -21
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousProgressBar/index.d.ts +1 -2
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +3 -5
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +43 -33
- package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
- package/dist/components/AutoComplete/AutoComplete.js +34 -21
- package/dist/components/AutoComplete/index.d.ts +1 -2
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +241 -185
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
- package/dist/components/BarChart/BarChart.d.ts +29 -5
- package/dist/components/BarChart/BarChart.js +22 -8
- package/dist/components/BarChart/index.d.ts +1 -2
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -25
- package/dist/components/BarraFerramentas/BarraFerramentas.js +163 -131
- package/dist/components/BarraFerramentas/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +54 -5
- package/dist/components/Button/Button.js +25 -11
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
- package/dist/components/Cabecalho/Cabecalho.js +46 -32
- package/dist/components/Cabecalho/index.d.ts +1 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -8
- package/dist/components/Calendar/Calendar.js +35 -48
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Cam/Cam.d.ts +24 -24
- package/dist/components/Cam/Cam.js +34 -20
- package/dist/components/Cam/index.d.ts +1 -2
- package/dist/components/Carousel/Carousel.d.ts +21 -71
- package/dist/components/Carousel/Carousel.js +125 -111
- package/dist/components/Carousel/index.d.ts +1 -2
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
- package/dist/components/CartaoUsuario/CartaoUsuario.js +54 -40
- package/dist/components/CartaoUsuario/index.d.ts +1 -2
- package/dist/components/Collapse/Collapse.d.ts +55 -56
- package/dist/components/Collapse/Collapse.js +133 -79
- package/dist/components/Collapse/index.d.ts +1 -3
- package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
- package/dist/components/Compartilhar/Compartilhar.js +92 -83
- package/dist/components/Compartilhar/index.d.ts +1 -2
- package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
- package/dist/components/ConfirmModal/BasicModal.js +8 -8
- package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
- package/dist/components/ConfirmModal/ModalProvider.js +34 -20
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ConfirmModal/index.d.ts +6 -20
- package/dist/components/ConfirmModal/index.js +5 -1
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
- package/dist/components/ContactValidationInput/ContactValidationInput.js +133 -105
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/ContactValidationInput/index.d.ts +1 -2
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +46 -25
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +44 -24
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +60 -42
- package/dist/components/Document/index.d.ts +3 -3
- package/dist/components/Document/index.js +5 -1
- package/dist/components/DropArea/DropArea.d.ts +8 -21
- package/dist/components/DropArea/DropArea.js +43 -24
- package/dist/components/DropArea/Html5FileSelector.js +8 -9
- package/dist/components/DropArea/index.d.ts +1 -2
- package/dist/components/Editor/Events.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.js +3 -3
- package/dist/components/Editor/Utils.d.ts +4 -4
- package/dist/components/Editor/Utils.js +3 -3
- package/dist/components/Editor/components/Editor.d.ts +2 -2
- package/dist/components/Editor/components/Editor.js +38 -24
- package/dist/components/Editor/components/EditorPropTypes.d.ts +2 -2
- package/dist/components/Editor/components/EditorPropTypes.js +22 -8
- package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
- package/dist/components/FilePreparer/FilePreparer.js +133 -108
- package/dist/components/FilePreparer/index.d.ts +1 -2
- package/dist/components/FileUploader/FileUploader.d.ts +21 -8
- package/dist/components/FileUploader/FileUploader.js +54 -39
- package/dist/components/FileUploader/index.d.ts +1 -2
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
- package/dist/components/FormVisualizer/FormVisualizer.js +119 -80
- package/dist/components/FormVisualizer/index.d.ts +1 -2
- package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
- package/dist/components/HalfGauge/HalfGauge.js +107 -151
- package/dist/components/HalfGauge/index.d.ts +1 -2
- package/dist/components/Highlight/Highlight.d.ts +20 -7
- package/dist/components/Highlight/Highlight.js +28 -13
- package/dist/components/Highlight/index.d.ts +1 -2
- package/dist/components/ImageResize/ImageResize.d.ts +8 -28
- package/dist/components/ImageResize/ImageResize.js +128 -130
- package/dist/components/ImageResize/index.d.ts +1 -2
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
- package/dist/components/ImageResizeButton/ImageResizeButton.js +28 -14
- package/dist/components/ImageResizeButton/index.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +2 -8
- package/dist/components/Input/Input.js +27 -13
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputTags/InputTags.d.ts +2 -8
- package/dist/components/InputTags/InputTags.js +38 -21
- package/dist/components/InputTags/index.d.ts +1 -2
- package/dist/components/ListSelect/ListSelect.d.ts +2 -8
- package/dist/components/ListSelect/ListSelect.js +28 -14
- package/dist/components/ListSelect/index.d.ts +1 -2
- package/dist/components/MaterialButton/MaterialButton.d.ts +30 -12
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MaterialButton/index.d.ts +1 -2
- package/dist/components/MenuBar/MenuBar.d.ts +2 -8
- package/dist/components/MenuBar/MenuBar.js +28 -14
- package/dist/components/MenuBar/index.d.ts +1 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
- package/dist/components/MonthPicker/MonthPicker.js +53 -35
- package/dist/components/MonthPicker/index.d.ts +1 -2
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
- package/dist/components/MultipleSelect/MultipleSelect.js +37 -19
- package/dist/components/MultipleSelect/index.d.ts +1 -2
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +80 -63
- package/dist/components/OtpInput/index.d.ts +1 -2
- package/dist/components/OutputText/OutputText.d.ts +2 -8
- package/dist/components/OutputText/OutputText.js +25 -11
- package/dist/components/OutputText/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +16 -5
- package/dist/components/Pagination/Pagination.js +22 -8
- package/dist/components/Pagination/index.d.ts +1 -2
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
- package/dist/components/PercentageDisplay/PercentageDisplay.js +25 -89
- package/dist/components/PercentageDisplay/index.d.ts +1 -2
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +6 -5
- package/dist/components/Programa/PageCodeEasterEgg.js +49 -36
- package/dist/components/Programa/Programa.d.ts +72 -32
- package/dist/components/Programa/Programa.js +78 -28
- package/dist/components/Programa/Tab.d.ts +7 -0
- package/dist/components/Programa/Tab.js +2 -0
- package/dist/components/Programa/TabNavigationRail.d.ts +12 -0
- package/dist/components/Programa/TabNavigationRail.js +76 -0
- package/dist/components/Programa/index.d.ts +1 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
- package/dist/components/ProgressBar/ProgressBar.js +25 -11
- package/dist/components/ProgressBar/index.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +2 -8
- package/dist/components/Select/Select.js +28 -14
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
- package/dist/components/SimpleTable/SimpleTable.js +47 -33
- package/dist/components/SimpleTable/index.d.ts +1 -2
- package/dist/components/Stepper/Stepper.d.ts +25 -68
- package/dist/components/Stepper/Stepper.js +200 -181
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/TablePicker/TablePicker.d.ts +3 -8
- package/dist/components/TablePicker/TablePicker.js +76 -43
- package/dist/components/TablePicker/index.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +25 -5
- package/dist/components/Tabs/Tabs.js +25 -11
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -8
- package/dist/components/TextArea/TextArea.js +25 -11
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +26 -12
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +57 -46
- package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
- package/dist/components/TextToHtml/TextToHtml.js +76 -56
- package/dist/components/TextToHtml/index.d.ts +1 -2
- package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
- package/dist/components/ThreadLog/ThreadLog.js +34 -20
- package/dist/components/ThreadLog/index.d.ts +1 -2
- package/dist/components/UserCard/UserCard.d.ts +6 -15
- package/dist/components/UserCard/UserCard.js +51 -37
- package/dist/components/UserCard/index.d.ts +1 -2
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +44 -30
- package/dist/components/UtilAutoComplete/index.d.ts +1 -2
- package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
- package/dist/components/UtilTextField/UtilTextField.js +36 -20
- package/dist/components/UtilTextField/index.d.ts +1 -2
- package/dist/components/Zoom/Zoom.d.ts +7 -15
- package/dist/components/Zoom/Zoom.js +32 -29
- package/dist/components/Zoom/index.d.ts +1 -2
- package/dist/components/index.d.ts +118 -180
- package/dist/components/index.js +5 -1
- package/dist/fieldsRedux/createField.d.ts +6 -6
- package/dist/fieldsRedux/createField.js +39 -25
- package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
- package/dist/fieldsRedux/fieldsRedux.js +63 -49
- package/dist/fieldsRedux/index.d.ts +17 -2
- package/dist/fieldsRedux/passFields.d.ts +2 -0
- package/dist/fieldsRedux/passFields.js +33 -19
- package/dist/reducers/index.d.ts +98 -2
- package/dist/reducers/index.js +1 -1
- package/dist/utils/api.d.ts +2 -2
- package/dist/utils/api.js +50 -33
- package/dist/utils/config.js +2 -3
- package/dist/utils/date.js +4 -4
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +108 -162
- package/dist/utils/store.js +2 -3
- package/dist/utils/xmlToJson.js +1 -1
- package/lib/api/WebSocket.js +11 -12
- package/lib/api/index.js +14 -14
- package/lib/api/ws.js +48 -4
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
- package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
- package/lib/components/ArgousInput/ArgousInput.js +2 -2
- package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
- package/lib/components/AutoComplete/AutoComplete.js +2 -3
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
- package/lib/components/BarraFerramentas/BarraFerramentas.d.ts +30 -2
- package/lib/components/BarraFerramentas/BarraFerramentas.js +92 -37
- package/lib/components/Calendar/Calendar.js +7 -42
- package/lib/components/Carousel/Carousel.js +42 -27
- package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
- package/lib/components/Collapse/Collapse.d.ts +3 -3
- package/lib/components/Collapse/Collapse.js +92 -57
- package/lib/components/Compartilhar/Compartilhar.js +47 -46
- package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
- package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
- package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
- package/lib/components/ContactValidationInput/SealModal.js +38 -32
- package/lib/components/Document/Icons.js +14 -6
- package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
- package/lib/components/Document/Visualizacao.js +31 -25
- package/lib/components/DropArea/DropArea.js +9 -3
- package/lib/components/Editor/ScriptLoader2.ts +3 -3
- package/lib/components/Editor/Utils.ts +3 -3
- package/lib/components/Editor/components/Editor.tsx +1 -1
- package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
- package/lib/components/Editor/tinymce/tinymce.js +12 -12
- package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
- package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/lib/components/FilePreparer/FilePreparer.js +112 -108
- package/lib/components/FileUploader/FileUploader.js +8 -7
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
- package/lib/components/HalfGauge/HalfGauge.js +87 -85
- package/lib/components/Highlight/Highlight.js +4 -4
- package/lib/components/ImageResize/ImageResize.d.ts +1 -1
- package/lib/components/ImageResize/ImageResize.js +123 -118
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/InputTags/InputTags.js +6 -7
- package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/lib/components/MaterialButton/MaterialButton.js +50 -125
- package/lib/components/MonthPicker/MonthPicker.js +2 -2
- package/lib/components/OtpInput/OtpInput.tsx +77 -69
- package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
- package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
- package/lib/components/Programa/Programa.d.ts +18 -3
- package/lib/components/Programa/Programa.js +60 -7
- package/lib/components/Programa/Tab.ts +8 -0
- package/lib/components/Programa/TabNavigationRail.js +96 -0
- package/lib/components/Stepper/Stepper.d.ts +1 -1
- package/lib/components/Stepper/Stepper.js +222 -190
- package/lib/components/TablePicker/TablePicker.js +11 -6
- package/lib/components/TextToHtml/TextStyles.js +42 -42
- package/lib/components/TextToHtml/TextToHtml.js +102 -92
- package/lib/components/ThreadLog/ThreadLog.js +1 -1
- package/lib/components/UserCard/UserCard.js +6 -6
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
- package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/lib/components/UtilTextField/UtilTextField.js +18 -16
- package/lib/components/Zoom/Zoom.js +6 -3
- package/lib/utils/api.ts +1 -1
- package/lib/utils/index.ts +10 -96
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
- package/dist/components/Cam/cam.css +0 -8
- package/dist/components/ContactValidationInput/style.css +0 -10
- package/dist/components/Document/icons/ai.svg +0 -20
- package/dist/components/Document/icons/audio.svg +0 -16
- package/dist/components/Document/icons/avi.svg +0 -15
- package/dist/components/Document/icons/css.svg +0 -47
- package/dist/components/Document/icons/csv.svg +0 -37
- package/dist/components/Document/icons/dbf.svg +0 -30
- package/dist/components/Document/icons/doc.svg +0 -47
- package/dist/components/Document/icons/dwg.svg +0 -32
- package/dist/components/Document/icons/exe.svg +0 -20
- package/dist/components/Document/icons/file.svg +0 -11
- package/dist/components/Document/icons/fla.svg +0 -23
- package/dist/components/Document/icons/html.svg +0 -23
- package/dist/components/Document/icons/image.svg +0 -16
- package/dist/components/Document/icons/iso.svg +0 -40
- package/dist/components/Document/icons/jpg.svg +0 -33
- package/dist/components/Document/icons/js.svg +0 -40
- package/dist/components/Document/icons/json.svg +0 -45
- package/dist/components/Document/icons/mod.svg +0 -41
- package/dist/components/Document/icons/mp3.svg +0 -36
- package/dist/components/Document/icons/mp4.svg +0 -25
- package/dist/components/Document/icons/pdf.svg +0 -35
- package/dist/components/Document/icons/png.svg +0 -30
- package/dist/components/Document/icons/ppt.svg +0 -31
- package/dist/components/Document/icons/psd.svg +0 -50
- package/dist/components/Document/icons/rtf.svg +0 -35
- package/dist/components/Document/icons/search.svg +0 -20
- package/dist/components/Document/icons/svg.svg +0 -34
- package/dist/components/Document/icons/txt.svg +0 -29
- package/dist/components/Document/icons/video.svg +0 -17
- package/dist/components/Document/icons/xls.svg +0 -31
- package/dist/components/Document/icons/xml.svg +0 -25
- package/dist/components/Document/icons/zip.svg +0 -24
- package/dist/components/Document/icons/zip1.svg +0 -18
- package/dist/components/Editor/skins/content/dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/default/content.min.css +0 -1
- package/dist/components/Editor/skins/content/document/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/writer/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -194
- package/dist/components/Editor/tinymce/icons/default/icons.min.js +0 -1
- package/dist/components/Editor/tinymce/skins/content/dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/default/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/default/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/document/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/document/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/writer/content.css +0 -62
- package/dist/components/Editor/tinymce/skins/content/writer/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/tinymce.d.ts +0 -3238
- package/dist/components/TextToHtml/icons/resize_area.svg +0 -2
- package/dist/components/TextToHtml/style.css +0 -40
- package/dist/components/Zoom/style.css +0 -25
- package/dist/types.d.ts +0 -164
package/dist/api/index.js
CHANGED
|
@@ -20,12 +20,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g =
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -46,16 +46,25 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
+
if (ar || !(i in from)) {
|
|
52
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
+
ar[i] = from[i];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
|
+
};
|
|
49
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
59
|
exports.getProgramAnnotations = exports.getPublicDoc = exports.sendWidgets = exports.getWidgetInfo = exports.getWidgets = exports.scanDocument = exports.getLink = exports.getFileFromLink = exports.createDocument = exports.prepareFile = exports.getDocsUrl = exports.searchUsers = exports.getFileInfo = exports.cancelFileUpload = exports.endFileUpload = exports.sendFilePart = exports.inicFileUpload = exports.enviaCompartilhamentoDePrograma = exports.fixTimelinePost = exports.removePostTimeLine = exports.publicaTimeline = exports.toggleLikePost = exports.recebeInfoEstatisticas = exports.recebeInfoLoginsAtivos = exports.recebeThreadsUsuario = exports.recebeInfoThread = exports.recebeThread = exports.readNotificacao = exports.readNotificacoes = exports.getNotificacoes = exports.callProgram = exports.toggleFavorite = exports.getFavorites = exports.method = exports.action = exports.agSet = exports.agGet = exports.getProgram = exports.getPostPublicacao = exports.removeCommentPost = exports.addCommentPost = exports.getPostsTimeline = exports.getMenu = exports.validaToken = exports.logout = exports.login = exports.fetchToArgous = exports.headers = exports.api = exports.server = void 0;
|
|
51
60
|
exports.sendProgramAnnotation = exports.saveProgramAnnotation = void 0;
|
|
52
61
|
var utils_1 = require("../utils");
|
|
53
62
|
var config_1 = require("../utils/config");
|
|
54
|
-
var server = function () { return "://"
|
|
63
|
+
var server = function () { return "://".concat((0, config_1.getConfig)()[/^[a-z]+.+\.com\.br$/.test(window.location.host) ? 'ip' : 'ip'], "/").concat((0, config_1.getConfig)().path ? (0, config_1.getConfig)().path : 'jUniIII', "/"); };
|
|
55
64
|
exports.server = server;
|
|
56
|
-
var api = function () { return ""
|
|
65
|
+
var api = function () { return "".concat((0, config_1.getConfig)().ssl ? 'https' : 'http').concat((0, exports.server)(), "argous/"); };
|
|
57
66
|
exports.api = api;
|
|
58
|
-
var headers = function (token) { return ({ lgTkn: (token) ? token : utils_1.getCookie('lt') }); };
|
|
67
|
+
var headers = function (token) { return ({ lgTkn: (token) ? token : (0, utils_1.getCookie)('lt') }); };
|
|
59
68
|
exports.headers = headers;
|
|
60
69
|
/**
|
|
61
70
|
* @deprecated
|
|
@@ -69,10 +78,10 @@ var fetchToArgous = function (request, data) { return __awaiter(void 0, void 0,
|
|
|
69
78
|
var res;
|
|
70
79
|
return __generator(this, function (_a) {
|
|
71
80
|
switch (_a.label) {
|
|
72
|
-
case 0: return [4 /*yield*/, fetch(""
|
|
81
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)()).concat(request, ".rslvr"), {
|
|
73
82
|
method: 'POST',
|
|
74
83
|
body: JSON.stringify(data),
|
|
75
|
-
headers: exports.headers()
|
|
84
|
+
headers: (0, exports.headers)()
|
|
76
85
|
})];
|
|
77
86
|
case 1:
|
|
78
87
|
res = _a.sent();
|
|
@@ -86,7 +95,7 @@ var login = function (data) { return __awaiter(void 0, void 0, void 0, function
|
|
|
86
95
|
var res;
|
|
87
96
|
return __generator(this, function (_a) {
|
|
88
97
|
switch (_a.label) {
|
|
89
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
98
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aglogin.rslvr"), {
|
|
90
99
|
method: 'POST',
|
|
91
100
|
body: JSON.stringify(data)
|
|
92
101
|
})];
|
|
@@ -102,9 +111,9 @@ var logout = function () { return __awaiter(void 0, void 0, void 0, function ()
|
|
|
102
111
|
var res;
|
|
103
112
|
return __generator(this, function (_a) {
|
|
104
113
|
switch (_a.label) {
|
|
105
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
114
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aglogout.rslvr"), {
|
|
106
115
|
method: 'POST',
|
|
107
|
-
headers: exports.headers()
|
|
116
|
+
headers: (0, exports.headers)()
|
|
108
117
|
})];
|
|
109
118
|
case 1:
|
|
110
119
|
res = _a.sent();
|
|
@@ -118,9 +127,9 @@ var validaToken = function () { return __awaiter(void 0, void 0, void 0, functio
|
|
|
118
127
|
var res;
|
|
119
128
|
return __generator(this, function (_a) {
|
|
120
129
|
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
130
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agvldtkn.rslvr"), {
|
|
122
131
|
method: 'POST',
|
|
123
|
-
headers: exports.headers()
|
|
132
|
+
headers: (0, exports.headers)()
|
|
124
133
|
})];
|
|
125
134
|
case 1:
|
|
126
135
|
res = _a.sent();
|
|
@@ -134,9 +143,9 @@ var getMenu = function () { return __awaiter(void 0, void 0, void 0, function ()
|
|
|
134
143
|
var res;
|
|
135
144
|
return __generator(this, function (_a) {
|
|
136
145
|
switch (_a.label) {
|
|
137
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
146
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agetmenu.rslvr"), {
|
|
138
147
|
method: 'POST',
|
|
139
|
-
headers: exports.headers()
|
|
148
|
+
headers: (0, exports.headers)()
|
|
140
149
|
})];
|
|
141
150
|
case 1:
|
|
142
151
|
res = _a.sent();
|
|
@@ -150,10 +159,10 @@ var getPostsTimeline = function (data) { return __awaiter(void 0, void 0, void 0
|
|
|
150
159
|
var res;
|
|
151
160
|
return __generator(this, function (_a) {
|
|
152
161
|
switch (_a.label) {
|
|
153
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
162
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agtimeline.rslvr"), {
|
|
154
163
|
method: 'POST',
|
|
155
164
|
body: JSON.stringify(data),
|
|
156
|
-
headers: exports.headers()
|
|
165
|
+
headers: (0, exports.headers)()
|
|
157
166
|
})];
|
|
158
167
|
case 1:
|
|
159
168
|
res = _a.sent();
|
|
@@ -167,10 +176,10 @@ var addCommentPost = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
167
176
|
var res;
|
|
168
177
|
return __generator(this, function (_a) {
|
|
169
178
|
switch (_a.label) {
|
|
170
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
179
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agpostcomment.rslvr"), {
|
|
171
180
|
method: 'POST',
|
|
172
181
|
body: JSON.stringify(data),
|
|
173
|
-
headers: exports.headers()
|
|
182
|
+
headers: (0, exports.headers)()
|
|
174
183
|
})];
|
|
175
184
|
case 1:
|
|
176
185
|
res = _a.sent();
|
|
@@ -184,10 +193,10 @@ var removeCommentPost = function (data) { return __awaiter(void 0, void 0, void
|
|
|
184
193
|
var res;
|
|
185
194
|
return __generator(this, function (_a) {
|
|
186
195
|
switch (_a.label) {
|
|
187
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
196
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agrmcomentario.rslvr"), {
|
|
188
197
|
method: 'POST',
|
|
189
198
|
body: JSON.stringify(data),
|
|
190
|
-
headers: exports.headers()
|
|
199
|
+
headers: (0, exports.headers)()
|
|
191
200
|
})];
|
|
192
201
|
case 1:
|
|
193
202
|
res = _a.sent();
|
|
@@ -201,10 +210,10 @@ var getPostPublicacao = function (data) { return __awaiter(void 0, void 0, void
|
|
|
201
210
|
var res;
|
|
202
211
|
return __generator(this, function (_a) {
|
|
203
212
|
switch (_a.label) {
|
|
204
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
213
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aggetpost.rslvr"), {
|
|
205
214
|
method: 'POST',
|
|
206
215
|
body: JSON.stringify(data),
|
|
207
|
-
headers: exports.headers()
|
|
216
|
+
headers: (0, exports.headers)()
|
|
208
217
|
})];
|
|
209
218
|
case 1:
|
|
210
219
|
res = _a.sent();
|
|
@@ -218,10 +227,10 @@ var getProgram = function (data) { return __awaiter(void 0, void 0, void 0, func
|
|
|
218
227
|
var res;
|
|
219
228
|
return __generator(this, function (_a) {
|
|
220
229
|
switch (_a.label) {
|
|
221
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
230
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agpgm.rslvr"), {
|
|
222
231
|
method: 'POST',
|
|
223
232
|
body: JSON.stringify({ pgCode: data }),
|
|
224
|
-
headers: exports.headers()
|
|
233
|
+
headers: (0, exports.headers)()
|
|
225
234
|
})];
|
|
226
235
|
case 1:
|
|
227
236
|
res = _a.sent();
|
|
@@ -242,10 +251,10 @@ var agGet = function (data) { return __awaiter(void 0, void 0, void 0, function
|
|
|
242
251
|
var res;
|
|
243
252
|
return __generator(this, function (_a) {
|
|
244
253
|
switch (_a.label) {
|
|
245
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
254
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agget.rslvr"), {
|
|
246
255
|
method: 'POST',
|
|
247
256
|
body: JSON.stringify(data),
|
|
248
|
-
headers: exports.headers()
|
|
257
|
+
headers: (0, exports.headers)()
|
|
249
258
|
})];
|
|
250
259
|
case 1:
|
|
251
260
|
res = _a.sent();
|
|
@@ -266,10 +275,10 @@ var agSet = function (data) { return __awaiter(void 0, void 0, void 0, function
|
|
|
266
275
|
var res;
|
|
267
276
|
return __generator(this, function (_a) {
|
|
268
277
|
switch (_a.label) {
|
|
269
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
278
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agset.rslvr"), {
|
|
270
279
|
method: 'POST',
|
|
271
280
|
body: JSON.stringify(data),
|
|
272
|
-
headers: exports.headers()
|
|
281
|
+
headers: (0, exports.headers)()
|
|
273
282
|
})];
|
|
274
283
|
case 1:
|
|
275
284
|
res = _a.sent();
|
|
@@ -283,10 +292,10 @@ var action = function (data, token) { return __awaiter(void 0, void 0, void 0, f
|
|
|
283
292
|
var res;
|
|
284
293
|
return __generator(this, function (_a) {
|
|
285
294
|
switch (_a.label) {
|
|
286
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
295
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agaction.rslvr"), {
|
|
287
296
|
method: 'POST',
|
|
288
297
|
body: JSON.stringify(data),
|
|
289
|
-
headers: exports.headers(token)
|
|
298
|
+
headers: (0, exports.headers)(token)
|
|
290
299
|
})];
|
|
291
300
|
case 1:
|
|
292
301
|
res = _a.sent();
|
|
@@ -307,10 +316,10 @@ var method = function (data) { return __awaiter(void 0, void 0, void 0, function
|
|
|
307
316
|
var res;
|
|
308
317
|
return __generator(this, function (_a) {
|
|
309
318
|
switch (_a.label) {
|
|
310
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
319
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agmethod.rslvr"), {
|
|
311
320
|
method: 'POST',
|
|
312
321
|
body: JSON.stringify(data),
|
|
313
|
-
headers: exports.headers()
|
|
322
|
+
headers: (0, exports.headers)()
|
|
314
323
|
})];
|
|
315
324
|
case 1:
|
|
316
325
|
res = _a.sent();
|
|
@@ -324,9 +333,9 @@ var getFavorites = function () { return __awaiter(void 0, void 0, void 0, functi
|
|
|
324
333
|
var res;
|
|
325
334
|
return __generator(this, function (_a) {
|
|
326
335
|
switch (_a.label) {
|
|
327
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
336
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agfvrts.rslvr"), {
|
|
328
337
|
method: 'POST',
|
|
329
|
-
headers: exports.headers()
|
|
338
|
+
headers: (0, exports.headers)()
|
|
330
339
|
})];
|
|
331
340
|
case 1:
|
|
332
341
|
res = _a.sent();
|
|
@@ -340,10 +349,10 @@ var toggleFavorite = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
340
349
|
var res;
|
|
341
350
|
return __generator(this, function (_a) {
|
|
342
351
|
switch (_a.label) {
|
|
343
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
352
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agchfvrts.rslvr"), {
|
|
344
353
|
method: 'POST',
|
|
345
354
|
body: JSON.stringify(data),
|
|
346
|
-
headers: exports.headers()
|
|
355
|
+
headers: (0, exports.headers)()
|
|
347
356
|
})];
|
|
348
357
|
case 1:
|
|
349
358
|
res = _a.sent();
|
|
@@ -357,10 +366,10 @@ var callProgram = function (data) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
357
366
|
var res;
|
|
358
367
|
return __generator(this, function (_a) {
|
|
359
368
|
switch (_a.label) {
|
|
360
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
369
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agcallpgm.rslvr"), {
|
|
361
370
|
method: 'POST',
|
|
362
371
|
body: JSON.stringify(data),
|
|
363
|
-
headers: exports.headers()
|
|
372
|
+
headers: (0, exports.headers)()
|
|
364
373
|
})];
|
|
365
374
|
case 1:
|
|
366
375
|
res = _a.sent();
|
|
@@ -374,10 +383,10 @@ var getNotificacoes = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
374
383
|
var res;
|
|
375
384
|
return __generator(this, function (_a) {
|
|
376
385
|
switch (_a.label) {
|
|
377
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
386
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agnotfctn.rslvr"), {
|
|
378
387
|
method: 'POST',
|
|
379
388
|
body: JSON.stringify(data),
|
|
380
|
-
headers: exports.headers()
|
|
389
|
+
headers: (0, exports.headers)()
|
|
381
390
|
})];
|
|
382
391
|
case 1:
|
|
383
392
|
res = _a.sent();
|
|
@@ -391,10 +400,10 @@ var readNotificacoes = function (data) { return __awaiter(void 0, void 0, void 0
|
|
|
391
400
|
var res;
|
|
392
401
|
return __generator(this, function (_a) {
|
|
393
402
|
switch (_a.label) {
|
|
394
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
403
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agnotvista.rslvr"), {
|
|
395
404
|
method: 'POST',
|
|
396
405
|
body: JSON.stringify(data),
|
|
397
|
-
headers: exports.headers()
|
|
406
|
+
headers: (0, exports.headers)()
|
|
398
407
|
})];
|
|
399
408
|
case 1:
|
|
400
409
|
res = _a.sent();
|
|
@@ -408,10 +417,10 @@ var readNotificacao = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
408
417
|
var res;
|
|
409
418
|
return __generator(this, function (_a) {
|
|
410
419
|
switch (_a.label) {
|
|
411
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
420
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agnotlida.rslvr"), {
|
|
412
421
|
method: 'POST',
|
|
413
422
|
body: JSON.stringify(data),
|
|
414
|
-
headers: exports.headers()
|
|
423
|
+
headers: (0, exports.headers)()
|
|
415
424
|
})];
|
|
416
425
|
case 1:
|
|
417
426
|
res = _a.sent();
|
|
@@ -425,10 +434,10 @@ var recebeThread = function (data) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
425
434
|
var res;
|
|
426
435
|
return __generator(this, function (_a) {
|
|
427
436
|
switch (_a.label) {
|
|
428
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
437
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agthreads.rslvr"), {
|
|
429
438
|
method: 'POST',
|
|
430
439
|
body: JSON.stringify(data),
|
|
431
|
-
headers: exports.headers()
|
|
440
|
+
headers: (0, exports.headers)()
|
|
432
441
|
})];
|
|
433
442
|
case 1:
|
|
434
443
|
res = _a.sent();
|
|
@@ -442,10 +451,10 @@ var recebeInfoThread = function (data) { return __awaiter(void 0, void 0, void 0
|
|
|
442
451
|
var res;
|
|
443
452
|
return __generator(this, function (_a) {
|
|
444
453
|
switch (_a.label) {
|
|
445
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
454
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aginfothread.rslvr"), {
|
|
446
455
|
method: 'POST',
|
|
447
456
|
body: JSON.stringify(data),
|
|
448
|
-
headers: exports.headers()
|
|
457
|
+
headers: (0, exports.headers)()
|
|
449
458
|
})];
|
|
450
459
|
case 1:
|
|
451
460
|
res = _a.sent();
|
|
@@ -459,10 +468,10 @@ var recebeThreadsUsuario = function (data) { return __awaiter(void 0, void 0, vo
|
|
|
459
468
|
var res;
|
|
460
469
|
return __generator(this, function (_a) {
|
|
461
470
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
471
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agthreadsusuario.rslvr"), {
|
|
463
472
|
method: 'POST',
|
|
464
473
|
body: JSON.stringify(data),
|
|
465
|
-
headers: exports.headers()
|
|
474
|
+
headers: (0, exports.headers)()
|
|
466
475
|
})];
|
|
467
476
|
case 1:
|
|
468
477
|
res = _a.sent();
|
|
@@ -476,9 +485,9 @@ var recebeInfoLoginsAtivos = function () { return __awaiter(void 0, void 0, void
|
|
|
476
485
|
var res;
|
|
477
486
|
return __generator(this, function (_a) {
|
|
478
487
|
switch (_a.label) {
|
|
479
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
488
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agloginsativos.rslvr"), {
|
|
480
489
|
method: 'POST',
|
|
481
|
-
headers: exports.headers()
|
|
490
|
+
headers: (0, exports.headers)()
|
|
482
491
|
})];
|
|
483
492
|
case 1:
|
|
484
493
|
res = _a.sent();
|
|
@@ -492,9 +501,9 @@ var recebeInfoEstatisticas = function () { return __awaiter(void 0, void 0, void
|
|
|
492
501
|
var res;
|
|
493
502
|
return __generator(this, function (_a) {
|
|
494
503
|
switch (_a.label) {
|
|
495
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
504
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agstatistics.rslvr"), {
|
|
496
505
|
method: 'POST',
|
|
497
|
-
headers: exports.headers()
|
|
506
|
+
headers: (0, exports.headers)()
|
|
498
507
|
})];
|
|
499
508
|
case 1:
|
|
500
509
|
res = _a.sent();
|
|
@@ -508,10 +517,10 @@ var toggleLikePost = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
508
517
|
var res;
|
|
509
518
|
return __generator(this, function (_a) {
|
|
510
519
|
switch (_a.label) {
|
|
511
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
520
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aglike.rslvr"), {
|
|
512
521
|
method: 'POST',
|
|
513
522
|
body: JSON.stringify(data),
|
|
514
|
-
headers: exports.headers()
|
|
523
|
+
headers: (0, exports.headers)()
|
|
515
524
|
})];
|
|
516
525
|
case 1:
|
|
517
526
|
res = _a.sent();
|
|
@@ -525,10 +534,10 @@ var publicaTimeline = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
525
534
|
var res;
|
|
526
535
|
return __generator(this, function (_a) {
|
|
527
536
|
switch (_a.label) {
|
|
528
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
537
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agpost.rslvr"), {
|
|
529
538
|
method: 'POST',
|
|
530
539
|
body: JSON.stringify(data),
|
|
531
|
-
headers: exports.headers()
|
|
540
|
+
headers: (0, exports.headers)()
|
|
532
541
|
})];
|
|
533
542
|
case 1:
|
|
534
543
|
res = _a.sent();
|
|
@@ -542,10 +551,10 @@ var removePostTimeLine = function (data) { return __awaiter(void 0, void 0, void
|
|
|
542
551
|
var res;
|
|
543
552
|
return __generator(this, function (_a) {
|
|
544
553
|
switch (_a.label) {
|
|
545
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
554
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agerasepost.rslvr"), {
|
|
546
555
|
method: 'POST',
|
|
547
556
|
body: JSON.stringify(data),
|
|
548
|
-
headers: exports.headers()
|
|
557
|
+
headers: (0, exports.headers)()
|
|
549
558
|
})];
|
|
550
559
|
case 1:
|
|
551
560
|
res = _a.sent();
|
|
@@ -559,10 +568,10 @@ var fixTimelinePost = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
559
568
|
var res;
|
|
560
569
|
return __generator(this, function (_a) {
|
|
561
570
|
switch (_a.label) {
|
|
562
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
571
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agfixapost.rslvr"), {
|
|
563
572
|
method: 'POST',
|
|
564
573
|
body: JSON.stringify(data),
|
|
565
|
-
headers: exports.headers()
|
|
574
|
+
headers: (0, exports.headers)()
|
|
566
575
|
})];
|
|
567
576
|
case 1:
|
|
568
577
|
res = _a.sent();
|
|
@@ -576,10 +585,10 @@ var enviaCompartilhamentoDePrograma = function (data) { return __awaiter(void 0,
|
|
|
576
585
|
var res;
|
|
577
586
|
return __generator(this, function (_a) {
|
|
578
587
|
switch (_a.label) {
|
|
579
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
588
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agsharepost.rslvr"), {
|
|
580
589
|
method: 'POST',
|
|
581
590
|
body: JSON.stringify(data),
|
|
582
|
-
headers: exports.headers()
|
|
591
|
+
headers: (0, exports.headers)()
|
|
583
592
|
})];
|
|
584
593
|
case 1:
|
|
585
594
|
res = _a.sent();
|
|
@@ -593,10 +602,10 @@ var inicFileUpload = function (data) { return __awaiter(void 0, void 0, void 0,
|
|
|
593
602
|
var res;
|
|
594
603
|
return __generator(this, function (_a) {
|
|
595
604
|
switch (_a.label) {
|
|
596
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
605
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "getProtocol.filepart"), {
|
|
597
606
|
method: 'POST',
|
|
598
607
|
body: JSON.stringify(data),
|
|
599
|
-
headers: exports.headers()
|
|
608
|
+
headers: (0, exports.headers)()
|
|
600
609
|
})];
|
|
601
610
|
case 1:
|
|
602
611
|
res = _a.sent();
|
|
@@ -610,10 +619,10 @@ var sendFilePart = function (data) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
610
619
|
var res;
|
|
611
620
|
return __generator(this, function (_a) {
|
|
612
621
|
switch (_a.label) {
|
|
613
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
622
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "setFilePart.filepart"), {
|
|
614
623
|
method: 'POST',
|
|
615
624
|
body: JSON.stringify(data),
|
|
616
|
-
headers: exports.headers()
|
|
625
|
+
headers: (0, exports.headers)()
|
|
617
626
|
})];
|
|
618
627
|
case 1:
|
|
619
628
|
res = _a.sent();
|
|
@@ -627,10 +636,10 @@ var endFileUpload = function (data) { return __awaiter(void 0, void 0, void 0, f
|
|
|
627
636
|
var res;
|
|
628
637
|
return __generator(this, function (_a) {
|
|
629
638
|
switch (_a.label) {
|
|
630
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
639
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "setEndFileUpload.filepart"), {
|
|
631
640
|
method: 'POST',
|
|
632
641
|
body: JSON.stringify(data),
|
|
633
|
-
headers: exports.headers()
|
|
642
|
+
headers: (0, exports.headers)()
|
|
634
643
|
})];
|
|
635
644
|
case 1:
|
|
636
645
|
res = _a.sent();
|
|
@@ -644,10 +653,10 @@ var cancelFileUpload = function (data) { return __awaiter(void 0, void 0, void 0
|
|
|
644
653
|
var res;
|
|
645
654
|
return __generator(this, function (_a) {
|
|
646
655
|
switch (_a.label) {
|
|
647
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
656
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "setFileUploadCancel.filepart"), {
|
|
648
657
|
method: 'POST',
|
|
649
658
|
body: JSON.stringify(data),
|
|
650
|
-
headers: exports.headers()
|
|
659
|
+
headers: (0, exports.headers)()
|
|
651
660
|
})];
|
|
652
661
|
case 1:
|
|
653
662
|
res = _a.sent();
|
|
@@ -661,10 +670,10 @@ var getFileInfo = function (data) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
661
670
|
var res;
|
|
662
671
|
return __generator(this, function (_a) {
|
|
663
672
|
switch (_a.label) {
|
|
664
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
673
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "getFileUploadInfo.filepart"), {
|
|
665
674
|
method: 'POST',
|
|
666
675
|
body: JSON.stringify(data),
|
|
667
|
-
headers: exports.headers()
|
|
676
|
+
headers: (0, exports.headers)()
|
|
668
677
|
})];
|
|
669
678
|
case 1:
|
|
670
679
|
res = _a.sent();
|
|
@@ -678,10 +687,10 @@ var searchUsers = function (data) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
678
687
|
var res;
|
|
679
688
|
return __generator(this, function (_a) {
|
|
680
689
|
switch (_a.label) {
|
|
681
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
690
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aggetlistausuarios.rslvr"), {
|
|
682
691
|
method: 'POST',
|
|
683
692
|
body: JSON.stringify(data),
|
|
684
|
-
headers: exports.headers()
|
|
693
|
+
headers: (0, exports.headers)()
|
|
685
694
|
})];
|
|
686
695
|
case 1:
|
|
687
696
|
res = _a.sent();
|
|
@@ -695,10 +704,10 @@ var getDocsUrl = function (data) { return __awaiter(void 0, void 0, void 0, func
|
|
|
695
704
|
var res;
|
|
696
705
|
return __generator(this, function (_a) {
|
|
697
706
|
switch (_a.label) {
|
|
698
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
707
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agdocsurl.rslvr"), {
|
|
699
708
|
method: 'POST',
|
|
700
709
|
body: JSON.stringify(data),
|
|
701
|
-
headers: exports.headers()
|
|
710
|
+
headers: (0, exports.headers)()
|
|
702
711
|
})];
|
|
703
712
|
case 1:
|
|
704
713
|
res = _a.sent();
|
|
@@ -713,16 +722,16 @@ var prepareFile = function (file) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
713
722
|
var _d;
|
|
714
723
|
return __generator(this, function (_e) {
|
|
715
724
|
switch (_e.label) {
|
|
716
|
-
case 0: return [4 /*yield*/, exports.getDocsUrl()];
|
|
725
|
+
case 0: return [4 /*yield*/, (0, exports.getDocsUrl)()];
|
|
717
726
|
case 1:
|
|
718
727
|
_a = _e.sent(), status = _a.status, docsUrl = _a.docsUrl;
|
|
719
728
|
if (!status)
|
|
720
729
|
return [2 /*return*/];
|
|
721
730
|
formData = new FormData();
|
|
722
731
|
formData.append('blob', file);
|
|
723
|
-
return [4 /*yield*/, fetch(docsUrl
|
|
732
|
+
return [4 /*yield*/, fetch("".concat(docsUrl, "/argous/docs/upload.agdoc"), {
|
|
724
733
|
method: 'POST',
|
|
725
|
-
headers: exports.headers(),
|
|
734
|
+
headers: (0, exports.headers)(),
|
|
726
735
|
body: formData
|
|
727
736
|
})];
|
|
728
737
|
case 2:
|
|
@@ -730,7 +739,7 @@ var prepareFile = function (file) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
730
739
|
_b = [{}];
|
|
731
740
|
return [4 /*yield*/, res.json()];
|
|
732
741
|
case 3:
|
|
733
|
-
_c = [__assign.apply(void 0, _b.concat([_e.sent()]))];
|
|
742
|
+
_c = [__assign.apply(void 0, _b.concat([(_e.sent())]))];
|
|
734
743
|
_d = { lastModified: file.lastModified, lastModifiedDate: file.lastModifiedDate, name: file.name, size: file.size, type: file.type, webkitRelativePath: file.webkitRelativePath };
|
|
735
744
|
return [4 /*yield*/, file.arrayBuffer()];
|
|
736
745
|
case 4: return [2 /*return*/, __assign.apply(void 0, _c.concat([(_d.arrayBuffer = _e.sent(), _d)]))];
|
|
@@ -738,38 +747,51 @@ var prepareFile = function (file) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
738
747
|
});
|
|
739
748
|
}); };
|
|
740
749
|
exports.prepareFile = prepareFile;
|
|
741
|
-
var createDocument = function (_a) {
|
|
742
|
-
var
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
750
|
+
var createDocument = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
751
|
+
var _c, status, docsUrl;
|
|
752
|
+
var idUnidade = _b.idUnidade, cdUnidade = _b.cdUnidade, idDocPai = _b.idDocPai, path = _b.path, dsKeyWords = _b.dsKeyWords, dtValidade = _b.dtValidade, idTipoDocumento = _b.idTipoDocumento, FileName = _b.FileName, title = _b.title, idRecebimento = _b.idRecebimento, tpPrivacidade = _b.tpPrivacidade, description = _b.description, dsClassificacao = _b.dsClassificacao, dsCategoria = _b.dsCategoria, dsSubCategoria = _b.dsSubCategoria, snSensivel = _b.snSensivel;
|
|
753
|
+
return __generator(this, function (_d) {
|
|
754
|
+
switch (_d.label) {
|
|
755
|
+
case 0: return [4 /*yield*/, (0, exports.getDocsUrl)()];
|
|
756
|
+
case 1:
|
|
757
|
+
_c = _d.sent(), status = _c.status, docsUrl = _c.docsUrl;
|
|
758
|
+
if (!status)
|
|
759
|
+
return [2 /*return*/];
|
|
760
|
+
return [4 /*yield*/, fetch("".concat(docsUrl, "argous/docs/upload.agdoc"), {
|
|
761
|
+
method: 'POST',
|
|
762
|
+
headers: (0, exports.headers)(),
|
|
763
|
+
body: JSON.stringify({
|
|
764
|
+
idUnidade: idUnidade,
|
|
765
|
+
cdUnidade: cdUnidade,
|
|
766
|
+
idDocPai: idDocPai,
|
|
767
|
+
path: path,
|
|
768
|
+
dsKeyWords: dsKeyWords,
|
|
769
|
+
dtValidade: dtValidade,
|
|
770
|
+
idTipoDocumento: idTipoDocumento,
|
|
771
|
+
FileName: FileName,
|
|
772
|
+
title: title,
|
|
773
|
+
idRecebimento: idRecebimento,
|
|
774
|
+
tpPrivacidade: tpPrivacidade,
|
|
775
|
+
description: description,
|
|
776
|
+
dsClassificacao: dsClassificacao,
|
|
777
|
+
dsCategoria: dsCategoria,
|
|
778
|
+
dsSubCategoria: dsSubCategoria,
|
|
779
|
+
snSensivel: snSensivel
|
|
780
|
+
})
|
|
781
|
+
})];
|
|
782
|
+
case 2: return [2 /*return*/, (_d.sent()).json()];
|
|
783
|
+
}
|
|
766
784
|
});
|
|
767
|
-
};
|
|
785
|
+
}); };
|
|
768
786
|
exports.createDocument = createDocument;
|
|
769
|
-
var getFileFromLink = function (
|
|
770
|
-
var
|
|
771
|
-
|
|
787
|
+
var getFileFromLink = function () {
|
|
788
|
+
var args_1 = [];
|
|
789
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
790
|
+
args_1[_i] = arguments[_i];
|
|
791
|
+
}
|
|
792
|
+
return __awaiter(void 0, __spreadArray([], args_1, true), void 0, function (_a) {
|
|
772
793
|
var file;
|
|
794
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.URL, link = _c === void 0 ? '' : _c, _d = _b.token, token = _d === void 0 ? '' : _d;
|
|
773
795
|
return __generator(this, function (_e) {
|
|
774
796
|
switch (_e.label) {
|
|
775
797
|
case 0:
|
|
@@ -777,7 +799,7 @@ var getFileFromLink = function (_a) {
|
|
|
777
799
|
return [2 /*return*/, ''];
|
|
778
800
|
return [4 /*yield*/, fetch(link, {
|
|
779
801
|
method: 'post',
|
|
780
|
-
headers: exports.headers(token)
|
|
802
|
+
headers: (0, exports.headers)(token)
|
|
781
803
|
})];
|
|
782
804
|
case 1: return [4 /*yield*/, (_e.sent()).blob()];
|
|
783
805
|
case 2:
|
|
@@ -794,9 +816,9 @@ var getLink = function (idDocumento, nrRevisao, timeout) { return __awaiter(void
|
|
|
794
816
|
case 0:
|
|
795
817
|
if (!idDocumento)
|
|
796
818
|
return [2 /*return*/, ''];
|
|
797
|
-
return [4 /*yield*/, fetch(exports.api()
|
|
819
|
+
return [4 /*yield*/, fetch("".concat((0, exports.api)(), "docs/getURL.agdoc"), {
|
|
798
820
|
method: 'post',
|
|
799
|
-
headers: exports.headers(),
|
|
821
|
+
headers: (0, exports.headers)(),
|
|
800
822
|
body: JSON.stringify({ idDocumento: idDocumento, nrRevisao: nrRevisao, timeout: timeout })
|
|
801
823
|
})];
|
|
802
824
|
case 1: return [4 /*yield*/, (_a.sent()).json()];
|
|
@@ -809,14 +831,14 @@ var scanDocument = function (idDocumento, nrRevisao) { return __awaiter(void 0,
|
|
|
809
831
|
var _a, status, docsUrl, res;
|
|
810
832
|
return __generator(this, function (_b) {
|
|
811
833
|
switch (_b.label) {
|
|
812
|
-
case 0: return [4 /*yield*/, exports.getDocsUrl()];
|
|
834
|
+
case 0: return [4 /*yield*/, (0, exports.getDocsUrl)()];
|
|
813
835
|
case 1:
|
|
814
836
|
_a = _b.sent(), status = _a.status, docsUrl = _a.docsUrl;
|
|
815
837
|
if (!status)
|
|
816
838
|
return [2 /*return*/];
|
|
817
|
-
return [4 /*yield*/, fetch(docsUrl
|
|
839
|
+
return [4 /*yield*/, fetch("".concat(docsUrl, "argous/docs/scan.agdoc"), {
|
|
818
840
|
method: 'post',
|
|
819
|
-
headers: exports.headers(),
|
|
841
|
+
headers: (0, exports.headers)(),
|
|
820
842
|
body: JSON.stringify({ idDocumento: idDocumento, nrRevisao: nrRevisao })
|
|
821
843
|
})];
|
|
822
844
|
case 2:
|
|
@@ -831,9 +853,9 @@ var getWidgets = function (data, abortController) { return __awaiter(void 0, voi
|
|
|
831
853
|
var res;
|
|
832
854
|
return __generator(this, function (_a) {
|
|
833
855
|
switch (_a.label) {
|
|
834
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
856
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agetwidgets.rslvr"), {
|
|
835
857
|
method: 'post',
|
|
836
|
-
headers: exports.headers(),
|
|
858
|
+
headers: (0, exports.headers)(),
|
|
837
859
|
body: JSON.stringify(data),
|
|
838
860
|
signal: abortController === null || abortController === void 0 ? void 0 : abortController.signal
|
|
839
861
|
})];
|
|
@@ -849,9 +871,9 @@ var getWidgetInfo = function (pgCode) { return __awaiter(void 0, void 0, void 0,
|
|
|
849
871
|
var res;
|
|
850
872
|
return __generator(this, function (_a) {
|
|
851
873
|
switch (_a.label) {
|
|
852
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
874
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agetwidgetinfo.rslvr"), {
|
|
853
875
|
method: 'post',
|
|
854
|
-
headers: exports.headers(),
|
|
876
|
+
headers: (0, exports.headers)(),
|
|
855
877
|
body: JSON.stringify({ pgCode: pgCode })
|
|
856
878
|
})];
|
|
857
879
|
case 1:
|
|
@@ -866,9 +888,9 @@ var sendWidgets = function (widgets) { return __awaiter(void 0, void 0, void 0,
|
|
|
866
888
|
var res;
|
|
867
889
|
return __generator(this, function (_a) {
|
|
868
890
|
switch (_a.label) {
|
|
869
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
891
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agsendwidgets.rslvr"), {
|
|
870
892
|
method: 'post',
|
|
871
|
-
headers: exports.headers(),
|
|
893
|
+
headers: (0, exports.headers)(),
|
|
872
894
|
body: JSON.stringify({ widgets: widgets })
|
|
873
895
|
})];
|
|
874
896
|
case 1:
|
|
@@ -883,9 +905,9 @@ var getPublicDoc = function (data) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
883
905
|
var res;
|
|
884
906
|
return __generator(this, function (_a) {
|
|
885
907
|
switch (_a.label) {
|
|
886
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
908
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agpublicdoc.rslvr"), {
|
|
887
909
|
method: 'post',
|
|
888
|
-
headers: exports.headers(),
|
|
910
|
+
headers: (0, exports.headers)(),
|
|
889
911
|
body: JSON.stringify(data)
|
|
890
912
|
})];
|
|
891
913
|
case 1:
|
|
@@ -900,9 +922,9 @@ var getProgramAnnotations = function (data, token) { return __awaiter(void 0, vo
|
|
|
900
922
|
var res;
|
|
901
923
|
return __generator(this, function (_a) {
|
|
902
924
|
switch (_a.label) {
|
|
903
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
925
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "aggetpgannotation.rslvr"), {
|
|
904
926
|
method: 'post',
|
|
905
|
-
headers: exports.headers(token),
|
|
927
|
+
headers: (0, exports.headers)(token),
|
|
906
928
|
body: JSON.stringify(data)
|
|
907
929
|
})];
|
|
908
930
|
case 1:
|
|
@@ -917,9 +939,9 @@ var saveProgramAnnotation = function (data, token) { return __awaiter(void 0, vo
|
|
|
917
939
|
var res;
|
|
918
940
|
return __generator(this, function (_a) {
|
|
919
941
|
switch (_a.label) {
|
|
920
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
942
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agsavepgannotation.rslvr"), {
|
|
921
943
|
method: 'post',
|
|
922
|
-
headers: exports.headers(token),
|
|
944
|
+
headers: (0, exports.headers)(token),
|
|
923
945
|
body: JSON.stringify(data)
|
|
924
946
|
})];
|
|
925
947
|
case 1:
|
|
@@ -934,9 +956,9 @@ var sendProgramAnnotation = function (data, token) { return __awaiter(void 0, vo
|
|
|
934
956
|
var res;
|
|
935
957
|
return __generator(this, function (_a) {
|
|
936
958
|
switch (_a.label) {
|
|
937
|
-
case 0: return [4 /*yield*/, fetch(exports.api()
|
|
959
|
+
case 0: return [4 /*yield*/, fetch("".concat((0, exports.api)(), "agsendpgannotation.rslvr"), {
|
|
938
960
|
method: 'post',
|
|
939
|
-
headers: exports.headers(token),
|
|
961
|
+
headers: (0, exports.headers)(token),
|
|
940
962
|
body: JSON.stringify(data)
|
|
941
963
|
})];
|
|
942
964
|
case 1:
|