@prefecthq/prefect-ui-library 2.9.18 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FlowRunsPageWithDefaultFilter-69VsEaxY.mjs → FlowRunsPageWithDefaultFilter-C6ZDBABX.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-69VsEaxY.mjs.map → FlowRunsPageWithDefaultFilter-C6ZDBABX.mjs.map} +1 -1
- package/dist/{index-CsOfQPaS.mjs → index-CIX59mKM.mjs} +225 -189
- package/dist/{index-CsOfQPaS.mjs.map → index-CIX59mKM.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +2 -2
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/automations/components/AutomationTriggerCustomInput.vue.d.ts +5 -6
- package/dist/types/src/automations/components/AutomationTriggerDeploymentStatusInput.vue.d.ts +5 -6
- package/dist/types/src/automations/components/AutomationTriggerEventInput.vue.d.ts +9 -10
- package/dist/types/src/automations/components/AutomationTriggerFlowRunStateInput.vue.d.ts +5 -6
- package/dist/types/src/automations/components/AutomationTriggerWorkPoolStatusInput.vue.d.ts +5 -6
- package/dist/types/src/automations/components/AutomationTriggerWorkQueueStatusInput.vue.d.ts +5 -6
- package/dist/types/src/automations/components/AutomationWithinInput.vue.d.ts +9 -10
- package/dist/types/src/components/EventResourceCombobox.vue.d.ts +9 -12
- package/dist/types/src/components/FlowRunJobVariableOverridesLabeledInput.vue.d.ts +5 -6
- package/dist/types/src/components/FlowRunResumeModal.vue.d.ts +7 -9
- package/dist/types/src/components/FlowRunStateTypeCount.vue.d.ts +2 -2
- package/dist/types/src/components/FlowRunStateTypeEmpty.vue.d.ts +2 -2
- package/dist/types/src/components/FlowRunStateTypeTabDescription.vue.d.ts +2 -2
- package/dist/types/src/components/FlowRunsAccordion.vue.d.ts +2 -2
- package/dist/types/src/components/JobVariableOverridesInput.vue.d.ts +5 -6
- package/dist/types/src/components/LogLevelLabel.vue.d.ts +2 -2
- package/dist/types/src/components/LogLevelSelect.vue.d.ts +4 -4
- package/dist/types/src/components/NotificationStatusSelect.vue.d.ts +4 -4
- package/dist/types/src/components/SearchInput.vue.d.ts +3 -3
- package/dist/types/src/components/StateIcon.vue.d.ts +2 -2
- package/dist/types/src/components/StateListItem.vue.d.ts +2 -2
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/maps/index.d.ts +2 -2
- package/dist/types/src/mocks/index.d.ts +3 -3
- package/dist/types/src/models/StateType.d.ts +1 -1
- package/dist/types/src/schemas/components/SchemaForm.vue.d.ts +6 -6
- package/dist/types/src/schemas/components/SchemaFormProperty.vue.d.ts +1 -1
- package/dist/types/src/schemas/components/SchemaFormPropertyBoolean.vue.d.ts +8 -13
- package/dist/types/src/schemas/components/SchemaFormPropertyMenu.vue.d.ts +12 -15
- package/dist/types/src/schemas/components/SchemaInput.vue.d.ts +6 -6
- package/dist/types/src/schemas/types/schemaValues.d.ts +1 -1
- package/dist/types/src/services/Mapper.d.ts +2 -2
- package/dist/types/src/services/Mocker.d.ts +3 -3
- package/dist/types/src/tailwind.config.d.ts +14 -0
- package/dist/types/tailwind.config.d.ts +100 -0
- package/dist/types/vite.config.d.mts +2 -0
- package/package.json +11 -9
- package/src/automations/components/AutomationActionChangeFlowRunStateInput.vue +71 -0
- package/src/automations/components/AutomationActionDescription.vue +78 -0
- package/src/automations/components/AutomationActionDescriptionChangeFlowRunState.vue +36 -0
- package/src/automations/components/AutomationActionDescriptionDefault.vue +13 -0
- package/src/automations/components/AutomationActionDescriptionPauseResumeAutomation.vue +32 -0
- package/src/automations/components/AutomationActionDescriptionPauseResumeDeployment.vue +32 -0
- package/src/automations/components/AutomationActionDescriptionPauseResumeWorkPool.vue +37 -0
- package/src/automations/components/AutomationActionDescriptionPauseResumeWorkQueue.vue +36 -0
- package/src/automations/components/AutomationActionDescriptionRunDeployment.vue +73 -0
- package/src/automations/components/AutomationActionDescriptionSuspendCancelFlowRun.vue +16 -0
- package/src/automations/components/AutomationActionInput.vue +112 -0
- package/src/automations/components/AutomationActionPauseAutomationInput.vue +32 -0
- package/src/automations/components/AutomationActionPauseDeploymentInput.vue +32 -0
- package/src/automations/components/AutomationActionPauseWorkPoolInput.vue +32 -0
- package/src/automations/components/AutomationActionPauseWorkQueueInput.vue +32 -0
- package/src/automations/components/AutomationActionResumeAutomationInput.vue +32 -0
- package/src/automations/components/AutomationActionResumeDeploymentInput.vue +32 -0
- package/src/automations/components/AutomationActionResumeWorkPoolInput.vue +32 -0
- package/src/automations/components/AutomationActionResumeWorkQueueInput.vue +32 -0
- package/src/automations/components/AutomationActionRunDeploymentInput.vue +99 -0
- package/src/automations/components/AutomationActionRunDeploymentParameters.vue +82 -0
- package/src/automations/components/AutomationActionSendNotificationInput.vue +108 -0
- package/src/automations/components/AutomationAutomationCombobox.vue +31 -0
- package/src/automations/components/AutomationCombobox.vue +67 -0
- package/src/automations/components/AutomationDeploymentCombobox.vue +31 -0
- package/src/automations/components/AutomationIconText.vue +22 -0
- package/src/automations/components/AutomationMenu.vue +67 -0
- package/src/automations/components/AutomationToggle.vue +52 -0
- package/src/automations/components/AutomationTriggerCustomInput.vue +183 -0
- package/src/automations/components/AutomationTriggerDeploymentStatusInput.vue +64 -0
- package/src/automations/components/AutomationTriggerDescription.vue +27 -0
- package/src/automations/components/AutomationTriggerEventInput.vue +62 -0
- package/src/automations/components/AutomationTriggerEventPostureSelect.vue +35 -0
- package/src/automations/components/AutomationTriggerFlowRunStateInput.vue +83 -0
- package/src/automations/components/AutomationTriggerWorkPoolStatusInput.vue +64 -0
- package/src/automations/components/AutomationTriggerWorkQueueStatusInput.vue +72 -0
- package/src/automations/components/AutomationWithinInput.vue +77 -0
- package/src/automations/components/AutomationWorkPoolCombobox.vue +79 -0
- package/src/automations/components/AutomationWorkQueueCombobox.vue +40 -0
- package/src/automations/components/AutomationsPageEmptyState.vue +33 -0
- package/src/automations/components/index.ts +10 -0
- package/src/automations/compositions/index.ts +1 -0
- package/src/automations/compositions/useCreateAutomationQueryParams.ts +94 -0
- package/src/automations/defaultActionValues.ts +89 -0
- package/src/automations/defaultTriggerValues.ts +56 -0
- package/src/automations/index.ts +5 -0
- package/src/automations/maps/actions.ts +243 -0
- package/src/automations/maps/automations.ts +7 -0
- package/src/automations/maps/createAutomationQuery.ts +60 -0
- package/src/automations/maps/deploymentStatusTrigger.ts +95 -0
- package/src/automations/maps/event.ts +62 -0
- package/src/automations/maps/flowRunStateTrigger.ts +73 -0
- package/src/automations/maps/triggers.ts +94 -0
- package/src/automations/maps/utilities.ts +132 -0
- package/src/automations/maps/workPoolStatusTrigger.ts +106 -0
- package/src/automations/maps/workQueueStatusTrigger.ts +106 -0
- package/src/automations/types/actions.ts +325 -0
- package/src/automations/types/api/actions.ts +194 -0
- package/src/automations/types/api/automation.ts +6 -0
- package/src/automations/types/api/triggers.ts +54 -0
- package/src/automations/types/automation.ts +20 -0
- package/src/automations/types/automationTriggerEvent.ts +47 -0
- package/src/automations/types/createAutomationQuery.ts +50 -0
- package/src/automations/types/deploymentStatusTrigger.ts +27 -0
- package/src/automations/types/filter.ts +7 -0
- package/src/automations/types/flowRunStateTrigger.ts +51 -0
- package/src/automations/types/index.ts +63 -0
- package/src/automations/types/triggerTemplates.ts +47 -0
- package/src/automations/types/triggers.ts +12 -0
- package/src/automations/types/workPoolStatusTrigger.ts +24 -0
- package/src/automations/types/workQueueStatusTrigger.ts +26 -0
- package/src/components/.eslintrc.json +5 -0
- package/src/components/ActivityChart.vue +79 -0
- package/src/components/ArtifactCard.vue +231 -0
- package/src/components/ArtifactCollections.vue +127 -0
- package/src/components/ArtifactCollectionsEmptyState.vue +25 -0
- package/src/components/ArtifactDataMarkdown.vue +21 -0
- package/src/components/ArtifactDataRaw.vue +51 -0
- package/src/components/ArtifactDataResult.vue +25 -0
- package/src/components/ArtifactDataTable.vue +129 -0
- package/src/components/ArtifactDataUnknown.vue +23 -0
- package/src/components/ArtifactDataView.vue +36 -0
- package/src/components/ArtifactDescription.vue +22 -0
- package/src/components/ArtifactDetails.vue +142 -0
- package/src/components/ArtifactKeyIconText.vue +25 -0
- package/src/components/ArtifactMenu.vue +23 -0
- package/src/components/ArtifactResultCard.vue +81 -0
- package/src/components/ArtifactTimeline.vue +184 -0
- package/src/components/ArtifactTimelineItemContent.vue +180 -0
- package/src/components/ArtifactTimelineItemDate.vue +58 -0
- package/src/components/ArtifactTypeSelect.vue +32 -0
- package/src/components/BetaBadge.vue +18 -0
- package/src/components/BlockCapabilityBlockDocumentInput.vue +170 -0
- package/src/components/BlockCreateModal.vue +102 -0
- package/src/components/BlockDocument.vue +21 -0
- package/src/components/BlockDocumentCard.vue +49 -0
- package/src/components/BlockDocumentCombobox.vue +49 -0
- package/src/components/BlockDocumentInput.vue +69 -0
- package/src/components/BlockDocumentKeyValue.vue +27 -0
- package/src/components/BlockDocumentMenu.vue +58 -0
- package/src/components/BlockDocumentsTable.vue +233 -0
- package/src/components/BlockIconText.vue +22 -0
- package/src/components/BlockSchemaCapabilities.vue +16 -0
- package/src/components/BlockSchemaCapabilitySelect.vue +53 -0
- package/src/components/BlockSchemaCreateForm.vue +90 -0
- package/src/components/BlockSchemaEditForm.vue +48 -0
- package/src/components/BlockTypeCard.vue +79 -0
- package/src/components/BlockTypeCardLayout.vue +48 -0
- package/src/components/BlockTypeCardPreview.vue +81 -0
- package/src/components/BlockTypeList.vue +135 -0
- package/src/components/BlockTypeSelect.vue +52 -0
- package/src/components/BlockTypeSnippet.vue +22 -0
- package/src/components/BlocksDeleteButton.vue +52 -0
- package/src/components/BlocksPageEmptyState.vue +34 -0
- package/src/components/CodeBanner.vue +64 -0
- package/src/components/CollectionCardPreview.vue +68 -0
- package/src/components/CollectionItemCard.vue +53 -0
- package/src/components/CollectionsList.vue +99 -0
- package/src/components/ColorModeSelect.vue +41 -0
- package/src/components/ColorModeSelectOption.vue +86 -0
- package/src/components/ConcurrencyLimitActiveRuns.vue +31 -0
- package/src/components/ConcurrencyLimitDetails.vue +36 -0
- package/src/components/ConcurrencyLimitMenu.vue +51 -0
- package/src/components/ConcurrencyLimitResetModal.vue +61 -0
- package/src/components/ConcurrencyLimitV2Menu.vue +51 -0
- package/src/components/ConcurrencyLimitV2Toggle.vue +59 -0
- package/src/components/ConcurrencyLimitsCreateModal.vue +78 -0
- package/src/components/ConcurrencyLimitsPageEmptyState.vue +37 -0
- package/src/components/ConcurrencyLimitsTable.vue +65 -0
- package/src/components/ConcurrencyLimitsV2CreateModal.vue +114 -0
- package/src/components/ConcurrencyLimitsV2EmptyState.vue +36 -0
- package/src/components/ConcurrencyLimitsV2Table.vue +78 -0
- package/src/components/ConcurrencyLimitsV2UpdateModal.vue +119 -0
- package/src/components/ConcurrencyTableActiveSlots.vue +18 -0
- package/src/components/ConfirmDeleteModal.vue +71 -0
- package/src/components/ConfirmDeleteModalWithSlot.vue +30 -0
- package/src/components/ConfirmStateChangeModal.vue +92 -0
- package/src/components/CopyOverflowMenuItem.vue +13 -0
- package/src/components/CopyableWrapper.vue +38 -0
- package/src/components/CronScheduleForm.vue +168 -0
- package/src/components/CumulativeTaskRunsCard.vue +275 -0
- package/src/components/DashboardWorkPoolCard.vue +116 -0
- package/src/components/DashboardWorkPoolCardDetail.vue +28 -0
- package/src/components/DashboardWorkPoolFlowRunCompleteness.vue +118 -0
- package/src/components/DashboardWorkPoolFlowRunsTotal.vue +35 -0
- package/src/components/DashboardWorkPoolLateCount.vue +48 -0
- package/src/components/DashboardWorkPoolsCard.vue +72 -0
- package/src/components/DateInput.vue +57 -0
- package/src/components/DateRangeInput.vue +54 -0
- package/src/components/DateRangeInputWithFlowRunHistory.vue +125 -0
- package/src/components/DateRangeSelect.vue +47 -0
- package/src/components/DayOrDescriptionModal.vue +10 -0
- package/src/components/DeploymentCombobox.vue +83 -0
- package/src/components/DeploymentComboboxOption.vue +35 -0
- package/src/components/DeploymentConfiguration.vue +32 -0
- package/src/components/DeploymentCustomRunOverflowMenuItem.vue +20 -0
- package/src/components/DeploymentDeprecatedMessage.vue +31 -0
- package/src/components/DeploymentDescription.vue +9 -0
- package/src/components/DeploymentDescriptionEmptyState.vue +37 -0
- package/src/components/DeploymentDetails.vue +138 -0
- package/src/components/DeploymentForm.vue +160 -0
- package/src/components/DeploymentFormV2.vue +166 -0
- package/src/components/DeploymentIconText.vue +24 -0
- package/src/components/DeploymentList.vue +309 -0
- package/src/components/DeploymentMenu.vue +63 -0
- package/src/components/DeploymentQuickRunOverflowMenuItem.vue +61 -0
- package/src/components/DeploymentRelationships.vue +38 -0
- package/src/components/DeploymentScheduleCard.vue +72 -0
- package/src/components/DeploymentScheduleMenu.vue +83 -0
- package/src/components/DeploymentScheduleTags.vue +52 -0
- package/src/components/DeploymentScheduleToggle.vue +52 -0
- package/src/components/DeploymentSchedulesFieldset.vue +41 -0
- package/src/components/DeploymentStatusBadge.vue +42 -0
- package/src/components/DeploymentStatusIcon.vue +36 -0
- package/src/components/DeploymentStatusSelect.vue +35 -0
- package/src/components/DeploymentTagsInput.vue +45 -0
- package/src/components/DeploymentToggle.vue +57 -0
- package/src/components/DeploymentsCount.vue +35 -0
- package/src/components/DeploymentsDeleteButton.vue +60 -0
- package/src/components/DeploymentsList.vue +274 -0
- package/src/components/DeploymentsPageEmptyState.vue +29 -0
- package/src/components/DocumentationButton.vue +13 -0
- package/src/components/DurationIconText.vue +16 -0
- package/src/components/DurationInput.vue +78 -0
- package/src/components/EventResourceCombobox.vue +100 -0
- package/src/components/EventsCombobox.vue +87 -0
- package/src/components/ExtraInfoModal.vue +48 -0
- package/src/components/ExtraInfoTooltip.vue +22 -0
- package/src/components/FlowActivityChart.vue +46 -0
- package/src/components/FlowCombobox.vue +75 -0
- package/src/components/FlowDetails.vue +28 -0
- package/src/components/FlowIconText.vue +24 -0
- package/src/components/FlowList.vue +215 -0
- package/src/components/FlowMenu.vue +44 -0
- package/src/components/FlowPopover.vue +74 -0
- package/src/components/FlowRouterLink.vue +62 -0
- package/src/components/FlowRunArtifacts.vue +130 -0
- package/src/components/FlowRunBreadCrumbs.vue +56 -0
- package/src/components/FlowRunCancelButton.vue +52 -0
- package/src/components/FlowRunCancelModal.vue +87 -0
- package/src/components/FlowRunCreateFormTags.vue +29 -0
- package/src/components/FlowRunCreateFormV2.vue +196 -0
- package/src/components/FlowRunCreateFormWhen.vue +38 -0
- package/src/components/FlowRunCreateFormWorkQueueCombobox.vue +33 -0
- package/src/components/FlowRunDeployment.vue +22 -0
- package/src/components/FlowRunDetails.vue +82 -0
- package/src/components/FlowRunFilteredList.vue +92 -0
- package/src/components/FlowRunFlow.vue +20 -0
- package/src/components/FlowRunGraph.vue +192 -0
- package/src/components/FlowRunGraphArtifactCard.vue +23 -0
- package/src/components/FlowRunGraphArtifactDrawer.vue +118 -0
- package/src/components/FlowRunGraphArtifactsPopover.vue +48 -0
- package/src/components/FlowRunGraphConfirmation.vue +57 -0
- package/src/components/FlowRunGraphPopover.vue +66 -0
- package/src/components/FlowRunGraphSelectionPanel.vue +40 -0
- package/src/components/FlowRunGraphStatePopover.vue +53 -0
- package/src/components/FlowRunHistoryCard.vue +49 -0
- package/src/components/FlowRunIconText.vue +21 -0
- package/src/components/FlowRunJobVariableOverridesLabeledInput.vue +39 -0
- package/src/components/FlowRunList.vue +42 -0
- package/src/components/FlowRunListItem.vue +100 -0
- package/src/components/FlowRunLogs.vue +93 -0
- package/src/components/FlowRunMenu.vue +159 -0
- package/src/components/FlowRunName.vue +40 -0
- package/src/components/FlowRunNameInput.vue +39 -0
- package/src/components/FlowRunParentFlowRun.vue +36 -0
- package/src/components/FlowRunPopOver.vue +88 -0
- package/src/components/FlowRunPopOverContent.vue +71 -0
- package/src/components/FlowRunResults.vue +110 -0
- package/src/components/FlowRunResumeButton.vue +35 -0
- package/src/components/FlowRunResumeModal.vue +100 -0
- package/src/components/FlowRunRetryButton.vue +40 -0
- package/src/components/FlowRunRetryModal.vue +72 -0
- package/src/components/FlowRunStartTime.vue +24 -0
- package/src/components/FlowRunStateTypeCount.vue +72 -0
- package/src/components/FlowRunStateTypeEmpty.vue +83 -0
- package/src/components/FlowRunStateTypeEmptyAwaitingImage.vue +247 -0
- package/src/components/FlowRunStateTypeEmptyBadTerminalImage.vue +292 -0
- package/src/components/FlowRunStateTypeEmptyGoodTerminalImage.vue +292 -0
- package/src/components/FlowRunStateTypeEmptyLiveImage.vue +337 -0
- package/src/components/FlowRunStateTypeTabDescription.vue +63 -0
- package/src/components/FlowRunStateTypeTabs.vue +81 -0
- package/src/components/FlowRunSuspendButton.vue +36 -0
- package/src/components/FlowRunSuspendModal.vue +91 -0
- package/src/components/FlowRunTagsInput.vue +45 -0
- package/src/components/FlowRunTaskCounts.vue +48 -0
- package/src/components/FlowRunTaskRuns.vue +97 -0
- package/src/components/FlowRunTimelineSubFlowRunDetails.vue +85 -0
- package/src/components/FlowRunTimelineTaskDetails.vue +61 -0
- package/src/components/FlowRunWorkPool.vue +19 -0
- package/src/components/FlowRunWorkQueue.vue +49 -0
- package/src/components/FlowRunsAccordion.vue +69 -0
- package/src/components/FlowRunsAccordionContent.vue +49 -0
- package/src/components/FlowRunsAccordionHeader.vue +93 -0
- package/src/components/FlowRunsBarChart.vue +217 -0
- package/src/components/FlowRunsDeleteButton.vue +66 -0
- package/src/components/FlowRunsFilterGroup.vue +110 -0
- package/src/components/FlowRunsPageEmptyState.vue +29 -0
- package/src/components/FlowRunsPageWithDefaultFilter.vue +55 -0
- package/src/components/FlowRunsScatterPlot.vue +92 -0
- package/src/components/FlowRunsSort.vue +33 -0
- package/src/components/FlowsDeleteButton.vue +60 -0
- package/src/components/FlowsFilterGroup.vue +118 -0
- package/src/components/FlowsPageEmptyState.vue +45 -0
- package/src/components/FormattedDate.vue +59 -0
- package/src/components/FourZeroFour.vue +384 -0
- package/src/components/IconTextCount.vue +34 -0
- package/src/components/IntervalScheduleForm.vue +161 -0
- package/src/components/JobVariableOverridesInput.vue +24 -0
- package/src/components/JsonInput.vue +75 -0
- package/src/components/LastFlowRun.vue +18 -0
- package/src/components/LogLevelLabel.vue +66 -0
- package/src/components/LogLevelSelect.vue +38 -0
- package/src/components/LogRow.vue +105 -0
- package/src/components/LogoImage.vue +46 -0
- package/src/components/LogsContainer.vue +91 -0
- package/src/components/LogsSort.vue +30 -0
- package/src/components/MarketingBanner.vue +88 -0
- package/src/components/MiniDeploymentHistory.vue +25 -0
- package/src/components/MiniFlowHistory.vue +26 -0
- package/src/components/NextFlowRun.vue +18 -0
- package/src/components/NotificationDetails.vue +104 -0
- package/src/components/NotificationForm.vue +241 -0
- package/src/components/NotificationMenu.vue +53 -0
- package/src/components/NotificationStatusSelect.vue +31 -0
- package/src/components/NotificationToggle.vue +59 -0
- package/src/components/NotificationsPageEmptyState.vue +41 -0
- package/src/components/NotificationsTable.vue +119 -0
- package/src/components/PageHeading.vue +89 -0
- package/src/components/PageHeadingAccountSettings.vue +9 -0
- package/src/components/PageHeadingApiKeys.vue +14 -0
- package/src/components/PageHeadingArtifact.vue +62 -0
- package/src/components/PageHeadingArtifactKey.vue +41 -0
- package/src/components/PageHeadingArtifacts.vue +11 -0
- package/src/components/PageHeadingBlock.vue +30 -0
- package/src/components/PageHeadingBlockEdit.vue +22 -0
- package/src/components/PageHeadingBlocks.vue +18 -0
- package/src/components/PageHeadingBlocksCatalog.vue +27 -0
- package/src/components/PageHeadingBlocksCatalogCreate.vue +24 -0
- package/src/components/PageHeadingBlocksCatalogView.vue +23 -0
- package/src/components/PageHeadingConcurrencyLimit.vue +32 -0
- package/src/components/PageHeadingConcurrencyLimits.vue +18 -0
- package/src/components/PageHeadingDeployment.vue +41 -0
- package/src/components/PageHeadingDeploymentEdit.vue +22 -0
- package/src/components/PageHeadingDeployments.vue +13 -0
- package/src/components/PageHeadingFlow.vue +34 -0
- package/src/components/PageHeadingFlowCollection.vue +22 -0
- package/src/components/PageHeadingFlowCollections.vue +15 -0
- package/src/components/PageHeadingFlowRun.vue +134 -0
- package/src/components/PageHeadingFlowRunCreate.vue +28 -0
- package/src/components/PageHeadingFlowRuns.vue +34 -0
- package/src/components/PageHeadingFlows.vue +8 -0
- package/src/components/PageHeadingNotificationCreate.vue +9 -0
- package/src/components/PageHeadingNotificationEdit.vue +15 -0
- package/src/components/PageHeadingNotifications.vue +18 -0
- package/src/components/PageHeadingTaskRun.vue +106 -0
- package/src/components/PageHeadingVariables.vue +23 -0
- package/src/components/PageHeadingWorkPool.vue +39 -0
- package/src/components/PageHeadingWorkPoolCreate.vue +15 -0
- package/src/components/PageHeadingWorkPoolEdit.vue +22 -0
- package/src/components/PageHeadingWorkPoolQueue.vue +40 -0
- package/src/components/PageHeadingWorkPoolQueueCreate.vue +21 -0
- package/src/components/PageHeadingWorkPoolQueueEdit.vue +23 -0
- package/src/components/PageHeadingWorkPools.vue +22 -0
- package/src/components/PageHeadingWorkQueue.vue +42 -0
- package/src/components/PageHeadingWorkQueueCreate.vue +15 -0
- package/src/components/PageHeadingWorkQueueEdit.vue +22 -0
- package/src/components/PageHeadingWorkQueues.vue +18 -0
- package/src/components/PageHeadingWorkspaceSettings.vue +9 -0
- package/src/components/ParametersTable.vue +96 -0
- package/src/components/ProcessTypeBadge.vue +19 -0
- package/src/components/QuickRunParametersModal.vue +91 -0
- package/src/components/ResultsCount.vue +25 -0
- package/src/components/RowGridLayoutList.vue +53 -0
- package/src/components/RunMenu.vue +68 -0
- package/src/components/SaveFilterModal.vue +83 -0
- package/src/components/SavedFilters.vue +90 -0
- package/src/components/SavedFiltersDeleteModal.vue +54 -0
- package/src/components/SavedFiltersMenu.vue +110 -0
- package/src/components/ScheduleFieldset.vue +80 -0
- package/src/components/ScheduleFormModal.vue +129 -0
- package/src/components/SchemaForm.vue +42 -0
- package/src/components/SchemaFormFields.vue +31 -0
- package/src/components/SchemaFormFieldsWithValues.vue +47 -0
- package/src/components/SchemaFormInput.vue +72 -0
- package/src/components/SchemaFormProperties.vue +29 -0
- package/src/components/SchemaFormProperty.vue +45 -0
- package/src/components/SchemaFormPropertyAllOf.vue +17 -0
- package/src/components/SchemaFormPropertyAnyOf.vue +71 -0
- package/src/components/SchemaInput.vue +152 -0
- package/src/components/SchemaPropertiesKeyValues.vue +28 -0
- package/src/components/SchemaPropertyBlockKeyValue.vue +39 -0
- package/src/components/SchemaPropertyKeyValue.vue +58 -0
- package/src/components/SearchInput.vue +60 -0
- package/src/components/SelectedCount.vue +33 -0
- package/src/components/SeparatedList.vue +57 -0
- package/src/components/StateBadge.vue +56 -0
- package/src/components/StateIcon.vue +32 -0
- package/src/components/StateListItem.vue +200 -0
- package/src/components/StateNameSelect.vue +146 -0
- package/src/components/StateSelect.vue +87 -0
- package/src/components/StatisticKeyValue.vue +48 -0
- package/src/components/StatusIcon.vue +26 -0
- package/src/components/SubmitButton.vue +15 -0
- package/src/components/TaskRunArtifacts.vue +87 -0
- package/src/components/TaskRunDetails.vue +107 -0
- package/src/components/TaskRunIconText.vue +22 -0
- package/src/components/TaskRunList.vue +38 -0
- package/src/components/TaskRunListItem.vue +80 -0
- package/src/components/TaskRunLogs.vue +82 -0
- package/src/components/TaskRunTagsInput.vue +44 -0
- package/src/components/TaskRunsSort.vue +31 -0
- package/src/components/TimeSpanFilter.vue +29 -0
- package/src/components/TimezoneSelect.vue +80 -0
- package/src/components/ToastFlowRunCreate.vue +59 -0
- package/src/components/ToastParameterValidationError.vue +7 -0
- package/src/components/UseDeploymentSlot.vue +13 -0
- package/src/components/UseFlowSlot.vue +13 -0
- package/src/components/VariableCreateModal.vue +135 -0
- package/src/components/VariableEditModal.vue +134 -0
- package/src/components/VariableMenu.vue +69 -0
- package/src/components/VariableTagsInput.vue +44 -0
- package/src/components/VariablesDeleteButton.vue +54 -0
- package/src/components/VariablesPageEmptyState.vue +45 -0
- package/src/components/VariablesTable.vue +203 -0
- package/src/components/ViewModeButtonGroup.vue +13 -0
- package/src/components/WorkPoolAverageLateTime.vue +41 -0
- package/src/components/WorkPoolBaseJobTemplateFormSection.vue +121 -0
- package/src/components/WorkPoolCard.vue +121 -0
- package/src/components/WorkPoolCombobox.vue +68 -0
- package/src/components/WorkPoolCreateWizard.vue +78 -0
- package/src/components/WorkPoolCreateWizardStepInformation.vue +62 -0
- package/src/components/WorkPoolCreateWizardStepInfrastructureConfiguration.vue +66 -0
- package/src/components/WorkPoolCreateWizardStepInfrastructureType.vue +117 -0
- package/src/components/WorkPoolDetails.vue +72 -0
- package/src/components/WorkPoolEditForm.vue +101 -0
- package/src/components/WorkPoolIconText.vue +22 -0
- package/src/components/WorkPoolLastPolled.vue +30 -0
- package/src/components/WorkPoolLateIndicator.vue +31 -0
- package/src/components/WorkPoolList.vue +26 -0
- package/src/components/WorkPoolMenu.vue +55 -0
- package/src/components/WorkPoolQueueCombobox.vue +77 -0
- package/src/components/WorkPoolQueueCreateForm.vue +116 -0
- package/src/components/WorkPoolQueueDetails.vue +77 -0
- package/src/components/WorkPoolQueueEditForm.vue +115 -0
- package/src/components/WorkPoolQueueHealthIcon.vue +79 -0
- package/src/components/WorkPoolQueueMenu.vue +59 -0
- package/src/components/WorkPoolQueuePriorityLabel.vue +12 -0
- package/src/components/WorkPoolQueueStatusArray.vue +74 -0
- package/src/components/WorkPoolQueueStatusBadge.vue +70 -0
- package/src/components/WorkPoolQueueStatusIcon.vue +63 -0
- package/src/components/WorkPoolQueueToggle.vue +61 -0
- package/src/components/WorkPoolQueueUpcomingFlowRunsList.vue +55 -0
- package/src/components/WorkPoolQueuesDeleteButton.vue +67 -0
- package/src/components/WorkPoolQueuesTable.vue +127 -0
- package/src/components/WorkPoolStatusBadge.vue +18 -0
- package/src/components/WorkPoolStatusIcon.vue +51 -0
- package/src/components/WorkPoolStatusSelect.vue +36 -0
- package/src/components/WorkPoolToggle.vue +56 -0
- package/src/components/WorkPoolTypeSelect.vue +46 -0
- package/src/components/WorkPools.vue +63 -0
- package/src/components/WorkPoolsPageEmptyState.vue +40 -0
- package/src/components/WorkQueueCombobox.vue +120 -0
- package/src/components/WorkQueueCreateForm.vue +95 -0
- package/src/components/WorkQueueDetails.vue +90 -0
- package/src/components/WorkQueueEditForm.vue +101 -0
- package/src/components/WorkQueueFlowRunsList.vue +44 -0
- package/src/components/WorkQueueIconText.vue +62 -0
- package/src/components/WorkQueueLastPolled.vue +19 -0
- package/src/components/WorkQueueLateIndicator.vue +29 -0
- package/src/components/WorkQueueMenu.vue +69 -0
- package/src/components/WorkQueueStatusBadge.vue +48 -0
- package/src/components/WorkQueueStatusIcon.vue +43 -0
- package/src/components/WorkQueueStatusSelect.vue +35 -0
- package/src/components/WorkQueueToggle.vue +69 -0
- package/src/components/WorkQueuesDeleteButton.vue +66 -0
- package/src/components/WorkQueuesPageEmptyState.vue +42 -0
- package/src/components/WorkQueuesTable.vue +146 -0
- package/src/components/WorkerStatusBadge.vue +21 -0
- package/src/components/WorkersLateIndicator.vue +52 -0
- package/src/components/WorkersTable.vue +151 -0
- package/src/components/WorkspaceDashboardFlowRunsCard.vue +53 -0
- package/src/components/WorkspaceVariableCombobox.vue +64 -0
- package/src/components/index.ts +332 -0
- package/src/compositions/filters.ts +700 -0
- package/src/compositions/index.ts +63 -0
- package/src/compositions/useArtifact.ts +37 -0
- package/src/compositions/useArtifactCollection.ts +37 -0
- package/src/compositions/useBlockDocument.ts +37 -0
- package/src/compositions/useBlockDocuments.ts +45 -0
- package/src/compositions/useBlockSchema.ts +53 -0
- package/src/compositions/useBlockType.ts +54 -0
- package/src/compositions/useCan.ts +6 -0
- package/src/compositions/useComponent.ts +12 -0
- package/src/compositions/useDashboardSubscriptionOptions.ts +7 -0
- package/src/compositions/useDateRangeSelectValue.ts +135 -0
- package/src/compositions/useDefaultSavedSearchFilter.ts +40 -0
- package/src/compositions/useDeployment.ts +37 -0
- package/src/compositions/useDeployments.ts +45 -0
- package/src/compositions/useDeploymentsCount.ts +41 -0
- package/src/compositions/useFavicon.ts +42 -0
- package/src/compositions/useFilterPagination.ts +22 -0
- package/src/compositions/useFlow.ts +37 -0
- package/src/compositions/useFlowRun.ts +39 -0
- package/src/compositions/useFlowRunCompleteness.ts +62 -0
- package/src/compositions/useFlowRunFavicon.ts +20 -0
- package/src/compositions/useFlowRuns.ts +46 -0
- package/src/compositions/useFlowRunsAverageLateness.ts +35 -0
- package/src/compositions/useFlowRunsCount.ts +45 -0
- package/src/compositions/useFlows.ts +45 -0
- package/src/compositions/useFlowsCount.ts +41 -0
- package/src/compositions/useForm.ts +29 -0
- package/src/compositions/useInterval.ts +10 -0
- package/src/compositions/useJsonRecord.ts +47 -0
- package/src/compositions/useLastFlowRun.ts +39 -0
- package/src/compositions/useLogsSort.ts +34 -0
- package/src/compositions/useNextFlowRun.ts +41 -0
- package/src/compositions/useOptionalPropertiesSchema.ts +23 -0
- package/src/compositions/useOptionalRules.ts +9 -0
- package/src/compositions/usePaginatedSubscription.ts +102 -0
- package/src/compositions/usePagination.spec.ts +8 -0
- package/src/compositions/usePagination.ts +213 -0
- package/src/compositions/useReactiveField.ts +21 -0
- package/src/compositions/useReactiveForm.ts +23 -0
- package/src/compositions/useSavedFlowRunsSearches.ts +66 -0
- package/src/compositions/useScrollLinking.ts +63 -0
- package/src/compositions/useShowModal.ts +29 -0
- package/src/compositions/useStatePolling.ts +33 -0
- package/src/compositions/useSubscriptions.ts +52 -0
- package/src/compositions/useTabs.ts +38 -0
- package/src/compositions/useTaskRun.ts +37 -0
- package/src/compositions/useTaskRunFavicon.ts +20 -0
- package/src/compositions/useTaskRunResult.ts +47 -0
- package/src/compositions/useTaskRuns.ts +46 -0
- package/src/compositions/useTaskRunsCount.ts +58 -0
- package/src/compositions/useTaskRunsHistory.ts +45 -0
- package/src/compositions/useThemeTokens.ts +119 -0
- package/src/compositions/useVariable.ts +37 -0
- package/src/compositions/useVariables.ts +62 -0
- package/src/compositions/useWorkPool.ts +38 -0
- package/src/compositions/useWorkPoolById.ts +38 -0
- package/src/compositions/useWorkPoolLastPolled.ts +60 -0
- package/src/compositions/useWorkPoolQueue.ts +37 -0
- package/src/compositions/useWorkPoolsCount.ts +34 -0
- package/src/compositions/useWorkQueueStatus.ts +37 -0
- package/src/compositions/useWorkspaceApi.ts +6 -0
- package/src/compositions/useWorkspaceDashboardFilter.ts +26 -0
- package/src/compositions/useWorkspaceEvent.ts +32 -0
- package/src/compositions/useWorkspaceEventsSubscription.ts +73 -0
- package/src/compositions/useWorkspaceFlowRunDashboardFilter.ts +59 -0
- package/src/compositions/useWorkspaceRoutes.ts +7 -0
- package/src/date.d.ts +3 -0
- package/src/formatters/BlockDocumentSortValuesParam.ts +21 -0
- package/src/formatters/DateRangeSelectAroundPeriodParam.ts +21 -0
- package/src/formatters/DateRangeSelectAroundUnitParam.ts +21 -0
- package/src/formatters/DateRangeSelectTypeParam.ts +21 -0
- package/src/formatters/DeploymentSortValuesSortParam.ts +21 -0
- package/src/formatters/DeploymentStatusRouteParam.ts +17 -0
- package/src/formatters/FlowRunSortValuesSortParam.ts +21 -0
- package/src/formatters/FlowSortValuesSortParam.ts +21 -0
- package/src/formatters/JsonRouteParam.ts +13 -0
- package/src/formatters/OperatorRouteParam.ts +17 -0
- package/src/formatters/TaskRunSortValuesSortParam.ts +21 -0
- package/src/formatters/index.ts +7 -0
- package/src/index.ts +45 -0
- package/src/intl.d.ts +7 -0
- package/src/localization/index.ts +10 -0
- package/src/localization/locale/en.ts +214 -0
- package/src/maps/.eslintrc.json +5 -0
- package/src/maps/README.md +62 -0
- package/src/maps/artifact.ts +37 -0
- package/src/maps/blockDocument.ts +31 -0
- package/src/maps/blockDocumentCreate.ts +26 -0
- package/src/maps/blockDocumentReferences.ts +22 -0
- package/src/maps/blockDocumentUpdate.ts +14 -0
- package/src/maps/blockSchema.ts +16 -0
- package/src/maps/blockSchemaReferences.ts +11 -0
- package/src/maps/blockType.ts +17 -0
- package/src/maps/collectionItem.ts +28 -0
- package/src/maps/concurrencyLimit.ts +16 -0
- package/src/maps/concurrencyLimitCreate.ts +12 -0
- package/src/maps/concurrencyV2Limit.ts +27 -0
- package/src/maps/concurrencyV2LimitCreate.ts +20 -0
- package/src/maps/concurrencyV2LimitUpdate.ts +20 -0
- package/src/maps/createdOrUpdatedBy.ts +11 -0
- package/src/maps/dashboard.ts +64 -0
- package/src/maps/date.ts +9 -0
- package/src/maps/dateRangeSelectValue.ts +15 -0
- package/src/maps/deployment.ts +126 -0
- package/src/maps/deploymentSchedule.ts +14 -0
- package/src/maps/deploymentScheduleCreate.ts +11 -0
- package/src/maps/deploymentScheduleUpdate.ts +11 -0
- package/src/maps/deploymentStatsFilter.ts +35 -0
- package/src/maps/deploymentStatus.ts +10 -0
- package/src/maps/divergingBarChartItem.ts +14 -0
- package/src/maps/empiricalPolicy.ts +31 -0
- package/src/maps/filters.ts +539 -0
- package/src/maps/flow.ts +39 -0
- package/src/maps/flowRun.ts +41 -0
- package/src/maps/flowRunHistory.ts +19 -0
- package/src/maps/flowStatsFilter.ts +34 -0
- package/src/maps/index.ts +283 -0
- package/src/maps/logs.ts +31 -0
- package/src/maps/mapFlowRunInputKeysetResponseToFlowRunInputKeyset.ts +19 -0
- package/src/maps/notification.ts +16 -0
- package/src/maps/notificationCreate.ts +12 -0
- package/src/maps/notificationUpdate.ts +12 -0
- package/src/maps/number.ts +9 -0
- package/src/maps/orchestrationResult.ts +10 -0
- package/src/maps/runGraphData.ts +65 -0
- package/src/maps/savedSearch.ts +143 -0
- package/src/maps/savedSearchCreate.ts +68 -0
- package/src/maps/savedSearchFilter.ts +34 -0
- package/src/maps/scatterPlotItem.ts +19 -0
- package/src/maps/schedule.ts +84 -0
- package/src/maps/schema.ts +53 -0
- package/src/maps/schemaValuesRequest.ts +12 -0
- package/src/maps/schemaValuesResponse.ts +23 -0
- package/src/maps/state.ts +39 -0
- package/src/maps/stateDetails.ts +58 -0
- package/src/maps/stateHistory.ts +24 -0
- package/src/maps/stateType.ts +10 -0
- package/src/maps/stateUpdate.ts +14 -0
- package/src/maps/taskInput.ts +40 -0
- package/src/maps/taskRun.ts +62 -0
- package/src/maps/taskRunHistory.ts +46 -0
- package/src/maps/uiFlowRunHistory.ts +14 -0
- package/src/maps/uiTaskRunCountsByState.ts +13 -0
- package/src/maps/variable.ts +32 -0
- package/src/maps/workPool.ts +70 -0
- package/src/maps/workPoolQueue.ts +66 -0
- package/src/maps/workPoolStatus.ts +22 -0
- package/src/maps/workPoolWorker.ts +15 -0
- package/src/maps/workPoolWorkerStatus.ts +10 -0
- package/src/maps/workQueue.ts +52 -0
- package/src/maps/workQueueFilter.ts +18 -0
- package/src/maps/workQueueHealthPolicy.ts +9 -0
- package/src/maps/workQueueStatus.ts +11 -0
- package/src/maps/workerCollection.ts +58 -0
- package/src/maps/workerScheduledFlowRun.ts +19 -0
- package/src/maps/workspaceEvent.ts +77 -0
- package/src/maps/workspaceEvents.ts +11 -0
- package/src/maps/workspaceEventsCount.ts +22 -0
- package/src/maps/workspaceEventsFilter.ts +92 -0
- package/src/maps/workspaceEventsHistory.ts +13 -0
- package/src/mocks/README.md +62 -0
- package/src/mocks/UiFlowRunHistory.ts +13 -0
- package/src/mocks/any.ts +13 -0
- package/src/mocks/artifact.ts +42 -0
- package/src/mocks/blockDocument.ts +26 -0
- package/src/mocks/blockDocumentData.ts +24 -0
- package/src/mocks/blockSchema.ts +18 -0
- package/src/mocks/blockSchemaCapabilities.ts +5 -0
- package/src/mocks/blockSchemaCapability.ts +5 -0
- package/src/mocks/blockType.ts +19 -0
- package/src/mocks/blockTypeSnippet.ts +14 -0
- package/src/mocks/boolean.ts +5 -0
- package/src/mocks/collectionItem.ts +25 -0
- package/src/mocks/concurrencyLimit.ts +14 -0
- package/src/mocks/concurrencyV2Limit.ts +13 -0
- package/src/mocks/createdOrUpdatedBy.ts +12 -0
- package/src/mocks/date.ts +18 -0
- package/src/mocks/deployment.ts +51 -0
- package/src/mocks/deploymentSchedule.ts +22 -0
- package/src/mocks/deploymentStatus.ts +8 -0
- package/src/mocks/email.ts +5 -0
- package/src/mocks/flow.ts +13 -0
- package/src/mocks/flowResponse.ts +13 -0
- package/src/mocks/flowRun.ts +43 -0
- package/src/mocks/flowRunGraph.ts +108 -0
- package/src/mocks/flowRunHistory.ts +13 -0
- package/src/mocks/flowRunStateHistory.ts +14 -0
- package/src/mocks/id.ts +6 -0
- package/src/mocks/image.ts +14 -0
- package/src/mocks/index.ts +123 -0
- package/src/mocks/log.ts +22 -0
- package/src/mocks/markdown.ts +158 -0
- package/src/mocks/notification.ts +15 -0
- package/src/mocks/notificationCreate.ts +14 -0
- package/src/mocks/number.ts +7 -0
- package/src/mocks/parameters.ts +69 -0
- package/src/mocks/schedule.ts +46 -0
- package/src/mocks/schemas.ts +68 -0
- package/src/mocks/sentences/generateText.ts +103 -0
- package/src/mocks/sentences/sample.ts +94 -0
- package/src/mocks/sentences/utils.ts +64 -0
- package/src/mocks/starnames/generateStarName.ts +14 -0
- package/src/mocks/starnames/index.ts +4 -0
- package/src/mocks/starnames/names.ts +2 -0
- package/src/mocks/starnames/prefixes.ts +2 -0
- package/src/mocks/starnames/suffixes.ts +2 -0
- package/src/mocks/state.ts +30 -0
- package/src/mocks/stateType.ts +6 -0
- package/src/mocks/string.ts +40 -0
- package/src/mocks/table.ts +34 -0
- package/src/mocks/taskRun.ts +33 -0
- package/src/mocks/url.ts +14 -0
- package/src/mocks/workPool.ts +26 -0
- package/src/mocks/workPoolQueue.ts +19 -0
- package/src/mocks/workPoolStatus.ts +8 -0
- package/src/mocks/workQueue.ts +30 -0
- package/src/mocks/workQueueCreate.ts +14 -0
- package/src/mocks/workQueueHealthPolicy.ts +11 -0
- package/src/mocks/workQueueStatus.ts +14 -0
- package/src/mocks/worker.ts +15 -0
- package/src/mocks/workerStatus.ts +6 -0
- package/src/models/Artifact.ts +85 -0
- package/src/models/ArtifactCollection.ts +34 -0
- package/src/models/BatchLookupError.ts +5 -0
- package/src/models/BlockDocument.ts +58 -0
- package/src/models/BlockDocumentCreate.ts +18 -0
- package/src/models/BlockDocumentUpdate.ts +8 -0
- package/src/models/BlockSchema.ts +35 -0
- package/src/models/BlockType.ts +35 -0
- package/src/models/CloudConfigMissingParamsError.ts +5 -0
- package/src/models/CollectionItem.ts +16 -0
- package/src/models/ConcurrencyLimit.ts +8 -0
- package/src/models/ConcurrencyLimitCreate.ts +4 -0
- package/src/models/ConcurrencyV2ActiveSlots.ts +5 -0
- package/src/models/ConcurrencyV2Create.ts +8 -0
- package/src/models/ConcurrencyV2DecrementActiveSlots.ts +5 -0
- package/src/models/ConcurrencyV2IncrementActiveSlots.ts +5 -0
- package/src/models/ConcurrencyV2Limit.ts +12 -0
- package/src/models/ConcurrencyV2Update.ts +8 -0
- package/src/models/CreatedOrUpdatedBy.ts +7 -0
- package/src/models/CronSchedule.ts +235 -0
- package/src/models/CronStringLengthError.ts +5 -0
- package/src/models/Deployment.ts +123 -0
- package/src/models/DeploymentFlowRunCreate.ts +38 -0
- package/src/models/DeploymentSchedule.ts +30 -0
- package/src/models/DeploymentScheduleCompatible.ts +7 -0
- package/src/models/DeploymentScheduleCreate.ts +7 -0
- package/src/models/DeploymentScheduleUpdate.ts +7 -0
- package/src/models/DeploymentStatus.ts +6 -0
- package/src/models/DeploymentUpdate.ts +48 -0
- package/src/models/EmpiricalPolicy.ts +20 -0
- package/src/models/FilterDateError.ts +5 -0
- package/src/models/FilterPrefixError.ts +5 -0
- package/src/models/FilterRelativeDateUnitError.ts +5 -0
- package/src/models/Filters.ts +273 -0
- package/src/models/Flow.ts +23 -0
- package/src/models/FlowRun.ts +131 -0
- package/src/models/FlowRunHistoryMap.ts +23 -0
- package/src/models/FlowRunInputKeyset.ts +5 -0
- package/src/models/GraphNode.ts +39 -0
- package/src/models/ISchedule.ts +8 -0
- package/src/models/IntervalSchedule.ts +127 -0
- package/src/models/InvalidSchemaValueError.ts +5 -0
- package/src/models/Log.ts +39 -0
- package/src/models/NoSchemaPropertyDefaultValueError.ts +5 -0
- package/src/models/Notification.ts +32 -0
- package/src/models/NotificationCreate.ts +8 -0
- package/src/models/NotificationUpdate.ts +6 -0
- package/src/models/ObjectLevelCan.ts +25 -0
- package/src/models/PublicCron.ts +87 -0
- package/src/models/RRuleSchedule.ts +38 -0
- package/src/models/RunHistory.ts +19 -0
- package/src/models/SavedSearch.ts +34 -0
- package/src/models/Schedule.ts +40 -0
- package/src/models/State.ts +12 -0
- package/src/models/StateCreate.ts +10 -0
- package/src/models/StateDetails.ts +13 -0
- package/src/models/StateDetailsCreate.ts +8 -0
- package/src/models/StateHistory.ts +25 -0
- package/src/models/StateType.ts +56 -0
- package/src/models/StateUpdate.ts +13 -0
- package/src/models/TaskInput.ts +48 -0
- package/src/models/TaskRun.ts +89 -0
- package/src/models/TaskRunHistory.ts +13 -0
- package/src/models/UiFlowRunHistory.ts +10 -0
- package/src/models/UiTaskRunCountsByState.ts +5 -0
- package/src/models/Variable.ts +32 -0
- package/src/models/VariableCreate.ts +5 -0
- package/src/models/VariableEdit.ts +5 -0
- package/src/models/WorkPool.ts +67 -0
- package/src/models/WorkPoolCreate.ts +11 -0
- package/src/models/WorkPoolEdit.ts +9 -0
- package/src/models/WorkPoolQueue.ts +43 -0
- package/src/models/WorkPoolQueueCreate.ts +7 -0
- package/src/models/WorkPoolQueueEdit.ts +7 -0
- package/src/models/WorkPoolQueueTableData.ts +11 -0
- package/src/models/WorkPoolStatus.ts +7 -0
- package/src/models/WorkPoolWorker.ts +31 -0
- package/src/models/WorkPoolWorkerStatus.ts +4 -0
- package/src/models/WorkQueue.ts +53 -0
- package/src/models/WorkQueueCreate.ts +6 -0
- package/src/models/WorkQueueEdit.ts +5 -0
- package/src/models/WorkQueueFilter.ts +15 -0
- package/src/models/WorkQueueHealthPolicy.ts +4 -0
- package/src/models/WorkQueueStatus.ts +22 -0
- package/src/models/WorkQueueTableData.ts +11 -0
- package/src/models/WorkerCollectionItem.ts +27 -0
- package/src/models/WorkerScheduledFlowRun.ts +7 -0
- package/src/models/WorkerScheduledFlowRuns.ts +6 -0
- package/src/models/api/ArtifactCollectionResponse.ts +6 -0
- package/src/models/api/ArtifactResponse.ts +15 -0
- package/src/models/api/BlockDocumentCreateRequest.ts +35 -0
- package/src/models/api/BlockDocumentResponse.ts +29 -0
- package/src/models/api/BlockDocumentUpdateRequest.ts +4 -0
- package/src/models/api/BlockSchemaResponse.ts +13 -0
- package/src/models/api/BlockTypeResponse.ts +11 -0
- package/src/models/api/CollectionItemResponse.ts +19 -0
- package/src/models/api/ConcurrencyLimitCreateRequest.ts +4 -0
- package/src/models/api/ConcurrencyLimitResponse.ts +8 -0
- package/src/models/api/ConcurrencyV2ActiveSlotsResponse.ts +5 -0
- package/src/models/api/ConcurrencyV2CreateRequest.ts +8 -0
- package/src/models/api/ConcurrencyV2DecrementActiveSlotsRequest.ts +5 -0
- package/src/models/api/ConcurrencyV2IncrementActiveSlotsRequest.ts +5 -0
- package/src/models/api/ConcurrencyV2Response.ts +12 -0
- package/src/models/api/ConcurrencyV2UpdateRequest.ts +8 -0
- package/src/models/api/CreatedOrUpdatedByResponse.ts +7 -0
- package/src/models/api/DeploymentFlowRunRequest.ts +16 -0
- package/src/models/api/DeploymentResponse.ts +39 -0
- package/src/models/api/DeploymentScheduleCreateRequest.ts +7 -0
- package/src/models/api/DeploymentScheduleResponse.ts +12 -0
- package/src/models/api/DeploymentScheduleUpdateRequest.ts +7 -0
- package/src/models/api/DeploymentUpdateRequest.ts +18 -0
- package/src/models/api/EmpiricalPolicyRequest.ts +6 -0
- package/src/models/api/EmpiricalPolicyResponse.ts +6 -0
- package/src/models/api/Filters.ts +261 -0
- package/src/models/api/FlowResponse.ts +7 -0
- package/src/models/api/FlowRunGraphResponse.ts +18 -0
- package/src/models/api/FlowRunHistoryResponse.ts +7 -0
- package/src/models/api/FlowRunInputKeysetResponse.ts +5 -0
- package/src/models/api/FlowRunResponse.ts +43 -0
- package/src/models/api/LogResponse.ts +13 -0
- package/src/models/api/NotificationCreateRequest.ts +6 -0
- package/src/models/api/NotificationResponse.ts +9 -0
- package/src/models/api/NotificationUpdateRequest.ts +6 -0
- package/src/models/api/OrchestrationResult.ts +9 -0
- package/src/models/api/OrchestrationResultResponse.ts +9 -0
- package/src/models/api/RunGraphDataResponse.ts +39 -0
- package/src/models/api/SavedSearchResponse.ts +94 -0
- package/src/models/api/ScheduleRequest.ts +33 -0
- package/src/models/api/ScheduleResponse.ts +33 -0
- package/src/models/api/SchemaResponse.ts +52 -0
- package/src/models/api/StateDetailsRequest.ts +12 -0
- package/src/models/api/StateDetailsResponse.ts +14 -0
- package/src/models/api/StateHistoryResponse.ts +9 -0
- package/src/models/api/StateRequest.ts +10 -0
- package/src/models/api/StateResponse.ts +12 -0
- package/src/models/api/StateUpdateRequest.ts +13 -0
- package/src/models/api/TaskInputResponse.ts +28 -0
- package/src/models/api/TaskRunHistoryResponse.ts +13 -0
- package/src/models/api/TaskRunResponse.ts +32 -0
- package/src/models/api/UiFlowRunHistoryResponse.ts +10 -0
- package/src/models/api/UiTaskRunCountsByStateResponse.ts +5 -0
- package/src/models/api/VariableRequest.ts +11 -0
- package/src/models/api/VariableResponse.ts +10 -0
- package/src/models/api/WorkPoolQueueRequest.ts +15 -0
- package/src/models/api/WorkPoolQueueResponse.ts +17 -0
- package/src/models/api/WorkPoolRequest.ts +22 -0
- package/src/models/api/WorkPoolResponse.ts +24 -0
- package/src/models/api/WorkPoolWorkerResponse.ts +13 -0
- package/src/models/api/WorkQueueFilterResponse.ts +4 -0
- package/src/models/api/WorkQueueHealthPolicyResponse.ts +4 -0
- package/src/models/api/WorkQueueRequest.ts +12 -0
- package/src/models/api/WorkQueueResponse.ts +17 -0
- package/src/models/api/WorkQueueStatusResponse.ts +10 -0
- package/src/models/api/WorkerCollectionItemResponse.ts +23 -0
- package/src/models/api/WorkerScheduledFlowRunResponse.ts +7 -0
- package/src/models/api/WorkerScheduledFlowRunsRequest.ts +6 -0
- package/src/models/api/index.ts +47 -0
- package/src/models/api/workspaceEvents.ts +37 -0
- package/src/models/api/workspaceEventsFilterRequest.ts +20 -0
- package/src/models/api/workspaceEventsHistoryRequest.ts +9 -0
- package/src/models/index.ts +82 -0
- package/src/models/workspaceEvent.ts +119 -0
- package/src/models/workspaceEvents.ts +36 -0
- package/src/models/workspaceEventsCount.ts +31 -0
- package/src/router/index.ts +409 -0
- package/src/router/routes.ts +69 -0
- package/src/schemas/components/SchemaForm.vue +94 -0
- package/src/schemas/components/SchemaFormProperties.vue +112 -0
- package/src/schemas/components/SchemaFormProperty.vue +202 -0
- package/src/schemas/components/SchemaFormPropertyAllOf.vue +51 -0
- package/src/schemas/components/SchemaFormPropertyAnyOf.vue +144 -0
- package/src/schemas/components/SchemaFormPropertyArray.vue +69 -0
- package/src/schemas/components/SchemaFormPropertyArrayItem.vue +93 -0
- package/src/schemas/components/SchemaFormPropertyArrayList.vue +136 -0
- package/src/schemas/components/SchemaFormPropertyBlockDocument.vue +39 -0
- package/src/schemas/components/SchemaFormPropertyBoolean.vue +20 -0
- package/src/schemas/components/SchemaFormPropertyDate.vue +44 -0
- package/src/schemas/components/SchemaFormPropertyDateTime.vue +43 -0
- package/src/schemas/components/SchemaFormPropertyErrors.vue +41 -0
- package/src/schemas/components/SchemaFormPropertyInput.vue +124 -0
- package/src/schemas/components/SchemaFormPropertyInteger.vue +42 -0
- package/src/schemas/components/SchemaFormPropertyKindJinja.vue +36 -0
- package/src/schemas/components/SchemaFormPropertyKindJson.vue +47 -0
- package/src/schemas/components/SchemaFormPropertyKindWorkspaceVariable.vue +30 -0
- package/src/schemas/components/SchemaFormPropertyMenu.vue +96 -0
- package/src/schemas/components/SchemaFormPropertyNull.vue +28 -0
- package/src/schemas/components/SchemaFormPropertyObject.vue +59 -0
- package/src/schemas/components/SchemaFormPropertyString.vue +90 -0
- package/src/schemas/components/SchemaFormPropertyUnknown.vue +64 -0
- package/src/schemas/components/SchemaInput.vue +62 -0
- package/src/schemas/compositions/usePrefectKindValue.ts +95 -0
- package/src/schemas/compositions/useSchema.ts +16 -0
- package/src/schemas/compositions/useSchemaFormKinds.ts +8 -0
- package/src/schemas/compositions/useSchemaProperty.ts +48 -0
- package/src/schemas/compositions/useSchemaPropertyInput.ts +73 -0
- package/src/schemas/compositions/useSchemaValidation.ts +57 -0
- package/src/schemas/index.ts +20 -0
- package/src/schemas/mapper.ts +67 -0
- package/src/schemas/maps/index.ts +10 -0
- package/src/schemas/maps/schema.ts +111 -0
- package/src/schemas/maps/schemaValue.ts +117 -0
- package/src/schemas/symbols.ts +3 -0
- package/src/schemas/types/schema.ts +78 -0
- package/src/schemas/types/schemaResponse.ts +45 -0
- package/src/schemas/types/schemaValues.ts +97 -0
- package/src/schemas/types/schemaValuesValidationResponse.ts +30 -0
- package/src/schemas/utilities/definitions.ts +23 -0
- package/src/schemas/utilities/errors.ts +49 -0
- package/src/schemas/utilities/properties.ts +154 -0
- package/src/services/Api.ts +134 -0
- package/src/services/BatchProcessor/BatchProcessor.ts +156 -0
- package/src/services/BatchProcessor/README.md +36 -0
- package/src/services/BatchProcessor/index.ts +1 -0
- package/src/services/CollectionsApi.ts +17 -0
- package/src/services/HealthApi.ts +17 -0
- package/src/services/Mapper.ts +67 -0
- package/src/services/Mocker.ts +42 -0
- package/src/services/RouteGuardExecutioner.ts +44 -0
- package/src/services/SimpleIdManager.ts +7 -0
- package/src/services/UiApi.ts +29 -0
- package/src/services/WorkspaceApi.ts +29 -0
- package/src/services/WorkspaceArtifactsApi.ts +75 -0
- package/src/services/WorkspaceAutomationsApi.ts +66 -0
- package/src/services/WorkspaceBlockCapabilitiesApi.ts +13 -0
- package/src/services/WorkspaceBlockDocumentsApi.ts +71 -0
- package/src/services/WorkspaceBlockSchemasApi.ts +37 -0
- package/src/services/WorkspaceBlockTypesApi.ts +38 -0
- package/src/services/WorkspaceConcurrencyLimitsApi.ts +46 -0
- package/src/services/WorkspaceConcurrencyLimitsV2API.ts +47 -0
- package/src/services/WorkspaceDeploymentScheduleApi.ts +23 -0
- package/src/services/WorkspaceDeploymentsApi.ts +99 -0
- package/src/services/WorkspaceFlowRunsApi.ts +140 -0
- package/src/services/WorkspaceFlowsApi.ts +51 -0
- package/src/services/WorkspaceLogsApi.ts +18 -0
- package/src/services/WorkspaceNotificationsApi.ts +39 -0
- package/src/services/WorkspaceSavedSearchesApi.ts +46 -0
- package/src/services/WorkspaceSchemasWorkspaceApi.ts +52 -0
- package/src/services/WorkspaceTaskRunsApi.ts +67 -0
- package/src/services/WorkspaceVariablesApi.ts +51 -0
- package/src/services/WorkspaceWorkPoolQueuesApi.ts +51 -0
- package/src/services/WorkspaceWorkPoolWorkersApi.ts +27 -0
- package/src/services/WorkspaceWorkPoolsApi.ts +88 -0
- package/src/services/WorkspaceWorkQueuesApi.ts +98 -0
- package/src/services/can.ts +110 -0
- package/src/services/index.ts +33 -0
- package/src/services/schemas/constants.spec.ts +9 -0
- package/src/services/schemas/constants.ts +1 -0
- package/src/services/schemas/index.ts +4 -0
- package/src/services/schemas/properties/SchemaPropertyAny.ts +113 -0
- package/src/services/schemas/properties/SchemaPropertyArray.ts +62 -0
- package/src/services/schemas/properties/SchemaPropertyBlock.ts +54 -0
- package/src/services/schemas/properties/SchemaPropertyBoolean.ts +49 -0
- package/src/services/schemas/properties/SchemaPropertyInteger.ts +36 -0
- package/src/services/schemas/properties/SchemaPropertyNull.ts +16 -0
- package/src/services/schemas/properties/SchemaPropertyNumber.ts +42 -0
- package/src/services/schemas/properties/SchemaPropertyObject.ts +68 -0
- package/src/services/schemas/properties/SchemaPropertyService.ts +179 -0
- package/src/services/schemas/properties/SchemaPropertyString.ts +142 -0
- package/src/services/schemas/properties/factory.ts +46 -0
- package/src/services/schemas/properties/index.ts +10 -0
- package/src/services/schemas/resolvers/blockReferenceDefaults.ts +44 -0
- package/src/services/schemas/resolvers/blockReferences.ts +28 -0
- package/src/services/schemas/resolvers/definitions.ts +94 -0
- package/src/services/schemas/resolvers/index.ts +3 -0
- package/src/services/schemas/resolvers/meta.ts +50 -0
- package/src/services/schemas/resolvers/schemas.ts +19 -0
- package/src/services/schemas/utilities.ts +295 -0
- package/src/services/storage/Storage.ts +83 -0
- package/src/services/storage/StorageItem.ts +5 -0
- package/src/services/storage/flowRunStorage.ts +7 -0
- package/src/services/storage/index.ts +4 -0
- package/src/services/storage/useStorage.ts +53 -0
- package/src/services/workspaceEventsApi.ts +69 -0
- package/src/shims-svg.d.ts +11 -0
- package/src/styles/colors.css +682 -0
- package/src/styles/index.css +5 -0
- package/src/styles/states.css +94 -0
- package/src/tailwind.config.ts +37 -0
- package/src/types/ColorMode.ts +11 -0
- package/src/types/RouteGuard.ts +9 -0
- package/src/types/SortOptionTypes.ts +114 -0
- package/src/types/any.ts +2 -0
- package/src/types/artifact.ts +30 -0
- package/src/types/buttons.ts +1 -0
- package/src/types/cron.ts +99 -0
- package/src/types/css.ts +1 -0
- package/src/types/dashboard.ts +8 -0
- package/src/types/dates.ts +7 -0
- package/src/types/debug.ts +6 -0
- package/src/types/deployment.ts +5 -0
- package/src/types/flow.ts +7 -0
- package/src/types/flowRunResults.ts +1 -0
- package/src/types/index.ts +37 -0
- package/src/types/reactivity.ts +16 -0
- package/src/types/schemaInput.ts +6 -0
- package/src/types/schemas.ts +98 -0
- package/src/types/size.ts +1 -0
- package/src/types/stateBadge.ts +3 -0
- package/src/types/states.ts +54 -0
- package/src/types/tabs.ts +25 -0
- package/src/types/tailwind.ts +1 -0
- package/src/types/useEntitySubscription.ts +8 -0
- package/src/types/utilities.ts +39 -0
- package/src/types/workspaceEventsFilter.ts +40 -0
- package/src/types/workspaceEventsHistory.ts +8 -0
- package/src/utilities/activeViewMode.ts +18 -0
- package/src/utilities/api.ts +67 -0
- package/src/utilities/arrays.ts +175 -0
- package/src/utilities/boolean.ts +3 -0
- package/src/utilities/cache.ts +35 -0
- package/src/utilities/colorMode.ts +36 -0
- package/src/utilities/components.ts +34 -0
- package/src/utilities/copy.ts +7 -0
- package/src/utilities/dates.ts +129 -0
- package/src/utilities/delete.ts +24 -0
- package/src/utilities/errors.ts +64 -0
- package/src/utilities/eventTarget.ts +8 -0
- package/src/utilities/events.ts +21 -0
- package/src/utilities/formValidation.ts +18 -0
- package/src/utilities/functions.ts +4 -0
- package/src/utilities/httpStatus.ts +173 -0
- package/src/utilities/index.ts +35 -0
- package/src/utilities/inject.ts +25 -0
- package/src/utilities/json.ts +28 -0
- package/src/utilities/jsonSafe.spec.ts +59 -0
- package/src/utilities/jsonSafeParse.ts +28 -0
- package/src/utilities/jsonSafeStringify.ts +22 -0
- package/src/utilities/languageDefinitions/json.ts +28 -0
- package/src/utilities/languageDefinitions/python.ts +67 -0
- package/src/utilities/logs.ts +20 -0
- package/src/utilities/math.ts +27 -0
- package/src/utilities/numbers.ts +14 -0
- package/src/utilities/object.ts +178 -0
- package/src/utilities/parameters.ts +57 -0
- package/src/utilities/parseUnknownJson.spec.ts +26 -0
- package/src/utilities/parseUnknownJson.ts +22 -0
- package/src/utilities/processTypes.ts +12 -0
- package/src/utilities/reactivity.ts +61 -0
- package/src/utilities/routes.ts +19 -0
- package/src/utilities/savedFilters.ts +59 -0
- package/src/utilities/seconds.ts +74 -0
- package/src/utilities/state.ts +64 -0
- package/src/utilities/stringifyUnknownJson.spec.ts +27 -0
- package/src/utilities/stringifyUnknownJson.ts +12 -0
- package/src/utilities/strings.ts +81 -0
- package/src/utilities/subscriptions.ts +16 -0
- package/src/utilities/time.ts +14 -0
- package/src/utilities/timeIntervals.ts +60 -0
- package/src/utilities/timeline.ts +41 -0
- package/src/utilities/timezone.ts +141 -0
- package/src/utilities/tryOnScopeDispose.ts +11 -0
- package/src/utilities/tuples.ts +24 -0
- package/src/utilities/types.ts +30 -0
- package/src/utilities/urls.ts +1 -0
- package/src/utilities/validation.ts +278 -0
- package/src/utilities/variables.ts +19 -0
- package/dist/types/vite.config.d.ts +0 -31
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Adapted from https://github.com/ndaidong/txtgen/blob/main/src/sample.js
|
|
2
|
+
|
|
3
|
+
export let nouns: string[] = ['alligator', 'ant', 'bear', 'bee', 'bird', 'camel', 'cat', 'cheetah', 'chicken', 'chimpanzee', 'cow', 'crocodile', 'deer', 'dog', 'dolphin', 'duck', 'eagle', 'elephant', 'fish', 'fly', 'fox', 'frog', 'giraffe', 'goat', 'goldfish', 'hamster', 'hippopotamus', 'horse', 'kangaroo', 'kitten', 'lion', 'lobster', 'monkey', 'octopus', 'owl', 'panda', 'pig', 'puppy', 'rabbit', 'rat', 'scorpion', 'seal', 'shark', 'sheep', 'snail', 'snake', 'spider', 'squirrel', 'tiger', 'turtle', 'wolf', 'zebra', 'apple', 'apricot', 'banana', 'blackberry', 'blueberry', 'cherry', 'cranberry', 'currant', 'fig', 'grape', 'grapefruit', 'grapes', 'kiwi', 'kumquat', 'lemon', 'lime', 'melon', 'nectarine', 'orange', 'peach', 'pear', 'persimmon', 'pineapple', 'plum', 'pomegranate', 'prune', 'raspberry', 'strawberry', 'tangerine', 'watermelon']
|
|
4
|
+
export let adjectives: string[] = ['adaptable', 'adventurous', 'affable', 'affectionate', 'agreeable', 'alert', 'alluring', 'ambitious', 'ambitious', 'amiable', 'amicable', 'amused', 'amusing', 'boundless', 'brave', 'brave', 'bright', 'bright', 'broad-minded', 'calm', 'calm', 'capable', 'careful', 'charming', 'charming', 'cheerful', 'coherent', 'comfortable', 'communicative', 'compassionate', 'confident', 'conscientious', 'considerate', 'convivial', 'cooperative', 'courageous', 'courageous', 'courteous', 'creative', 'credible', 'cultured', 'dashing', 'dazzling', 'debonair', 'decisive', 'decisive', 'decorous', 'delightful', 'detailed', 'determined', 'determined', 'diligent', 'diligent', 'diplomatic', 'discreet', 'discreet', 'dynamic', 'dynamic', 'eager', 'easygoing', 'efficient', 'elated', 'eminent', 'emotional', 'enchanting', 'encouraging', 'endurable', 'energetic', 'energetic', 'entertaining', 'enthusiastic', 'enthusiastic', 'excellent', 'excited', 'exclusive', 'exuberant', 'exuberant', 'fabulous', 'fair', 'fair-minded', 'faithful', 'faithful', 'fantastic', 'fearless', 'fearless', 'fine', 'forceful', 'frank', 'frank', 'friendly', 'friendly', 'funny', 'funny', 'generous', 'generous', 'gentle', 'gentle', 'glorious', 'good', 'good', 'gregarious', 'happy', 'hard-working', 'harmonious', 'helpful', 'helpful', 'hilarious', 'honest', 'honorable', 'humorous', 'imaginative', 'impartial', 'impartial', 'independent', 'industrious', 'instinctive', 'intellectual', 'intelligent', 'intuitive', 'inventive', 'jolly', 'joyous', 'kind', 'kind', 'kind-hearted', 'knowledgeable', 'level', 'likeable', 'lively', 'lovely', 'loving', 'loving', 'loyal', 'lucky', 'mature', 'modern', 'modest', 'neat', 'nice', 'nice', 'obedient', 'optimistic', 'painstaking', 'passionate', 'patient', 'peaceful', 'perfect', 'persistent', 'philosophical', 'pioneering', 'placid', 'placid', 'plausible', 'pleasant', 'plucky', 'plucky', 'polite', 'powerful', 'practical', 'pro-active', 'productive', 'protective', 'proud', 'punctual', 'quick-witted', 'quiet', 'quiet', 'rational', 'receptive', 'reflective', 'reliable', 'relieved', 'reserved', 'resolute', 'resourceful', 'responsible', 'rhetorical', 'righteous', 'romantic', 'romantic', 'sedate', 'seemly', 'selective', 'self-assured', 'self-confident', 'self-disciplined', 'sensible', 'sensitive', 'sensitive', 'shrewd', 'shy', 'silly', 'sincere', 'sincere', 'skillful', 'smiling', 'sociable', 'splendid', 'steadfast', 'stimulating', 'straightforward', 'successful', 'succinct', 'sympathetic', 'talented', 'thoughtful', 'thoughtful', 'thrifty', 'tidy', 'tough', 'tough', 'trustworthy', 'unassuming', 'unbiased', 'understanding', 'unusual', 'upbeat', 'versatile', 'vigorous', 'vivacious', 'warm', 'warmhearted', 'willing', 'willing', 'wise', 'witty', 'witty', 'wonderful']
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export let sentenceTemplates: string[] = [
|
|
8
|
+
'{{noun}} of the imagination how far away muse about bits of moving {{adjective}} {{noun}} preserve and cherish that pale, {{adjective}}, {{adjective}} {{noun}} the sky calls to us',
|
|
9
|
+
'venture {{noun}} dream of the mind\'s eye the {{noun}} calls to us another world {{adjective}} permanence of the {{noun}}.',
|
|
10
|
+
'a billion trillion encyclopaedia galactica {{adjective}} {{noun}} across the centuries the carbon in {{adjective}} {{noun}}?',
|
|
11
|
+
"by accepting the {{noun}} or its derivative {{nouns}}. Therefore, for any liability to {{noun}} for claims brought by any {{noun}} to the page history is sufficient. Licensing notice: Each copy or copies of {{noun}}, provided that you cannot distribute so as to which you describe recipients' rights hereunder. However, you may modify your copy of this component of the {{noun}}, or portion thereof, is at Your sole responsibility, not on behalf of the printed materials and {{nouns}} within such {{nouns}} within which they are first used, and the following in a manner equivalent to the {{noun}}, it is up to the terms of this definition, '{{noun}}' means any patent claims against the {{nouns}} form or documentation, if provided along with the {{nouns}} must agree that use of the name of the licenses to their respective portions thereof.",
|
|
12
|
+
'{{aNoun}} has the right to modify the terms of any of the {{nouns}}. Any material to the {{nouns}} or {{nouns}} thereof',
|
|
13
|
+
'however, {{nouns}} have begun to rent {{nouns}} over the past few months, specifically for {{nouns}} associated with their {{nouns}}',
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export const phrases = [
|
|
17
|
+
'to be more specific, ',
|
|
18
|
+
'in recent years, ',
|
|
19
|
+
'however, ',
|
|
20
|
+
'by the way',
|
|
21
|
+
'of course, ',
|
|
22
|
+
'some assert that ',
|
|
23
|
+
'if this was somewhat unclear, ',
|
|
24
|
+
'unfortunately, that is wrong; on the contrary, ',
|
|
25
|
+
'it\'s very tricky, if not impossible, ',
|
|
26
|
+
'this could be, or perhaps ',
|
|
27
|
+
'this is not to discredit the idea that ',
|
|
28
|
+
'we know that ',
|
|
29
|
+
'it\'s an undeniable fact, really; ',
|
|
30
|
+
'framed in a different way, ',
|
|
31
|
+
'what we don\'t know for sure is whether or not ',
|
|
32
|
+
'as far as we can estimate, ',
|
|
33
|
+
'as far as he is concerned, ',
|
|
34
|
+
'the zeitgeist contends that ',
|
|
35
|
+
'though we assume the latter, ',
|
|
36
|
+
'far from the truth, ',
|
|
37
|
+
'extending this logic, ',
|
|
38
|
+
'nowhere is it disputed that ',
|
|
39
|
+
'in modern times ',
|
|
40
|
+
'in ancient times ',
|
|
41
|
+
'recent controversy aside, ',
|
|
42
|
+
'washing and polishing the car,',
|
|
43
|
+
'having been a gymnast, ',
|
|
44
|
+
'after a long day at school and work, ',
|
|
45
|
+
'waking to the buzz of the alarm clock, ',
|
|
46
|
+
'draped neatly on a hanger, ',
|
|
47
|
+
'shouting with happiness, ',
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
const mergeArray = (aArr: string[] = [], bArr: string[] = []): string[] => {
|
|
51
|
+
return [...new Set([...aArr, ...bArr])]
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const addNouns = (ls = []): number => {
|
|
55
|
+
nouns = mergeArray(nouns, ls)
|
|
56
|
+
return nouns.length
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const addAdjectives = (ls = []): number => {
|
|
60
|
+
adjectives = mergeArray(adjectives, ls)
|
|
61
|
+
return adjectives.length
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const addTemplates = (ls = []): number => {
|
|
65
|
+
sentenceTemplates = mergeArray(sentenceTemplates, ls)
|
|
66
|
+
return sentenceTemplates.length
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const setNouns = (ls = []): number => {
|
|
70
|
+
nouns = [...new Set([...ls])]
|
|
71
|
+
return nouns.length
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const setAdjectives = (ls = []): number => {
|
|
75
|
+
adjectives = [...new Set([...ls])]
|
|
76
|
+
return adjectives.length
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const setTemplates = (ls = []): number => {
|
|
80
|
+
sentenceTemplates = [...new Set([...ls])]
|
|
81
|
+
return sentenceTemplates.length
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const getNouns = (): string[] => {
|
|
85
|
+
return [...nouns]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const getAdjectives = (): string[] => {
|
|
89
|
+
return [...adjectives]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export const getTemplates = (): string[] => {
|
|
93
|
+
return [...sentenceTemplates]
|
|
94
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Adapted from https://github.com/ndaidong/txtgen/blob/main/src/util.js
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
nouns,
|
|
5
|
+
adjectives
|
|
6
|
+
} from '@/mocks/sentences/sample'
|
|
7
|
+
import { vowels } from '@/utilities'
|
|
8
|
+
import { uniform } from '@/utilities/math'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const rand = (str: string[]): string => {
|
|
12
|
+
let word
|
|
13
|
+
while (!word) {
|
|
14
|
+
word = str[uniform(0, str.length - 1)]
|
|
15
|
+
}
|
|
16
|
+
return word
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const pickLastPunc = (): string => {
|
|
20
|
+
const str = '.......!?!?;...'.split('')
|
|
21
|
+
return rand(str)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const pluralize = (word: string): string => {
|
|
25
|
+
if (word.endsWith('s')) {
|
|
26
|
+
return word
|
|
27
|
+
}
|
|
28
|
+
if (word.match(/(ss|ish|ch|x|us)$/)) {
|
|
29
|
+
word += 'e'
|
|
30
|
+
} else if (word.endsWith('y') && !vowels.includes(word.charAt(word.length - 2))) {
|
|
31
|
+
word = word.slice(0, word.length - 1)
|
|
32
|
+
word += 'ie'
|
|
33
|
+
}
|
|
34
|
+
return `${word }s`
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const normalize = (word: string): string => {
|
|
38
|
+
let article = 'a'
|
|
39
|
+
if (word.match(/^(a|e|heir|herb|hour|i|o)/)) {
|
|
40
|
+
article = 'an'
|
|
41
|
+
}
|
|
42
|
+
return `${article} ${word}`
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GeneratorKey = 'noun' | 'aNoun' | 'nouns' | 'adjective' | 'anAdjective'
|
|
46
|
+
export type Generator = Record<GeneratorKey, () => string>
|
|
47
|
+
|
|
48
|
+
export const generator: Generator = {
|
|
49
|
+
noun: () => {
|
|
50
|
+
return rand(nouns)
|
|
51
|
+
},
|
|
52
|
+
aNoun: () => {
|
|
53
|
+
return normalize(rand(nouns))
|
|
54
|
+
},
|
|
55
|
+
nouns: () => {
|
|
56
|
+
return pluralize(rand(nouns))
|
|
57
|
+
},
|
|
58
|
+
adjective: () => {
|
|
59
|
+
return rand(adjectives)
|
|
60
|
+
},
|
|
61
|
+
anAdjective: () => {
|
|
62
|
+
return normalize(rand(adjectives))
|
|
63
|
+
},
|
|
64
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { names, prefixes, suffixes } from '.'
|
|
2
|
+
import { choice } from '@/utilities/arrays'
|
|
3
|
+
import { weightedNumber, coinflip } from '@/utilities/math'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const generateStarName = (): string => {
|
|
7
|
+
const prefix = choice(prefixes).replace('RANDOM', weightedNumber().toString())
|
|
8
|
+
const name = choice(names)
|
|
9
|
+
const suffix = coinflip(0.6) ? choice(suffixes) : ''
|
|
10
|
+
|
|
11
|
+
return [prefix, name, suffix].join('-').replace(/-+$/, '')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { generateStarName }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const names = ['andromedae', 'antliae', 'apodis', 'aquarii', 'aquilae', 'arae', 'arietis', 'aurigae', 'bootis', 'caeli', 'camelopardalis', 'cancri', 'canis-majoris', 'canis-minoris', 'canum-venaticorum', 'capricorni', 'carinae', 'cassiopeiae', 'centauri', 'ceti', 'chamaeleontis', 'circini', 'columbae', 'comae-berenices', 'coronae-australis', 'coronae-borealis', 'corvi', 'crateris', 'crucis', 'cygni', 'delphini', 'doradus', 'draconis', 'equulei', 'eridani', 'fornacis', 'geminorum', 'gruis', 'horologii', 'hydrae', 'hydri', 'indi', 'lacertae', 'leonis', 'leonis-majoris', 'leonis-minoris', 'leporis', 'librae', 'lupi', 'lyncis', 'lyrae', 'mensae', 'microscopii', 'monocerotis', 'muscae', 'normae', 'octantis', 'ophiuchi', 'orion', 'orionis', 'pavonis', 'pegasi', 'persei', 'phoenicis', 'pictoris', 'piscis-austrini', 'piscium', 'puppis', 'pyxidis', 'reticuli', 'sagittae', 'sagittarii', 'sculptoris', 'scuti', 'serpentis', 'sextantis', 'tauri', 'telescopii', 'trianguli', 'trianguli-australis', 'tucanae', 'ursae-majoris', 'ursae-minoris', 'velorum', 'virginis', 'volantis', 'vulpeculae', '', 'meridiana', 'alphecca', 'gienah', 'deneb', 'acrux', 'sirius', 'arcturus', 'altair', 'capella', '', 'alkari', 'adachi', 'akechi', 'akita', 'ando', 'aoki', 'arai', 'asai', 'asano', 'ashikaga', 'ashina', 'aso', 'doi', 'endo', 'enya', 'goto', 'hara', 'harada', 'hatano', 'hiraga', 'hojo', 'hondo', 'hori', 'hoshina', 'hotta', 'ikeda', 'ina', 'inagaki', 'inoue', 'ise', 'ishida', 'isshiki', 'ito', 'jo', 'kagae', 'kaneko', 'kano', 'kato', 'katsura', 'kawguchi', 'kikuchi', 'kira', 'ko', 'koide', 'konishi', 'kono', 'koriki', 'kuchiki', 'kuki', 'kuroda', 'kuroki', 'nagai', 'naito', 'naruse', 'nasu', 'nikaido', 'nikki', 'nishi', 'nishina', 'nishio', 'nitta', 'ochi', 'oda', 'okuda', 'ooka', 'oseki', 'otani', 'otera', 'ouchi', 'rokkaku', 'saigo', 'saito', 'sakai', 'sakurai', 'sanada', 'sano', 'sasaki', 'satake', 'sato', 'seki', 'sengoku', 'sen', 'shinjo', 'shoni', 'so', 'soga', 'sonoda', 'suzuki', 'taguchi', 'taira', 'takeda', 'tanaka', 'tani', 'toda', 'todo', 'togashi', 'toki', 'torii', 'tsukushi', 'tsutsui', 'uesugi', 'ujie', 'ukita', 'yagyu', 'yonezu', 'yoshida', 'yoshii', 'yuki', '', 'newton', 'einstein', 'bohr', 'darwin', 'pasteur', 'freud', 'galilei', 'kepler', 'copernicus', 'faraday', 'maxwell', 'bernard', 'boas', 'heisenburg', 'pauling', 'virchow', 'rutherford', 'dirac', 'vesalius', 'brahe', 'buffon', 'planck', 'curie', 'herschel', 'lyell', 'laplace', 'hubble', 'thomson', 'born', 'crick', 'fermi', 'euler', 'liebig', 'harvey', 'malpighi', 'huygens', 'gauss', 'haller', 'kekule', 'koch', 'fischer', 'mendeleev', 'glashow', 'watson', 'bardeen', 'neumann', 'feynman', 'wegener', 'hawking', 'laue', 'bethe', 'euclid', 'mendel', 'onnes', 'morgan', 'ehrlich', 'mayr', 'lamarck', 'bayliss', 'chomsky', 'sanger', 'dalton', 'broglie', 'linnaeus', 'piaget', 'simpson', 'strauss', 'margulis', 'lorenz', 'wilson', 'hopkins', 'elion', 'selye', 'teller', 'libby', 'haeckel', 'salk', 'kraepelin', 'lysenko', 'galton', 'binet', 'kinsey', 'fleming', 'skinner', 'wundt', 'galen', 'avicenna', 'descartes', 'pascal', 'boyle', 'hooke', 'halley', 'bernoulli', 'franklin', 'priestley', 'volta', 'jenner', 'cuvier', 'humboldt', 'davy', 'babbage', 'maury', 'agassiz', 'joule', 'foucault', 'kelvin', 'lister', 'kekule', 'roentgen', 'edison', 'pavlov', 'meitner', 'waksman', 'watt', 'alvarez', 'mead', 'yalow', 'khorana', 'townes', 'aristotle', 'plato', 'ptolemy', 'khwarizmi', 'davinci', 'gutenberg', '', 'landau', 'nemtsov', 'gamow', '', 'adorn', 'aglarond', 'amroth', 'andrast', 'andrath', 'anduin', 'anfalas', 'angmar', 'angrenost', 'annuminas', 'anorien', 'argonath', 'arnor', 'arthedain', 'azanulbizar', 'baranduin', 'barad-dur', 'barazinbar', 'belfalas', 'bruinen', 'bundushathur', 'calanhad', 'calembel', 'calenardhon', 'caradhras', 'carchost', 'cardolan', 'carnen', 'celebdil', 'celduin', 'ciril', 'dagorlad', 'dorwinion', 'dunharrow', 'durthang', 'dwimorberg', 'dwimordene', 'edoras', 'egladil', 'eilenach', 'elostirion', 'enedwaith', 'eotheod', 'erebor', 'erech', 'eregion', 'erelas', 'eriador', 'erui', 'esgaroth', 'ethring', 'evendim', 'fangorn', 'fanuidhol', 'firiendfeld', 'firienholt', 'folde', 'forlindon', 'forlond', 'fornost', 'forodwaith', 'forochel', 'gilrain', 'glanduin', 'gondor', 'gorgoroth', 'greyling', 'gunabad', 'gwathlo', 'halifirien', 'harad', 'harlond', 'harnen', 'harondor', 'hoarwell', 'imladris', 'imloth', 'isen', 'ithilien', 'kelos', 'khand', 'lamedon', 'langwell', 'lebbenin', 'lefnui', 'lhun', 'limlight', 'lindon', 'lithlad', 'lorien', 'lossarnach', 'lothlorien', 'meduseld', 'methedras', 'minas', 'mindolluin', 'minhiriath', 'mirrormere', 'morannon', 'mordor', 'morgai', 'morgulduin', 'moria', 'morthond', 'mundburg', 'nanduhirion', 'narchost', 'nardol', 'naith', 'nimrodel', 'nindalf', 'orthanc', 'orodruin', 'osgiliath', 'pelargir', 'pelennor', 'poros', 'rauros', 'rhosgobel', 'rhovanion', 'rhudaur', 'rhun', 'ringlo', 'sammath', 'sarn', 'serni', 'sirith', 'tarlang', 'tharbad', 'thrihyrne', 'tolfalas', 'udun', 'umbar', 'undeeps', 'wold', 'zirakzigil', '', 'acamar', 'achrady', 'adarak', 'adigeon', 'ajilon', 'akaali', 'akritiri', 'alastria', 'aldea', 'alfa', 'algeron', 'alonda', 'althos', 'alture', 'amargosa', 'amleth', 'andevian', 'andoria', 'andros', 'angosia', 'antede', 'antica', 'antos', 'achanis', 'archer', 'ardana', 'argana', 'argelius', 'argratha', 'argus', 'ariannus', 'arkaria', 'arloff', 'armus', 'arret', 'arvada', 'aschelan', 'astral', 'atalia', 'atbar', 'athos', 'atifs', 'atlec', 'atrea', 'aucdet', 'aurelia', 'avenal', 'axanar', 'babel', 'bajor', 'balancar', 'balosnee', 'barisa', 'barkon', 'barradas', 'barson', 'barzan', 'beltane', 'benecia', 'benthos', 'benzar', 'betazed', 'bilana', 'bilaren', 'bolarus', 'bopak', 'boraal', 'boradis', 'boreal', 'boreth', 'borka', 'boslic', 'bracas', 'braslota', 'brax', 'brekka', 'brinda', 'browder', 'bryma', 'bynaus', 'caere', 'cait', 'calder', 'caldik', 'caldonia', 'caldos', 'caleb', 'callinon', 'calondia', 'campor', 'camus', 'canopius', 'capella', 'carema', 'carnel', 'carraya', 'casperia', 'castal', 'catulla', 'celtris', 'cerberus', 'cestus', 'chalna', 'chaltok', 'chandra', 'chaya', 'cheron', 'cirrus', 'coltar', 'coridan', 'corvan', 'cygnet', 'dakala', 'daled', 'danula', 'daran', 'davlos', 'dayos', 'decos', 'dekendi', 'delb', 'delinia', 'delios', 'delos', 'delvos', 'deneva', 'denobula', 'deriben', 'dessica', 'detria', 'devidia', 'devos', 'dimorus', 'dinaal', 'donatu', 'doraf', 'dorvan', 'dozaria', 'draken', 'drayan', 'draygo', 'draylax', 'draylon', 'drema', 'dreon', 'dulisian', 'durenia', 'duronom', 'dytallix', 'efros', 'ekos', 'elanu', 'elba', 'ellora', 'emila', 'eminiar', 'enara', 'endicor', 'erabus', 'errikang', 'evadne', 'evora', 'excalbia', 'exo', 'fabrina', 'fahleena', 'farius', 'faynos', 'felton', 'fendaus', 'fina', 'finnea', 'feris', 'folnar', 'forcas', 'forlat', 'fornax', 'gagarin', 'galador', 'galen', 'gallos', 'galor', 'galorda', 'galvin', 'gamelan', 'ganalda', 'garadius', 'garenor', 'garon', 'gaspar', 'gault', 'gedi', 'gema', 'gamaris', 'gemulon', 'ghorusda', 'gideon', 'golana', 'gonal', 'gorthos', 'gramilia', 'grazer', 'haakon', 'hakton', 'halana', 'halee', 'halii', 'halka', 'hanoli', 'hanon', 'hanoran', 'harrakis', 'harrod', 'hayashi', 'hekaras', 'hemikek', 'heva', 'hoek', 'holberg', 'holna', 'hottar', 'hupyria', 'hurada', 'hurkos', 'iadora', 'iconia', 'icor', 'idran', 'ilari', 'ilecom', 'ilidaria', 'illyria', 'inavar', 'indri', 'inferna', 'ingraham', 'invernia', 'iraatan', 'irtok', 'itamish', 'ivor', 'iyaar', 'izar', 'janus', 'japori', 'jaros', 'jerido', 'jouret', 'juhraya', 'kabrel', 'kaelon', 'kaldra', 'kallas', 'kanda', 'kantare', 'karemma', 'kataan', 'katerrea', 'kavaria', 'kavis', 'kazlati', 'kelis', 'kelton', 'kelva', 'kenda', 'kentanna', 'kesat', 'kesprytt', 'kessik', 'khitomer', 'khosia', 'kiberia', 'klaestron', 'klavdia', 'klendeth', 'kolandra', 'kolarus', 'koltair', 'kora', 'koralis', 'korat', 'korma', 'korridon', 'korris', 'kostolain', 'kotara', 'kotati', 'kraus', 'kressari', 'krios', 'ktaris', 'kurill', 'kurl', 'kyana', 'kylata', 'kyria', 'landris', 'lappa', 'largo', 'lazon', 'ledonia', 'ledos', 'legara', 'lemma', 'lerishi', 'levinius', 'ligobis', 'ligon', 'ligos', 'lissepia', 'loracus', 'loren', 'loval', 'luria', 'lya', 'lyshan', 'lysia', 'magus', 'makus', 'malaya', 'malcor', 'malindi', 'malkus', 'malon', 'malur', 'manu', 'maranga', 'marcos', 'mariah', 'marijne', 'mariposa', 'marlonia', 'marva', 'matalas', 'mataline', 'mavala', 'maxia', 'mazar', 'meezan', 'meldrar', 'meles', 'melina', 'melnos', 'merak', 'midos', 'milika', 'minara', 'minnobia', 'minos', 'minshara', 'miri', 'miridian', 'mislen', 'mithren', 'moab', 'modean', 'monac', 'monea', 'mordan', 'morikin', 'morska', 'mudd', 'mudor', 'mundahla', 'nagor', 'nahmi', 'nanibia', 'napinne', 'nerendra', 'nausicaa', 'nel', 'nelvana', 'nervala', 'nessik', 'neubilia', 'neural', 'nibia', 'nibiru', 'nigala', 'nimbus', 'ninipia', 'nivoch', 'norcadia', 'norellus', 'norkan', 'norpin', 'nyria', 'oby', 'ocampa', 'oceanus', 'ogat', 'ogus', 'ohniaka', 'omekla', 'orelious', 'orendal', 'organia', 'orias', 'ornara', 'otar', 'paan', 'pacifica', 'palamar', 'panora', 'paraagan', 'parada', 'parsion', 'paxsor', 'pegos', 'peliar', 'pellius', 'pendari', 'pentarus', 'pentath', 'penthara', 'pernaia', 'pollux', 'porakas', 'portas', 'prakal', 'pralor', 'praxis', 'preenos', 'prema', 'pullock', 'pyris', 'pythro', 'qualor', 'quarra', 'quatal', 'quazulu', 'quinor', 'rachelis', 'rakal', 'rakhar', 'rakosa', 'ramatis', 'ramura', 'rana', 'ranza', 'regulak', 'reina', 'relva', 'remmii', 'remus', 'rhymus', 'rinax', 'risa', 'rivos', 'rochanie', 'romulus', 'ronara', 'rondac', 'rousseau', 'ruah', 'rubicun', 'runara', 'rura', 'rutia', 'sakura', 'saltok', 'salva', 'sarona', 'sarthong', 'sauria', 'scalos', 'securus', 'sefalla', 'selay', 'selek', 'selenia', 'septimis', 'seros', 'setlik', 'shantil', 'shelia', 'sheva', 'shiralea', 'sikaris', 'simperia', 'sirrie', 'sobras', 'solais', 'solosos', 'sothis', 'soukara', 'stameris', 'straleb', 'styris', 'sulvin', 'sumiko', 'surata', 'tagra', 'tagus', 'takar', 'takara', 'talax', 'talos', 'tamar', 'tandar', 'tanuga', 'tarakis', 'tarellia', 'taresia', 'tarkalea', 'tarod', 'tarok', 'tarsus', 'taurus', 'tavela', 'teerza', 'tellar', 'telsius', 'teplan', 'terlina', 'terosa', 'tessen', 'tessik', 'tethys', 'thalos', 'thanatos', 'thasus', 'thelka', 'thera', 'tholia', 'thurasia', 'tiburon', 'tilonus', 'timor', 'titus', 'tohvun', 'torad', 'torga', 'torman', 'torona', 'toroth', 'torros', 'tracken', 'trebus', 'trelkis', 'triacus', 'trialas', 'triannon', 'trill', 'triona', 'troyius', 'turkana', 'tyree', 'tyrellia', 'tyrus', 'tzenketh', 'udala', 'ufandi', 'umoth', 'unefra', 'uxal', 'vacca', 'vadris', 'vagra', 'valo', 'valt', 'vanden', 'vandor', 'vandros', 'varala', 'velara', 'veloz', 'vendikar', 'ventani', 'ventax', 'verez', 'veridian', 'vico', 'vilmoran', 'vissia', 'volan', 'volchok', 'wadi', 'wysanti', 'xanthras', 'xantoras', 'xendi', 'xindus', 'yadalla', 'yadera', 'yonada', 'zadar', 'zahl', 'zakdorn', 'zalkon', 'zaran', 'zayra', 'zeon', 'zetar', 'zibalia', 'zytchin', '', 'acanceh', 'acanmul', 'actuncan', 'aguateca', 'akte', 'almuchil', 'ancona', 'balakbal', 'balamkku', 'becan', 'bejucal', 'blanca', 'bonampak', 'cahal', 'calakmul', 'campeche', 'cancuen', 'cansacbe', 'caracol', 'cerros', 'chac', 'chactun', 'chakalal', 'chakokot', 'chal', 'chapayal', 'chiapa', 'chichen', 'chichmul', 'chijoj', 'chinaha', 'chocola', 'chojolom', 'chorro', 'civiltuk', 'coba', 'comitan', 'consacbe', 'copan', 'corona', 'corozal', 'cuca', 'cuello', 'culuba', 'dzekilna', 'ekab', 'encanto', 'gumarcaj', 'hotzuc', 'halakal', 'hochob', 'holactun', 'huacutal', 'ichmac', 'ichmul', 'ichpich', 'ikil', 'itsimte', 'ixil', 'iximche', 'ixkun', 'ixlu', 'ixtelha', 'ixtatan', 'ixtutz', 'jacawitz', 'joyanca', 'kabah', 'kana', 'kanki', 'kantunil', 'kaxuinic', 'kayal', 'kinal', 'kiuic', 'komchen', 'lacanha', 'maxcanu', 'meco', 'michol', 'mixco', 'mulchic', 'muluch', 'muneca', 'naachtun', 'nakbe', 'nakum', 'okop', 'oxkintok', 'oxpemul', 'oxtankah', 'palenque', 'pechal', 'pestac', 'pixoy', 'pomuch', 'quirigua', 'qumarkaj', 'sabacche', 'sacchana', 'sacnicte', 'sacul', 'silvituc', 'takalik', 'tancah', 'techoh', 'tikal', 'tohcok', 'topoxte', 'tunich', 'ucanal', 'uinic', 'uitzina', 'ukum', 'uxbenka', 'uxmal', 'uxul', 'waka', 'xcambo', 'xcaret', 'xculoc', 'xelha', 'xlapak', 'xpuhil', 'xtampak', 'xtobo', 'xul', 'xultun', 'xupa', 'xutilha', 'yaxha', 'yaxuna', 'zacpeten', 'zaculeu', '', 'achernar', 'acrab', 'acubens', 'adhara', 'adhil', 'adib', 'ain', 'albali', 'alchibah', 'aldebaran', 'alfirk', 'algebar', 'algedi', 'algenib', 'algieba', 'algol', 'algorab', 'alhena', 'alioth', 'alkaid', 'alkes', 'almak', 'almeisan', 'alnair', 'alnasl', 'alnilam', 'alnitak', 'alphard', 'alphecca', 'alpheratz', 'alrescha', 'alsafi', 'alsuhail', 'altair', 'alterf', 'aludra', 'alula', 'alya', 'ankaa', 'arkab', 'arneb', 'arrakis', 'atik', 'auva', 'azha', 'baham', 'baten', 'beid', 'benetnash', 'betelguese', 'botein', 'caph', 'celbalrai', 'chort', 'cursa', 'dabih', 'deneb', 'denebola', 'diphda', 'dschubba', 'dubhe', 'dulfim', 'dziban', 'edasich', 'eltanin', 'enif', 'errai', 'fomalhaut', 'furud', 'gienah', 'gomeisa', 'hadar', 'hamal', 'heka', 'homam', 'izar', 'jabbah', 'kaitos', 'kaus', 'keid', 'kitalpha', 'kochab', 'kurhah', 'lesath', 'maasym', 'maaz', 'mankib', 'marfik', 'markab', 'matar', 'mebsuta', 'megrez', 'meissa', 'mekbuda', 'menkar', 'merak', 'mintaka', 'mirak', 'mizar', 'mothallah', 'muphrid', 'murzim', 'nashira', 'nekkar', 'nihal', 'nusakan', 'nushaba', 'okda', 'phact', 'phad', 'pherkad', 'rastaban', 'rigel', 'rigilkent', 'risha', 'rukbah', 'sabik', 'sadalsuud', 'sadr', 'saiph', 'scheat', 'shaula', 'shedir', 'sheliak', 'sheratan', 'sirrah', 'skat', 'sulafat', 'talitha', 'tania', 'tarf', 'thuban', 'vega', 'wasat', 'wezn', 'yed', 'zaurac', 'zawiah', '', 'cherika', 'dunia', 'duniya', 'hullanta', 'jata', 'kiania', 'kianira', 'maleda', 'maret', 'marinda', 'nyika', 'nyota', 'onile', 'osumare', 'sama', 'sarraqa', 'shanira', 'zuvan']
|
|
2
|
+
export { names }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const prefixes = ['alpha', 'alpha2', 'alpha3', 'alpha4', 'alpha5', 'alpha6', 'alphaRANDOM', 'alphaRANDOM', 'alphaRANDOM', 'beta', 'beta2', 'beta3', 'beta4', 'beta5', 'beta6', 'betaRANDOM', 'betaRANDOM', 'betaRANDOM', 'gamma', 'gamma2', 'gamma3', 'gamma4', 'gamma5', 'gamma6', 'gammaRANDOM', 'gammaRANDOM', 'gammaRANDOM', 'delta', 'delta2', 'delta3', 'delta4', 'delta5', 'delta6', 'deltaRANDOM', 'deltaRANDOM', 'deltaRANDOM', 'epsilon', 'epsilon2', 'epsilon3', 'epsilon4', 'epsilon5', 'epsilon6', 'epsilonRANDOM', 'epsilonRANDOM', 'epsilonRANDOM', 'zeta', 'zeta2', 'zeta3', 'zeta4', 'zeta5', 'zeta6', 'zetaRANDOM', 'zetaRANDOM', 'zetaRANDOM', 'eta', 'eta2', 'eta3', 'eta4', 'eta5', 'eta6', 'etaRANDOM', 'etaRANDOM', 'etaRANDOM', 'theta', 'theta2', 'theta3', 'theta4', 'theta5', 'theta6', 'thetaRANDOM', 'thetaRANDOM', 'thetaRANDOM', 'iota', 'iota2', 'iota3', 'iota4', 'iota5', 'iota6', 'iotaRANDOM', 'iotaRANDOM', 'iotaRANDOM', 'kappa', 'kappa2', 'kappa3', 'kappa4', 'kappa5', 'kappa6', 'kappaRANDOM', 'kappaRANDOM', 'kappaRANDOM', 'lambda', 'lambda2', 'lambda3', 'lambda4', 'lambda5', 'lambda6', 'lambdaRANDOM', 'lambdaRANDOM', 'lambdaRANDOM', 'mu', 'mu2', 'mu3', 'mu4', 'mu5', 'mu6', 'muRANDOM', 'muRANDOM', 'muRANDOM', 'nu', 'nu2', 'nu3', 'nu4', 'nu5', 'nu6', 'nuRANDOM', 'nuRANDOM', 'nuRANDOM', 'xi', 'xi2', 'xi3', 'xi4', 'xi5', 'xi6', 'xiRANDOM', 'xiRANDOM', 'xiRANDOM', 'omicron', 'omicron2', 'omicron3', 'omicron4', 'omicron5', 'omicron6', 'omicronRANDOM', 'omicronRANDOM', 'omicronRANDOM', 'pi', 'pi2', 'pi3', 'pi4', 'pi5', 'pi6', 'piRANDOM', 'piRANDOM', 'piRANDOM', 'rho', 'rho2', 'rho3', 'rho4', 'rho5', 'rho6', 'rhoRANDOM', 'rhoRANDOM', 'rhoRANDOM', 'sigma', 'sigma2', 'sigma3', 'sigma4', 'sigma5', 'sigma6', 'sigmaRANDOM', 'sigmaRANDOM', 'sigmaRANDOM', 'tau', 'tau2', 'tau3', 'tau4', 'tau5', 'tau6', 'tauRANDOM', 'tauRANDOM', 'tauRANDOM', 'upsilon', 'upsilon2', 'upsilon3', 'upsilon4', 'upsilon5', 'upsilon6', 'upsilonRANDOM', 'upsilonRANDOM', 'upsilonRANDOM', 'phi', 'phi2', 'phi3', 'phi4', 'phi5', 'phi6', 'phiRANDOM', 'phiRANDOM', 'phiRANDOM', 'chi', 'chi2', 'chi3', 'chi4', 'chi5', 'chi6', 'chiRANDOM', 'chiRANDOM', 'chiRANDOM', 'psi', 'psi2', 'psi3', 'psi4', 'psi5', 'psi6', 'psiRANDOM', 'psiRANDOM', 'psiRANDOM', 'omega', 'omega2', 'omega3', 'omega4', 'omega5', 'omega6', 'omegaRANDOM', 'omegaRANDOM', 'omegaRANDOM']
|
|
2
|
+
export { prefixes }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const suffixes = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'k', 'm', 'n', 'p', 'q', 'r', 'v', 'x', 'y', 'z', 'adjunct', 'anomaly', 'band', 'boundary', 'cloud', 'cluster', 'collapse', 'conflux', 'expanse', 'field', 'fringe', 'instability', 'manifold', 'mass', 'nebula', 'nebula', 'point', 'quadrant', 'reach', 'ring', 'sector', 'shift', 'tensor', 'terminus', 'vector', 'void', 'warp']
|
|
2
|
+
export { suffixes }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { State } from '@/models/State'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
import { capitalize } from '@/utilities'
|
|
4
|
+
import { random } from '@/utilities/math'
|
|
5
|
+
|
|
6
|
+
export const randomState: MockFunction<State, [Partial<State>?]> = function(overrides = {}) {
|
|
7
|
+
const type = this.create('stateType')
|
|
8
|
+
const name = capitalize(overrides.type ?? type)
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
id: this.create('id'),
|
|
12
|
+
type: type,
|
|
13
|
+
message: this.create('sentence'),
|
|
14
|
+
stateDetails: {
|
|
15
|
+
flowRunId: this.create('id'),
|
|
16
|
+
taskRunId: this.create('id'),
|
|
17
|
+
childFlowRunId: random() > 0.9 ? this.create('id') : null,
|
|
18
|
+
scheduledTime: this.create('date'),
|
|
19
|
+
cacheKey: this.create('string'),
|
|
20
|
+
cacheExpiration: this.create('date'),
|
|
21
|
+
},
|
|
22
|
+
data: {
|
|
23
|
+
encoding: this.create('string'),
|
|
24
|
+
blob: this.create('string'),
|
|
25
|
+
},
|
|
26
|
+
timestamp: this.create('date'),
|
|
27
|
+
name: name,
|
|
28
|
+
...overrides,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { paragraph, sentence } from '@/mocks/sentences/generateText'
|
|
2
|
+
import { adjectives, nouns } from '@/mocks/sentences/sample'
|
|
3
|
+
import { generateStarName } from '@/mocks/starnames'
|
|
4
|
+
import { MockFunction } from '@/services/Mocker'
|
|
5
|
+
import { choice } from '@/utilities/arrays'
|
|
6
|
+
import { uniform } from '@/utilities/math'
|
|
7
|
+
|
|
8
|
+
const characters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] as const
|
|
9
|
+
|
|
10
|
+
export const randomChar: MockFunction<typeof characters[number], []> = function() {
|
|
11
|
+
return characters[Math.floor(Math.random() * characters.length)]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const randomNoun: MockFunction<typeof nouns[number], []> = function() {
|
|
15
|
+
return choice(nouns)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const randomAdjective: MockFunction<typeof adjectives[number], []> = function() {
|
|
19
|
+
return choice(adjectives)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const randomString: MockFunction<string, [number?]> = function(chars) {
|
|
23
|
+
if (!chars) {
|
|
24
|
+
chars = this.create('number', [5, 10])
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return new Array(chars).fill(null).map(() => this.create('char')).join('')
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const randomSentence: MockFunction<string, []> = function() {
|
|
31
|
+
return sentence()
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const randomParagraph: MockFunction<string, [number?]> = function(sentences) {
|
|
35
|
+
return paragraph(sentences ? sentences : uniform(2, 5))
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const randomRunName: MockFunction<string, []> = function() {
|
|
39
|
+
return generateStarName()
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TableData } from '@prefecthq/prefect-design'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
import { choice } from '@/utilities'
|
|
4
|
+
|
|
5
|
+
export type MockTableDataTypes = 'noun' | 'number' | 'boolean' | 'dateString' | 'email' | 'runName'
|
|
6
|
+
|
|
7
|
+
export type MockTableOverrides = {
|
|
8
|
+
keys?: string[],
|
|
9
|
+
types?: MockTableDataTypes[],
|
|
10
|
+
columnCount?: number,
|
|
11
|
+
rowCount?: number,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const randomTable: MockFunction<TableData[], [Partial<MockTableOverrides>?]> = function(overrides = {}) {
|
|
15
|
+
const defaultColumnCount = this.create('number', [5, 10])
|
|
16
|
+
const defaultRowCount = this.create('number', [10, 20])
|
|
17
|
+
|
|
18
|
+
const { columnCount = defaultColumnCount, rowCount = defaultRowCount } = overrides
|
|
19
|
+
|
|
20
|
+
const defaultKeys = this.createMany('noun', columnCount)
|
|
21
|
+
const defaultTypes: MockTableDataTypes[] = ['noun', 'number', 'boolean', 'dateString', 'email', 'runName']
|
|
22
|
+
|
|
23
|
+
const { keys = defaultKeys, types = defaultTypes } = overrides
|
|
24
|
+
|
|
25
|
+
const typesMap: Record<string, MockTableDataTypes> = keys.reduce((acc, key) => ({ ...acc, [key]: choice(types) }), {})
|
|
26
|
+
const table: Record<string, unknown>[] = Array.from({ length: rowCount }, () => {
|
|
27
|
+
const data: Record<string, unknown> = keys.reduce(
|
|
28
|
+
(acc, key) => ({ ...acc, [key]: this.create(typesMap[key]) }),
|
|
29
|
+
{})
|
|
30
|
+
|
|
31
|
+
return data
|
|
32
|
+
})
|
|
33
|
+
return table
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TaskRun } from '@/models/TaskRun'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
|
|
4
|
+
export const randomTaskRun: MockFunction<TaskRun, [Partial<TaskRun>?]> = function(overrides = {}) {
|
|
5
|
+
const state = this.create('state')
|
|
6
|
+
return new TaskRun({
|
|
7
|
+
id: this.create('id'),
|
|
8
|
+
flowRunId: this.create('boolean') ? this.create('id') : null,
|
|
9
|
+
cacheExpiration: this.create('string'),
|
|
10
|
+
cacheKey: this.create('string'),
|
|
11
|
+
created: this.create('date'),
|
|
12
|
+
dynamicKey: this.create('string'),
|
|
13
|
+
empiricalPolicy: null,
|
|
14
|
+
estimatedRunTime: this.create('number'),
|
|
15
|
+
estimatedStartTimeDelta: this.create('number'),
|
|
16
|
+
totalRunTime: this.create('number'),
|
|
17
|
+
expectedStartTime: this.create('date'),
|
|
18
|
+
nextScheduledStartTime: this.create('boolean') ? this.create('date') : null,
|
|
19
|
+
runCount: this.create('number'),
|
|
20
|
+
name: this.create('runName'),
|
|
21
|
+
taskInputs: {},
|
|
22
|
+
taskKey: this.create('string'),
|
|
23
|
+
taskVersion: this.create('string'),
|
|
24
|
+
updated: this.create('date'),
|
|
25
|
+
startTime: this.create('date'),
|
|
26
|
+
endTime: this.create('date'),
|
|
27
|
+
stateId: state.id,
|
|
28
|
+
stateType: state.type,
|
|
29
|
+
state: state,
|
|
30
|
+
tags: this.createMany('noun', this.create('number', [0, 10])),
|
|
31
|
+
...overrides,
|
|
32
|
+
})
|
|
33
|
+
}
|
package/src/mocks/url.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MockFunction } from '@/services/Mocker'
|
|
2
|
+
|
|
3
|
+
const endings = ['com', 'net', 'io', 'org']
|
|
4
|
+
|
|
5
|
+
export const randomUrl: MockFunction<string, [boolean?]> = function(ssl) {
|
|
6
|
+
const secure = ssl ?? this.create('boolean')
|
|
7
|
+
|
|
8
|
+
const protocol = secure ? 'https' : 'http'
|
|
9
|
+
const subdomain = this.create('noun')
|
|
10
|
+
const domain = this.create('noun')
|
|
11
|
+
const ending = endings[this.create('number', [0, endings.length - 1])]
|
|
12
|
+
|
|
13
|
+
return `${protocol}://${subdomain}.${domain}.${ending}`
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WorkPool } from '@/models'
|
|
2
|
+
import { MockFunction } from '@/services'
|
|
3
|
+
|
|
4
|
+
export const randomWorkPool: MockFunction<WorkPool, [Partial<WorkPool>?]> =
|
|
5
|
+
function(overrides = {}) {
|
|
6
|
+
const name = this.create('noun')
|
|
7
|
+
|
|
8
|
+
return new WorkPool({
|
|
9
|
+
// Setting the id to the name allows us to reference the work pool by name
|
|
10
|
+
// in the demo application key data stores without throwing errors.
|
|
11
|
+
id: name,
|
|
12
|
+
created: this.create('date'),
|
|
13
|
+
updated: this.create('date'),
|
|
14
|
+
name: name,
|
|
15
|
+
description: this.create('paragraph'),
|
|
16
|
+
type: this.create('noun'),
|
|
17
|
+
isPaused: this.create('boolean'),
|
|
18
|
+
isPushPool: this.create('boolean'),
|
|
19
|
+
isMexPool: this.create('boolean'),
|
|
20
|
+
concurrencyLimit: this.create('number'),
|
|
21
|
+
defaultQueueId: this.create('id'),
|
|
22
|
+
baseJobTemplate: this.create('parameters', [{}, this.create('schema')]),
|
|
23
|
+
status: this.create('workPoolStatus'),
|
|
24
|
+
...overrides,
|
|
25
|
+
})
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WorkPoolQueue } from '@/models'
|
|
2
|
+
import { MockFunction } from '@/services'
|
|
3
|
+
|
|
4
|
+
export const randomWorkPoolQueue: MockFunction<WorkPoolQueue, [Partial<WorkPoolQueue>?]> = function(overrides = {}) {
|
|
5
|
+
return new WorkPoolQueue({
|
|
6
|
+
id: this.create('id'),
|
|
7
|
+
created: this.create('date'),
|
|
8
|
+
updated: this.create('date'),
|
|
9
|
+
workPoolId: this.create('id'),
|
|
10
|
+
workPoolName: this.create('noun'),
|
|
11
|
+
name: this.create('noun'),
|
|
12
|
+
description: this.create('paragraph'),
|
|
13
|
+
isPaused: this.create('boolean'),
|
|
14
|
+
concurrencyLimit: this.create('number'),
|
|
15
|
+
priority: this.create('number'),
|
|
16
|
+
status: 'ready',
|
|
17
|
+
...overrides,
|
|
18
|
+
})
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WorkPoolStatus, workPoolStatus } from '@/models/WorkPoolStatus'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
|
|
4
|
+
export const randomWorkPoolStatus: MockFunction<WorkPoolStatus | null, []> =
|
|
5
|
+
function() {
|
|
6
|
+
const choices = [...workPoolStatus, null] as const
|
|
7
|
+
return choices[Math.floor(Math.random() * workPoolStatus.length)]
|
|
8
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WorkQueue } from '@/models/WorkQueue'
|
|
2
|
+
import { WorkQueueFilter } from '@/models/WorkQueueFilter'
|
|
3
|
+
import { MockFunction } from '@/services/Mocker'
|
|
4
|
+
|
|
5
|
+
export const randomWorkQueue: MockFunction<WorkQueue, [Partial<WorkQueue>?]> = function(overrides = {}) {
|
|
6
|
+
const { filter, ...rest } = overrides
|
|
7
|
+
|
|
8
|
+
return new WorkQueue({
|
|
9
|
+
id: this.create('id'),
|
|
10
|
+
created: this.create('date'),
|
|
11
|
+
updated: this.create('date'),
|
|
12
|
+
name: this.create('noun'),
|
|
13
|
+
filter: this.create('workQueueFilter', [filter]),
|
|
14
|
+
description: this.create('paragraph'),
|
|
15
|
+
isPaused: this.create('boolean'),
|
|
16
|
+
concurrencyLimit: this.create('number'),
|
|
17
|
+
priority: this.create('number'),
|
|
18
|
+
workPoolId: this.create('id'),
|
|
19
|
+
status: 'not_ready',
|
|
20
|
+
...rest,
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const randomWorkQueueFilter: MockFunction<WorkQueueFilter, [Partial<WorkQueueFilter>?]> = function(overrides = {}) {
|
|
25
|
+
return new WorkQueueFilter({
|
|
26
|
+
tags: this.createMany('noun', this.create('number', [0, 4])),
|
|
27
|
+
deploymentIds: this.createMany('id', 3),
|
|
28
|
+
...overrides,
|
|
29
|
+
})
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WorkQueueCreate } from '@/models'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
|
|
4
|
+
export const randomWorkQueueCreate: MockFunction<WorkQueueCreate, [Partial<WorkQueueCreate>?]> = function(overrides = {}) {
|
|
5
|
+
const { name, description, isPaused, concurrencyLimit } = this.create('workQueue')
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
name,
|
|
9
|
+
description,
|
|
10
|
+
isPaused,
|
|
11
|
+
concurrencyLimit,
|
|
12
|
+
...overrides,
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WorkQueueHealthPolicy } from '@/models/WorkQueueHealthPolicy'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
|
|
4
|
+
export const randomWorkQueueHealthPolicy: MockFunction<WorkQueueHealthPolicy, [Partial<WorkQueueHealthPolicy>?]> = function(overrides = {}) {
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
maximumLateRuns: 0,
|
|
8
|
+
maximumSecondsSinceLastPolled: 60,
|
|
9
|
+
...overrides,
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WorkQueueStatus } from '@/models/WorkQueueStatus'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
import { random } from '@/utilities/math'
|
|
4
|
+
|
|
5
|
+
export const randomWorkQueueStatus: MockFunction<WorkQueueStatus, [Partial<WorkQueueStatus>?]> = function(overrides = {}) {
|
|
6
|
+
|
|
7
|
+
return new WorkQueueStatus({
|
|
8
|
+
healthy: this.create('boolean'),
|
|
9
|
+
lateRunsCount: this.create('number', [0, 3]),
|
|
10
|
+
lastPolled: random() > 0.8 ? this.create('date') : null,
|
|
11
|
+
healthCheckPolicy: this.create('workQueueHealthPolicy'),
|
|
12
|
+
...overrides,
|
|
13
|
+
})
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WorkPoolWorker } from '@/models'
|
|
2
|
+
import { MockFunction } from '@/services'
|
|
3
|
+
|
|
4
|
+
export const randomWorker: MockFunction<WorkPoolWorker, [Partial<WorkPoolWorker>?]> = function(overrides = {}) {
|
|
5
|
+
return new WorkPoolWorker({
|
|
6
|
+
id: this.create('id'),
|
|
7
|
+
created: this.create('date'),
|
|
8
|
+
updated: this.create('date'),
|
|
9
|
+
workPoolId: this.create('id'),
|
|
10
|
+
name: this.create('noun'),
|
|
11
|
+
lastHeartbeatTime: this.create('date'),
|
|
12
|
+
status: this.create('workerStatus'),
|
|
13
|
+
...overrides,
|
|
14
|
+
})
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WorkPoolWorkerStatus, workPoolWorkerStatus } from '@/models/WorkPoolWorkerStatus'
|
|
2
|
+
import { MockFunction } from '@/services/Mocker'
|
|
3
|
+
|
|
4
|
+
export const randomWorkerStatus: MockFunction<WorkPoolWorkerStatus, []> = function() {
|
|
5
|
+
return workPoolWorkerStatus[Math.floor(Math.random() * workPoolWorkerStatus.length)]
|
|
6
|
+
}
|