@darkfrost-1107/scaff-z-react 0.1.7
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/LICENSE.md +5 -0
- package/README.md +75 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/action-processor.d.ts +2 -0
- package/dist/app/config/sqlite.registry.cjs +1 -0
- package/dist/app/config/sqlite.registry.esm +37 -0
- package/dist/app.config.d.ts +1 -0
- package/dist/async-combobox.input.d.ts +4 -0
- package/dist/async-multi-select.input.d.ts +4 -0
- package/dist/async-select.input.d.ts +4 -0
- package/dist/audit-view.d.ts +2 -0
- package/dist/back-button.action.d.ts +6 -0
- package/dist/badge.d.ts +2 -0
- package/dist/base.connector.d.ts +4 -0
- package/dist/base.entity.d.ts +2 -0
- package/dist/base.node.d.ts +2 -0
- package/dist/base.service.d.ts +4 -0
- package/dist/breadcrumb.d.ts +2 -0
- package/dist/build.router.d.ts +4 -0
- package/dist/builder-device.guard.d.ts +2 -0
- package/dist/builder.d.ts +2 -0
- package/dist/button.d.ts +2 -0
- package/dist/calendar.d.ts +2 -0
- package/dist/canvas-view.layout.d.ts +2 -0
- package/dist/card.d.ts +2 -0
- package/dist/checkbox-inline.input.d.ts +4 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.input.d.ts +4 -0
- package/dist/code.input.d.ts +4 -0
- package/dist/color.input.d.ts +4 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.input.d.ts +4 -0
- package/dist/command.d.ts +2 -0
- package/dist/component.factory.d.ts +4 -0
- package/dist/component.guard.d.ts +2 -0
- package/dist/components.registry.d.ts +2 -0
- package/dist/context.guard.d.ts +2 -0
- package/dist/context.verifier.d.ts +2 -0
- package/dist/crypto.service.d.ts +2 -0
- package/dist/dark.style.d.ts +2 -0
- package/dist/data-table.component.d.ts +2 -0
- package/dist/data-table.provider.d.ts +1 -0
- package/dist/date.input.d.ts +2 -0
- package/dist/deckgl-overlay.d.ts +2 -0
- package/dist/detail-tabs.layout.d.ts +6 -0
- package/dist/detail-view.layout.d.ts +6 -0
- package/dist/device-artifact.guard.d.ts +2 -0
- package/dist/device.guard.d.ts +2 -0
- package/dist/device.verifier.registry.d.ts +2 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dnd.provider.d.ts +2 -0
- package/dist/draggeable.d.ts +2 -0
- package/dist/droppable.d.ts +2 -0
- package/dist/droppeable.d.ts +2 -0
- package/dist/dynamic-device.guard.d.ts +2 -0
- package/dist/dynamic-icon.d.ts +6 -0
- package/dist/email.input.d.ts +4 -0
- package/dist/enum.verifier.d.ts +2 -0
- package/dist/env.manager.d.ts +2 -0
- package/dist/feedback.layout.d.ts +2 -0
- package/dist/field.d.ts +2 -0
- package/dist/file.input.d.ts +4 -0
- package/dist/flow-canvas.d.ts +2 -0
- package/dist/flow.renderer.d.ts +2 -0
- package/dist/flow.types.d.ts +1 -0
- package/dist/form-dialog-layout.d.ts +4 -0
- package/dist/form-tab-layout.d.ts +4 -0
- package/dist/form.component.d.ts +2 -0
- package/dist/grid.layout.d.ts +2 -0
- package/dist/guard.d.ts +2 -0
- package/dist/hover.d.ts +2 -0
- package/dist/icon-box.d.ts +2 -0
- package/dist/icon-button.d.ts +2 -0
- package/dist/image.input.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/indexeddb.service.d.ts +6 -0
- package/dist/input-group.d.ts +2 -0
- package/dist/input.d.ts +2 -0
- package/dist/interceptor.builder.d.ts +2 -0
- package/dist/label.d.ts +2 -0
- package/dist/language-toggle.d.ts +2 -0
- package/dist/list-select.input.d.ts +4 -0
- package/dist/logger.d.ts +2 -0
- package/dist/main.connector.d.ts +2 -0
- package/dist/main.service.d.ts +6 -0
- package/dist/maps.renderer.d.ts +4 -0
- package/dist/marker.factory.d.ts +2 -0
- package/dist/marker.guard.d.ts +2 -0
- package/dist/markers.meta.d.ts +1 -0
- package/dist/modules/actions/entities/action.entity.cjs +1 -0
- package/dist/modules/actions/entities/action.entity.esm +139 -0
- package/dist/modules/artifacts/entities/artifact.entity.cjs +1 -0
- package/dist/modules/artifacts/entities/artifact.entity.esm +82 -0
- package/dist/modules/integrations/entities/integration.entity.cjs +1 -0
- package/dist/modules/integrations/entities/integration.entity.esm +75 -0
- package/dist/modules/inventory/entities/category.entity.cjs +1 -0
- package/dist/modules/inventory/entities/category.entity.esm +50 -0
- package/dist/modules/inventory/entities/inventory-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/inventory-item.entity.esm +68 -0
- package/dist/modules/inventory/entities/product-item.entity.cjs +1 -0
- package/dist/modules/inventory/entities/product-item.entity.esm +69 -0
- package/dist/modules/inventory/entities/zone.entity.cjs +1 -0
- package/dist/modules/inventory/entities/zone.entity.esm +50 -0
- package/dist/modules/memberships/entities/membership.entity.cjs +1 -0
- package/dist/modules/memberships/entities/membership.entity.esm +53 -0
- package/dist/modules/organizations/entities/organization.entity.cjs +1 -0
- package/dist/modules/organizations/entities/organization.entity.esm +75 -0
- package/dist/modules/projects/entities/project.entity.cjs +1 -0
- package/dist/modules/projects/entities/project.entity.esm +100 -0
- package/dist/modules/test/entities/experiment.entity.cjs +1 -0
- package/dist/modules/test/entities/experiment.entity.esm +71 -0
- package/dist/modules/tickets/entities/ticket.entity.cjs +1 -0
- package/dist/modules/tickets/entities/ticket.entity.esm +92 -0
- package/dist/modules/tools/entities/tool.entity.cjs +1 -0
- package/dist/modules/tools/entities/tool.entity.esm +129 -0
- package/dist/modules/users/entities/user-role.enum.cjs +1 -0
- package/dist/modules/users/entities/user-role.enum.esm +6 -0
- package/dist/modules/users/entities/user.entity.cjs +1 -0
- package/dist/modules/users/entities/user.entity.esm +88 -0
- package/dist/nfc.service.d.ts +6 -0
- package/dist/nosql.repo.d.ts +2 -0
- package/dist/nosql.repo.service.d.ts +4 -0
- package/dist/packages/capacitor/app.config.cjs +1 -0
- package/dist/packages/capacitor/app.config.d.ts +1 -0
- package/dist/packages/capacitor/app.config.esm +7 -0
- package/dist/packages/crypto/crypto.service.cjs +1 -0
- package/dist/packages/crypto/crypto.service.d.ts +6 -0
- package/dist/packages/crypto/crypto.service.esm +17 -0
- package/dist/packages/crypto/index.cjs +1 -0
- package/dist/packages/crypto/index.d.ts +1 -0
- package/dist/packages/crypto/index.esm +2 -0
- package/dist/packages/dnd/dnd.provider.cjs +1 -0
- package/dist/packages/dnd/dnd.provider.d.ts +3 -0
- package/dist/packages/dnd/dnd.provider.esm +8 -0
- package/dist/packages/dnd/draggeable.cjs +1 -0
- package/dist/packages/dnd/draggeable.d.ts +4 -0
- package/dist/packages/dnd/draggeable.esm +12 -0
- package/dist/packages/dnd/droppable.cjs +1 -0
- package/dist/packages/dnd/droppable.d.ts +8 -0
- package/dist/packages/dnd/droppable.esm +14 -0
- package/dist/packages/dnd/droppeable.cjs +1 -0
- package/dist/packages/dnd/droppeable.d.ts +5 -0
- package/dist/packages/dnd/droppeable.esm +13 -0
- package/dist/packages/dnd/sortable.cjs +1 -0
- package/dist/packages/dnd/sortable.d.ts +11 -0
- package/dist/packages/dnd/sortable.esm +18 -0
- package/dist/packages/env/env.manager.cjs +1 -0
- package/dist/packages/env/env.manager.d.ts +11 -0
- package/dist/packages/env/env.manager.esm +69 -0
- package/dist/packages/env/index.cjs +1 -0
- package/dist/packages/env/index.d.ts +1 -0
- package/dist/packages/env/index.esm +2 -0
- package/dist/packages/flow/flow.renderer.cjs +1 -0
- package/dist/packages/flow/flow.renderer.d.ts +13 -0
- package/dist/packages/flow/flow.renderer.esm +50 -0
- package/dist/packages/flow/flow.types.cjs +0 -0
- package/dist/packages/flow/flow.types.d.ts +30 -0
- package/dist/packages/flow/flow.types.esm +0 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.d.ts +5 -0
- package/dist/packages/formatters/qr-code/qr.encoder.service.esm +17 -0
- package/dist/packages/formatters/qr-code/qr.renderer.cjs +1 -0
- package/dist/packages/formatters/qr-code/qr.renderer.d.ts +3 -0
- package/dist/packages/formatters/qr-code/qr.renderer.esm +16 -0
- package/dist/packages/formatters/text-code/text-coder.service.cjs +1 -0
- package/dist/packages/formatters/text-code/text-coder.service.d.ts +9 -0
- package/dist/packages/formatters/text-code/text-coder.service.esm +36 -0
- package/dist/packages/i18n/index.cjs +1 -0
- package/dist/packages/i18n/index.d.ts +10 -0
- package/dist/packages/i18n/index.esm +18 -0
- package/dist/packages/i18n/language-toggle.cjs +1 -0
- package/dist/packages/i18n/language-toggle.d.ts +9 -0
- package/dist/packages/i18n/language-toggle.esm +73 -0
- package/dist/packages/indexeddb/builder.cjs +1 -0
- package/dist/packages/indexeddb/builder.d.ts +13 -0
- package/dist/packages/indexeddb/builder.esm +35 -0
- package/dist/packages/indexeddb/index.cjs +1 -0
- package/dist/packages/indexeddb/index.d.ts +5 -0
- package/dist/packages/indexeddb/index.esm +5 -0
- package/dist/packages/indexeddb/indexeddb.service.cjs +1 -0
- package/dist/packages/indexeddb/indexeddb.service.d.ts +21 -0
- package/dist/packages/indexeddb/indexeddb.service.esm +59 -0
- package/dist/packages/indexeddb/nosql.repo.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.d.ts +33 -0
- package/dist/packages/indexeddb/nosql.repo.esm +69 -0
- package/dist/packages/indexeddb/nosql.repo.service.cjs +1 -0
- package/dist/packages/indexeddb/nosql.repo.service.d.ts +46 -0
- package/dist/packages/indexeddb/nosql.repo.service.esm +87 -0
- package/dist/packages/indexeddb/registry.cjs +1 -0
- package/dist/packages/indexeddb/registry.d.ts +21 -0
- package/dist/packages/indexeddb/registry.esm +22 -0
- package/dist/packages/indexeddb/types.cjs +0 -0
- package/dist/packages/indexeddb/types.d.ts +33 -0
- package/dist/packages/indexeddb/types.esm +0 -0
- package/dist/packages/logger/index.cjs +1 -0
- package/dist/packages/logger/index.d.ts +2 -0
- package/dist/packages/logger/index.esm +3 -0
- package/dist/packages/logger/logger.cjs +1 -0
- package/dist/packages/logger/logger.d.ts +137 -0
- package/dist/packages/logger/logger.esm +186 -0
- package/dist/packages/logger/registry.cjs +1 -0
- package/dist/packages/logger/registry.d.ts +9 -0
- package/dist/packages/logger/registry.esm +17 -0
- package/dist/packages/maps/deckgl-overlay.cjs +1 -0
- package/dist/packages/maps/deckgl-overlay.d.ts +9 -0
- package/dist/packages/maps/deckgl-overlay.esm +12 -0
- package/dist/packages/maps/maps.renderer.cjs +1 -0
- package/dist/packages/maps/maps.renderer.d.ts +19 -0
- package/dist/packages/maps/maps.renderer.esm +25 -0
- package/dist/packages/maps/markers/marker.factory.cjs +1 -0
- package/dist/packages/maps/markers/marker.factory.d.ts +8 -0
- package/dist/packages/maps/markers/marker.factory.esm +58 -0
- package/dist/packages/maps/markers/marker.guard.cjs +1 -0
- package/dist/packages/maps/markers/marker.guard.d.ts +22 -0
- package/dist/packages/maps/markers/marker.guard.esm +37 -0
- package/dist/packages/maps/markers/markers.meta.cjs +0 -0
- package/dist/packages/maps/markers/markers.meta.d.ts +12 -0
- package/dist/packages/maps/markers/markers.meta.esm +0 -0
- package/dist/packages/maps/styles/dark.style.cjs +1 -0
- package/dist/packages/maps/styles/dark.style.d.ts +1 -0
- package/dist/packages/maps/styles/dark.style.esm +93 -0
- package/dist/packages/nfc/nfc.service.cjs +1 -0
- package/dist/packages/nfc/nfc.service.d.ts +41 -0
- package/dist/packages/nfc/nfc.service.esm +104 -0
- package/dist/packages/requests/axios/base.connector.cjs +1 -0
- package/dist/packages/requests/axios/base.connector.d.ts +37 -0
- package/dist/packages/requests/axios/base.connector.esm +25 -0
- package/dist/packages/requests/axios/base.service.cjs +1 -0
- package/dist/packages/requests/axios/base.service.d.ts +41 -0
- package/dist/packages/requests/axios/base.service.esm +11 -0
- package/dist/packages/requests/axios/interceptor.builder.cjs +1 -0
- package/dist/packages/requests/axios/interceptor.builder.d.ts +26 -0
- package/dist/packages/requests/axios/interceptor.builder.esm +20 -0
- package/dist/packages/router/build.router.cjs +1 -0
- package/dist/packages/router/build.router.d.ts +6 -0
- package/dist/packages/router/build.router.esm +9 -0
- package/dist/packages/router/route.builder.cjs +1 -0
- package/dist/packages/router/route.builder.d.ts +46 -0
- package/dist/packages/router/route.builder.esm +50 -0
- package/dist/packages/scanner/scanner.formats.cjs +1 -0
- package/dist/packages/scanner/scanner.formats.d.ts +51 -0
- package/dist/packages/scanner/scanner.formats.esm +96 -0
- package/dist/packages/scanner/scanner.service.cjs +1 -0
- package/dist/packages/scanner/scanner.service.d.ts +32 -0
- package/dist/packages/scanner/scanner.service.esm +32 -0
- package/dist/packages/sheets/index.cjs +1 -0
- package/dist/packages/sheets/index.d.ts +2 -0
- package/dist/packages/sheets/index.esm +3 -0
- package/dist/packages/sheets/sheets.connector.cjs +1 -0
- package/dist/packages/sheets/sheets.connector.d.ts +6 -0
- package/dist/packages/sheets/sheets.connector.esm +21 -0
- package/dist/packages/sheets/sheets.service.cjs +1 -0
- package/dist/packages/sheets/sheets.service.d.ts +21 -0
- package/dist/packages/sheets/sheets.service.esm +38 -0
- package/dist/packages/sqlite/base/base.entity.cjs +1 -0
- package/dist/packages/sqlite/base/base.entity.d.ts +5 -0
- package/dist/packages/sqlite/base/base.entity.esm +41 -0
- package/dist/packages/sqlite/repo.service.cjs +1 -0
- package/dist/packages/sqlite/repo.service.d.ts +22 -0
- package/dist/packages/sqlite/repo.service.esm +52 -0
- package/dist/packages/sqlite/sqlite.service.cjs +1 -0
- package/dist/packages/sqlite/sqlite.service.d.ts +40 -0
- package/dist/packages/sqlite/sqlite.service.esm +77 -0
- package/dist/packages/sqlite/templates/test.entity.cjs +1 -0
- package/dist/packages/sqlite/templates/test.entity.d.ts +6 -0
- package/dist/packages/sqlite/templates/test.entity.esm +62 -0
- package/dist/packages/sqlite/templates/test.repo.service.cjs +1 -0
- package/dist/packages/sqlite/templates/test.repo.service.d.ts +8 -0
- package/dist/packages/sqlite/templates/test.repo.service.esm +26 -0
- package/dist/packages/stores/storage.service.cjs +1 -0
- package/dist/packages/stores/storage.service.d.ts +5 -0
- package/dist/packages/stores/storage.service.esm +22 -0
- package/dist/packages/stores/store.hook.cjs +1 -0
- package/dist/packages/stores/store.hook.d.ts +23 -0
- package/dist/packages/stores/store.hook.esm +22 -0
- package/dist/packages/stores/store.service.cjs +1 -0
- package/dist/packages/stores/store.service.d.ts +12 -0
- package/dist/packages/stores/store.service.esm +48 -0
- package/dist/packages/theme/theme-builder.cjs +1 -0
- package/dist/packages/theme/theme-builder.d.ts +19 -0
- package/dist/packages/theme/theme-builder.esm +25 -0
- package/dist/packages/theme/theme-provider.cjs +1 -0
- package/dist/packages/theme/theme-provider.d.ts +7 -0
- package/dist/packages/theme/theme-provider.esm +17 -0
- package/dist/packages/theme/theme-toggle.cjs +1 -0
- package/dist/packages/theme/theme-toggle.d.ts +6 -0
- package/dist/packages/theme/theme-toggle.esm +33 -0
- package/dist/packages/w3/tron/index.cjs +1 -0
- package/dist/packages/w3/tron/index.d.ts +4 -0
- package/dist/packages/w3/tron/index.esm +4 -0
- package/dist/packages/w3/tron/tron-assets.service.cjs +1 -0
- package/dist/packages/w3/tron/tron-assets.service.d.ts +38 -0
- package/dist/packages/w3/tron/tron-assets.service.esm +116 -0
- package/dist/packages/w3/tron/tron-wallet.entity.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.entity.d.ts +15 -0
- package/dist/packages/w3/tron/tron-wallet.entity.esm +88 -0
- package/dist/packages/w3/tron/tron-wallet.repo.cjs +1 -0
- package/dist/packages/w3/tron/tron-wallet.repo.d.ts +30 -0
- package/dist/packages/w3/tron/tron-wallet.repo.esm +52 -0
- package/dist/packages/w3/tron/tron.service.cjs +1 -0
- package/dist/packages/w3/tron/tron.service.d.ts +124 -0
- package/dist/packages/w3/tron/tron.service.esm +406 -0
- package/dist/packages/w3/tron/tron.types.cjs +0 -0
- package/dist/packages/w3/tron/tron.types.d.ts +129 -0
- package/dist/packages/w3/tron/tron.types.esm +0 -0
- package/dist/page-container.d.ts +2 -0
- package/dist/popover.d.ts +2 -0
- package/dist/qr.encoder.service.d.ts +4 -0
- package/dist/qr.renderer.d.ts +4 -0
- package/dist/registry.d.ts +2 -0
- package/dist/repo.service.d.ts +4 -0
- package/dist/repository.contract.d.ts +1 -0
- package/dist/route.builder.d.ts +4 -0
- package/dist/scanner.formats.d.ts +2 -0
- package/dist/scanner.service.d.ts +2 -0
- package/dist/scroll-area.d.ts +2 -0
- package/dist/secret.input.d.ts +4 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.input.d.ts +4 -0
- package/dist/separator.d.ts +2 -0
- package/dist/shared/assets/social-icons.cjs +1 -0
- package/dist/shared/assets/social-icons.d.ts +2 -0
- package/dist/shared/assets/social-icons.esm +30 -0
- package/dist/shared/constants/connectors/main.connector.cjs +1 -0
- package/dist/shared/constants/connectors/main.connector.d.ts +8 -0
- package/dist/shared/constants/connectors/main.connector.esm +38 -0
- package/dist/shared/constants/services/main.service.cjs +1 -0
- package/dist/shared/constants/services/main.service.d.ts +7 -0
- package/dist/shared/constants/services/main.service.esm +26 -0
- package/dist/shared/contracts/repository.contract.cjs +0 -0
- package/dist/shared/contracts/repository.contract.d.ts +26 -0
- package/dist/shared/contracts/repository.contract.esm +0 -0
- package/dist/shared/custom/actions/back-button.action.cjs +1 -0
- package/dist/shared/custom/actions/back-button.action.d.ts +13 -0
- package/dist/shared/custom/actions/back-button.action.esm +20 -0
- package/dist/shared/custom/audit/audit-view.cjs +1 -0
- package/dist/shared/custom/audit/audit-view.d.ts +46 -0
- package/dist/shared/custom/audit/audit-view.esm +73 -0
- package/dist/shared/custom/confirm/use-confirm.cjs +1 -0
- package/dist/shared/custom/confirm/use-confirm.d.ts +15 -0
- package/dist/shared/custom/confirm/use-confirm.esm +57 -0
- package/dist/shared/custom/data-table/data-table.component.cjs +1 -0
- package/dist/shared/custom/data-table/data-table.component.d.ts +9 -0
- package/dist/shared/custom/data-table/data-table.component.esm +26 -0
- package/dist/shared/custom/data-table/data-table.provider.cjs +0 -0
- package/dist/shared/custom/data-table/data-table.provider.d.ts +1 -0
- package/dist/shared/custom/data-table/data-table.provider.esm +0 -0
- package/dist/shared/custom/flow/flow-canvas.cjs +1 -0
- package/dist/shared/custom/flow/flow-canvas.d.ts +10 -0
- package/dist/shared/custom/flow/flow-canvas.esm +23 -0
- package/dist/shared/custom/flow/nodes/base.node.cjs +1 -0
- package/dist/shared/custom/flow/nodes/base.node.d.ts +9 -0
- package/dist/shared/custom/flow/nodes/base.node.esm +51 -0
- package/dist/shared/custom/form/form.component.cjs +1 -0
- package/dist/shared/custom/form/form.component.d.ts +13 -0
- package/dist/shared/custom/form/form.component.esm +26 -0
- package/dist/shared/custom/form/index.cjs +1 -0
- package/dist/shared/custom/form/index.d.ts +17 -0
- package/dist/shared/custom/form/index.esm +2 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/async-combobox.input.esm +91 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.d.ts +20 -0
- package/dist/shared/custom/form/inputs/async-multi-select.input.esm +127 -0
- package/dist/shared/custom/form/inputs/async-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/async-select.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/async-select.input.esm +71 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.d.ts +15 -0
- package/dist/shared/custom/form/inputs/checkbox-inline.input.esm +41 -0
- package/dist/shared/custom/form/inputs/checkbox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/checkbox.input.d.ts +21 -0
- package/dist/shared/custom/form/inputs/checkbox.input.esm +50 -0
- package/dist/shared/custom/form/inputs/code.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/code.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/code.input.esm +58 -0
- package/dist/shared/custom/form/inputs/color.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/color.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/color.input.esm +47 -0
- package/dist/shared/custom/form/inputs/combobox.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/combobox.input.d.ts +18 -0
- package/dist/shared/custom/form/inputs/combobox.input.esm +73 -0
- package/dist/shared/custom/form/inputs/date.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/date.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/date.input.esm +52 -0
- package/dist/shared/custom/form/inputs/email.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/email.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/email.input.esm +47 -0
- package/dist/shared/custom/form/inputs/file.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/file.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/file.input.esm +95 -0
- package/dist/shared/custom/form/inputs/image.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/image.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/image.input.esm +90 -0
- package/dist/shared/custom/form/inputs/list-select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/list-select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/list-select.input.esm +53 -0
- package/dist/shared/custom/form/inputs/secret.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/secret.input.d.ts +11 -0
- package/dist/shared/custom/form/inputs/secret.input.esm +53 -0
- package/dist/shared/custom/form/inputs/select.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/select.input.d.ts +17 -0
- package/dist/shared/custom/form/inputs/select.input.esm +44 -0
- package/dist/shared/custom/form/inputs/tags.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/tags.input.d.ts +16 -0
- package/dist/shared/custom/form/inputs/tags.input.esm +80 -0
- package/dist/shared/custom/form/inputs/text.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/text.input.d.ts +13 -0
- package/dist/shared/custom/form/inputs/text.input.esm +47 -0
- package/dist/shared/custom/form/inputs/textarea.input.cjs +1 -0
- package/dist/shared/custom/form/inputs/textarea.input.d.ts +12 -0
- package/dist/shared/custom/form/inputs/textarea.input.esm +36 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.d.ts +25 -0
- package/dist/shared/custom/form/layout/form-dialog-layout.esm +37 -0
- package/dist/shared/custom/form/layout/form-tab-layout.cjs +1 -0
- package/dist/shared/custom/form/layout/form-tab-layout.d.ts +30 -0
- package/dist/shared/custom/form/layout/form-tab-layout.esm +69 -0
- package/dist/shared/custom/hover/hover.cjs +1 -0
- package/dist/shared/custom/hover/hover.d.ts +6 -0
- package/dist/shared/custom/hover/hover.esm +20 -0
- package/dist/shared/custom/layouts/canvas-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/canvas-view.layout.d.ts +18 -0
- package/dist/shared/custom/layouts/canvas-view.layout.esm +15 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.d.ts +27 -0
- package/dist/shared/custom/layouts/detail-tabs.layout.esm +32 -0
- package/dist/shared/custom/layouts/detail-view.layout.cjs +1 -0
- package/dist/shared/custom/layouts/detail-view.layout.d.ts +33 -0
- package/dist/shared/custom/layouts/detail-view.layout.esm +64 -0
- package/dist/shared/custom/layouts/feedback.layout.cjs +1 -0
- package/dist/shared/custom/layouts/feedback.layout.d.ts +14 -0
- package/dist/shared/custom/layouts/feedback.layout.esm +20 -0
- package/dist/shared/custom/layouts/grid.layout.cjs +1 -0
- package/dist/shared/custom/layouts/grid.layout.d.ts +38 -0
- package/dist/shared/custom/layouts/grid.layout.esm +39 -0
- package/dist/shared/custom/layouts/page-container.cjs +1 -0
- package/dist/shared/custom/layouts/page-container.d.ts +6 -0
- package/dist/shared/custom/layouts/page-container.esm +12 -0
- package/dist/shared/custom/ui/icon-box.cjs +1 -0
- package/dist/shared/custom/ui/icon-box.d.ts +12 -0
- package/dist/shared/custom/ui/icon-box.esm +21 -0
- package/dist/shared/custom/ui/typography.cjs +1 -0
- package/dist/shared/custom/ui/typography.d.ts +11 -0
- package/dist/shared/custom/ui/typography.esm +30 -0
- package/dist/shared/hooks/use-device.cjs +1 -0
- package/dist/shared/hooks/use-device.d.ts +10 -0
- package/dist/shared/hooks/use-device.esm +37 -0
- package/dist/shared/hooks/use-i18n.cjs +1 -0
- package/dist/shared/hooks/use-i18n.d.ts +10 -0
- package/dist/shared/hooks/use-i18n.esm +15 -0
- package/dist/shared/hooks/use-mobile.cjs +1 -0
- package/dist/shared/hooks/use-mobile.d.ts +1 -0
- package/dist/shared/hooks/use-mobile.esm +14 -0
- package/dist/shared/lib/utils.cjs +1 -0
- package/dist/shared/lib/utils.d.ts +2 -0
- package/dist/shared/lib/utils.esm +8 -0
- package/dist/shared/logic/action/action-processor.cjs +1 -0
- package/dist/shared/logic/action/action-processor.d.ts +86 -0
- package/dist/shared/logic/action/action-processor.esm +30 -0
- package/dist/shared/logic/components/components.registry.cjs +1 -0
- package/dist/shared/logic/components/components.registry.d.ts +16 -0
- package/dist/shared/logic/components/components.registry.esm +26 -0
- package/dist/shared/logic/events/startable.cjs +1 -0
- package/dist/shared/logic/events/startable.d.ts +7 -0
- package/dist/shared/logic/events/startable.esm +32 -0
- package/dist/shared/logic/events/use-on-start.hook.cjs +1 -0
- package/dist/shared/logic/events/use-on-start.hook.d.ts +12 -0
- package/dist/shared/logic/events/use-on-start.hook.esm +15 -0
- package/dist/shared/logic/factory/component.factory.cjs +1 -0
- package/dist/shared/logic/factory/component.factory.d.ts +9 -0
- package/dist/shared/logic/factory/component.factory.esm +28 -0
- package/dist/shared/logic/guards/builder-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/builder-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/builder-device.guard.esm +10 -0
- package/dist/shared/logic/guards/component.guard.cjs +1 -0
- package/dist/shared/logic/guards/component.guard.d.ts +5 -0
- package/dist/shared/logic/guards/component.guard.esm +13 -0
- package/dist/shared/logic/guards/context.guard.cjs +1 -0
- package/dist/shared/logic/guards/context.guard.d.ts +13 -0
- package/dist/shared/logic/guards/context.guard.esm +9 -0
- package/dist/shared/logic/guards/device-artifact.guard.cjs +1 -0
- package/dist/shared/logic/guards/device-artifact.guard.d.ts +16 -0
- package/dist/shared/logic/guards/device-artifact.guard.esm +44 -0
- package/dist/shared/logic/guards/device.guard.cjs +1 -0
- package/dist/shared/logic/guards/device.guard.d.ts +17 -0
- package/dist/shared/logic/guards/device.guard.esm +40 -0
- package/dist/shared/logic/guards/dynamic-device.guard.cjs +1 -0
- package/dist/shared/logic/guards/dynamic-device.guard.d.ts +5 -0
- package/dist/shared/logic/guards/dynamic-device.guard.esm +10 -0
- package/dist/shared/logic/guards/guard.cjs +1 -0
- package/dist/shared/logic/guards/guard.d.ts +24 -0
- package/dist/shared/logic/guards/guard.esm +18 -0
- package/dist/shared/logic/service/base.service.cjs +1 -0
- package/dist/shared/logic/service/base.service.d.ts +3 -0
- package/dist/shared/logic/service/base.service.esm +5 -0
- package/dist/shared/logic/verifiers/context.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/context.verifier.d.ts +7 -0
- package/dist/shared/logic/verifiers/context.verifier.esm +31 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.cjs +1 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.d.ts +13 -0
- package/dist/shared/logic/verifiers/device.verifier.registry.esm +36 -0
- package/dist/shared/logic/verifiers/enum.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/enum.verifier.d.ts +4 -0
- package/dist/shared/logic/verifiers/enum.verifier.esm +9 -0
- package/dist/shared/logic/verifiers/value.verifier.cjs +1 -0
- package/dist/shared/logic/verifiers/value.verifier.d.ts +5 -0
- package/dist/shared/logic/verifiers/value.verifier.esm +9 -0
- package/dist/shared/ui/badge.cjs +1 -0
- package/dist/shared/ui/badge.d.ts +9 -0
- package/dist/shared/ui/badge.esm +27 -0
- package/dist/shared/ui/breadcrumb.cjs +1 -0
- package/dist/shared/ui/breadcrumb.d.ts +11 -0
- package/dist/shared/ui/breadcrumb.esm +70 -0
- package/dist/shared/ui/button.cjs +1 -0
- package/dist/shared/ui/button.d.ts +11 -0
- package/dist/shared/ui/button.esm +47 -0
- package/dist/shared/ui/calendar.cjs +1 -0
- package/dist/shared/ui/calendar.d.ts +10 -0
- package/dist/shared/ui/calendar.esm +92 -0
- package/dist/shared/ui/card.cjs +1 -0
- package/dist/shared/ui/card.d.ts +11 -0
- package/dist/shared/ui/card.esm +56 -0
- package/dist/shared/ui/checkbox.cjs +1 -0
- package/dist/shared/ui/checkbox.d.ts +4 -0
- package/dist/shared/ui/checkbox.esm +20 -0
- package/dist/shared/ui/combobox.cjs +1 -0
- package/dist/shared/ui/combobox.d.ts +24 -0
- package/dist/shared/ui/combobox.esm +163 -0
- package/dist/shared/ui/command.cjs +1 -0
- package/dist/shared/ui/command.d.ts +18 -0
- package/dist/shared/ui/command.esm +87 -0
- package/dist/shared/ui/custom/dynamic-icon.cjs +1 -0
- package/dist/shared/ui/custom/dynamic-icon.d.ts +13 -0
- package/dist/shared/ui/custom/dynamic-icon.esm +15 -0
- package/dist/shared/ui/dialog.cjs +1 -0
- package/dist/shared/ui/dialog.d.ts +17 -0
- package/dist/shared/ui/dialog.esm +95 -0
- package/dist/shared/ui/field.cjs +1 -0
- package/dist/shared/ui/field.d.ts +24 -0
- package/dist/shared/ui/field.esm +107 -0
- package/dist/shared/ui/icon-button.cjs +1 -0
- package/dist/shared/ui/icon-button.d.ts +6 -0
- package/dist/shared/ui/icon-button.esm +14 -0
- package/dist/shared/ui/index.cjs +1 -0
- package/dist/shared/ui/index.d.ts +23 -0
- package/dist/shared/ui/index.esm +24 -0
- package/dist/shared/ui/input-group.cjs +1 -0
- package/dist/shared/ui/input-group.d.ts +16 -0
- package/dist/shared/ui/input-group.esm +77 -0
- package/dist/shared/ui/input.cjs +1 -0
- package/dist/shared/ui/input.d.ts +3 -0
- package/dist/shared/ui/input.esm +14 -0
- package/dist/shared/ui/label.cjs +1 -0
- package/dist/shared/ui/label.d.ts +4 -0
- package/dist/shared/ui/label.esm +14 -0
- package/dist/shared/ui/popover.cjs +1 -0
- package/dist/shared/ui/popover.d.ts +7 -0
- package/dist/shared/ui/popover.esm +35 -0
- package/dist/shared/ui/scroll-area.cjs +1 -0
- package/dist/shared/ui/scroll-area.d.ts +5 -0
- package/dist/shared/ui/scroll-area.esm +36 -0
- package/dist/shared/ui/select.cjs +1 -0
- package/dist/shared/ui/select.d.ts +15 -0
- package/dist/shared/ui/select.esm +99 -0
- package/dist/shared/ui/separator.cjs +1 -0
- package/dist/shared/ui/separator.d.ts +4 -0
- package/dist/shared/ui/separator.esm +16 -0
- package/dist/shared/ui/sheet.cjs +1 -0
- package/dist/shared/ui/sheet.d.ts +14 -0
- package/dist/shared/ui/sheet.esm +89 -0
- package/dist/shared/ui/sidebar.cjs +1 -0
- package/dist/shared/ui/sidebar.d.ts +69 -0
- package/dist/shared/ui/sidebar.esm +348 -0
- package/dist/shared/ui/skeleton.cjs +1 -0
- package/dist/shared/ui/skeleton.d.ts +2 -0
- package/dist/shared/ui/skeleton.esm +12 -0
- package/dist/shared/ui/sonner.cjs +1 -0
- package/dist/shared/ui/sonner.d.ts +3 -0
- package/dist/shared/ui/sonner.esm +29 -0
- package/dist/shared/ui/table.cjs +1 -0
- package/dist/shared/ui/table.d.ts +10 -0
- package/dist/shared/ui/table.esm +66 -0
- package/dist/shared/ui/tabs.cjs +1 -0
- package/dist/shared/ui/tabs.d.ts +11 -0
- package/dist/shared/ui/tabs.esm +45 -0
- package/dist/shared/ui/textarea.cjs +1 -0
- package/dist/shared/ui/textarea.d.ts +3 -0
- package/dist/shared/ui/textarea.esm +13 -0
- package/dist/shared/ui/tooltip.cjs +1 -0
- package/dist/shared/ui/tooltip.d.ts +7 -0
- package/dist/shared/ui/tooltip.esm +36 -0
- package/dist/sheet.d.ts +2 -0
- package/dist/sheets.connector.d.ts +2 -0
- package/dist/sheets.service.d.ts +2 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/social-icons.d.ts +2 -0
- package/dist/sonner.d.ts +2 -0
- package/dist/sortable.d.ts +2 -0
- package/dist/sqlite.service.d.ts +6 -0
- package/dist/startable.d.ts +4 -0
- package/dist/storage.service.d.ts +4 -0
- package/dist/store.hook.d.ts +4 -0
- package/dist/store.service.d.ts +4 -0
- package/dist/table.d.ts +2 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/tags.input.d.ts +4 -0
- package/dist/test.entity.d.ts +2 -0
- package/dist/test.repo.service.d.ts +6 -0
- package/dist/text-coder.service.d.ts +2 -0
- package/dist/text.input.d.ts +4 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.input.d.ts +4 -0
- package/dist/theme-builder.d.ts +2 -0
- package/dist/theme-provider.d.ts +2 -0
- package/dist/theme-toggle.d.ts +2 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tron-assets.service.d.ts +2 -0
- package/dist/tron-wallet.entity.d.ts +2 -0
- package/dist/tron-wallet.repo.d.ts +2 -0
- package/dist/tron.service.d.ts +2 -0
- package/dist/tron.types.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/typography.d.ts +2 -0
- package/dist/use-confirm.d.ts +2 -0
- package/dist/use-device.d.ts +2 -0
- package/dist/use-i18n.d.ts +2 -0
- package/dist/use-mobile.d.ts +2 -0
- package/dist/use-on-start.hook.d.ts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/value.verifier.d.ts +4 -0
- package/package.json +155 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { Column as t, Entity as n, JoinColumn as r, ManyToOne as i } from "typeorm/browser";
|
|
3
|
+
import { z as a } from "zod";
|
|
4
|
+
//#region src/modules/organizations/entities/organization.entity.ts
|
|
5
|
+
var o, s, c, l, u, d, f, p, m, h, g, _, v, y;
|
|
6
|
+
function b(e, t, n, r) {
|
|
7
|
+
n && Object.defineProperty(e, t, {
|
|
8
|
+
enumerable: n.enumerable,
|
|
9
|
+
configurable: n.configurable,
|
|
10
|
+
writable: n.writable,
|
|
11
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function x(e, t, n, r, i) {
|
|
15
|
+
var a = {};
|
|
16
|
+
return Object.keys(r).forEach(function(e) {
|
|
17
|
+
a[e] = r[e];
|
|
18
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
19
|
+
return r(e, t, n) || n;
|
|
20
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
21
|
+
}
|
|
22
|
+
var S = (o = n("organizations"), s = t({
|
|
23
|
+
type: "varchar",
|
|
24
|
+
length: 150
|
|
25
|
+
}), c = t({
|
|
26
|
+
type: "varchar",
|
|
27
|
+
length: 150,
|
|
28
|
+
nullable: !0
|
|
29
|
+
}), l = t({
|
|
30
|
+
type: "text",
|
|
31
|
+
nullable: !0
|
|
32
|
+
}), u = i(() => S, {
|
|
33
|
+
nullable: !0,
|
|
34
|
+
onDelete: "SET NULL"
|
|
35
|
+
}), d = r({ name: "parentId" }), f = t({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
nullable: !0
|
|
38
|
+
}), o(p = (m = class extends e {
|
|
39
|
+
constructor(...e) {
|
|
40
|
+
super(...e), b(this, "name", h, this), b(this, "contactEmail", g, this), b(this, "description", _, this), b(this, "parent", v, this), b(this, "parentId", y, this);
|
|
41
|
+
}
|
|
42
|
+
}, h = x(m.prototype, "name", [s], {
|
|
43
|
+
configurable: !0,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
initializer: null
|
|
47
|
+
}), g = x(m.prototype, "contactEmail", [c], {
|
|
48
|
+
configurable: !0,
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
initializer: null
|
|
52
|
+
}), _ = x(m.prototype, "description", [l], {
|
|
53
|
+
configurable: !0,
|
|
54
|
+
enumerable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
initializer: null
|
|
57
|
+
}), v = x(m.prototype, "parent", [u, d], {
|
|
58
|
+
configurable: !0,
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
writable: !0,
|
|
61
|
+
initializer: null
|
|
62
|
+
}), y = x(m.prototype, "parentId", [f], {
|
|
63
|
+
configurable: !0,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
writable: !0,
|
|
66
|
+
initializer: null
|
|
67
|
+
}), m)) || p);
|
|
68
|
+
a.object({
|
|
69
|
+
name: a.string().min(1, "El nombre es requerido").max(150),
|
|
70
|
+
contactEmail: a.string().email("Correo electrónico inválido").max(150).nullable().optional().or(a.literal("")),
|
|
71
|
+
description: a.string().max(1e3).nullable().optional(),
|
|
72
|
+
parentId: a.string().uuid().nullable().optional()
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { S as OrganizationEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../packages/sqlite/base/base.entity.cjs`),t=require(`../../organizations/entities/organization.entity.cjs`),n=require(`../../artifacts/entities/artifact.entity.cjs`);let r=require(`typeorm/browser`),i=require(`zod`);var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;function D(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function O(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var k=function(e){return e.PROJECT=`Project`,e.PROGRAM=`Program`,e.PORTFOLIO=`Portfolio`,e}({});k.PROJECT,k.PROGRAM,k.PORTFOLIO;var A=(a=(0,r.Entity)(`projects`),o=(0,r.Column)({type:`varchar`,length:150}),s=(0,r.Column)({type:`text`,nullable:!0}),c=(0,r.Column)({type:`varchar`,default:k.PROJECT}),l=(0,r.ManyToOne)(()=>t.OrganizationEntity,{nullable:!1,onDelete:`CASCADE`}),u=(0,r.JoinColumn)({name:`organizationId`}),d=(0,r.Column)({type:`varchar`}),f=(0,r.ManyToOne)(()=>A,{nullable:!0,onDelete:`SET NULL`}),p=(0,r.JoinColumn)({name:`parentId`}),m=(0,r.Column)({type:`varchar`,nullable:!0}),h=(0,r.ManyToMany)(()=>n.ArtifactEntity),g=(0,r.JoinTable)({name:`project_artifacts`}),a(_=(v=class extends e.BaseEntity{constructor(...e){super(...e),D(this,`name`,y,this),D(this,`description`,b,this),D(this,`type`,x,this),D(this,`organization`,S,this),D(this,`organizationId`,C,this),D(this,`parent`,w,this),D(this,`parentId`,T,this),D(this,`artifacts`,E,this)}},y=O(v.prototype,`name`,[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=O(v.prototype,`description`,[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=O(v.prototype,`type`,[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=O(v.prototype,`organization`,[l,u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=O(v.prototype,`organizationId`,[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=O(v.prototype,`parent`,[f,p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=O(v.prototype,`parentId`,[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=O(v.prototype,`artifacts`,[h,g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v))||_);i.z.object({name:i.z.string().min(1,`El nombre es requerido`).max(150),description:i.z.string().max(1e3).nullable().optional(),type:i.z.nativeEnum(k).default(k.PROJECT),organizationId:i.z.string().uuid(`Organización inválida`),parentId:i.z.string().uuid().nullable().optional(),artifactIds:i.z.array(i.z.string().uuid()).optional().default([])}),exports.ProjectEntity=A;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { OrganizationEntity as t } from "../../organizations/entities/organization.entity.esm";
|
|
3
|
+
import { ArtifactEntity as n } from "../../artifacts/entities/artifact.entity.esm";
|
|
4
|
+
import { Column as r, Entity as i, JoinColumn as a, JoinTable as o, ManyToMany as s, ManyToOne as c } from "typeorm/browser";
|
|
5
|
+
import { z as l } from "zod";
|
|
6
|
+
//#region src/modules/projects/entities/project.entity.ts
|
|
7
|
+
var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j;
|
|
8
|
+
function M(e, t, n, r) {
|
|
9
|
+
n && Object.defineProperty(e, t, {
|
|
10
|
+
enumerable: n.enumerable,
|
|
11
|
+
configurable: n.configurable,
|
|
12
|
+
writable: n.writable,
|
|
13
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function N(e, t, n, r, i) {
|
|
17
|
+
var a = {};
|
|
18
|
+
return Object.keys(r).forEach(function(e) {
|
|
19
|
+
a[e] = r[e];
|
|
20
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
21
|
+
return r(e, t, n) || n;
|
|
22
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
23
|
+
}
|
|
24
|
+
var P = /* @__PURE__ */ function(e) {
|
|
25
|
+
return e.PROJECT = "Project", e.PROGRAM = "Program", e.PORTFOLIO = "Portfolio", e;
|
|
26
|
+
}({});
|
|
27
|
+
P.PROJECT, P.PROGRAM, P.PORTFOLIO;
|
|
28
|
+
var F = (u = i("projects"), d = r({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: 150
|
|
31
|
+
}), f = r({
|
|
32
|
+
type: "text",
|
|
33
|
+
nullable: !0
|
|
34
|
+
}), p = r({
|
|
35
|
+
type: "varchar",
|
|
36
|
+
default: P.PROJECT
|
|
37
|
+
}), m = c(() => t, {
|
|
38
|
+
nullable: !1,
|
|
39
|
+
onDelete: "CASCADE"
|
|
40
|
+
}), h = a({ name: "organizationId" }), g = r({ type: "varchar" }), _ = c(() => F, {
|
|
41
|
+
nullable: !0,
|
|
42
|
+
onDelete: "SET NULL"
|
|
43
|
+
}), v = a({ name: "parentId" }), y = r({
|
|
44
|
+
type: "varchar",
|
|
45
|
+
nullable: !0
|
|
46
|
+
}), b = s(() => n), x = o({ name: "project_artifacts" }), u(S = (C = class extends e {
|
|
47
|
+
constructor(...e) {
|
|
48
|
+
super(...e), M(this, "name", w, this), M(this, "description", T, this), M(this, "type", E, this), M(this, "organization", D, this), M(this, "organizationId", O, this), M(this, "parent", k, this), M(this, "parentId", A, this), M(this, "artifacts", j, this);
|
|
49
|
+
}
|
|
50
|
+
}, w = N(C.prototype, "name", [d], {
|
|
51
|
+
configurable: !0,
|
|
52
|
+
enumerable: !0,
|
|
53
|
+
writable: !0,
|
|
54
|
+
initializer: null
|
|
55
|
+
}), T = N(C.prototype, "description", [f], {
|
|
56
|
+
configurable: !0,
|
|
57
|
+
enumerable: !0,
|
|
58
|
+
writable: !0,
|
|
59
|
+
initializer: null
|
|
60
|
+
}), E = N(C.prototype, "type", [p], {
|
|
61
|
+
configurable: !0,
|
|
62
|
+
enumerable: !0,
|
|
63
|
+
writable: !0,
|
|
64
|
+
initializer: null
|
|
65
|
+
}), D = N(C.prototype, "organization", [m, h], {
|
|
66
|
+
configurable: !0,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
writable: !0,
|
|
69
|
+
initializer: null
|
|
70
|
+
}), O = N(C.prototype, "organizationId", [g], {
|
|
71
|
+
configurable: !0,
|
|
72
|
+
enumerable: !0,
|
|
73
|
+
writable: !0,
|
|
74
|
+
initializer: null
|
|
75
|
+
}), k = N(C.prototype, "parent", [_, v], {
|
|
76
|
+
configurable: !0,
|
|
77
|
+
enumerable: !0,
|
|
78
|
+
writable: !0,
|
|
79
|
+
initializer: null
|
|
80
|
+
}), A = N(C.prototype, "parentId", [y], {
|
|
81
|
+
configurable: !0,
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
writable: !0,
|
|
84
|
+
initializer: null
|
|
85
|
+
}), j = N(C.prototype, "artifacts", [b, x], {
|
|
86
|
+
configurable: !0,
|
|
87
|
+
enumerable: !0,
|
|
88
|
+
writable: !0,
|
|
89
|
+
initializer: null
|
|
90
|
+
}), C)) || S);
|
|
91
|
+
l.object({
|
|
92
|
+
name: l.string().min(1, "El nombre es requerido").max(150),
|
|
93
|
+
description: l.string().max(1e3).nullable().optional(),
|
|
94
|
+
type: l.nativeEnum(P).default(P.PROJECT),
|
|
95
|
+
organizationId: l.string().uuid("Organización inválida"),
|
|
96
|
+
parentId: l.string().uuid().nullable().optional(),
|
|
97
|
+
artifactIds: l.array(l.string().uuid()).optional().default([])
|
|
98
|
+
});
|
|
99
|
+
//#endregion
|
|
100
|
+
export { F as ProjectEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../_virtual/_rolldown/runtime.cjs`),t=require(`../../../packages/sqlite/base/base.entity.cjs`);let n=require(`typeorm/browser`),r=require(`zod`);r=e.__toESM(r);var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;function y(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function b(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var x=(i=(0,n.Entity)(`experiments`),a=(0,n.Column)(`text`),o=(0,n.Column)(`text`),s=(0,n.Column)({type:`text`,nullable:!0}),c=(0,n.Column)(`text`),l=(0,n.Column)(`text`),u=(0,n.Column)({type:`datetime`,default:()=>`CURRENT_TIMESTAMP`}),i(d=(f=class extends t.BaseEntity{constructor(...e){super(...e),y(this,`title`,p,this),y(this,`description`,m,this),y(this,`image`,h,this),y(this,`observations`,g,this),y(this,`nextSteps`,_,this),y(this,`createdAt`,v,this)}},p=b(f.prototype,`title`,[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(f.prototype,`description`,[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=b(f.prototype,`image`,[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=b(f.prototype,`observations`,[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=b(f.prototype,`nextSteps`,[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=b(f.prototype,`createdAt`,[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f))||d);r.default.object({title:r.default.string().min(3,`Título muy corto`).max(100),description:r.default.string().min(5,`Descripción muy corta`),image:r.default.any().optional().refine(e=>!e||typeof e==`string`?!0:e.size<=2*1024*1024,`Imagen demasiado pesada (máx 2MB)`),observations:r.default.string().min(5,`Observaciones requeridas`),nextSteps:r.default.string().min(5,`Siguientes pasos requeridos`)}),exports.ExperimentEntity=x;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { Column as t, Entity as n } from "typeorm/browser";
|
|
3
|
+
import r from "zod";
|
|
4
|
+
//#region src/modules/test/entities/experiment.entity.ts
|
|
5
|
+
var i, a, o, s, c, l, u, d, f, p, m, h, g, _, v;
|
|
6
|
+
function y(e, t, n, r) {
|
|
7
|
+
n && Object.defineProperty(e, t, {
|
|
8
|
+
enumerable: n.enumerable,
|
|
9
|
+
configurable: n.configurable,
|
|
10
|
+
writable: n.writable,
|
|
11
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function b(e, t, n, r, i) {
|
|
15
|
+
var a = {};
|
|
16
|
+
return Object.keys(r).forEach(function(e) {
|
|
17
|
+
a[e] = r[e];
|
|
18
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
19
|
+
return r(e, t, n) || n;
|
|
20
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
21
|
+
}
|
|
22
|
+
var x = (i = n("experiments"), a = t("text"), o = t("text"), s = t({
|
|
23
|
+
type: "text",
|
|
24
|
+
nullable: !0
|
|
25
|
+
}), c = t("text"), l = t("text"), u = t({
|
|
26
|
+
type: "datetime",
|
|
27
|
+
default: () => "CURRENT_TIMESTAMP"
|
|
28
|
+
}), i(d = (f = class extends e {
|
|
29
|
+
constructor(...e) {
|
|
30
|
+
super(...e), y(this, "title", p, this), y(this, "description", m, this), y(this, "image", h, this), y(this, "observations", g, this), y(this, "nextSteps", _, this), y(this, "createdAt", v, this);
|
|
31
|
+
}
|
|
32
|
+
}, p = b(f.prototype, "title", [a], {
|
|
33
|
+
configurable: !0,
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
writable: !0,
|
|
36
|
+
initializer: null
|
|
37
|
+
}), m = b(f.prototype, "description", [o], {
|
|
38
|
+
configurable: !0,
|
|
39
|
+
enumerable: !0,
|
|
40
|
+
writable: !0,
|
|
41
|
+
initializer: null
|
|
42
|
+
}), h = b(f.prototype, "image", [s], {
|
|
43
|
+
configurable: !0,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
initializer: null
|
|
47
|
+
}), g = b(f.prototype, "observations", [c], {
|
|
48
|
+
configurable: !0,
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
initializer: null
|
|
52
|
+
}), _ = b(f.prototype, "nextSteps", [l], {
|
|
53
|
+
configurable: !0,
|
|
54
|
+
enumerable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
initializer: null
|
|
57
|
+
}), v = b(f.prototype, "createdAt", [u], {
|
|
58
|
+
configurable: !0,
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
writable: !0,
|
|
61
|
+
initializer: null
|
|
62
|
+
}), f)) || d);
|
|
63
|
+
r.object({
|
|
64
|
+
title: r.string().min(3, "Título muy corto").max(100),
|
|
65
|
+
description: r.string().min(5, "Descripción muy corta"),
|
|
66
|
+
image: r.any().optional().refine((e) => !e || typeof e == "string" ? !0 : e.size <= 2 * 1024 * 1024, "Imagen demasiado pesada (máx 2MB)"),
|
|
67
|
+
observations: r.string().min(5, "Observaciones requeridas"),
|
|
68
|
+
nextSteps: r.string().min(5, "Siguientes pasos requeridos")
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { x as ExperimentEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../packages/sqlite/base/base.entity.cjs`);let t=require(`typeorm/browser`),n=require(`zod`);var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y;function b(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function x(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var S=function(e){return e.OPEN=`OPEN`,e.IN_PROGRESS=`IN_PROGRESS`,e.RESOLVED=`RESOLVED`,e.CLOSED=`CLOSED`,e}({}),C=(r=(0,t.Entity)(`tickets`),i=(0,t.Column)({type:`varchar`,length:50}),a=(0,t.Column)({type:`varchar`,length:50,nullable:!0}),o=(0,t.Column)({type:`varchar`,length:50,nullable:!0}),s=(0,t.Column)({type:`text`}),c=(0,t.Column)({type:`text`}),l=(0,t.Column)({type:`varchar`,length:20,default:S.OPEN}),u=(0,t.Column)({type:`text`,nullable:!0}),r(d=(f=class extends e.BaseEntity{constructor(...e){super(...e),b(this,`userId`,p,this),b(this,`actionId`,m,this),b(this,`pipelineId`,h,this),b(this,`payload`,g,this),b(this,`errorMessage`,_,this),b(this,`status`,v,this),b(this,`resolutionNotes`,y,this)}},p=x(f.prototype,`userId`,[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=x(f.prototype,`actionId`,[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=x(f.prototype,`pipelineId`,[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=x(f.prototype,`payload`,[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=x(f.prototype,`errorMessage`,[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=x(f.prototype,`status`,[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=x(f.prototype,`resolutionNotes`,[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f))||d);n.z.object({userId:n.z.string().min(1,`El usuario es obligatorio`),actionId:n.z.string().optional().nullable(),pipelineId:n.z.string().optional().nullable(),payload:n.z.string().min(1,`El payload es obligatorio`),errorMessage:n.z.string().min(1,`El mensaje de error es obligatorio`),status:n.z.nativeEnum(S).default(S.OPEN),resolutionNotes:n.z.string().optional().nullable()}),exports.TicketEntity=C;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { Column as t, Entity as n } from "typeorm/browser";
|
|
3
|
+
import { z as r } from "zod";
|
|
4
|
+
//#region src/modules/tickets/entities/ticket.entity.ts
|
|
5
|
+
var i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b;
|
|
6
|
+
function x(e, t, n, r) {
|
|
7
|
+
n && Object.defineProperty(e, t, {
|
|
8
|
+
enumerable: n.enumerable,
|
|
9
|
+
configurable: n.configurable,
|
|
10
|
+
writable: n.writable,
|
|
11
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function S(e, t, n, r, i) {
|
|
15
|
+
var a = {};
|
|
16
|
+
return Object.keys(r).forEach(function(e) {
|
|
17
|
+
a[e] = r[e];
|
|
18
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
19
|
+
return r(e, t, n) || n;
|
|
20
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
21
|
+
}
|
|
22
|
+
var C = /* @__PURE__ */ function(e) {
|
|
23
|
+
return e.OPEN = "OPEN", e.IN_PROGRESS = "IN_PROGRESS", e.RESOLVED = "RESOLVED", e.CLOSED = "CLOSED", e;
|
|
24
|
+
}({}), w = (i = n("tickets"), a = t({
|
|
25
|
+
type: "varchar",
|
|
26
|
+
length: 50
|
|
27
|
+
}), o = t({
|
|
28
|
+
type: "varchar",
|
|
29
|
+
length: 50,
|
|
30
|
+
nullable: !0
|
|
31
|
+
}), s = t({
|
|
32
|
+
type: "varchar",
|
|
33
|
+
length: 50,
|
|
34
|
+
nullable: !0
|
|
35
|
+
}), c = t({ type: "text" }), l = t({ type: "text" }), u = t({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 20,
|
|
38
|
+
default: C.OPEN
|
|
39
|
+
}), d = t({
|
|
40
|
+
type: "text",
|
|
41
|
+
nullable: !0
|
|
42
|
+
}), i(f = (p = class extends e {
|
|
43
|
+
constructor(...e) {
|
|
44
|
+
super(...e), x(this, "userId", m, this), x(this, "actionId", h, this), x(this, "pipelineId", g, this), x(this, "payload", _, this), x(this, "errorMessage", v, this), x(this, "status", y, this), x(this, "resolutionNotes", b, this);
|
|
45
|
+
}
|
|
46
|
+
}, m = S(p.prototype, "userId", [a], {
|
|
47
|
+
configurable: !0,
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
writable: !0,
|
|
50
|
+
initializer: null
|
|
51
|
+
}), h = S(p.prototype, "actionId", [o], {
|
|
52
|
+
configurable: !0,
|
|
53
|
+
enumerable: !0,
|
|
54
|
+
writable: !0,
|
|
55
|
+
initializer: null
|
|
56
|
+
}), g = S(p.prototype, "pipelineId", [s], {
|
|
57
|
+
configurable: !0,
|
|
58
|
+
enumerable: !0,
|
|
59
|
+
writable: !0,
|
|
60
|
+
initializer: null
|
|
61
|
+
}), _ = S(p.prototype, "payload", [c], {
|
|
62
|
+
configurable: !0,
|
|
63
|
+
enumerable: !0,
|
|
64
|
+
writable: !0,
|
|
65
|
+
initializer: null
|
|
66
|
+
}), v = S(p.prototype, "errorMessage", [l], {
|
|
67
|
+
configurable: !0,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
writable: !0,
|
|
70
|
+
initializer: null
|
|
71
|
+
}), y = S(p.prototype, "status", [u], {
|
|
72
|
+
configurable: !0,
|
|
73
|
+
enumerable: !0,
|
|
74
|
+
writable: !0,
|
|
75
|
+
initializer: null
|
|
76
|
+
}), b = S(p.prototype, "resolutionNotes", [d], {
|
|
77
|
+
configurable: !0,
|
|
78
|
+
enumerable: !0,
|
|
79
|
+
writable: !0,
|
|
80
|
+
initializer: null
|
|
81
|
+
}), p)) || f);
|
|
82
|
+
r.object({
|
|
83
|
+
userId: r.string().min(1, "El usuario es obligatorio"),
|
|
84
|
+
actionId: r.string().optional().nullable(),
|
|
85
|
+
pipelineId: r.string().optional().nullable(),
|
|
86
|
+
payload: r.string().min(1, "El payload es obligatorio"),
|
|
87
|
+
errorMessage: r.string().min(1, "El mensaje de error es obligatorio"),
|
|
88
|
+
status: r.nativeEnum(C).default(C.OPEN),
|
|
89
|
+
resolutionNotes: r.string().optional().nullable()
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
export { w as TicketEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../packages/sqlite/base/base.entity.cjs`),t=require(`../../organizations/entities/organization.entity.cjs`),n=require(`../../integrations/entities/integration.entity.cjs`);let r=require(`typeorm/browser`),i=require(`zod`);var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M;function N(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function P(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var F=function(e){return e.PUBLIC=`public`,e.PRIVATE=`private`,e.PROTECTED=`protected`,e}({}),I=(a=(0,r.Entity)(`tools`),o=(0,r.Column)({type:`varchar`,length:150}),s=(0,r.Column)({type:`text`,nullable:!0}),c=(0,r.Column)({type:`simple-json`,nullable:!0}),l=(0,r.Column)({type:`varchar`,length:50}),u=(0,r.Column)({type:`simple-json`,nullable:!0}),d=(0,r.Column)({type:`varchar`,length:20,default:F.PUBLIC}),f=(0,r.ManyToOne)(()=>t.OrganizationEntity,{nullable:!0,onDelete:`SET NULL`}),p=(0,r.JoinColumn)({name:`organizationId`}),m=(0,r.Column)({type:`varchar`,nullable:!0}),h=(0,r.ManyToOne)(()=>I,{nullable:!0,onDelete:`SET NULL`}),g=(0,r.JoinColumn)({name:`toolBaseId`}),_=(0,r.Column)({type:`varchar`,nullable:!0}),v=(0,r.ManyToMany)(()=>n.IntegrationEntity),y=(0,r.JoinTable)({name:`tool_integrations`}),a(b=(x=class extends e.BaseEntity{constructor(...e){super(...e),N(this,`name`,S,this),N(this,`description`,C,this),N(this,`justification`,w,this),N(this,`version`,T,this),N(this,`categories`,E,this),N(this,`visibility`,D,this),N(this,`organization`,O,this),N(this,`organizationId`,k,this),N(this,`toolBase`,A,this),N(this,`toolBaseId`,j,this),N(this,`integrations`,M,this)}},S=P(x.prototype,`name`,[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=P(x.prototype,`description`,[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=P(x.prototype,`justification`,[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=P(x.prototype,`version`,[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=P(x.prototype,`categories`,[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=P(x.prototype,`visibility`,[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=P(x.prototype,`organization`,[f,p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=P(x.prototype,`organizationId`,[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=P(x.prototype,`toolBase`,[h,g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=P(x.prototype,`toolBaseId`,[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=P(x.prototype,`integrations`,[v,y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x))||b);i.z.object({name:i.z.string().min(1,`El nombre es requerido`).max(150),description:i.z.string().max(1e3).nullable().optional().or(i.z.literal(``)),justification:i.z.array(i.z.string()).optional().default([]),version:i.z.string().min(1,`La versión es requerida`).max(50),categories:i.z.array(i.z.string()).optional().default([]),visibility:i.z.nativeEnum(F).default(F.PRIVATE),organizationId:i.z.string().uuid().nullable().optional().or(i.z.literal(``)),toolBaseId:i.z.string().uuid().nullable().optional().or(i.z.literal(``)),integrationIds:i.z.array(i.z.string().uuid()).optional().default([])}),exports.ToolEntity=I;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { OrganizationEntity as t } from "../../organizations/entities/organization.entity.esm";
|
|
3
|
+
import { IntegrationEntity as n } from "../../integrations/entities/integration.entity.esm";
|
|
4
|
+
import { Column as r, Entity as i, JoinColumn as a, JoinTable as o, ManyToMany as s, ManyToOne as c } from "typeorm/browser";
|
|
5
|
+
import { z as l } from "zod";
|
|
6
|
+
//#region src/modules/tools/entities/tool.entity.ts
|
|
7
|
+
var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L;
|
|
8
|
+
function R(e, t, n, r) {
|
|
9
|
+
n && Object.defineProperty(e, t, {
|
|
10
|
+
enumerable: n.enumerable,
|
|
11
|
+
configurable: n.configurable,
|
|
12
|
+
writable: n.writable,
|
|
13
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function z(e, t, n, r, i) {
|
|
17
|
+
var a = {};
|
|
18
|
+
return Object.keys(r).forEach(function(e) {
|
|
19
|
+
a[e] = r[e];
|
|
20
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
21
|
+
return r(e, t, n) || n;
|
|
22
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
23
|
+
}
|
|
24
|
+
var B = /* @__PURE__ */ function(e) {
|
|
25
|
+
return e.PUBLIC = "public", e.PRIVATE = "private", e.PROTECTED = "protected", e;
|
|
26
|
+
}({}), V = (u = i("tools"), d = r({
|
|
27
|
+
type: "varchar",
|
|
28
|
+
length: 150
|
|
29
|
+
}), f = r({
|
|
30
|
+
type: "text",
|
|
31
|
+
nullable: !0
|
|
32
|
+
}), p = r({
|
|
33
|
+
type: "simple-json",
|
|
34
|
+
nullable: !0
|
|
35
|
+
}), m = r({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
length: 50
|
|
38
|
+
}), h = r({
|
|
39
|
+
type: "simple-json",
|
|
40
|
+
nullable: !0
|
|
41
|
+
}), g = r({
|
|
42
|
+
type: "varchar",
|
|
43
|
+
length: 20,
|
|
44
|
+
default: B.PUBLIC
|
|
45
|
+
}), _ = c(() => t, {
|
|
46
|
+
nullable: !0,
|
|
47
|
+
onDelete: "SET NULL"
|
|
48
|
+
}), v = a({ name: "organizationId" }), y = r({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
nullable: !0
|
|
51
|
+
}), b = c(() => V, {
|
|
52
|
+
nullable: !0,
|
|
53
|
+
onDelete: "SET NULL"
|
|
54
|
+
}), x = a({ name: "toolBaseId" }), S = r({
|
|
55
|
+
type: "varchar",
|
|
56
|
+
nullable: !0
|
|
57
|
+
}), C = s(() => n), w = o({ name: "tool_integrations" }), u(T = (E = class extends e {
|
|
58
|
+
constructor(...e) {
|
|
59
|
+
super(...e), R(this, "name", D, this), R(this, "description", O, this), R(this, "justification", k, this), R(this, "version", A, this), R(this, "categories", j, this), R(this, "visibility", M, this), R(this, "organization", N, this), R(this, "organizationId", P, this), R(this, "toolBase", F, this), R(this, "toolBaseId", I, this), R(this, "integrations", L, this);
|
|
60
|
+
}
|
|
61
|
+
}, D = z(E.prototype, "name", [d], {
|
|
62
|
+
configurable: !0,
|
|
63
|
+
enumerable: !0,
|
|
64
|
+
writable: !0,
|
|
65
|
+
initializer: null
|
|
66
|
+
}), O = z(E.prototype, "description", [f], {
|
|
67
|
+
configurable: !0,
|
|
68
|
+
enumerable: !0,
|
|
69
|
+
writable: !0,
|
|
70
|
+
initializer: null
|
|
71
|
+
}), k = z(E.prototype, "justification", [p], {
|
|
72
|
+
configurable: !0,
|
|
73
|
+
enumerable: !0,
|
|
74
|
+
writable: !0,
|
|
75
|
+
initializer: null
|
|
76
|
+
}), A = z(E.prototype, "version", [m], {
|
|
77
|
+
configurable: !0,
|
|
78
|
+
enumerable: !0,
|
|
79
|
+
writable: !0,
|
|
80
|
+
initializer: null
|
|
81
|
+
}), j = z(E.prototype, "categories", [h], {
|
|
82
|
+
configurable: !0,
|
|
83
|
+
enumerable: !0,
|
|
84
|
+
writable: !0,
|
|
85
|
+
initializer: null
|
|
86
|
+
}), M = z(E.prototype, "visibility", [g], {
|
|
87
|
+
configurable: !0,
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
writable: !0,
|
|
90
|
+
initializer: null
|
|
91
|
+
}), N = z(E.prototype, "organization", [_, v], {
|
|
92
|
+
configurable: !0,
|
|
93
|
+
enumerable: !0,
|
|
94
|
+
writable: !0,
|
|
95
|
+
initializer: null
|
|
96
|
+
}), P = z(E.prototype, "organizationId", [y], {
|
|
97
|
+
configurable: !0,
|
|
98
|
+
enumerable: !0,
|
|
99
|
+
writable: !0,
|
|
100
|
+
initializer: null
|
|
101
|
+
}), F = z(E.prototype, "toolBase", [b, x], {
|
|
102
|
+
configurable: !0,
|
|
103
|
+
enumerable: !0,
|
|
104
|
+
writable: !0,
|
|
105
|
+
initializer: null
|
|
106
|
+
}), I = z(E.prototype, "toolBaseId", [S], {
|
|
107
|
+
configurable: !0,
|
|
108
|
+
enumerable: !0,
|
|
109
|
+
writable: !0,
|
|
110
|
+
initializer: null
|
|
111
|
+
}), L = z(E.prototype, "integrations", [C, w], {
|
|
112
|
+
configurable: !0,
|
|
113
|
+
enumerable: !0,
|
|
114
|
+
writable: !0,
|
|
115
|
+
initializer: null
|
|
116
|
+
}), E)) || T);
|
|
117
|
+
l.object({
|
|
118
|
+
name: l.string().min(1, "El nombre es requerido").max(150),
|
|
119
|
+
description: l.string().max(1e3).nullable().optional().or(l.literal("")),
|
|
120
|
+
justification: l.array(l.string()).optional().default([]),
|
|
121
|
+
version: l.string().min(1, "La versión es requerida").max(50),
|
|
122
|
+
categories: l.array(l.string()).optional().default([]),
|
|
123
|
+
visibility: l.nativeEnum(B).default(B.PRIVATE),
|
|
124
|
+
organizationId: l.string().uuid().nullable().optional().or(l.literal("")),
|
|
125
|
+
toolBaseId: l.string().uuid().nullable().optional().or(l.literal("")),
|
|
126
|
+
integrationIds: l.array(l.string().uuid()).optional().default([])
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
export { V as ToolEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e){return e.USER=`User`,e.MAINTAINER=`Maintainer`,e.ADMINISTRATOR=`Administrator`,e}({});exports.UserRole=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../../packages/sqlite/base/base.entity.cjs`),t=require(`./user-role.enum.cjs`);let n=require(`typeorm/browser`),r=require(`zod`);var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;function x(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function S(e,t,n,r,i){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,(`value`in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(e,t,a),null):a}var C=(i=(0,n.Entity)(`users`),a=(0,n.Column)({type:`varchar`}),o=(0,n.Column)({type:`varchar`}),s=(0,n.Column)({type:`varchar`,nullable:!0}),c=(0,n.Column)({type:`varchar`,nullable:!0}),l=(0,n.Column)({type:`text`,nullable:!0}),u=(0,n.Column)({type:`simple-json`,nullable:!0}),d=(0,n.Column)({type:`varchar`,default:t.UserRole.USER}),i(f=(p=class extends e.BaseEntity{constructor(...e){super(...e),x(this,`names`,m,this),x(this,`pseudonym`,h,this),x(this,`email`,g,this),x(this,`phone`,_,this),x(this,`bio`,v,this),x(this,`goals`,y,this),x(this,`role`,b,this)}},m=S(p.prototype,`names`,[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=S(p.prototype,`pseudonym`,[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=S(p.prototype,`email`,[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=S(p.prototype,`phone`,[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=S(p.prototype,`bio`,[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=S(p.prototype,`goals`,[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=S(p.prototype,`role`,[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p))||f);r.z.object({names:r.z.string().min(1,`El nombre es obligatorio`),pseudonym:r.z.string().min(1,`El seudónimo es obligatorio`),email:r.z.string().email(`Correo inválido`).optional().nullable().or(r.z.literal(``)),phone:r.z.string().optional().nullable().or(r.z.literal(``)),bio:r.z.string().max(500,`La biografía es demasiado larga`).optional().nullable().or(r.z.literal(``)),goals:r.z.array(r.z.string()).optional().default([]),role:r.z.nativeEnum(t.UserRole).optional().default(t.UserRole.USER)}),exports.UserEntity=C;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { BaseEntity as e } from "../../../packages/sqlite/base/base.entity.esm";
|
|
2
|
+
import { UserRole as t } from "./user-role.enum.esm";
|
|
3
|
+
import { Column as n, Entity as r } from "typeorm/browser";
|
|
4
|
+
import { z as i } from "zod";
|
|
5
|
+
//#region src/modules/users/entities/user.entity.ts
|
|
6
|
+
var a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
|
|
7
|
+
function S(e, t, n, r) {
|
|
8
|
+
n && Object.defineProperty(e, t, {
|
|
9
|
+
enumerable: n.enumerable,
|
|
10
|
+
configurable: n.configurable,
|
|
11
|
+
writable: n.writable,
|
|
12
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function C(e, t, n, r, i) {
|
|
16
|
+
var a = {};
|
|
17
|
+
return Object.keys(r).forEach(function(e) {
|
|
18
|
+
a[e] = r[e];
|
|
19
|
+
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
20
|
+
return r(e, t, n) || n;
|
|
21
|
+
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
22
|
+
}
|
|
23
|
+
var w = (a = r("users"), o = n({ type: "varchar" }), s = n({ type: "varchar" }), c = n({
|
|
24
|
+
type: "varchar",
|
|
25
|
+
nullable: !0
|
|
26
|
+
}), l = n({
|
|
27
|
+
type: "varchar",
|
|
28
|
+
nullable: !0
|
|
29
|
+
}), u = n({
|
|
30
|
+
type: "text",
|
|
31
|
+
nullable: !0
|
|
32
|
+
}), d = n({
|
|
33
|
+
type: "simple-json",
|
|
34
|
+
nullable: !0
|
|
35
|
+
}), f = n({
|
|
36
|
+
type: "varchar",
|
|
37
|
+
default: t.USER
|
|
38
|
+
}), a(p = (m = class extends e {
|
|
39
|
+
constructor(...e) {
|
|
40
|
+
super(...e), S(this, "names", h, this), S(this, "pseudonym", g, this), S(this, "email", _, this), S(this, "phone", v, this), S(this, "bio", y, this), S(this, "goals", b, this), S(this, "role", x, this);
|
|
41
|
+
}
|
|
42
|
+
}, h = C(m.prototype, "names", [o], {
|
|
43
|
+
configurable: !0,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
initializer: null
|
|
47
|
+
}), g = C(m.prototype, "pseudonym", [s], {
|
|
48
|
+
configurable: !0,
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
initializer: null
|
|
52
|
+
}), _ = C(m.prototype, "email", [c], {
|
|
53
|
+
configurable: !0,
|
|
54
|
+
enumerable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
initializer: null
|
|
57
|
+
}), v = C(m.prototype, "phone", [l], {
|
|
58
|
+
configurable: !0,
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
writable: !0,
|
|
61
|
+
initializer: null
|
|
62
|
+
}), y = C(m.prototype, "bio", [u], {
|
|
63
|
+
configurable: !0,
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
writable: !0,
|
|
66
|
+
initializer: null
|
|
67
|
+
}), b = C(m.prototype, "goals", [d], {
|
|
68
|
+
configurable: !0,
|
|
69
|
+
enumerable: !0,
|
|
70
|
+
writable: !0,
|
|
71
|
+
initializer: null
|
|
72
|
+
}), x = C(m.prototype, "role", [f], {
|
|
73
|
+
configurable: !0,
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
writable: !0,
|
|
76
|
+
initializer: null
|
|
77
|
+
}), m)) || p);
|
|
78
|
+
i.object({
|
|
79
|
+
names: i.string().min(1, "El nombre es obligatorio"),
|
|
80
|
+
pseudonym: i.string().min(1, "El seudónimo es obligatorio"),
|
|
81
|
+
email: i.string().email("Correo inválido").optional().nullable().or(i.literal("")),
|
|
82
|
+
phone: i.string().optional().nullable().or(i.literal("")),
|
|
83
|
+
bio: i.string().max(500, "La biografía es demasiado larga").optional().nullable().or(i.literal("")),
|
|
84
|
+
goals: i.array(i.string()).optional().default([]),
|
|
85
|
+
role: i.nativeEnum(t).optional().default(t.USER)
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { w as UserEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../nfc/nfc.service.cjs`);require(`@capacitor/app`).App.addListener(`appStateChange`,async({isActive:t})=>{t||e.NFC_SERVICE.forceCancel()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`crypto-js`);var t=class t{static get instance(){return t._instance||=new t,t._instance}hash(t){return(0,e.SHA512)(t)}compare(e,t){let n=this.hash(e),r=typeof t==`string`?t:t.toString();return n.toString()===r}};t._instance=void 0,exports.CryptoService=t;
|