infinity-forge 0.26.0 → 0.26.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/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/sites/components/brands-carousel/index.d.ts +1 -1
- package/dist/sites/components/brands-carousel/index.js +3 -3
- package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/component.d.ts +1 -1
- package/dist/sites/components/carousel/component.js +1 -1
- package/dist/sites/components/carousel/index.d.ts +1 -1
- package/dist/sites/components/carousel/index.js +1 -1
- package/dist/sites/components/carousel/interfaces.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.d.ts +1 -1
- package/dist/sites/components/carousel/versions/index.js +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
- package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
- package/dist/sites/components/counter/component.d.ts +1 -1
- package/dist/sites/components/counter/component.js +1 -1
- package/dist/sites/components/counter/index.d.ts +1 -1
- package/dist/sites/components/counter/index.js +1 -1
- package/dist/sites/components/counter/interfaces.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/index.js +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
- package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/counter/versions/version-01/component.js +3 -3
- package/dist/sites/components/head/component.d.ts +1 -1
- package/dist/sites/components/head/index.d.ts +2 -2
- package/dist/sites/components/head/index.js +2 -2
- package/dist/sites/components/header-link/component.d.ts +1 -1
- package/dist/sites/components/header-link/component.js +1 -1
- package/dist/sites/components/header-link/index.d.ts +1 -1
- package/dist/sites/components/header-link/index.js +1 -1
- package/dist/sites/components/header-link/interfaces.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.d.ts +1 -1
- package/dist/sites/components/header-link/versions/index.js +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
- package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
- package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
- package/dist/sites/components/index.d.ts +6 -6
- package/dist/sites/components/index.js +6 -6
- package/dist/sites/components/mvv/component.d.ts +1 -1
- package/dist/sites/components/mvv/component.js +1 -1
- package/dist/sites/components/mvv/index.d.ts +1 -1
- package/dist/sites/components/mvv/index.js +1 -1
- package/dist/sites/components/mvv/interfaces.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.d.ts +1 -1
- package/dist/sites/components/mvv/versions/index.js +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
- package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
- package/dist/sites/context/configs/context.d.ts +1 -1
- package/dist/sites/context/configs/context.js +3 -3
- package/dist/sites/context/configs/index.d.ts +2 -2
- package/dist/sites/context/configs/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
- package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
- package/dist/sites/context/configs/scripts/component.d.ts +1 -1
- package/dist/sites/context/configs/scripts/component.js +4 -4
- package/dist/sites/context/configs/scripts/index.d.ts +5 -5
- package/dist/sites/context/configs/scripts/index.js +5 -5
- package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
- package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
- package/dist/sites/context/index.d.ts +1 -1
- package/dist/sites/context/index.js +1 -1
- package/dist/sites/hook/index.d.ts +3 -3
- package/dist/sites/hook/index.js +3 -3
- package/dist/sites/index.d.ts +4 -4
- package/dist/sites/index.js +4 -4
- package/dist/sites/interfaces/api-data/index.d.ts +1 -1
- package/dist/sites/interfaces/api-data/index.js +1 -1
- package/dist/sites/interfaces/index.d.ts +2 -2
- package/dist/sites/interfaces/index.js +2 -2
- package/dist/sites/utils/index.d.ts +1 -1
- package/dist/sites/utils/index.js +1 -1
- package/dist/system/container/admin/auth/container.js +11 -0
- package/dist/system/container/admin/auth/index.d.ts +2 -0
- package/dist/system/container/admin/auth/index.js +19 -0
- package/dist/system/container/admin/index.d.ts +3 -0
- package/dist/system/container/admin/index.js +20 -0
- package/dist/system/container/admin/menu/container.js +11 -0
- package/dist/system/container/admin/menu/index.d.ts +2 -0
- package/dist/system/container/admin/menu/index.js +19 -0
- package/dist/system/container/admin/users/container.js +12 -0
- package/dist/system/container/admin/users/index.d.ts +2 -0
- package/dist/system/container/admin/users/index.js +19 -0
- package/dist/system/container/decorators/authorize-http-client-decorator.d.ts +8 -0
- package/dist/system/container/decorators/authorize-http-client-decorator.js +117 -0
- package/dist/system/container/decorators/index.d.ts +1 -0
- package/dist/system/container/decorators/index.js +18 -0
- package/dist/system/container/files/container.js +11 -0
- package/dist/system/container/files/index.d.ts +2 -0
- package/dist/system/container/files/index.js +19 -0
- package/dist/system/container/index.d.ts +3 -0
- package/dist/system/container/index.js +20 -0
- package/dist/system/container/infra/container.js +15 -0
- package/dist/system/container/infra/index.d.ts +3 -0
- package/dist/system/container/infra/index.js +20 -0
- package/dist/system/container/main.d.ts +4 -0
- package/dist/system/container/main.js +13 -0
- package/dist/system/container/types.js +18 -0
- package/dist/system/data/index.d.ts +1 -0
- package/dist/system/data/index.js +18 -0
- package/dist/system/data/use-cases/auth/index.d.ts +1 -0
- package/dist/system/data/use-cases/auth/index.js +18 -0
- package/dist/system/data/use-cases/auth/remote-auth-admin.d.ts +10 -0
- package/dist/system/data/use-cases/auth/remote-auth-admin.js +116 -0
- package/dist/system/data/use-cases/files/index.d.ts +1 -0
- package/dist/system/data/use-cases/files/index.js +18 -0
- package/dist/system/data/use-cases/files/remote-files.d.ts +9 -0
- package/dist/system/data/use-cases/files/remote-files.js +130 -0
- package/dist/system/data/use-cases/index.d.ts +4 -0
- package/dist/system/data/use-cases/index.js +21 -0
- package/dist/system/data/use-cases/menu/index.d.ts +1 -0
- package/dist/system/data/use-cases/menu/index.js +18 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.d.ts +12 -0
- package/dist/system/data/use-cases/menu/remote-get-menu.js +176 -0
- package/dist/system/data/use-cases/users/index.d.ts +2 -0
- package/dist/system/data/use-cases/users/index.js +19 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.d.ts +8 -0
- package/dist/system/data/use-cases/users/remote-load-user-admin.js +109 -0
- package/dist/system/data/use-cases/users/remote-users.d.ts +12 -0
- package/dist/system/data/use-cases/users/remote-users.js +176 -0
- package/dist/system/domain/index.d.ts +4 -0
- package/dist/system/domain/index.js +21 -0
- package/dist/system/domain/use-cases/index.d.ts +4 -0
- package/dist/system/domain/use-cases/index.js +21 -0
- package/dist/system/index.d.ts +5 -5
- package/dist/system/index.js +5 -5
- package/dist/system/infra/cache/cookie-storage-adapter.d.ts +6 -0
- package/dist/system/infra/cache/index.d.ts +2 -0
- package/dist/system/infra/cache/index.js +19 -0
- package/dist/system/infra/cache/storage-type.d.ts +2 -0
- package/dist/system/infra/http/axios-http-client.d.ts +4 -0
- package/dist/system/infra/http/axios-http-client.js +142 -0
- package/dist/system/infra/http/index.d.ts +1 -0
- package/dist/system/infra/http/index.js +18 -0
- package/dist/system/infra/index.d.ts +3 -0
- package/dist/system/infra/index.js +20 -0
- package/dist/system/infra/type-models/index.d.ts +2 -0
- package/dist/system/infra/type-models/index.js +19 -0
- package/dist/system/presentation/components/data/avatar/index.js +2 -2
- package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
- package/dist/system/presentation/components/data/chat/index.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/index.js +4 -4
- package/dist/system/presentation/components/data/chat/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
- package/dist/system/presentation/components/data/highlight-text/index.d.ts +1 -1
- package/dist/system/presentation/components/data/highlight-text/index.js +2 -2
- package/dist/system/presentation/components/data/index.d.ts +9 -9
- package/dist/system/presentation/components/data/index.js +9 -9
- package/dist/system/presentation/components/data/input-search/index.d.ts +1 -1
- package/dist/system/presentation/components/data/input-search/index.js +3 -3
- package/dist/system/presentation/components/data/logo/index.js +2 -2
- package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
- package/dist/system/presentation/components/data/overlay/index.js +2 -2
- package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
- package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
- package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
- package/dist/system/presentation/components/data/sign-up/index.js +3 -3
- package/dist/system/presentation/components/index.d.ts +3 -3
- package/dist/system/presentation/components/index.js +3 -3
- package/dist/system/presentation/components/layout/component.d.ts +1 -1
- package/dist/system/presentation/components/layout/component.js +4 -5
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/header/components/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
- package/dist/system/presentation/components/layout/header/index.js +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js +5 -5
- package/dist/system/presentation/components/layout/index.d.ts +3 -3
- package/dist/system/presentation/components/layout/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -2
- package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
- package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
- package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +4 -4
- package/dist/system/presentation/components/layout/menu/index.js +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/menu/version-01/index.js +2 -2
- package/dist/system/presentation/components/pages/index.d.ts +2 -2
- package/dist/system/presentation/components/pages/index.js +2 -2
- package/dist/system/presentation/components/pages/menus/index.d.ts +1 -1
- package/dist/system/presentation/components/pages/menus/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/page.js +3 -3
- package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
- package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
- package/dist/system/presentation/components/pages/users/index.d.ts +1 -1
- package/dist/system/presentation/components/pages/users/index.js +1 -1
- package/dist/system/presentation/components/pages/users/page.js +3 -3
- package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/create.js +2 -2
- package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
- package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
- package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
- package/dist/system/presentation/components/pages/users/table/index.js +4 -4
- package/dist/system/presentation/configs/index.d.ts +2 -2
- package/dist/system/presentation/configs/index.js +2 -2
- package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
- package/dist/system/presentation/context/auth/context.d.ts +1 -1
- package/dist/system/presentation/context/auth/context.js +2 -2
- package/dist/system/presentation/context/auth/index.d.ts +5 -5
- package/dist/system/presentation/context/auth/index.js +5 -5
- package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
- package/dist/system/presentation/context/auth/login/index.js +3 -3
- package/dist/system/presentation/context/auth/private-page/index.js +3 -3
- package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
- package/dist/system/presentation/context/container.js +3 -3
- package/dist/system/presentation/context/index.d.ts +3 -3
- package/dist/system/presentation/context/index.js +3 -3
- package/dist/system/presentation/context/system-configs/context.d.ts +1 -1
- package/dist/system/presentation/context/system-configs/context.js +1 -1
- package/dist/system/presentation/context/system-configs/index.d.ts +2 -2
- package/dist/system/presentation/context/system-configs/index.js +2 -2
- package/dist/system/presentation/hooks/index.d.ts +2 -2
- package/dist/system/presentation/hooks/index.js +2 -2
- package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
- package/dist/system/presentation/hooks/menu/index.js +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
- package/dist/system/presentation/hooks/ui/index.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/component.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/component.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +107 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +3 -3
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +35 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +4 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +128 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +9 -9
- package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -4
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +2 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/index.d.ts +4 -4
- package/dist/system/presentation/hooks/ui/use-table/index.js +4 -4
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +80 -0
- package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +5 -0
- package/dist/system/presentation/hooks/ui/use-table/query/hook.js +50 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +2 -0
- package/dist/system/presentation/hooks/ui/use-table/query/index.js +19 -0
- package/dist/system/presentation/index.d.ts +5 -5
- package/dist/system/presentation/index.js +5 -5
- package/dist/system/presentation/utils/index.d.ts +1 -0
- package/dist/system/presentation/utils/index.js +18 -0
- package/dist/system/presentation/utils/use-query/index.d.ts +1 -0
- package/dist/system/presentation/utils/use-query/index.js +18 -0
- package/dist/ui/components/accordion/index..d.ts +1 -1
- package/dist/ui/components/accordion/index..js +2 -2
- package/dist/ui/components/breadcrumb/index.d.ts +1 -1
- package/dist/ui/components/breadcrumb/index.js +1 -1
- package/dist/ui/components/button/component.d.ts +1 -1
- package/dist/ui/components/button/component.js +2 -2
- package/dist/ui/components/button/index.d.ts +2 -2
- package/dist/ui/components/button/index.js +2 -2
- package/dist/ui/components/button/interfaces.d.ts +1 -1
- package/dist/ui/components/container/index.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.d.ts +1 -1
- package/dist/ui/components/error-boundary/component.js +1 -1
- package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
- package/dist/ui/components/error-boundary/index.d.ts +2 -2
- package/dist/ui/components/error-boundary/index.js +2 -2
- package/dist/ui/components/form/checkbox/index.js +2 -2
- package/dist/ui/components/form/handler/component.d.ts +1 -1
- package/dist/ui/components/form/handler/component.js +1 -1
- package/dist/ui/components/form/handler/custom-submit/index.d.ts +1 -1
- package/dist/ui/components/form/handler/custom-submit/index.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +4 -4
- package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +2 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/index.js +2 -2
- package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +4 -4
- package/dist/ui/components/form/handler/form-handler/index.d.ts +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +4 -5
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/handler/index.d.ts +5 -5
- package/dist/ui/components/form/handler/index.js +5 -5
- package/dist/ui/components/form/handler/interfaces.d.ts +2 -2
- package/dist/ui/components/form/index.d.ts +14 -14
- package/dist/ui/components/form/index.js +14 -14
- package/dist/ui/components/form/input/index.d.ts +1 -1
- package/dist/ui/components/form/input/index.js +1 -1
- package/dist/ui/components/form/input-control/error/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/error/index.js +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +5 -5
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/loader-input/index.js +2 -2
- package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -1
- package/dist/ui/components/form/input-cpf-cnpj/index.js +1 -1
- package/dist/ui/components/form/input-currency/index.d.ts +1 -1
- package/dist/ui/components/form/input-currency/index.js +1 -1
- package/dist/ui/components/form/input-date/index.d.ts +1 -1
- package/dist/ui/components/form/input-date/index.js +1 -1
- package/dist/ui/components/form/input-file/file-card/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/file-card/index.js +3 -3
- package/dist/ui/components/form/input-file/index.d.ts +1 -1
- package/dist/ui/components/form/input-file/index.js +4 -4
- package/dist/ui/components/form/input-mask/index.d.ts +1 -1
- package/dist/ui/components/form/input-mask/index.js +1 -1
- package/dist/ui/components/form/input-password/index.d.ts +1 -1
- package/dist/ui/components/form/input-password/index.js +3 -3
- package/dist/ui/components/form/input-switch/index.d.ts +1 -1
- package/dist/ui/components/form/input-switch/index.js +1 -1
- package/dist/ui/components/form/interfaces.d.ts +1 -1
- package/dist/ui/components/form/radio/index.js +2 -2
- package/dist/ui/components/form/select/index.d.ts +1 -1
- package/dist/ui/components/form/select/index.js +3 -10
- package/dist/ui/components/form/select/index.js.map +1 -1
- package/dist/ui/components/form/select/interfaces.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.d.ts +1 -1
- package/dist/ui/components/form/textarea/index.js +1 -1
- package/dist/ui/components/index.d.ts +10 -10
- package/dist/ui/components/index.js +10 -10
- package/dist/ui/components/loader-circle/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.d.ts +1 -1
- package/dist/ui/components/loading-screen/index.js +3 -3
- package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
- package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/index.js +4 -4
- package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
- package/dist/ui/components/menu-mobile/top/index.js +2 -2
- package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
- package/dist/ui/components/next-image/index.d.ts +1 -1
- package/dist/ui/components/next-image/index.js +3 -3
- package/dist/ui/components/sidebar/index.d.ts +1 -1
- package/dist/ui/components/sidebar/index.js +1 -1
- package/dist/ui/contexts/index.d.ts +3 -3
- package/dist/ui/contexts/index.js +3 -3
- package/dist/ui/contexts/theme/context.d.ts +1 -1
- package/dist/ui/contexts/theme/context.js +1 -1
- package/dist/ui/contexts/theme/index.d.ts +2 -2
- package/dist/ui/contexts/theme/index.js +2 -2
- package/dist/ui/contexts/toast/index.d.ts +1 -1
- package/dist/ui/contexts/toast/index.js +3 -3
- package/dist/ui/contexts/toast/toast-item/index.d.ts +1 -1
- package/dist/ui/contexts/toast/toast-item/index.js +2 -2
- package/dist/ui/icons/render/Globe.d.ts +1 -1
- package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
- package/dist/ui/index.d.ts +5 -5
- package/dist/ui/index.js +5 -5
- package/dist/ui/utils/buffer/index.d.ts +1 -1
- package/dist/ui/utils/buffer/index.js +1 -1
- package/dist/ui/utils/facebook/index.d.ts +1 -1
- package/dist/ui/utils/facebook/index.js +1 -1
- package/dist/ui/utils/file/index.d.ts +2 -2
- package/dist/ui/utils/file/index.js +2 -2
- package/dist/ui/utils/file/load-file.d.ts +1 -1
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.d.ts +1 -1
- package/dist/ui/utils/file/upload-file.js +1 -1
- package/dist/ui/utils/index.d.ts +7 -7
- package/dist/ui/utils/index.js +7 -7
- package/dist/ui/utils/libs/index.d.ts +1 -1
- package/dist/ui/utils/libs/index.js +1 -1
- package/dist/ui/utils/libs/next/index.d.ts +2 -2
- package/dist/ui/utils/libs/next/index.js +2 -2
- package/dist/ui/utils/validations/index.d.ts +2 -2
- package/dist/ui/utils/validations/index.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
+
};
|
|
37
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
41
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
42
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
47
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
48
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
49
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
50
|
+
function step(op) {
|
|
51
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
52
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
53
|
+
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;
|
|
54
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
55
|
+
switch (op[0]) {
|
|
56
|
+
case 0: case 1: t = op; break;
|
|
57
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
58
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
59
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
60
|
+
default:
|
|
61
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
62
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
63
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
64
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
65
|
+
if (t[2]) _.ops.pop();
|
|
66
|
+
_.trys.pop(); continue;
|
|
67
|
+
}
|
|
68
|
+
op = body.call(thisArg, _);
|
|
69
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
+
exports.RemoteAuthAdmin = void 0;
|
|
75
|
+
var inversify_1 = require("inversify");
|
|
76
|
+
var infra = __importStar(require("../../../../system/infra/index.js"));
|
|
77
|
+
var domain = __importStar(require("../../../../system/domain/index.js"));
|
|
78
|
+
var types_1 = require("../../../../system/container/infra/types.js");
|
|
79
|
+
var make_api_url_1 = require("../../../../system/container/infra/make-api-url.js");
|
|
80
|
+
var RemoteAuthAdmin = /** @class */ (function () {
|
|
81
|
+
function RemoteAuthAdmin(storage, makeApiURL, httpClient) {
|
|
82
|
+
this.storage = storage;
|
|
83
|
+
this.makeApiURL = makeApiURL;
|
|
84
|
+
this.httpClient = httpClient;
|
|
85
|
+
}
|
|
86
|
+
RemoteAuthAdmin.prototype.auth = function (params) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
var response;
|
|
89
|
+
return __generator(this, function (_a) {
|
|
90
|
+
switch (_a.label) {
|
|
91
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
92
|
+
url: this.makeApiURL.make('Authentication'),
|
|
93
|
+
method: 'post',
|
|
94
|
+
body: params,
|
|
95
|
+
})];
|
|
96
|
+
case 1:
|
|
97
|
+
response = _a.sent();
|
|
98
|
+
return [4 /*yield*/, this.storage.set('token', { value: response.data.token })];
|
|
99
|
+
case 2:
|
|
100
|
+
_a.sent();
|
|
101
|
+
return [2 /*return*/, response.data];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
RemoteAuthAdmin = __decorate([
|
|
107
|
+
(0, inversify_1.injectable)(),
|
|
108
|
+
__param(0, (0, inversify_1.inject)(types_1.InfraTypes.storage)),
|
|
109
|
+
__param(1, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
|
|
110
|
+
__param(2, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
|
|
111
|
+
__metadata("design:paramtypes", [Object, make_api_url_1.makeApiURL, Object])
|
|
112
|
+
], RemoteAuthAdmin);
|
|
113
|
+
return RemoteAuthAdmin;
|
|
114
|
+
}());
|
|
115
|
+
exports.RemoteAuthAdmin = RemoteAuthAdmin;
|
|
116
|
+
//# sourceMappingURL=remote-auth-admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './remote-files.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./remote-files.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as domain from '../../../../system/domain/index.js';
|
|
2
|
+
import { makeApiURL } from '../../../../system/container/infra/make-api-url.js';
|
|
3
|
+
export declare class RemoteFile implements domain.UploadFile, domain.LoadFile {
|
|
4
|
+
private readonly makeApiURL;
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
constructor(makeApiURL: makeApiURL, httpClient: domain.HttpClient);
|
|
7
|
+
upload(params: domain.UploadFile.Params): Promise<domain.UploadFile.Model>;
|
|
8
|
+
load(params: domain.LoadFile.Params): Promise<domain.HttpResponse<any>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
+
};
|
|
37
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
41
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
42
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
47
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
48
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
49
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
50
|
+
function step(op) {
|
|
51
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
52
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
53
|
+
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;
|
|
54
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
55
|
+
switch (op[0]) {
|
|
56
|
+
case 0: case 1: t = op; break;
|
|
57
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
58
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
59
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
60
|
+
default:
|
|
61
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
62
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
63
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
64
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
65
|
+
if (t[2]) _.ops.pop();
|
|
66
|
+
_.trys.pop(); continue;
|
|
67
|
+
}
|
|
68
|
+
op = body.call(thisArg, _);
|
|
69
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
+
exports.RemoteFile = void 0;
|
|
75
|
+
var inversify_1 = require("inversify");
|
|
76
|
+
var domain = __importStar(require("../../../../system/domain/index.js"));
|
|
77
|
+
var types_1 = require("../../../../system/container/infra/types.js");
|
|
78
|
+
var make_api_url_1 = require("../../../../system/container/infra/make-api-url.js");
|
|
79
|
+
var RemoteFile = /** @class */ (function () {
|
|
80
|
+
function RemoteFile(makeApiURL, httpClient) {
|
|
81
|
+
this.makeApiURL = makeApiURL;
|
|
82
|
+
this.httpClient = httpClient;
|
|
83
|
+
}
|
|
84
|
+
RemoteFile.prototype.upload = function (params) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
var response;
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
90
|
+
url: this.makeApiURL.make('Files/Upload/'),
|
|
91
|
+
method: 'post',
|
|
92
|
+
body: params,
|
|
93
|
+
headers: {
|
|
94
|
+
'Content-Type': 'multipart/form-data; boundary=something',
|
|
95
|
+
},
|
|
96
|
+
})];
|
|
97
|
+
case 1:
|
|
98
|
+
response = _a.sent();
|
|
99
|
+
return [2 /*return*/, response.data];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
RemoteFile.prototype.load = function (params) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
var response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
110
|
+
url: this.makeApiURL.make("Files/Download/"),
|
|
111
|
+
method: 'post',
|
|
112
|
+
body: params,
|
|
113
|
+
})];
|
|
114
|
+
case 1:
|
|
115
|
+
response = _a.sent();
|
|
116
|
+
return [2 /*return*/, response];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
RemoteFile = __decorate([
|
|
122
|
+
(0, inversify_1.injectable)(),
|
|
123
|
+
__param(0, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
|
|
124
|
+
__param(1, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
|
|
125
|
+
__metadata("design:paramtypes", [make_api_url_1.makeApiURL, Object])
|
|
126
|
+
], RemoteFile);
|
|
127
|
+
return RemoteFile;
|
|
128
|
+
}());
|
|
129
|
+
exports.RemoteFile = RemoteFile;
|
|
130
|
+
//# sourceMappingURL=remote-files.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./auth/index.js"), exports);
|
|
18
|
+
__exportStar(require("./menu/index.js"), exports);
|
|
19
|
+
__exportStar(require("./users/index.js"), exports);
|
|
20
|
+
__exportStar(require("./files/index.js"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './remote-get-menu.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./remote-get-menu.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as domain from '../../../../system/domain/index.js';
|
|
2
|
+
import { makeApiURL } from '../../../../system/container/infra/make-api-url.js';
|
|
3
|
+
export declare class RemoteMenu implements domain.LoadAllMenu, domain.CreateUser, domain.DeleteUser, domain.EditUser {
|
|
4
|
+
private readonly makeApiURL;
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
constructor(makeApiURL: makeApiURL, httpClient: domain.HttpClient);
|
|
7
|
+
loadAll(params?: domain.LoadAllMenu.Params): Promise<domain.LoadAllMenu.Model>;
|
|
8
|
+
create(params: domain.CreateUser.Params): Promise<domain.CreateUser.Model>;
|
|
9
|
+
delete(params: domain.DeleteUser.Params): Promise<any>;
|
|
10
|
+
edit(params: domain.EditUser.Params): Promise<any>;
|
|
11
|
+
getDetail(params: domain.LoadDetailUser.Params): Promise<domain.User>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
+
};
|
|
37
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
41
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
42
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
47
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
48
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
49
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
50
|
+
function step(op) {
|
|
51
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
52
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
53
|
+
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;
|
|
54
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
55
|
+
switch (op[0]) {
|
|
56
|
+
case 0: case 1: t = op; break;
|
|
57
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
58
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
59
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
60
|
+
default:
|
|
61
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
62
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
63
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
64
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
65
|
+
if (t[2]) _.ops.pop();
|
|
66
|
+
_.trys.pop(); continue;
|
|
67
|
+
}
|
|
68
|
+
op = body.call(thisArg, _);
|
|
69
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
+
exports.RemoteMenu = void 0;
|
|
75
|
+
var inversify_1 = require("inversify");
|
|
76
|
+
var domain = __importStar(require("../../../../system/domain/index.js"));
|
|
77
|
+
var types_1 = require("../../../../system/container/infra/types.js");
|
|
78
|
+
var make_api_url_1 = require("../../../../system/container/infra/make-api-url.js");
|
|
79
|
+
var RemoteMenu = /** @class */ (function () {
|
|
80
|
+
function RemoteMenu(makeApiURL, httpClient) {
|
|
81
|
+
this.makeApiURL = makeApiURL;
|
|
82
|
+
this.httpClient = httpClient;
|
|
83
|
+
}
|
|
84
|
+
RemoteMenu.prototype.loadAll = function (params) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
+
var response;
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
90
|
+
url: this.makeApiURL.make('Menu'),
|
|
91
|
+
method: 'get',
|
|
92
|
+
body: params,
|
|
93
|
+
})];
|
|
94
|
+
case 1:
|
|
95
|
+
response = _a.sent();
|
|
96
|
+
return [2 /*return*/, response.data];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
RemoteMenu.prototype.create = function (params) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
103
|
+
var response;
|
|
104
|
+
return __generator(this, function (_a) {
|
|
105
|
+
switch (_a.label) {
|
|
106
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
107
|
+
url: this.makeApiURL.make('Menu'),
|
|
108
|
+
method: 'post',
|
|
109
|
+
body: params,
|
|
110
|
+
})];
|
|
111
|
+
case 1:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, response.data];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
RemoteMenu.prototype.delete = function (params) {
|
|
119
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
120
|
+
var response;
|
|
121
|
+
return __generator(this, function (_a) {
|
|
122
|
+
switch (_a.label) {
|
|
123
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
124
|
+
url: this.makeApiURL.make("Menu/".concat(params.id)),
|
|
125
|
+
method: 'delete',
|
|
126
|
+
})];
|
|
127
|
+
case 1:
|
|
128
|
+
response = _a.sent();
|
|
129
|
+
return [2 /*return*/, response.data];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
RemoteMenu.prototype.edit = function (params) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var response;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
140
|
+
url: this.makeApiURL.make('Menu'),
|
|
141
|
+
method: 'put',
|
|
142
|
+
body: params,
|
|
143
|
+
})];
|
|
144
|
+
case 1:
|
|
145
|
+
response = _a.sent();
|
|
146
|
+
return [2 /*return*/, response.data];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
RemoteMenu.prototype.getDetail = function (params) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
153
|
+
var response;
|
|
154
|
+
return __generator(this, function (_a) {
|
|
155
|
+
switch (_a.label) {
|
|
156
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
157
|
+
url: this.makeApiURL.make("Menu/".concat(params.id)),
|
|
158
|
+
method: 'get',
|
|
159
|
+
})];
|
|
160
|
+
case 1:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [2 /*return*/, response.data];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
RemoteMenu = __decorate([
|
|
168
|
+
(0, inversify_1.injectable)(),
|
|
169
|
+
__param(0, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
|
|
170
|
+
__param(1, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
|
|
171
|
+
__metadata("design:paramtypes", [make_api_url_1.makeApiURL, Object])
|
|
172
|
+
], RemoteMenu);
|
|
173
|
+
return RemoteMenu;
|
|
174
|
+
}());
|
|
175
|
+
exports.RemoteMenu = RemoteMenu;
|
|
176
|
+
//# sourceMappingURL=remote-get-menu.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./remote-users.js"), exports);
|
|
18
|
+
__exportStar(require("./remote-load-user-admin.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as domain from '../../../../system/domain/index.js';
|
|
2
|
+
import { makeApiURL } from '../../../../system/container/infra/make-api-url.js';
|
|
3
|
+
export declare class RemoteLoadUserAdmin implements domain.LoadUserAdmin {
|
|
4
|
+
private readonly makeApiURL;
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
constructor(makeApiURL: makeApiURL, httpClient: domain.HttpClient<domain.LoadUserAdmin.Model>);
|
|
7
|
+
load(): Promise<domain.UserAdmin>;
|
|
8
|
+
}
|