@gobolt/genesis 0.0.10 → 0.0.11
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/README.md +2 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +468 -263
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +26 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,33 +1,63 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as t } from "./components/
|
|
3
|
-
import { default as s } from "./components/
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import {
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import { default as
|
|
14
|
-
import {
|
|
1
|
+
import { default as a } from "./components/Avatar/Avatar.js";
|
|
2
|
+
import { default as t } from "./components/Badge/Badge.js";
|
|
3
|
+
import { default as s } from "./components/Breadcrumb/Breadcrumb.js";
|
|
4
|
+
import { default as p } from "./components/Button/Button.js";
|
|
5
|
+
import { default as u } from "./components/Card/Card.js";
|
|
6
|
+
import { default as x } from "./components/Checkbox/Checkbox.js";
|
|
7
|
+
import { default as n } from "./components/Dashboard/Dashboard.js";
|
|
8
|
+
import { default as S } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
9
|
+
import { default as c } from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback.js";
|
|
10
|
+
import { F as g, T as h, a as B, u as G } from "./Typography-DqI7RslA.js";
|
|
11
|
+
import { default as v } from "./components/Input/Input.js";
|
|
12
|
+
import { default as F } from "./components/Layout/Layout.js";
|
|
13
|
+
import { default as k } from "./components/Message/Message.js";
|
|
14
|
+
import { default as I } from "./components/Notification/Notification.js";
|
|
15
|
+
import { default as R } from "./components/Popover/Popover.js";
|
|
16
|
+
import { default as D } from "./components/Progress/Progress.js";
|
|
17
|
+
import { default as M } from "./components/Radio/RadioGroup.js";
|
|
18
|
+
import { default as q } from "./components/Row/Row.js";
|
|
19
|
+
import { default as H } from "./components/SegmentedControls/SegmentedControls.js";
|
|
20
|
+
import { default as K } from "./components/Select/Select.js";
|
|
21
|
+
import { default as Q } from "./components/Shapes/Shapes.js";
|
|
22
|
+
import { default as V } from "./components/Switch/Switch.js";
|
|
23
|
+
import { default as X } from "./components/Table/Table.js";
|
|
24
|
+
import { default as Z } from "./components/Tabs/Tabs.js";
|
|
25
|
+
import { default as $ } from "./components/Tile/Tile.js";
|
|
26
|
+
import { default as ro } from "./components/Tooltip/Tooltip.js";
|
|
27
|
+
import { GenesisProvider as eo } from "./providers/GenesisProvider.js";
|
|
28
|
+
import { default as fo } from "./constants/index.js";
|
|
29
|
+
import { GlobalStyles as lo } from "./styles/global-styles.js";
|
|
15
30
|
export {
|
|
16
|
-
|
|
17
|
-
t as
|
|
18
|
-
s as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
x as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
a as Avatar,
|
|
32
|
+
t as Badge,
|
|
33
|
+
s as Breadcrumb,
|
|
34
|
+
p as Button,
|
|
35
|
+
u as Card,
|
|
36
|
+
x as Checkbox,
|
|
37
|
+
n as Dashboard,
|
|
38
|
+
S as ErrorBoundary,
|
|
39
|
+
c as ErrorBoundaryFallback,
|
|
40
|
+
g as Form,
|
|
41
|
+
fo as GENESIS,
|
|
42
|
+
eo as GenesisProvider,
|
|
43
|
+
lo as GlobalStyles,
|
|
44
|
+
v as Input,
|
|
45
|
+
F as Layout,
|
|
46
|
+
k as Message,
|
|
47
|
+
I as Notification,
|
|
48
|
+
R as Popover,
|
|
49
|
+
D as Progress,
|
|
50
|
+
M as RadioGroup,
|
|
51
|
+
q as Row,
|
|
52
|
+
H as SegmentedControls,
|
|
53
|
+
K as Select,
|
|
54
|
+
Q as Shapes,
|
|
55
|
+
V as Switch,
|
|
56
|
+
X as Table,
|
|
57
|
+
Z as Tabs,
|
|
58
|
+
$ as Tile,
|
|
59
|
+
h as Toast,
|
|
60
|
+
ro as Tooltip,
|
|
61
|
+
B as Typography,
|
|
62
|
+
G as useGenesis
|
|
33
63
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Fulfillment, Storage } from '@secondcloset/types';
|
|
2
|
+
import { Address } from './address';
|
|
3
|
+
|
|
4
|
+
export type AppointmentOrShipment = Omit<Storage.Appointment, "user_firstname" | "user_lastname"> | Omit<Fulfillment.Appointment, "user_firstname" | "user_lastname">;
|
|
5
|
+
export type AppointmentMissOTIFStatus = {
|
|
6
|
+
status: "early" | "late";
|
|
7
|
+
durationMin: number;
|
|
8
|
+
};
|
|
9
|
+
export type AppointmentOntimeOTIFStatus = {
|
|
10
|
+
status: "on_time";
|
|
11
|
+
};
|
|
12
|
+
export type AppointmentOTIFStatus = AppointmentMissOTIFStatus | AppointmentOntimeOTIFStatus;
|
|
13
|
+
export type BvrAppointmentDetails = {
|
|
14
|
+
id: string;
|
|
15
|
+
address: Address;
|
|
16
|
+
number: string;
|
|
17
|
+
status: string;
|
|
18
|
+
job_subtype: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
organization_name: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type BvrAppointment = {
|
|
24
|
+
id: string;
|
|
25
|
+
date: string;
|
|
26
|
+
type: string;
|
|
27
|
+
number: string;
|
|
28
|
+
status: string;
|
|
29
|
+
timerange: string;
|
|
30
|
+
address: Address;
|
|
31
|
+
job_type: string;
|
|
32
|
+
job_subtype: string;
|
|
33
|
+
start_time: string | null;
|
|
34
|
+
end_time: string | null;
|
|
35
|
+
organization_name: string | null;
|
|
36
|
+
};
|
|
37
|
+
export declare enum AppointmentStatus {
|
|
38
|
+
request_received = "request_received",
|
|
39
|
+
confirmed = "confirmed",
|
|
40
|
+
scheduled = "scheduled",
|
|
41
|
+
cancelled = "cancelled",
|
|
42
|
+
ready = "ready",
|
|
43
|
+
loaded = "loaded",
|
|
44
|
+
on_the_way = "on_the_way",
|
|
45
|
+
arrived = "arrived",
|
|
46
|
+
incomplete = "incomplete",
|
|
47
|
+
started = "started",
|
|
48
|
+
done = "done",
|
|
49
|
+
staging = "staging",
|
|
50
|
+
completed = "completed",
|
|
51
|
+
signed = "signed",
|
|
52
|
+
failed = "failed"
|
|
53
|
+
}
|
|
54
|
+
export declare enum ParcelAppointmentPackageStatus {
|
|
55
|
+
pending_receiving = "pending_receiving",
|
|
56
|
+
staged = "staged"
|
|
57
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var d = /* @__PURE__ */ ((e) => (e.request_received = "request_received", e.confirmed = "confirmed", e.scheduled = "scheduled", e.cancelled = "cancelled", e.ready = "ready", e.loaded = "loaded", e.on_the_way = "on_the_way", e.arrived = "arrived", e.incomplete = "incomplete", e.started = "started", e.done = "done", e.staging = "staging", e.completed = "completed", e.signed = "signed", e.failed = "failed", e))(d || {}), r = /* @__PURE__ */ ((e) => (e.pending_receiving = "pending_receiving", e.staged = "staged", e))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
d as AppointmentStatus,
|
|
4
|
+
r as ParcelAppointmentPackageStatus
|
|
5
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AppointmentStatus, AppointmentSubtype, AppointmentType, DeliveryType, ScServiceCode } from '@secondcloset/types/src/fulfillment';
|
|
2
|
+
|
|
3
|
+
export type Address = {
|
|
4
|
+
addresss: string;
|
|
5
|
+
line_1: string;
|
|
6
|
+
line_2: string;
|
|
7
|
+
city: string;
|
|
8
|
+
province: string;
|
|
9
|
+
country: string;
|
|
10
|
+
postal_code: string;
|
|
11
|
+
nickname: string | null;
|
|
12
|
+
is_primary: boolean | null;
|
|
13
|
+
coordinates: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type Customer = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
phone_number: string | null;
|
|
22
|
+
user_id: string | null;
|
|
23
|
+
};
|
|
24
|
+
export type PackageWeight = {
|
|
25
|
+
weight_unit: string;
|
|
26
|
+
weight_value: number;
|
|
27
|
+
};
|
|
28
|
+
export type Appointment = {
|
|
29
|
+
id: string;
|
|
30
|
+
date: string;
|
|
31
|
+
timeslot: string;
|
|
32
|
+
number: string;
|
|
33
|
+
job_type: AppointmentType;
|
|
34
|
+
job_subtype: AppointmentSubtype;
|
|
35
|
+
status: AppointmentStatus;
|
|
36
|
+
air_skip: string | null;
|
|
37
|
+
delivery_service_level: ScServiceCode;
|
|
38
|
+
delivery_type: DeliveryType;
|
|
39
|
+
service_area: string;
|
|
40
|
+
organization_name: string | null;
|
|
41
|
+
timezone: string | null;
|
|
42
|
+
state: "assigned" | "unassigned";
|
|
43
|
+
recommended_route_user_count: number;
|
|
44
|
+
order_id: string;
|
|
45
|
+
organization_id: string;
|
|
46
|
+
transport_work_order_id: string | null;
|
|
47
|
+
route_id: string | null;
|
|
48
|
+
parcel_service_level: string | null;
|
|
49
|
+
order_number: string;
|
|
50
|
+
external_order_number: string | null;
|
|
51
|
+
order_platform: string | null;
|
|
52
|
+
external_platform_version: string | null;
|
|
53
|
+
arrival_eta: string | null;
|
|
54
|
+
estimated_duration_seconds: number | null;
|
|
55
|
+
range_of_days_start_date: string | null;
|
|
56
|
+
range_of_days_end_date: string | null;
|
|
57
|
+
type: string | null;
|
|
58
|
+
package_count: number;
|
|
59
|
+
package_weights: PackageWeight[] | null;
|
|
60
|
+
package_ids: string[] | null;
|
|
61
|
+
tracking_numbers: string[] | null;
|
|
62
|
+
master_tracking_number: string | null;
|
|
63
|
+
customer: Customer | null;
|
|
64
|
+
address: Address | null;
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Storage } from '@secondcloset/types';
|
|
2
|
+
import { AppointmentOrShipment } from './appointment';
|
|
3
|
+
|
|
4
|
+
export type AppointmentsLibrary = {
|
|
5
|
+
[appointmentID: string]: AppointmentOrShipment;
|
|
6
|
+
};
|
|
7
|
+
type AppointmentsMarkers = {
|
|
8
|
+
[stringifiedMarkerKey: string]: string[];
|
|
9
|
+
};
|
|
10
|
+
type AppointmentsIDsMap = {
|
|
11
|
+
[appointmentID: string]: string;
|
|
12
|
+
};
|
|
13
|
+
export interface AppointmentsState {
|
|
14
|
+
appointmentsLibrary: AppointmentsLibrary;
|
|
15
|
+
appointmentsMarkers: AppointmentsMarkers;
|
|
16
|
+
inventoryPickupCrossDockDeliveryPairs: AppointmentsIDsMap;
|
|
17
|
+
reverseLogisticsReturnToSenderPairs: AppointmentsIDsMap;
|
|
18
|
+
inventoryOnHandAppointmentIDMap: AppointmentsIDsMap;
|
|
19
|
+
appointmentTimeslots: Storage.AppointmentSlot[];
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface CompletionLocation {
|
|
2
|
+
type: "Point" | string;
|
|
3
|
+
coordinates: [number, number];
|
|
4
|
+
}
|
|
5
|
+
export interface CompletionData {
|
|
6
|
+
id: string;
|
|
7
|
+
appointment_id: string;
|
|
8
|
+
route_id: string;
|
|
9
|
+
user_id: string;
|
|
10
|
+
completion_location: CompletionLocation;
|
|
11
|
+
is_wrong_location: boolean;
|
|
12
|
+
wrong_location_reason: string | null;
|
|
13
|
+
distance_to_appointment_in_meters: number;
|
|
14
|
+
deleted_at: string | null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ServiceArea } from '@secondcloset/types/src/_common';
|
|
2
|
+
|
|
3
|
+
export interface DeliveryPartner {
|
|
4
|
+
id: string;
|
|
5
|
+
type: DeliveryPartnerType;
|
|
6
|
+
company_name: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
address?: string;
|
|
9
|
+
phone_number?: string;
|
|
10
|
+
incorporation_id?: string;
|
|
11
|
+
website?: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeliveryPartnerType = "fleet_operator" | "independent_operator";
|
|
15
|
+
export type DeliveryPartnerDriver = {
|
|
16
|
+
id: string;
|
|
17
|
+
first_name: string;
|
|
18
|
+
last_name: string;
|
|
19
|
+
email: string;
|
|
20
|
+
service_areas: ServiceArea[];
|
|
21
|
+
terms_and_conditions_signed: boolean;
|
|
22
|
+
terms_and_conditions_signed_at: string;
|
|
23
|
+
company_name?: string;
|
|
24
|
+
created_at: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Storage } from '@secondcloset/types';
|
|
2
|
+
import { AppointmentOrShipment } from './appointment';
|
|
3
|
+
import { VehicleKind, VehicleType } from './vehicle';
|
|
4
|
+
|
|
5
|
+
export interface RouteItem {
|
|
6
|
+
appointment_id: string;
|
|
7
|
+
appointment_type: "fulfillment" | "storage";
|
|
8
|
+
type: AppointmentOrShipment;
|
|
9
|
+
status: string;
|
|
10
|
+
number: string;
|
|
11
|
+
date: string;
|
|
12
|
+
timerange: Storage.AppointmentSlot;
|
|
13
|
+
sequence: number;
|
|
14
|
+
}
|
|
15
|
+
export interface RouteUser {
|
|
16
|
+
user_id: string;
|
|
17
|
+
email: string;
|
|
18
|
+
first_name: string;
|
|
19
|
+
last_name: string;
|
|
20
|
+
subrole: string;
|
|
21
|
+
assigned_role: string;
|
|
22
|
+
delivery_partner_id?: string;
|
|
23
|
+
delivery_partner_name?: string;
|
|
24
|
+
}
|
|
25
|
+
export type Route = {
|
|
26
|
+
id: string;
|
|
27
|
+
route_date: string;
|
|
28
|
+
route_name: string;
|
|
29
|
+
route_number: string;
|
|
30
|
+
route_status: string;
|
|
31
|
+
route_color: string;
|
|
32
|
+
dispatch_time: string;
|
|
33
|
+
notes: string;
|
|
34
|
+
vehicle_id: string | null;
|
|
35
|
+
vehicle_type: VehicleType | null;
|
|
36
|
+
created_at: string;
|
|
37
|
+
route_items: RouteItem[];
|
|
38
|
+
route_users: RouteUser[];
|
|
39
|
+
estimated_travel_distance_in_meters: number | null;
|
|
40
|
+
estimated_travel_time_in_seconds: number | null;
|
|
41
|
+
automation_job_id: string | null;
|
|
42
|
+
route_items_updated: boolean;
|
|
43
|
+
hub_id: string | null;
|
|
44
|
+
published_at: string | null;
|
|
45
|
+
recommended_route_user_count: number | null;
|
|
46
|
+
color?: string | null;
|
|
47
|
+
dominant_delivery_type?: string;
|
|
48
|
+
dominant_zone_id?: string;
|
|
49
|
+
dominant_zone_name?: string;
|
|
50
|
+
} & RouteVehicleKind;
|
|
51
|
+
export type RouteVehicleKind = {
|
|
52
|
+
vehicle_kind_id: string;
|
|
53
|
+
vehicle_kind_name: string;
|
|
54
|
+
vehicle_kind_fuel_type: VehicleKind["fuel_type"];
|
|
55
|
+
} | {
|
|
56
|
+
vehicle_kind_id: null;
|
|
57
|
+
vehicle_kind_name: null;
|
|
58
|
+
vehicle_kind_fuel_type: null;
|
|
59
|
+
};
|
|
60
|
+
export interface InternalVehicle {
|
|
61
|
+
id: string;
|
|
62
|
+
type: Extract<VehicleType, "internal">;
|
|
63
|
+
}
|
|
64
|
+
export interface DSPVehicle {
|
|
65
|
+
id: null;
|
|
66
|
+
type: Extract<VehicleType, "dsp_default">;
|
|
67
|
+
}
|
|
68
|
+
export type RouteActionReason = {
|
|
69
|
+
name: string;
|
|
70
|
+
notes?: string;
|
|
71
|
+
};
|
|
72
|
+
export type RouteDeleteReason = RouteActionReason;
|
|
73
|
+
export type RouteUpdateReason = RouteActionReason;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ServiceArea } from '@secondcloset/types/src/_common';
|
|
2
|
+
import { AppointmentOrShipment } from './appointment';
|
|
3
|
+
|
|
4
|
+
type RouteItem = {
|
|
5
|
+
appointment_id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
status: string;
|
|
8
|
+
number: string;
|
|
9
|
+
date: string;
|
|
10
|
+
timerange: string;
|
|
11
|
+
stop_duration: number;
|
|
12
|
+
timezone: string;
|
|
13
|
+
sequence: number;
|
|
14
|
+
total_weight: number;
|
|
15
|
+
total_items_count: number;
|
|
16
|
+
estimated_duration_seconds?: number;
|
|
17
|
+
delivery_type: Exclude<AppointmentOrShipment["delivery_type"], undefined>;
|
|
18
|
+
delivery_service_level: Exclude<AppointmentOrShipment["delivery_service_level"], undefined>;
|
|
19
|
+
coordinates: {
|
|
20
|
+
lat: number;
|
|
21
|
+
lng: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type RouteAnalysisStatisticsAppointment = Omit<RouteItem, "type"> & {
|
|
25
|
+
appointment_id: string | "warehouse-id" | "depot";
|
|
26
|
+
type: number;
|
|
27
|
+
is_pickup?: boolean;
|
|
28
|
+
stop_duration: number;
|
|
29
|
+
arrival_eta?: string;
|
|
30
|
+
departure_eta?: string;
|
|
31
|
+
mapbox_arrival_eta?: string;
|
|
32
|
+
mapbox_departure_eta?: string;
|
|
33
|
+
travel_distance_in_meters?: number;
|
|
34
|
+
actual_travel_distance_in_meters?: number;
|
|
35
|
+
actual_travel_duration_in_seconds?: number;
|
|
36
|
+
total_duration_in_seconds?: number;
|
|
37
|
+
travel_duration_in_seconds?: number;
|
|
38
|
+
skip_prediction?: boolean;
|
|
39
|
+
date?: string;
|
|
40
|
+
number?: string;
|
|
41
|
+
status?: string;
|
|
42
|
+
sequence?: number;
|
|
43
|
+
timezone?: string;
|
|
44
|
+
timerange?: string;
|
|
45
|
+
coordinates?: {
|
|
46
|
+
lat: number;
|
|
47
|
+
lng: number;
|
|
48
|
+
};
|
|
49
|
+
total_weight?: number;
|
|
50
|
+
delivery_type?: string;
|
|
51
|
+
total_items_count?: number;
|
|
52
|
+
delivery_service_level?: string;
|
|
53
|
+
estimated_duration_seconds?: number | null;
|
|
54
|
+
service_area?: {
|
|
55
|
+
name?: ServiceArea;
|
|
56
|
+
};
|
|
57
|
+
start_time?: string | null;
|
|
58
|
+
end_time?: string | null;
|
|
59
|
+
organization_id?: string;
|
|
60
|
+
organization_name?: string | null;
|
|
61
|
+
failed_reason?: string | null;
|
|
62
|
+
incomplete_at?: string | null;
|
|
63
|
+
};
|
|
64
|
+
type RouteAnalysisStatistics = {
|
|
65
|
+
appointments: RouteAnalysisStatisticsAppointment[];
|
|
66
|
+
total_duration_in_seconds: number;
|
|
67
|
+
total_travel_distance_in_meters: number;
|
|
68
|
+
total_weight: number;
|
|
69
|
+
total_items_count: number;
|
|
70
|
+
route_polyline?: number[][];
|
|
71
|
+
};
|
|
72
|
+
export type RouteAnalysis = {
|
|
73
|
+
id: string;
|
|
74
|
+
external_route_id: string;
|
|
75
|
+
analysis: RouteAnalysisStatistics;
|
|
76
|
+
analysis_snapshot: RouteAnalysisStatistics;
|
|
77
|
+
analysis_snapshot_planning?: RouteAnalysisStatistics | null;
|
|
78
|
+
};
|
|
79
|
+
export type RouteAnalysisMap = {
|
|
80
|
+
[routeID: string]: RouteAnalysis;
|
|
81
|
+
};
|
|
82
|
+
export type RouteAnalysisTotal = {
|
|
83
|
+
id: string;
|
|
84
|
+
external_route_id: string;
|
|
85
|
+
total_duration_in_seconds: number;
|
|
86
|
+
total_travel_distance_in_meters: number;
|
|
87
|
+
total_weight_in_grams: number;
|
|
88
|
+
total_items_count: number;
|
|
89
|
+
total_stops_count: number;
|
|
90
|
+
created_at: string;
|
|
91
|
+
updated_at: string;
|
|
92
|
+
route_progress_info?: {
|
|
93
|
+
completed_appointments: number;
|
|
94
|
+
failed_appointments: number;
|
|
95
|
+
total_appointments: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export type RouteAnalysisTotalMap = {
|
|
99
|
+
[routeID: string]: RouteAnalysisTotal;
|
|
100
|
+
};
|
|
101
|
+
export type RoutePolyline = {
|
|
102
|
+
external_route_id: string;
|
|
103
|
+
route_polyline: number[][] | null;
|
|
104
|
+
};
|
|
105
|
+
export type RoutePolylineMap = {
|
|
106
|
+
[routeID: string]: RoutePolyline;
|
|
107
|
+
};
|
|
108
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ServiceArea } from '@secondcloset/types/src/_common';
|
|
2
|
+
|
|
3
|
+
export declare enum JobStatus {
|
|
4
|
+
CREATING_ROUTES = "creating_routes",
|
|
5
|
+
CREATING_DISTANCE_ETAS = "creating_distance_etas",
|
|
6
|
+
ACTIVE = "active",
|
|
7
|
+
COMPLETED = "completed",
|
|
8
|
+
COMPLETED_WITHOUT_STATISTICS = "completed_without_statistics",
|
|
9
|
+
FAILED = "failed",
|
|
10
|
+
CANCELLED = "cancelled"
|
|
11
|
+
}
|
|
12
|
+
export declare const OngoingJobStatus: JobStatus[];
|
|
13
|
+
export type AutomationJobStatisticsAppointment = {
|
|
14
|
+
id: string;
|
|
15
|
+
route_id?: string;
|
|
16
|
+
stop_duration: number;
|
|
17
|
+
timerange?: string;
|
|
18
|
+
ets: string;
|
|
19
|
+
etd: string;
|
|
20
|
+
type: number;
|
|
21
|
+
nextmv_arrival_eta: string;
|
|
22
|
+
nextmv_departure_eta: string;
|
|
23
|
+
google_arrival_eta: string;
|
|
24
|
+
google_departure_eta: string;
|
|
25
|
+
google_duration_in_seconds: number;
|
|
26
|
+
google_travel_duration_in_seconds: number;
|
|
27
|
+
google_travel_distance_in_meters: number;
|
|
28
|
+
duration_in_seconds: number;
|
|
29
|
+
travel_duration_in_seconds: number;
|
|
30
|
+
};
|
|
31
|
+
export type AutomationJobStatistics = {
|
|
32
|
+
vehicle_id: string;
|
|
33
|
+
route_id: string;
|
|
34
|
+
job_id: string;
|
|
35
|
+
appointments: AutomationJobStatisticsAppointment[];
|
|
36
|
+
total_google_duration_in_seconds: number;
|
|
37
|
+
total_google_travel_duration_in_seconds: number;
|
|
38
|
+
total_google_travel_distance_in_meters?: number;
|
|
39
|
+
total_duration_in_seconds: number;
|
|
40
|
+
total_travel_duration_in_seconds: number;
|
|
41
|
+
total_stop_time: number;
|
|
42
|
+
aph: number;
|
|
43
|
+
google_aph: number;
|
|
44
|
+
total_items_count: number;
|
|
45
|
+
total_weight: number;
|
|
46
|
+
};
|
|
47
|
+
export interface AutomateRoutingDtoConfiguration {
|
|
48
|
+
vehicle_penalization: number;
|
|
49
|
+
min_max_factor: number;
|
|
50
|
+
max_stops: number;
|
|
51
|
+
min_stops: number;
|
|
52
|
+
morning_threshold: number;
|
|
53
|
+
afternoon_threshold: number;
|
|
54
|
+
evening_threshold: number;
|
|
55
|
+
wrong_route_length: number;
|
|
56
|
+
timeslot_threshold_penalization: number;
|
|
57
|
+
time_on_road_penalization: number;
|
|
58
|
+
speed_scaling_factor: number;
|
|
59
|
+
dont_use_selector: boolean;
|
|
60
|
+
unassigned_penalty: number;
|
|
61
|
+
route_automation_runtime: number;
|
|
62
|
+
timezone: string;
|
|
63
|
+
limits: {
|
|
64
|
+
[key: number]: number;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface RouteAutomationJob {
|
|
68
|
+
appointment_ids: string[];
|
|
69
|
+
completed_at: string | null;
|
|
70
|
+
created_at: string;
|
|
71
|
+
date: string;
|
|
72
|
+
id: string;
|
|
73
|
+
output: string | null;
|
|
74
|
+
input: {
|
|
75
|
+
configuration: Partial<AutomateRoutingDtoConfiguration>;
|
|
76
|
+
date?: string;
|
|
77
|
+
speed?: number;
|
|
78
|
+
};
|
|
79
|
+
service_area: ServiceArea;
|
|
80
|
+
status: JobStatus;
|
|
81
|
+
updated_at: string;
|
|
82
|
+
vehicle_ids: string[];
|
|
83
|
+
user_id: string;
|
|
84
|
+
user_name: string;
|
|
85
|
+
version: string;
|
|
86
|
+
queue?: {
|
|
87
|
+
count?: number;
|
|
88
|
+
state?: string;
|
|
89
|
+
};
|
|
90
|
+
statistics?: AutomationJobStatistics[];
|
|
91
|
+
total_vehicles_count: number;
|
|
92
|
+
total_assigned_count: number;
|
|
93
|
+
total_unassigned_count: number;
|
|
94
|
+
total_routes_count: number;
|
|
95
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var E = /* @__PURE__ */ ((e) => (e.CREATING_ROUTES = "creating_routes", e.CREATING_DISTANCE_ETAS = "creating_distance_etas", e.ACTIVE = "active", e.COMPLETED = "completed", e.COMPLETED_WITHOUT_STATISTICS = "completed_without_statistics", e.FAILED = "failed", e.CANCELLED = "cancelled", e))(E || {});
|
|
2
|
+
const T = [
|
|
3
|
+
"active",
|
|
4
|
+
"creating_routes"
|
|
5
|
+
/* CREATING_ROUTES */
|
|
6
|
+
];
|
|
7
|
+
export {
|
|
8
|
+
E as JobStatus,
|
|
9
|
+
T as OngoingJobStatus
|
|
10
|
+
};
|